ELS61 RING not working | Thales IoT Developer Community
June 10, 2020 - 2:25pm, 5041 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
Hello,
Please check the RING line configuration. And if you are establishing voice calls to the module please note that not all ELS61 versions support voice calls.
Regards,
Bartłomiej
Bartłomiej,
I've tried both configurations(AT^SCFG="Gpio/****/RING0","std"): gpio and std. Both with the same result.
I'm using the R2 version which (according to you https://iot-developer.thalesgroup.com/threads/els61-atd-call) supports voice call:
ELS61-E R2
REVISION 02.000
A-REVISION 01.000.02
I still can make a call only once after startup. Any other thoughts?
regards
Hi,
If I'm not wrong, 'RING' URC is global it should occur on every interface. Could you please check on other AT channel (in parallel to stdout from your Java) if 'RING' occurs during second call? It will show us whether there is something wrong with the module or only your Java MIDlet is stuck.
Thanks,
Adam
Hello,
In addition to what Adam asked could you also paste AT^SCFG? output?
So for the first time it works and ATEvent() is called and then never again? Is there any spcecific processing inside? And how about RINGChanged() - is it also called once only?
What Cinterion SDK package (WTK libraries) have you used to build the MIDlet - was it issued for the module version which you are using?
Regards,
Bartłomiej
Bartłomiej,
I've stripped all processing inside this routine to make sure I don't do anything wrong. Just a simple println to see if it's responding. The same goes for the RINGChanged(), also just responding once.
Where can I see what SDK package I'm using? For all I know we are using the same for both the EHSx and ELS61 modules. So far this works.
regards
Adam,
I can still receive SMS messages on the same channel after using the RING, so I don't think the midlet is stuck.
Hello,
Did you try to observe if 'RING' occurs during second call on a standard hardware interfaces as Adam asked?
Generally it is advised to use the java libraries released in the installation package for the module that you use. There may also be changes in java libs especially when the module main revision number is changed. I don't know your EHS module's firmware version but I think that it's worth trying anyway. There may have been some changes applied that cause some incompatibility.
Please check here for the packeg for PLS62-W if you don't have it (Java_SDK folder):
https://iot-developer.thalesgroup.com/documentation/download-documentati...
Regards,
Bartłomiej
Bartłomiej,
I don't think I understand what Adam wants than, he's talking about a second AT channel you are talking about a hardware interface. Could you guys please guide me here?
I will try the latest SDK version from your link tommorow. But why the PLS62-W package as we're discussing the ELS61?
regards
RING URC should appear on standard hardware interfaces which support AT commands (like ASC0/1, USB0...). So Adam wanted you to check if this URC appears or not to verify if there is any general problem with this RING or if it is only not received in Java MIDlet.
I'm sorry for PLS62-W. I should have written ELS61-E R2 of course.
Regards,
Bartłomiej
Bartłomiej,
I'm not able to test the hardware interface as I don't have a development kit for the ELS61, only our own hardware with the modem placed.
regards
Pages