{"id":36920,"date":"2018-06-27T23:05:00","date_gmt":"2018-06-27T14:05:00","guid":{"rendered":"http:\/\/kako.com\/blog\/?p=36920"},"modified":"2018-06-28T07:51:07","modified_gmt":"2018-06-27T22:51:07","slug":"microbit%e3%81%a7bluetooth-uart%e3%82%92%e4%bd%9c%e3%82%8b%e3%81%ab%e3%81%af","status":"publish","type":"post","link":"http:\/\/kako.com\/blog\/?p=36920","title":{"rendered":"micro:bit\u3067Bluetooth-UART\u3092\u4f5c\u308b\u306b\u306f"},"content":{"rendered":"<p>micro:bit\u3067Bluetooth-UART\u3092\u4f5c\u308b\u306b\u306f\u3001\u3069\u3046\u3059\u308c\u3070\u3044\u3044\u306e\u3060\u308d\u3046\u304b\u3002<\/p>\n<p>\u81ea\u5206\u306fmicroPython\u3067micro:bit\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u3044\u3066\u3044\u308b\u306e\u3060\u304c\u3001\u6b8b\u5ff5\u306a\u304c\u3089micro:bit\u306emicroPython\u306fBluetooth\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u306a\u3044\u3002<\/p>\n<p>\u4e00\u756a\u30dd\u30d4\u30e5\u30e9\u30fc\u306a\u958b\u767a\u74b0\u5883\u3067\u3042\u308b<a href=\"https:\/\/makecode.microbit.org\/#\">Make:code<\/a>\u3067\u306fBluetooth\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u305d\u3061\u3089\u3092\u4f7f\u3048\u3070\u53ef\u80fd\u306a\u3088\u3046\u3060\u3002\u3053\u308c\u306fTypeScript(Microsoft\u7248JavaScript)\u306e\u958b\u767a\u74b0\u5883\u3060\u304c\u3001Node-RED\u307f\u305f\u3044\u306bGUI\u3067\u30d6\u30ed\u30c3\u30af\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u3059\u308b\u30b0\u30e9\u30d5\u30a3\u30ab\u30eb\u306a\u958b\u767a\u74b0\u5883\u3060\u3002<\/p>\n<p>Make:code\u3067Bluetooth\u306e\u30d6\u30ed\u30c3\u30af\u90e8\u54c1\u3092\u914d\u7f6e\u3059\u308b\u306e\u306f\u3001\u6a19\u6e96\u3067\u306f\u51fa\u3066\u3053\u306a\u3044\u306e\u3067\u3001Advance\u3068\u3044\u3046\u9805\u76ee\u304b\u3089Add Package\u3067Bluetooth\u3092\u8ffd\u52a0\u3059\u308b\u3002\u65e5\u672c\u8a9e\u3060\u3068\u3001\u9ad8\u5ea6\u306a\u6a5f\u80fd\u2192\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u8ffd\u52a0\u3068\u3044\u3046\u64cd\u4f5c\u3068\u306a\u308b\u3002<br \/>\n\u2192 <a href=\"http:\/\/microbit Bluetooth Low Energy serial UART Support\">microbit Bluetooth Low Energy serial UART Support<\/a><\/p>\n<p>Bluetooth\u306e\u30d6\u30ed\u30c3\u30af\u90e8\u54c1\u306b\u306f\u3001\u3053\u306e\u3088\u3046\u306a\u3082\u306e\u304c\u3042\u308b\u3002<br \/>\n<a href=\"http:\/\/kako.com\/blog\/wp\/wp-content\/uploads\/2018\/06\/image1-1.png\"><img loading=\"lazy\" src=\"http:\/\/kako.com\/blog\/wp\/wp-content\/uploads\/2018\/06\/image1-1.png\" alt=\"\" width=\"1186\" height=\"811\" class=\"alignnone size-full wp-image-36921\" srcset=\"http:\/\/kako.com\/blog\/wp\/wp-content\/uploads\/2018\/06\/image1-1.png 1186w, http:\/\/kako.com\/blog\/wp\/wp-content\/uploads\/2018\/06\/image1-1-300x205.png 300w, http:\/\/kako.com\/blog\/wp\/wp-content\/uploads\/2018\/06\/image1-1-768x525.png 768w, http:\/\/kako.com\/blog\/wp\/wp-content\/uploads\/2018\/06\/image1-1-1024x700.png 1024w, http:\/\/kako.com\/blog\/wp\/wp-content\/uploads\/2018\/06\/image1-1-624x427.png 624w\" sizes=\"(max-width: 1186px) 100vw, 1186px\" \/><\/a><br \/>\n\u52a0\u901f\u5ea6\u30b5\u30fc\u30d3\u30b9\u3068\u304b\u30dc\u30bf\u30f3\u30b5\u30fc\u30d3\u30b9\u3001\u5165\u51fa\u529b\u7aef\u5b50\u30b5\u30fc\u30d3\u30b9\u306a\u3069\u306e\u30b5\u30fc\u30d3\u30b9\u3068\u540d\u524d\u306e\u3064\u3044\u305f\u30d6\u30ed\u30c3\u30af\u306f\u3001\u3053\u308c\u3060\u3051\u3067Bluetooth\u306b\u52a0\u901f\u5ea6\u30bb\u30f3\u30b5\u30fc\u306a\u3069\u306e\u72b6\u614b\u3092\u9001\u4fe1\u3057\u3066\u304f\u308c\u308b\u3082\u306e\u306e\u3088\u3046\u3060\u3002<\/p>\n<p>\u4e0b\u306e\u65b9\u306b\u3042\u308b\u30a2\u30c9\u30d0\u30bf\u30a4\u30ba\u3068\u3044\u3046\u540d\u524d\u306e\u3082\u306e\u306fiBeacon\u306e\u3088\u3046\u306a\u3082\u306e\u3092\u4f5c\u308b\u3068\u304d\u306b\u4f7f\u3046\u3082\u306e\u306e\u3088\u3046\u3060\u3002<\/p>\n<p>\u57fa\u672c\u7684\u306b\u306fBluetooth\u306e\u30b7\u30ea\u30a2\u30eb\u901a\u4fe1\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u3092\u4f7f\u3046\u3082\u306e\u3070\u304b\u308a\u306a\u306e\u3067\u3001Bluetooth HID\u3068\u304b\u3092\u4f7f\u3046\u3053\u3068\u306f\u3067\u304d\u306a\u3055\u305d\u3046\u3002<br \/>\n<!--more--><\/p>\n<p>\u4e0a\u8a18\u306b\u306f\u3001Bluetooth\u52a0\u901f\u5ea6\u30b5\u30fc\u30d3\u30b9\u3068\u3044\u3046\u30d6\u30ed\u30c3\u30af\u304c\u3042\u308b\u306e\u3060\u304c\u3001\u3053\u308c\u3092\u4f7f\u308f\u305a\u306b\u666e\u901a\u306b\u63a5\u7d9a\u304b\u3089\u3044\u3061\u3044\u3061\u5168\u90e8\u3092\u30d6\u30ed\u30c3\u30af\u3067\u4f5c\u308b\u4f8b\u304c\u3042\u308b\u306e\u3092\u898b\u3064\u3051\u305f\u3002<br \/>\nBluetooth\u95a2\u4fc2\u306e\u30d6\u30ed\u30c3\u30af\u306e\u4f7f\u3044\u65b9\u306e\u53c2\u8003\u306b\u306a\u308a\u305d\u3046\u3060\u3002<br \/>\n\u2192 <a href=\"https:\/\/blog.reinforce-lab.com\/2018\/02\/01\/microbit-accs-switch\/\">microbit\u306f\u696d\u52d9\u306b\u4f7f\u3048\u308b \u52a0\u901f\u5ea6\u3092\u8868\u793a\u3059\u308biOS\u30a2\u30d7\u30ea\u3092\u4f5c\u3063\u3066\u307f\u308b Reinforce-Lab.&#8217;s Blog<\/a><\/p>\n<p>\u3042\u3068\u3001\u3042\u3089\u304b\u3058\u3081\u30da\u30a2\u30ea\u30f3\u30b0\u3092\u3057\u3066\u304a\u304b\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u306e\u304c\u3061\u3087\u3063\u3068\u9762\u5012\u304b\u3082\u3057\u308c\u306a\u3044\u3002<br \/>\n\u2192 <a href=\"https:\/\/makecode.microbit.org\/reference\/bluetooth\/bluetooth-pairing\">Bluetooth Pairing &#8211; Microsoft MakeCode<\/a><\/p>\n<p>micro:bit\u3067Bluetooth\u3092\u4f7f\u3046\u30e1\u30ea\u30c3\u30c8\u3068\u30c7\u30e1\u30ea\u30c3\u30c8\u306f\u3001\u6b21\u306e\u3088\u3046\u306a\u3082\u306e\u304c\u8003\u3048\u3089\u308c\u308b\u3002<br \/>\n\u30e1\u30ea\u30c3\u30c8:<br \/>\n\u30fb micro:bit\u50741\u53f0\u304b\u3089\u9001\u4fe1\u3057\u3066\u3001\u53d7\u4fe1\u5074\u306bmicro:bit\u3092\u4f7f\u308f\u305a\u3001Bluetooth\u6a5f\u80fd\u3092\u6301\u3063\u3066\u3044\u308b\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u3084PC\u3067\u53d7\u4fe1\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<br \/>\n\u30c7\u30e1\u30ea\u30c3\u30c8\uff1a<br \/>\n\u30fbPC\u3084\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u306a\u3069\u3067Bluetooth\u306e\u901a\u4fe1\u306e\u30bd\u30d5\u30c8\u3092\u305d\u308c\u305e\u308c\u4f5c\u308b\u306e\u304c\u96e3\u3057\u3044\u3002\u7279\u306b\u30013\u53f0\u4ee5\u4e0a\u306e\u8907\u6570\u306emicro:bit\u304b\u3089\u306e\u8a08\u6e2c\u5024\u3092\u53d7\u4fe1\u3055\u305b\u3088\u3046\u3068\u3059\u308b\u3068\u3001\u304b\u306a\u308a\u96e3\u3057\u3044\u6c17\u304c\u3059\u308b\u3002GATT\u3068\u304b\u30671\u5bfe\u591a\u6570\u306e\u901a\u4fe1\u304c\u3067\u304d\u308b\u3089\u3057\u3044\u306e\u3060\u304c\u3001micro:bit\u306f\u5bfe\u5fdc\u3057\u3066\u306a\u3055\u305d\u3046\u306a\u306e\u3067\u3001\u3044\u3061\u3044\u3061\u500b\u3005\u306e\u901a\u4fe1\u3092\u5207\u65ad\u3057\u3066\u5225\u306e\u6a5f\u5668\u306b\u63a5\u7d9a\u3057\u306a\u304a\u3059\u51e6\u7406\u304c\u5fc5\u8981\u3063\u307d\u3044\u3002<\/p>\n<p>Bluetooth\u30b7\u30ea\u30a2\u30eb\u3068UART\u306e\u30d6\u30ea\u30c3\u30b8\u306e\u90e8\u54c1\u3068\u3057\u3066micro:bit\u3092\u4f7f\u3046\u3088\u3046\u306b\u3057\u3066\u3001\u63a5\u7d9a\u6570\u30821\u5bfe1\u306b\u9650\u5b9a\u3059\u308c\u3070\u3001\u5c11\u3057\u958b\u767a\u304c\u697d\u306b\u306a\u308a\u305d\u3046\u3060\u3002<br \/>\n\u30d6\u30e9\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u3068\u3057\u3066UART\u3092\u7121\u7dda\u5316\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<br \/>\n\u305f\u3060\u3057\u3001\u305d\u308c\u306a\u3089<a href=\"http:\/\/kako.com\/blog\/?p=36828\">\u65e2\u306b\u8a66\u3057\u305fNordic Semiconductor\u306e\u72ec\u81ea\u65b9\u5f0f\u306e\u7121\u7dda\u3092\u4f7f\u3046\u306e\u3068<\/a>\u3001\u5909\u308f\u3089\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>micro:bit\u3067Bluetooth-UART\u3092\u4f5c\u308b\u306b\u306f\u3001\u3069\u3046\u3059\u308c\u3070\u3044\u3044\u306e\u3060\u308d\u3046\u304b\u3002 \u81ea\u5206\u306fmicroPython\u3067micro:bit\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u3044\u3066\u3044\u308b\u306e\u3060\u304c\u3001\u6b8b\u5ff5\u306a\u304c\u3089micro:bit\u306emicroPython [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5,14],"tags":[],"_links":{"self":[{"href":"http:\/\/kako.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/36920"}],"collection":[{"href":"http:\/\/kako.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/kako.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/kako.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/kako.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=36920"}],"version-history":[{"count":5,"href":"http:\/\/kako.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/36920\/revisions"}],"predecessor-version":[{"id":36926,"href":"http:\/\/kako.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/36920\/revisions\/36926"}],"wp:attachment":[{"href":"http:\/\/kako.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=36920"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/kako.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=36920"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/kako.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=36920"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}