I have a (cheap Chinese) thermal printer with USB connection with Windows and Linux drivers. I tested installing the Linux driver PPD with Gutenprint and usbtb at first without any luck.
So I would like to be able to send text-only direct to the printer. I can't see any virtual device under /dev/ that seems to correspond to the printer.
The output from System Information looks like this:
Generic Bulk Device:
Product ID: 0x5011
Vendor ID: 0x0416 (Winbond Electronics Corp.)
Version: 3.00
Serial Number: 1234567890
Speed: Up to 12 Mb/sec
Manufacturer: Generic
Location ID: 0x14100000 / 1
Current Available (mA): 500
Current Required (mA): 100
1284 Device ID: print00
Is there a way to send text (ASCII) to the printer?
When Mac OS X tries to identify the printer it manages to send PostScript code that the printer outputs verbatim so at least some parts of the communication with printer works. If I just could avoid sending PostScript code and instead just send ordinary text.
Best Answer
I managed to install a raw printer driver and print to it from the command line.
Using CUPS/Gutenprint's web interface at
http://localhost:631/
I added a printer with device URIand selected "Raw" as the make for the printer. (Please note that the serial URI parameter corresponds to the serial number for the USB device as listed in the question!)
I can now see the printer listed when issuing the command
lpstat -p -d
To print the text file
text.txt
I writelp -d Generic_usbtb test.txt