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

Comments

Projects
None yet
4 participants
@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

This comment has been minimized.

Copy link
Contributor

FredericRuaudel commented Jan 23, 2014

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

This comment has been minimized.

Copy link
Collaborator

sandeepmistry commented Jan 23, 2014

@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

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link
Collaborator

sandeepmistry commented Jan 24, 2014

@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

This comment has been minimized.

Copy link

parkboo commented Jan 24, 2014

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

@sandeepmistry

This comment has been minimized.

Copy link
Collaborator

sandeepmistry commented Jan 24, 2014

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

This comment has been minimized.

Copy link

parkboo commented Jan 24, 2014

@sandeepmistry Yes, exactly.

@parkboo

This comment has been minimized.

Copy link

parkboo commented Jan 24, 2014

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

@pdominique

This comment has been minimized.

Copy link

pdominique commented Jan 24, 2014

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

@parkboo

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link
Collaborator

sandeepmistry commented Jan 25, 2014

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

@sandeepmistry

This comment has been minimized.

Copy link
Collaborator

sandeepmistry commented Feb 6, 2014

This is a duplicate of #18.

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