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

nrf52 in central role doesn't see characteristics on android

Hi! I've created a peripheral on android with a custom service with several characteristics I can see characteristics with nrf connect app for android and I can write into them and read from them. I'm also able to find services using nrf52 via nrfconnect for windows, but i cannot see characteristics. The connection falls in a while with "Gatt timeout" error. It works fine with the same characteristics on iphone. Any ideas?

Parents
  • Hmmm... Looks like created by nrfconnect works, but i see no difference between my characteristic and the created by nrfconnect one. It is visible if i set PROPERTY_READ and PERMISSION_READ or PROPERTY_WRITE and PERMISSION_WRITE, but something goes wrong if I use both of them the same time, like this:

    BluetoothGattCharacteristic characteristic = new BluetoothGattCharacteristic(characteristicUUID,
                BluetoothGattCharacteristic.PROPERTY_READ | BluetoothGattCharacteristic.PROPERTY_WRITE,
                BluetoothGattCharacteristic.PERMISSION_READ | 
                BluetoothGattCharacteristic.PERMISSION_WRITE);
    
Reply
  • Hmmm... Looks like created by nrfconnect works, but i see no difference between my characteristic and the created by nrfconnect one. It is visible if i set PROPERTY_READ and PERMISSION_READ or PROPERTY_WRITE and PERMISSION_WRITE, but something goes wrong if I use both of them the same time, like this:

    BluetoothGattCharacteristic characteristic = new BluetoothGattCharacteristic(characteristicUUID,
                BluetoothGattCharacteristic.PROPERTY_READ | BluetoothGattCharacteristic.PROPERTY_WRITE,
                BluetoothGattCharacteristic.PERMISSION_READ | 
                BluetoothGattCharacteristic.PERMISSION_WRITE);
    
Children
No Data
Related