How to command an android phone using AT commands sent by Bluetooth from a Delphi application ?
Background:
Older phones (such as Sony Ericsson K600i) are typically able to accept AT commands from:
- a data cable
- a Bluetooth connection
- an IRDA connection
But, At first it seems that android phones do not offer the same kind of commandability by Bluetooth / AT commands.
However, I was surprised to learn that actually there MUST BE a way to order an android phone to make a call using Bluetooth.
How do I know this?
Well: A car navigator (Garmin Camper 660) is able to use a Bluetooth connection to an android phone and the navigator is then able to initiate a voice call (and specify the number to call) after the Garmin Camper 660 has been properly Bluetooth paired with the phone.
So: If a car navigator can do it, How can I do the same from a Delphi application ?
a side question: How does the Bluetooth pairing work, eg: Do I pair the phone with my PC (on which the Delphi App runs on) or with my Delphi App ?
It could be as simple as use a virtual serial port to send the AT commands, but then I still need two things to make that work:
- How to find out the proper name of the virtual serial port so I can open it?
and
- How do I pair properly PC / Phone ?