Impossible to receive data from module once server notifies disconnection (M65)

While downloading responce from server:

+QIRDI: 0,1,0,1,773,773
0, CLOSED
AT+QIRD=0,1,0,512
ERROR

It is unnable to get those 773 bytes.
How to solve this?

hi,
Under normal circumstances, if the server is disconnected, the data cannot be read. Can you send the at instruction of the normal process? thanks.

It is strange answer…
Data is in module’s buffer. Server connection closed, true. But why can’t I read those “already received” bytes?

AT+QICSGP=1,“www.kyivstar.net”,“igprs”,“internet”
<OK
AT+QIOPEN=0,“TCP”,“google.com”,80
<OK
<0, CONNECT OK
AT+CPIN?
<+CPIN: READY
<OK
AT+QISEND=0,103
<SEND OK
AT+QISACK=0
<+QISACK: 103, 0, 103
<OK
AT+QISACK=0
<+QISACK: 103, 0, 103
<OK
AT+QISACK=0
<+QISACK: 103, 103, 0
<OK
AT+CSQ
<+CSQ: 20,0
<OK
AT+CGREG?
<+CGREG: 1,1
<OK
AT+CLCC
<OK
<+QIRDI: 0,1,0,1,773,773
AT+QIRD=0,1,0,512
<0, CLOSED
<ERROR
AT+QICLOSE=0
<ERROR

hi,
If the data is already in the cache, it can normally be read.
Please read with AT+QIRD=0,1,0,1500 to see if there is an error.
thanks.

Same:

<+QIRDI: 0,1,0,1,773,773
AT+QIRD=0,1,0,1500
<0, CLOSED
<ERROR

Any more recommendations?

Case is open now and R&D will investigate:
143755

@AnnaLiu any updates here? i ran into the same problem with Quectel M66!

Thanks to Quectel support team,

AT+QCFG=“TCP/BufferRemain”,1 solves the problem!

ok, thanks for the answer, but now the tcp stack behaves differently. if i try to open now a new connection it reports “SOCKET BUSY”.

How can it return to a ready state?

hey @AnnaLiu @Khampton any suggestions?

hi,
Sorry, I haven’t found the cause of the problem yet.