c# - 在 .NET 中使用蓝牙进行通用数据传输

标签 c# .net bluetooth

我们正在开发一个需要与远程电池供电设备通信的 Windows 应用程序。该应用程序正在使用 C#/.NET 为 Windows 7 机器开发。 WiFi 是远程设备上的一个选项,但蓝牙在节电方面会更好。该连接将用于传输通用串行数据和音频。

回顾之前的问题,I see here, for example, 32feet 和 WCL 似乎是与 .NET 一起使用的流行库。不过32feet好像已经不开发了。 WCL 似乎已经停止了 .NET 4.6 的蓝牙开发。如果 4.6.1 和 4.6.2 不需要蓝牙更新,也许不是问题?

有兴趣获得以下方面的一些答案:

1) 为什么这些图书馆存在?为什么 .NET 中没有对蓝牙的原生支持?

2) 为什么选择如此有限?为什么32feet没有更多的开发兴趣了?出于某种原因,.NET 中是否存在不情愿的蓝牙?是否打开了其他路径?

3) 在实现一个应用程序时,我们可能会遇到哪些问题,因为它与可用的各种 radio 和堆栈相关,因此可以通过蓝牙进行通用数据传输?

总的来说,我的印象是这种方法并没有被广泛采用,我想知道为什么会这样,如果确实如此,或者我错了。你会采取什么方法?

最佳答案

我有同样的疑问,同样的印象。

我认为第一个问题的回复在 Supported Hardware and Software 中32feet 的 wiki:

The library is supported both in a version for desktop Windows, and a version for NETCF v2.0. On both platforms various companies have provided software protocol stack software to use Bluetooth hardware. For instance, on desktop Windows there are well known stacks from Microsoft, Widcomm (now Broadcom(Broadcom)), BlueSoleil and Toshiba. On CE platforms there are also stacks from Microsoft and Broadcom(Broadcom)/Widcomm.

Note that most Bluetooth dongles use a standard connection protocol and thus they appear very similar. This means that most Bluetooth software stacks (Microsoft, Broadcom/Widcomm, BlueZ, Bluetopia etc) can use any dongle. It it not the case for instance that Broadcom dongles can only be used by the Broadcom/Widcomm stack. There are some dongles that are non-standard however; I have one from Trust like that and it can thus only be used with the stack supplied with it.

我希望对 32feet 的开发没有兴趣是因为微软正在开发原生支持。

关于c# - 在 .NET 中使用蓝牙进行通用数据传输,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40529990/

相关文章:

c# - Paypal 快速结账 : Landing Page = Billing

c# - 初始化 C# DayOfWeek 枚举

.net - System.Data.SQLCommand 中的 Unicode 会发生什么

android - 如何在android中创建MACROS

Python 蓝牙模块 lightblue 在 mac osx 10.8 上不起作用

c# - Linq 表达式嵌套属性,与字符串比较

c# - 星际争霸 2 之类的游戏是否使用 Windows 窗体来构建其 UI?

c# - 在发布版本中反射(reflect)堆栈跟踪是否危险?

用于Linux的蓝牙低功耗堆栈

c# - 使用 Moq 验证 List<> 类型的参数?