Module: Quectel EC200A
Firmware: EC200AEUHAR01A24M16
Host MCU: STM32
Operator: MAGTICOM (Georgia)
Protocol: MQTT over SSL (port 8883)
Problem description
We have multiple deployed devices using EC200A that connect to an MQTT server.
Sometimes the device cannot connect to the internet and MQTT fails with:
+QMTOPEN: 0,3
The strange part is:
- Sometimes the device works perfectly for weeks
- Sometimes it cannot reach the internet for hours or even days
- Then suddenly it starts working again without any change
We have already tested:
- different EC200A modules
- different SIM cards
- full power cycle of the device
The problem still occurs randomly .
Typical diagnostics when the problem occurs
AT+CEREG?
+CEREG: 0,0
AT+CGATT?
+CGATT: 0
AT+QNWINFO
+QNWINFO: "HSDPA","28202","WCDMA 900",3087
AT+CSQ
+CSQ: 15,99
AT+COPS?
+COPS: 0,0,"MAGTICOM",6
Signal strength looks acceptable.
After some time (sometimes minutes, sometimes much longer) the module finally registers to the packet network and MQTT works normally.
MQTT configuration
ATE0
AT+CGDCONT=1,"IP","internet"
AT+QMTCFG="recv/mode",0,0,1
AT+QMTCFG="SSL",0,1,2
AT+QSSLCFG="seclevel",2,1
AT+QSSLCFG="sslversion",2,4
AT+QSSLCFG="cacert",2,"cacert.pem"
AT+QSSLCFG="ignorelocaltime",2,1
AT+QSSLCFG="ciphersuite",2,0xFFFF
AT+QSSLCFG="sni",2,1
Connection:
AT+QMTOPEN=0,"v1c829ee.ala.eu-central-1.emqxsl.com",8883
AT+QMTCONN=0,"client","user","pass"
Questions
- Is it normal for EC200A to stay in
CEREG: 0,0for long periods? - Should the application always wait for
+CEREG: 1before activating PDP? - Could this be related to network scanning between LTE and WCDMA?
- Are there recommended AT settings for more stable network attachment?
Any advice or recommended initialization sequence would be greatly appreciated.