HID行数据在Win8上不起作用 [英] HID row data doesn't work on Win8

查看:59
本文介绍了HID行数据在Win8上不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人:



我使用原始HID的USB:RawHid Test C源代码从USB获取HID信息,

(资源: http://www.pjrc.com/teensy/rawhid.html

在MFC上开发。



它在Win7上工作,但在Win8上它无法读取信息 ...

(它可以通过库识别每个界面,但它无法读取里面的数据)



google之后,我找到了< b>问题可能是CreateFile函数,它不支持Win8。

(参考: https: //goo.gl/bdSwnh



我尝试了很多方法,但我还是无法解决这个问题:(



有人会提供一些建议吗?



赞赏!!

Dear all:

I used the USB: RawHid Test C source code of the Raw HID to obtain the HID information from USB,
(resource: http://www.pjrc.com/teensy/rawhid.html )
developing on MFC.

it's work on Win7, BUT on Win8 it CAN'T read the information...
(it can recognize each interface through the library, but it can't read the data inside)

After google, I found the problem maybe is CreateFile function which doesn't support on the Win8.
(ref: https://goo.gl/bdSwnh )

I tried many methods, while I still cannot settle this issue:(

Would anyone provides some suggestion?

appreciated!!

推荐答案

我自己解决了这个问题!

因为我观察到了行HID连接ed,restart(insert&pull)可以解决Win8上的问题。

结果,我添加了devcon.exe,这是MS官方程序。

它可以模拟USB重启动作。



Meathod:

实现并重启USB设备连接USB后的背景。

之后,设备将稳定使用:)
I've settled it by myself!
In that I observed the Row HID connected, restart(insert & pull) could solve the issue on Win8 up.
As a result, I added the devcon.exe which is the MS official program.
It can simulate the action of USB restart.

Meathod:
Implement & restart the USB device in background after connecting the USB.
Afterwards, the device would be used steadily:)


这篇关于HID行数据在Win8上不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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