Setup

Raspberry Pi

Note : tested on Raspberry Pi 2 and 3.

  1. Ensure that ttyAMA0 is not used for serial console access. Edit the file /boot/cmdline.txt to remove all name-value pairs containing ttyAMA0.

  2. Add the user to the dialout group:

sudo usermod -a -G dialout $USER
  1. Reboot.

Beagle Bone

Note : documentation retrieved from luopio/py-thermal-printer and has not been tested.

# Mux settings
echo 1 > /sys/kernel/debug/omap_mux/spi0_sclk
echo 1 > /sys/kernel/debug/omap_mux/spi0_d0

Other?

If you work with another hardware, please tell us :)