{"id":2679,"date":"2015-03-12T17:57:51","date_gmt":"2015-03-12T08:57:51","guid":{"rendered":"http:\/\/yasu2.prosou.nu\/blog\/index.php\/2015\/03\/12\/devttyusb_on_linux\/"},"modified":"2015-03-12T17:57:51","modified_gmt":"2015-03-12T08:57:51","slug":"devttyusb_on_linux","status":"publish","type":"post","link":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/2015\/03\/12\/2679\/","title":{"rendered":"\/dev\/ttyUSB on Linux"},"content":{"rendered":"<p>Linux \u5168\u7136\u308f\u304b\u3089\u306a\u3044\u3093\u3067\u3059\u304c\u3001FPGA \u306b\u66f8\u304d\u8fbc\u307f\u3059\u308b\u306e\u306b\u4f7f\u3063\u3066\u308b\u30de\u30b7\u30f3\u304b\u3089 FPGA \u4e0a\u306e UART \u3092\u53e9\u304d\u305f\u304b\u3063\u305f\u306e\u3067\u3002<br \/>\n\u3067\u3001USB-UART \u304c \/dev\/ttyUSB0 \u3068\u304b\u306b\u751f\u3048\u3066\u304f\u308b\u306e\u3060\u3051\u308c\u3069\u3001\u3053\u308c\u306e permission \u304c\u3075\u3064\u3046\u306e\u30e6\u30fc\u30b6\u304b\u3089\u306f\u8aad\u307f\u66f8\u304d\u3067\u304d\u306a\u3044\u3088\u3046\u306b\u306a\u3063\u3066\u305f\u306e\u3067\u3001udev \u306e\u30eb\u30fc\u30eb\u3092\u66f8\u304d\u8db3\u3057\u3066\u307f\u305f\u3089\u3001\u3046\u307e\u304f\u3044\u304d\u307e\u3057\u305f\u3002<br \/>\n[code:plain]<br \/>\n# cat \/etc\/udev\/rules.d\/51-ttyUSB.rules<br \/>\nKERNEL==&#8221;ttyUSB*[0-9]*&#8221;, GROUP=&#8221;dialout&#8221;, MODE=&#8221;0666&#8243;<br \/>\n# \/sbin\/udevadm control &#8211;reload<br \/>\n[\/code]<br \/>\n\u3042\u3068\u3001GNU screen \u3067\u30b7\u30ea\u30a2\u30eb\u30dd\u30fc\u30c8\u4f7f\u3048\u308b\u306e\u5168\u7136\u77e5\u3089\u306a\u304b\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u6700\u8fd1\u306e Linux \u306b\u306f cu \u3068\u304b\u306a\u3044\u3057\u3001minicom \u306f\u306a\u3093\u304b\u6163\u308c\u306a\u3044\u3057\u3001\u3053\u308c\u306f\u3044\u3044\u3067\u3059\u306d\u3002<br \/>\n[code:plain]<br \/>\n% screen \/dev\/ttyUSB0 9600<br \/>\n[\/code]<br \/>\n\u3068\u304b\u3059\u308c\u30709600bps\u3067\u3064\u306a\u304c\u308b\u3057\u3001\u7d42\u4e86\u306f\u3075\u3064\u3046\u306bscreen \u306ekill window \u3067\u3044\u3051\u308b\u307d\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Linux \u5168\u7136\u308f\u304b\u3089\u306a\u3044\u3093\u3067\u3059\u304c\u3001FPGA \u306b\u66f8\u304d\u8fbc\u307f\u3059\u308b\u306e\u306b\u4f7f\u3063\u3066\u308b\u30de\u30b7\u30f3\u304b\u3089 FPGA \u4e0a\u306e UART \u3092\u53e9\u304d\u305f\u304b\u3063\u305f\u306e\u3067\u3002 \u3067\u3001USB-UART \u304c \/dev\/ttyUSB0 \u3068\u304b\u306b\u751f\u3048\u3066\u304f\u308b\u306e\u3060\u3051\u308c\u3069\u3001\u3053\u308c\u306e  &hellip; <a href=\"https:\/\/yasu2.prosou.nu\/blog\/index.php\/2015\/03\/12\/2679\/\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;\/dev\/ttyUSB on Linux&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":""},"categories":[6],"tags":[],"class_list":["post-2679","post","type-post","status-publish","format-standard","hentry","category-unix-"],"_links":{"self":[{"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/posts\/2679","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=2679"}],"version-history":[{"count":0,"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/posts\/2679\/revisions"}],"wp:attachment":[{"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=2679"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=2679"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=2679"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}