WS 228 TCP client - server communication issue


#1

Hello,

My question deals with a communication in situations where a WS 228 client first connects to a server. When
the connection is established, the server sends data to the client right away and closes the connection immediately after that.
Received data seems to be lost and cannot be accessed at the client. For example, some time stations communicates like that, and I have also encountered the same problem when trying to retrieve data from a FTP-server. Is there any solution for this problem?

Here is an example when connecting to a time station:

at+wipcfg=1
OK
at+wipbr=1,6
OK
at+wipbr=2,6,11,“internet”
OK
at+wipbr=2,6,1,“rlnet”
OK
at+wipbr=2,6,0,“internet”
OK
at+wipbr=4,6,0
OK
at+wipcreate=2,1,“207.223.123.18”,13
OK

+WIPREADY: 2,1

+WIPDATA: 2,1,51

+WIPPEERCLOSE: 2,1

OK

Best wishes,

          VAA

#2

Hi VAA,

Welcome to the forum.

I guess the daytime protocol you are using is RFC 867, in which server will send the daytime info as text then close the socket.

From the log you provided, I believe the daytime info was already received as we got +WIPDATA indication
+WIPDATA: 2,1,51
Please refer to related documents for WIP command usage.

Find below my test log for reference:

ati3

L20_00gg.WISMO228 270410

OK
at+wipcfg=1

OK
at+wipbr=1,6

OK
at+wipbr=2,6,11,"internet"

OK
at+wipbr=4,6,0

OK
at+wipcreate=2,1,"207.223.123.18",13

OK

+WIPREADY: 2,1

+WIPDATA: 2,1,51

+WIPPEERCLOSE: 2,1

OK
AT+WIPDATA=2,1,1

CONNECT

56328 13-02-05 06:22:20 00 0 0 823.3 UTC(NIST) *
                                                 
SHUTDOWN

Hope this help.
L


#3

Thank you very much for your post L, I have tried this WIPDATA - command to read the received data but I always get a bad state ( CME ERROR 831 ) as a reply. Here is a new log:

ati3

L23a00gg.WISMO228 121211

OK
at+wipcfg=1

OK
at+wipbr=1,6

OK
at+wipbr=2,6,11,“internet”

OK
at+wipbr=2,6,1,“rlnet”

OK
at+wipbr=2,6,0,“internet”

OK
at+wipbr=4,6,0

OK
at+wipcreate=2,1,“207.223.123.18”,13

OK

+WIPREADY: 2,1

+WIPDATA: 2,1,51

+WIPPEERCLOSE: 2,1

OK
at+wipdata=2,1,1

+CME ERROR: 831

BR VAA


#4

This problem has now been resolved and is related to L23 firmware. :smiley: