在Windows / .NET蓝牙的API? [英] Bluetooth APIs in Windows/.Net?

查看:467
本文介绍了在Windows / .NET蓝牙的API?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在写一个蓝牙扫描器定位并标识在本地附近的移动设备的过程中。这是东西,我可以做到使用C#,或者我需要下拉到C / C ++的API?我的应用程序是针对Windows XP和Vista。指针是AP preciated。

I am in the process of writing a Bluetooth scanner that locates and identifies mobile devices in the local vicinity. Is this something that I can accomplish using C#, or do I need to drop down into the C/C++ APIs? My application is targeting Windows XP and Vista. Pointers are appreciated.

谢谢!

推荐答案

一个问题与蓝牙的电脑,有几个BT堆栈使用中,你永远不能完全知道哪一个是提供一个给定的机器上。最常见的是的Widcomm(现在Broadcom公司)和微软(出现在XP中,服务包也许有)。然而,一些BT硬件厂商封装BlueSoleil的和一些使用东芝。大多数软件狗将与MS堆栈工作,所以在.NET库我见过倾向于使用。

One problem with Bluetooth on the PC is that there are several BT stacks in use and you can never quite know which one is available on a given machine. The most common ones are Widcomm (now Broadcom) and Microsoft (appeared in XP, maybe one of the service packs). However, some BT hardware vendors package BlueSoleil and some use Toshiba. Most dongles will work with the MS stack so the .NET libs I've seen tend to use that.

每个堆都有做,你浏览附近设备,并询问他们的服务发现部分的完全不同的方式。

Each of the stacks has a totally different way of doing the discovery part where you browse for nearby devices and inquire their services.

如果我不得不选择一种方法今天我可能会做的发现在C ++中,添加一个接口.NET。

If I had to pick one approach today I'd probably do the discovery in C++ and add an interface for .NET.

在32feet.net东西的工作pretty的很好,当我尝试过,但不支持的Widcomm堆栈。

The 32feet.net stuff worked pretty well when I tried it but didn't support the Widcomm stack.

这篇关于在Windows / .NET蓝牙的API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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