Baracoda All in One Printer All in One Printer User Manual


 
ToughRunners / ScanWear – Communication Protocol v1.2 - 30 -
Data Capture
for Workforce
in Motion
Command
Header
Length
Payload
Answer
Set mode
0x03
00 0
2
[0
x01 if MASTER, 0x00 if SLAVE],
[BT Clock Role switch] (default SLAVE)
0x03 00 01 01 if done
0x03 00 01 00 if not
You can set the size to 2. In this case, the second argument tells the module for an automatic BT
clock role switch. This is an optional argument.
The real MASTER in a Bluetooth piconet is the device which manages the clock used for the
frequency hopping. We used to speak about MASTER too for devices which create the connection(
that's true if you do not switch the clock role)
A device with a slave BT clock role is unable to synchronize more than one master clock. If more than
one SmartModule needs to connect to the same other device (PC, Access Point…) you will need to
switch the clock role to allow the slave to be connected to more than one master. Note that most of
the BT access point already generate the BT clock role switch when a master device creates a
connection. In that case you don't need to specify this argument (if you do, it will cancel the Access
Point clock switch and the result is as nothing was done).
Command
Header
Length
Payload
Answer
Get mode
0x04
00 00
-
0x04 00 02 {Mode (1byte) | Switch role (1byte)}
Mode: 0x01 if MASTER, 0x00 if SLAVE
Switch role: 0x01 if want automatic switch role, 0x00 otherwise
Command
Header
Length
Payload
Answer
Set Remote BDA
(Used by Master
Mode)
0x05
00 06
BDA(ex:0x00,0x02,0xC3,0x21, 0xDE,0xFA)
0x05 00 01 01 if done
0x05 00 01 00 if not
If The SM is set to Master (using Set MODE command), the SM use this Address to connect to.
(No default value, depends of the last programmed)
Command
Header
Length
Payload
Answer
Get Remote BDA
0x06
00 00
-
0x06 00 06 {6 bytes of BDA}