COM.LTE (SIM7600G) HTTPINIT error
AT+HTTPINITcommand returns ERROR but I don't know why. The same code worked without problems when I had a 4G connection but now with 3G it doesn't work. Please see the log below:
Module Reset, please wait RDY +CPIN: READY SMS DONE PB DONE AT+CPIN? +CPIN: READY OK AT+CSQ +CSQ: 20,99 OK AT+CGREG? +CGREG: 0,5 OK AT+COPS? +COPS: 0,0,"Swisscom Things Mobile",2 OK AT+HTTPINIT ERROR
felmue last edited by felmue
did you check if the SIM7600G has received an IP address using
also did you try to issue an
AT+HTTPTERMcommand, maybe HTTP was already initialised?
AT+CGPADDR +CGPADDR: 1,0.0.0.0 OK AT+HTTPTERM ERROR
felmue last edited by
ok, so for whatever reason the SIM7600G did not receive an IP address. That is probably the reason HTTP init fails.
Have you set the APN? Maybe the 3G APN is different from the 4G APN?
Veto6017 last edited by Veto6017
I'm using a SIM card from thingsmobile and as far as I understand the APN should always be the same. I've just contacted the thingsmobile support and they did a SIM reset. Sadly I'm now always getting a 4G connection and everything works fine.
I've tried with
AT+CNMP=48to disable LTE connections to further debug but the setting is reset after
AT+CRESETand also after a power reset. Although the manuals states: The set value will retain after module reset. I'm able to execute
AT+HTTPINITafter changing preferred mode selection but I want to try it after a reset.
Do you have an idea how I can force the SIM7600 to connect using 3G?
Please also see the logs below.
Changing APN without success AT+CGDCONT=1,"IP","TM" OK AT+CGPADDR +CGPADDR: 1,0.0.0.0 OK AT+CGDCONT=? +CGDCONT: (1-24),"IP",,,(0-2),(0-4),(0-1),(0-1) +CGDCONT: (1-24),"PPP",,,(0-2),(0-4),(0-1),(0-1) +CGDCONT: (1-24),"IPV6",,,(0-2),(0-4),(0-1),(0-1) +CGDCONT: (1-24),"IPV4V6",,,(0-2),(0-4),(0-1),(0-1)
When I have a 4G connection it works AT+CGPADDR +CGPADDR: 1,10.118.92.113 OK AT+COPS? +COPS: 0,0,"Swisscom Things Mobile",7 OK AT+HTTPINIT OK
Changing Preferred mode selection AT+CNMP? +CNMP: 2 OK AT+CNMP=48 OK AT+CNMP? +CNMP: 48 OK AT+COPS? +COPS: 0,0,"Swisscom Things Mobile",2 OK AT+HTTPINIT OK
When I use
AT+CNMP=48to disable LTE connections and then check the current IP address using
AT+CGPADDRshows no IP (0.0.0.0) but calling
AT+HTTPINITworks without an error and after this command I've got a valid IP (see the log below). I will check the device in the field again on the end of this week.
AT+COPS? +COPS: 0,0,"Swisscom Things Mobile",7 OK AT+CGPADDR +CGPADDR: 1,10.118.68.169 OK AT+CNMP=48 OK AT+CGPADDR +CGPADDR: 1,0.0.0.0 OK AT+CGPADDR +CGPADDR: 1,0.0.0.0 OK AT+COPS? +COPS: 0,0,"Swisscom Things Mobile",2 OK AT+CGPADDR +CGPADDR: 1,0.0.0.0 OK AT+HTTPINIT OK AT+CGPADDR +CGPADDR: 1,10.109.3.47 OK
felmue last edited by
thank you for reporting back - this is quite interesting.
AT+COPS=1,2,"22802",2to manually select UTRAN (2) instead of EUTRAN (7).
Note: "22802" is provider Sunrise in Switzerland.
AT+COPS=0gets you back to automatic selection.