Mediate communication between arduino and printer

I am wanting to put a arduino between a printer and a computer, so the arduino receives the packets that your computer is sending to the printer and transfer this package for the printer. Without modifying, read or write anything. Just receive this packet and send to the printer.

Is that possible?

It would help to know a little more about what you're trying to accomplish.

If all you want is to see the traffic going to the printer, USB sniffing on the PC side might be worth checking out as an easier approach to getting the data.

br

Talking about the printer, too, would be useful. Is it a serial printer, a parallel printer, or a USB printer.

If the latter, which is the most likely case, the printer is a USB slave, as is the Arduino. You need a USB Host shield, and a lot of knowledge about writing USB drivers, to pretend, to the printer, to be the PC. Then, you need to pretend, to the PC, to be the printer. Again, this requires a high degree of knowledge about writing USB drivers.

softlesk:
Just receive this packet and send to the printer.

Is that possible?

Is there some reason you can't directly connect the printer to the PC? So far I can't see any purpose for the Arduino.

The printer can be connected either via USB, parallel, or Ethernet. But initially we treat only ethernet ...

I want the Arduino is connected to the printer via ethernet to be able to communicate with it. The issue is that the arduino can not be occupying this port since the user wants to connect a computer to the printer, so I want to get the computer to connect to the arduino, and the arduino connect to the printer, but actually not the arduino need to read, write or change the package that your computer is sending to the printer, but let the package go directly to the printer.

I understood that the arduino needs to be identified by the computer as the printer in question. The one way to do this?

What you are apparently trying to do is quite difficult on Arduino. Any one of those transports would be a fairly big job even for someone experienced on the platform.

If you want to see the ethernet traffic being sent to the printer, you can do it without any hardware using Wireshark on the PC doing the printing.

It would motivate more (and better) help if you could be more transparent about your objectives. You want us to help you build a hardware printer man-in-the-middle attack?

-br

It would motivate more (and better) help if you could be more transparent about your objectives.

More transparent?

Ok!

My goal is to get data from the printer via SNMP. I can already do that from a PC. But I want to make this service independent of the computer, to avoid having to install anything on the user's computer, and not risk the computer is off or outside the network, preventing the collection of information.

Since I can not enter a program into the printer ... (Or can I?)

I thought of connecting the printer to the arduino, and the arduino program to get the data via SNMP.

But if I connect the arduino to the printer, how do I connect the PC to the printer?

That is the question.

I do not know if I'm being clear, I'm having trouble explaining, but am struggling.

Sorry if there are mistakes in my english, I'm brazilian.

If what you are after is SNMP information from the printer, why not write an Arduino SNMP client for the ethernet shield to go grab it over the network? Google shows a lot of hits for "arduino snmp". You might find some code that would make a good starting point.

I don't understand how sniffing the printer traffic was going to get you SNMP data anyway. But getting even one of those protocols right would be a sizable project.

-br

Yes, that's exactly what I'm wondering, do the arduino a manager SNMP. However I would leave it attached to the printer and plugged into your ethernet port, so that each printer would your SNMP manager, but understand that doing this will be very complex.

Well, I guess if I leave only one arduino monitoring all network printers would be smarter for now.

Do you have any reference on how to make the arduino a manager SNMP?
Hà some library ready for managing devices via SNMP?

This is the point where I suggest you hit the search engines.

Best,

-br

Ok! I'll try to continue this way.

Thank you all!