AT Command API for EHSx | Telit Cinterion IoT Developer Community
March 16, 2015 - 4:00pm, 3757 views
I'm currently porting a small Java aplication from a TC65i to a EHS5-E mode.
after modifying a few imports it appears to work, but I'm facing an exception when creating the ATCommand object.
According to the documentation:
5.8.4 AT Command API
Before using a new AT Command instance it should be reset (AT&F). Because of the employed
multi-MIDlet architecture another MIDlet may have used this instance before, but with a differ
ent setup, e.g. echo.
However, when I restart the aplication I'm always getting an IllegalStateException:
java.lang.IllegalStateException: openATCommand: no channel available.
I tried to run "at&f" command as suggested but i keep getting the error until I power off the modem and restart it from scratch.
Can anybody give me a clue why I'm having this issue?
Thanks in advance.
Hi, I got it to work by sending
resp = at.send("AT&F");
in the destroyapp() function.
I think at.release() is what did the trick.