Annexe 1 : Smartmodule Developer Implementation Guide - Baracoda RoadRunners Laser Supplementary Manual

Communication-protocol
Hide thumbs Also See for RoadRunners Laser:
Table of Contents

Advertisement

RoadRunners – Communication Protocol
ANNEXE 1 : SMARTMODULE
DEVELOPER IMPLEMENTATION GUIDE
The configuration frames are as follow:
Header: 1 Byte
Set PinCode
(0x01) (flash only)
Command
Header
Set PinCode
0x01
Max Pin length=16
Get PinCode
(0x07)
Command
Header
Get PinCode
0x07
Set Name
(0x02) (flash only)
Command
Header
Set Name
0x02
(Names up to 248 Bytes)
Get Name
(0x08)
Command
Header
Get Name
0x08
(Name size: 2 Bytes MSB, LSB Names up to 248 Bytes)
Set Mode
(0x03) (flash only)
Command
Header
Set mode
0x03
Command
Header
Set mode
0x03
When in Master, the Module connects to the address specified by Set REMOTE BDA or to the last
paired device.
Remark: Make sure that gpio5 (gpio disconnect) is set to 0 to connect. If this gpio is set to 1, the
module will not try to connect if in master mode.
You can set the size to 2. In this case, the second argument tells the module for an automatic role
switch. This is an optional argument.
TF -
January 2007
Length: 2 Bytes (MSB, LSB)
Length
Payload
00 00
N digits PIN. (Défaut "0000")
Length
Payload
00 00
N digits PIN. (Défaut "0000")
Length
Payload
xx xx
New name
(new name size)
Length
Payload
00 00
Length
Payload
00 01
0x01
if
MASTER,
SLAVE
Length
Payload
00 02
[0x01 if MASTER, 0x00 if SLAVE],
[Role switch]
Protocol of communication
Payload: 0 to 65535 Bytes.
Answer
0x01 00 01 01 if done
0x01 00 01 00 if not
Answer
0x07 {PinCode size} {Pincode}
Answer
0x02 00 01 01 if done
0x02 00 01 00 if not
Answer
0x08 {name size} {name}
Answer
0x00
if
0x03 00 01 01 if done
0x03 00 01 00 if not
Answer
0x03 00 01 01 if done
0x03 00 01 00 if not
21/46

Advertisement

Table of Contents
loading

Table of Contents