On an Arduino Mega or ESP8266, bigger buffers and more I/O pins can be supported as the SRAM is far bigger. By forgoing the mib-2::system table, more digital and analog I/O pins can be added to the respective tables. The 2kB SRAM limits the number of MIB entries and network packet size (and thus request and response length). It supports Get, GetNext, Set operations and sends a Trap when the digital inputs toggle. On an Arduino ATmega328p with an Ethernet Shield, an uSNMP agent that implements the mib-2::system table, three minimalist tables of 2 digital inputs (with trap sent when the state toggles), 2 digital outputs and 1 analog input, is about 20kB, inclusive of the SPI, Ethernet, UDP, DNS routines. Ports to Arduino IDE, Windows and *nix are included in the source code, and have been tested on Arduino compatible (AVR ATmega328p) and Arduino Mega with Ethernet Shield, NodeMCU v0.9 (Expressif ESP8266), Windows (compiled with Embarcadero BCC32C C++ compiler) and Cygwin (with gcc). USNMP (“micro-SNMP”) is a small and portable ‘C’ library for developing SNMPv1 agent and manager.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |