{"id":1014,"date":"2013-05-13T16:39:13","date_gmt":"2013-05-13T06:39:13","guid":{"rendered":"https:\/\/thedragon.kicks-ass.org\/?p=1014"},"modified":"2013-05-13T16:40:39","modified_gmt":"2013-05-13T06:40:39","slug":"serial-via-network-bridge","status":"publish","type":"post","link":"https:\/\/thedragon.kicks-ass.org\/?p=1014","title":{"rendered":"Serial via Network Bridge"},"content":{"rendered":"<p>I had a requirement for a Serial Bridge, eg: serial-&gt;Network-&gt;serial, I found a <a title=\"Serial Device Bridge\" href=\"http:\/\/blog.philippklaus.de\/2011\/08\/make-rs232-serial-devices-accessible-via-ethernet\/\" target=\"_blank\">nice page<\/a> with some options, \u00c2\u00a0socat to be good enough for what I needed.<\/p>\n<p>Server (Listening\u00c2\u00a0Side connected to end device)<\/p>\n<pre>socat -v -d -d tcp-l:54321,reuseaddr,fork file:\/dev\/ttyS0,nonblock,raw,echo=0,waitlock=\/tmp\/ttyS0.lock<\/pre>\n<p>Client (connecting to server)<\/p>\n<pre>socat -v -d -d tcp:123.123.123.123:54321 file:\/dev\/ttyS0,nonblock,raw,echo=0,lockfile=\/tmp\/ttyS0.lock<\/pre>\n<p>Alternative using Virtual PTY and SSH remote exec<\/p>\n<pre>socat PTY,link=$HOME\/dev\/vmodem0,raw,echo=0,wait-slave EXEC:'\"ssh modemserver.us.org socat - \/dev\/ttyS0,nonblock,raw,echo=0\"'<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I had a requirement for a Serial Bridge, eg: serial-&gt;Network-&gt;serial, I found a nice page with some options, \u00c2\u00a0socat to be good enough for what I needed. Server (Listening\u00c2\u00a0Side connected to end device) socat -v -d -d tcp-l:54321,reuseaddr,fork file:\/dev\/ttyS0,nonblock,raw,echo=0,waitlock=\/tmp\/ttyS0.lock Client &hellip; <a href=\"https:\/\/thedragon.kicks-ass.org\/?p=1014\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[9,4],"tags":[],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p20dKL-gm","_links":{"self":[{"href":"https:\/\/thedragon.kicks-ass.org\/index.php?rest_route=\/wp\/v2\/posts\/1014"}],"collection":[{"href":"https:\/\/thedragon.kicks-ass.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thedragon.kicks-ass.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thedragon.kicks-ass.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thedragon.kicks-ass.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1014"}],"version-history":[{"count":6,"href":"https:\/\/thedragon.kicks-ass.org\/index.php?rest_route=\/wp\/v2\/posts\/1014\/revisions"}],"predecessor-version":[{"id":1020,"href":"https:\/\/thedragon.kicks-ass.org\/index.php?rest_route=\/wp\/v2\/posts\/1014\/revisions\/1020"}],"wp:attachment":[{"href":"https:\/\/thedragon.kicks-ass.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1014"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thedragon.kicks-ass.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1014"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thedragon.kicks-ass.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1014"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}