[et_pb_section fb_built=”1″ _builder_version=”3.0.47″][et_pb_row _builder_version=”3.0.48″ background_size=”initial” background_position=”top_left” background_repeat=”repeat”][et_pb_column type=”4_4″ _builder_version=”3.0.47″ parallax=”off” parallax_method=”on”][et_pb_text _builder_version=”3.0.74″ background_size=”initial” background_position=”top_left” background_repeat=”repeat”]
apt-get install ser2net
lsusb
Bus 001 Device 010: ID 0557:2011 ATEN International Co., Ltd UC-2324 4xSerial Ports [mos7840]
Bus 001 Device 009: ID 9710:7840 MosChip Semiconductor MCS7820/MCS7840 2/4 port serial adapter
Bus 001 Device 008: ID 9710:7840 MosChip Semiconductor MCS7820/MCS7840 2/4 port serial adapter
dmesg |grep tty
[3619219.523708] usb 1-1.3.1: Moschip 7840/7820 USB Serial Driver converter now attached to ttyUSB0
[3619219.525874] usb 1-1.3.1: Moschip 7840/7820 USB Serial Driver converter now attached to ttyUSB1
[3619219.542097] usb 1-1.3.1: Moschip 7840/7820 USB Serial Driver converter now attached to ttyUSB2
[3619219.544635] usb 1-1.3.1: Moschip 7840/7820 USB Serial Driver converter now attached to ttyUSB3
[3619219.775360] usb 1-1.3.2: Moschip 7840/7820 USB Serial Driver converter now attached to ttyUSB4
[3619219.777499] usb 1-1.3.2: Moschip 7840/7820 USB Serial Driver converter now attached to ttyUSB5
[3619219.782304] usb 1-1.3.2: Moschip 7840/7820 USB Serial Driver converter now attached to ttyUSB6
[3619219.784983] usb 1-1.3.2: Moschip 7840/7820 USB Serial Driver converter now attached to ttyUSB7
[3619379.464566] usb 1-1.3.3: Moschip 7840/7820 USB Serial Driver converter now attached to ttyUSB8
[3619379.484241] usb 1-1.3.3: Moschip 7840/7820 USB Serial Driver converter now attached to ttyUSB9
[3619379.487233] usb 1-1.3.3: Moschip 7840/7820 USB Serial Driver converter now attached to ttyUSB10
[3619379.495349] usb 1-1.3.3: Moschip 7840/7820 USB Serial Driver converter now attached to ttyUSB11
cat /etc/ser2net.conf
BANNER:banner:\r\nser2net port \p device \d [\s] (Debian GNU/Linux)\r\n\r\n
#2000:telnet:600:/dev/ttyS0:9600 8DATABITS NONE 1STOPBIT banner
#2001:telnet:600:/dev/ttyS1:9600 8DATABITS NONE 1STOPBIT banner
#3000:telnet:600:/dev/ttyS0:19200 8DATABITS NONE 1STOPBIT banner
#3001:telnet:600:/dev/ttyS1:19200 8DATABITS NONE 1STOPBIT banner
#
2000:telnet:600:/dev/ttyUSB0:9600 8DATABITS NONE 1STOPBIT banner
2001:telnet:600:/dev/ttyUSB1:9600 8DATABITS NONE 1STOPBIT banner
2002:telnet:600:/dev/ttyUSB2:9600 8DATABITS NONE 1STOPBIT banner
2003:telnet:600:/dev/ttyUSB3:9600 8DATABITS NONE 1STOPBIT banner
2004:telnet:600:/dev/ttyUSB4:9600 8DATABITS NONE 1STOPBIT banner
2005:telnet:600:/dev/ttyUSB5:9600 8DATABITS NONE 1STOPBIT banner
2006:telnet:600:/dev/ttyUSB6:9600 8DATABITS NONE 1STOPBIT banner
2007:telnet:600:/dev/ttyUSB7:9600 8DATABITS NONE 1STOPBIT banner
2008:telnet:600:/dev/ttyUSB8:9600 8DATABITS NONE 1STOPBIT banner
2009:telnet:600:/dev/ttyUSB9:9600 8DATABITS NONE 1STOPBIT banner
2010:telnet:600:/dev/ttyUSB10:9600 8DATABITS NONE 1STOPBIT banner
2011:telnet:600:/dev/ttyUSB11:9600 8DATABITS NONE 1STOPBIT banner
ENABLE Control Port in ser2net.conf
# Don’t do this by default
CONTROLPORT:2999
[/et_pb_text][/et_pb_column][/et_pb_row][/et_pb_section]