Part Number:CC256XSTBTBLESW
This is technically a dual mode question, but the forum only gave me the low energy forum as an option based on the SDK part number.
We have developed a project based on the HFPDemo code. I am trying to implement automatic reconnection with previously bonded mobile phones when they enter range. I am using SSP just works, no MITM protection. On coming back in range I use the HFRE_Open_Remote_Audio_Gateway_Port() to reconnect.
If I bond a phone and do NOT power cycle, the reconnect procedure works correctly. After I power cycle our device, the reconnect doesn't work. If I use "SetPairabilityMode 2", the reconnection works again. It still works even after I use "SetPairabilityMode 0" to turn off pairabilty again.
**NOTE - Always set to connectable
Initial bonding setup: set dmGeneralDiscoverableMode, set pmPairableMode_EnableSecureSimplePairing, publish Handsfree record using SDP
After bonding: delete Handsfree SDP record, set pmNonPairableMode, set dmNonDiscoverableMode
I have attached the output of the logger during the reconnect attempts, with a couple failures before setting SSP pairing mode and immediately disabling pairing mode and then shows the connection reestablished. Reconnection attempts occur every 30 seconds when out of range with a SDP search for handsfree AG and then the HFRE_Open_Remote_Audio_Gateway_Port() request on finding a matching record.
(Please visit the site to view this file)