Hi,
I am trying to make a communication between my due and the computer through SNMP with no success.
I am building a "kind of" thermostat with the following functions:
- measurement of 2 temperatures and humidity,
- comunication of these values through SNMP
- Webserver with password to make the settings for the limit values of the "thermostat"
- internal logging
- 1 digital output for a heater (later possibly for a A/C)
I made this with success in an Arduino Uno, but the memory was too short. All the functions worked fine but only separetely, because of low memory. so I upgraded the project by buying a Due.
Now all the code works fine except for the SNMP.
So, my test is the following:
- computer connected directly to Ethernet shield of arduino;
- code: Agent.ino from the Agentuino Library
- IDE: Arduino 1.5.8
I put the same code in the Arduino Uno (and the ethernet cable) and it works like a charm. Then I chenge the board type and com to the Due and it doesn't work. Debugging through serial, I found out that the Due receives the SNMP query from the command line, but the answer never gets to the computer. (no response from 192.168.2.64)
Aso, the due only responds through serial once. After that, there are no updates on serial despite I keep sending SNMP requests with no response.
digging a bit more, I found this issue with the Agentuino library:
https://code.google.com/p/agentuino/issues/detail?id=18
I commented the referenced code line and now the serial keeps working, but still no response through SNMP.
So:
- does anyone know a SNMP library that does work on the due?
- if not, how can I debug the header files of the Agentuino, to know what's going wrong?
- if none of the above, what can I cut in the agentuino library to make it lighter to fit in the Uno with all the other stuff that I want?
thanks,
peixinho