{"id":23,"date":"2008-03-01T04:31:16","date_gmt":"2008-02-29T19:31:16","guid":{"rendered":"https:\/\/hiro7216.mydns.jp\/blog\/?p=23"},"modified":"2024-01-30T23:39:24","modified_gmt":"2024-01-30T14:39:24","slug":"usb-%e3%82%b7%e3%83%aa%e3%82%a2%e3%83%ab%e5%a4%89%e6%8f%9b%e3%82%b1%e3%83%bc%e3%83%96%e3%83%ab%e3%82%92%e8%aa%8d%e8%ad%98","status":"publish","type":"post","link":"https:\/\/hiro7216.mydns.jp\/blog\/?p=23","title":{"rendered":"USB-\u30b7\u30ea\u30a2\u30eb\u5909\u63db\u30b1\u30fc\u30d6\u30eb\u3092\u8a8d\u8b58"},"content":{"rendered":"\n<p>\u524d\u56de\u306e\u5984\u60f3\u304b\u30892\u65e5\u3002<br>\u79cb\u6708\u96fb\u5b50\u304b\u3089\uff35\uff33\uff22\u30fb\u30b7\u30ea\u30a2\u30eb\u5909\u63db\u30b1\u30fc\u30d6\u30eb\u304c\u5c4a\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>kernel\u3082\u524d\u3082\u3063\u3066\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3066\u3044\u305f\u306e\u3067\u65e9\u901fUSB\u306b\u633f\u3057\u3066\u307f\u308b\u3068\u30fb\u30fb\u30fb<br>\u8a8d\u8b58\u3057\u307e\u3057\u305f\uff01<br>usbserial_generic 2-1:1.0: usb_probe_interface &#8211; got id<br>drivers\/usb\/serial\/usb-serial.c: USB Serial Driver core<br>drivers\/usb\/serial\/usb-serial.c: USB Serial support registered for pl2303<br>pl2303 2-1:1.0: usb_probe_interface<br>pl2303 2-1:1.0: usb_probe_interface &#8211; got id<br>pl2303 2-1:1.0: pl2303 converter detected<br>usb 2-1: pl2303 converter now attached to ttyUSB0<br>usbcore: registered new driver pl2303<br>drivers\/usb\/serial\/pl2303.c: Prolific PL2303 USB to serial adaptor driver<\/p>\n\n\n\n<p>\u305f\u3060\u8272\u3005\u8abf\u3079\u3066\u305f\u6642\u306bkernel\u6a19\u6e96\u30c9\u30e9\u30a4\u30d0\u306f\u30b3\u30de\u30f3\u30c9\u306e\u9001\u4fe1\u304c\u51fa\u6765\u306a\u304f\u3066\u30d1\u30c3\u30c1\u304c\u5fc5\u8981\u3068\u8907\u6570\u306e\u30b5\u30a4\u30c8\u306b\u66f8\u3044\u3066\u3042\u3063\u305f\u3002<br>\u306a\u3093\u3067\u3082\u79cb\u6708\u96fb\u5b50\u3067\u58f2\u3063\u3066\u308b\u5909\u63db\u30b1\u30fc\u30d6\u30eb\u306e\u30c1\u30c3\u30d7\u306fPL-2303\u3067\u306f\u306a\u304fPL-2303X\u3068X\u304c\u4ed8\u304f\u3089\u3057\u3044\u3067\u3059\u3002<br>\u305d\u3053\u3067kernel\u6a19\u6e96\u306ePL-2303\u30c9\u30e9\u30a4\u30d0\u3067\u30b3\u30de\u30f3\u30c9\u9001\u4fe1\u304c\u53ef\u80fd\u304b\u8a66\u3057\u3066\u307f\u308b\u3053\u3068\u306b\u3002<br>\u3057\u304b\u3057\u30af\u30ed\u30b9\u306e\u30b7\u30ea\u30a2\u30eb\u30b1\u30fc\u30d6\u30eb\u304c\u5bb6\u306b\u3042\u308a\u307e\u305b\u3093\u30fb\u30fb\u30fb<br>UPS\u306e\u30b7\u30ea\u30a2\u30eb\u30b1\u30fc\u30d6\u30eb\u3082\u307e\u3060\u5c4a\u3044\u3066\u307e\u305b\u3093\u30fb\u30fb\u30fb<br>\u3069\u3046\u3084\u3063\u3066\u78ba\u8a8d\u3059\u308b\u304b\u60a9\u307f\u307e\u3057\u305f\u304c\u30b7\u30ea\u30a2\u30eb\u63a5\u7d9a\u306e\u30e2\u30c7\u30e0\u304c\u3042\u3063\u305f\u306e\u3067\u305d\u308c\u3067\u8a66\u3059\u3053\u3068\u306b\uff01<\/p>\n\n\n\n<p>\u307e\u305acu\u30b3\u30de\u30f3\u30c9\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b apt-get install cu<br>ttyUSB0\u306e\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3092\u5909\u66f4\u3057\u3068\u304d\u307e\u3059\u3002<br>\u30c6\u30b9\u30c8\u306a\u306e\u3067\u9069\u5f53\u306b\u30fb\u30fb\u30fb chmod 777 \/dev\/ttyUSB0<br>\u30e2\u30c7\u30e0\u306e\u96fb\u6e90\u3092\u5165\u308c\u3066\u3044\u3056\u63a5\u7d9a\u958b\u59cb\uff01<\/p>\n\n\n\n<p># cu -l \/dev\/ttyUSB0<br>Connected.<br>at[ENTER]<br>OK<br>at+fmfr?[ENTER]<br>ROCKWELL<\/p>\n\n\n\n<p>OK<br>at+fmdl?[ENTER]<br>AC\/K56<\/p>\n\n\n\n<p>OK<br>~.[ENTER]<\/p>\n\n\n\n<p>Disconnected.<\/p>\n\n\n\n<p>\u203b\u53c2\u8003\uff1a\u30aa\u30e2\u30a4\u30ce\u30db\u30ab\u65e5\u3005\u5f92\u7136<br><span style=\"color: #ff0000;\">\u203b\u65e2\u306b\u30ea\u30f3\u30af\u5148\u306e\u30b5\u30a4\u30c8\u306f\u306a\u304f\u306a\u3063\u3066\u3044\u308b\u3088\u3046\u3067\u3059<\/span><\/p>\n\n\n\n<p>AT\u30b3\u30de\u30f3\u30c9\u306e\u9001\u53d7\u4fe1\u304c\u51fa\u6765\u307e\u3059\u306d\u3002<br>kernel2.6.16.16\u306ePL-2303\u30c9\u30e9\u30a4\u30d0\u306fPL-2303X\u3067\u3082\u30d1\u30c3\u30c1\u306a\u3057\u3067\u52d5\u304f\u3088\u3046\u3067\u3059\u3002<br>USB-\u30b7\u30ea\u30a2\u30eb\u5909\u63db\u30b1\u30fc\u30d6\u30eb\u306e\u52d5\u4f5c\u78ba\u8a8d\u306f\u3053\u308c\u306b\u3066\u7d42\u4e86\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u56de\u306e\u5984\u60f3\u304b\u30892\u65e5\u3002\u79cb\u6708\u96fb\u5b50\u304b\u3089\uff35\uff33\uff22\u30fb\u30b7\u30ea\u30a2\u30eb\u5909\u63db\u30b1\u30fc\u30d6\u30eb\u304c\u5c4a\u304d\u307e\u3057\u305f\u3002 kernel\u3082\u524d\u3082\u3063\u3066\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3066\u3044\u305f\u306e\u3067\u65e9\u901fUSB\u306b\u633f\u3057\u3066\u307f\u308b\u3068\u30fb\u30fb\u30fb\u8a8d\u8b58\u3057\u307e\u3057\u305f\uff01usbserial_generic 2-1:1.0: u &hellip; <a href=\"https:\/\/hiro7216.mydns.jp\/blog\/?p=23\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">USB-\u30b7\u30ea\u30a2\u30eb\u5909\u63db\u30b1\u30fc\u30d6\u30eb\u3092\u8a8d\u8b58<\/span> <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":{"footnotes":""},"categories":[2,287],"tags":[166],"class_list":["post-23","post","type-post","status-publish","format-standard","hentry","category-linkstation","category-nas","tag-linkstation"],"_links":{"self":[{"href":"https:\/\/hiro7216.mydns.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/23","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hiro7216.mydns.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hiro7216.mydns.jp\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hiro7216.mydns.jp\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hiro7216.mydns.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=23"}],"version-history":[{"count":0,"href":"https:\/\/hiro7216.mydns.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/23\/revisions"}],"wp:attachment":[{"href":"https:\/\/hiro7216.mydns.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=23"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hiro7216.mydns.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=23"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hiro7216.mydns.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=23"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}