蓝牙在C#中,哪一个堆栈,它的SDK? [英] Bluetooth in C#, Which stack, Which SDK?

查看:271
本文介绍了蓝牙在C#中,哪一个堆栈,它的SDK?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们已经有了它需要能够使用蓝牙以下条件的申请:

We've got an application which needs to be able to use bluetooth for the following requirements:

  1. (在同一时间最多2个设备)接收文件的蓝牙设备
  2. 在显示范围内所有的蓝牙设备
  3. 发送文件到蓝牙设备
  4. 扫描蓝牙设备,并在同一时间传送文件

我们在Windows XP上运行。

We're running on Windows XP.

我已经做了一些环顾四周,似乎有3个主要的堆栈:

I've done some looking around and there seems to be 3 main stacks:

BlueSoleil的

在BlueSoleil的网站,在其SDK部分,它似乎只提1连接支持,这显然是没有好处的。

On the BlueSoleil website, in their SDK section, it seems to mention only 1 connection is supported, which is obviously no good.

的Windows

似乎只支持1蓝牙适配器,这可能意味着,我们不能满足我们的所有要求。

Only seems to support 1 bluetooth dongle, which will probably mean we can't meet all our requirements.

的Widcomm

昂贵的和潜在的矫枉过正?更复杂的API?思考?

Expensive and potentially overkill? More complex API? Thoughts?

在SDK中的C#而言,看着Franson Bluetools,任何人使用这个API?

In terms of SDK for C#, was looking at Franson Bluetools, anyone used this API?

感谢

推荐答案

首先免责声明,我是32feet.NET库的维护者。 : - )

Firstly the disclaimer, I'm the maintainer of the 32feet.NET library. :-)

我刚刚检查,并在XP与微软堆栈(使用一个加密狗)我可以同时接收两个OBEX PUT操作;同时也发现设备。这是使用32feet.NET的ObexListener类和BluetoothClient.DiscoverDevices方法。要发送OBEX放置一个可以使用它的ObexWebRequest类。做ObexListener多个并行连接我刚刚多个线程调用它的getContext()方法。

I've just checked, and on XP with the Microsoft stack (using one dongle) I can concurrently be receiving two OBEX PUTs and also discovering devices. That's using 32feet.NET's ObexListener class and the BluetoothClient.DiscoverDevices method. To send the OBEX PUTs one can use its ObexWebRequest class. To do multiple parallel connections with ObexListener I just had multiple threads calling its GetContext() method.

所以,这比我们想象的,也许更简单...

So that's maybe simpler than we thought...

我还测试了使用他的Brecham.Obex库安迪·休谟的OBEX服务器和并发收到作品精致有太多。它可以从<一个href="http://32feet.net/files/folders/objectexchange/entry6511.aspx">http://32feet.net/files/folders/objectexchange/entry6511.aspx.

I've also tested it with Andy Hume's OBEX Server using his Brecham.Obex library and the concurrent receive works fine there too. Its available from http://32feet.net/files/folders/objectexchange/entry6511.aspx.

在我们的Widcomm的支持。但愿它不会显得太过不完整在客户端...查询(设备发现)和连接的所有工作。服务器端还需要一点点的工作然而,有一些东西的Widcomm API只是不支持如。 (编程认证处理)。

On our Widcomm support. Hopefully it doesn't seem too "incomplete" on the client side... Inquiry (device discovery) and connections all work. The server-side still needs a little work however and there are some things the Widcomm API simply doesn't support eg. (programmatic authentication handling).

什么是问题的样本?编译时或运行时?在MSFT堆栈或的Widcomm?随访 http://32feet.net/forums/37.aspx 如果preFER。

What was the issue with the samples? Compile-time or run-time? On MSFT stack or Widcomm? Follow-up at http://32feet.net/forums/37.aspx if you prefer.

这篇关于蓝牙在C#中,哪一个堆栈,它的SDK?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