-
Notifications
You must be signed in to change notification settings - Fork 452
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
Possibly the wrong advertisement data is being sent #12
Comments
Might be an issue in hci-ble.c the read is not buffered as well as it could be. You can try adding a Also, I'm running 4.101 at home, but not much of the BlueZ user space lib is used. |
Thanks for the debugging info @sandeepmistry . Everything seems fine all the way til https://github.com/sandeepmistry/bleno/blob/master/src/hci-ble.c#L27 . After that I'm not sure how to check the data as part of the I'm now on bluez 5.13 and it's the same issue. I will look some more tomorrow. I will try to downgrade to 4.101 as well and try that. |
Hmm, that would mean the HCI command is failing or something. Did you check what status was? What Linux distro, etc. are you running? |
I had buffering problems on arduino Yun and bleno. stdbuf command from javascript spawn did not help. |
@sandeepmistry I can't recreate this issue now. I'm guessing it was likely something on my end. I've got my peripheral working great on OSX and Linux now. Closing this issue. |
Here are notes to make bleno work on linino: |
The advertisement data I'm seeing with TI RF Packet Sniffer is not what I would expect. Here's a simple peripheral showcasing the issue: https://gist.github.com/zdennis/8447896
When running the advertisement data is:
02 01 0A 02 0A 08 0C 09 43 53 52 38 35 31 30 20 41 31 30
However I'd expect the advertisement data to be:
02 01 05 11 06 d7 4f 4a f1 9b 70 15 91 4f 4c 1a 99 93 38 61 dd
In fact, this is what
hci-ble.js
thinks it's advertising inHciBle.prototype.startAdvertising
but it's not what's being advertised. This is with both bleno 0.1.1 and also bleno @ ee06f6c .This is using bluez 5.12 (I am currently building bluez 5.13 to try there as well).
Any thoughts?
The text was updated successfully, but these errors were encountered: