X
X
xAlex0072012-12-14 16:43:00
linux
xAlex007, 2012-12-14 16:43:00

USB host device printer emulator?

There is a USB Host device - a printer, you need to make such an intermediate device (USB input - B1, USB output - A1), which analyzes the data flow going to the host and performs some action (adds information to this data, deletes, etc.)
Help me decide on the pieces of iron that you need to choose - MCHFFSUSB Library Help (Google gives a link to this library), i.e. you can stop at Microchip. ... Or maybe there is something else, a Linux-based microcontroller, Raspberry Pi

Answer the question

In order to leave comments, you need to log in

4 answer(s)
X
xAlex007, 2012-12-14
@xAlex007

The emulator must be external, i.e. between the PC and the printer, so that there is no dependence on the PC at all, only the data transmitted by the spooler via the USB port is of interest. Based on these data, macros will be added, including any external mechanisms, but this is in the future :)

K
KoteSoft, 2012-12-15
@KoteSoft

If the task is only to analyze the transmitted data, then for a start you can limit yourself to a digital oscilloscope. In general, there are a bunch of microcontrollers with USB support. The problem may be that both master and slave are required, which can be difficult to implement on one controller. The second problem is the transfer speed, to support USB2.0 you need a controller operating at a high clock frequency. Another problem is that it is difficult to emulate something at the physical level, if this is a simple relay of commands - the task is quite simple, then changing them is already stressful, especially if the exchange protocol is unknown.

S
svd71, 2012-12-15
@svd71

USB-Host printer emulator - which printer is not specified. This makes a big difference in what you want.
I'm talking about the fact that each printer has its own data exchange protocols via the USB interface. You can simply copy all USB device reports to your microcontroller, providing an identical signal at the output. But it, again, will emulate a specific implementation of a specific printer. And it will require the use of specific drivers of a given model.
According to this principle, network printers and sharings work in multimedia centers with printer support. that is, a virtual port or TCP port is opened for access, which receives data already processed by the driver on the client machine and simply copies them to a real-life port.

X
xAlex007, 2012-12-17
@xAlex007

well, if each printer has its own data exchange protocols, then it is too complicated, i.e. make a universal gate, it is unlikely to succeed. I will then think in the direction of the Print API - Windows, Linux. How to pause the print flow to a specific printer page by page, modify it, react and send it further.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question