PETRONE / LINK / Protocol / Structs
Modified : 2017.10.18
Data transfer Examples
LinkModeBroadcast - Active
This command is change the LINK to Active mode. When communicating with a module from your PC or the Arduino Board, the first thing you do is send the command to the PETRONE Connect mode without having to double-click a LINK module button. When updating the Aduino firmware in Active mode, it automatically switches to Mute Mode, so you only need to use this command to switch modes.
0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
Start code |
Header |
Data |
CRC16 |
||||
DataType |
Length |
||||||
0A |
55 |
11 |
02 |
E0 |
02 |
83 |
33 |
LinkSystemReset
LINK Soft Reset command. If a problem occurs during operation but serial communication is sent when possible, this command resets the module.
0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
Start code |
Header |
Data |
CRC16 |
||||
DataType |
Length |
||||||
0A |
55 |
11 |
02 |
E1 |
00 |
F0 |
20 |
LinkState
Request for LINK module state.
0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
Start code |
Header |
Data |
CRC16 |
||||
DataType |
Length |
||||||
0A |
55 |
11 |
02 |
90 |
E0 |
B6 |
E6 |
LinkDiscoverStart
Discover BLE Device command.
0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
Start code |
Header |
Data |
CRC16 |
||||
DataType |
Length |
||||||
0A |
55 |
11 |
02 |
E2 |
00 |
A3 |
75 |
Connect 0
Used to connect to Unit 0 of devices discovered by Discover Start. The 6th byte is index of the device to which to connect.
0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
Start code |
Header |
Data |
CRC16 |
||||
DataType |
Length |
||||||
0A |
55 |
11 |
02 |
E4 |
00 |
05 |
DF |
Connect 1
Used to connect device 1 of devices discovered with Discover Start.
0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
Start code |
Header |
Data |
CRC16 |
||||
DataType |
Length |
||||||
0A |
55 |
11 |
02 |
E4 |
01 |
24 |
CF |
Connect 2
Used to connect device 2 of devices discovered with Discover Start.
0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
Start code |
Header |
Data |
CRC16 |
||||
DataType |
Length |
||||||
0A |
55 |
11 |
02 |
E4 |
02 |
47 |
FF |
Disconnect
Disconnect command
0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
Start code |
Header |
Data |
CRC16 |
||||
DataType |
Length |
||||||
0A |
55 |
11 |
02 |
E5 |
00 |
34 |
EC |
RSSI polling start
Command used to start polling RSSI values for the currently connected device. The value for the 6th byte is specified here as 02. In this case, the RSSI value is scanned with a 200ms interval multiplied by 100.
0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
Start code |
Header |
Data |
CRC16 |
||||
DataType |
Length |
||||||
0A |
55 |
11 |
02 |
E6 |
02 |
25 |
99 |
RSSI polling stop
Command to stop polling RSSI values on the currently connected device.
0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
Start code |
Header |
Data |
CRC16 |
||||
DataType |
Length |
||||||
0A |
55 |
11 |
02 |
E7 |
00 |
56 |
8A |
Address
Request LINK module connected PETRONE device address.
0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
Start code |
Header |
Data |
CRC16 |
||||
DataType |
Length |
||||||
0A |
55 |
11 |
02 |
90 |
30 |
CB |
2D |
LED Dimming - Yellow
If connect with PETRONE, Send commands below will illuminate the propeller side LED brightly in yellow and then return the light to dark.
0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
Start code |
Header |
Data |
CRC16 |
|||||
DataType |
Length |
|||||||
0A |
55 |
20 |
03 |
45 |
8B |
07 |
B0 |
D2 |
LED Dimming - Cyan
If connect with PETRONE, Send commands below will illuminate the propeller side LED brightly in cyan and then return the light to dark.
0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
Start code |
Header |
Data |
CRC16 |
|||||
DataType |
Length |
|||||||
0A |
55 |
20 |
03 |
45 |
14 |
07 |
65 |
DA |
LED Dimming - Red
If connect with PETRONE, Send commands below will illuminate the propeller side LED brightly in red and then return the light to dark.
0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
Start code |
Header |
Data |
CRC16 |
|||||
DataType |
Length |
|||||||
0A |
55 |
20 |
03 |
45 |
72 |
07 |
E9 |
7B |
PETRONE
PETRONE Link
- Intro
- DataType
- Definitions
- Structs
- Examples