I am working on a new project which uses the Banana Pi to capture USB output destined for a printer in order to log the output from a system.
The BananaPi will need to be a simple plugin which sits between the machine and a connected USB printer - so we want to:
a ) Mimic the connected USB printer (so that the machine thinks it still has the original printer attached)
b ) Capture the output from the machine
c ) Send the captured output onwards to the printer.
The BananaPi seemed the obvious choice as it has the built in USB OTG port and we would use the gadget printer to mimic the attached printer.
Unfortunately, the Bananian images do not support the gadget printer at all (even after configuring them for Banana Pi + OTG, the command modprobe g_printer returns an error.
We therefore installed the Vanilla flavour of Jessie from Armbian, and modprobe g_printer now seems to work.
However, there is no /dev/g_printer which we expected to see - is this now stored in a different place, or maybe we have missed something?