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

Cannot reconnect automatically with a bonded device after disconnect

Hi:

I referenced to the example"ble_app_hids_keyboard",and finally,I can reconnect the phone automatically.But that project was a little complex,so I simplify the "service_init();" function. At last,the project only includes a service with two characteristics,and can reconnect to the phone. (nrf52832;s132 3.0;SDK12)

The service:"BLE_UUID_HUMAN_INTERFACE_DEVICE_SERVICE"

--CHAR1:"ENCODED_HID_INFORMATION_LEN" --CHAR2:"BLE_UUID_REPORT_MAP_CHAR"

But when I change the service's uuid or char's uuid to my own uuid, it cannot reconnect and even no bonding request.

QUE1:Why I cannot reconnect after change that uuid?

QUE2:If I want to use my own uuid(of service and char) and the devices can reconnect automatically after disconnect,what should I do? Thank you!

  • FormerMember
    0 FormerMember

    HID profile devices, keyboards and mouse, and are typically handled by the OS (Android, iOS, Windows(?)) automatically. The way these OS's recognize a HID device is that the services have the HID UUIDs defined by Bluetooth SIG. If changing UUIDs on a HID device, the OS's will not longer recognize the device as a HID device. From the OS point of view that device could have any functionality. Therefore, handling of that HID device with changed UUIDs has to be done "manually", using an app or connect from the Bluetooth settings.

Related