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

HID device not autoconnecting

I am using SDK14 and SD132 V5 on nrf52382. I tested the hids_mouse example and it autoconnected without any issues to the phone. In my application, I have 2 modes. Config mode which has user defined services and Fast mode which has HIDS services from the mouse example. Once I have authenticated the user in config mode, the user can access the device in fast mode. When I connect it manually from nrf_connect, the device connects and performs its functions. I am also able to see the HID services in nrf connect app. The only problem is the device does not auto connect to the phone like the mouse example. Any idea as to why this behavior occurs ?

Parents
  • Hi, nrfConnect is on Android. Yes I have bonded and paired with the device. I have the ble_adv_on_disconnect_disabled flag set to true. That's the expected behavior for my application. When the button is pressed for more than 5 secs the device advertises in Config mode and when the button is pressed slightly it advertises in fast mode where it should auto connect if paired. Since HID services are advertised in fast mode, the android should autoconnect to those services.

Reply
  • Hi, nrfConnect is on Android. Yes I have bonded and paired with the device. I have the ble_adv_on_disconnect_disabled flag set to true. That's the expected behavior for my application. When the button is pressed for more than 5 secs the device advertises in Config mode and when the button is pressed slightly it advertises in fast mode where it should auto connect if paired. Since HID services are advertised in fast mode, the android should autoconnect to those services.

Children
No Data
Related