noble / bleno

A Node.js module for implementing BLE (Bluetooth Low Energy) peripherals
MIT License
2.12k stars 447 forks source link

Bleno connects on iOS but not on Android #377

Closed ericegonz closed 6 years ago

ericegonz commented 6 years ago

I can connect and pass data easily using the echo example from LightBlue on iOS but when I try and connect using nRF Connect it fails with the following:

screen shot 2018-04-24 at 2 02 57 pm

I get the following log from nRF connect: V 14:08:18.094 Connecting to F0:03:8C:A0:80:10... D 14:08:18.094 gatt = device.connectGatt(autoConnect = false, TRANSPORT_LE) D 14:08:18.450 [Server callback] Connection state changed with status: 0 and new state: DISCONNECTED (0) I 14:08:18.450 [Server] Device disconnected D 14:08:18.453 [Callback] Connection state changed with status: 133 and new state: DISCONNECTED (0) E 14:08:18.453 Error 133 (0x85): GATT ERROR I 14:08:18.453 Disconnected

Been banging my head against the wall over this all day. Seems like its an issue stemming from the BLE Message Integrity Check but I can't seem to find anything about it online...

If it helps I am using a Samsung Galaxy J7 Sky Pro as the client and the ASUS Tinker Board as the server.

Anyone have any tips?

ericegonz commented 6 years ago

We found the problem.... after testing for hours and hours, we figured out that the hardware on the actual client was failing. Tried another cheap phone with the same specs and worked like a charm.