Hi,
I have been developing a bluetooth application using Bluetopia stack on MSP430F5438A and PAN1323 using only SPP Demo.
I connect this setup to an android phone.
I require that the bonding between my device and phone even after reset power cycle.
To do this, I can successfully write the Bluetooth address and Link Key of the phone to the flash.
However, after power up, I retrieve the bd_addr and link_keys from flash and store them in LinkKeyInfo structure.
But when the phone tries to connect to my device, again a new link key is generated and on some phones connection is not successful.
How can I make the Bluetooth Host controller to understand that the phone is already paired?
How should I store the link keys?