Phhere / Playbulb

tools for communication with Playbulb led lights (Candle, Rainbow,..)
MIT License
43 stars 17 forks source link

Support playbulb Sphere #12

Open asavvin opened 8 years ago

asavvin commented 8 years ago

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

kevinmost commented 8 years ago

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!

asavvin commented 8 years ago

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)

kevinmost commented 8 years ago

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.

asavvin commented 8 years ago

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

kevinmost commented 8 years ago

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...

asavvin commented 8 years ago

I don't see version when I am running hcitool

nbla commented 7 years ago

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

hilkeheremans commented 7 years ago

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

nbla commented 7 years ago

Managed to change colors on my Sphere with handle 0x0029

boscho87 commented 6 years ago

Model BTL301W

Colors:

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

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