Skip to content

low_exchange_protocol

Vladimir edited this page Feb 16, 2020 · 1 revision

Low level exchange protocol

Exchange is carried out using packets with a length of 9 bytes.
Number of report is always equals to zero.

Unknown/unused fields filled with zeros.

Get Status

Offset Meaning Example
0 Report's number. 0
1 Module's ID.
5 characters with null delimeter.
0x30 01234\0
2 0x31
3 0x32
4 0x33
5 0x34
6 0x00
7 Unknown/Unused
8 Bitmask of all channels state 0x03 Channels 1 & 2 are active

Set Module's ID

Offset Meaning Example
0 Report's number. 0
1 Command 0xfa Set Id
2 Module's ID.
5 characters with null delimeter.
0x41 ABCDE\0
3 0x42
4 0x43
5 0x44
6 0x45
7 0x00
8 Unknown/Unused

Set Channnel On

Offset Meaning Example
0 Report's number. 0
1 Command 0xff Channel On
2 Number of channel.
Started from '1'.
2 Channel #2.
3 Unused/Unknown
4
5
6
7
8

Set Channnel Off

Offset Meaning Example
0 Report's number. 0
1 Command 0xfd Channel Off
2 Number of channel.
Started from '1'.
2 Channel #2.
3 Unused/Unknown
4
5
6
7
8

Set All Channnels On

Offset Meaning Example
0 Report's number. 0
1 Command 0xfe Channels On
2 Unused/Unknown
3
4
5
6
7
8

Set All Channnels Off

Offset Meaning Example
0 Report's number. 0
1 Command 0xfc Channels Off
2 Unused/Unknown
3
4
5
6
7
8