Hi,
We are trying to implement the necessary AT commands to perform a POST to an HTTPS server, but something is wrong, because all the time the response to the HTTP request is error 3822. The Quectel module used is an M95 (M95FA03STD) and this is the list of executed commands and the result for each of them.
–> “AT+QINISTAT\r\n”
<-- 1 OK
–> “AT+CPIN?\r\n”
<-- READY OK
–> “AT+QINISTAT\r\n”
<-- 3 OK
–> “AT+CIMI\r\n”
<-- OK
–> “AT+QREFUSECS=1,1\r\n”
<-- OK
–> “AT+QIFGCNT=0\r\n”
<-- OK
–> “AT+QICSGP=1,“xxx”,“xxx”,“xxx”\r\n”
<-- OK
–> “AT+QIREGAPP\r\n”
<-- OK
–> “AT+QIACT\r\n”
<-- OK
–> “AT+QSSLCFG=“sslversion”,2,4\r\n”
<-- OK
–> “AT+QSSLCFG=“seclevel”,2,0\r\n”
<-- OK
–> “AT+QSSLCFG=“ignorertctime”,1\r\n”
<-- OK
–> “AT+QSSLCFG=“https”,1\r\n”
<-- OK
–> “AT+QSSLCFG=“httpsctxi”,2\r\n”
<-- OK
–> “AT+QHTTPURL=54,80\r\n”
<-- CONNECT
–> “https://xxx.amazonaws.com/dev/gc”
<-- OK
–> “AT+QHTTPCFG=“requestheader”,1\r\n”
<-- OK
–> “AT+QHTTPPOST=246,80,80\r\n”
<-- CONNECT
–> “POST /dev/gc HTTP/1.1\r\n”
“Host: xxx.amazonaws.com:443\r\n”
“Accept: /\r\n”
“User-Agent: QUECTEL_MODULE\r\n”
“Connection: close\r\n”
“Content-type: application/json\r\n”
“Content-length: 51\r\n”
“\r\n”
“{“M”:“111111111111”,“I”:“7160652952503786”,“F”:1.4}”
<-- +CME ERROR: 3822
Thanks