cigraphics / agentuino

Automatically exported from code.google.com/p/agentuino
0 stars 0 forks source link

Arduino hangs after w5100 recieving many snmp get requests #21

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Call arduino.listen();
2. Call delay();
3. Send 6 snmpGet to agentuino during arduino delay.

What is the expected output? What do you see instead?

Expected: w5100 buffers snmp requests and when buffer is full, discards 
packages. After that, Arduino poll w5100 snmp package is processed in callback 
of pduReceived.

I see: After resuming delay, arduino fetches the received pdu, and hangs 
afterwards.

What version of the product are you using? On what operating system?

Arduino uno, agentuino library.

Please provide any additional information below.
It would be very useful to have w5100 use it as an interrupt. Has anyone done 
this before?

Original issue reported on code.google.com by pendasle...@gmail.com on 25 Nov 2014 at 5:12

GoogleCodeExporter commented 9 years ago
My suposse it is that w5100 overflow ram memory of arduino, and then it hangs.
Any way of limit w5100 ram writes on arduino?
regards.

Original comment by pendasle...@gmail.com on 25 Nov 2014 at 5:52

GoogleCodeExporter commented 9 years ago
Use no more than one SnmpGet request at a time.
Do not use queries SnmpWalk - this will inevitably lead to a halt execution

Original comment by forkun...@gmail.com on 19 Dec 2014 at 4:59