I run a simple http servver on ATMega using w5500, socket open, connect and receive work just fine, the problem is send. For example:
int32_t loopback_tcps(uint8_t sn, uint8_t* buf, uint16_t size)
int32_t ret = recv(sn,buf,size);
if(ret < 0)
ret = send(sn,buf,ret);
if(ret < 0) close(sn);
Once called the above procedure should perform a loopback to the client. Unfortunatelly after recieve ( received data is fine ) it sends a random garbage string to the client… I’ve checked almost everything including the bytes being sent via spi and it all looks fine ( spi is transmiting proper data bytes to w5500 ) but still w5500 sends random binary data to the client…
It sometimes looks like it sends some random portion of socket buffer because sometimes I can see my data as a substring of that garbage response.
I’m using your official and unmodified driver software: wizwiki.net/wiki/doku.php?id=pro … 500:driver
Attached is transmition log from wireshark.
Please inform on whats wrong.
wireshark.zip (4.05 KB)