RoadRunners – Communication Protocol
TF -
Protocol of communication
23/46
January 2007
When setting only MinSniff and MaxSniff values, the default value 0x08 will be used for Sniff attempts
and Sniff timeout.
Typically values:
Full speed (full power)
MinSniff = 0
MaxSniff = 0
Low Power: (sniff of 500ms Only) (low speed)
MinSniff = 0x0320
MaxSniff = 0x0320
Low Power: (sniff between 250ms to 500ms are acepted) (low speed)
MinSniff = 0x0160
MaxSniff = 0x0320
MaxSniff and MinSniff are only used for sniff negociation. If both sides allow sniff value MaxSniff, then
MaxSniff will be used. If the other side does not accept Sniff values MinSniff to MaxSniff, no sniff will
be used.
Values are in number of Bluetooth slots (1 slot = 625µs)
Set MinSniff and MaxSniff to 0 to disable Sniff.
MinSniff must be inferior to MaxSniff.
Possible values for MinSniff and MaxSniff are 0x12 to 0xFF.
Sniff attempts of 0 is not allowed.
Warning:
Setting MaxSniff to 0xFF means a sniff period of 40s! You will have very very low data rate.
Also, setting MinSniff to 0x12 means that you will have 0x12 Bluetooth slots to transmit data.
Note: This setting takes effect immediately.
For further details on Sniff values, see the Bluetooth spec 1.1, chapter 10.8.2
Set Security Mode
(0x21)
Command
Header
Length
Payload
Answer
Set secure
mode
0x21
00 {size}
{00 non secured, 01 secured} {PIN CODE} 0x21 00 01 01 if done,
0x21 00 01 00 if not
Size=PINCODE size + 1
For example : 0x21 00 05 00 30 30 30 30 to disable security
Get Secure Mode
(0x20)
Command
Header
Length
Payload
Answer
Get secure mode
0x20
00 00
-
0x20 00 01 01 if secured
0x20 00 01 00 if non secured
Set Encryption Mode
(0x41) ( flash only)
Command
Header
Length
Payload
Answer
Set
Encryption 0x41
00 01
[Encryption 0x41 00 01 01 if done
Negociated
Attempts