[Muscle] pcsc-lite on ARM
fineliuhai
fineliuhai at 163.com
Fri May 9 22:56:43 PDT 2008
Hello:
The code is:
***************************************************************************
printf("Testing SCardEstablishContext : ");
rv = SCardEstablishContext( SCARD_SCOPE_SYSTEM, NULL, NULL, &hContext );
printf("%s\n", pcsc_stringify_error(rv));
if ( rv != SCARD_S_SUCCESS ) {
printf("SCardEstablishContext error : rv = 0x%1x", rv);
return -1;
}
***************************************************************************
The return information on Arm is:
***************************************************************************
Testing SCardEstablishContext : Service not available.
SCardEstablishContext error : rv = 0x8010001d
***************************************************************************
I found this error in <pcsclite.h> :
***************************************************************************
#define SCARD_E_NO_SERVICE 0x8010001D
/**< The Smart card resource manager is not running. */
***************************************************************************
What should I do now?
ÔÚ2008-05-09£¬"Wang Yongqing" <qinwyo2008 at yahoo.com> дµÀ£º
Your reader driver should use the libusb or you could use system APIs accomplish your own usb API. There is no other special things for PCSC under Linux
----- Original Message ----
From: fineliuhai <fineliuhai at 163.com>
To: Wang Yongqing <qinwyo2008 at yahoo.com>
Sent: Friday, May 9, 2008 1:55:27 PM
Subject: Re:Re: [Muscle] pcsc-lite on ARM
Thanks!
I think the function SCardEstablishContext() is not rely on the reader driver.So it should run successfully without drivers.
But besides libusb and reader driver, does the embeded OS have anything others for pcsc?
ÔÚ2008-05-09£¬"Wang Yongqing" <qinwyo2008 at yahoo.com> дµÀ£º
Hi!
Does the libusb and the reader driver have been installed rightly on your embeded OS?
----- Original Message ----
From: fineliuhai <fineliuhai at 163.com>
To: Muscle at lists.musclecard.com
Sent: Thursday, May 8, 2008 5:42:52 PM
Subject: [Muscle] pcsc-lite on ARM
Everybory:
Hello!
After cross-compiling pcsc-lite-1.4.99, I put testpcsc.c together with libpcsclite.a and libpcsclite.so(ARM) on ARM.
The procedure can run, but can't communicate with smart card. According to the information of typing, I found that the first function SCardEstablishContext() makes mistakes.
I think it perhaps have no pcscd server for readers on Arm, so I try to execute pcscd server with fork() in testpcsc.c. But the result doesn't have any change.
Which is it to make mistakes on earth? How to solve?
Thanks!
×ÔÐÅÔ´×Ô³ÉÊì ȫл»´úÉÏÊÐ ¶«·çÑ©ÌúÁúа®ÀöÉá
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
ÍøÉ϶©±ÈÈøÌìÌìÓн±
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drizzle.com/pipermail/muscle/attachments/20080510/b672e38f/attachment.html
More information about the Muscle
mailing list