Skip to content

PhamBaTho/receipt-printer-driver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Python source code of POS system, run on Raspberry Pi, receive requests from iPad app and control thermal printer via COM interface.

Install Additional Python Libraries:

sudo apt-get install python-serial python-imaging python-unidecode

Enable Software Access to Serial Port:

The serial port on the Raspberry Pi’s GPIO header is normally configured for console cable use. But now we want to use this port for the thermal printer instead, so we’ll need to disable this default behavior.

sudo nano /boot/cmdline.txt

Change: dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait to: dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait (Basically, delete the references to ttyAMA0)

And:

sudo nano /etc/inittab

Comment out or delete the last line. i.e. change this: T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100 to: # T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100 Or simply delete that line.

About

Python source code of POS system on Raspberry Pi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages