蓝牙发现和信号强度(RSSI) [英] Bluetooth discovery and signal strength (RSSI)

查看:2065
本文介绍了蓝牙发现和信号强度(RSSI)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要某种代码示例才能在Visual Studio Community 2015中使用Visual C#制作蓝牙雷达".我只需要检测附近的蓝牙设备和传输信号即可.

I need some kind of code sample to make a bluetooth "radar" in Visual Studio Community 2015 with Visual C#. I just need to detect the nearby Bluetooth devices and the transmission signal.

我只能到达这里: https://msdn.microsoft.com/es- es/library/ff536587(v = vs.85).aspx

找到了一些旧库(32FEET),但已过时.

Found some old library (32FEET) but outdated.

但甚至没有一个C#示例.我需要蓝牙LE,但我不介意只测试蓝牙2.0.

But not even a single C# example. I need Bluetooth LE but i don't mind just test bluetooth 2.0.

在Java中,我找到了 bluecode ;在Linux中,我找到了 bluez 库.

In Java i found bluecode and in Linux bluez libraries.

对于Windows 7

for Windows 7

推荐答案

您的问题过于广泛,但我还是会回答.

You're question is too broad but I'll answer it anyway.

由于您的目标是Windows 7,因此您将无法立即获得BLE支持(因为Windows 8.1首次引入了BLE支持).您可以通过直接与加密狗对话来解决此问题(就像我在开源 WinBeacon 库中所做的那样) )或使用运行带有bluez-stack的Linux的VM/Raspberry PI公开了可以使用的某些Web API.

Since your target is Windows 7, you won't get BLE support out of the box (as it is first introduced in Windows 8.1). You could work around this by talking to the dongle directly (like I do in the open source WinBeacon library) or by using a VM/Raspberry PI that runs Linux with bluez-stack that exposes some kind of Web API you can use.

要检测BT 2.0设备,我建议使用 32feet 库,因为我以前使用过它用于检测和配对,并且可以正常工作.使用Microsoft BT堆栈时,32feet库使用Windows蓝牙套接字API,该文件已在

For detecting BT 2.0 devices, I would recommend the 32feet library as I've used it in the past for detecting and pairing and it just works. When using the Microsoft BT stack, the 32feet library uses the Windows Bluetooth Socket API, which is well documented on MSDN. So if you only want to scan for devices, you might as well directly use the Socket API and use the 32feet source code as inspiration.

祝你好运.

这篇关于蓝牙发现和信号强度(RSSI)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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