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

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

楼主#
更多 发布于:2005-01-08 16:50
我编译了一驱动程序,当跟踪时出现以下错误信息:
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循环是自动生成的,应该没有问题)
互相交流~共同进步!
AllenZh
驱动老牛
驱动老牛
  • 注册日期2001-08-19
  • 最后登录2015-11-27
  • 粉丝19
  • 关注10
  • 积分1316分
  • 威望2387点
  • 贡献值7点
  • 好评度321点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2005-01-08 22:42
我编译了一驱动程序,当跟踪时出现以下错误信息:
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循环是自动生成的,应该没有问题)

看看你的固件是否正确
1,承接Windows下驱动/应用开发 2,本人原创虚拟鼠标/键盘,触摸屏,虚拟显卡,Mirror驱动,XP无盘的SCSI虚拟磁盘驱动等 3,windows下有尝技术服务(包括BUG调试,员工培训等) 欢迎深圳和海外企业联系.msn:mfczmh@sina.com
sfqj82
驱动小牛
驱动小牛
  • 注册日期2004-12-30
  • 最后登录2011-09-03
  • 粉丝0
  • 关注0
  • 积分80分
  • 威望15点
  • 贡献值0点
  • 好评度2点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2005-01-11 09:01
固件检查过了,没有问题,哪位老大帮看看啊!!
互相交流~共同进步!
游客

返回顶部