Exception while using Module Services - what is the cause? | Telit Cinterion IoT Developer Community
July 16, 2015 - 5:08pm, 8884 views
I get this exception while using modserv_3.47.jar and the same configuration as PocketDemoMIDLet, on a ConceptBoard running REVISION 02.000. The description of the error (getting temperature) looks different than the stacktrace (getSupplyVoltage) and following lines, plus the AT^SBV command is being reported as unknown by my device. Should it be known?
[ERROR] Error: AT^SBV +CME ERROR: Unknown java.lang.Exception: Error: AT^SBV\u000d\u000d\n+CME ERROR: Unknown\u000d\n - com.gemalto.m2m.slagent.common.gsm.GSMEngine.getSupplyVoltage(), bci=101 - com.gemalto.m2m.slagent.services.module.SupplyVoltageMonitor.checkValue(), bci=0 - com.gemalto.m2m.slagent.common.monitoring.ThresholdMonitor.run(), bci=2 - java.util.TimerThread.mainLoop(), bci=244 - java.util.TimerThread.run(), bci=1 [ERROR] Error getting board temperature java.lang.Exception: Error getting board temperature - com.gemalto.m2m.slagent.common.gsm.GSMEngine.getSupplyVoltage(), bci=119 - com.gemalto.m2m.slagent.services.module.SupplyVoltageMonitor.checkValue(), bci=0 - com.gemalto.m2m.slagent.common.monitoring.ThresholdMonitor.run(), bci=2 - java.util.TimerThread.mainLoop(), bci=244 - java.util.TimerThread.run(), bci=1 [DEBUG] [SupplyVoltageMonitor]: checking value: -1
The exception has been thrown because of the ERROR response from the AT interface which is used to communicate with the module inside the getSupplyVoltage() method.
"+CME ERROR: Unknown" does not mean hear that the command is unknown but that the command has replied with error with no additional explanation. If some additional message had been available for this error it would have been placed instead of "Unknown".
AT^SBV command should be known by the module. Does it happen each time you run the application? Please also try to issue this command manually from the console.
Thanks for your response.
The error always happens, every time I run the application. The command also responds ERROR when run directly to the console.
Please send me the ATI1 response.
Maybe there is some very old firmware in the module.
Sorry about the late response, I didn't receive any notification that this was added!
Could you please send also "ATI1"? The response which you have provided is for "ATI" in the ATI1 there is alo an A-REVISION number.
Btw. Could you please also check if the JRC MIDlet is running? (AT^SJAM=5). SBV command is driven by the Cinterion JRC MIDlet.
Thanks, the error was the lack of JRC.
How can I know which commands require the JRC Midlet?
There is no official list of the features handled by the JRC. Anyway - the JRC is an integrated part of the FW, so it is highly recommended to have it always working.