WinUSB 在非开发计算机上失败

发布于 2024-09-02 07:00:20 字数 501 浏览 10 评论 0原文

下午好,

WinUSB 在我使用的开发计算机(Win XP SP3)上运行良好。我能够将新固件下载到 Cypress FX2,然后在“重新枚举”后连接到新的 USB 设备。但是,如果我在其他几台计算机(Win XP SP3、Win7 x64)上尝试使用 WinUSB 驱动程序使用相同的代码,它们都会返回错误“连接到系统的设备无法运行”。当尝试使用 CreateFile 获取 USB 设备的句柄时。

devicePath 已成功找到,所以我不确定为什么它无法连接到设备。此外,设备管理器表明我的设备工作正常。我很好奇我在编译代码时是否遗漏了一些东西?我猜想我的开发计算机上安装了其他计算机没有安装的东西?或者可能是电源设置,设备将进入睡眠状态(尽管我在每台计算机上设置了电源选项,但无济于事)。

有人有什么想法吗?我在 Visual Studio 2008 下进行了编译,并在我测试过的计算机上安装了 Microsoft C++ 2008 Redistributable Package。

谢谢,

吉瓦

Good afternoon,

WinUSB is working well on the development computer that I am using (Win XP SP3). I am able to download new firmware to the Cypress FX2, and then connect to the new USB device once it 'renumerates'. However, if I've tried the same code with the WinUSB driver on a few other computers (Win XP SP3, Win7 x64) and they both returned the error "A device attached to the system is not functioning." when trying to use CreateFile to get a handle to the USB device.

The devicePath was found successfully, so I'm not sure why it cannot connect to the device. Furthermore, the device manager states that my device is working properly. I'm curious if I'm missing something when compiling the code? I would guess that my development computer has something installed on it that the other computers do not? Or perhaps it's a power setting and the device is going to sleep (although I've fooled around with the Power Options on each computer to no avail).

Does anyone have any ideas? I've compiled under Visual Studio 2008, and have installed the Microsoft C++ 2008 Redistributable Package on the computers that I've tested on.

Thanks,

Giawa

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

入画浅相思 2024-09-09 07:00:20

已解决:我的驱动程序使用的 GUID 与系统上的另一个设备共享,返回的是该设备而不是我的设备。该设备恰好没有安装在我的计算机上。我已经生成了一个新的 GUID,现在一切似乎都正常了。

吉瓦

Solved: The GUID that my driver was using was shared with another device on the system, which was returned instead of my device. The device just happened to not be installed on my computer. I've generated a new GUID and everything seems to work now.

Giawa

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文