Setting up a Thermal Printer for Receipt Printing

Article sections

    Online Billing Software supports thermal printer with ESC/POS protocol support for receipt printing. See the list below for a list of printers where it has been tested.

    Setting a thermal printer involves 3 steps:

    1. Adding a Printer
    2. Configuring business location to use the added printer.
    3. Installation Pos Print server.

    Step 1: Adding a Printer

    1. Add a new printer from Settings -> Receipt Printer
    2. Select the appropriate Connection Type:
      1. For “Network” provide the IP Address of the printer.
      2. For “Windows” map the printer to a file and provide the path of the file. You can do this by sharing the printer to your localhost.
        The path will be in this format:

        smb://localhost/my_printer_name
        
        OR
        
        smb://computer_name/my_printer_name    (where my_printer_name is name of the printer)
      3. For “Linux” your printer device file will be somewhere like /dev/lp0 (parallel), /dev/usb/lp1 (USB), /dev/ttyUSB0 (USB-Serial), /dev/ttyS0 (serial)
    3. Select the capability profile and add character per line supported in the printer.
    4. Save the Printer configuration.
    5. Check the video below for more details on setting it.

    Step 2: Configuring Business Location to use printer:

    1. Go to Settings -> Business Settings.
    2. For a particular business location, go to “Settings” in actions column.
    3. Change “Receipt Printer Type” to “Use Configured Receipt Printer
    4. Select the “Receipt Printers” from the list of Receipt Printers
    5. Click on Update.

    Step 3: Installing POS Print Server

    For printing via receipt printer, you will need to install a “pos print server” on your local computer from which Online Billing Software is used.

    1. Download the server from .by clicking on “Download Repository”
    2. Unzip the zip file.
    3. Rename the unzipped folder to “pos_print_server”.
    4. Move the pos_print_server to document root (which is htdocs in XAMPP).
    5. Open Command Prompt or also called terminal. And go to the “pos_print_server” directory. You can go to this directory using “CD” command in the command prompt.
    6. From the Command Prompt which is now inside pos_print_server directory run the below command:
      php server.php
      After running the command it will start the print server and show a message similar to below:
      You may receive “Unrecognised command PHP”,  in that case, add PHP command to your environment variable. (Google search result)
    7. Now we are ready to go. Try creating a test sell from the pos screen and it should print in your thermal printer. If you haven’t added a printer then follow the steps mentioned in “Step1: Adding a Printer” and it should work.

    Great, now we’re ready to print on a thermal printer.

    Give it a test drive.

    Video Guide:

    Follow the steps as mentioned in this video up to 2.0 minutes.
    Use pos_print_server instead of the Github repo mentioned here.

    Go to POS screen, add a test invoice and check if it prints. If not please check if the pos receipt server is running or not.

     

    Printers

    Many thermal receipt printers support ESC/POS to some degree. This driver has been known to work with:

    AURES ODP-333
    AURES ODP-500
    Bixolon SRP-350III
    Citizen CBM1000-II
    Citizen CT-S310II
    Daruma DR800
    EPOS TEP 220M
    Epson TM-T88II
    Epson TM-T88III
    Epson TM-T88IV
    Epson TM-T88V
    Epson TM-T70
    Epson TM-T82II
    Epson TM-T20
    Epson TM-T20II
    Epson TM-T70II
    Epson TM-T81
    Epson TM-U220
    Epson TM-U295 (requires release() to release slip).
    Epson TM-U590 and TM-U590P
    Epson FX-890 (requires feedForm() to release paper).
    Equal (EQ-IT-001) POS-58
    Excelvan HOP-E58
    Excelvan HOP-E200
    Excelvan HOP-E801
    Excelvan ZJ-8220
    Gainscha GP-5890x (Also marketed as EC Line 5890x)
    Gainscha GP-U80300I (Also marketed as gprinter GP-U80300I)
    gprinter GP-U80160I
    Hasar HTP 250
    Metapace T-1
    Metapace T-25
    Nexa PX700
    Okipos 80 Plus III
    Orient BTP-R580
    P-822D
    P85A-401 (make unknown)
    Rongta RP326US
    Rongta RP58-U
    SEYPOS PRP-300 (Also marketed as TYSSO PRP-300)
    Silicon SP-201 / RP80USE
    Star TSP100 ECO
    Star TSP100III FuturePRNT
    Star TSP-650
    Star TUP-592
    SPRT SP-POS88V
    Xprinter F-900
    XPrinter XP-Q20011
    Xprinter XP-Q800
    Xprinter XP-80C
    Venus V248T
    Zjiang NT-58H
    Zjiang ZJ-5870
    Zjiang ZJ-5890T (Marketed as POS 5890T)
    Zjiang ZJ-5890K

    in Hardware SupportOnline Billing Software
    Did this article answer your question?

    Leave a Reply