I can't make http connection with Quectel M66 module

Hello,

I am using Quectel M66 module. My goal is to establish an http connection. It’s even better for me to install the https protocol, but I get an error on the http connection. I can see the signal strength service provider names. As a result of the CGREG command, I get a response of 0.1. But I couldn’t find where I went wrong. Can you share the http initalize and connection commands?

Hi
Refer to the document I sent you privately, which details the http flow. cgreg: 0,1 indicates that it has been registered to the core network

Hi,

I reviewed the documents you sent, but I couldn’t solve my problem. AT+QIACT command always returns error. What could be the reason for this? I tried different TCP connection. The first response of the QIOPEN command returns as OK, but I get a connection fail right after. Am I missing the configuration tweaks or is there some other command I need to use? Can you help me ?

Hello,
I still can’t establish TCP and HTTP connection. I always get the response of the AT+QIACT command as ERROR. Can you help with this ?

Hello,

I am working with Quectel M66 module. I am trying to establish a TCP or Http connection with the module within the scope of the project. But I am getting error on connection. I am attaching a log file. Can you help me?

/* Start AT SYNC: Send AT every 500ms, if receive OK, SYNC success, if no OK return after sending AT 10 times, SYNC fail */
[2023-05-30 13:35:12:516_S:] AT
[2023-05-30 13:35:12:579_R:] AT
[2023-05-30 13:35:12:579_R:] OK
[2023-05-30 13:35:12:594_S:] ATI
[2023-05-30 13:35:12:698_R:] ATI
[2023-05-30 13:35:12:698_R:] Quectel_Ltd
[2023-05-30 13:35:12:698_R:] Quectel_M66
[2023-05-30 13:35:12:698_R:] Revision: M66FAR01A01BT_Ali

[2023-05-30 13:35:12:698_R:] OK
[2023-05-30 13:35:12:713_S:] ATI
[2023-05-30 13:35:12:832_R:] ATI
[2023-05-30 13:35:12:832_R:] Quectel_Ltd
[2023-05-30 13:35:12:832_R:] Quectel_M66
[2023-05-30 13:35:12:832_R:] Revision: M66FAR01A01BT_Ali

[2023-05-30 13:35:12:832_R:] OK

[2023-05-30 13:35:16:865_R:] +QNITZ: “23/05/30,10:35:16+12,0”

/* Use ATV1 to set the response format */
[2023-05-30 13:35:18:733_S:] ATV1
[2023-05-30 13:35:18:796_R:] ATV1
[2023-05-30 13:35:18:796_R:] OK

/* Use ATE1 to enable echo mode */
[2023-05-30 13:35:19:052_S:] ATE1
[2023-05-30 13:35:19:114_R:] ATE1
[2023-05-30 13:35:19:114_R:] OK

/* Use AT+CMEE=2 to enable result code and use verbose values */
[2023-05-30 13:35:19:270_S:] AT+CMEE=2
[2023-05-30 13:35:19:333_R:] AT+CMEE=2
[2023-05-30 13:35:19:333_R:] OK

/* Get the baudrate, if the value is 0 (auto baudrate), then it will be set to 115200 (fixed baudrate) to assure reliable communication and avoid any problems caused by undetermined baudrate between DCE and DTE, value of IPR should be saved with AT&W */
[2023-05-30 13:35:19:583_S:] AT+IPR?
[2023-05-30 13:35:19:645_R:] AT+IPR?
[2023-05-30 13:35:19:645_R:] +IPR: 115200

[2023-05-30 13:35:19:645_R:] OK

/* Use ATI to get module information of Manufacturer ID, Device module and Firmware version */
[2023-05-30 13:35:19:692_S:] ATI
[2023-05-30 13:35:19:770_R:] ATI
[2023-05-30 13:35:19:770_R:] Quectel_Ltd
[2023-05-30 13:35:19:770_R:] Quectel_M66
[2023-05-30 13:35:19:770_R:] Revision: M66FAR01A01BT_Ali

/* Use AT+CPIN? to query the SIM card status : SIM card inserted or not, locked or unlocked */
[2023-05-30 13:35:20:452_S:] AT+CPIN?
[2023-05-30 13:35:20:515_R:] AT+CPIN?
[2023-05-30 13:35:20:515_R:] +CPIN: READY

