Deepu S Posted October 23, 2019 Posted October 23, 2019 I would like to make Orangepi zero to capture USB output destined for a printer in order to log the output from a system. 1 ) Mimic the connected USB printer (so that the machine thinks it still has the original printer attached) 2 ) Capture the output from the machine 3 ) Send the captured output to the printer.
usual user Posted October 23, 2019 Posted October 23, 2019 1 hour ago, Deepu S said: capture USB output destined for a printer You have to start here: https://www.kernel.org/doc/html/v5.3-rc3/usb/gadget_printer.html
blarki Posted November 21, 2019 Posted November 21, 2019 After you've done this, just write something to /dev/usb/lp0 on the host side, again just a standard file. Simplest would be to echo "asdf" >> /dev/usb/lp0 Take care of the permissions for both files, you need your user to be in the lp group and have write permissions. snaptube telegram web
Recommended Posts