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

pc-ble-driver characteristics longer than 20 bytes cannot be read by a central

Viewers! Don't click on a similar issue or you will lose everything you have done!

Calling this method sd_ble_gatts_characteristic_add(...) with a characteristic value of 20 bytes can be read by the peer. However, if the characteristic is LONGER than 20 bytes NOTHING is read. THe peer is an Android and it has no problem reading characteristics longer than 20 bytes on other devices. I am using the nrf52840 dongle and the pc-ble-driver. Source code is written on a PC.

The problem is configuring the Reg-Cert-Data-List characteristic in the DIS.

If there is a way to set up a 'blob' (long) read it is not documented.

Parents Reply Children
  • There was no information on the peripheral (dongle) side. The Android just read one byte in the fail cases. I tried all kinds of different things and only got success when the size was reduced to 20.

    48 hours later its working --- and I have not done anything. Can't figure out why. Both the Android app and the PC code had been pushed aside for those days. Needed a breather I guess. So I will put this on hold until it comes back...and I hope it doesn't. We are too close to production and we have enough of an issue with the fact the pc-ble-driver does not save the CCCDs of the descriptors..

Related