-
Notifications
You must be signed in to change notification settings - Fork 52
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
Connect and immediate disconnect #11
Comments
On linux make sure you stop the built in bluetoothd service using sudo systemctl stop bluetooth and then use hcitool to bring up hci0 using sudo hcitool hci0 up That was causing me similar issues |
Same issue here. |
Did you try stopping the service?
|
Yes i did. The Lightblue App detects the RPI but the connection can't be established. The LightBlue Logs looks like this: |
+++Update+++ With my iPad and LightBlue App everything works fine. Every idea on that? |
is this issue reproducible on GNU/Linux ? |
@rzr |
yes, it looks like the problem hasn't been isolated yet |
For everyone who still got an immediately disconnecting after connecting to a device.
I ran into the same error over and over again. The solution ist not the best, but it helped me to let the devices be connected over minutes. Step 1Delete package.json, package-lock.json and node_modules folder Step 2Copy package.json from battery-service example into your project root folder and run Step 3Import bleno with |
ok good to know can you please try to narrow more which dep should be changed ? |
@rzr i looked up package.json and package-lock.json and the only changes I found were some minor version changes in included dependencies of "@abandonware/bleno". Info: Since now I did not really got the time to test the different packages. The above solution was just the quickest one for me. In future I will have a look at the different versions. Maybe I will find out, why the connection unfortunately disconnects directly after connecting to a device Working package-lock.json
NOT working package-lock.json
|
if anyone had time try to apply above changes one per one until it work |
Hi
I have installed bleno on a Vmware VM (running W10 11/2019 update), and run battery profile example. The BT device (BCM20702A0) is connected to the VM (with right WinUSB driver).
I have installed the same on another VM running Ubuntu 16 LTM, following the instructions.
I have used 3 different BT Scanner (on Android 10) : Renesas GattBrowser, Nordic nRfConnect, BLE Scanner. The BLE device is identified sometimes (frequently a rescan is needed), and when it is, connecting, dumping a log on noble console, I can see connect and immediate disconnect.
Thanks for any update/suggestion
Available for supporting and on providing further info
Thanks
Lorenzo
The text was updated successfully, but these errors were encountered: