Post Reply 
Print42 - thermal printer software for Free42
11-05-2019, 03:15 AM
Post: #9
RE: Print42 - thermal printer software for Free42
Hi - great to hear about your thermal printer purchase!

Before I go to the effort of making a linux version of Print42, we need to verify if your bargain printer responds properly to ESCPOS commands and is compatible with the python escpos library that Print42 uses,

Please install the escpos python library with


pip install python-escpos==3.0a4

You need to know your printer's vendor and product id e.g. the values for my epson are
"vendorid": "B000",
"productid": "0410"

Then use something like this code to see if it communicates with your printer:


from escpos import *
x = printer.Usb(0x04b8,0x0202)  # replace with your own printer's vendor and product id
# Print text
x.text("Hello World\n")
# Print image
# Print QR Code
x.qr("You can readme from your smartphone")
# Print barcode
# Cut paper

Find all posts by this user
Quote this message in a reply
Post Reply 

Messages In This Thread
RE: Print42 - thermal printer software for Free42 - tcab - 11-05-2019 03:15 AM

User(s) browsing this thread: 1 Guest(s)