How to get AT command and ATcommand response of EHS6 | Thales IoT Developer Community
September 15, 2017 - 5:56am, 3580 views
I want to develope an application with EHS6. My situation is: i have a main board connect with EHS6 vi ASC0 for sending commandAT to the module EHS6. I can send all AT command to EHS6 via port ASC0 but I want to get these commands with application MIDLET Java inside of module EHS6, I don't know how to get these commands. Does anyone have an idea for this issue ?
If you wish to send the AT commands from MIDlet there is a special API for this. You can see the javadoc for more details. Aditionaly if you have installed the software from Gemalto you should also have few example projects under this (or similar depending on the OS) path: C:\Users\Public\Cinterion\EHS5 WTK Examples - please see AtCmdDemo project.
You can also find a short example here: https://iot-developer.thalesgroup.com/faq/encapsulate-command-method
Or longer one here: https://iot-developer.thalesgroup.com/tutorial/create-better-atc-manager
I send AT command from my developpement board to module EHS6 via ASC0, so want to get sub string of this command inside my Midlet for then publishing to MQTT AWS iot.
It's not possible to trace the serial interface from Java if it's used by the AT commands interpreter.
If you open the ASC0 port in Java all the traffic will come to your MIDlet and the external device will not be able to execute AT commands on that interface because the AT commands interpreter will not ba accessible on that port.
You'd have to implement a kind of bridge in your application that would read commands on serial interface and send them with Java API to the module. But there may be some restrictions and problems connected with such a solution, some more complicated scenarios could be even impossible.
I could catch the at-command from ASC0 now