If a mobile phone is connected to KW38 and successfully paired and bound, peerDeviceId is 0. During normal communication, if an exception occurs or the distance is disconnected, the mobile app is disconnected first, and the car terminal is still waiting for the communication timeout to disconnect, then the mobile app is connected again, and peerDeviceId is 1. Will the pair be re-paired at this time or will the previous pair connect successfully? If you re-pair, if no pairing is selected, wait for peerDeviceId to be 0 to disconnect, can the app connect again successfully?
Hello @wjw2023
Could you please provide more details on the purpose of your application? If I am understanding correctly, you are trying to configure a whitelist, is this correct?
Depending on your application, you may find the KW38/KW36 Localization based on RSSI ranging Application Note useful. This App Note is based on Wireless UART project and should allow you to continuously scan or connect expected devices using whitelist. This is used to determine the quality of the signal and can be used in a localization system.
Regards,
Eduardo.