This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

issue, As to indication communication with android app,

Hello,

I need your help, please review the following description and help to let me know the method to solve the issue,

thankful for your support in advance,

the symptom is ,

when using google app for ble communication with nrf51822, and trying to communicate as a indicator mode, 

I can't receive continuously after first touching in app in order to do indicate mode, after secondly touching in app, I can receive the data continuously, 

why ?

I update the log, please help to review it,

first touch, 

2018-11-19 16:26:59.344 13446-13446/com.example.android.bluetoothlegatt D/DeviceControlActivity: love PROPERTY_INDICATE
2018-11-19 16:26:59.347 13446-13446/com.example.android.bluetoothlegatt D/BluetoothLeService: love setCharacteristicIndication END
2018-11-19 16:26:59.347 13446-13446/com.example.android.bluetoothlegatt D/DeviceControlActivity: love PROPERTY_WRITE
2018-11-19 16:26:59.403 13446-13460/com.example.android.bluetoothlegatt D/BluetoothLeService: love onCharacteristicRead.
2018-11-19 16:26:59.404 13446-13460/com.example.android.bluetoothlegatt D/BluetoothLeService: love RAW_DATA format UINT8.
2018-11-19 16:26:59.417 13446-13460/com.example.android.bluetoothlegatt D/BluetoothLeService: love broadcastUpdate sendBroadcast execution

second touch, 

2018-11-19 16:27:13.713 13446-13446/com.example.android.bluetoothlegatt D/DeviceControlActivity: love PROPERTY_READ setCharacteristicIndication
2018-11-19 16:27:13.719 13446-13446/com.example.android.bluetoothlegatt D/BluetoothLeService: love setCharacteristicIndication END
2018-11-19 16:27:13.719 13446-13446/com.example.android.bluetoothlegatt D/DeviceControlActivity: love PROPERTY_INDICATE
2018-11-19 16:27:13.724 13446-13446/com.example.android.bluetoothlegatt D/BluetoothLeService: love setCharacteristicIndication END
2018-11-19 16:27:13.725 13446-13446/com.example.android.bluetoothlegatt D/DeviceControlActivity: love PROPERTY_WRITE
2018-11-19 16:27:13.802 13446-13499/com.example.android.bluetoothlegatt D/BluetoothLeService: love onCharacteristicChanged [B@3c4a623
2018-11-19 16:27:13.802 13446-13499/com.example.android.bluetoothlegatt D/BluetoothLeService: love RAW_DATA format UINT8.
2018-11-19 16:27:13.815 13446-13499/com.example.android.bluetoothlegatt D/BluetoothLeService: love broadcastUpdate sendBroadcast execution 
2018-11-19 16:27:13.893 13446-13499/com.example.android.bluetoothlegatt D/BluetoothLeService: love onCharacteristicChanged [B@76b9720
2018-11-19 16:27:13.894 13446-13499/com.example.android.bluetoothlegatt D/BluetoothLeService: love RAW_DATA format UINT8.

thanks.

Related