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

Does device with ANCS work well with Android?

Hi, there! Does peripheral with ANCS only be connected by iOS? I ran the ANCS demo in sdk 9.0, and it works well with iOS. Once an Android phone connect to it, it was connected, and then disconnected. The UART log says that the disconnect reason is 0x22, BLE_HCI_STATUS_CODE_LMP_RESPONSE_TIMEOUT in ble_hci.h. Below is Some earlier log, Apple Notification Service not discovered on the server. [DM]: >> dm_security_status_req [DM]: << dm_security_status_req As I know, some former sdk supports ANCS work with Android. We expect the product can work well with both iOS and Android. Is there any workaround? thanks!

Parents
  • About couple seconds. I comment the disconnect action when ancs gets a BLE_ANCS_C_EVT_DISCOVER_FAILED event, then disconnection doesn't happen like before when Android connects to ANCS device. It works well when ios connects to ANCS device too. I'm not sure if it is a feasible way. But this disconnection reason is BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION, not BLE_HCI_STATUS_CODE_LMP_RESPONSE_TIMEOUT, would it fix the issue acceptably?

Reply
  • About couple seconds. I comment the disconnect action when ancs gets a BLE_ANCS_C_EVT_DISCOVER_FAILED event, then disconnection doesn't happen like before when Android connects to ANCS device. It works well when ios connects to ANCS device too. I'm not sure if it is a feasible way. But this disconnection reason is BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION, not BLE_HCI_STATUS_CODE_LMP_RESPONSE_TIMEOUT, would it fix the issue acceptably?

Children
No Data
Related