3G休眠唤醒问题可能因注册表问题

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\HCD_HSH1]
   "HcdCapability"=dword:4  

有这么说的:
Device that hosts RNDIS Host using UHCI may hang after Suspend/Resume
To avoid this problem, you must edit the uhci.reg file so that it does not support SUSPEND_RESUME. This file is located in %_WINCEROOT%\public\common\oak\drivers\usb\hcd\uhc.

Change the following text:
"HcdCapability"=dword:5 ;HCD_SUSPEND_ON_REQUEST|HCD_SUSPEND_RESUME
To
"HcdCapability"=dword:4 ;HCD_SUSPEND_ON_REQUEST
With this change, the UCHI host controller on the Windows CE-based device will unload the driver for a function device, and will reload it on resume. Therefore, for RNDIS, the RNDIS host interface is unloaded and then reloaded.

WINCE600\PUBLIC\COMMON\OAK\DRIVERS\USB\HCD\USB20\EHCI\chw.cpp
DWORD CHW::SetCapability(DWORD dwCap)
{
    m_dwCapability |= dwCap;
    if ( (m_dwCapability & HCD_SUSPEND_RESUME)!=0) {
        KernelIoControl(IOCTL_HAL_ENABLE_WAKE, &m_dwSysIntr, sizeof(m_dwSysIntr), NULL, 0, NULL);
    }
    return m_dwCapability;
};

Freescale:

//************************************************************************
DWORD CHW::SetCapability(DWORD dwCap)
//
// Purpose: This function is to check if suspend_resume is enabled, we would
//          support the wakeup enable.
//
// Parameters: Nothing
//
// Returns: Nothing.
//
// Notes: This function is obsolete & not used in Freescale project as we would
//        need to permanent support in non-OTG support case
//
//********************************************************************
{
    m_dwCapability |= dwCap;
    if ( (m_dwCapability & HCD_SUSPEND_RESUME)!=0) {
        // BSPUSBInterruptControl(IOCTL_HAL_ENABLE_WAKE, &m_dwSysIntr, sizeof(m_dwSysIntr));  // By Tom for SIMCOM 3G Wake Up
        KernelIoControl(IOCTL_HAL_ENABLE_WAKE, &m_dwSysIntr, sizeof(m_dwSysIntr), NULL, 0, NULL); // By Tom 原WINCE 函数
    }
    return m_dwCapability;
};

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值