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

Services are not discoverable #20

Closed
parkboo opened this issue Jan 23, 2014 · 12 comments
Closed

Services are not discoverable #20

parkboo opened this issue Jan 23, 2014 · 12 comments

Comments

@parkboo
Copy link

parkboo commented Jan 23, 2014

Hello,

Thank you for your awesome project.
I'm struggling with an issue.

My developing environment is:

  • Raspberry pi (Raspbian) with kernel 3.10.24+ ( as peripheral )
  • IOGear Bluetooth dongle GBU521
  • iPhone 5 ( as Central )
  • node 0.10.24

I wrote a node.js test code with 2 services but these services are not discoverable like this screen shot :

img_5026

(pi-parkboo is my rpi's name)

I think my dongle works correctly because when I wrote a very simple BLE advertising code with C it works perfectly and BLE scanner can catch there are services.

My code snippet is : https://gist.github.com/parkboo/7277ccda610323a95027

@FredericRuaudel
Copy link
Contributor

Hi Parkboo,

Maybe it's because you ask to advertise a service uuid 1112 :

bleno.startAdvertising('pi-test', ['1112']);

And you don't declare it anywhere. The two services you declare are '180a' and '01010101010101010101010101010101'...

Try to replace the code above by :

bleno.startAdvertising('pi-test', ['180a']);

or

bleno.startAdvertising('pi-test', ['01010101010101010101010101010101']);

And I'm not sure you can use the same characteristic instance in two different services, but maybe I'm wrong...

Hope it helps ;)

@sandeepmistry
Copy link
Collaborator

@parkboo code snippet worked for me the first time:

photo-2

Which version of bleno and BlueZ are you using? It might be related to issue #18.

Thanks for helping out @FredericRuaudel !

@parkboo
Copy link
Author

parkboo commented Jan 24, 2014

@FredericRuaudel
Oh, that was my mistake. I've changed the uuid to '01010101010101010101010101010101' but the service uuid is still not visible. :(

@sandeepmistry
My BlueZ version is 4.99-2 (via dpkg --status bluez)
I'll try the latest BlueZ and 3.06 kernel also.

Thank you all, guys.

@sandeepmistry
Copy link
Collaborator

@parkboo I'm running BlueZ 4.99 on my RPi, no need to upgrade. I would try to update your kernel, mine is 3.6.11+.

Which version of bleno are you using?

@parkboo
Copy link
Author

parkboo commented Jan 24, 2014

@sandeepmistry My bleno version is 0.1.1. I installed bleno with npm just a few days ago.

@sandeepmistry
Copy link
Collaborator

Ok, that's good you'll have this 67b9bf1. I'm running Github master.

Just to confirm, your issue is your not seeing the advertised service UUID? Like in my screenshot.

@parkboo
Copy link
Author

parkboo commented Jan 24, 2014

@sandeepmistry Yes, exactly.

@parkboo
Copy link
Author

parkboo commented Jan 24, 2014

@sandeepmistry I've downgraded firmware to 3.6.11+ and everything works fine!

@pdominique
Copy link

parkboo > how did you downgrade the firmware (kernel)? I have similar issues with Bleno.

@parkboo
Copy link
Author

parkboo commented Jan 24, 2014

@pdominique Visit https://github.com/Hexxeh/rpi-firmware/commits/ and get the commit id of firmware what you want and pass it as an argument of rpi-update.
For me,

sudo rpi-update f48e3c15504300c2ac7b677c295dfa6a0ed2121a

@sandeepmistry
Copy link
Collaborator

Thanks @parkboo I'll get a another SD setup for my RPi to try out.

@sandeepmistry
Copy link
Collaborator

This is a duplicate of #18.

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

No branches or pull requests

4 participants