Hi,

 

I’m using GemPC410 serial reader( Cherry keyboard, integrated with the smart card reader and SAM  slots).

 

Currently I’m using the following definition for the SCARD_CTL_CODE macro

#define SCARD_CTL_CODE(code) (0x42000000 + (code))

 

#define IOCTL_SMARTCARD_VENDOR_IFD_EXCHANGE SCARD_CTL_CODE(1)

 

rv = SCardConnect(hContext, &mszReaders[iList[iReader]], SCARD_SHARE_DIRECT, SCARD_PROTOCOL_RAW, &hCard, &dwPref);

 

unsigned char bSendBuffer[MAX_BUFFER_SIZE];

unsigned char bRecvBuffer[MAX_BUFFER_SIZE];

DWORD length;

 

bSendBuffer[0] = 0x02;

 

rv = SCardControl(hCard, 0x42000001, bSendBuffer, 1, bRecvBuffer, sizeof(bRecvBuffer), &length); (Sample code given in the pc/sc doc).

 

when I run this code, I’m getting “Transaction Failed”.

 

My guess is that the control code: 0x42000000 is for CCID drivers and not for GemPC410, am I correct?

In this case, how I can find out the control code for GemPC410.

 

Another question is, How I can detect SAM which is present in the Cherry keyboard.

 

Kindly let me know.

 

Cheers,

 

Naveen.

_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to