Skip to content

Latest commit

 

History

History
90 lines (74 loc) · 3.07 KB

File metadata and controls

90 lines (74 loc) · 3.07 KB

H6053

Contributors


egold555

Implemented Packets

  • Keep Alive
  • Power
  • RGB
  • Warm White
  • Cool White
  • Brightness
  • Music
  • Scenes
  • DIY

How packets work

From my understanding, all packets are 20 bytes long. The first byte is a identifier, followed by 18 bytes of data, followed by a XOR of all the bytes.

IDENTIFIER, DATA, DATA, DATA, DATA, DATA, DATA, DATA, DATA, DATA, DATA, DATA, DATA, DATA, DATA, DATA, DATA, DATA, DATA, XOR
Type Unformatted UUID Formatted UUID
Service 000102030405060708090a0b0c0d1910 00010203-0405-0607-0809-0a0b0c0d1910
Characteristic 000102030405060708090a0b0c0d2b11 00010203-0405-0607-0809-0a0b0c0d2b11

Checksum Bit

The checksum bit is a XOR of all the sent bits.

Segment bits

The segment bits are two bytes ranging from 0x00 0x00 t0 0xFF 0x0F. 0x01 0x00 is the first light only, and 0xFF 0x0F is the entire bar. It goes from lot bit to high bit.

Keep Alive

It is always this, it never seems to change. This is sent every 2 seconds from the mobile app to the device.

0xAA, 0x33, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x99

Power

0x33, 0x33, PWR_BIT
Lamp Power Bit
Both off 0x00
Both on 0x11
Left on right off 0x10
Left off right on 0x01

RGB

SEG and SEG2 are the Segment Bits

0x33, 0x05, 0x15, 0x01, rr, gg, bb, 0x00, 0x00, 0x00, 0x00, 0x00, SEG, SEG2, 0x00, 0x00, 0x00, 0x00, 0x00, CHECKSUM

Warm & Cool White

SEG and SEG2 are the Segment Bits

0x33, 0x05, 0x15, 0x01, 0xFF, 0xFF, 0xFF, B1, B2, B3, B4, B5, SEG, SEG2, 0x00, 0x00, 0x00, 0x00, CHECKSUM

B1 - B5 somehow control the color tempature. I have not successfully figured out how those bytes control the tempature, below I have pasted full warm white, and full cool white as examples.

It also does not seem possable to adjust the brightness of the warm and cool white strips.

Warm White

SEG and SEG2 are the Segment Bits

0x33, 0x05, 0x15, 0x01, 0xFF, 0xFF, 0xFF, 0x07, 0xd0, 0xff, 0x89, 0x12, SEG, SEG2, 0x00, 0x00, 0x00, 0x00, CHECKSUM

Cool White

SEG and SEG2 are the Segment Bits

0x33, 0x05, 0x15, 0x01, 0xFF, 0xFF, 0xFF, 0x23, 0x28, 0xd9, 0xe1, 0xff, SEG, SEG2, 0x00, 0x00, 0x00, 0x00, CHECKSUM

Brightness

SEG and SEG2 are the Segment Bits

The PERCENT value is between 1 (0x01) and 100 (0x64)

0x33, 0x05, 0x15, 0x02, PERCENT, SEG, SEG2 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, CHECKSUM