I currently have a drawer lock model F5, which is typically installed inside drawers in rooms, shoe cabinets, wardrobes, and similar places. I possess a Bluetooth unlocking device A1, which functions as follows: when I use a successfully recorded NFC card, fingerprint, or password for verification, upon successful authentication, A1 initiates a Bluetooth connection with F5 and sends an unlocking command. Once F5 establishes a Bluetooth connection with A1 and receives the unlocking command, it performs the unlocking action.
It is a microcontroller program written in C language. How should I adjust it to reduce the failure of master-slave Bluetooth connections? When the Bluetooth connection fails, it always returns an error code 0x3E. The potential causes of this issue could be: the presence of many Bluetooth devices around, leading to a very crowded channel, or the master and slave devices are relatively far apart (more than 10 meters distance), resulting in very weak signal strength.
How can I resolve this issue and improve the speed of the master-slave Bluetooth connection?
I have attempted to adjust the frequency of the master-slave Bluetooth devices to ensure they are both centered at 2.44 GHz to mitigate Bluetooth connection issues caused by significant frequency deviation.
In fact, their connection speeds did improve.