Hello Quectel Support,
I am trying to connect an EC200U-CN module to a cloud MQTT broker (AWS IoT Core) using MQTT over TLS on port 8883, using X.509 mutual TLS authentication. The same module/firmware/certificate configuration connects successfully over a standard consumer SIM, but fails consistently when using an IoT-specific M2M SIM/APN.
Module / Network Details
Module : EC200U-CN
Firmware : EC200UCNAAR03A09M08
SIM : IoT/M2M SIM (carrier-provided APN)
TLS : X.509 mutual TLS (client cert + private key)
- LTE / PDP Connection – Working
AT+CEREG?
+CEREG: 0,1
OK
AT+QIACT=1
OK
AT+QIACT?
+QIACT: 1,1,1,“10.x.x.x”
OK
- DNS Resolution – Working
AT+QIDNSGIP=1,“.amazonaws.com”
OK
+QIURC: “dnsgip”,0,1,60
+QIURC: “dnsgip”,“”
- Raw TCP Connectivity to Broker Port 8883 – Working
AT+QIOPEN=1,1,“TCP”,“.amazonaws.com”,8883,0,1
OK
+QIOPEN: 1,0
AT+QISTATE=1,1
+QISTATE: 1,“TCP”,“”,8883,0,2,1,1,1,“usbat”
OK
Therefore the broker endpoint and port 8883 are reachable from the modem over this SIM.
- Certificate Files – Present in UFS
AT+QSSLCFG=“cacert”,2,“UFS:root-CA.crt”
AT+QSSLCFG=“clientcert”,2,“UFS:client.crt”
AT+QSSLCFG=“clientkey”,2,“UFS:client.key”
(all return OK)
- TLS Configuration
AT+QSSLCFG=“seclevel”,2,2
AT+QSSLCFG=“sslversion”,2,3
AT+QSSLCFG=“ciphersuite”,2,0xC02F
AT+QSSLCFG=“ignorelocaltime”,2,1
AT+QSSLCFG=“sni”,2,1
(all return OK)
- Direct TLS Test – Failing
AT+QSSLOPEN=1,2,0,“.amazonaws.com”,8883
OK
+QSSLOPEN: 0,579
AT+QIGETERROR
+QIGETERROR: 579,ssl handshake failed
- MQTT Test – Consistent with TLS Failure
AT+QMTCFG=“ssl”,0,1,2
AT+QMTOPEN=0,“.amazonaws.com”,8883
OK
+QMTOPEN: 0,5
- Cipher Suites Tested
0xFFFF (all supported ciphers)
0xC02F (ECDHE-RSA-AES128-GCM-SHA256)
Both result in the same:
+QSSLOPEN: 0,579
+QIGETERROR: 579,ssl handshake failed
Summary
LTE registration : PASS
PDP / IP : PASS
DNS : PASS
TCP to broker on 8883 : PASS
Certificate files in UFS : PASS
TLS handshake (QSSLOPEN) : FAIL - Error 579
MQTT open (QMTOPEN) : FAIL - Result 5
Key observation: identical module, firmware, and certificate configuration succeeds on a standard consumer SIM but fails only on the IoT/M2M SIM path, always at the TLS handshake stage rather than TCP or DNS.
Questions
- Is there a known TLS/mTLS handshake compatibility issue on firmware EC200UCNAAR03A09M08, particularly with AWS IoT-style “-ats” endpoints?
- Could differences in SIM/APN routing (e.g., MTU size, packet fragmentation handling) plausibly cause a TLS handshake to fail at error 579 while a plain TCP connection succeeds?
- Is there a newer/recommended firmware build for EC200U-CN with improved AWS IoT Core TLS support? If so, could you provide the firmware package and QFlash upgrade procedure?
- Is there any additional SSL/TLS debug logging available to identify the exact stage of handshake failure (e.g., ClientHello, Certificate exchange, Finished) beyond the generic error 579?
I can provide additional logs if needed.
Thank you.