{"id":6819,"date":"2015-02-17T16:09:42","date_gmt":"2015-02-17T07:09:42","guid":{"rendered":"http:\/\/www.moonmile.net\/blog\/?p=6819"},"modified":"2015-02-17T16:12:24","modified_gmt":"2015-02-17T07:12:24","slug":"arduino-%e3%81%a7-bluetooth-%e3%82%b7%e3%83%aa%e3%82%a2%e3%83%ab%e5%a4%89%e6%8f%9b%e3%83%a2%e3%82%b8%e3%83%a5%e3%83%bc%e3%83%abhc-05%e3%82%92%e4%bd%bf%e3%81%86","status":"publish","type":"post","link":"http:\/\/www.moonmile.net\/blog\/archives\/6819","title":{"rendered":"Arduino \u3067 Bluetooth \u30b7\u30ea\u30a2\u30eb\u5909\u63db\u30e2\u30b8\u30e5\u30fc\u30eb(HC-05)\u3092\u4f7f\u3046"},"content":{"rendered":"<p>\n\u672c\u6765\u306a\u3089\u3070 Bluetooth LE \u3092\u4f7f\u3046\u3068\u3053\u308d\u306a\u306e\u3067\u3057\u3087\u3046\u304c\u3001\u4fa1\u683c\u304c\u9ad8\u3044\uff08\u82e6\u7b11\uff09\u306a\u306e\u3067\u5b89\u3044\u65b9\u304b\u3089\u624b\u3092\u5165\u308c\u3066\u3044\u304d\u307e\u3059\u3002\n<\/p>\n<p>\n&lt;b&gt;\u9023\u8f09&lt;\/b&gt;Bluetooth LE (5) Android 4.3 \u3067 Bluetooth LE \u6a5f\u5668\u3092\u4f7f\u3046 (\u30d5\u30a7\u30f3\u30ea\u30eb | \u30c7\u30d9\u30ed\u30c3\u30d1\u30fc\u30ba\u30d6\u30ed\u30b0)<br \/>\n<a href=\"http:\/\/blog.fenrir-inc.com\/jp\/2013\/10\/bluetooth-le-android.html\">http:\/\/blog.fenrir-inc.com\/jp\/2013\/10\/bluetooth-le-android.html<\/a><br \/>\nBluetooth\u3067\u30c7\u30d0\u30a4\u30b9\u3068\u901a\u4fe1\u3059\u308b\u306b\u306f | garicchi.com<br \/>\n<a href=\"http:\/\/garicchi.com\/?p=17111\">http:\/\/garicchi.com\/?p=17111<\/a>\n<\/p>\n<p>\n\u306a\u3068\u3053\u308d\u3067\u3001BLE \u3092\u4f7f\u3063\u3066\u3044\u308b\u306e\u3067\u3044\u305a\u308c\u8ffd\u3044\u3064\u3053\u3046\u3068\u3044\u3046\u3053\u3068\u3067\u3002\u624b\u59cb\u3081\u306b\u306f\u3001\u5148\u306b\u4f5c\u3063\u305f\u30e2\u30fc\u30bf\u30fc\u306e\u99c6\u52d5\u7cfb\u3092 Bluetooth \u3067\u5236\u5fa1\u3057\u3066\u3044\u304d\u307e\u3059\u3002\u540c\u6642\u306b Raspberry Pi \u306e Bluetooth \u30b7\u30fc\u30eb\u30c9\u3082\u8cb7\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u307e\u3042\u3001\u3053\u308c\u306f\u8981\u3089\u306a\u304b\u3063\u305f\u304b\u3082\u3002\u540c\u3058 HC-05 \u306e\u5909\u63db\u30e2\u30b8\u30e5\u30fc\u30eb\u3060\u3051\u3067 ok \u307f\u305f\u3044\u3067\u3059\u3002\n<\/p>\n<p>\nBluetooth\u30b7\u30ea\u30a2\u30eb\u5909\u63db\u30e2\u30b8\u30e5\u30fc\u30eb(\u30de\u30b9\u30bf\/\u30b9\u30ec\u30fc\u30d6) &#8211; Androciti Wiki<br \/>\n<a href=\"http:\/\/wiki.androciti.com\/index.php?Bluetooth%A5%B7%A5%EA%A5%A2%A5%EB%CA%D1%B4%B9%A5%E2%A5%B8%A5%E5%A1%BC%A5%EB(%A5%DE%A5%B9%A5%BF%2F%A5%B9%A5%EC%A1%BC%A5%D6)\">http:\/\/wiki.androciti.com\/index.php?Bluetooth%A5%B7%A5%EA%A5%A2%A5%EB%CA%D1%B4%B9%A5%E2%A5%B8%A5%E5%A1%BC%A5%EB(%A5%DE%A5%B9%A5%BF%2F%A5%B9%A5%EC%A1%BC%A5%D6)<\/a>\n<\/p>\n<p>\n\u4fa1\u683c\u7684\u306b\u306f 1,500\u5186\u3050\u3089\u3044\u3067\u3059\u306d\u3002\u30b9\u30ec\u30fc\u30d6\u5c02\u7528\u306e HC-06 \u3060\u3068 1,000 \u5186\u3061\u3087\u3063\u3068\u306a\u306e\u3067\u8907\u6570\u4f7f\u3046\u3068\u304d\u306b\u826f\u3055\u305d\u3046\u3067\u3059\u3002<br \/>\n\u5b9f\u306f\u3001BLE \u3068\u305d\u308c\u4ee5\u524d\u306e Bluetooth \u306e\u9055\u3044\u3092\u77e5\u3089\u306a\u304f\u3066\u3001\u53bb\u5e74 Xamarin \u306e\u30ab\u30f3\u30d5\u30a1\u30ec\u30f3\u30b9\u3067 SensorTag \u3092\u898b\u305b\u3066\u3082\u3089\u3063\u305f\u3068\u304d\u306b\u300c\u3046\u30fc\u3093\u3001Bluetooth \u306a\u306e\u304b\u300d\u3068\u601d\u3063\u3066\u305f\u3060\u3051\u306a\u3093\u3067\u3059\u3088\u3002\u5b9f\u306f\u3001\u30b0\u30ed\u30b5\u30df\u3067\u89e3\u8aac\u3057\u3066\u3082\u3089\u3063\u305f\uff08\u82f1\u8a9e\u3060\u3063\u305f\u3051\u3069\uff09Rolling Spider \u3082 BLE \u3092\u4f7f\u3063\u3066\u3044\u3066\u3001\u305d\u308c\u306e SDK \u3092\u4f7f\u3063\u3066 Bluetooth \u5bfe\u5fdc\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3067\u52d5\u304b\u3057\u305f\u3001\u3063\u3066\u306e\u30df\u30bd\u3060\u3063\u305f\u3093\u3067\u3059\u306d&#8230;\u3068\u4eca\u66f4\u601d\u3044\u76f4\u3057\u307e\u3057\u305f\u3002SensorTag \u306f\u8a66\u3057\u306b\u8cb7\u3063\u3066\u307f\u305f\u306e\u3067\u3001\u5230\u7740\u3057\u305f\u3089\u8a66\u3057\u3066\u307f\u308b\u4e88\u5b9a\u3067\u3059\u3002\u3042\u3068\u3001BLE \u5bfe\u5fdc\u306e\u30b7\u30fc\u30eb\u30c9\u3082\u3002\n<\/p>\n<p><h2>\u30b7\u30ea\u30a2\u30eb\u30dd\u30fc\u30c8\u3067\u3064\u306a\u3052\u308b<\/h2>\n<\/p>\n<p>\n\u3068\u306f\u3044\u3048\u3001Bluetooth \u306b\u69d8\u3005\u306a\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u3063\u3066\u3001\u305d\u308c\u3092\u4f7f\u3048\u3070\u69d8\u3005\u306a\u3053\u3068\u304c\u3067\u304d\u308b\u3001\u3063\u3066\u3053\u3068\u306f\u4ee5\u524d\u306b Bluetooth \u3092\u8abf\u3079\u305f\u3068\u304d\u306b\u5206\u304b\u3063\u3066\u306f\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u305d\u306e\u6642\u306b\u306f\u5177\u4f53\u7684\u306a\u7aef\u672b\u304c\u306a\u304f\u3066\u3001\u30aa\u30fc\u30c7\u30a3\u30aa\u95a2\u9023\u3068\u304b\u30d5\u30a1\u30a4\u30eb\u8ee2\u9001\u3092\u3057\u3066\u3082\u306a\u3041\u3001\u3063\u3066\u306a\u611f\u3058\u3067\u3057\u305f\u3002\u3042\u307e\u308a\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u306b\u8a73\u3057\u304f\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u4f55\u304b\u3092\u5236\u5fa1\u3059\u308b\u306b\u306f WiFi \u3050\u3089\u3044\u3060\u308d\u3046\u3068\u601d\u3063\u3066\u3044\u305f\u308f\u3051\u3067\u3001RealSense \u7d61\u307f\u3082 WiFi \u3067\u4f5c\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\n\u304c\u3001\u3068\u3042\u308b\u4eba\u304b\u3089\u3001\u304c\u308a\u3063\u3061\u3055\u3093\u306e RFCOMM \u901a\u4fe1\u306e\u8a18\u4e8b\u3092\u77e5\u3063\u3066\u3001\u3061\u3087\u3063\u3068\u901a\u4fe1\u90e8\u5206\u306e\u5236\u5fa1\u3092\u5909\u3048\u3066\u307f\u3088\u3046\u304b\u3068\u601d\u3063\u305f\u308f\u3051\u3067\u3059\u3002WiFi+RPi \u306e\u7d44\u307f\u5408\u308f\u305b\u3084\u3001Bluetooth+RPi+PS\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u306e\u307f\u304b\u3068\u601d\u3063\u3066\u3044\u305f\u3089\u3001RFCOMM \u30d7\u30ed\u30c8\u30b3\u30eb\u3067\u3064\u306a\u3052\u308c\u3070\u3001\u7d50\u69cb\u624b\u8efd\u306b iPhone\/Android \u304b\u3089\u7e4b\u3052\u3089\u308c\u305d\u3046\u3067\u3059\u3002\u5b9f\u306f Windows \u304b\u3089\u306f Windows Windows \u30b9\u30c8\u30a2\u30a2\u30d7\u30ea\u304b\u3089\u63a5\u7d9a\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\uff08\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u30a2\u30d7\u30ea\u3067\u3082\u3067\u304d\u308b\u306f\u305a\u306a\u3093\u3067\u3059\u3051\u3069\u306d\uff1f\uff09\u306e\u3067\u3001\u3042\u308c\u3053\u308c\u3068\u3084\u3084\u3053\u3057\u3044\u306e\u3067\u3059\u304c\u3001\u3055\u3063\u304f\u308a\u3068\u7e4b\u304c\u308a\u307e\u3059\u3002<br \/>\nCOM \u30dd\u30fc\u30c8\u3068\u3057\u3066\u4f7f\u3048\u308b\u306e\u3067\u3001\u305d\u306e\u307e\u307e\u9069\u5f53\u306a\u30b3\u30de\u30f3\u30c9\u3092\u4f5c\u3063\u3066\u3084\u308a\u53d6\u308a\u3059\u308c\u3070\u81ea\u524d\u306e\u30e2\u30fc\u30bf\u30fc\u5236\u5fa1\/\u30b5\u30fc\u30dc\u5236\u5fa1\u3050\u3089\u3044\u306f\u3067\u304d\u305d\u3046\u3067\u3059\u3002\n<\/p>\n<p><h2>Bluetooth \u30b7\u30ea\u30a2\u30eb\u5909\u63db\u30e2\u30b8\u30e5\u30fc\u30eb(HC-05)\u3092Arduino\u306b\u3064\u306a\u3052\u308b<\/h2>\n<\/p>\n<p><a href='http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2015\/02\/wpid-dworkblogimage20150217_02org.jpg'><img border='0' src='http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2015\/02\/wpid-dworkblogimage20150217_02thum.jpg'\/><\/a><\/p>\n<p>\nHC-05     Arudino<br \/>\n RX   &#8212; TX<br \/>\n TX   &#8212; RX<br \/>\n GND  &#8212; GND<br \/>\n VCC  &#8212; 3.3V\n<\/p>\n<p>\n\u306b\u3064\u306a\u3052\u307e\u3059\u3002RX\/TX \u304c\u9001\u53d7\u4fe1\u3067\u30ef\u30f3\u30bb\u30c3\u30c8\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3068\u96fb\u6e90\u7528\u306e VCC\/GND \u3092\u5dee\u3059\u3060\u3051\u3067\u5341\u5206\u3067\u3059\u3002\u3053\u308c\u306f Raspberry Pi \u306e\u5834\u5408\u3082\u540c\u3058\u306a\u306e\u3067\u3001\u7d50\u69cb\u3055\u3063\u304f\u308a\u3068\u8a8d\u8b58\u3059\u308b\u306f\u305a\u3067\u3059\u3002\n<\/p>\n<p>\n\u3061\u306a\u307f\u306b\u3001Windows 8 \u304b\u3089 Bluetooth \u6a5f\u5668\u306b\u3064\u306a\u3052\u308b\u3068\u304d\u306f\u30da\u30a2\u30ea\u30f3\u30b0\u304c\u5fc5\u9808\u306a\u3093\u3067\u3059\u304c\uff08Windows 10\u306e\u5834\u5408\u306f BLE \u306b\u5bfe\u5fdc\u3059\u308b\u306e\u3067\u3001\u30da\u30a2\u30ea\u30f3\u30b0\u306f\u5fc5\u8981\u306a\u3044\u3089\u3057\u3044\uff1f\uff09\u3001Bluetooth \u6a5f\u5668\u3060\u3051\u3092\u8a8d\u8b58\u3055\u305b\u308b\u5834\u5408\u306f\u3001\u96fb\u6e90\u306e VCC\/GND \u306e\u9593\u306b 3.3V &#8211; 6V \u3050\u3089\u3044\u6d41\u305b\u3070 ok \u3067\u3059\u3002\u96fb\u6ce2\u3092\u5f31\u304f\u3057\u3066 Bluetooth \u6a5f\u5668\u306e\u8fd1\u304f\u306b\u5165\u3063\u305f\u3088\u3001\u3063\u3066\u306e\u306f\u3001\u3053\u308c\u3067\u3067\u5341\u5206\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u306d\uff08\u5b9f\u969b\u3001BLE \u306e\u4f7f\u3044\u65b9\u3067\u305d\u3046\u3044\u3046\u306e\u306f\u3042\u308b\u3068\u601d\u3046\uff09\u3002\n<\/p>\n<p><h2>Android \u5074\u306e\u30b9\u30b1\u30c3\u30c1\u3092\u4f5c\u308b<\/h2>\n<\/p>\n<p>\n\u30b7\u30ea\u30a2\u30eb\u30dd\u30fc\u30c8\u306f1\u30d0\u30a4\u30c8\u5358\u4f4d\u3067\u8aad\u307f\u8fbc\u3080\u306e\u3067\u3059\u304c\u3001\u30b3\u30de\u30f3\u30c9\u3063\u307d\u304f\u9001\u53d7\u4fe1\u3057\u305f\u304b\u3063\u305f\u306e\u30678\u30d0\u30a4\u30c8\u5358\u4f4d\u3067\u53d7\u4fe1\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u3042\u305f\u308a\u306f\u30de\u30a4\u30f3\u30c9\u30b9\u30c8\u30fc\u30e0 EV3 \u3092\u5236\u5fa1\u3059\u308b\u3068\u304d\u3082\u540c\u3058\u307f\u305f\u3044\u3067\u3059\u306d\u3002\u3053\u3063\u3061\u3082\u3044\u305a\u308c\u3084\u3063\u3066\u307f\u305f\u3044\u3068\u3053\u308d\u3067\u3059\u3002\n<\/p>\n<pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\nint ledPin=13;\nint mPin  = 8; \/\/ \u30e2\u30fc\u30bf\u30fc\n\nvoid setup(){\n  pinMode(ledPin,OUTPUT);\n  pinMode(mPin,OUTPUT);\n  Serial.begin(9600);\n}\n \nvoid loop(){\n  int n = Serial.available();\n  if ( n &gt;= 8 ) {\n    int ch&#x5B;8];\n    int i;\n    \/\/ 8\u30d0\u30a4\u30c8\u305a\u3064\u8aad\u307f\u8fbc\u3080\n    for ( i=0; i&lt;8; i++) {\n      ch&amp;#91;i&amp;#93; = Serial.read();\n    }\n    \/\/ \u30b3\u30de\u30f3\u30c9\u3092\u5224\u5225\n    if ( ch&amp;#91;0&amp;#93; == &#039;m&#039; ) {\n      if ( ch&amp;#91;1&amp;#93; == &#039;1&#039; ) {\n        if ( ch&amp;#91;2&amp;#93; == &#039;o&#039; &amp;&amp; ch&amp;#91;3&amp;#93; == &#039;n&#039; ) {\n          \/\/ pin8 on\n          digitalWrite(mPin,HIGH);\n        } else {\n          \/\/ pin8 off\n          digitalWrite(mPin,LOW);\n        }\n      }\n    }\n    \/\/ \u901a\u4fe1\u6642\u306b\u5149\u3089\u305b\u308b\n    digitalWrite(ledPin,HIGH);\n    delay(300);\n    digitalWrite(ledPin,LOW);\n    \/\/ \u30a8\u30b3\u30fc\u3092\u9001\u4fe1\n    for ( i=0; i&lt;8; i++) {\n      Serial.write(ch&amp;#91;i&amp;#93;);\n    }\n  }\n}\n&amp;#91;\/code&amp;#93;\n&lt;ul&gt;\n&lt;li&gt;m1on  \u3067\u30e2\u30fc\u30bf\uff0d\u3092ON&lt;\/li&gt;\n&lt;li&gt;m1off \u3067\u30e2\u30fc\u30bf\u30fc\u3092OFF&lt;\/li&gt;\n&lt;\/ul&gt;\n&lt;p&gt;\n\u306a\u5358\u7d14\u306a\u4ed5\u7d44\u307f\u3067\u3059\u3002\u6700\u7d42\u7684\u306b\u306f\u3001\u30e2\u30fc\u30bf\u30fc\u5236\u5fa1\u3068\u30a2\u30fc\u30e0\u306e\u30b5\u30fc\u30dc\u5236\u5fa1\u3082\u5165\u308c\u305f\u3044\u306e\u3068\u3001\u5bfe\u7269\u30bb\u30f3\u30b5\u30fc\u306e\u53d7\u4fe1\u3082\u3044\u308c\u3066\u304a\u304d\u305f\u3044\u3067\u3059\u306d\u3002\u3053\u3053\u307e\u3067\u6765\u308b\u3068\u3001\u7d20\u76f4\u306b BLE \u306b\u3057\u305f\u307b\u3046\u304c\u3044\u3044\u3088\u3046\u306a\u6c17\u3082\u3059\u308b\u306e\u3067\u3059\u304c\u3001\u307e\u3042\u3001HC-05 \u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u5b89\u3044\u306e\u3067\u3002\n&lt;\/p&gt;\n&lt;p&gt;\n&lt;h2&gt;Windows \u30b9\u30c8\u30a2\u30a2\u30d7\u30ea\u304b\u3089\u5236\u5fa1\u3059\u308b&lt;\/h2&gt;\n&lt;\/p&gt;\n&lt;p&gt;\nWindows 8 \u306e\u5236\u9650\u304b\u3089\u3001\u30b9\u30c8\u30a2\u30a2\u30d7\u30ea\u304b\u3089\u5236\u5fa1\u3057\u307e\u3059\u3002\u305f\u3076\u3093\u3001Windows Phone \u304b\u3089\u3082\u540c\u3058\u5236\u5fa1\u304c\u3067\u304d\u308b\u306f\u305a\u3067\u3059\u3002\n&lt;\/p&gt;\n&#x5B;code lang=&quot;csharp&quot;]\npublic sealed partial class MainPage : Page\n{\n\tpublic MainPage()\n\t{\n\t\tthis.InitializeComponent();\n\t}\n\t\/\/ RFCOMM \u306e\u30b5\u30fc\u30d3\u30b9ID\n\tGuid serviceGuid = Guid.Parse(&quot;00001101-0000-1000-8000-00805f9b34fb&quot;);\n\tRfcommDeviceService rfcommService;\n\tStreamSocket socket;\n\tDataWriter writer;\n\tDataReader reader;\n\n\t\/\/ \u63a5\u7d9a\u3059\u308b\n\tprivate async void btn_findDevice_Click(object sender, RoutedEventArgs e)\n\t{\n\t\tstring selector = RfcommDeviceService.GetDeviceSelector(RfcommServiceId.FromUuid(serviceGuid));\n\t\tDeviceInformationCollection collection = await DeviceInformation.FindAllAsync(selector);\n\t\tif (collection.Count &gt; 0)\n\t\t{\n\t\t\tDeviceInformation info = collection.First();\n\t\t\trfcommService = await RfcommDeviceService.FromIdAsync(info.Id);\n\n\t\t\tsocket = new StreamSocket();\n\t\t\tawait socket.ConnectAsync(rfcommService.ConnectionHostName, rfcommService.ConnectionServiceName);\n\t\t\twriter = new DataWriter(socket.OutputStream);\n\t\t\treader = new DataReader(socket.InputStream);\n\t\t\ttextOut.Text = &quot;\u63a5\u7d9a\u3057\u307e\u3057\u305f&quot;;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tMessageDialog dialog = new MessageDialog(&quot;\u30c7\u30d0\u30a4\u30b9\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3067\u3057\u305f&quot;);\n\t\t\tawait dialog.ShowAsync();\n\t\t}\n\t}\n\t\/\/ \u5207\u65ad\u3059\u308b\n\tprivate void btn_close_Click(object sender, RoutedEventArgs e)\n\t{\n\t\twriter.Dispose();\n\t\treader.Dispose();\n\t}\n\n\t\/\/ \u9001\u4fe1\u3059\u308b\n\tprivate async void btn_sendMessage_Click(object sender, RoutedEventArgs e)\n\t{\n\t\t\/\/ 8\u6587\u5b57\u306b\u3057\u3066\u9001\u308b\n\t\tstring text = textIn.Text;\n\t\tawait SendCommand( text );\n\t}\n\t\/\/ \u30b3\u30de\u30f3\u30c9\u9001\u4fe1\n\tasync Task SendCommand(string text)\n\t{\n\t\ttextIn.Text = text;\n\t\t\/\/ 8\u6587\u5b57\u306b\u3057\u3066\u9001\u308b\n\t\tif (text.Length &lt; 8)\n\t\t{\n\t\t\ttext = text.PadRight(8, &#039;*&#039;);\n\t\t}\n\t\telse\n\t\t{\n\t\t\ttext = text.Substring(0, 8);\n\t\t}\n\t\twriter.WriteString(text);\n\t\tawait writer.StoreAsync();\n\t\t\/\/ \u305d\u306e\u307e\u307e\u53d7\u4fe1\u5f85\u3061\n\t\tvar res = reader.LoadAsync(8);\n\t\tres.Completed = async delegate\n\t\t{\n\t\t\tawait this.Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () =&gt; {\n\t\t\t\tstring text2 = reader.ReadString(8);\n\t\t\t\ttextOut.Text = text2;\n\t\t\t});\n\t\t};\n\t}\n\n\tprivate async void clickM1on(object sender, RoutedEventArgs e)\n\t{\n\t\tawait SendCommand(&quot;m1on&quot;);\n\t}\n\n\tprivate async void clickM1off(object sender, RoutedEventArgs e)\n\t{\n\t\tawait SendCommand(&quot;m1off&quot;);\n\t}\n}\n<\/pre>\n<p>\n\u57fa\u672c\u306f\u3001\u304c\u308a\u3063\u3061\u3055\u3093\u306e\u8a18\u4e8b http:\/\/garicchi.com\/?p=17111 \u3068\u5909\u308f\u308a\u307e\u305b\u3093\u3002\u30c7\u30d0\u30a4\u30b9\u3092\u898b\u3064\u3051\u3066\u3001\u6700\u521d\u306e\u30c7\u30d0\u30a4\u30b9\u306b\u81ea\u52d5\u7684\u306b\u63a5\u7d9a\u3057\u307e\u3059\u3002\u6700\u521d\u306e\uff11\u56de\u3060\u3051\u306f\u30b9\u30c8\u30a2\u30a2\u30d7\u30ea\u304b\u3089\u63a5\u7d9a\u8a31\u53ef\u3092\u6c42\u3081\u308b\u30c0\u30a4\u30a2\u30ed\u30b0\u304c\u51fa\u307e\u3059\u3002\n<\/p>\n<p>\n\u3042\u3068\u3001RFCOMM \u3092\u4f7f\u3046\u305f\u3081\u306b Package.appxmanifest \u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8ffd\u52a0\u3057\u3066\u304a\u304d\u307e\u3059\u3002\n<\/p>\n<pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\n  &lt;Capabilities&gt;\n    &lt;Capability Name=&quot;internetClient&quot; \/&gt;\n    &lt;m2:DeviceCapability Name=&quot;bluetooth.rfcomm&quot;&gt;\n      &lt;m2:Device Id=&quot;any&quot;&gt;\n        &lt;m2:Function Type=&quot;serviceId:00001101-0000-1000-8000-00805f9b34fb&quot; \/&gt;\n      &lt;\/m2:Device&gt;\n    &lt;\/m2:DeviceCapability&gt;\n  &lt;\/Capabilities&gt;\n<\/pre>\n<p>\n\u3046\u307e\u304f\u3067\u304d\u3042\u304c\u308b\u3068\u3001m1on\/m1off \u306e\u30dc\u30bf\u30f3\u3092\u62bc\u3059\u3053\u3068\u3067\u30e2\u30fc\u30bf\u30fc\u304c\u52d5\u3044\u305f\u308a\u6b62\u307e\u3063\u305f\u308a\u3057\u307e\u3059\u3002\u3053\u3053\u306f LED \u3067\u52d5\u304b\u3057\u3066\u3066\u78ba\u8a8d\u3057\u3066\u3082\u3088\u3044\u3067\u3059\u306d\u3002\u30d6\u30ec\u30c3\u30c9\u30dc\u30fc\u30c9\u4e0a\u3067\u30e2\u30fc\u30bf\u30fc\u304c\u52d5\u3044\u3066\u3082\u4f55\u3082\u9762\u767d\u304f\u306a\u3044\uff08\u5a18\u8ac7\uff09\u306a\u306e\u3067\u3001\u3048\u3048\u3001\u30ad\u30e3\u30bf\u30d4\u30e9\u3092\u4ed8\u3051\u3066\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3067\u5236\u5fa1\u3059\u308b\u3068\u3053\u308d\u307e\u3067\u3084\u308a\u307e\u3059\u3088\u3002\n<\/p>\n<p>\n\u3061\u306a\u307f\u306b BLE \u6a5f\u5668\u3092\u898b\u3064\u3051\u308b\u3060\u3051\u306a\u3089\u3070\u30da\u30a2\u30ea\u30f3\u30b0\u304c\u4e0d\u8981\uff08\u901a\u4fe1\u306b\u306f\u5fc5\u8981\uff1f\uff09\u306a\u306e\u3067\u3001\u5fd8\u308c\u7269\u30bf\u30b0\u3068\u304b\u306b\u3064\u3044\u3066\u3044\u308b\u3093\u3067\u3059\u306d\u3002\u306a\u308b\u307b\u3069\u3002\u3053\u308c Windows 8.1 \u306e\u5834\u5408\u306f\u307e\u3060\u898b\u3064\u3051\u308b\u3060\u3051\u3067\u3082\u30da\u30a2\u30ea\u30f3\u30b0\u304c\u5fc5\u8981\u3067\u3001Windows 10 \u3067\u306f\u305d\u308c\u306b\u5bfe\u5fdc\u3059\u308b\u3089\u3057\u3044\u306e\u3067\u3059\u304c&#8230;\u9069\u5f53\u306a BLE \u5bfe\u5fdc\u306e\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u3092\u5a92\u4ecb\u3059\u308c\u3070\u3001Windows 8.1 \u3067\u3082\u3067\u304d\u308b\u304b\u306a\u3068\u3002\u307e\u3042\u3001\u534a\u5e74\u5f8c\u306b Windows 10 \u304c\u51fa\u308b\u306e\u3067\u305d\u308c\u5f85\u3061\u3063\u3066\u306e\u3082\u3042\u308b\u3057\u3001\u624b\u5143\u306e\u30ce\u30fc\u30c8PC\u306bWindows 10 TP \u7248\u3092\u5165\u308c\u3066\u78ba\u304b\u3081\u3066\u307f\u308b\u3063\u3066\u306e\u3082\u3042\u308a\u3067\u3059\u306d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6765\u306a\u3089\u3070 Bluetooth LE \u3092\u4f7f\u3046\u3068\u3053\u308d\u306a\u306e\u3067\u3057\u3087\u3046\u304c\u3001\u4fa1\u683c\u304c\u9ad8\u3044\uff08\u82e6\u7b11\uff09\u306a\u306e\u3067\u5b89\u3044\u65b9\u304b\u3089\u624b\u3092\u5165\u308c\u3066\u3044\u304d\u307e\u3059\u3002 &lt;b&gt;\u9023\u8f09&lt;\/b&gt;Bluetooth LE (5) Android 4.3 &hellip; <a href=\"http:\/\/www.moonmile.net\/blog\/archives\/6819\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3,71,52],"tags":[],"class_list":["post-6819","post","type-post","status-publish","format-standard","hentry","category-dev","category-arduino","category-winrt"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/6819","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/comments?post=6819"}],"version-history":[{"count":2,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/6819\/revisions"}],"predecessor-version":[{"id":6821,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/6819\/revisions\/6821"}],"wp:attachment":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/media?parent=6819"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/categories?post=6819"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/tags?post=6819"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}