Datasheet
Table Of Contents
Binary command set
Commands are sent to the BT004BLE using its HM10 Bluetooth serial port.
Command Description
Dec Hex
16 10 Get Module Info, returns 3 bytes. Module ID (27 for BT004BLE), Hardware version,
Firmware version.
32 20 Digital active - follow with 1-4 to set relay on, then a time for pulsed output from 1-255
(100ms resolution) or 0 for permanent
Board will return 0 for success, 1 for failure
33 21 Digital inactive - follow with 1-4 to turn relay off, then a time for pulsed output from 1-255
(100ms resolution) or 0 for permanent
Board will return 0 for success, 1 for failure
35 23 Digital set outputs - the next single byte will set all relays states, All on = 255 (xxxxxx11) All
off = 0
Board will return 0 for success, 1 for failure
36 24 Digital get outputs - sends a single byte back to the controller, bit high meaning the
corresponding relay is powered
120 78 Get Volts - returns module supply voltage as byte, 125 being 12.5V DC
121 79 Password entry - Board will return 0 for success, 1 for failure
Digital Active/Inactive
This is a 3 byte command:
The first byte is the command, 32 (active means on) or 33 (inactive).
Second byte is the relay number (1-2).
Third byte is the on time. Set this to zero for un-timed operation, or 1-255 for a pulse in 100mS intervals
(100mS to 25.5 seconds).
For example:
0x20 - turn the relay on command
0x02 - relay 2
0x32 (50) - 5 seconds (50 * 100ms)
Board will return 0 for success, 1 for failure.
Password Entry
Before you can control the BT004BLEBLE you must send the module a password. To do this send the
Password entry command (0x79) followed by the password ending with a carriage return byte (0x0D).
For example to send the password 'password' you would send:
0x79 – Password entry Command
0x70 – 'p'
0x61 – 'a'
0x73 – 's'
0x73 – 's'
0x77 – 'w'
0x6F – 'o'
0x72 – 'r'
0x64 – 'd'
0x0D - '\r' Carriage return