Facing issue with EC200U to connect with AWS

Dear Quectel Team,
I am trying to connect My EC200U-CN module with AWS IoT core MQTT but i am facing an issue with the same kindly help me out to solve this i have attached the AT command list i am using for this

ATI
AT+CPIN?
AT+QIACT?
AT+CSQ
AT+CEREG=1
AT+CREG=1
AT+CEREG?
AT+CREG?
AT+QSSLCFG="cacert",1,"cacert.pem"
AT+QSSLCFG="clientcert",1,"client.pem"
AT+QSSLCFG="clientkey",1,"user_key.pem"
AT+QSSLCFG="sslversion",1,4
AT+QMTCFG="version",1,4
AT+QSSLCFG="seclevel",1,1 or AT+QSSLCFG="seclevel",1,2
AT+QMTCFG="ssl",1,0,1 or AT+QMTCFG="ssl",0,1,1
AT+QSSLCFG="sni",1,1
AT+QSSLCFG="ignorelocaltime",1,1
AT+QIDNSGIP=1,"xxxxxxxxxx.amazonaws.com"
AT+QPING=1,"xxxxxxxxxxxxx.amazonaws.com"
AT+QMTOPEN=1,"xxxxxxxxx.amazonaws.com",8883
AT+QMTCONN=1,"demo"    <------------- Getting error in this line

ATI
ATI
Quectel
EC200U
Revision: EC200UCNAAR03A09M08

OK
AT+CPIN?
AT+CPIN?
+CPIN: READY

OK
AT+QIACT?
AT+QIACT?
+QIACT: 1,1,1,"100.123.149.31"

OK
AT+CSQ
AT+CSQ
+CSQ: 19,99

OK
AT+CEREG=1
AT+CEREG=1
OK
AT+CREG=1
AT+CREG=1
OK
AT+CEREG?
AT+CEREG?
+CEREG: 1,1

OK
AT+CREG?
AT+CREG?
+CREG: 1,1

OK
AT+QFLST
AT+QFLST
+QFLST: "UFS:boot",15004
+QFLST: "UFS:firm",286000
+QFLST: "UFS:gnss_data",4644
+QFLST: "UFS:gnss_loca",47
+QFLST: "UFS:gnss_time",21
+QFLST: "UFS:cacert.pem",1188
+QFLST: "UFS:user_key.pem",1675
+QFLST: "UFS:client.pem",1220

OK
AT+QSSLCFG="cacert",1,"cacert.pem"
AT+QSSLCFG="cacert",1,"cacert.pem"
OK
AT+QSSLCFG="clientcert",1,"client.pem"
AT+QSSLCFG="clientcert",1,"client.pem"
OK
AT+QSSLCFG="clientkey",1,"user_key.pem"
AT+QSSLCFG="clientkey",1,"user_key.pem"
OK
AT+QSSLCFG="sslversion",1,4
AT+QSSLCFG="sslversion",1,4
OK
AT+QMTCFG="version",1,4
AT+QMTCFG="version",1,4
OK
AT+QSSLCFG="seclevel",1,1
AT+QSSLCFG="seclevel",1,1
OK
AT+QMTCFG="ssl",1,0,1
AT+QMTCFG="ssl",1,0,1
OK
AT+QSSLCFG="sni",1,1
AT+QSSLCFG="sni",1,1
OK
AT+QSSLCFG="ignorelocaltime",1,1
AT+QSSLCFG="ignorelocaltime",1,1
OK
AT+QIDNSGIP=1,"a4ldutufacmsk-ats.iot.eu-north-1.amazonaws.com"
AT+QIDNSGIP=1,"a4ldutufacmsk-ats.iot.eu-north-1.amazonaws.com"
OK

+QIURC: "dnsgip",0,3,59

+QIURC: "dnsgip","13.48.17.77"

+QIURC: "dnsgip","13.61.204.80"

+QIURC: "dnsgip","16.170.10.176"
AT+QPING=1,"a4ldutufacmsk-ats.iot.eu-north-1.amazonaws.com"
AT+QPING=1,"a4ldutufacmsk-ats.iot.eu-north-1.amazonaws.com"
OK

+QPING: 0,"13.48.17.77",64,236,255

+QPING: 0,"13.48.17.77",64,196,255

+QPING: 0,"13.48.17.77",64,204,255

+QPING: 0,"13.48.17.77",64,240,255

+QPING: 0,4,4,0,196,240,225
AT+QMTOPEN=1,"a4ldutufacmsk-ats.iot.eu-north-1.amazonaws.com",8883
AT+QMTOPEN=1,"a4ldutufacmsk-ats.iot.eu-north-1.amazonaws.com",8883
OK

+QMTOPEN: 1,0
AT+QMTCONN=1,"demo"
AT+QMTCONN=1,"demo"
OK

+QMTCONN: 1,1

+QMTSTAT: 1,3 <--------- getting error here

kindly help me out with this

Hi ,
Based on your description, I have the following suggestions:

  1. Check if the entered username and password are correct.
  2. Ensure that the client ID is not occupied.
  3. Rebuilding the MQTT connection and attempting to send the CONNECT packet to the server again.

Thank you for replying Hayes, can you say where to input this username and password, I haven’t noticed any username and password fields in official docs by quectel mqtt docs…

I have setup username and password but still the module is unable to connect

sendATCommand(“AT+QMTCONN=0,"xxxxxx","xxx","******"”);

i get Response:

17:15:38.278 → OK

17:15:38.278 →

17:15:38.278 → +QMTCONN: 0,1

17:15:38.278 →

17:15:38.278 → +QMTSTAT: 0,1

do we have username and password to connect ec200u to AWS IoT ??

i use hiveMQ service to generate the username and password

i also used EMQx service
they gave me cert file but i dont know how to use it in the program

i configured a user there also but the same problem as i dont know how to configure the cert file

does any of you found any solution for this problem