简体   繁体   English

Windows .NET API / Windows 7 /与Intel Curie Arduino / Genuino 101的蓝牙通信

[英]Windows .NET API / Windows 7 / Bluetooth communication with Intel Curie Arduino / Genuino 101

I'm trying to communicate with an Intel Curie Arduino / Genuino 101 ( https://www.arduino.cc/en/Guide/Arduino101 ). 我正在尝试与Intel Curie Arduino / Genuino 101https://www.arduino.cc/en/Guide/Arduino101 )通信。 It has on-board a BLE (Bluetooth Low Energy) radio. 它带有BLE(蓝牙低能耗)无线电。

The sample application for the Arduino works great with my iPhone ( https://www.arduino.cc/en/Reference/CurieBLE ). Arduino的示例应用程序非常适合我的iPhone( https://www.arduino.cc/en/Reference/CurieBLE )。 However, getting Windows 7 to speak to the Arduino / Genuino using C#/.NET, is not so easy for me. 但是,让Windows 7使用C#/。NET与Arduino / Genuino对话对我来说并不容易。

This reference implies that perhaps the chipset (Nordic 51822) only supports BLE and not Bluetooth "classic" ( https://www.arduino.cc/en/Reference/CurieBLE ). 该参考文献暗示芯片组(Nordic 51822)可能仅支持BLE,而不支持蓝牙“经典”( https://www.arduino.cc/en/Reference/CurieBLE )。

  • Does this mean that a Windows 7 computer cannot "talk" to an Arduino using Bluetooth on a stock board? 这是否意味着Windows 7计算机无法通过股票板上的蓝牙与Arduino“对话”?
  • Does this force me to an HC-05, -06, -07 to the board (or some other additional radio)? 这是否会迫使我将HC-05,-06,-07送到董事会(或其他无线电)?
  • Is this really impetus to use a WiFi radio on the Arduino rather than Bluetooth (because Windows 7 / .NET should support WiFi communication to the Arduino). 这真的是推动在Arduino上使用WiFi无线电而不是在蓝牙上的动力吗(因为Windows 7 / .NET应该支持与Arduino的WiFi通信)。

Microsoft Bluetooth stack on Windows 7 does not support BLE. Windows 7上的Microsoft蓝牙堆栈不支持BLE。 You have to use third party Bluetooth drivers in this case. 在这种情况下,您必须使用第三方蓝牙驱动程序。 BlueSoleil works good. BlueSoleil的效果很好。 On Windows 8 and above you can use Microsoft Bluetooth stack to work with BLE devices. 在Windows 8及更高版本上,您可以使用Microsoft蓝牙堆栈与BLE设备配合使用。

However each Bluetooth drivers have own API. 但是,每个蓝牙驱动程序都有自己的API。 I am not sure about free 32feet (if it support BLE and on which platforms) but Bluetooth Framework supports BLE on any Windows platforms (on Win XP, Vista, 7 with BlueSoleil Bluetooth drivers; on Win 8 and above with MS drivers as well). 我不确定免费的32feet (如果它支持BLE以及在哪些平台上),但是Bluetooth框架在任何Windows平台上都支持BLE(在Win XP,Vista,带有BlueSoleil蓝牙驱动程序的7上;在Win 8及更高版本上以及MS驱动程序) 。 Both libraries support Classic Bluetooth as well. 这两个库也都支持经典蓝牙。

Of course in any case you have to use Bluetooth 4.0 (or above) dongle (hardware) on your PC side. 当然,无论如何,您都必须在PC端使用蓝牙4.0(或更高版本)的软件狗(硬件)。

Should you have any question about BLE you can ping me direct somehow (email, skype, PM). 如果您对BLE有任何疑问,可以通过某种方式ping我(电子邮件,Skype,PM)。

I struggles with BLE for a while on Windows 7 and gave up. 我在Windows 7上与BLE挣扎了一段时间并放弃了。 Third party solutions and debugging the Arduino Genuino 101 proved to be more time consuming that working on the HC-05. 事实证明,与HC-05相比,第三方解决方案和Arduino Genuino 101的调试更加耗时。

Using the HC-05, I learned that few people connect it to the 101. As a consequence, lessons like: 使用HC-05,我了解到很少有人将其连接到101。因此,出现了以下课程:

  1. Arduino 101 has 3.3V logic levels and not 5.0 V logic levels Arduino 101具有3.3V逻辑电平而不是5.0 V逻辑电平
  2. Serial input from the Arduino console must be treated different on the Arduino 101 来自Arduino 控制台的串行输入在Arduino 101上必须被区别对待

were not readily available in search engines (see https://www.arduino.cc/en/Guide/Arduino101 ). 在搜索引擎中尚不可用(请参阅https://www.arduino.cc/en/Guide/Arduino101 )。

After digging in with an oscilloscope, everything is working much better with the HC-05 than with BLE! 用示波器深入研究后,HC-05的所有功能都比BLE更好!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM