{"id":2034,"date":"2018-08-05T15:43:45","date_gmt":"2018-08-05T06:43:45","guid":{"rendered":"http:\/\/research.itplants.com\/?p=2034"},"modified":"2018-08-05T16:00:38","modified_gmt":"2018-08-05T07:00:38","slug":"rpi%e3%81%a7%e8%a4%87%e6%95%b0%e3%81%aeuart%e3%82%92%e4%bd%bf%e3%81%86%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/research.itplants.com\/?p=2034","title":{"rendered":"RPI\u3067\u8907\u6570\u306eUART\u3092\u4f7f\u3046\u65b9\u6cd5"},"content":{"rendered":"<p>Raspberry Pi 3\u3067\u3001\u4efb\u610f\u306eGPIO\u3092UART\u306b\u3057\u3066\u30b7\u30ea\u30a2\u30eb\u901a\u4fe1\u306b\u4f7f\u3046\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n<p>Soft-UART\u3092\u4f7f\u3046\u306e\u304c\u7c21\u5358\u3067\u3059\u3002<br \/>\n<code>&gt;git clone <a href=\"https:\/\/github.com\/adrianomarto\/soft_uart.git\">https:\/\/github.com\/adrianomarto\/soft_uart.git<\/a><\/code><\/p>\n<p><code>&gt;sudo apt-get install raspberrypi-kernel-headers<\/code><\/p>\n<p><code>&gt;cd soft_uart<br \/>\n&gt;make<br \/>\n&gt;sudo make install<\/code><\/p>\n<p><code>&gt;sudo insmod soft_uart.ko gpio_tx=TX_GPIO gpio_rx=RX_GPIO<\/code><\/p>\n<p>\u3053\u306e\u90e8\u5206\u306f\u3001github\u306e\u8a18\u8ff0\u304c\u9593\u9055\u3063\u3066\u3044\u308b\u306e\u3067\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><code>&gt;ls \/dev\/ttySOFT0<\/code><br \/>\n\u5f8c\u306f\u3001screen\u30b3\u30de\u30f3\u30c9\u306a\u3069\u3067\u901a\u4fe1\u3067\u304d\u308b\u3002<\/p>\n<p><code>\/dev\/ttySOFT0\u3092\u6d88\u3059\u5834\u5408\u306f\u3001sudo rmmod soft_uart.ko<\/code><\/p>\n<p>Soft UART\u306a\u306e\u3067\u3001\u3042\u307e\u308a\u9ad8\u901f\u306a\u901a\u4fe1\u306f\u3067\u304d\u306a\u3044\u307f\u305f\u3044\u3002<\/p>\n<p><code>&gt;sudo screen  \/dev\/ttySOFT0  19200<\/code><\/p>\n<p>\u304c\u9650\u754c\u307f\u305f\u3044\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Raspberry Pi 3\u3067\u3001\u4efb\u610f\u306eGPIO\u3092UART\u306b\u3057\u3066\u30b7\u30ea\u30a2\u30eb\u901a\u4fe1\u306b\u4f7f\u3046\u65b9\u6cd5\u3067\u3059\u3002 Soft-UART\u3092\u4f7f\u3046\u306e\u304c\u7c21\u5358\u3067\u3059\u3002 &gt;git clone https:\/\/github.com\/adrianomart&#8230;<\/p>\n<p><a class=\"more\" href=\"https:\/\/research.itplants.com\/?p=2034\"> Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/research.itplants.com\/index.php?rest_route=\/wp\/v2\/posts\/2034"}],"collection":[{"href":"https:\/\/research.itplants.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/research.itplants.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/research.itplants.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/research.itplants.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2034"}],"version-history":[{"count":6,"href":"https:\/\/research.itplants.com\/index.php?rest_route=\/wp\/v2\/posts\/2034\/revisions"}],"predecessor-version":[{"id":2040,"href":"https:\/\/research.itplants.com\/index.php?rest_route=\/wp\/v2\/posts\/2034\/revisions\/2040"}],"wp:attachment":[{"href":"https:\/\/research.itplants.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2034"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/research.itplants.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2034"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/research.itplants.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2034"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}