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

Hilo, HL6, HL7, HL8 modules

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

Postby fredech » Thu Apr 20, 2017 12:43 pm

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:
AT+KTCPSTAT=1
+KTCPSTAT: 3,-1,0,32

There the problem comes; I ask the data using:
AT+KTCPRCV=1,32
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.
fredech
 
Posts: 2
Joined: Wed Apr 12, 2017 4:26 am
Has thanked: 0 time
Have thanks: 0 time

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

Postby Moderator » Fri Apr 21, 2017 10:25 am

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

Thanks & Regards,
Moderator
User avatar
Moderator
 
Posts: 281
Joined: Fri Oct 28, 2005 9:32 am
Has thanked: 0 time
Have thanks: 3 times

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

Postby fredech » Fri May 12, 2017 6:15 am

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

Thank you for your support
fredech
 
Posts: 2
Joined: Wed Apr 12, 2017 4:26 am
Has thanked: 0 time
Have thanks: 0 time


Return to HL Series

Who is online

Users browsing this forum: No registered users and 1 guest