Autoconnect HC-05 to phone (find phone with bluetooth)

Hello!

I am working on a project and I have to detect the presence of a phone in the area that has Bluetooth enabled. I use HC-05 and I managed to find the phone with AT + INQ only when it is visible (about 120 seconds).
Do you have any idea how I could find it anytime when it has Bluetooth ON ?, even if it's not visible; like it does the unit in the car that automatically connects or the hands-free headphones.

Or if you know another device that can handle this task...

Thank you,
Michael

HC05 is BT 2.0 and has limited AT commands. It helps if you have one that’s a bit more capable. Research BT versions.

Thanks for the answer!

HC-05 in the documentation it also has AT + LINK = address (if the Bluetooth device is in the pair list, the connection can be built directly without inquiring) ... but it gives me FAIL every time although they are paired.

I will search another device but, first, I want to try harder with this one :slight_smile:

HC-05 has sufficient AT commands to do exactly what you want with an HC-06, so I assume it will with any other Bluetooth, and all you need is the phone's MAC address. Maybe
http://www.martyncurrey.com/connecting-2-arduinos-by-bluetooth-using-a-hc-05-and-a-hc-06-pair-bind-and-link/
can help.

Yes, I have the phone MAC.
I will try the steps from your link, thank you!