Telit Cinterion IoT Developer Community
AT commands via Java MIDlet - UART via Java MIDlet to AT interpreter pipe
Showcase, May 31, 2016 - 4:09pm, 7954 views
Description:
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.
Configuration:
The port can be configured in the jad file. There is also a configurable end of session character which closes the application.
Download File ATPipeExample.zip
(zip | 165.45 KB)
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: created
ATPipeExample: startApp called
SerialConnection: Conected to COM0:115200
ATService: started
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
- com.gemalto.m2m.at.ATService$ServiceThread.run(ATService.java:147)
ATService: stopped
SerialConnection: disconnected
MIDlet:com.gemalto.m2m.ATPipeExample exited
You have placed the same question here: https://iot-developer.thalesgroup.com/threads/commands-java-midlet-question