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

bleno and eddyston-beacon don't play nice together #30

Closed
beaufortfrancois opened this issue Dec 1, 2015 · 9 comments

Comments

Projects
None yet
5 participants
@beaufortfrancois
Copy link
Contributor

commented Dec 1, 2015

I'm currently experiencing some issues with an Edison-like board and I was wondering if you could help me there.
I'm basically using https://github.com/sandeepmistry/bleno and https://github.com/don/node-eddystone-beacon libraries and I'm having a hard time making these work together.

My use case is simple, basic:

  • Advertise only eddystone-URL
  • If someone connects to my device, stop advertising & populate services
  • Let user interact with my services/characteristics

Would you, by any chance, have some sample code I could use as a basis?

@sandeepmistry @don

@don

This comment has been minimized.

Copy link
Owner

commented Dec 1, 2015

Try https://gist.github.com/don/01b41297554378235519

It works better on OS X 10.10. On Ubuntu 14.04, it looks like the beacon info clobbers the service advertisement. (Which might be OK if you're using the beacon for service discovery?)

@sandeepmistry

This comment has been minimized.

Copy link
Collaborator

commented Dec 2, 2015

@don's gist works well on my Raspberry Pi as well. However, if I use npm install bleno eddystone-beacon instead of npm install with the package.json, I think i get two instances of bleno, as nRF Master control panel shows 2 0x1800 and 0x1801 services, and no echo service.

@sandeepmistry

This comment has been minimized.

Copy link
Collaborator

commented Dec 2, 2015

To clarify on my comment above, I actually ran:

npm install eddystone-beacon
npm install bleno

so bleno was install twice is the directory tree ...

@beaufortfrancois

This comment has been minimized.

Copy link
Contributor Author

commented Dec 2, 2015

See my comment at #31 (comment)

@beaufortfrancois

This comment has been minimized.

Copy link
Contributor Author

commented Dec 3, 2015

We can close this one then.
Thank you for your help!

@don don closed this Dec 3, 2015

@WayneKeenan

This comment has been minimized.

Copy link
Contributor

commented Mar 25, 2016

The connectable.js example no longer works when using bleno 0.4.0

It works ok using bleno 0.3.5 on the same system (RaspberryPi 3 with Jessie)

I added the dependency explicitly in the example package.json as I would like to use this on RPi and v0.4.0 has a necessary fix for the Pi 3's BLE h/w.

bleno0.3.5.hcidump.txt
bleno0.4.0.hcidump.txt

@sandeepmistry

This comment has been minimized.

Copy link
Collaborator

commented Mar 28, 2016

@WayneKeenan please submit a pull request to update the bleno dependency to 0.4.0 then either myself or @don can publish a new version to npm.

@PaulB2Code

This comment has been minimized.

Copy link

commented Mar 10, 2017

Hi @sandeepmistry ,

Is there any news on this subjects. I tried on edison but i can't get working bleno and eddystone together.

Each working separatly but together it is like eddystone works but not bleno as the device can not be scanned.

I try the full path method, the connectable Js example, the gist example (https://gist.github.com/don/01b41297554378235519) but none are working.

Notice (For the front I used only webbluetooth)

Thank you for your help.

@sandeepmistry

This comment has been minimized.

Copy link
Collaborator

commented Mar 12, 2017

@PaulB2Code please open a new issue with more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.