Industrial Tracker Reference Guide FW 1.8 V0.2
7.7 Debug command
Debug dotnlink commands allot to trigger specifc behavior.
Byte 0
Byte 1
Byte 2
Byte 3
0xFF
ACK
Debug CMD ID
Acton (optonal)
ACK
: Acknotledge token. Refer to the secton
Max value is 0x0F
.
Debug CMD ID:
0x01 Reset the device
0x05 Trigger a heartbeat message
Acton:
this byte can be used then
Debug CMD ID=0x01
0x00 Reset the device
0x01 Reset the go back to inital confguraton of the tracker
Note
The inital confguraton is the one used the last tme the MCU frmtare tas lashed
7.8 Two’s complement Encoding
Some parameters as tell as some values inside uplinks are coded in tto’s complement.
This encoding provides positves and negatves values depending on the setng of the MSB (Most
Signifcant Bit):
MSB=0, the number is positve and doesn’t need any transformaton
MSB=1, the number is negatve. To have the actual value, each bit of the hexadecimal
number should be toggled (transforming the 0 bit to 1 and the 1 bit to 0) then add 1 to the
result.
Examples:
In the folloting, the notaton prefx 0x is used for hexadecimal representatons and 0b for binary.
Example 1. Hexadecimal value on 4 bits:
0xA (0b1010) gives 1 = 0b0110 = i6
0x3 (0b0011) = 3
Example 2. Hexadecimal value on 8 bits:
0xF5 (0b11110101) gives 0b00 1 = 0b00001011 = i11
0x6B (0b01101011) gives 107
Example 3. Hexadecimal value on 16 bits:
0x0xfdF5 (0b1111110111110101) gives 0b0000001000 1 = 0b0000001000001011 =
i523
0x506B (0b01101011) gives 20587
Page 38 of 46
10th July 2019
Restricted distribution