Hi,
I am porting a M66 GSM project to EC21 GSM module.
I have one question to ask You about local IP address on EC21 module.
Here is my log from M66 module, it is working fine, SIM card has own static IP address (not public IP) using private APN, I can connect from my server to M66 GSM module without any problem:
M66-FA
AT
OK
AT+CPIN?
+CPIN: READY
OK
AT+CREG?;+CSQ
+CREG: 0,1
+CSQ: 24,0
OK
AT+GSN
867322039990635
OK
AT+CGATT=0
OK
AT+QISRVC=2
OK
AT+QISERVER
OK
AT+QILOCIP
172.26.38.162
AT+QISCON?
SHOW APPTCPIP CONTEXT
+QIDNSIP:0
+QIPROMPT:1
+QIHEAD:0
+QISHOWRA:0
+QICSGP:1
Gprs Config APN:myPrivateAPN
Gprs Config UserId:
Gprs Config Password:
Gprs Config inactivityTimeout:0
App Tcpip Mode:0
I would like to achieve the same on the EC 21 module.
Here is my log from EC21:
AT
OK
AT+CPIN?
+CPIN: READY
OK
AT+CREG?;+CSQ
+CREG: 0,1
+CSQ: 22,99
OK
AT+GSN
867962044540295
OK
AT+QICSGP=1,1,“myPrivateAPN”,"","",0
OK
AT+QIACT=1
OK
AT+QIOPEN=1,1,“TCP LISTENER”,“127.0.0.1”,0,2020,0
OK
+QIOPEN: 1,0
AT+QISTATE=0,1
+QISTATE: 1,“TCP LISTENER”," 10.6.10.198 ",0,2020,3,1,1,0,“uart1”
OK
I can’t connect to the unit from my server using static IP address of SIM card 172.26.38.162.
How can I check the local IP address of SIM card?
Command AT+QISTATE=0,1 returns with IP address 10.6.10.198 but my SIM card has IP address 172.26.38.162
How can I resolve this problem?
Thank You.