W5300 High-capacity data communication
Ethernet Chips
No replies yet. Be the first to reply.
Join the discussion.
Ethernet Chips
No replies yet. Be the first to reply.
Join the discussion.
Share projects and connect with makers.
Joined before the site update? first.
New to WIZnet Makers?
We sent a verification link to your address. Open it to activate your account, then log in.
Accounts from this email provider are reviewed by an administrator after verification. Approval usually takes one business day.
Already have an account?
Enter your email address. If it belongs to an account, we'll send a link to set a new password. Members who joined before the site update use this to set their password.
If an account uses that address, we sent a link to set a new password. The link works once and expires in 30 minutes.
Know your password?
Need an account?
RE: W5300 High-capacity data communication
by Eugeny ·
Share wireshark log. “TCP zero window” will happen after receiving first 2k if you do not flush data from RX buffers.
RE: W5300 High-capacity data communication
by tnk ·
Thank you for the e-mail.
We incorporate W5300 in the receiver of the printer.
Below is the contents checked here.
Reading from R_FIFO is executed by DMA.
//SOCK_ESTABLISHED: Receive
if((len=getSn_RX_RSR(s)) > 0) // check the size of received data
{
// Test200M data
len = recv(s,ep3_rxdat,len); // Datalength Read
//DMA Dest set
HeadAdr = (unsigned long)&FIFOW_0;
//DMA
dma_EthFIFOtoEgnFIFO_eth(len/2);
*Wireshark Error
PC:192.168.0.10 W5300:192.1680.3
Overall data amount PC spool: 200 Mbytes
Error occurrence: Approximately 100 Mbytes
PC⇒zerowindowprob W5300:no replay
PC⇒RST
Why does W5300 not respond?
Thank you in advance.
RE: W5300 High-capacity data communication
by Eugeny ·
The cause of the problem is not W5300, it is your PC. You continuously send one byte to PC from W5300, and PC does not read it from its RX queue. Screenshot shows that PC has window size 4, then 3, then 2, then 1, and finally 0, and next write from W5300 to PC goes nowhere, so PC resets the connection shortly as communication looks broken.
RE: RE: W5300 High-capacity data communication
by tnk ·
Thank you for the e-mail.
I will change the conditions such as PC and check it.
I will report the results.
RE: W5300 High-capacity data communication
by tnk ·
Hello.
I investigated PC window size.
os: window 7 98 M / 200 Mbytes received.
Initial value: 64200
Dummy data (ACK) from W 5300 1 byte Receive every -1
os: window 10 180 M / 200 Mbytes received.
Initial value: 64200
Dummy data (ACK) from W 5300 1 byte Receive every -1
It returns to the initial value on the way and then -1 after receiving the data.
I decided it was not a problem of W5300 but a problem of PC side.
I was rude in an unclear English sentence. (I am Japanese.)
Please also take a consultation.
RE: W5300 High-capacity data communication
by tnk ·
Dear Great Contributor.
I can’t change TCPiPapps in my PC
To fix PC Window size, I tried to 0bytes ack data from w5300.
Wiresharklog
175kbytes/200Mbytes
192.168.0.3(w5300) ZeroWindow
What is the purpose of dummy size transfer?
What is the difference between dummy size 0 and dummy size 1?
Why does zerowindow occur in dummy size 0 ?
Best regards
RE: W5300 High-capacity data communication
by Eugeny ·
You can see in wireshark packet #43 that it reports W5300 window size as 0. The situation simply means that W5300 stopped getting data from its RX buffers. Check your program driving W5300.
What is this “dummy size”? Using TCP you do should not send anything if it is not required by protocol. Does your protocol require sending these bytes?
Because now it is W5300 which stops clearing its RX buffer.
RE: W5300 High-capacity data communication
by tnk ·
Dear Great Contributor.
The following is the TX transfer size.
setSn_TX_WRSR(s,0); // size :0 byte dummy size
setSn_TX_WRSR(s,1); // size :1 byte dummy size
Best regards
RE: W5300 High-capacity data communication
by tnk ·
Dear Eugeny
Attached log is basic, flow and please tell me at the timing of a reply of ACK of W5300.
*Please tell me at the timing of a reply of No.11,13,15,17,19,21.
Best regards
RE: W5300 High-capacity data communication
by Eugeny ·
Not sure what you want to know about this picture. It just shows that IP address 10 connects to IP address 3, sends some data and then closes connection, and IP address 3 confirms the end of session. There seem to be no issue in the communication. The only strange thing is IP address 3 having PSH flag set in its ACK packets.
RE: W5300 High-capacity data communication
by tnk ·
Dear Eugeny
IP address