Go Down

Topic: Arduino Uno + Ethernet shield send SNMP to network printer (Read 2 times) previous topic - next topic

cvanblad

Arduino is completely new to me, but i want to create a program wich is able to talk to my network printer using snmp. I can't find any tutorials or examples on the net.

i've read something about agentuino, but how do i implement it in my code?
I want to see the answer of my printer in the serial monitor.
How do i send and receive a snmp command to my printer?

In iReasoning MIB browser i get the following answer:

Name/OID: sysUpTime.0; Value (TimeTicks): 1 hour 50 minutes 55 seconds (665505)

Name    sysUpTime!@#.iso.org.dod.internet.mgmt.mib-2.system.sysUpTime
OID    .1.3.6.1.2.1.1.3
MIB    RFC1213-MIB


Can someone please help me get started?

PaulS

Quote
but i want to create a program wich is able to talk to my network printer using snmp.

Via what path? How are the Arduino statements to get to a snmp daemon? Where is that daemon running?

Quote
I want to see the answer of my printer in the serial monitor.

That's a piece of cake. The hard part, of course, is getting the answer. But, displaying it in the serial monitor is trivial.

cvanblad

The target (to start with) is to connect my Arduino to my router ( on wich my printer is also connected).
I want to "hard code" the SNMP "GET" function under a button. When this button is pressed the Adruino sends the request to my printer and waits for the response.
Finaly i want the answer from my printer to be displayed in the serial monitor.

@ PaulS:
What exactly do you mean with:
Quote
Via what path? How are the Arduino statements to get to a snmp daemon? Where is that daemon running?


I am completely new to Arduino, so i have no idea how i can get started.

PaulS

Quote
The target (to start with) is to connect my Arduino to my router

Using an Ethernet shield and cable? Or duct tape?

Quote
I want to "hard code" the SNMP "GET" function under a button. When this button is pressed the Adruino sends the request to my printer and waits for the response.

SNMP is a protocol. There must be an application running somewhere that understands that protocol and responds accordingly. Does your router run such an application?

Quote
I am completely new to Arduino, so i have no idea how i can get started.

The key to making the Arduino a functioning member of a network is to replicate functionality that you have developed and tested on another device, such as a PC. If you can issue commands in SNMP format from an application on the PC, you can make the Arduino issue the same commands.

Until then, though, this isn't an Arduino issue.

cvanblad

As you can see in my first post I manage to talk to my printer via MIB browser and my PC.
Quote
In iReasoning MIB browser i get the following answer:

Name/OID: sysUpTime.0; Value (TimeTicks): 1 hour 50 minutes 55 seconds (665505)

Name    sysUpTime!@#.iso.org.dod.internet.mgmt.mib-2.system.sysUpTime
OID    .1.3.6.1.2.1.1.3
MIB    RFC1213-MIB

The biggest problem is, how do I use "code" in arduino so it can talk to a network device such as my printer.
implementing of buttons and LCDs come later, first I want to understand the snmp on Arduino.

For now i want to connect my Arduino + ethernet schield with my printer (or router on wich my printer is connected) by an ethernet cable.

Later on i want to build a device that reads some "predefined" parameters from a docsis cablemodem by using snmp commands. But to go for an easy start i want to request for example the sys_uptime of my printer with my arduino and display this result on the serial monitor.

Go Up