escpos-printer-db icon indicating copy to clipboard operation
escpos-printer-db copied to clipboard

ZJ-5870 Thermal Printer

Open wambiditu opened this issue 5 years ago • 2 comments

Manufacturer: ZiJiang (but mine is branded AGPtEK, and I have seen others as Esky) Model: ZJ-5870 I could find no guide online. Paper Width: 58mm

Based on the test bin files, I conclude:

Bit-Image: yes (without wide or tall) Graphics: no Barcode: no QR-Code: no PDF417-Code: no Margins and Spacing: no Partial Cut: no Full Cut: no Underline: light and heavy Text Width: 1x, 2x, 3x, 4x, 5x, 6x Text Height: 1x, 2x Character Encodings: Danish, German, English, Spanish, French Character Encodings: Irish Gaelic, Hungarian, Icelandic, Russian Character Encodings: Japanese Katakana Half-width Character Tables: 0 - CP437, 1 - CP932, 2 - CP850, 3 - CP860, 4 - CP863 Character Tables: 5 - CP865, 16 - CP1252, 17 - CP866, 18 - CP852 I think the Japanese table may not be entirely correct, but it does have the Katakana Half-width.

---
ZJ-5870:
  name: ZJ-5870 Thermal Receipt Printer
  vendor: ZiJiang
  notes: >
      ESC/POS Profile for ZiJiang ZJ-5870 Thermal Receipt Printer,
      which may be branded AGPtEK or Esky,
      and identifies itself as a POS-58 Thermal Printer on selftest.
      This profile is suitable for alphanumberic character mode,
      but is untested on Chinese character mode.
      (Change modes by holding down feed button during power-on
      until the mode LED turns off, then release immediately.)
  features:
    barcodeA: false
    barcodeB: false
    bitImageRaster: true
    bitImageColumn: true
    graphics: false
    starCommands: false
    qrCode: false
    pdf417Code: false
    highDensity: false
    pulseStandard: true
    pulseBel: false
    paperFullCut: false
    paperPartCut: false
  colors:
    0: black
  fonts:
    0:
      name: Font A
      columns: 32
  media:
    width:
      mm: 48
      pixels: 384
  codePages:
    0: CP437
    1: CP932
    2: CP850
    3: CP860
    4: CP863
    5: CP865
    16: CP1252
    17: CP866
    18: CP852
...

wambiditu avatar Jan 26 '19 10:01 wambiditu

Thanks for posting @wambiditu

The code page list is much shorter than POS-5890, also by Zjiang, did you get these by printing a test page?

mike42 avatar Jan 29 '19 03:01 mike42

When I printed the printer test page by holding down the feed button during power-on, it told me that it could do many different code pages. However, when I compared what characters were actually printed under those conditions (using one of the bin test files, and also under my own testing) I discovered that most of those code pages were simply copies of one of the first listed code pages, and didn't actually do anything differently. So I omitted those from the list.

(Unfortunately, yesterday I managed to turn my 5870 into a smoking melted ashtray due to a buffer overflow, under which condition this printer seems to simply freeze up while continuing to heat the print head forever. Hopefully the 5890 I ordered has either a larger buffer, or a safer response to this situation. Regardless, I'll handle overflows better myself.)

wambiditu avatar Jan 30 '19 17:01 wambiditu