i have a problem about USB Smartcard reader

Hi all,

Currently I have write usb smartcard reader driver.
It had interrupt endpoint for accept to card insertion and remove event.
And have two bulk endpoint for Input and Output operation

My driver is correctly work until enter standby mode. when it comes out
standby mode with card-inserted, Application program assert error message
with “Please Insert SmartCard”.

I had checked power management routine and replaced with Power Management
routine by walter oney’s power.cpp code.

But i received same error message.

Please inform to me how can i fix this problem.

Thanks

Kevin Lim

You are not handling card insertion and removal correctly.

“jong yoon lim” wrote in message news:xxxxx@ntdev…
>
> Hi all,
>
> Currently I have write usb smartcard reader driver.
> It had interrupt endpoint for accept to card insertion and remove event.
> And have two bulk endpoint for Input and Output operation
>
> My driver is correctly work until enter standby mode. when it comes out
> standby mode with card-inserted, Application program assert error message
> with “Please Insert SmartCard”.
>
> I had checked power management routine and replaced with Power Management
> routine by walter oney’s power.cpp code.
>
> But i received same error message.
>
> Please inform to me how can i fix this problem.
>
> Thanks
>
> Kevin Lim
>
>

jong yoon lim wrote:

Currently I have write usb smartcard reader driver.

Why? There is a free one from Microsoft that covers a subset of the
spec, and I have one in production that covers the entire spec.

My driver is correctly work until enter standby mode. when it comes out
standby mode with card-inserted, Application program assert error message
with “Please Insert SmartCard”.

When you resume from standby, you should report “card absent”. I.e., if
there’s a card-absent tracking request active, you should complete it
with STATUS_SUCCESS. Then you need to interrogate the device to see
whether a card is present or not so that the next card-present tracking
IRP will succeed immediately.


Walter Oney
SmartCard readers a specialty