sfqj82
驱动小牛
驱动小牛
  • 注册日期2004-12-30
  • 最后登录2011-09-03
  • 粉丝0
  • 关注0
  • 积分80分
  • 威望15点
  • 贡献值0点
  • 好评度2点
  • 原创分0分
  • 专家分0分
阅读:1043回复:2

高分请教 Usb: Board did not accept configuration URB 问题!!!

楼主#
更多 发布于:2005-01-08 16:52
我编译了一驱动程序,当跟踪时出现以下错误信息:
5843.938   Default   Usb: Board did not accept configuration URB

我的这部分原代码是:
...
NTSTATUS UsbDevice::OnStartDevice(KIrp I)
{
t << "Entering UsbDevice::OnStartDevice/n";

NTSTATUS status = STATUS_UNSUCCESSFUL;

AC_STATUS acStatus = AC_SUCCESS;

I.Information() = 0;
           status = m_Lower.Preconfigure();
if(status==STATUS_SUCCESS)
t << "Get USB Configuration OK/n";

acStatus = m_Lower.ActivateConfiguration(1
 // ConfigurationValue 1 (the first configuration)
);


switch (acStatus)
{
case AC_SUCCESS:
t << "USB Configuration OK/n";
status = STATUS_SUCCESS;
break;

case AC_COULD_NOT_LOCATE_INTERFACE:
t << "Could not locate interface/n";
break;

case AC_COULD_NOT_PRECONFIGURE_INTERFACE:
t << "Could not get configuration descriptor/n";
break;

case AC_CONFIGURATION_REQUEST_FAILED:
t << "Board did not accept configuration URB/n";
break;

case AC_FAILED_TO_INITIALIZE_INTERFACE_OBJECT:
t << "Failed to initialize interface object/n";
break;

case AC_FAILED_TO_GET_DESCRIPTOR:
t << "Failed to get device descriptor/n";
break;

case AC_FAILED_TO_OPEN_PIPE_OBJECT:
//NOTE: this may not be an error.  It could mean that
//the device has an endpoint for which a KUsbPipe object has
//not been instanced.  If the intention is to not use this endpoint,
//then it's likely not a problem.  
status = STATUS_SUCCESS;
t << "Failed to open pipe object/n";
break;

default:
t << "Unexpected error activating USB configuration/n";
break;
}


请问究竟错误在什么地方,该如何解决呢?谢谢各位了。
(上面switch循环是自动生成的,应该没有问题)
互相交流~共同进步!
sfqj82
驱动小牛
驱动小牛
  • 注册日期2004-12-30
  • 最后登录2011-09-03
  • 粉丝0
  • 关注0
  • 积分80分
  • 威望15点
  • 贡献值0点
  • 好评度2点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2005-01-10 09:07
自己顶
互相交流~共同进步!
sfqj82
驱动小牛
驱动小牛
  • 注册日期2004-12-30
  • 最后登录2011-09-03
  • 粉丝0
  • 关注0
  • 积分80分
  • 威望15点
  • 贡献值0点
  • 好评度2点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2005-01-11 09:06
怎么没有人回复啊?再顶
互相交流~共同进步!
游客

返回顶部