Hi , Thanks for the reply. I forgot to mention the enviroment I am working on in the previous mail. I am working on the smart card reader side. Here the smart card reader is philips TDA8007BC2. The microcontroller is a 8051. Now I have to send APDU packets to the smart card from TDA8007 via T=1 protocol. I read the etoken implementation and found that they are written for the host side of the USB. Could you please tell me whether the way I have implemented T=1 protocol is correct ?? I think it is too stupid of me to ask these questions but being a newbie I require some guidance. Please help.
Harishankkar PS: After tranamitting any packet to the smart card I receive the following bytes from the smart card. 0x00, 0x81,0x00,0x81. ----- Original Message ----- From: Benjamin <[EMAIL PROTECTED]> To: Harishankkar <[EMAIL PROTECTED]> Sent: Tuesday, January 14, 2003 8:31 PM Subject: Fw: [Muscle] newbie: How to send a APDU packet over T=1 protocol > FYI > J. Benjamin > > ----- Original Message ----- > From: "Andreas Jellinghaus" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Cc: "Benjamin" <[EMAIL PROTECTED]> > Sent: Tuesday, January 14, 2003 8:31 PM > Subject: Re: [Muscle] newbie: How to send a APDU packet over T=1 protocol > > > > Simply call SCardConnect with SCARD_PROTOCOL_T1 > > as prefered protocol, and it should be used. > > Then send the APDU as normal. > > > > However your reader driver (ifdhandler / ct-api) needs > > to support T=1, unless it cannot work. > > > > Even though the protocols are exposed by the pcsc layer > > in the connect functions, you realy do not need to > > worry about them. Everything should work fine without > > any special code. > > > > If you want to write a reader driver for some hardware > > and implement T=1 in that driver, i suggest you take > > a look at the T=1 implementation in scez or etoken. > > Using an existing implementation will save you from > > writing some code. > > > > Regards, Andreas > > > > > > > > Hi all, I am using an infineon smart card which works only over T=1 protocol. I tried sending an APDU packet to the smart card using T=1 protocol after getting ATR. I tried the following sequence 0x00, 0x00, LEN, CLA,INS,P1,P2,0x00,LRC. The CLA, INS, P1, P2 are respectively 0x00, 0xCA, 0x01, 0x82(This is the GET DATA command in Card OS and I m using 0x82 to get the OS version) . I am not getting any responsse from the smart card. Where am I going wrong? I am a newbie to smart cards and I dunno much about this. Is my sequence right?? Harishankkar > _______________________________________________ Muscle mailing list [EMAIL PROTECTED] http://lists.musclecard.com/mailman/listinfo/muscle
