Home > other >  Passthrough agreement
Passthrough agreement

Time:10-06

I need a parameters:
"Data" : base64 (byte array)//passthrough instructions
Then the manufacturer gives the passthrough agreement, look not to understand how to draw a passthrough instruction??????


Data passthrough class communication protocol
To passthrough data communications protocol is mainly used in to add additional functionality to the socket products, such as increasing the infrared function, 485 communication transmission function, the need to use plug WIFI passthrough function module data, therefore this agreement named data passthrough class communication protocols, data passthrough class communication protocols have control, query and feedback, including control and query command type is 0 x0005, feedback class command type of 0 x0006,
2 data passthrough class control, the query [WIFI? MCU]


The frame header
(4 Byte)
0 x5a5aa5a5
A5 A5 5 a, 5 a

Check
(2 Byte)

The command type
(2 Byte)
0 x0005
05 00

Data length
(2 Byte)
Byte data forwarding class code forwarding data code (n)
(1 Byte)
0 x01: forward infrared data compression methods (1 Byte) + infrared data Byte (n)
0 x02: start the infrared data to study without
0 x03: query infrared learning code without
0 x04: cancel the infrared code learning without


1) frame head (4 byte) : 0 x5a5aa5a5;
Calibration (2, 2) byte) : CRC=0 xbeaf + all except the checking byte data accumulation and
(3) the command type 2 byte) : 0 x0005
4) data length (2 byte) : the length of the data forwarding class code + retweet data code
5) data forwarding class code (1 byte)
0 x01: infrared data forwarding
0 x02: start the infrared data learning
0 x03: query infrared learning state
0 x04: cancel the ir code learning
. ... . According to the need of the agreement back in turn increase...
6) data forwarding code: here for infrared data code: (1 byte) + infrared data compression way
Note: compression way=0: no compression
=1: compression way 1
=2: compression way 2



  • Related