- Start your Android printer device and connect your computer's console and Android printer with a USB cable.
- After the Android printer system starts, you can see the Android phone device and USB print support in Windows Device Manager.
- At the same time, the Generic/text only printer can be seen in the Print Management-print server-local-printer.
- Modify the properties of the Generic/text only printer, and the code page in font selection is set to Simplified Chinese (936).
- Enter the ADB shell in the terminal (such as Xshell) and enter the Cat/dev/ffan_printer.
-
- If the terminal (such as Xshell) displays only English characters and numbers and does not display Chinese, refer to step 4th to modify the code page in the printer properties font selection.
- If the terminal (such as Xshell) is displayed as garbled in Chinese, you need to set the terminal display encoding to Simplified Chinese.
- If you use the serial terminal to open the Ffan_printer device, you need to use the background to run the way, the command is Cat/dev/ffan_printer &, to avoid ctrl-c after the/dev/ffan_printer when the "Cat:/dev/ Ffan_printer:device or resource Busy "error.
Android USB Gadget Composite Device driver (printer) test method