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

what hex value to be written on the the MCP (immediate alert service) for IOS

Hello Everyone,

I have been working around BLE profiles for few months and i have made several tested for each service via MCP(android) everything works fine but now i switched to IOS(MCP) when i connect for the first time it is asking static passkey and then its get connected and bonded when it comes to writing values like for an example am using immediate alert service when i press the write button it is asking me to write the hexadecimal values so i wrote 0*01 for mild alert but nothing happens in the NRF51DK the same functionality if i do in Android it makes the LED ON the Developement board so i request anyone could you suggest me how to test the proxmity service and immediate alert service in the IOS MCP do i have to make some changes in the functionality of the program or please tell me what needs to be done

Thank you prabhu

  • could you please tell me how to erase the bonded information after every disconnect event on IOS

  • Hi Prabhudurai,

    We need to find a way to debug this properly.

    As I understand, after the first bond. You disconnect, and then you connect again but the device won't work. Could you explain clearly step by step ?

    My suspicion is that bond information was not stored properly, so that when you re-bond the iPhone tried to encrypt the link with the old bond information but the nRF51 reject it. You need to run in debug mode and check if bond information is stored and re-used.

    Could you clarify you see the same issue with the stock example in the SDK ? Have you tried to test with nRFToolbox app ?

  • Thank you so much for your kind reply yes you were right after the first bond then i disconnected and trying reconnect with theNRF51DK device but it wont function or receive any information from the IPhone NRFMCP and NRF TOOLBOX , but its completely oppoiste it is working very well on the android phone NRFMCP/NRF TOOLBOX, am also thinking in the same way how can i store the bonded information do i need to add any external functions or what should i do for that issue?

    I have also tried the proxmity example on the NRFTOOLBOX by using IOS its got connected for the first bond after disconnecting for the first time and while reconnecting again the device is not at all functioning and moreover all the examples are like that for the first time it is asking for pairing then we need to delete or erase the bond inforamtion for future connectivity could you please try on your side with your iphone you too were facing the same issue like me for reconnectivity

  • Prabhudurai: I don't know what else I can help you here. I don't have other advice beside what I suggested before. You need to understand what happens when the device doesn't want to bond and disconnect. Sniffer trace should be provided. Please provide the hex file that you used to test. Also please do nrfjprog --readcode filename.hex and provide me the filename.hex, after you have bonded with the iOS device.

Related