ReceiptPrinter: verschil tussen versies

Uit MakerSpace Leiden
Ga naar: navigatie, zoeken
 
(7 tussenliggende versies door een andere gebruiker niet weergegeven)
Regel 1: Regel 1:
We have a ethernet connected (PoE powered) receipt/label printer.
+
We have a ethernet connected (PoE powered) receipt/label printer; with sufficient spare paper.
  
 
Drivers and programming manual at https://github.com/MakerSpaceLeiden/Manuals/tree/master/label-printer-BTP-R880NP
 
Drivers and programming manual at https://github.com/MakerSpaceLeiden/Manuals/tree/master/label-printer-BTP-R880NP
 +
and [https://mike42.me/blog/2015-03-getting-a-usb-receipt-printer-working-on-linux some example of ESC and GS raw sending]
  
== Software for Linux / OSX ==
+
== Software for OSX ==
  
Based on https://github.com/klirichek/zj-58:
+
Based on https://github.com/klirichek/zj-58 -- whose ESC/GS code seem to match the manual:
 +
 
 +
Fetch code:
  
 
   git clone https://github.com/klirichek/zj-58.git
 
   git clone https://github.com/klirichek/zj-58.git
Regel 11: Regel 14:
 
   make
 
   make
  
  # Create a directory for the raster tool:
+
Create a directory for the raster tool:
 +
 
 
   sudo mkdir /Library/Printers/ZJ
 
   sudo mkdir /Library/Printers/ZJ
 
   sudo cp rastertozj /Library/Printers/ZJ
 
   sudo cp rastertozj /Library/Printers/ZJ
  
  # Point the PPD file to this raster file:
+
Point the PPD file to this raster file:
  vi CTP29X.ppd
+
 
 +
  vi CTP29X.ppd
 
   # change  
 
   # change  
   *cupsFilter:            "application/vnd.cups-raster 0 /Library/Printers/CITIZEN/Filter/rastertocbm1k"
+
   *cupsFilter:            "application/vnd.cups-raster 0 /Library/Printers/ZJ/Filter/rastertozj"
 +
 
 +
ZIP up the PPD file and place it in the right place for OSX to pick it up:
  
  # ZIP up the PPD file and place it in the right place for OSX to pick it u.
 
 
   gzip CTP29X.ppd
 
   gzip CTP29X.ppd
 
   sudo cp ZJ-58.ppd.gz /Library/Printers/PPDs/Contents/Resources
 
   sudo cp ZJ-58.ppd.gz /Library/Printers/PPDs/Contents/Resources

Huidige versie van 15 jun 2020 om 11:16

We have a ethernet connected (PoE powered) receipt/label printer; with sufficient spare paper.

Drivers and programming manual at https://github.com/MakerSpaceLeiden/Manuals/tree/master/label-printer-BTP-R880NP and some example of ESC and GS raw sending

Software for OSX

Based on https://github.com/klirichek/zj-58 -- whose ESC/GS code seem to match the manual:

Fetch code:

 git clone https://github.com/klirichek/zj-58.git
 cd zj-58
 make

Create a directory for the raster tool:

 sudo mkdir /Library/Printers/ZJ
 sudo cp rastertozj /Library/Printers/ZJ

Point the PPD file to this raster file:

  vi CTP29X.ppd
  # change 
  *cupsFilter:            "application/vnd.cups-raster 0 /Library/Printers/ZJ/Filter/rastertozj"

ZIP up the PPD file and place it in the right place for OSX to pick it up:

 gzip CTP29X.ppd
 sudo cp ZJ-58.ppd.gz /Library/Printers/PPDs/Contents/Resources