The Microsoft Generic Text Only Driver & IPSpool Included with the normal printer drivers in Windows is a special type of driver called a 'Generic Text Only Driver' which isn't for any specific model of printer but instead allows you to output. Text Printing Commands.; 2 minutes to read Contributors. In this article. Text printing commands are those that are associated with printing text. These commands are divided into the following groups: Commands for Device Fonts. Commands for Downloaded Fonts. Commands for Simulated Fonts. Note: Raw commands often do not need the printer driver, and can be sent using the Generic/Text driver supplied with your operating system. (Except USB printers, which sometimes require the device driver along side the Generic/Text driver). How to modify the Generic Text only printer driver. The company no longer supports the product and doesn't offer drivers for it anymore. Their tech support guy told me that I could modify the generic text only driver to include the printer's commands.
Active3 years, 8 months ago
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.
Printer command code is (GS V m), where m = 0,1,48 or 49 which I found on the device manual. I would like to know how to send these command to printer by StringWriter. I use Generic/Text Only printer because it's much faster than using Epson driver.
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:
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.
moonhouse
moonhousemoonhouse
1 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 URI usbtb://Generic%00%00%06/Generic%20Bulk%20Device?serial=1234567890
and 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
printer Generic_usbtb is idle. enabled since Tue Jul 16 23:04:11 2013
To print the text file
text.txt
I write lp -d Generic_usbtb test.txt
Driver Printer Hp 3920
moonhousemoonhouse