|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Eric Perlin (ericperl_at_WINDOWS.MICROSOFT.COM)
Date: Thu Jan 09 2003 - 12:10:19 CST
You should find the details in the document describing the APDU command
set for your card.
It's not unusual that P1 P2 are used as offset.
For example to write 500 bytes to such a card.
CLA INS 0 0 128 [128 bytes of data]
CLA INS 0 128 128 [128 bytes of data]
CLA INS 0 256 128 [128 bytes of data]
CLA INS 0 382 118 [118 bytes of data]
Note that the max for incoming data (from the card's perspective) is 255
bytes (not 256).
Eric Perlin [MS]
-----Original Message-----
From: Jianguo Wang [mailto:jwang
BIOMETRICGROUP.COM]
Sent: Thursday, January 09, 2003 7:36 AM
To: SmartCardSDK
DISCUSS.MICROSOFT.COM
Subject: Re: help about the connection
Thanks. Can you give me some detail about how to use the offset to
handle
this typically? is that something like defining blocks in smart card and
for
each inclong data command, the offset to the block header must be
specified....
Jianguo
----- Original Message -----
From: "Eric Perlin" <ericperl
WINDOWS.MICROSOFT.COM>
To: <SmartCardSDK
DISCUSS.MICROSOFT.COM>
Sent: Wednesday, January 08, 2003 7:25 PM
Subject: Re: help about the connection
> I have personally never seen a card that can handle more than 256
bytes
> of data in a single transfer.
> It is possible per ISO (extended commands) but again, I don't know of
a
> card that can do that.
>
> Reading and writing more than that is typically solved by sending
> multiple commands specifying an offset.
>
> Eric Perlin [MS]
>
> -----Original Message-----
> From: Jianguo Wang [mailto:jwang
BIOMETRICGROUP.COM]
> Sent: Wednesday, January 08, 2003 3:54 PM
> To: SmartCardSDK
DISCUSS.MICROSOFT.COM
> Subject: Re: help about the connection
>
>
> Thanks.
> I found another question. The LC,which indicates in the incoming data
> length, is a byte, which means the MAX is 256. Then how about the case
I
> have a data longer than 256 coming in? How can I handle that?
>
> Appreciate your time...
>
> Jianguo
> ----- Original Message -----
> From: "Eric Perlin" <ericperl
windows.microsoft.com>
> To: "Jianguo Wang" <jwang
biometricgroup.com>;
> <SmartCardSDK
DISCUSS.MICROSOFT.COM>
> Sent: Tuesday, January 07, 2003 8:17 PM
> Subject: RE: help about the connection
>
>
> > Consider SCardListReaders.
> >
> > Eric Perlin [MS]
> >
> > -----Original Message-----
> > From: Jianguo Wang [mailto:jwang
BIOMETRICGROUP.COM]
> > Sent: Tuesday, January 07, 2003 4:50 PM
> > To: SmartCardSDK
DISCUSS.MICROSOFT.COM
> > Subject: help about the connection
> >
> >
> > I am having problem to set up a connection. Actually where can I
find
> > the reader name which is the 2nd parameter for "SCardConnect"? Sorry
> for
> > the stupid question. I am a newbie....
> >
> > Thanks
> >
> > Jianguo
> >
>
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]