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

NRF52840 connecion problem with windows 10

Hi to all,

i am developing a device with nrf52840 soc and i want connect to Windows 10 though ble connection. in my device i had implemented an HID service that should act as Mouse device and also i have other services. but i have a problem in connection with windows that sometimes happen and the problem is in this manner that 30 sec after that connection stablished windows terminate the connection and after termination my device start to advertise and then windows auto-connect to my device then immediately terminate the connection!! and then follow the auot-connect disconnect permanentl,but sometimes after the pairing all things work good without problem. when all things work good windows list my device under Mouse,Keyboard, & Pen list and when the problem happen windows list my device under other device list. i also attached the Ble connection dump between windows and my device when this problem happen.

there is anyone that can give me a advice to solve this problem??

UPDATE: after some investigation i noticed that disconnection is happen because windows try to read some thing from a char in one of my services that has (notify/read) properties and nrf52 did not respond to this request, and then after some time disconnection happen. then remove read prop from that char, but after that disconnection happen again because windows try to read from another char from HID service and agin NRF did not respond and again disconnection happen, in below screen shot you can see the sequence:

and also i attached BLE dump of this process again.

2_Connect_Disconnect_Always.pcapng

HidServiceReadProblem.pcapng

Related