BaracodaPencil 2 – Communication Protocol v1.3 - 34 -
Data Capture
for Workforce
in Motion
APPENDIX 1
APPENDIX 1APPENDIX 1
APPENDIX 1: Bluetooth Protocol
: Bluetooth Protocol: Bluetooth Protocol
: Bluetooth Protocol
The configuration frames are as follows:
The configuration frames are as follows:The configuration frames are as follows:
The configuration frames are as follows:
Header: 1 Byte
Length: 2 Bytes (MSB, LSB)
Payload: 0 to 65535 Bytes.
Commands
CommandsCommands
Commands
Command
Set Pin Code
Header
0x01 (flash only)
Length
xx xx (new pin size)
Payload
N di
gits PIN. (Defaut “0000”)
Response
0x01 00 01 01 if done
0x01 00 01 00 if not
Remark
Max Pin length=16
Command
Get Pin Code
Header
0x07
Length
00 00
Payload
N digits PIN. (Défaut “0000”)
Response
0x07 {PinCode size} {Pincode}
Remark
Command
Set
Name
Header
0x02 (flash only)
Length
xx xx
Payload
(new name size)
Response
New name 0x02 00 01 01 if done
0x02 00 01 00 if not
Remark
(Names up to 248 Bytes)
Command
Get Name
Header
0x08
Length
00 00
Payload
Response
0x08 {name size} {name}
Remark
Name size: 2 Bytes MSB, LSB Names up to 248 Bytes
Command
Set Mode
Header
0x03 (flash only)
Length
00 01
Payload
0x01 if MASTER, 0x00 if SLAVE
Response
0x03 00 01 01 if done
0x03 00 01 00 if not