Telit Cinterion IoT Developer Community
AT commands via Java MIDlet - UART via Java MIDlet to AT interpreter pipe
Showcase, May 31, 2016 - 4:09pm, 7363 views
This is a short example of a pipe application for sending AT commands from UART interface via custom Java MIDlet to the module and sending back the answers to the UART interface. URC's are also sent to the UART interface.
For sending AT commands to the module the additional application is not needed. But this is just an example. There could be solutions where some additional processing is done before sending commands to the module.
The port can be configured in the jad file. There is also a configurable end of session character which closes the application.
Hello, this program is functional? this is what I get. After menssage "Ready for the next command..." there is no one reaction when typing commands, wrong commands or even typing "endOfATSessionCharacter".
maybe is necesary to change something to run it or I'm doing something wrong?
also I got the following, I didnt change the code, just imported the project
ATPipeExample: startApp called
SerialConnection: Conected to COM0:115200
ATPipeExample: destroyApp called
Ready for the next command...
java.io.IOException: Stream closed
- com.sun.midp.io.BufferedInputStream.ensureOpen(), bci=11
- com.sun.midp.io.BufferedInputStream.read(), bci=8
You have placed the same question here: https://iot-developer.thalesgroup.com/threads/commands-java-midlet-question