USB proxy driver or equivalent solution?

Problem: notify USB traffic / data

I would like to accept inbound traffic on a specific USB port and replicate it exactly as outbound traffic to another specific USB port by actually executing a USB proxy. In this regard, the connections should be two-way. An additional requirement is that the port must be able to fake its identification information (vendor ID, product identifier, ...), as seen on the external device. If this solution can also drop / register raw traffic, this would be fantastic, although it was not required. The target platforms are Windows and / or Linux (anyone will do).

Before embarking on an epic journey and writing a special driver that is likely to cause brain damage, I would like to ask if anyone has ever done something like this, or could have thought about the pieces needed for assembly this puzzle. :)

+4
source share
2 answers

In my work, we used this Beagle USB analyzer. It is located between the device and the host and captures all traffic without interruption. It works on windows and linux and even works with high-speed USB 2.0 ports.

http://www.totalphase.com/products/beagle_usb480/

Highly recommended.

+2
source

I do not think that this is feasible out of the box, without additional equipment.

Which device can you connect to the upstream port of the proxy server? Assuming the downstream port has a regular device (say, a mouse, for example), the device in the upstream should be a USB host in order to efficiently handle the USB device.

But you cannot connect the USB port of your computer (which is already the host for all of its root USB ports) directly to another computer, which is a complete violation of the USB network topology. Both ports contain +5 V power rails, and if you connect them you are likely to run into shock. And / or private fireworks. Or a trip to the nearest motherboard and / or PSU retailer ...

Also, since USB is quite dynamic, and so on, I don’t think you can expect that the bit of the stream from one port will be significant if the other port repeats, because the address information, etc. can change.

There are 100% USB software analyzers such as http://www.usblyzer.com/ , but I'm not so sure about the proxies as what you describe.

+3
source

Source: https://habr.com/ru/post/1335581/


All Articles