Windows 10 中的 WiFi Direct 显示“不支持的硬件"虽然应该支持 [英] WiFi Direct in Windows 10 says "UnsupportedHardware" althought it should be supported

查看:64
本文介绍了Windows 10 中的 WiFi Direct 显示“不支持的硬件"虽然应该支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我会尽量简短.我一直在运行 Windows 10 (10130) Microsoft 的 WiFi Direct Services 示例 可用在 GitHub 上,Visual Studio 2015 RC 中的 C#.现在,在他们的 Build 会议上他们说你可以在 CMD 中运行一个命令了解您的 WiFi 适配器是否与 WiFi Direct 兼容

I'll try to keep it short. I've been running in Windows 10 (10130) Microsoft's WiFi Direct Services example available on GitHub , the C# one in Visual Studio 2015 RC. Now, in their Build conference they said you can run in CMD a command to know if your WiFi adapter is compatible with WiFi Direct

netsh wlan show wirelesscap

这让我很高兴是的,您的无线适配器兼容.

Wi-Fi Direct Device                  : Supported
Wi-Fi Direct GO                      : Supported
Wi-Fi Direct Client                  : Supported

但是,当我运行上述示例时,一切正常,直到 WiFiDirectServiceWrapper.OnAdvertisementStatusChanged(. . .) 被触发,几乎是在创建广告商之后立即触发.运行带有分析器的示例时,我得到了这个:

But when I run the mentioned sample, everything goes OK until the WiFiDirectServiceWrapper.OnAdvertisementStatusChanged(. . .) is triggered, almost inmediatly after creating the advertiser. While running the sample with the profiler attached I get this:

private void OnAdvertisementStatusChanged(WiFiDrectServiceAdvertiser sender, object args)

--

sender | {Windows.Devices.WiFiDirect.Services.WiFiDirectServiceAdvertiser}
    AdvertisementStatus: Aborted
    AutoAcceptSession: true
    CustomServiceStatusCode: 0
    DeferredSessionInfo: null
    PreferGroupOwnerMode: true
    PreferredConfigurationMethods : _native, can't see_
    ServiceError: UnsupportedHardware
    ServiceInfo: null
    ServiceName: "myservice"
    ServiceNamePrefixes: {System.__comObject}
    ServiceStatus: Available

我真的不知道我应该如何净化它,因为我找不到引发此事件的位置(对该方法的唯一引用是

I really don't know how I'm supposed to depurate this, as I can't find where this Event is raised (the only references to that method are

this.advertiser.AdversitementStatusChanged += OnAdvertisementStatusChanged
this.advertiser.AdversitementStatusChanged -= OnAdvertisementStatusChanged

^ 那些),我看不到 WifiDirectServiceAdvertiser 实现.

^ those), and I can't see the WifiDirectServiceAdvertiser implementation.

我的 WiFi 卡是 Qualcomm Atheros AR9485,我使用的是通过 Windows 更新提供的最新驱动程序.在设备管理器中,我获得了两个 Wi-Fi Direct 虚拟适配器:

My WiFi Card is a Qualcomm Atheros AR9485, and I'm using the latest drivers available through Windows Update. In the device manager I get two Wi-Fi Direct Virtual adapters:

Microsoft Wi-Fi Direct Virtual Adapter
Microsoft Wi-Fi Direct Virtual Adapter #2

第二个有时会被禁用(UnsupportedHardware 事件是相同的,启用或禁用).对于所有这些,我都禁用了允许 PC 关闭此设备以节省能源"选项.

The second one is disabled sometimes (the UnsupportedHardware event is the same, enabled or disabled). For all of them I've disabled the "Allow the PC to shut down this device to save energy" option.

我尝试将代码编译为 x86 和 x64,但在同一点得到相同的结果.我已经尝试了另外两个通用无线拇指(那些 USB WiFi 适配器),Windows 说是的,它们也兼容,但没有运气.

I've tried to compile the code to x86 and x64, but I get the same result at the same point. I've tried another two generic wireless thumbs (those USB WiFi adapters) which Windows says yes, they're compatible too with no luck.

我知道 Windows 10 不是最终版本,但感谢您提供任何帮助.

I know Windows 10 is not final, but any help is appreciated.

推荐答案

如果您想要做的事情是宣传服务(实际上是Windows 10 中的新事物"关于 Direct).

It seems that the WiFiDirect capabilities are not the only ones you need to look at if the thing you want to do is advertise a service (which is actually the "new in Windows 10 thing" concerning Direct).

您必须执行的命令与之前完全相同:

The command you must execute is exactly the same as before:

netsh wlan show wirelesscap

但是如果你想宣传一个服务,相关的能力如下:

but if you want to advertise a service, the relevant capabilities are the following:

P2P Device Discovery        : Supported
P2P Service Name Discovery  : Supported
P2P Service Info Discovery  : Supported
P2P Background Discovery    : Supported

WiFiDirect 在 Windows 8 和 8.1 中的作用是为整个计算机做广告,但从 10 开始,WiFiDirectServices 会为您的机器中同时运行的一项或多项服务做广告.

What WiFiDirect does in Windows since 8 and 8.1 is advertising the whole computer, but since 10, WiFiDirectServices advertises one or more services running simultaneously in your machine.

假设您是 com.boardgames 的开发者.如果您想在没有 WiFi 硬 AP 的地方举办棋盘游戏比赛,这可能是您所有服务名称的前缀,因此每个客户端只连接到他们想要的一个:例如,com.boardgames.solitairecom.boardgames.chess 而不是连接到您的机器.

Lets say you are the developer of com.boardgames. If you want to host a board games competition somewhere without a WiFi hard AP, that could be the prefix of the name of all your services, so each client connects only to the one they want: for example, com.boardgames.solitaire or com.boardgames.chess instead of connecting to your machine.

遗憾的是,我尝试过的计算机和 WiFi 天线都不与 P2P 发现兼容.

Sadly, none of the computers nor WiFi antennas I've tried are compatible with P2P discoveries.

这篇关于Windows 10 中的 WiFi Direct 显示“不支持的硬件"虽然应该支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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