ELS61 RING not working | Telit Cinterion IoT Developer Community
June 10, 2020 - 2:25pm, 5918 views
Dear,
I'm using the RING event within the EHSx and TC65i modems to generate incoming events. Now I want to do the same on the ELS61 and this works only once after rebooting the device.
I want to make a phone call to the module, get the ring event and do something, next to be able to make the phone call again. On the EHSx and the TC65i this works fine but on the ELS61 the module gives no response on up following calls until I restart the modem. All other features like incoming SMS and internet connections keep working fine.
Am I missing something?
See my code below:
public static ATCommand atc; public static AtListener atcListener;
public void startAtListener() { try { atc = new ATCommand(false, true, false, false, false, false); atcListener = new AtListener(); atc.addListener(atcListener); atc.send("AT+CMGF=1\r"); atc.send("AT^SSMSS=0\r"); atc.send("AT+CNMI=2,1,0,0,1\r"); atc.send("AT+CSCS=GSM\r"); atc.send("AT+CTZR=1\r"); } catch (Exception ex) { System.out.println ("Exception found: " + ex.toString() + "\r");
} }
public class AtListener implements ATCommandListener {
public void ATEvent(String event) {
System.out.println("URC: " + event + "\r");
try{
if(event.indexOf("RING") >=0){ System.out.println("Incoming ring\r");
}
if(event.indexOf("+CMTI") >=0){ System.out.println("Incoming SMS\r"); }
} catch (Exception ex) { System.out.println ("Exception found: " + ex.toString() + "\r"); } }
}
Regards
Bartłomiej,
I've downloaded all the latest software for the ELS61. When I try to install the software for/with Netbeans as stated in the Java Users Guide I come up with the followng issues:
I've tested the above with both the provided version of Netbeans 7.2 in the installation file and the downloaded version from the Netbeans website. Both with the same result.
You should test this and upgrade your documentation.
regards
Bartłomiej,
I build the application with the lastest SDK for the ELS61. It failed and after some research it seemed to be caused by the Proguard obfuscator. I turned off the obfuscation and all goes well.
It seems not to matter which SDK I use but there is an issue with the obfuscation. Any thoughts on this?
regards.
Hello,
Obfuscation is sometimes causing strange problems. But usually you get some exception or error. So the testing is necessary after obfuscation. Here it was really looking like something else, I didn't think about obfuscation especially that you probably didn't mention it either.
One thing is not clear for me - was the same obfuscated MIDlet working for EHSx? And what EHS firmware do you have on the module ('ATI1' reply)?
Anyway I recommend dedicated libraries for ELS especially if the EHS module version is not new.
Regards,
Bartłomiej
Bartłomiej,
When I put the same obfuscated files into either the EHS8 or the ELS61 the problem only occures on the ELS61.
The AIT1 for the EHS8:
We have several modules (hardware) with either the EHS8 or the ELS61 installed. I tried all of them to exclude any hardware issues.
regards
Hello,
ELS61-E R2 is much newer than EHS8 REVISION 03.001. So there were many updates in the firmware and possibly Java libraries. That is why new ones are recommended.
Also an important difference is that for the old modules there is cwmlib_1.0.jar needed which contains API for AT commands and in the newer module this is built into the firmware.
So maybe you should not obfuscate the listeners being part of the standard AT commands API. I'd rather imagine that the callback would not work at all if that was a problem. But maybe it's worth trying anyway.
Best regards,
Bartłomiej