/ncrdriver

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.

Primary LanguageShell

#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