I have an application running on Win that the JavaScript would capture the string from a webpage and wake up the cmd, cmd would have the parameter as below.
bridgetool.exe -c serial -p com1: -b 384000 -s string_from_webpage
bridgetool.exe
is software that transfers the string into the RS232 String and sends the string via comport which defined in the CMD line.
-s
is the string parameter from the webpage.
I want to do the same thing on Android. But instead of sending it via Serial, it would send the information via Bluetooth. And use a Bluetooth to the serial module to transfer this order.
I am not an Android programmer so before I start to work, I want to make sure that Android can do:
- Is it possible to call terminal and pass the parameter in Android?
I understood that I can use some app to run a terminal command and send information via Bluetooth. But is it possible that an APP/Script can call the Terminal APP and pass the parameter? Like what I did on Windows. So the Terminal can transfer the parameter into an RS232 String and send it via Bluetooth?