Skip to content

Instantly share code, notes, and snippets.

@BenWoodford
Last active October 17, 2023 02:33
Show Gist options
  • Save BenWoodford/3a1e500a4ea2673525f5adb4120fd47c to your computer and use it in GitHub Desktop.
Save BenWoodford/3a1e500a4ea2673525f5adb4120fd47c to your computer and use it in GitHub Desktop.
Lighthouse 2.0 GATT Information

All control characteristics are under Service 00001523-1212-EFDE-1523-785FEABCD124

Characteristics

Mode = 00001524-1212-EFDE-1523-785FEABCD124 (READ, WRITE, NOTIFY)

Identify = 00008421-1212-EFDE-1523-785FEABCD124 (WRITE)

Power State = 00001525-1212-EFDE-1523-785FEABCD124 (WRITE, newer firmware also had READ and NOTIFY)

Mode

Write 0x01 through 0x0F (1-16) to this characteristic to change the channel

Identify

Write 0x01 to this characteristic to flash the LED on the basestation

Power State

Write Values

Wake

Write 0x01

Standby

Disables lasers, but keeps power to motor - only on newer firmware where this characteristic has READ/NOTIFY flags support this

Write 0x02

Sleep

Disables lasers and motor

Write 0x01 then 0x00 as a separate write command (don't ask me why, just following the logs)

Read Values

0x00 = Sleeping

0x02 = Standby

0x09 = Awake, and last state was sleeping

0x0B Awake, and last state was standby

0x01 = Sometimes occurs when awake, not sure why as of yet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment