Problem with Gratuitous ARP when trying to send UDP
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: Problem with Gratuitous ARP when trying to send UDP
by kevinweiss ·
My device is connected directly into my CPU via ethernet cable. My device IP is 169.254.1.1 and my CPU is 128.1.1.25. I will look into deeper in the stack, maybe the MACRAW mode isn’t being implemented correctly. If anyone has gotten these stacks to work together let me know (and the versions).
RE: Problem with Gratuitous ARP when trying to send UDP
by kevinweiss ·
The subnet Mask is 255.255.0.0. The results are the same through a router or not. The TCP is working fine. The program with the CPU claims an address (the LAN 128.1.1.25 in this case) for transmission.
RE: Problem with Gratuitous ARP when trying to send UDP
by kevinweiss ·
I have managed to get everything working and have a few notes for anyone interested.
The HW TCPIP Library Driver ver.1.2 that was used did not allow UDP to work with my microchip product
The SW TCPIP Library Driver ver.1.4 had a fault (the orginal reason I switch to the HW TCPIP library) which would cause an occasional packet to be improperly sent… This caused a unpreventable timeout in my software.
The reason for this timeout was in
SW TCPIP Library Driver ver.1.4
W5200.c
void MACPutArray()
if( RealTXPAddress.Val + len > TXEND ){
that line should be;
if( RealTXPAddress.Val + len >= TXEND ){
The problem would truncate the length of the sent packet only if RealTXPAddress.Val + len == TXEND
Since my packets are around 100 bytes and my buffer size was 4k
there is a 1 in about (100*4k) 400000 chance of getting this error.
Hopefully this helps other people, also please update stack to fix this. This cost a lot of unnessasary time.
Kevin Weiss
RE: Problem with Gratuitous ARP when trying to send UDP
by markqnorman ·
Hi Kevin
I am currently developing an EIP layer using a PIC24 too. I would be interested in what you are using for the EIP layer? Is it bought or is it your own? If it is third party I would be very interested in details. If it is a working home brew I would be also interested in a code share.
Mark