Memory Card support under MUSCLE

2001-04-16 Thread Randy Chen (TP)



Hello,

I am writing a SmartCard reader driver under 
Linux.
Now I will handle a Memory 
Card.

I found a problem
After I return the ATR 92 23 10 
91
After Pcsc-lite 0.8.4

LONG IFDStatusICC( PREADER_CONTEXT rContext, 
PDWORD pdwStatus, PDWORD pdwProtocol, PUCHAR pucAtr, 
PDWORD pdwAtrLen ) {

rv = ATRDecodeAtr( sSmartCard, 
pucAtr, MAX_ATR_SIZE ); 
 /* Might be a memory card without an ATR 
*/ if ( rv == 0 ) { *pdwAtrLen = 0; 
 } else {*pdwAtrLen = 
sSmartCard.ATR.Length; }
}

it will make the return ATR length 
zero
This will cause EHSpawnEventHandler: power 
up fail
#ifdef 
PCSC_DEBUGDebugLogC("EHSpawnEventHandler: Card inserted into %s\n", 
 lpcReader, __FILE__, __LINE__);

if ( rContext-dwAtrLen  0 ) 
{ DebugLogD("EHSpawnEventHandler: Card insertion ATR:\n\t", 
 rContext-ucAtr, 
rContext-dwAtrLen, __FILE__, __LINE__ );} else 
{ DebugLogA("EHSpawnEventHandler: Error powering up card.\n", 
 __FILE__, __LINE__);} 
#endif

Does this is MUSCLE issue in Memory 
Card?
Or anybody can tell me, how does MUSCLE to 
support Memory Card.

Randy 
Chen
(02)2545-9095 
#41
[EMAIL PROTECTED]



MUSCLE CT-API spec with Pcsc-lite testrpc problem

2001-01-09 Thread Randy Chen (TP)



Hello,

I finish my Pcmcia SmartCardBus Reader 
driver.
I try to test the driver with test program 
TESTRPC
But it stop at loop 
SCardGetStatusChange()
if I return the value 3 for represents a 
card inserted but not powerd
(check with Linux CT-API 
HOW-TO)
After I change the return value 4 for same 
status, it will pass and continue the test.
Where I get this idea to return value 4, 
this is check with the the other sample code
as attached.

Thanks
Randy
 ix_36-drv-0.2.0.tar.gz


MUSCLE Pcsc-lite v0.8.4, error message with testrpc

2001-01-08 Thread Randy Chen (TP)



Hello,

I had finish a Pcmcia Smartcard 
Reader driver for Linux with MUSCLE
I try to test it with Pcsc-lite 
test program TESTRPC.
I got a error message during 
TRANSACTION test.
 Winscard PC/SC Lite Test 
Program

Testing 
SCardEstablishContext Testing SCardGetStatusChange Waiting for available 
reader Testing SCardListReaders Allocated 33 space for readersReader 
01: O2Micro SmartCardBus Reader 0 0Enter the desired reader number : 
Status before 16winscard.c 603: SCardGetStatusChange: Event Loop 
Startwinscard.c 693: SCardGetStatusChange: Event Loop EndStatus after 
34Testing SCardConnect SCardConnect Returns 
0Testing SCardControl 
SCardControl Returns -2146435050PCSC ERROR: Transaction 
failed.Testing SCardStatus SCardStatus Returns 0Current 
Reader Name O2Micro SmartCardBus Reader 0 
0Current Reader State 34Current Reader 
Protocol 0Current Reader Size ATR 43b 2 14 50 Testing 
SCardBeginTransaction Testing SCardTransmit Testing SCardEndTransaction 
SCardTransmit Returns 0Bytes Received 1061 29 dd 31 df cd d3 54 90 0 
Testing SCardDisconnect Testing SCardReleaseContext 

Does any one know what for this 
item test.
I also try to find what service 
call by this test item, I can't found any service call by this 
item

Thanks

Randy


MUSCLE test application and card

2001-01-04 Thread Randy Chen (TP)



Dear all,

I had finish a Linux driver for 
PCMCIA Smartcard Reader.
I want to try does it work 
under Linux PC/SC, does any one
have application for MUSCLE 
driver test. I have a full set of 
PC/SC test card. Or any one 
have application for other special 
card. Please also tell me where 
can I get the card.

Thanks



MUSCLE sample driver for Smartcard reader which use USB interface

2000-12-14 Thread Randy Chen (TP)
Title: ªÅ¥Õ



Hello,

I try touse a USB Smartcard 
readerunder Linux MUSCLE.
Any one can tell me where can get 
some sample for test.

Randy


MUSCLE Card protocol T=1 command transfer

2000-11-17 Thread Randy Chen (TP)

Hello,

We are developing PCMCIA smartcard reader driver.
I have question, does any one can tell me how to improvement the T=1 command
transfer.

Base on 7816-3 specification, when T=1 command transfer. There are many
times of command transfer
when one block data to send.

Ex:Scenario 1, when our device send  a I(0,0)command to card,
then we will got a answer by card I(0,0)
then we must still send a command I(1,0) from device
then we just can got the final reply I(1,0) from card
does these procedure must be finish in one CT_data function call.
or we directly reply the first I(0,0) reply to IFD_handler
then IFD_handler will send I(1,0) command 

Does any one can tell me which way to improvement?

Thanks
***
Linux Smart Card Developers - M.U.S.C.L.E.
(Movement for the Use of Smart Cards in a Linux Environment)
http://www.linuxnet.com/smartcard/index.html
***



MUSCLE The PCMCIA support by the version pcsc-lite-0.8.2

2000-11-17 Thread Randy Chen (TP)

Hello,

I am developing a MUSCLE spec driver for PCMCIA smartcard reader.
After I check the old version 0.7.8 that it not define how to access the H/W
resource
(like the PCMCIA card reader I/O base and Memory)

I got the new version 0.8.2, it said Hot plug manager for pcmcia devices.
Does it mean that have a way to get the resource of pcmcia device.
Or does any one can tell me how to access the H/W resource with out any
other driver for 
PCMCIA smartcard reader.

Thanks
***
Linux Smart Card Developers - M.U.S.C.L.E.
(Movement for the Use of Smart Cards in a Linux Environment)
http://www.linuxnet.com/smartcard/index.html
***



MUSCLE : The PCMCIA support by the version pcsc-lite-0.8.2

2000-11-17 Thread Randy Chen (TP)


Hello,

I am developing a MUSCLE spec driver for PCMCIA smartcard reader.
After I check the old version 0.7.8 that it not define how to access the H/W
resource
(like the PCMCIA card reader I/O base and Memory)

I got the new version 0.8.2, it said Hot plug manager for pcmcia devices.
Does it mean that have a way to get the resource of pcmcia device.
Or does any one can tell me how to access the H/W resource with out any
other driver for 
PCMCIA smartcard reader.

Thanks
***
Linux Smart Card Developers - M.U.S.C.L.E.
(Movement for the Use of Smart Cards in a Linux Environment)
http://www.linuxnet.com/smartcard/index.html
***



MUSCLE utility for driver function verify

2000-11-14 Thread Randy Chen (TP)
Title: ªÅ¥Õ



Hello,
We are developing the SmartCard 
reader driver from PCMCIA port.
Follow MUSCLE current spec, 
CT-API. Now we want get some utility
for function call verify. Can you 
tell me where can I get this utility.

Thanks