AT+KTCPRCV doesn't return any data (buffer has)


Hi all,

I’m writing a TCP client application using a HL8518 module.
I successfully start the connection in command mode ‘AT+KTCPCNX=1’, so that it’s easier to check if the socket is correctly connected.
The remote server immediately sends data when it gets connected.
So, the module is still in command mode, and when interrogating socket status, I receive the info the socket is up and some data are available in the buffer, like:
+KTCPSTAT: 3,-1,0,32

There the problem comes; I ask the data using:
and I just get a ‘OK’ back…
If I ask again the socket status, the RX buffer is now empty.

What’s wrong there ?
Please note that I also disabled URC for +KTCP_DATA, as I want to decide when I want to retrieve the data!

Thank you for any help.


This problem needs a detailed technical analysis. Please contact your Technical support in SWI to provide you the solution.

Thanks & Regards,


My apologies,
This was an issue on our side; URC were badly interpreted.

Thank you for your support