Problem discovering services with lower tier Android devices

robkof gravatar image

asked 2017-12-06 15:21:15 +0100

ketil gravatar image

updated 2017-12-07 13:35:08 +0100

Hello,

I have a problem when I try to use cheaper Android phones to communicate with our 52832 chip.

I can discover the peripheral and then connect, but when I device.discoverServices() the software pauses for about 10 seconds, and then disconnects with the output:

D/BluetoothGatt: connect() - device: CA:E7:8F:03:82:CE, auto: false
D/BluetoothGatt: registerApp()
D/BluetoothGatt: registerApp() - UUID=b05b54e9-bd20-423f-a6db-461775f954f0
D/BluetoothGatt: onClientRegistered() - status=0 clientIf=7
D/BluetoothGatt: onClientConnectionState() - status=0 clientIf=7 device=CA:E7:8F:03:82:CE
D/BluetoothGatt: discoverServices() - device: CA:E7:8F:03:82:CE
D/BluetoothGatt: onSearchComplete() = Device=CA:E7:8F:03:82:CE Status=129
D/BluetoothGatt: onClientConnectionState() - status=22 clientIf=7 device=CA:E7:8F:03:82:CE
D/BluetoothGatt: cancelOpen() - device: CA:E7:8F:03:82:CE
D/BluetoothGatt: close()
D/BluetoothGatt: unregisterApp() - mClientIf=7
D/BluetoothGatt: cancelOpen() - device: CA:E7:8F:03:82:CE
D/BluetoothGatt: close()
D/BluetoothGatt: unregisterApp() - mClientIf=0

With onServicesDiscovered status = 129

The phones are in this case: Samsung Galaxy J3 (J320FN) & Huawei P8lite (ALE-L21)

Thank you in advance.

edit retag flag offensive close delete report spam

Comments

Hi What app are you using to connect? Could you try with nRF Connect for Mobile and provide us the log trace please. What SDK are you using on your FW? Thanks

Roshan Rajaratnam ( 2017-12-07 16:36:19 +0100 )editconvert to answer

I am using a custom app to connect.

nRF Connect gives log trace: Error 133 (0x85): GATT ERROR When connecting.

Robert ( 2017-12-08 15:43:10 +0100 )editconvert to answer

I am assuming you are using your own FW here to test? Could you also test against one of our sdk examples if this behavior is the same on these phones?

Roshan Rajaratnam ( 2017-12-08 16:04:58 +0100 )editconvert to answer

Add an nRF Sniffer trace with wireshark to provide us with more info on what is happening. https://www.nordicsemi.com/eng/Produc... (this works with an nRF51 or nRF52 DK board)

David Edwin ( 2017-12-11 09:15:37 +0100 )editconvert to answer