{"id":100,"date":"2018-05-31T17:18:36","date_gmt":"2018-05-31T17:18:36","guid":{"rendered":"https:\/\/hegars83.wordpress.com\/?p=100"},"modified":"2018-06-20T21:13:48","modified_gmt":"2018-06-20T11:13:48","slug":"linux-ser2net-serial-server","status":"publish","type":"post","link":"https:\/\/blog.hegars.com\/?p=100","title":{"rendered":"Ser2net Serial Server"},"content":{"rendered":"<p>[et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;3.0.47&#8243;][et_pb_row _builder_version=&#8221;3.0.48&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;3.0.47&#8243; parallax=&#8221;off&#8221; parallax_method=&#8221;on&#8221;][et_pb_text _builder_version=&#8221;3.0.74&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221;]<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-101\" src=\"http:\/\/blog.hegars.com\/wp-content\/uploads\/2018\/05\/ser2net-1.png\" alt=\"ser2net\" width=\"790\" height=\"324\" srcset=\"https:\/\/blog.hegars.com\/wp-content\/uploads\/2018\/05\/ser2net-1.png 790w, https:\/\/blog.hegars.com\/wp-content\/uploads\/2018\/05\/ser2net-1-300x123.png 300w, https:\/\/blog.hegars.com\/wp-content\/uploads\/2018\/05\/ser2net-1-768x315.png 768w\" sizes=\"(max-width: 790px) 100vw, 790px\" \/><\/strong><\/p>\n<h1><strong>apt-get install ser2net<\/strong><\/h1>\n<p><strong>lsusb<\/strong><br \/> Bus 001 Device 010: ID 0557:2011 ATEN International Co., Ltd UC-2324 4xSerial Ports [mos7840]<br \/> Bus 001 Device 009: ID 9710:7840 MosChip Semiconductor MCS7820\/MCS7840 2\/4 port serial adapter<br \/> Bus 001 Device 008: ID 9710:7840 MosChip Semiconductor MCS7820\/MCS7840 2\/4 port serial adapter<\/p>\n<p><strong>dmesg |grep tty<\/strong><br \/> [3619219.523708] usb 1-1.3.1: Moschip 7840\/7820 USB Serial Driver converter now attached to ttyUSB0<br \/> [3619219.525874] usb 1-1.3.1: Moschip 7840\/7820 USB Serial Driver converter now attached to ttyUSB1<br \/> [3619219.542097] usb 1-1.3.1: Moschip 7840\/7820 USB Serial Driver converter now attached to ttyUSB2<br \/> [3619219.544635] usb 1-1.3.1: Moschip 7840\/7820 USB Serial Driver converter now attached to ttyUSB3<br \/> [3619219.775360] usb 1-1.3.2: Moschip 7840\/7820 USB Serial Driver converter now attached to ttyUSB4<br \/> [3619219.777499] usb 1-1.3.2: Moschip 7840\/7820 USB Serial Driver converter now attached to ttyUSB5<br \/> [3619219.782304] usb 1-1.3.2: Moschip 7840\/7820 USB Serial Driver converter now attached to ttyUSB6<br \/> [3619219.784983] usb 1-1.3.2: Moschip 7840\/7820 USB Serial Driver converter now attached to ttyUSB7<br \/> [3619379.464566] usb 1-1.3.3: Moschip 7840\/7820 USB Serial Driver converter now attached to ttyUSB8<br \/> [3619379.484241] usb 1-1.3.3: Moschip 7840\/7820 USB Serial Driver converter now attached to ttyUSB9<br \/> [3619379.487233] usb 1-1.3.3: Moschip 7840\/7820 USB Serial Driver converter now attached to ttyUSB10<br \/> [3619379.495349] usb 1-1.3.3: Moschip 7840\/7820 USB Serial Driver converter now attached to ttyUSB11<\/p>\n<p>&nbsp;<\/p>\n<p><strong> cat \/etc\/ser2net.conf <\/strong><\/p>\n<p>BANNER:banner:\\r\\nser2net port \\p device \\d [\\s] (Debian GNU\/Linux)\\r\\n\\r\\n<\/p>\n<p>#2000:telnet:600:\/dev\/ttyS0:9600 8DATABITS NONE 1STOPBIT banner<br \/> #2001:telnet:600:\/dev\/ttyS1:9600 8DATABITS NONE 1STOPBIT banner<br \/> #3000:telnet:600:\/dev\/ttyS0:19200 8DATABITS NONE 1STOPBIT banner<br \/> #3001:telnet:600:\/dev\/ttyS1:19200 8DATABITS NONE 1STOPBIT banner<br \/> #<br \/> 2000:telnet:600:\/dev\/ttyUSB0:9600 8DATABITS NONE 1STOPBIT banner<br \/> 2001:telnet:600:\/dev\/ttyUSB1:9600 8DATABITS NONE 1STOPBIT banner<br \/> 2002:telnet:600:\/dev\/ttyUSB2:9600 8DATABITS NONE 1STOPBIT banner<br \/> 2003:telnet:600:\/dev\/ttyUSB3:9600 8DATABITS NONE 1STOPBIT banner<br \/> 2004:telnet:600:\/dev\/ttyUSB4:9600 8DATABITS NONE 1STOPBIT banner<br \/> 2005:telnet:600:\/dev\/ttyUSB5:9600 8DATABITS NONE 1STOPBIT banner<br \/> 2006:telnet:600:\/dev\/ttyUSB6:9600 8DATABITS NONE 1STOPBIT banner<br \/> 2007:telnet:600:\/dev\/ttyUSB7:9600 8DATABITS NONE 1STOPBIT banner<br \/> 2008:telnet:600:\/dev\/ttyUSB8:9600 8DATABITS NONE 1STOPBIT banner<br \/> 2009:telnet:600:\/dev\/ttyUSB9:9600 8DATABITS NONE 1STOPBIT banner<br \/> 2010:telnet:600:\/dev\/ttyUSB10:9600 8DATABITS NONE 1STOPBIT banner<br \/> 2011:telnet:600:\/dev\/ttyUSB11:9600 8DATABITS NONE 1STOPBIT banner<\/p>\n<p>&nbsp;<\/p>\n<h1><strong>ENABLE Control Port in ser2net.conf<\/strong><\/h1>\n<p># Don&#8217;t do this by default<br \/> CONTROLPORT:2999<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-106\" src=\"http:\/\/blog.hegars.com\/wp-content\/uploads\/2018\/05\/ser2net-cp1-1.png\" alt=\"ser2net-cp\" width=\"620\" height=\"730\" srcset=\"https:\/\/blog.hegars.com\/wp-content\/uploads\/2018\/05\/ser2net-cp1-1.png 620w, https:\/\/blog.hegars.com\/wp-content\/uploads\/2018\/05\/ser2net-cp1-1-255x300.png 255w\" sizes=\"(max-width: 620px) 100vw, 620px\" \/><\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;3.0.47&#8243;][et_pb_row _builder_version=&#8221;3.0.48&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;3.0.47&#8243; parallax=&#8221;off&#8221; parallax_method=&#8221;on&#8221;][et_pb_text _builder_version=&#8221;3.0.74&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221;] 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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-container-style":"default","site-container-layout":"default","site-sidebar-layout":"default","disable-article-header":"default","disable-site-header":"default","disable-site-footer":"default","disable-content-area-spacing":"default","footnotes":""},"categories":[6,2],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.hegars.com\/index.php?rest_route=\/wp\/v2\/posts\/100"}],"collection":[{"href":"https:\/\/blog.hegars.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.hegars.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.hegars.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.hegars.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=100"}],"version-history":[{"count":5,"href":"https:\/\/blog.hegars.com\/index.php?rest_route=\/wp\/v2\/posts\/100\/revisions"}],"predecessor-version":[{"id":252,"href":"https:\/\/blog.hegars.com\/index.php?rest_route=\/wp\/v2\/posts\/100\/revisions\/252"}],"wp:attachment":[{"href":"https:\/\/blog.hegars.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=100"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.hegars.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=100"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.hegars.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}