ELS61 Modem: PDP Context Setting Problem | Thales IoT Developer Community
July 15, 2019 - 3:51pm, 2505 views
Hello everyone,
I try to use the ELS61 in order to establish a TCP/IP connection over LTE.
// Misc checks and settings
ati
Cinterion
ELS61-E R2
REVISION 02.000
OK
at+cmee=2
OK
at+cpin="0000"
OK
at+cpin?
+CPIN: READY
// set PDP APN
at+cgdcont=1,"IP","orange","",0,0OK
+PBREADY
at+cgdcont?
+CGDCONT: 1,"IP","orange.mnc001.mcc208.gprs","",0,0
at+creg?
+CREG: 0,1
OK
// Set internet connection profile
at^SICS=1,"conType","GPRS0"
OK
AT^SICS=1,"apn", "orange.mnc001.mcc208.gprs"
OK
AT^SICS=1,"dns1","8.8.8.8"
OK
// set TCP socket configuration
AT^SISS=1,"srvType", "Socket"
OK
AT^SISS=1,"conid","1"
OK
AT^SISS=1,"address","socktcp://37.187.106.16:1883"
OK
at^siso=1
OK
^SIS: 1,0,94,"PDP: connection failed"
at+cops?
+COPS: 0,0,"Orange F",7
^SIS: 1,0,94,"PDP: connection failed"
37.187.106.16:1883 is a public MQTT non-encrypted server (test.mosquitto.org)
Is their any mistake in my commands ?
Hi Olivier,
many network operators do not allow to activate two PDP contexts with the same APN name in LTE. I think you can check AT+CEER command:
-before test AT+CEER = 0
-after test AT+CEER.
Probably you will get following message:
+CEER: "SM activation error",155,"Multiple PDN connections for a given APN not allowed"
Please try to configure everything the same but using SICS profile 0, instead of 1 (also remember to change conid parameter in SISS command from 1 to 0). After that module should reuse active IP address from CGDCONT instead of trying to create new one.
Best regards,
Adam
It worked, I got a SISW: 1,1 and at^siso? returns what really looks like a TCP socket (although remote peer close it after that).
Thank you for your help.
Olivier