/* Use AT+CSQ to query current signal quality */
[2023-05-30 13:35:20:968_S:] AT+CSQ
[2023-05-30 13:35:21:046_R:] AT+CSQ
[2023-05-30 13:35:21:046_R:] +CSQ: 20,0

[2023-05-30 13:35:21:046_R:] OK

/* Use AT+CREG? /AT+CGREG? to query the network registration status. */
[2023-05-30 13:35:21:046_S:] AT+CREG?
[2023-05-30 13:35:21:171_R:] AT+CREG?
[2023-05-30 13:35:21:171_R:] +CREG: 0,1

[2023-05-30 13:35:21:171_R:] OK
[2023-05-30 13:35:21:187_S:] AT+CGREG?
[2023-05-30 13:35:21:296_R:] AT+CGREG?
[2023-05-30 13:35:21:296_R:] +CGREG: 0,1

[2023-05-30 13:35:21:296_R:] OK

/* Use AT+COPS? to query current Network Operator */
[2023-05-30 13:35:21:296_S:] AT+COPS?
[2023-05-30 13:35:21:421_R:] AT+COPS?
[2023-05-30 13:35:21:421_R:] +COPS: 0,0,“AVEA”

[2023-05-30 13:35:21:421_R:] OK

/* use AT+CPIN? to query the SIM card status : SIM card inserted or not, locked or unlocked */
[2023-05-30 13:35:26:424_S:] AT+CPIN?
[2023-05-30 13:35:26:493_R:] AT+CPIN?
[2023-05-30 13:35:26:493_R:] +CPIN: READY

[2023-05-30 13:35:26:493_R:] OK

/* use AT+CSQ to query current signal quality */
[2023-05-30 13:35:26:493_S:] AT+CSQ
[2023-05-30 13:35:26:620_R:] AT+CSQ
[2023-05-30 13:35:26:620_R:] +CSQ: 21,0

[2023-05-30 13:35:26:620_R:] OK

/* use AT+CREG? /AT+CGREG? to query the network registration status, if the return value is [0,1] or [0,5], it is successfully registered, other value is fail to register */
[2023-05-30 13:35:26:620_S:] AT+CREG?
[2023-05-30 13:35:26:745_R:] AT+CREG?
[2023-05-30 13:35:26:745_R:] +CREG: 0,1

[2023-05-30 13:35:26:745_R:] OK
[2023-05-30 13:35:26:745_S:] AT+CGREG?
[2023-05-30 13:35:26:870_R:] AT+CGREG?
[2023-05-30 13:35:26:870_R:] +CGREG: 0,1

[2023-05-30 13:35:26:870_R:] OK

/* (1) Use AT+QIFGCNT=0 to choose the context 0 to activate GPRS/CSD context */
[2023-05-30 13:35:27:477_S:] AT+QIFGCNT=0
[2023-05-30 13:35:27:556_R:] AT+QIFGCNT=0
[2023-05-30 13:35:27:556_R:] OK

/* (2) Use AT+QICSGP=1,“CMNET”,“”,“” to choose GPRS mode and set the APN */
[2023-05-30 13:35:27:572_S:] AT+QICSGP=1,“CMNET”,“”,“”
[2023-05-30 13:35:27:682_R:] AT+QICSGP=1,“CMNET”,“”,“”
[2023-05-30 13:35:27:682_R:] OK

/* (3) Use AT+QIREGAPP to register to the TCP/IP stack */
[2023-05-30 13:35:27:697_S:] AT+QIREGAPP
[2023-05-30 13:35:27:804_R:] AT+QIREGAPP
[2023-05-30 13:35:27:804_R:] OK

/* (4) Use AT+QIACT to activate PDP context */
[2023-05-30 13:35:27:821_S:] AT+QIACT
[2023-05-30 13:35:27:923_R:] AT+QIACT
[2023-05-30 13:35:28:501_R:] ERROR

Hello,

My problem is solved. When I type internet instead of CMNET in the AT+QICSGP=1,“internet” command, I get the response of the QIACT command as OK. The APN name needs to be informed by the internet or sim card provider.