Site Tools


byte_codes

Byte codes

All string bytes codes are in Hex

General string syntax

Byte strings have this syntax:

header     N  Op.        Code OpC  OpV  ?     term
|          |  |          |    |    |    |     |
55aa5aa57e 00 0000000100 3f6e 0100 7000 00    007e

Where:

  • header: init code
  • N: number of operation. I see it's a correlative Hex number
  • Op.: Operation?
  • Code: Wifi device code
  • OpC: Operation Code?
  • OpV: Operation value?
  • term: end of string

Discover

App sends this string to receive the relay device code (not sure, needs confirmation)

-> 55aa5aa57e 00 0000000100 0000 0100 7000 00 007e
<- 55aa5aa57e 00 c00c000100 3347 0100 f000 00 007e

The code received “3347” is the ID for the relay device

Discover devices

App sends this string in a loop to discover the paired LED controller devices

                            RID  N    Op      I          CCode
                            |    |    |       |          |
First device
-> 55aa5aa57e 01 c00c000100 3347 0100 7301 00 01 007e
<- 55aa5aa57e 01 c00c000100 3347 0100 f317 00 01 0101 00 3f6e 0014 54726961632044696d6d6572000037 007e
Second device
First device
-> 55aa5aa57e 01 c00c000100 3347 0200 7301 00 02 007e
<- 55aa5aa57e 01 c00c000100 3347 0200 f317 00 02 0101 00 3f58 0014 54726961632044696d6d6572000037 007e
Third device
First device
-> 55aa5aa57e 01 c00c000100 3347 0300 7301 00 04 007e
<- 55aa5aa57e 01 c00c000100 3347 0300 f317 00 04 0101 00 3f68 0014 54726961632044696d6d6572000037 007e
  • RID: Wifi rf ID code
  • N: consecutive number
  • Op:
  • I: square of 2 number
  • CCode: Led controller code

Operation

On / Off

This are the bytes sent to turn on / off a device

              N  ?          DID      Op      Com
              |  |          |        |       |  
-> 55aa5aa57e 03 0101000100 3f6e0100 0a01 00 00 007e
-> 55aa5aa57e 04 0101000100 3f6e0100 0a01 00 01 007e
  • N: consecutive 2 byte number
  • ?: don't know yet
  • DID: Paired device ID Code
  • Op: code for operation
  • Com: 01=ON 00=OFF

DIM

              N  ?          DID      Op      Val
              |  |          |        |       | 
-> 55aa5aa57e 12 0101000100 3f6e0100 0107 00 00 000000000000 007e               
-> 55aa5aa57e 12 0101000100 3f6e0100 0107 00 b2 000000000000 007e
-> 55aa5aa57e 13 0101000100 3f6e0100 0107 00 6a 000000000000 007e
-> 55aa5aa57e 14 0101000100 3f6e0100 0107 00 ff 000000000000 007e

Same as above, but Val is 2 byte Hex code between 0 and 255

byte_codes.txt · Last modified: 2019/03/12 09:28 by 80.25.41.111