{"id":966,"date":"2015-08-17T00:40:14","date_gmt":"2015-08-16T15:40:14","guid":{"rendered":"https:\/\/hack.gpl.jp\/?p=966"},"modified":"2015-08-17T00:40:14","modified_gmt":"2015-08-16T15:40:14","slug":"post-966","status":"publish","type":"post","link":"https:\/\/hack.gpl.jp\/2015\/08\/17\/post-966.html","title":{"rendered":"osx \u306e\u30b7\u30ea\u30a2\u30eb\u30dd\u30fc\u30c8\u306e\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u30fc\u3042\u308c\u3053\u308c"},"content":{"rendered":"

\u30b7\u30ea\u30a2\u30eb\u3092telnet \u7d4c\u7531\u3057\u3066\u3064\u306a\u3052\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u306e\u3067\u3001ArduinoIDE \u304b\u3089\u30b7\u30ea\u30a2\u30eb\u3092WiFi \u3067\u66f8\u304d\u8fbc\u3081\u308b\u3088\u3046\u306b\u3057\u3066\u307f\u3088\u3046\u3068\u3042\u308c\u3053\u308c\u3084\u308b\u3053\u3068\u30011\u65e5\u5f31\u3002\u7d50\u5c40\u3001osx \u3067\u306f\u826f\u3044\u30c4\u30fc\u30eb\u304c\u898b\u3064\u304b\u3089\u305a\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002 <\/p>\n

\u4f55\u304c\u3067\u304d\u306a\u304b\u3063\u305f\u304b\u3068\u8a00\u3046\u3068\u3001\u4eee\u60f3\u30b7\u30ea\u30a2\u30eb\u30dd\u30fc\u30c8\u3092\u4f5c\u6210\u3057\u3066\u3001\u305d\u308c\u3092ArduinoIDE \u304b\u3089\u8a8d\u8b58\u3067\u304d\u305a\u3067\u3001\u4f55\u304b\u3084\u308a\u65b9\u304c\u3042\u308b\u3093\u3060\u308d\u3046\u3068\u601d\u3044\u307e\u3059\u3002socat \u306e\u4f7f\u3044\u65b9\u304c\u60aa\u3044\u3093\u3060\u3068\u601d\u3046\u306e\u3067\u3001\u7d99\u7d9a\u3057\u3066\u8abf\u67fb\u3002Windows \u3060\u3068\u3053\u306e\u3042\u305f\u308a\u306e\u30c4\u30fc\u30eb\u306f\u305f\u304f\u3055\u3093\u3042\u3063\u3066\u3001\u82e6\u52b4\u3057\u306a\u3044\u611f\u3058\u306a\u306e\u3067\u3001\u6b21\u56de\u306f\u3001Windows \u3067\u3084\u3063\u3066\u307f\u308b\u3053\u3068\u306b\u3002 <\/p>\n

\u3067\u3001\u3044\u308d\u3044\u308dsocat \u306e\u4f7f\u3044\u65b9\u3092\u8a66\u3057\u3066\u3044\u308b\u3046\u3061\u306b\u3001\u6628\u65e5\u306e\u7591\u554f\u304c\u89e3\u3051\u307e\u3057\u305f\u3002<\/p>\n

\u30fbESP12 \u306e\u63a5\u7d9aIP\u306b\u3064\u306a\u3052\u3066\u3001echo \u304c\u8868\u793a\u3055\u308c\u3066\u3057\u307e\u3046\u554f\u984c
\u30fbCTL + C \u306a\u3069 \u63a5\u7d9a\u3057\u305f\u5148\u3067\u3084\u308a\u305f\u3044\u3093\u3060\u3051\u3069\u3001socat \u306e\u63a5\u7d9a\u5143\uff08osx \u5074\uff09\u3067 CTL + C \u306b\u306a\u308b\u554f\u984c <\/p>\n

\u3053\u308c\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3059\u308c\u3070\u826f\u3044\u3088\u3046\u3067\u3059\u3002<\/p>\n

\n

$ socat STDIN,raw,echo=0 TCP:192.168.1.36:23 <\/p>\n<\/blockquote>\n

raw \u3092\u3064\u3051\u3066\u304a\u3051\u3070\u3001\u305d\u306e\u307e\u307e\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u4fe1\u53f7\u3082\u9001\u3089\u308c\u308b\u3051\u3069\u3082\u3001\u624b\u5143\u306e\u30bf\u30fc\u30df\u30ca\u30eb\u306f\u4e2d\u65ad\u3067\u304d\u306a\u3044\u306e\u3067\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u9589\u3058\u3066\u3057\u307e\u3046\u611f\u3058\u3002tcpdump \u3068\u304b\u3001WiFi \u7d4c\u7531\u306e\u30b7\u30ea\u30a2\u30eb\u304b\u3089\u5165\u3063\u3066\u63a1\u53d6\u3057\u3066\u308b\u3068\u304d\u3068\u304b\u3001CTL + C \u3067\u304d\u308b\u3057\u3001\u4e0a\u77e2\u5370\u306e\u30b3\u30de\u30f3\u30c9\u5c65\u6b74\u3082\u3001tab \u88dc\u5b8c\u30ad\u30fc\u3082\u52b9\u304d\u307e\u3059\u3002\u7406\u5c48\u304c\u308f\u304b\u3063\u3066\u3057\u307e\u3048\u3070\u3001\u3042\u3001\u305d\u3046\u304b\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u304c\u3002\u3002\u3002\u3002<\/p>\n

 <\/p>\n

\u8abf\u3079\u3066\u3044\u308b\u3068\u304d\u306b\u3001\u3088\u304f\u307e\u3068\u307e\u3063\u305fBlog\u8a18\u4e8b\u304c\u3042\u3063\u305f\u306e\u3067\u3001\u30e1\u30e2\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n

\n

Make RS232 Serial Devices Accessible via Ethernet
http:\/\/blog.philippklaus.de\/2011\/08\/make-rs232-serial-devices-accessible-via-ethernet\/<\/a><\/p>\n<\/blockquote>\n

\u6700\u5f8c\u306b\u3001socat \u3067\u306e\u30bd\u30b1\u30c3\u30c8\u3092\u5206\u5272\u3059\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3084\u308c\u3070\u826f\u3044\u4e8b\u304c\u308f\u304b\u308a\u307e\u3057\u305f\u3002 <\/p>\n

\"ishizaka_\u2014_socat_\u2014_ttys008_\u2014_76\u00d723_\u3068_ishizaka_\u2014_socat_\u2014_ttys007_\u2014_76\u00d723_\u3068_ishizaka_\u2014_socat_\u2014_ttys002_\u2014_76\u00d723_\u3068_ishizaka_\u2014_tail_\u2014_ttys009_\u2014_76\u00d736\" <\/p>\n

sudo socat -d -d -d -d -lf \/tmp\/socat \\\npty,\\\nlink=\/dev\/master,\\\nraw,\\\necho=0,\\\nuser=junkhack,\\\ngroup=staff\\\n\\\npty,\\\nlink=\/dev\/slave,\\\nraw,\\\necho=0,\\\nuser=junkhack,\\\ngroup=staff<\/pre>\n<\/p>\n

\u00a0<\/p>\n

\u00a0<\/p>\n

\u3069\u3046\u3084\u3063\u3066\u3001arduinoIDE \u306e\u30b7\u30ea\u30a2\u30eb\u30dd\u30fc\u30c8\u306b\u8868\u793a\u3055\u305b\u308b\u304b\u304c\u8ab2\u984c\u3067\u3059\u3002<\/p>\n

WiFi \u7d4c\u7531\u306e\u30b7\u30ea\u30a2\u30eb\u30b3\u30f3\u30bd\u30fc\u30eb\u3067\u3001\u305a\u3063\u3068tcpdump \u3092\u6d41\u3057\u3066\u30c6\u30b9\u30c8\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u63a5\u7d9a\u3082\u304d\u308c\u305a\u826f\u3044\u611f\u3058\u3067\u3059\u3002\u3042\u3068\u3001\u8a71\u306f\u98db\u3073\u307e\u3059\u304c\u3001ESP8266 Arduino Core \u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u898b\u3066\u307e\u3057\u305f\u3089\u3001File system \u3082\u4f7f\u3048\u308b\u3088\u3046\u3067\u3059\u306d\u3002\u3053\u308c\u306f\u3042\u308b\u7a0b\u5ea6\u307e\u3067\u3001\u30c7\u30fc\u30bf\u3092\u30e1\u30e2\u30ea\u306b\u8caf\u3081\u3066\u304a\u3044\u3066\u3001\u307e\u3068\u3081\u3066Wifi \u51fa\u529b\u3067\u30c7\u30fc\u30bf\u3092\u98db\u3070\u305b\u3070\u3001\u96fb\u529b\u306e\u6d88\u8cbb\u3082\u6291\u3048\u3089\u308c\u305d\u3046\u3067\u3059\u3002sleep mode \u306e\u4e0b\u8abf\u3079\u306f\u304a\u304a\u3088\u305d\u7d42\u308f\u3063\u305f\u306e\u3067\u3001\u30b3\u30fc\u30c9\u5b9f\u88c5\u3057\u3066\u3001\u96fb\u6c60\u99c6\u52d5\u306b\u3057\u3066\u30c6\u30b9\u30c8\u3059\u308b\u30c7\u30d0\u30a4\u30b9\u4f5c\u308a\u3092\u590f\u4f11\u307f\uff08\u307e\u3060\u3053\u308c\u304b\u3089\u306a\u3093\u3067\u3059\u304c\uff09\u306b\u3084\u308c\u308c\u3070\u3068\u601d\u3063\u3066\u3044\u307e\u3059\u3002ESP8266 \u3001\u3053\u3093\u306a\u306b\u904a\u3079\u308b\u3068\u306f\u3002\u307e\u3060lua \u306b\u3059\u308b\u306e\u3082\u3042\u308a\u307e\u3059\u3057\u306d\u3002\u4eca\u5e74\u3044\u3063\u3071\u3044\u306f\u904a\u3079\u308b\u611f\u3058\u3067\u3059\u3002\u98fd\u304d\u308b\u304b\u3001\u3044\u304d\u3065\u307e\u3089\u306a\u3051\u308c\u3070\u306d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u30b7\u30ea\u30a2\u30eb\u3092telnet \u7d4c\u7531\u3057\u3066\u3064\u306a\u3052\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u306e\u3067\u3001ArduinoIDE \u304b\u3089\u30b7\u30ea\u30a2\u30eb\u3092WiFi \u3067\u66f8\u304d\u8fbc\u3081\u308b\u3088\u3046\u306b\u3057\u3066\u307f\u3088\u3046\u3068\u3042\u308c\u3053\u308c\u3084\u308b\u3053\u3068\u30011\u65e5\u5f31\u3002\u7d50\u5c40\u3001osx \u3067\u306f\u826f\u3044\u30c4\u30fc\u30eb\u304c\u898b\u3064\u304b\u3089\u305a\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_uag_custom_page_level_css":"","footnotes":""},"categories":[30,69],"tags":[],"acf":[],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"post-thumbnail":false},"uagb_author_info":{"display_name":"JunkHack","author_link":"https:\/\/hack.gpl.jp\/author\/junkhack\/"},"uagb_comment_info":0,"uagb_excerpt":"\u30b7\u30ea\u30a2\u30eb\u3092telnet \u7d4c\u7531\u3057\u3066\u3064\u306a\u3052\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u306e\u3067\u3001ArduinoIDE \u304b\u3089\u30b7\u30ea\u30a2\u30eb\u3092WiFi \u3067\u66f8\u304d…","_links":{"self":[{"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/posts\/966"}],"collection":[{"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/comments?post=966"}],"version-history":[{"count":0,"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/posts\/966\/revisions"}],"wp:attachment":[{"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/media?parent=966"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/categories?post=966"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/tags?post=966"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}