Hi! I'm working on HID mouse example on SDK 13.0.0. I'm supposed to use this as a low power media button control.
I've done a few modicifations on the code for power optimizations, such as setting TX power, and set the preferred connection paramaters slightly according to Android spec.
This setup has been operational for a good time now, but I seem to have issues connecting the nRF52 as peripheral to my Huawei P9 Plus, running Android 7.0.
The issue seems to be service discovery when the phone connects to the nRF52 initially. From the nRF log of the phone it seems like the service discovery suddenly stops, even a service refresh stops. I've cross-checked with a Samsung Galaxy S5 running Android 6.0.1, an iPhone with unknown iOS version, and a Windows 10 computer. All of them seem to connect to and function with the nRF52 without any issues. This is a non-constant problem, because I am sometimes able to succesfully connect to the device, and use it as a remote for the Huawei. When they are able to bond and succesfully do a service discovery I can have them operating for hours, even reconnecting after the Huawei has been out of reach is successfull.
Could this be a problem related to service discovery on Android 7.0? Any help would be appreciated.
The project file is located here:
https://github.com/petter15/ble_app_hids_mouse
nRF log from service discovery attempt on Huawei P9 Plus. Service discovery apparentally failed.
Wireshark sniff file from connection between nRF52 and Huawei P9 plus. Connection succeeded and device operational.
nrf_media_ctrl_21.03.18_nRF52_P9Plus_fullfuctional_reference.pcapng
Wireshark sniff file from connection between nRF52 and Huawei P9 Plus. Three attemps of connecting were made. The two first failed, while the last connection attempt succeeded and was able to make the device operational.
nrf_media_ctrl_21.03.18_nRF52_P9Plus_start-failure_then_functional.pcapng