Windows 10 IoT上的USB移动宽带调制解调器? [英] USB Mobile Broadband Modem on Windows 10 IoT?

查看:209
本文介绍了Windows 10 IoT上的USB移动宽带调制解调器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都已经有使用Raspberry Pi2在Windows IoT上使用USB移动宽带的经验吗?

Anyone had experience using a USB Mobile Broadband on Windows IoT with the Raspberry Pi2 already?

我在Windows IoT中有一个华为数据卡,在连接的设备上显示为HUAWEI Mobile,但在wifimanager.htm管理页面上看不到该设备.

I have a Huawei datacard in the Windows IoT and appears as HUAWEI Mobile on connected devices but I'm unable to see the device on the wifimanager.htm admin page.

甚至都没有出现在设备管理器"列表中.是否缺少驱动程序?

Don't even appear on the Device Manager list. Is this lack of drivers?

推荐答案

我也在寻找一种解决方案,终于找到了一种解决方案.希望以下内容对您有所帮助!

I was looking for a solution too, and I have finally found one. I hope the following will help you!

根据记录,我使用了Vodafone(Huawei)K5150,该硬件正式"受支持并经过Microsoft的验证,根据硬件兼容性列表:

For the record, I used a Vodafone (Huawei) K5150, "officially" supported and Microsoft verified, according to the hardware compatibility list: https://developer.microsoft.com/en-us/windows/iot/win10/supportedinterfaces. The device was recognized and visible on the portal through an hdmi screen. Anyway, the raspberry couldn't get internet access.

这就是我要做的工作:

  1. 将密钥安装在普通笔记本电脑上,并检查互联网访问情况. Windows应该顺便将其视为蜂窝连接.
  2. 找到Windows生成的xml文件,该文件位于 C:\ ProgramData \ Microsoft \ WwanSvc \ Profiles 下.该文件称为配置文件,Windows用来表征它看到的每个无线连接.您当然可以从头开始创建此文件,但这要复杂得多/无聊.通常,您也可以使用netsh命令和importdump子命令来执行此操作,但是它不适用于宽带设备.
  3. 将树莓派连接到本地网络,然后转到 \\ [名称或IP地址] \ c $ .就我而言,它是 \\ minwinpc \ c $ .在这里,找到一个合适的位置来复制xml文件以及旁边的bmp文件,并且不要忘记修改其内容以指向该图标的正确路径(bmp文件).
  4. 下一步非常棘手,但非常重要:您必须找到密钥的订户ID.保存在xml文件中的那个实际上是一种哈希,如果您未设置正确的值,则会出现类似
  5. 的错误
  1. install the key on a common laptop and check the internet access. Windows should see it as a cellular connection by the way.
  2. find the xml file generated by Windows and located under C:\ProgramData\Microsoft\WwanSvc\Profiles. This file is called a profile and is used by Windows to characterize every wireless connection it sees. You can of course create yourself this file from scratch, but it's far more complicated/boring. You can also normally do that with the netsh command and the import or dump sub-command, but it doesn't work for broadband devices.
  3. connect your raspberry to your local network and go to \\[name or IP address]\c$. In my case, it was \\minwinpc\c$. There, find a suitable place to copy the xml file, as well as the bmp file next to it, and don't forget to modify its content to point the right path for the icon (the bmp file).
  4. the next step is super tricky, but highly important: you have to find the subscriber ID for your key. The one saved in the xml file is actually a kind of hash and if you don't set the correct value you'll have an error like

添加配置文件失败:无效的配置文件XML.

Add Profile Failure: Invalid Profile XML.

  1. 将密钥连接到树莓派并使用PowerShell输入PSSession(详细信息: https://developer.microsoft.com/en-us/windows/iot/win10/samples/powershell ).然后,使用以下命令:netsh mbn show readyinfo interface="Cellular".正确的接口(在我的情况下为蜂窝")可以使用命令netsh mbn show interfaces(我猜想为 Mobile Broadband mbn)检索.显示订户ID以及其他有用信息,您可以将其复制到树莓派上的xml文件中.
  2. 剩下的是实际的配置文件激活,分为两个部分:添加新导入的配置文件,并告诉树莓派连接到它.为此,请使用命令netsh mbn add profile interface="Cellular" name="profile.xml"netsh mbn connect interface="Cellular" connmode=name name=ProfileName.
  1. connect the key to your raspberry and enter a PSSession with PowerShell (details here: https://developer.microsoft.com/en-us/windows/iot/win10/samples/powershell). Then, use this command: netsh mbn show readyinfo interface="Cellular". The correct interface (in my case it's "Cellular") can be retrieved with the command netsh mbn show interfaces (mbn standing for Mobile Broadband I suppose). The subscriber ID, with other useful information, is displayed and you can copy it the to the xml file on your raspberry.
  2. what's left is the actual profile activation, in two parts: add the newly imported profile and tell the raspberry to connect to it. For that, use the commands netsh mbn add profile interface="Cellular" name="profile.xml" and netsh mbn connect interface="Cellular" connmode=name name=ProfileName.

您现在应该激活了移动宽带密钥,并且树莓应该在启动时自动连接到它.

You mobile broadband key should now be activated and the raspberry should automatically connect to it at start.

以下是对我有很大帮助的一些链接:

Here are the few links that helped me a lot:

  • export the profile: https://www.experts-exchange.com/questions/28324340/Adding-custom-mobile-broadband-profiles-in-Win-7.html
  • replace the subscriber ID: https://social.technet.microsoft.com/Forums/office/en-US/7c2d6c77-1974-432b-a439-6e58f9306234/receive-add-profile-failure-invalid-profile-xml-error-when-adding-wwan-profile-windows-7?forum=w7itpronetworking
  • connect to the raspberry to copy the files: https://developer.microsoft.com/en-us/windows/iot/win10/samples/smb

这篇关于Windows 10 IoT上的USB移动宽带调制解调器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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