EHS6T Java Modem Control | Telit Cinterion IoT Developer Community
September 30, 2016 - 2:57pm, 1787 views
Hello,
Using the EHS6 terminal modem, is there a way to control the modem through the JAVA engine without using the ATcommand library?
I would like to RX data to the java engine one character at a time from the ASC0 serial port and then send forward the data to the modem one character at a time. I am looking for a way to not have to send the entire AT command all at the same time and from what I understand using the ATcommand library you must send the entire AT command string at the same time.
Thanks for your help,
Thomas
Hello,
If you want to execute AT commands from within the Java MIDlet you can only do that using the provided ATCommand class where you have the send() methods that take Strings as arguments. And you must ****** that the command is properly formatted that means it starts with the "AT" string and ends with "\r".
You can send the AT commands character by character directly to the serial interface without the control of Java application - the command will be executed after receiving the <CR> character.
So if you want to receive the characters on serial interface, process them and then execute as AT commands your code ***** to detect the begin and end of the command and send it as a whole with the ATCommand class instance.
Regards,
Bartłomiej