BLE with BangleJS and GPS Device #4670
Replies: 1 comment
-
Posted at 2022-05-06 by @gfwilliams I don't really know what to suggest - it's rare but usually if there is a disconnection at that point it's:
Does the GPS device usually want a passkey or something like that when you connect with the phone? Posted at 2022-05-06 by Ricardo Hi Gordon. The GPS device does not require any passkey or similar for connect to my phone. This is the link of the device: http://base.galileosky.com/articles/#!en-documentation/developing-a-mobile-app-for-interacting-with-galileosky-tracking-devices-via-bluetooth And this is the script that i used in web ( its work)
Attachments: Posted at 2022-05-09 by @gfwilliams I'm not sure what to suggest I'm afraid. You could hook onto However their choice of UUIDs is a bit concerning. If you're developing a device there's a specific part of the UUID you should change (https://www.espruino.com/About+Bluetooth+LE#128-bit-uuids) so as not to end up registering multiple 128 bit UUIDs - and they're not doing that so instead of 1 UUID the GPS is using 4. That shouldn't be an issue as we have 10 slots in Espruino, but it also doesn't fill you full of confidence that the folks that made it really knew what they were doing. When you connect with nRF Connect, do they have a bunch of other services/characteristics? I guess if they did have 10 different 128 bit UUIDs that would be enough to overwhelm Bangle.js and it would disconnect. ... out of interest, why are you wanting to connect an external GPS receiver when Bangle.js has its own? Posted at 2022-05-10 by Ricardo Hi Gordon. The 'gattserverdisconnected' reason is : 62 (#define BLE_HCI_CONN_FAILED_TO_BE_ESTABLISHED 0x3E) I need to debug : CAN Bus data, One-Wire, Input/Output from GPS device. Not only GPS data. Posted at 2022-05-12 by Ricardo I made an apache-cordova app, and I got this object in connect method:
Notifications work. And this is the code in apache-cordova:
Do you have an idea? Posted at 2022-05-12 by @gfwilliams I'm afraid I don't have many ideas... You could try waiting (with setTimeout) for a second after you establish the connection before you try and use But if you google BLE_HCI_CONN_FAILED_TO_BE_ESTABLISHED there are a bunch of posts. One interesting one says this:
Do you think that could be a possibility? That the GPS device is actually only allowing itself to be connected to just one device (like your phone)? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2022-05-05 by Ricardo
I have a issue when a trying to connect BangleJS2 to GPS device(BLE).
In promise 'getPrimaryService' always get Disconnected (in catch)
I tried with : NRF.findDevices, NRF.connect and NRF.requestDevice but its the same result.
But, when i use bluetooth web, and NRF App(smartphone) its work.
Beta Was this translation helpful? Give feedback.
All reactions