Answer the question
In order to leave comments, you need to log in
Is there an analogue of the bat script for connecting from Android to the HC-05 Bluetooth module?
Hello!
I am assembling an electronic lock on the Arduino and the HC-05 Bluetooth module.
Everything works on the hardware, but the control is clumsy - you need to go to the terminal on Android, select a Bluetooth device, connect to it, then send the password, and then the lock works.
Please tell me, is it possible to make something like a bat-file (or some other solution) in order to put an icon on the main screen of the smartphone, when you click on it or start it, all these actions would be performed automatically?
That is, he approached the gate, clicked on the icon on the smartphone - the lock opened, after 3 seconds it automatically worked back and closed.
The module, its name and MAC address are always the same, do not change.
Thanks a lot!
Answer the question
In order to leave comments, you need to log in
If on the topic of the question, then yes, there is.
https://android.stackexchange.com/a/113982
or
https://stackoverflow.com/a/15146876
There are also utilities for android that automate actions, you can make a script that would monitor the device's bluetooth and when it appears in the visibility zone automatically connected and sent the password, went to the door - the lock opened, you don’t even need to get the phone.
But I recommend writing your own program, since it is not so difficult. You can use SL4A for example.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question