阅读:1332回复:4
USB驱动中read的问题
在DDK给的例程中有这么一段话:
Call the USB Stack. This call blocks until the device returns data. Note that if the device NAKs forever, this call will not return and this thread will hang. To correct this, a timeout value can be specified and a Kernel-Mode timer used to wake up the driver and then cancel this transfer. Future versions of this sample driver will demonstrate that capability, or consult the Windows NT DDK for further details on the Kernel Timer functionality as well as the IoCancelIrp functionality. 即在读USB数据时,未考虑到意外的情况发生,如果无法向端口传输数据,就会无限制等待下去,我没有找到有解决办法的例程,谁又解决这个问题的经验呢?谢谢! |
|
沙发#
发布于:2002-08-06 13:18
55555,怎么没有人理我呢?
|
|
板凳#
发布于:2002-08-07 10:59
解决什么?
|
|
|
地板#
发布于:2002-08-07 11:04
I don\'t know it!!
|
|
地下室#
发布于:2007-10-24 12:00
这个问题我也没有解决!待望用PC用中断接收
|
|