I am developing on a device that has no printer support natively. I need to print to any printer using a USB port. Is this feasible? Is there any generic stand开发者_如何学Card for all printers to print via USB?
The device runs on Linux/PowerPC.
Sure.
There's the USB Printer Class (PDF, 11 pages). It seems to require that the host present data to the printer in either PDL or PCP formats. Remember that USB printers are generally "dumber" than Ethernet-connected printers, and require the host to do more work.
For the embedded world, you might be interested in Microchip's Application Note AN1233 (PDF, 22 pages), titled "USB Printer Class on an Embedded Host".
精彩评论