mirror of
https://github.com/clockworkpi/DevTerm.git
synced 2025-12-17 12:48:49 +01:00
Updated Guide To Setup thermal printer from source code (markdown)
parent
9fa5095b8f
commit
c434791bc9
@ -4,13 +4,13 @@ We assume that you have a Devterm with stock os running
|
|||||||
and a little bit of Linux compiling experience
|
and a little bit of Linux compiling experience
|
||||||
know how to install packages through package manager like apt
|
know how to install packages through package manager like apt
|
||||||
|
|
||||||
|
## WiringPi
|
||||||
## CM3 or CM4
|
### CM3 or CM4
|
||||||
```
|
```
|
||||||
sudo apt install -y wiringpi libwiringpi-dev libcups2-dev
|
sudo apt install -y wiringpi libwiringpi-dev libcups2-dev
|
||||||
```
|
```
|
||||||
|
|
||||||
## A06 A04
|
### A06 A04
|
||||||
```
|
```
|
||||||
git clone https://github.com/clockworkpi/DevTerm.git
|
git clone https://github.com/clockworkpi/DevTerm.git
|
||||||
cd DevTerm/Code/devterm_wiringpi_cpi/
|
cd DevTerm/Code/devterm_wiringpi_cpi/
|
||||||
@ -18,7 +18,7 @@ sudo ./build
|
|||||||
#chose 0 or 1 depend which board you have
|
#chose 0 or 1 depend which board you have
|
||||||
```
|
```
|
||||||
|
|
||||||
## R01
|
### R01
|
||||||
```
|
```
|
||||||
git clone https://github.com/clockworkpi/DevTerm.git
|
git clone https://github.com/clockworkpi/DevTerm.git
|
||||||
wget https://github.com/WiringPi/WiringPi/archive/refs/tags/final_official_2.50.tar.gz
|
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
|
## debug or run it from manually
|
||||||
1. setup socat socket for data receving for thermal printer
|
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 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/
|
sudo ./usr/local/bin/devterm_socat.sh # <- this .sh file is in DevTerm/Code/thermal_printer/usr/local/bin/
|
||||||
```
|
```
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user