Gemalto is now part of the Thales Group, find out more.

You are here

2nd call of smoni causing IllegalStateException | Thales IoT Developer Community

June 20, 2015 - 5:04pm, 2079 views

I am using AT commands within Java on Netbeans 7.2 to check the signal strength before I attempt any FTP transmissions:

      String smoni_Response = atc_Cmd.send ("at^smoni\r") 

This works fine on the first pass and I am able to read all the response parameters - signal strength etc.

However if I re-check the the signal strength before I do a 2nd FTP transmission it immediately throws a IllegalStateException. This appears to indicate it is in an illegal state for the second time at^smoni has been issued. What ***** to be done to make it in a legal state for the command to be issued for a 2nd time ?

I would appreciate help in trying to understand why it is genenerating this exception on the second pass of at^smoni

Bobg