balena-web-ble icon indicating copy to clipboard operation
balena-web-ble copied to clipboard

bluetooth disconnect after few seconds

Open dungcules opened this issue 2 years ago • 0 comments

Hello,

I am able to deploy this project on Ras Pi 3 and run smoothly. My goal now is to run this project on Google Coral board. I do not use balena image, then I download and install bluez and other require packages that mentioned in the bleno project. I also stop and disable bluetooth service and start manually by using hciconfig command. After install all of the supporting nodejs library, I am able to start the server on Coral board. The web api is also able to connect to the server. However, the connection drops right after this. By monitoring bluetooth transaction (using btmon), two errors including Remote User Terminated Connection and Connection Terminated By Local Host are reported. I am not able to go further than this. Using LightBlue to connect to BalenaBLE, it also drops after connected. Can you tell if I miss any setting on the server size?

The output of running #node index.js:

# node index.js
Adding fff0 service
on -> stateChange: poweredOn
on -> advertisingStart: success
setServices: success
Subscribed, max value size is 253
Unsubscribed LED

Let me know if you need more information.

Thanks a lot,

Dung

dungcules avatar Nov 09 '21 21:11 dungcules