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

ANCS and nrf8001

I used nrf8001 to implement ANCS.It working fine.But when it disconnect for a while and reconnect(reconnect successed).I found Iphone can't send any ANCS message to nrf8001 until turn off/on bluetooth on iphone and reconnect again and it can work fine.

Is it IOS bug or nrf8001 limitation ?

Parents
    1. Is there any Error Data that is present in the Pipe Error Event ? I suspect there is some Error Data present.

    2. The code as you have it will call lib_aci_close_remote_pipe() multiple times when multiple pipe status events arrive so some of them will definitely fail, so adding a guard condition so that it is not sent multiple times is good.

    3. Once you have successfully closed the pipe and the pipe is now present in the closed pipes, then you need to do an Open Remote pipe in the same way as you did the close above.

Reply
    1. Is there any Error Data that is present in the Pipe Error Event ? I suspect there is some Error Data present.

    2. The code as you have it will call lib_aci_close_remote_pipe() multiple times when multiple pipe status events arrive so some of them will definitely fail, so adding a guard condition so that it is not sent multiple times is good.

    3. Once you have successfully closed the pipe and the pipe is now present in the closed pipes, then you need to do an Open Remote pipe in the same way as you did the close above.

Children
No Data
Related