Skip to content

Instantly share code, notes, and snippets.

@mlava
Created May 12, 2019 02:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save mlava/e67a4cd8fa3bf7fe853e933d563b97eb to your computer and use it in GitHub Desktop.
Save mlava/e67a4cd8fa3bf7fe853e933d563b97eb to your computer and use it in GitHub Desktop.
Lightpack 2 Bluetooth Low Energy (BLE) characteristics
https://www.kickstarter.com/projects/woodenshark/lightpack-2-ultimate-light-orchestra-for-your-livi/
All characteristics:
handle: 0x0002, char properties: 0x02, char value handle: 0x0003, uuid: 00002a00-0000-1000-8000-00805f9b34fb
handle: 0x0004, char properties: 0x02, char value handle: 0x0005, uuid: 00002a01-0000-1000-8000-00805f9b34fb
handle: 0x0007, char properties: 0x20, char value handle: 0x0008, uuid: 00002a05-0000-1000-8000-00805f9b34fb
handle: 0x000b, char properties: 0x1a, char value handle: 0x000c, uuid: f5d0bf71-9670-4b25-97f1-861f5ebf0500
handle: 0x000f, char properties: 0x1a, char value handle: 0x0010, uuid: f5d0bf71-9670-4b25-97f1-861f5ebf0400
handle: 0x0013, char properties: 0x12, char value handle: 0x0014, uuid: f5d0bf71-9670-4b25-97f1-861f5ebf0300
handle: 0x0017, char properties: 0x1a, char value handle: 0x0018, uuid: f5d0bf71-9670-4b25-97f1-861f5ebf0200
handle: 0x001b, char properties: 0x1a, char value handle: 0x001c, uuid: f5d0bf71-9670-4b25-97f1-861f5ebf0100
handle: 0x0020, char properties: 0x1a, char value handle: 0x0021, uuid: 5842062b-3cf8-4d1b-8dfa-5d5120460020
handle: 0x0024, char properties: 0x1a, char value handle: 0x0025, uuid: 5842062b-3cf8-4d1b-8dfa-5d5120460010
handle: 0x0028, char properties: 0x08, char value handle: 0x0029, uuid: 5842062b-3cf8-4d1b-8dfa-5d5120460040
handle: 0x002b, char properties: 0x12, char value handle: 0x002c, uuid: 5842062b-3cf8-4d1b-8dfa-5d5120460030
handle: 0x002f, char properties: 0x08, char value handle: 0x0030, uuid: 5842062b-3cf8-4d1b-8dfa-5d5120460060
handle: 0x0032, char properties: 0x08, char value handle: 0x0033, uuid: 5842062b-3cf8-4d1b-8dfa-5d5120460050
handle: 0x0036, char properties: 0x02, char value handle: 0x0037, uuid: 8a6b286f-4198-4765-8bfd-17838f2e0100
handle: 0x0039, char properties: 0x02, char value handle: 0x003a, uuid: 8a6b286f-4198-4765-8bfd-17838f2e0200
handle: 0x003c, char properties: 0x12, char value handle: 0x003d, uuid: 8a6b286f-4198-4765-8bfd-17838f2e0300
power/mood/media (handle 0x001c):
power off: 30
gatttool -b <MAC Address> --char-write-req --handle=0x001c --value=30
media mode: 31
gatttool -b <MAC Address> --char-write-req --handle=0x001c --value=31
mood mode: 32
gatttool -b <MAC Address> --char-write-req --handle=0x001c --value=32
input selection (handle 0x0018):
1: 31
gatttool -b <MAC Address> --char-write-req --handle=0x0018 --value=31
2: 32
gatttool -b <MAC Address> --char-write-req --handle=0x0018 --value=32
3: 33
gatttool -b <MAC Address> --char-write-req --handle=0x0018 --value=33
4: 34
gatttool -b <MAC Address> --char-write-req --handle=0x0018 --value=34
brightness (handle 0x0018):
0%: 2D32
gatttool -b <MAC Address> --char-write-req --handle=0x0010 --value=2D32
25%: 2D31
gatttool -b <MAC Address> --char-write-req --handle=0x0010 --value=2D31
50%: 30
gatttool -b <MAC Address> --char-write-req --handle=0x0010 --value=30
75%: 31
gatttool -b <MAC Address> --char-write-req --handle=0x0010 --value=31
100%: 32
gatttool -b <MAC Address> --char-write-req --handle=0x0010 --value=32
mood lighting modes (handle 0x000c):
birch grove: 62697263685F67726F7665
gatttool -b <MAC Address> --char-write-req --handle=0x000c --value=62697263685F67726F7665
fireplace: 66697265706C616365
gatttool -b <MAC Address> --char-write-req --handle=0x000c --value=66697265706C616365
starry night: 7374617272795F6E69676874
gatttool -b <MAC Address> --char-write-req --handle=0x000c --value=7374617272795F6E69676874
cafe: 63616665
gatttool -b <MAC Address> --char-write-req --handle=0x000c --value=63616665
aurora borealis: 6175726F72615F626F7265616C6973
gatttool -b <MAC Address> --char-write-req --handle=0x000c --value=6175726F72615F626F7265616C6973
still light white: 7374696C6C5F6C696768745F7768697465
gatttool -b <MAC Address> --char-write-req --handle=0x000c --value=7374696C6C5F6C696768745F7768697465
https://www.kickstarter.com/projects/woodenshark/lightpack-2-ultimate-light-orchestra-for-your-livi/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment