Serial Commands of the Home Heartbeat
Each of the commands to the Home Heartbeat Base Station are in the form of a single ASCII character. The character is acted upon immediately. No carriage return or linefeed is necessary.
Help Menu
Command: (?) – Questionmark
The Home Heartbeat will respond with a menu of all available commands.
a = toggle debug output |,b = enter bootloader i = node info n = change gateway # p = print binding table S = print state table s = cycle through state table v = clear state backup/profiles B = battery level M = toggle modem enable T = enter manufacturing test A = display the current radio state D = display the base application's build-date V = get software versions Bootloading Commands O = enter binding-table index of target in application R = enter relay and ID of target stuck in bootloader P = put base in xmodem-receive mode Commands indexed by 's' Q = send bootload QUERY
Toggle Debug Output
Command: (a) – Lower case letter ‘a’
The Base Station will respond with DBG=0
indicating the debug mode is now off or DBG=1
signifying that debug is enabled. While debugging is enabled the Base Station will return intermittent messages indicating system status. Here are few example debug messages:
DIAL 18666935866 ... [TO:30s]<4 (0x34)><2 (0x32)><CR>[NL][TO:3s][DLY-->10s]*WO* [MODEM SUB TASK:4] DIAL 18666935866 ... [TO:30s]<4 (0x34)><2 (0x32)><CR>[NL][TO:3s][DLY-->10s] Batt. DIAL 18666935866 ... [TO:30s]Mu-0-22/10 eICUH: i(2) f(0) >53,4 -0 >37,8 -0 _0-53 wait:37,8 Mu-0-53/10 ACK:225,37!_0-37 <4 (0x34)>>37,11 -0 d:53 <2 (0x32)><CR>[NL][TO:3s] [DLY-->10s]d:53 d:53 d:53 d:53 d:53 d:53 wait:37,11 d:53 d:53 d:53 Mu-0-53/10 ACK:226,37!_0-37 >37,6 -0 wait:37,6 Mu-0-53/10 ACK:227,37!_0-37 >37,14 -0 d:53 d:53 d:53 d:53 wait:37,14 d:53 d:53 d:53 Mu-0-53/10 ACK:228,37!_0-37 >40,14 -0 wait:40,14 Mu-0-53/10 ACK:229,40!_0-40 d:53 d:53 d:53 d:53 *WO*
Enter Bootloader
Command: (b) – Lower case letter ‘b’
Command: (|) – Vertical bar
The bootloader responds with its own menu:
1002 8 MHz EM2420 Ch:9 1.program upload (.bin image) 3.run program image 7.stack and application token defaults (.ebin image) 8.application token defaults (.ebin image) advanced mode
Node Info
Command: (i) – Lower case letter ‘i’
Returns the following information:
node 000D6F0000094E95, channel [0x09], power [0xFF], app [base] version 1.00 Total buffers: 64 Free buffers: 64
Change Gateway #
Command: (n) – Lower case letter ‘n’
Sets the phone number to be dialed by the Base Station
n2125551212
The Base Station only returns an empty line.
Print Binding Table
Command: (p) – Lower case letter ‘p’
The ZigBee node binding table is retrieved.
BIND=" BIND=00 00 L 0A 0A 000D6F0000011367--FFFF BIND=01 00 L 0A 0A 000D6F000009613E--FFFF BIND=02 00 L 0A 0A 000D6F000000FF93--FFFF BIND=03 00 L 0A 0A 000D6F000000F0CD--FFFF BIND=04 00 L 0A 0A 000D6F000001060A--FFFF BIND=05 00 x 0A 0A 000D6F0000095BFC--FFFF BIND=06 00 x 0A 0A 000D6F000000C70A--FFFF BIND=07 00 x 0A 0A 000D6F000000F280--FFFF BIND=08 00 x 0A 0A 000D6F000007A2C4--FFFF BIND=09 00 x FF FF FFFFFFFFFFFFFFFF--FFFF BIND=10 00 x FF FF FFFFFFFFFFFFFFFF--FFFF BIND=11 00 x FF FF FFFFFFFFFFFFFFFF--FFFF BIND=12 00 x FF FF FFFFFFFFFFFFFFFF--FFFF BIND=13 00 x FF FF FFFFFFFFFFFFFFFF--FFFF BIND=14 00 x FF FF FFFFFFFFFFFFFFFF--FFFF BIND=15 00 x FF FF FFFFFFFFFFFFFFFF--FFFF BIND=16 00 x FF FF FFFFFFFFFFFFFFFF--FFFF BIND=17 00 x FF FF FFFFFFFFFFFFFFFF--FFFF BIND=18 00 x FF FF FFFFFFFFFFFFFFFF--FFFF BIND=19 00 x FF FF FFFFFFFFFFFFFFFF--FFFF BIND=20 00 x FF FF FFFFFFFFFFFFFFFF--FFFF BIND=21 00 x FF FF FFFFFFFFFFFFFFFF--FFFF BIND=22 00 x FF FF FFFFFFFFFFFFFFFF--FFFF BIND=23 00 x FF FF FFFFFFFFFFFFFFFF--FFFF BIND=24 00 x FF FF FFFFFFFFFFFFFFFF--FFFF BIND=25 00 x FF FF FFFFFFFFFFFFFFFF--FFFF BIND=26 00 x FF FF FFFFFFFFFFFFFFFF--FFFF BIND=27 00 x FF FF FFFFFFFFFFFFFFFF--FFFF BIND=28 00 x FF FF FFFFFFFFFFFFFFFF--FFFF BIND=29 00 x FF FF FFFFFFFFFFFFFFFF--FFFF BIND=30 00 x FF FF FFFFFFFFFFFFFFFF--FFFF BIND=31 00 M 09 09 00000103F200EEEE--FFFF"
Print State Table
Command: (S) – Upper case letter ‘S’
Retrieve a table containing the state of all devices within Home Heartbeat system. An explanation of each of the fields in the table can be found in the State Table of the Eaton Home Heartbeat document.
STATE="00,FF,0088,0001,00,00,00,00,0000,00,0000,00,00,00000000,00,," STATE="01,FF,0080,0010,0B,83,00,00,0000,00,0000,00,00,00000000,00,," STATE="02,00,0040,0002,FF,00,02,00,0201,83,0000,00,FF,00000000,00,000D6F0000011367,Home Key" STATE="03,01,0024,0003,01,83,00,00,0000,55,0000,00,FF,00000000,00,000D6F000009613E,Open/Closed" STATE="04,02,0034,0017,01,5F,00,00,0000,5D,0000,00,00,00000000,00,000D6F000000FF93,Motion Sensor" STATE="05,03,0024,0018,01,83,00,12,0000,59,0000,00,FF,00000000,00,000D6F000000F0CD,Tilt Sensor " STATE="06,04,0024,0005,02,83,00,00,0000,5B,0000,00,FF,00000000,00,000D6F000001060A,Water Sensor" STATE=DONE
Cycle Through State Table
Command: (s) – Lower case letter ‘s’
Retrieves the same state table information as the capital ‘Print State Table’ command, but only one record at a time. Each issue of this command retrieves one state record in sequence. Once the last record is retrieved, the sequence will start anew with the first record of the state table. An explanation of each of the fields in the state record can be found in the State Table of the Eaton Home Heartbeat document.
STATE="02,00,0040,0002,FF,00,02,00,0201,83,0000,00,FF,00000000,00,000D6F0000011367,Home Key"
Clear State Backup/Profiles
Command: (v) – Lower case letter ‘v’
Returns:
Backups and Profiles Clear
Battery Level
Command: (B) – Upper case letter ‘B’
Retrieve the current battery level of the Base Station. If there is no battery installed, or the battery is discharged, then this will be the response:
BAT=0
If a battery is installed in the Base Station then its level will be returned as such:
BAT=175
Toggle Modem Enable
Command: (M) – Upper case letter ‘M’
Toggles the current modem state. The Base Station will respond with MODEM=0
indicating the modem is disabled or MODEM=1
signifying that the modem is enabled.
Enter Manufacturing Test
Command: (T) – Upper case letter ‘T’
Instruct the Base Station to enter the manufacturing test mode.
Display the Current Radio State
Command: (A) – Upper case letter ‘A’
Returns the current radio state:
Radio OK
Display the Base Application’s Build-Date
Command: (D) – Upper case letter ‘D’
Instruct the Base Station to return its software build date:
Build: Oct 5 2006, 14:45:03
Get Software Versions
Command: (V) – Upper case letter ‘V’
Gets the firmware versions for each device in the Home Heartbeat system:
VERSION="00,FF,010E,0001" VERSION="01,FF,0101,0000" VERSION="02,00,0109,0001" VERSION="03,01,0108,0001" VERSION="04,02,011C,0001" VERSION="05,03,0109,0001" VERSION=DONE