Hello all:
I have designed a custom board around W5500 for uploading data logger data to my server.
Every thing is OK until the SEND process:
I am sending a POST in order to get success response from the server as HTTP/1 200 OK but most of the time I see that the post string is wrapped with “endless garbage bytes” sent along with it.
The strange thing is that some times it do send the post right and server response is OK!!
I thought that handling of TX_WR is not right but when I got OK few times I got confused
Same code behave differently…
see below log:
partial log of connection and sending:
connecting…
.Wait for CONNECT… - waiting for connection loop
.Wait for CONNECT…
.Wait for CONNECT…
.CONNECTed…
wiz5500 connected to server…
.
.SENDing 0x0096 bytes (sending a post to server)
.ptr_WR = 0x00b8 - initiated WR pointer value
.ptr_RD = 0x00b8
.len = 0096. - data lengh
.ddrsel = b810 - writing address
Sending…
.Sn_IR_SENDOK… - data have sent ok
.
.ptr_WR = 004e - WR pointer after sending ( expect 0x00B8+0x0096 = 0x014E )
.ptr_RD = 004e
.
.Socket closed…
Please explain why TX_WR value after sending is not original value + data lengh as expected. Most sig byte is 00 while should be 01…
POST sent to the server:
POST /update HTTP/1.1
Host: 178.62.117.121:0080
Content-Type: application/octet-stream
Accept: /
User-Agent: Creacell/1.0. Content-Length: 0…
Server response if success:
HTTP/1.1 200 OK
X-Powered-By: Express
Date: Fri, 12 Jun 2020 20:20:42 GMT
Connection: keep-alive
Content-Length: 0
Any advise will be much appreciated.
Becky?..
Dan