Does it work with STAR TSP143lll LAN thermal printer ?
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.
I confirm facing the same problem now, STAR printers aren't working
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 ?
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.
http://www.starmicronics.com/absolutefm/absolutefm/afmviewfaq.aspx?faqid=72
I think you have to enable escpos standard on STARS printers
It is activated as I have created a buffer and sent it out to print, and it worked.
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.
How to change the buffer bits in the star printer ? And what value did you put ?
I followed the manuals mate, check for your printers manual, there should be a part of commands then use those commands in your buffer.
@ax88 maybe relevant http://starmicronics.com/support/Mannualfolder/star_graphic_cm_en.pdf
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
is escpos enabled on your printer ?
Yes it is enabled
Are you sur the connection is done ? what are you using, serial, network, bluetooth, usb ?
`'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(); });
});`
no error, to timeout ? tried a console.log on the last callback to show if an error occured ?