Questions tagged [escpos]

A proprietary POS printer command system from EPSON.

A proprietary POS printer command system from EPSON.

320 questions
2
votes
1 answer

Escpos Thermal ZJ-58 Python Code128 Barcode print shows nothing

from escpos.printer import Usb p = Usb(0x0416, 0x5011, 0, 0x81, 0x03) p.text("=================\n") #p.image("./barcode/barcode.png") #p.barcode('1324354657687', 'EAN13', 64, 2, '', './fonts/code128.ttf') ### barcode(code, bc, width, height, pos,…
ikinciadam
  • 119
  • 1
  • 12
2
votes
1 answer

ESC/POS: Printing Images + Text in a single row

I'm trying to print a QR code + Text + Image on the same line in an ESC/POS supported thermal printer. I can print them one after the other in new lines, but is it possible to print them in one line? Is this even possible through ESC/POS commands?…
pickoneusername
  • 67
  • 2
  • 10
2
votes
1 answer

ESC/POS commands for QR prints only the content

I'm trying to print a QR code on a Custom VKP printer. The printer supports QR codes. I send ESC/POS commands to it, but all that is printed is the text and not the QR code. The following is my code in Java: String content = "Hello !!"; int…
pickoneusername
  • 67
  • 2
  • 10
2
votes
2 answers

When using text() with python-escpos I get [Errno None] and key error = 1 (windows 10)

I am trying to print to a TM-T20II thermal printer so I can print receipts. Here is my code: from escpos import printer from escpos import * import escpos from escpos import config import usb.core import usb.util import usb.backend.libusb1 from…
maxxslatt
  • 43
  • 6
2
votes
1 answer

Epson thermal printer status from NodeJS with ESC/POS

I have created an Electron app to configure and launch a NodeJS printer server. The NodeJS part is using https://github.com/song940/node-escpos to send ESC/POS command to an Epson thermal printer on a serial port. That's work fine, I am able to…
2ec0b4
  • 23
  • 1
  • 3
2
votes
1 answer

Encode string to cp852 in Angular/Ionic - iconv-lite

iam working on mobile App, which uses bluetooth printer to print bills. To get bill printed with correct diacritics, i need to encode it to correct coddepage. This can be done with this iconv-lite library, but iam not able to get it work. Has anyone…
2
votes
3 answers

Unhandled Rejection (TypeError): Net.connect is not a function

I am using node-thermal-printer package from github ( https://github.com/Klemen1337/node-thermal-printer ) in order to print on Esc-pos printer. When I try to print, I get error : Unhandled Rejection (TypeError): Net.connect is not a function I…
albert sh
  • 1,095
  • 2
  • 14
  • 31
2
votes
1 answer

ESC-POS-USB-NET Unable to access printer exception

I have an EPSON fiscal printer (FP 81 II) I installed its drivers and now I'm able to print test document to the printer and it's ok. The installed printer is the following I'm trying to execute the simple code of the library Printer printer = new…
Martina
  • 1,852
  • 8
  • 41
  • 78
2
votes
1 answer

ESC/POS Command for Printing Chinese Character

Printer Model: Epson TM-T88V ESC/POS Command Guide (look at P.115): http://download.delfi.com/SupportDL/Epson/Manuals/TM-T88IV/Programming%20manual%20APG_1005_receipt.pdf I've searched so many posts about this funcionality but still can't find a…
Sam Chen
  • 7,597
  • 2
  • 40
  • 73
2
votes
2 answers

Is there a way to get the status of a thermal printer using ESC commands?

I am adding a method to the library escpos-coffee, which returns the status of a thermal printer, i.e. whether it is online/offline, whether the paper is ending or the paper is finished, or whether the cash drawer is open/closed. I have added a…
Lucky
  • 158
  • 1
  • 2
  • 11
2
votes
0 answers

How to get image data for printing on thermal printer using ESC/POS?

First I initialize printer(ESC @ ): addBytesCommand(Data(bytes: [0x1B, 0x40])) Then I set the line feed amount(ESC 3 n): addBytesCommand(Data(bytes: [0x1B, 0x33, 24])) Then I'm trying to use (ESC *) command to print…
Borys T
  • 239
  • 2
  • 13
2
votes
2 answers

ESC/POS image in java

I need to print this image in a thermal printer(SAM4S ELLIX40). I've been searching and testing several codes but nothing actually works, they said "use this command and you'll see a line", I send that and nothing happens. I tried this commands…
Pedro Joaquín
  • 161
  • 2
  • 12
2
votes
0 answers

Print Image on EPSON LX-300+II using ESC/POS commands using C#

I am trying to print Image on EPSON LX-300+II printer using ESC/POS command. But print out is not what I am expecting. It is printing some blank lines and garbage character. Below is the code I have tried: using System; using…
2
votes
1 answer

escpos erro 'usb_detach_kernel_driver_np' not found

I try to print a ticket in a thermal printer. I use module escpos but when I run the script in Windows it sends me the following error Traceback (most recent call last): File "C:\Users\Angel\Desktop\Escritorio\impreimer.py", line 5, in…
Mystic_Force
  • 263
  • 3
  • 12
2
votes
1 answer

ESC/POS Protocol print bitmap

I need to print an graphical image using ESCPOS protocol. So far I have researched following commands available on my printer: GS v 0 m xL xH yL yH d1 … dk ESC * m nL nH d1…dk Let's say I got following image where 0 and 1 represents a single…
1 2
3
21 22