
Communication Protocol for Baracoda ScanWear/ToughRunners Scanners
Sept. 07 7/26
3.6/
Bluetooth commands
Command ID 0x5E
Description Bluetooth Commands
Length Variable (1-255)
payload {Code ID} {length} “Parameters”
Response If the device responds: {Code ID} {length} “Response”
Else: {0}
Bluetooth specific commands from the Bluetooth communication protocol are to be
framed within the payload of this message. See Appendix A for more details.
The default Bluetooth settings are the BT module’s default settings, excepted the BT
name which default value must be handled by the firmware:
ToughRunners : “ToughRunners xx xx”
Scanwear : “ScanWear xx xx”
xx xx being the 4 last readable characters of the BDA written in
hexadecimal (two last bytes of BDA).
Example : “Get PIN Code”
Command :
B
a
) 0x02 : STX
B
b
) 0x00 : Frame number
B
c
) 0x01 : Number of commands (or number of commands responses)
B
d
) : Command
B
d1
) 0x5E : Command ID
B
d2
) 0x03 : Data length
B
d3
) : Data
B
d31
) 0x07 : Get PIN Code
B
d32
) 0x00 : Length MSB
B
d33
) 0x00 : Length LSB
B
e
) 0x69 : CheckSum = (
=
e
bi
i
B
) mod 256
B
f
) 0x03 : ETX
Response:
B
a
) 0x02 : STX
B
b
) 0x00 : Frame number
B
c
) 0x01 : Number of commands (or number of commands responses)
B
d
) : Command
B
d1
) 0x5E : Command ID
B
d2
) 0x07 : Data length
B
d3
) : Data
B
d31
) 0x07 : Get PIN Code
B
d32
) 0x00 : Length MSB
B
d33
) 0x04 : Length LSB
B
d34
) 0x30 : PIN Code 0
B
d35
) 0x30 : PIN Code 1
B
d36
) 0x30 : PIN Code 2
B
d37
) 0x30 : PIN Code 3
B
e
) 0x31 : CheckSum
= (
=
x
bi
i
B
) mod 256
= 0x01+0x5E+x007+0x07+0x04+0x00
+0x30+0x30+0x30+0x30 mod 0x100
= 0x131 mod 0x100
= 0x31
B
f
) 0x03 : ETX
Comentarios a estos manuales