How to process "GetSlot" command

JavaCard Applet Development Related Questions and Answers.
BirdKing
Posts: 73
Joined: Wed Nov 04, 2015 7:23 am
Points :532
Contact:

How to process "GetSlot" command

Post by BirdKing » Mon Mar 04, 2019 8:52 am

Hello, everyone. I have a question about how to process "GetSlot". Now I have a device which implemented HID and CCID. At first, I processed "GetSlot" command in USB IRQ. But my hardware lost message. So I changed my implementation. I processed "GetSlot" command out of USB IRQ.While another question happened. When I used my deveice on MAC, I cannot keep CCID procotol right. The reason is that the work protocol is HID, in the same time, MAC send "GetSlot" command to the device. As the device is processing HID comman, it cannot process "GetSlot" command timely. CCID failed because time out. How to save this question?

BirdKing
Posts: 73
Joined: Wed Nov 04, 2015 7:23 am
Points :532
Contact:

Re: How to process "GetSlot" command

Post by BirdKing » Fri Mar 15, 2019 5:51 am

A solution is when card received a CCID command it would turn on the timer in USB IRQ. If timer interrupted CCID send wtx request command util the ccid start to process CCID command.

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: Google [Bot] and 2 guests

JavaCard OS : Disclaimer