
Communication Protocol for Baracoda ScanWear/ToughRunners Scanners
Sept. 07 3/26
1/ Introduction: generic packet format
All the frames described in this document are formatted as shown (*):
STX Frame # Nbr of cmds Command 1 … Command x Checksum ETX
1 byte 1 byte 1 byte 3 n bytes … 3 n bytes 1 byte 1 byte
Command ID Data length data
1 byte 1 byte x bytes
B
a
) 1 Byte : STX
B
b
) 1 Byte : Frame number
B
c
) 1 Byte : Number of commands (or number of commands responses)
B
d
) 3..n Bytes : Command 1
…
B
x
) 3..n Bytes : Command x
…
B
y
) 1 Byte : CheckSum = (
=
x
bi
i
B
) mod 256
B
z
) 1 Byte : ETX
Each command is formatted as follows:
C
a
) 1 Byte : Command ID
C
b
) 1 Byte : Data length
C
c
) 0..n Bytes : Data
(*): a limited number of frames do not follow this format. They are described in the
section 2/.
2/ Command ID summary
The commands are sorted by category (4 MSB of Command ID):
0x0? Scanner control commands
0x01 Enter "Setting Mode"
0x02 Exit "Setting Mode"
0x03 Launch autotest // RESERVED
0x04 Endurance (AutoScan) test setting // RESERVED
0x05 Retrieve operational statistics
0x06 Reset operational statistics
0x07 Get wrist motion detection level
0x08 Set wrist motion detection level
0x0E firmware presence flag // RESERVED
0x0F Restore default settings
0x1? RESERVED
Komentarze do niniejszej Instrukcji