{"id":1624,"date":"2021-03-18T11:26:10","date_gmt":"2021-03-18T02:26:10","guid":{"rendered":"https:\/\/www.rocher.kyoto.jp\/arbr\/?p=1624"},"modified":"2021-03-18T11:26:10","modified_gmt":"2021-03-18T02:26:10","slug":"%e3%83%a9%e3%82%ba%e3%83%91%e3%82%a4%e3%81%a7mhz19b%e3%81%8c%e5%8b%95%e4%bd%9c%e3%81%97%e3%81%aa%e3%81%84%e6%99%82%e3%81%ae%e3%82%a8%e3%83%a9%e3%83%bc%e3%83%91%e3%83%a9%e3%83%bc%e3%83%b3%ef%bc%88","status":"publish","type":"post","link":"https:\/\/www.rocher.kyoto.jp\/arbr\/?p=1624","title":{"rendered":"\u30e9\u30ba\u30d1\u30a4\u3067MHZ19B\u304c\u52d5\u4f5c\u3057\u306a\u3044\u6642\u306e\u30a8\u30e9\u30fc\u30d1\u30e9\u30fc\u30f3\uff08\u5207\u308a\u5206\u3051\u7528\uff09"},"content":{"rendered":"\n<p>UART\u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u306a\u3044\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">pi@raspberrypi:~ $ sudo cat \/boot\/config.txt |grep uart<br>enable_uart=<strong>0<\/strong><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>pi@raspberrypi:~ $ sudo python3 -m mh_z19\nTraceback (most recent call last):\n  File \"\/usr\/local\/lib\/python3.7\/dist-packages\/serial\/serialposix.py\", line 265, in open\n    self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)\nFileNotFoundError: &#91;Errno 2] No such file or directory: '\/dev\/ttyAMA0'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File \"\/usr\/local\/lib\/python3.7\/dist-packages\/mh_z19\/__init__.py\", line 62, in mh_z19\n    ser = connect_serial()\n  File \"\/usr\/local\/lib\/python3.7\/dist-packages\/mh_z19\/__init__.py\", line 58, in connect_serial\n    timeout=1.0)\n  File \"\/usr\/local\/lib\/python3.7\/dist-packages\/serial\/serialutil.py\", line 240, in __init__\n    self.open()\n  File \"\/usr\/local\/lib\/python3.7\/dist-packages\/serial\/serialposix.py\", line 268, in open\n    raise SerialException(msg.errno, \"could not open port {}: {}\".format(self._port, msg))\nserial.serialutil.SerialException: &#91;Errno 2] could not open port \/dev\/ttyAMA0: &#91;Errno 2] No such file or directory: '\/dev\/ttyAMA0'\nA dependency job for serial-getty@ttyAMA0.service failed. See 'journalctl -xe' for details.\nnull<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>UART\u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u306a\u3044\u3002 pi@raspberrypi:~ $ sudo cat \/boot\/config.txt |grep uartenable_uart=0<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[117],"tags":[],"class_list":["post-1624","post","type-post","status-publish","format-standard","hentry","category-117"],"_links":{"self":[{"href":"https:\/\/www.rocher.kyoto.jp\/arbr\/index.php?rest_route=\/wp\/v2\/posts\/1624","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rocher.kyoto.jp\/arbr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rocher.kyoto.jp\/arbr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rocher.kyoto.jp\/arbr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rocher.kyoto.jp\/arbr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1624"}],"version-history":[{"count":1,"href":"https:\/\/www.rocher.kyoto.jp\/arbr\/index.php?rest_route=\/wp\/v2\/posts\/1624\/revisions"}],"predecessor-version":[{"id":1625,"href":"https:\/\/www.rocher.kyoto.jp\/arbr\/index.php?rest_route=\/wp\/v2\/posts\/1624\/revisions\/1625"}],"wp:attachment":[{"href":"https:\/\/www.rocher.kyoto.jp\/arbr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1624"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rocher.kyoto.jp\/arbr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1624"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rocher.kyoto.jp\/arbr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1624"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}