node-escpos icon indicating copy to clipboard operation
node-escpos copied to clipboard

Does it work with STAR TSP143lll LAN thermal printer ?

Open ax88 opened this issue 8 years ago β€’ 15 comments

It works without any issue with a Epson TM-T20 II Ethernet printer. Using the same sample code, It doesn't work with a STAR TSP143lll LAN.

ax88 avatar Oct 07 '17 23:10 ax88

I confirm facing the same problem now, STAR printers aren't working

JefferyHus avatar Dec 11 '17 04:12 JefferyHus

are you sure that STAR printers (or just this one) support escpos standard ? I thought it was created by EPSO, so maybe all the printers does not reconize this standard ?

Psychopoulet avatar Feb 15 '18 10:02 Psychopoulet

I have a different STAR printer and it didn't work as well. So I assume either all STAR printers or a series of it.

JefferyHus avatar Feb 15 '18 20:02 JefferyHus

http://www.starmicronics.com/absolutefm/absolutefm/afmviewfaq.aspx?faqid=72

I think you have to enable escpos standard on STARS printers

Psychopoulet avatar Feb 16 '18 09:02 Psychopoulet

It is activated as I have created a buffer and sent it out to print, and it worked.

JefferyHus avatar Feb 16 '18 13:02 JefferyHus

I investigated the issue, it's because of the buffer bits that my STAR printer accepts it's different than what is present in this library so far, so when I used its manual, things worked fine with me.

JefferyHus avatar Feb 16 '18 13:02 JefferyHus

How to change the buffer bits in the star printer ? And what value did you put ?

ax88 avatar Feb 16 '18 15:02 ax88

I followed the manuals mate, check for your printers manual, there should be a part of commands then use those commands in your buffer.

JefferyHus avatar Feb 17 '18 04:02 JefferyHus

@ax88 maybe relevant http://starmicronics.com/support/Mannualfolder/star_graphic_cm_en.pdf

daniellizik avatar Nov 22 '18 04:11 daniellizik

created

Hello,

I am struggling with this, I have a TSP100iii and it doens't print anything. Can you explain what the solution is? You created a buffer? What does that mean?

greets John

jayel74 avatar Oct 18 '23 08:10 jayel74

is escpos enabled on your printer ?

Psychopoulet avatar Oct 19 '23 07:10 Psychopoulet

Yes it is enabled

jayel74 avatar Oct 19 '23 09:10 jayel74

Are you sur the connection is done ? what are you using, serial, network, bluetooth, usb ?

Psychopoulet avatar Oct 20 '23 07:10 Psychopoulet

`'use strict'; const escpos = require('escpos'); escpos.Network = require('escpos-network');

//escpos.SerialPort = require('escpos-serialport') // const device = new escpos.USB(0x0416, 0x5011); // const device = new escpos.RawBT(); // const device = new escpos.USB(0x0416, 0x5011); // const device = new escpos.RawBT(); const device = new escpos.Network('192.168.18.118'); // const device = new escpos.Serial('/dev/usb/lp0'); const printer = new escpos.Printer(device);

device.open(function(error){ if (error){ console.log(error) return } printer .font('a') .align('ct') .style('bu') .size(1, 1) .text('The quick brown fox jumps over the lazy dog') .text('ζ•ζ·ηš„ζ£•θ‰²η‹η‹Έθ·³θΏ‡ζ‡’η‹—') .barcode('1234567', 'EAN8') .table(["One", "Two", "Three"]) .tableCustom( [ { text:"Left", align:"LEFT", width:0.33, style: 'B' }, { text:"Center", align:"CENTER", width:0.33}, { text:"Right", align:"RIGHT", width:0.33 } ], { encoding: 'cp857', size: [1, 1] } // Optional ) .qrimage('https://github.com/song940/node-escpos', function(err){ this.cut(); this.close(); });

});`

jayel74 avatar Oct 22 '23 09:10 jayel74

no error, to timeout ? tried a console.log on the last callback to show if an error occured ?

Psychopoulet avatar Oct 23 '23 12:10 Psychopoulet