GithubHelp home page GithubHelp logo

integersofk / hoin-pos-58-80 Goto Github PK

View Code? Open in Web Editor NEW
38.0 5.0 26.0 3.96 MB

Drivers for the Hoin HOP-E801 point of sale thermal receipt printer with variable paper width 58 or 80 millimeters.

License: MIT License

Makefile 1.42% C 88.07% Shell 10.51%

hoin-pos-58-80's Introduction

Hoin-POS-58-80

Drivers for the Hoin HOP-E801 point of sale thermal receipt printer with variable paper width 58 or 80 millimeters.

I bought the HOP-E801 thermal receipt printer from http://hoinprinter.com/ but the compiled linux drivers were built on a 32-bit system so the filter would fail to print with CUPS on my Raspberry Pi 3. The source was available on the little CD they sent with it and seems to be a fork of the ZJ-58 thermal printer drivers (that's probably fine because many thermal reciept printers share the same printing commands). The PPD seems to work well, it's just the rastertopos filter that stalls/fails the print queue if you're using the wrong one. You can fork this repo to make your own paper sizes or whatnot, or maybe you came here just to download the 64-bit version of the filter I re-compiled. So if you're having problems with the factory-supplied rastertopos filter and don't know where to start troubleshooting, it might be just that you have to take the file rastertopos (for 80mm paper) or rastertopos58 (if you're using 58mm mode) and copy it into /usr/lib/cups/filter/ on your host printing computer.

For those who came here for the factoy--supplied rastertopos and rastertopos58 (built for 32-bit hosts) you can grab that from the filter folder too, or again you can build it yourself.

For whatever reason, the 58mm ppd and rastertopos58 filter did not have the cutter function, so I added that from the 80mm version (but only 64-bit so you'll have to recompile that for 32-bit if you need the cutter).

hoin-pos-58-80's People

Contributors

integersofk avatar mustekito avatar shyaminayesh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

hoin-pos-58-80's Issues

Install drivers on xubuntu 18.04

Hi, I try to install your drivers, cant find a howto... I downloaded it and tried to install with:

support@xubu001:~/Downloads/Hoin-POS-58-80$ sudo ./setup80.sh
POS Electronics Co..Ltd

Models included:
POS-80-Series
POS-58-Series

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
Searching for ServerRoot, ServerBin, and DataDir tags in /etc/cups/cupsd.conf

ServerBin tag not present in cupsd.conf - using default

DataDir tag not present in cupsd.conf - using default

ServerRoot =
ServerBin =
DataDir =

Copying rastertopos filter to /usr/lib/cups/filter
chmod: Zugriff auf './bin/rastertopos' nicht möglich: Datei oder Verzeichnis nicht gefunden
cp: Aufruf von stat für './bin/rastertopos' nicht möglich: Datei oder Verzeichnis nicht gefunden

Copying model ppd files to /usr/share/cups/model/pos
cp: Aufruf von stat für 'ppd/*.ppd' nicht möglich: Datei oder Verzeichnis nicht gefunden

Add POS-80-Series printer

Restarting CUPS
[ ok ] Stopping cups (via systemctl): cups.service.
[ ok ] Starting cups (via systemctl): cups.service.

Install Complete
Go to http://localhost:631, or http://127.0.0.1:631 to manage your printer please!

How shall I do it ?

Excess paperfeed when printing jpg from command line

Hi,

I've encountered an issue where the POS-58-Series shows unexpected behavior.

When I issue the following command from the command line:

lpr -P POS-58-Series qrcode.jpg

It prints the jpg (a QR-Code) but not after it has added ca 86mm of white space before actually starting to print the jpg, which creates a lot of paperwaste.

The jpg has the following characteristics according to imagemagick:

qrcode.jpg JPEG 123x123 123x123+0+0 8-bit Gray 256c 8.3KB 0.000u 0:00.010

I am not using any headers or footers, regular text files are not printed with any additional white space.

Compatibility with CUPS 2.2.5

If I compile the file using latest CUPS I get following issues:

ppd_file_t undeclared

I am trying to make the filter compiling for MacOS. Do you have a clue what might be the issue? Is it, that the file is not made for latest CUPS or is MacOS missing the development libraries.

gcc -g -O2   -c -o rastertopos.o rastertopos.c
rastertopos.c:78:16: error: unknown type name 'ppd_file_t'; did you mean 'cups_file_t'?
void    StartPage(ppd_file_t *ppd, cups_page_header2_t *header);
                  ^~~~~~~~~~
                  cups_file_t
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/cups/file.h:60:29: note: 'cups_file_t' declared here
typedef struct _cups_file_s cups_file_t;/**** CUPS file type ****/
                            ^

Build for MacOS

Hi there,

Thanks for this repo. I wonder, have you built the filter for 58mm for MacOS?

I'm stuck at getting it work with CUPs on macOS. The filter failed.

Set number of copies of a document

Hello,
Is it possible to manually enter the number of copies to be printed of a document? I did some tests on the configuration of the ppd file but I couldn't get the desired result.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.