![Baracoda RoadRunners Laser Скачать руководство пользователя страница 22](http://html1.mh-extra.com/html/baracoda/roadrunners-laser/roadrunners-laser_supplementary-manual_3767919022.webp)
RoadRunners – Communication Protocol
TF -
Protocol of communication
22/46
January 2007
Get Mode
(0x04)
Command
Header
Length
Payload
Answer
Get mode
0x04
00 00
-
0x04 00 02 {Mode (1byte) | Switch role (1byte)}
0x01 if MASTER, 0x00 if SLAVE
0x01
if
want
automatic
switch
role,
0x00
otherwise
Set Remote BDA
(0x05)
(Used by Master Mode of the SM)
Command
Header Length
Payload
Answer
Set Remote BDA 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.
Get Remote BDA
(0x06)
Command
Header
Length
Payload
Answer
Get Remote BDA 0x06
00 00
-
0x06 00 06 {6 bytes of BDA}
Get Firmware Version (0x76)
Command
Header
Length
Payload
Answer
Get Version
0x76
00 00
-
0x76, 0, 18, {string of 18 characters}
Answer:
Header
Length
Payload
Version 0x76
Version
length
(2Bytes)
Version (string)
Restore Factory Settings
('R', 's', 't')
(Bluetooth only)
Command
Answer
Restore Factory Settings
'R', 's', 't'
-
Set
Sniff
(0x09)
Command Header Length
Payload
Answer
Set sniff
0x09
00 04
[MSB of MinSniff interval, LSB of MinSniff interval,
MSB of MaxSniff interval, LSB of MaxSnif interval]
0x09 00 01 01 if done
0x09 00 01 00 if not
Command Header Length
Payload
Answer
Set sniff
0x09
00 08
[MSB of MinSniff interval, LSB of MinSniff interval,
MSB of MaxSniff interval, LSB of MaxSnif interval,
Sniff Attempts MSB, Sniff attempts LSB,
Sniff timeout MSB, Sniff timeout LSB]
0x09 00 01 01 if done
0x09 00 01 00 if not
Get Sniff
(0x10)
Command
Header
Length
Payload
Answer
Get sniff
0x10
00 08
0x10 00 04 [MSB of MinSniff interval, LSB of MinSniff interval,
MSB of MaxSniff interval, LSB of MaxSnif interval, Sniff
Attempts MSB, Sniff attempts LSB, Sniff timeout MSB, Sniff
timeout LSB]