don / node-eddystone-beacon

Create an Eddystone Beacon using Node.js https://github.com/google/eddystone
Other
315 stars 48 forks source link

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

Closed beaufortfrancois closed 8 years ago

beaufortfrancois commented 8 years ago

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:

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

@sandeepmistry @don

don commented 8 years ago

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 commented 8 years ago

@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 commented 8 years ago

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 commented 8 years ago

See my comment at https://github.com/don/node-eddystone-beacon/pull/31#issuecomment-161218939

beaufortfrancois commented 8 years ago

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

WayneKeenan commented 8 years ago

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 commented 8 years ago

@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 commented 7 years ago

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 commented 7 years ago

@PaulB2Code please open a new issue with more details.