Playbulb icon indicating copy to clipboard operation
Playbulb copied to clipboard

Support playbulb Sphere

Open asavvin opened this issue 9 years ago • 10 comments
trafficstars

Hello! I am trying to use playbulb with sphere. I could not get it work. Thank you

asavvin avatar Aug 04 '16 02:08 asavvin

Also trying to get this to work with the Sphere unsuccessfully.

➜ ~ gatttool -b $MAC --char-write -a 0x001b -n 0000ff00 does not work, despite the fact that I've read a few reports online that this is the proper way to do it for the Sphere. @asavvin, could you try with that address instead (0x001b instead of the 0x0016 that most of the other devices use) to verify that it's not just my device that isn't able to change colors using that command?

For reference, handles like 0x001b don't get listed by gatttool either:

➜  ~ gatttool -b $MAC --char-desc
handle = 0x0001, uuid = 2800
handle = 0x0002, uuid = 2803
handle = 0x0003, uuid = 2a05
handle = 0x0004, uuid = 2902
handle = 0x0005, uuid = 2800

That's all it lists.

If anyone has other ideas, I'm happy to try them out. Thanks!

kevinmost avatar Aug 08 '16 00:08 kevinmost

I found correct one for Sphere and Candle: gatttool -b $MAC --char-write -a 0x01B - n xxxxxxxx (sphere color) gatttool -b $MAC --char-write -a 0x019 - n xxxxxxxxxxxxxxxx (sphere effects)

gatttool -b $MAC --char-write -a 0x019 - n xxxxxxxx (candle color) gatttool -b $MAC --char-write -a 0x017 - n xxxxxxxxxxxxxxxx (candle effects)

asavvin avatar Aug 09 '16 01:08 asavvin

Hmm, didn't work for me. It just returns "successfully" and doesn't change the sphere's color. :(

@asavvin, can you tell me what the output of bluetoothd -v is for you? I have 4.101.

kevinmost avatar Aug 09 '16 02:08 kevinmost

Hi I am on RPI3 it seems to me I don't have this program.

asavvin avatar Aug 09 '16 11:08 asavvin

Hmm, @asavvin how about if you just run hcitool? It should print the help message for HCI Tool which includes a version somewhere.

That's kind of promising though, I was trying this with a Linux desktop but plan to use a Pi Zero with a PiHat in production. The PiHat uses the same Bluetooth chip as the RPi3 so it should work...

kevinmost avatar Aug 09 '16 11:08 kevinmost

I don't see version when I am running hcitool

asavvin avatar Aug 10 '16 01:08 asavvin

Any progress on this? I also got a Sphere, but can't get this to work. I have it working on my Candle though.

HCI Tool ver 5.23

nbla avatar Nov 26 '16 23:11 nbla

Please note there are multiple versions of the Sphere on the market -- they have slightly different characteristics.

hilkeheremans avatar Mar 10 '17 07:03 hilkeheremans

Managed to change colors on my Sphere with handle 0x0029

nbla avatar Apr 17 '17 10:04 nbla

Model BTL301W

Colors:

handle: 0x029 e.g: char-write-cmd 0x029 00FF0000

pattern 00 FF(R) 00(G) 00(B) e.g:

  • 00FF0000 RED
  • 000000FF BLUE
  • 0000FF00 GREEN

boscho87 avatar Mar 03 '18 13:03 boscho87