Hi,
I’m working with the Quectel EG915U-EU module (firmware revision EG915UEUABR03A01M08) and running into an issue after performing multiple HTTPS POST requests.
Problem Description
After a few successful requests, the module stops responding properly when trying to read the HTTP response into a file. Specifically, the command:
AT+QHTTPREADFILE="UFS:1.txt",10
Starts returning:
AT+QHTTPREADFILE="UFS:1.txt",10
OK
+QHTTPREADFILE: 729
This happens consistently after several requests only if I read the file. If I don’t read the file (UFS:1.txt
), there are no memory issues or errors.
I also tried deleting the file after each request, but the problem persists.
Current AT Command Setup
Initial HTTP and SSL Configuration:
// Set context ID
AT+QHTTPCFG=“contextid”,1
// Allow to output HTTP response header.
AT+QHTTPCFG=“responseheader”,1
// Set SSL context ID
AT+QHTTPCFG=“sslctxid”,1
// Set SSL version to ALL
AT+QSSLCFG=“sslversion”,1,4
// Set SSL cipher to ALL
AT+QSSLCFG=“ciphersuite”,1,0xFFFF
// Perform server and client authentication
AT+QSSLCFG=“seclevel”,1,2
// Ignore invalid cert sign
AT+QSSLCFG=“ignoreinvalidcertsign”,1,1
// Enable server name indication
AT+QSSLCFG=“sni”,1,1
// Set CA certificate
AT+QSSLCFG=“cacert”,1,“UFS:ca.crt”
// Set client certificate
AT+QSSLCFG=“clientcert”,1,“UFS:certs/client.crt”
// Set client key
AT+QSSLCFG=“clientkey”,1,“UFS:keys/client.key”
HTTPS request
// Disable request header
AT+QHTTPCFG=“requestheader”,0
// Set application/json content-type
AT+QHTTPCFG=“contenttype”,4
// Set URL
AT+QHTTPURL=url,80
// Send url
// Send Post
AT+QHTTPPOST=body_len,80,80
// Send body
// Read to file
AT+QHTTPREADFILE=“UFS:1.txt”
Read file
// Open file
AT+QFOPEN=“UFS:1.txt”,2
// Point to start of file
AT+QFSEEK=1027,0,0
// Read file
AT+QFREAD=1027,256
// Close file
AT+QFCLOSE=1027