EC25 sometimes fails on QHTTPGET

I’m communicating fine with the device, and send this:
(-> what I send, ← what I getreturned)
Wait for device:
→ AT
→ AT
→ AT
→ AT
→ AT
→ AT
→ AT
→ AT
→ AT
← RDY
AT

OK
→ ATI
← ATI

Quectel
EC25
Revision: EC25EFAR06A13M4G

OK
→ ATE0
← ATE0

OK
→ AT+QINISTAT
← +QINISTAT: 3

OK
→ AT+QINISTAT
← +QINISTAT: 7

OK
→ AT+QHTTPCFG=“contextid”,1
← OK
→ AT+QHTTPCFG=“responseheader”,1
← OK
→ AT+QIACT?
← OK
→ AT+QICSGP=1,1,“internet”,“”,“” ,1
← OK
→ AT+QIACT=1
← OK
→ AT+QIACT?
← +QIACT: 1,1,1,“10.131.225.119”

OK
→ AT+QHTTPURL=91,80
← CONNECT
http://url-i-dont-want-to-disclose
← OK
→ AT+QHTTPGET=80
← OK

##########################################
Now what I expect to receive is:
+QHTTPGET: 0,200,90
Which I do, sometimes. But more than often I never get the:
+QHTTPGET: 0,200,90
Nor any other responsecode/length…

Hi,
Is this URL available and does the server support GET operations?
I think we can try a different HTTP address.
Or use another device to verify that the HTTP address is available.

Thanks… I figured out the reason, I had to wait until I get a response, for max wait time I think it is 180s and then read, and not start reading at once. Because then the data might not be available, so just to be sure I added a delay of 300ms before reading at all and now it works each time

1 Like