|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Carlos Prados (cprados
yahoo.com)Date: Sun Oct 14 2001 - 05:13:43 CDT
Hi,
You are getting an error in ReadData() beacause you
don't reserve enough memory space for the response:
in ReadData, the 5th line of the function should be:
unsigned long dwRecvLength = size + 2;
In fact there is enouth space (300 bytes) but you must
inform PCSC that this space is available for receiving
data with the paramenter dwRecvLength.
Use SCARD_PROTOCOL_ANY with memory cards. If you use
SCARD_PROTOCOL_RAW, PCSC will send the data bytes to
IFDHControl() function (wich is for control of
terminal, not for communicating with the smartcard)
and you get 6e 00.
Hope it helps,
Carlos.
--- Andreas Trink <atrink
utanet.at> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi!
>
> First info: pscs-lite-1.0.0B, towitoko-2.0.4
>
> I cannot read a memorycard, i always get the message
> "Transaction failed"
> after calling SCardTransmit.
> Writing to the memorycard goes OK!
>
__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com
***************************************************************
Unix Smart Card Developers - M.U.S.C.L.E.
(Movement for the Use of Smart Cards in a Linux Environment)
http://www.linuxnet.com/
To unsubscribe send an email to majordomo
linuxnet.com with
unsubscribe sclinux
***************************************************************
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]