diff --git a/Guide-To-Setup-thermal-printer-from-source-code.md b/Guide-To-Setup-thermal-printer-from-source-code.md index 351d522..fb4c7a6 100644 --- a/Guide-To-Setup-thermal-printer-from-source-code.md +++ b/Guide-To-Setup-thermal-printer-from-source-code.md @@ -4,13 +4,13 @@ We assume that you have a Devterm with stock os running and a little bit of Linux compiling experience know how to install packages through package manager like apt - -## CM3 or CM4 +## WiringPi +### CM3 or CM4 ``` sudo apt install -y wiringpi libwiringpi-dev libcups2-dev ``` -## A06 A04 +### A06 A04 ``` git clone https://github.com/clockworkpi/DevTerm.git cd DevTerm/Code/devterm_wiringpi_cpi/ @@ -18,7 +18,7 @@ sudo ./build #chose 0 or 1 depend which board you have ``` -## R01 +### R01 ``` git clone https://github.com/clockworkpi/DevTerm.git wget https://github.com/WiringPi/WiringPi/archive/refs/tags/final_official_2.50.tar.gz @@ -42,6 +42,8 @@ sudo systemctl start devterm-printer ## debug or run it from manually 1. setup socat socket for data receving for thermal printer ``` + sudo systemctl stop devterm-printer #stop service + sudo systemctl stop devterm-socat #stop service sudo socat -d -d pty,link=/tmp/DEVTERM_PRINTER_OUT,raw,echo=0 pty,link=/tmp/DEVTERM_PRINTER_IN,raw,echo=0 sudo ./usr/local/bin/devterm_socat.sh # <- this .sh file is in DevTerm/Code/thermal_printer/usr/local/bin/ ```