Score:-1

USB Proxy "Dongle"

za flag

I need to be able to record all print requests to a printer physically connected via USB to a PoS like system. There is no need for me to manipulate the print job, I just need a "copy" of the print request and will send it to a remote machine in regular intervals in small batches. It is essential, that the printer is always available - independent of the network status. I have spied the BeagleBoard Black, as it seems to be able to run USB both in Host and Device mode at the same time. It seems to be me, that it should be possible to plug the beagle between both devices and get some software stack to

  • forward between host and device sides
  • create a copy of the data received

Is there any readily available solution for this? What would the "building" blocks be to make this happen?

Stefan avatar
za flag
found this here: github.com/AristoChen/usb-proxy seems to be a good starting point. But it lacks any „serial dump“
Score:3
ca flag

Is there any readily available solution for this?

I understand your use case that you like to do USB Protocol Analyzing, specifically "Sniffing". So, yes.

What would the "building" blocks be to make this happen?

There are many possibilities and depending on what kind of systems the print jobs become generated, the environment, your budget, what you try to achieve finally, etc.. Unfortunately your description as it currently is lacks a lot of details.

  • Under Linux usbmon
  • Under Windows wireshark and USBPcap, see also USB capture setup
  • FreeUSBAnalyzer, USBTrace, USB Data Monitor, USB Port Sniffer or others for Windows
  • Hardware USB Capture Card's or USB TAP
  • DIY Hardware like cheap USB sniffer
  • and more ...

Similar Q&A

Stefan avatar
za flag
Thanks a lot for your time and explanation. Sniffing always implies something temporary and passive to ne - so I did not consider the analyser / sniffer tools. USBMon only works on the host, and the PoS System is expecting a printer devices. so I I need something else. But the solution has been found! thanks again!
Score:1
za flag

https://github.com/nesto-software/USBProxy is the solution that I will be using. It pipes out the serial communication via ZeroMQ and I can write a simple client to consume the data. I found them last looking at all of the forks from the usb proxy mentioned in the comment to my question!

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.