Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support playbulb Sphere #12

Open
asavvin opened this issue Aug 4, 2016 · 10 comments
Open

Support playbulb Sphere #12

asavvin opened this issue Aug 4, 2016 · 10 comments

Comments

@asavvin
Copy link

asavvin commented Aug 4, 2016

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

@kevinmost
Copy link

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
Copy link
Author

asavvin commented Aug 9, 2016

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
Copy link

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
Copy link
Author

asavvin commented Aug 9, 2016

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

@kevinmost
Copy link

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
Copy link
Author

asavvin commented Aug 10, 2016

I don't see version when I am running hcitool

@nbla
Copy link

nbla commented Nov 26, 2016

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
Copy link

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

@nbla
Copy link

nbla commented Apr 17, 2017

Managed to change colors on my Sphere with handle 0x0029

@boscho87
Copy link

boscho87 commented Mar 3, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants