Problem connecting desktop to nrf52832 using usbuart-to-ble converter

Hello. I have a device that connects to desktop app through usbuart-to-ble converter and I'm trying to simulate it using nrf52832. I've started from ble_blinky example using Keil Uvision. Advertising works perfectly, but when I try to connect the device, desktop app stops to respond. Using ble sniffer i investigate that the problem is on nrf side. As I understand, desktop app try to write/read attributes, that are not present in device. On screenshot you can see that nrf responds with error "INVALID HANDLE". So I tried to investigate what is Attribute Handle and how to change it programmatically, but I couldn't find any suitable solution. So here's the question: can I change attribute value programmatically and in which way I should do it?    

  • The peripheral is behaving as expected if there is no valid handle there, typically services and characteristic handles are assigned chronologically without holes in the order they are initialized, there is little flexibility here. Sounds to me that Windows may be caching some information here, have you tried remove the device from BT settings and turned BT off/on afterwards.

    Kenneth

Related