Baracoda All in One Printer All in One Printer User Manual


 
ToughRunners / ScanWear – Communication Protocol v1.2 - 12 -
Data Capture
for Workforce
in Motion
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