Skip to content

Linux friendly script to control serial thermal printers. Specifically for NCR 7167 with manual attached, but many commands are generic and can be used on other models.

Notifications You must be signed in to change notification settings

webbo89/ncrdriver

 
 

Repository files navigation

#NCR 7167 DRIVER C++

A framework for writing to the receipt printer over usb serial connection. Will probably work for other NCR models with a little tweaking.

Features

  • String printing
  • Monochrome Bitmap printing (QR codes)
  • QR code generation
  • Ticket Cut
  • Beep

For our Human Centered Robotics course at university we are making a robot that will print unique leaflets/tickets after "making friends" with a human. So we bought a receipt printer for its rapid printing and cutting capabilities.

The "main focus" of the project is the C++ code to print text files, QR codes and cut.

Usage

Remember to ensure permissions where printer is connected:

CHMOD 777 /dev/ttyUSBX

Setup + arguments (all required):

./async

  1. int port
  2. int/epoch time
  3. string messagepath
  4. bool cut
  5. int lines (suggested: 0)
  6. bool beep

Samples:

./async 0 1354133999 message.txt true 3 true ./async 0 1354133999 message.txt false 0 false

by

maxrev17

webbo89

About

Linux friendly script to control serial thermal printers. Specifically for NCR 7167 with manual attached, but many commands are generic and can be used on other models.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 73.3%
  • C 24.1%
  • C++ 2.5%
  • PHP 0.1%