Hi
I am stuck with one Problem. First let me tell you about my
environment. I am using Intex PXA270 Processor & Mainstoneiii USB
function driver code using wince 5.0.
USB client driver is working Fine after hardreset even it is working
fine on the cable attach/Detach event.
But when i suspend the System & resume the System it is not working. I
have corrected the Powerup function:
void BulUsbDevice::PowerUp()
{
m_fResumeOccurred = TRUE;
if (m_CurPowerState == PwrDeviceUnspecified) {
PowerMgr(FALSE) ;
}
PowerMgr(FALSE) ;
}
Powerdown function:
void BulUsbDevice::PowerDown()
{
if (m_CurPowerState == PwrDeviceUnspecified) {
PowerMgr(TRUE) ;
}
PowerMgr(TRUE) ;
}
BOOL BulUsbDevice::ReInit() // For Cable Detach & Attach , We have to
re-init the Device Controller.
{
Lock();
HardwareInit();
for (DWORD dwIndex=0; dwIndex<MAX_ENDPOINT_NUMBER; dwIndex++) {
BulEndpoint *pEndpoint = ObjectIndex(dwIndex);
if (pEndpoint!=NULL) {
pEndpoint->ReInit();
pEndpoint->DeRef();
}
}
I have tried all the Possible Option but it is still not working . is
this Know issues ?
Please see the below debug logs after Resume the system :
----->BulUsbDevice::HardwareInit - Called
----->BulEndpointZero::ReInit - Called
----->BulEndpoint::ReInit - Called
----->BulEndpoint::ReInit - Called
----->BulUsbDevice::ReInit - Called
----->BulUsbDevice::SetPowerState - Called
----->BulEndpoint::ThreadRun - ThreadRun ThreadRun
----->BulUsbDevice::HardwareInit - Called
----->BulEndpointZero::ReInit - Called
----->BulEndpoint::ReInit - Called
----->BulEndpoint::ReInit - Called
----->BulUsbDevice::ReInit - Called
----->BulEndpoint::ThreadRun - Called
----->BulEndpoint::ThreadRun - Reset Detected
Does anybody have the same Proble ?
Thanks.
Rakesh.