Strange yet reproducible problem, board resets?!

Post any hardware related questions about your WiShield 1.0 here.

Re: Strange yet reproducible problem, board resets?!

Postby GregEigsti » Tue Jul 06, 2010 5:33 pm

Thanks for the fix (even if you are an a-hole) ;)
What about something like this to grab what we can (which could mean incomplete/partial packet) instead of discarding the entire packet. A partial packet could cause more confusion in the end...

Code: Select all
spi_transfer(zg_buf, rx_byte_cnt + 1 < (U16)UIP_BUFSIZE ? rx_byte_cnt + 1 : (U16)UIP_BUFSIZE, 1);


Greg
Check out the wiki!
uIP Stack Docs
Compatible Access Point List
WiShield user contrib branch - DNS, DHCP, AP Scanning, bug fixes, etc.
SlackLab.org - My geek projects blog.
User avatar
GregEigsti
 
Posts: 1067
Joined: Sun Aug 02, 2009 5:23 pm
Location: Sammamish WA USA (near Seattle)
  • Website

Re: Strange yet reproducible problem, board resets?!

Postby aerodyno » Sat Jul 10, 2010 10:22 am

Hi guys,

I'm going to try this fix now. I'll see if it breaks existing functionality (can't imagine it would) and I should have a test within a week or two with a Verizon FIOS router.

-s
aerodyno
 
Posts: 65
Joined: Tue Aug 04, 2009 8:42 pm

Re: Strange yet reproducible problem, board resets?!

Postby spidermonkey04 » Sat Jul 17, 2010 6:24 pm

I just noticed that accepting an incomplete packet won't help much. uIP checks the length reported in the IP header against what is actually there, so it would be dropped right after being copied into the buffer anyway.

---Jared
spidermonkey04
 
Posts: 66
Joined: Thu Oct 29, 2009 6:45 pm

Re: Strange yet reproducible problem, board resets?!

Postby GregEigsti » Sun Jul 18, 2010 7:25 am

Yeah I'm siding with you on that one - even if not rejected by some other mechanism a partial packet would likely be more trouble that its worth. Your "remove the entire" packet fix is part of the user contrib branch ;)

Greg
Check out the wiki!
uIP Stack Docs
Compatible Access Point List
WiShield user contrib branch - DNS, DHCP, AP Scanning, bug fixes, etc.
SlackLab.org - My geek projects blog.
User avatar
GregEigsti
 
Posts: 1067
Joined: Sun Aug 02, 2009 5:23 pm
Location: Sammamish WA USA (near Seattle)
  • Website

Re: Strange yet reproducible problem, board resets?!

Postby aerodyno » Thu Sep 23, 2010 2:59 pm

Note, an updated discussion on this fix is here:

viewtopic.php?f=23&t=432&p=2896&hilit=large+packet#p2896

-s
aerodyno
 
Posts: 65
Joined: Tue Aug 04, 2009 8:42 pm

Previous

Return to WiShield 1.0

Who is online

Users browsing this forum: No registered users and 1 guest