W5100 is sending garbage data
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: W5100 is sending garbage data
by irinakim ·
HI~ gossamer
If you use the Socket0(allow the 2kb : tx size of socket0), socket0 have tx mem size as 0x4000~ 0x47FF.
And when socket connection is complete, S0_TX_WR value has random value in 0x4000~0x47FF.
It transmits data from current S0_TX_RR to S0_TX_WR and automatically changes after transmission is finished(After send command is completed and S0_IR(SEND_OK) is enable).
And if total TCP packet is less then 60byte, W5100 send 60byte packet including garbage data(padding data).
You need to confirm.
Best regards,
irina
RE: W5100 is sending garbage data
by gossamer ·
Yeah, I am not talking about padding data. This is like dumping of full buffer before posting the data I have sent.
Yes, I get random value of TX_WR and TX_RR is 0. Which means that every time it will send 0->TX_WR + my data ?
For example, TX_WR = 1000; my data is 24 bytes long, first time I initiate send it will send 1024 bytes, every other send is OK, it will just send 24 bytes.
Do I need to set the RR before writing to tx buffer ?
RE: W5100 is sending garbage data
by Eugeny ·
[quote=“gossamer”]0x0424 = 0x40
0x0425 = 0x91[/quote]
If you use all 16 bits updating the pointer, will that work for you? Thus pointer before you issue SEND command, when sending one char, will be:
0x0424 = 0xD8 0x0425 = 0x91It sounds logical that you get long stream of garbage. In your case size of calculated data 4091-d890=6801 (26 625 bytes).
RE: W5100 is sending garbage data
by gossamer ·
Nice !
That was exactly the issue. Writing value on 0x4090, but setting txWritePtr to 0xD891 after writing one character. To be honest datasheet was so vague on this detail, that i would never figure it out
Thanks Eugeny.