Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.misc > #24622

Re: unsupported thermal receipt printer

From Nomen Nescio <nobody@dizum.com>
Subject Re: unsupported thermal receipt printer
References <pop1m0nkr@gioia.aioe.org>
Message-ID <f2a500459f94eb1e4ed2d4dfc73299ac@dizum.com> (permalink)
Date 2018-09-30 13:35 +0200
Newsgroups comp.os.linux.misc
Organization dizum.com - The Internet Problem Provider

Show all headers | View raw


asdf <a...@nospam.com> [a]:
a> I have this USB thermal receipt printer which prints correctly
a> any plain text echoed to its /dev/usb/lp0 device from command line
a> but doesn't seem to be supported by CUPS
a> http://www.jolimark.com/en/product/detail.php?proid=VFA1MTA=

Epson's CUPS driver:
	https://download.epson-biz.com/modules/pos/index.php?page=soft&scat=32




An alternative is the ESC/POS PHP driver:
	https://mike42.me/blog/what-is-escpos-and-how-do-i-use-it

Code sample:

   require __DIR__ . '/autoload.php';
   use Mike42\Escpos\Printer;
   use Mike42\Escpos\PrintConnectors\FilePrintConnector;
   $connector = new FilePrintConnector("/dev/usb/lp0");
   $printer = new Printer($connector);
   
   /* Text + barcodes */
   $barcodes = array(
   	Printer:::BARCODE_UPCA,
   	Printer:::BARCODE_UPCE,
   	Printer:::BARCODE_JAN13,
   	Printer:::BARCODE_JAN8,
   	Printer:::BARCODE_CODE39,
   	Printer:::BARCODE_ITF,
   	Printer:::BARCODE_CODABAR);
   $printer -> setBarcodeHeight(80);
   for($i = 0; $i < count($barcodes); $i++) {
   	$printer -> text("Barcode $i " . "\n");
   	$printer -> barcode("9876", $barcodes[$i]);
   	$printer -> feed();
   }
      
   $printer -> cut();
   $printer -> close();

Back to comp.os.linux.misc | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Re: unsupported thermal receipt printer Nomen Nescio <nobody@dizum.com> - 2018-09-30 13:35 +0200
  Re: unsupported thermal receipt printer asdf <asdf@nospam.com> - 2018-09-30 18:54 +0000
    Re: unsupported thermal receipt printer Robert Heller <heller@deepsoft.com> - 2018-09-30 14:39 -0500
    Re: unsupported thermal receipt printer Andreas Kohlbach <ank@spamfence.net> - 2018-09-30 16:47 -0400
    Re: unsupported thermal receipt printer The Natural Philosopher <tnp@invalid.invalid> - 2018-10-01 07:25 +0100
      Re: unsupported thermal receipt printer asdf <asdf@nospam.com> - 2018-10-01 22:51 +0000

csiph-web