Thales' cellular IoT products business is now part of Telit Cinterion, find out more.

You are here

ELS61 RING not working | Telit Cinterion IoT Developer Community

June 10, 2020 - 2:25pm, 6441 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