ivyj
驱动牛犊
驱动牛犊
  • 注册日期2002-07-17
  • 最后登录2003-01-10
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:1333回复:4

USB驱动中read的问题

楼主#
更多 发布于:2002-08-06 10:24
    在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数据时,未考虑到意外的情况发生,如果无法向端口传输数据,就会无限制等待下去,我没有找到有解决办法的例程,谁又解决这个问题的经验呢?谢谢!
ivyj
驱动牛犊
驱动牛犊
  • 注册日期2002-07-17
  • 最后登录2003-01-10
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2002-08-06 13:18
55555,怎么没有人理我呢?
rayyang2000
管理员
管理员
  • 注册日期2001-03-23
  • 最后登录2012-09-13
  • 粉丝3
  • 关注0
  • 积分1036分
  • 威望925点
  • 贡献值3点
  • 好评度823点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2002-08-07 10:59
解决什么?
天天coding-debugging中----超稀饭memory dump file ======================================================== [b]Windows Device Driver Development and Consulting Service[/b] [color=blue][url]http://www.ybwork.com[/url][/color] ========================================================
LOVEYOUFOREVER
驱动牛犊
驱动牛犊
  • 注册日期2002-07-22
  • 最后登录2002-10-09
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
地板#
发布于:2002-08-07 11:04
I don\'t know it!!
hoguowi
驱动牛犊
驱动牛犊
  • 注册日期2006-07-22
  • 最后登录2012-12-20
  • 粉丝0
  • 关注0
  • 积分27分
  • 威望213点
  • 贡献值1点
  • 好评度19点
  • 原创分0分
  • 专家分10分
地下室#
发布于:2007-10-24 12:00
这个问题我也没有解决!待望用PC用中断接收
游客

返回顶部