简体   繁体   English

为什么我不能使用C#检测蓝牙Estimote信标,但Windows操作系统可以找到它们?

[英]Why can't I detect the Bluetooth Estimote beacon using C# but the Windows OS can find them?

I recently came into the possession of a few Estimote devices and was kind of bummed that there was no Windows SDK just yet. 我最近拥有一些Estimote设备,并且有点沮丧 ,因为还没有Windows SDK。 So I tried to see about just finding the devices myself since they're just Bluetooth Low Energy devices. 因此,我试图了解自己只是寻找设备,因为它们只是蓝牙低功耗设备。

What I have found is that neither my WPF test (using the wonderful 32feet.NET or just code) nor a Windows Phone 8.1 device (both the settings screen and in code) can see these beacons. 我发现我的WPF测试(使用精彩的32feet.NET或只是代码)和Windows Phone 8.1设备(设置屏幕和代码)都不能看到这些信标。

But they can be seen under Windows 8's desktop OS settings screen. 但是在Windows 8的桌面操作系统设置屏幕下可以看到它们。 This is what I see under Windows 8 when I have the Estimotes nearby and attempt to detect Bluetooth devices: 这是我在Windows 8下看到的,当我附近有Estimotes并尝试检测蓝牙设备时:

Windows 8上的蓝牙检测

Does anyone know why the Windows desktop OS is able to see them but nothing that I've found with C#.NET is able to detect these beacons? 有谁知道为什么Windows桌面操作系统能够看到它们,但我在C#.NET中找到的任何东西都无法检测到这些信标? And does anyone have any workarounds that let's me detect beacons under Windows Phone? 有没有人有任何变通方法让我在Windows Phone下检测信标? I don't really have a need to talk to them right now, just to know which beacon is nearby. 我现在并不需要和他们交谈,只是知道附近有哪个灯塔。

I found this when searching for similar answers myself. 我在寻找类似的答案时发现了这一点。 It appears that currently Windows Store 8.1 and Windows Phone 8.1 apps have no support for the pairingless nature of Bluetooth Smart/BLE devices ie picking them up in passing as opposed to having to manually pair with them (not what you want to do when surrounded by beacons). 看来目前Windows Store 8.1和Windows Phone 8.1应用程序不支持蓝牙智能/ BLE设备的无配对性质,即不必手动配对它们(而不是你想要做的事情)信标)。 They only appear when you try to manually pair with them. 它们仅在您尝试手动配对时出现。

http://vincenth.net/blog/archive/2014/04/24/building-cross-platform-ibeacon-apps-for-ios-android-and-windows-with-c-and-xamarin.aspx This link here confirms it: "Bluetooth Classic and Bluetooth Smart devices must be first discovered and paired via the Windows 8.1 PC settings UI (PC & devices>Bluetooth) before being accessible via the Windows Runtime APIs for Bluetooth" http://vincenth.net/blog/archive/2014/04/24/building-cross-platform-ibeacon-apps-for-ios-android-and-windows-with-c-and-xamarin.aspx这个链接在这里确认:“蓝牙经典和蓝牙智能设备必须首先通过Windows 8.1 PC设置UI(PC和设备>蓝牙)发现并配对,然后才能通过适用于蓝牙的Windows运行时API访问”

Really frustrating. 真的很沮丧。

Regarding the question in the title: WinBeacon is a managed C# library that is able to detect iBeacons and can also act as a beacon. 关于标题中的问题: WinBeacon是一个托管C#库,能够检测iBeacons并且还可以充当信标。 Great for testing purposes. 非常适合测试目的。

Unfortunately, this only works on a Windows OS, not the Windows Phone variant. 不幸的是,这仅适用于Windows操作系统,而不适用于Windows Phone变体。

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

相关问题 C#Windows 10蓝牙LE无法连接到服务器 - C# Windows 10 Bluetooth LE can't connect to server 为什么我无法检测到发送到C​​ommonDialog的Windows消息? 拦截它们的正确方法是什么? - Why can't I detect Windows messages that are being sent to my CommonDialog? What is the right way of intercepting them? C#为什么在工具箱中找不到DataGridView? - C# Why can't I find DataGridView in my toolbox? 为什么在 C# 中创建的 Windows 服务无法检测到当前正在运行的屏幕保护程序? - Why can't a windows service created in C# detect that a screen saver is currently running? C#如何在Windows共享中找到与资源的连接并删除其中的一些 - C# How can i find connections to resources in a windows share and drop some of them 如何使用 C# 在 Windows 范围内检测蓝牙激活的笔记本电脑 - How to detect Bluetooth activated laptops in range in Windows using C# C# 32Feet.Net 无法检测到蓝牙设备 - C# 32Feet.Net can't detect Bluetooth device 为什么我不能使用C#将数组绑定到依赖项属性? - Why can't I binding a array to a dependencyproperty using c#? 我如何检测 windows 何时启动并使用.Net / C# 捕获它? - How can i detect when windows boots up and capture it using .Net / C#? 如何在C#中加入蓝牙? - How can I incorporate bluetooth in C#?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM