Ethernet Shield (5100) problem, random garbage


greetings all!  first question/post, , question ethernet shields using wiznet chip.

long story short, used example code ethernet library, , after didn't work changed ip address accordingly after connecting router resolve this, , modified code simplify information spit out, rather using loop read 6 analog input pins. 

things work sort of, started experiencing problems, of occasional random garbage after connecting device.  not entirely random garbage, aperiodic random garbage comingled normal output data.  data read flawlessly several iterations, garbage, or device stop responding. 

i changed source example spit out millis() readings , iterator showing how many times browser had queried device, , changed line of code tells browser query every 5 seconds, querying every 30 seconds.  fine , good, browser page contents showed when exactly, iteration.  ran fine more hour, being adventurous changed latency 5 seconds "my client.println("<meta http-equiv=\"refresh\" content=\"30\">");"

this information (chronological information , iterative information modified source code spit out) later became important when cut & paste aperiodic random spew (that appeared in browser) shield.  spewed occasionally, comingled results of information broadcast, appeared partial (reverse-chronological) contents of buffer of wiznet chip.  not linear, randomly sized chunks of previous buffer contents, including content no longer relevant having uploaded new code after resetting arduino (but not resetting wiznet).  figured out should hard-reset wiznet device (my rev of board doesn't that).

still had problem; unpredictable outputs device, regardless of latency.  occasionally, sensible outputs device interrupted burps , farts of information present since last hardware reset.  not things arduino sending.  me result appears interrupt recursion, 2 devices trying stream stuff @ same time.

the initial workaround used, change "refresh" latency 30 seconds, rather 5.  i'm not going let run days figure out if (ultimately) solved problem.  example code causes browser refresh every 5 seconds, , should work without issue notwithstanding.

this problem me mysterious.  i've ruled out infrastructure, , power supply , such.  regular message broadcasts, mixed (what appears be) random (5100) buffer garbage after making changes source code.

given problem aperiodic, , consistent (the information spewed varies in quantity if not content), , having looked @ physical hardware, can suspect problem firmware related should case, or there lacking in software examples (the libraries) not address problem; problem related wiznet chip. 

maybe simple purging buffer of wiznet chip somehow visa vis ethernet library?  again if important, should have been part of (library) example, apologize lack of due-diligence in finding solution before posting question in first place.  questions (3) being, causing aperiodic garbage output despite periodic non-random output?  should there library upgrade address problem if not entirely unique? , given spurious nature of problem think (5100) buffer related, there simple workaround alleviate this? 

perhaps single line of code remedy situation, think if known issue, library examples dating more 5 years have had this. 

has else experienced exact problem in particular?  not of not working, not working predictably.

i'd appreciate ideas how solve problem; replacing physical hardware doesn't me seem obvious solution given in fact work of time.  i'm not convinced hardware problem, i'm more inclined think software or firmware problem. 

thanks reading, , if has ideas this, i'd hear them.








http://arduino.cc/forum/index.php/topic,97455.0.html


Arduino Forum > Using Arduino > Networking, Protocols, and Devices (Moderator: fabioc84) > Ethernet Shield (5100) problem, random garbage


arduino

Comments

Popular posts from this blog

Thread: PKI Client 5.00 install (for eToken Pro)

ATmega2560-Arduino Pin Mapping

Crossfader Arduino Tutorial