How to read and write to the serial port (ttys0) from another computer via ethernet (eth0) on Ubuntu / Debian?

Well, there are two computers connected via Wi-Fi, and one of them (let it be called A ) has a printer with a serial port (in ttys0 ) and a measure of the serial port device (in ttys1 ). Therefore, B needs to read some values ​​from a mesure device connected to A , and then write to a printer connected to A using a network connection.

+3
source share
2 answers

ser2net is a good solution for this

aptitude install ser2net

/etc/ser 2net.conf

tcp - .

+4

, Ubuntu - , , netcat. , , , .

+4

Source: https://habr.com/ru/post/1718647/


All Articles