Fwd: Re: Regarding pcsc reader

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Fwd: Re: Regarding pcsc reader

Frank Morgner

--
Frank Morgner

Virtual Smart Card Architecture http://vsmartcard.sourceforge.net
OpenPACE                        http://openpace.sourceforge.net
IFD Handler for libnfc Devices  http://sourceforge.net/projects/ifdnfc

Your debug output is very hard to read, the line breaks are missing.
What you are describing seems to work for me. What is your
configuration, how can the behaviour be reproduced?

On Sunday, October 19 at 04:10PM, nsar nq wrote:

> the virtual card says :19.10.2014 15:52:02  [WARNING] Using default SAM parameters. PIN=1234, Card Nr=123456789019.10.2014 15:52:02  [INFO] Connected to virtual PCD at localhost:35963
> I have tried it many time, detected card presence, returning with 3, 2 and 0. After that it shows it returns thecode -1104<card not present>  for detailed debug info, when debug is set to 9. the following output is generated:
> 2014-10-19 15:30:47.182 ===================================2014-10-19 15:30:47.182 opensc version: 0.13.02014-10-19 15:30:47.182 PC/SC options: connect_exclusive=0 disconnect_action=1 transaction_end_action=0 reconnect_action=0 enable_pinpad=1 enable_pace=12014-10-19 15:30:47.182 [opensc-tool] reader-pcsc.c:948:pcsc_detect_readers: called2014-10-19 15:30:47.182 Probing pcsc readers2014-10-19 15:30:47.182 Establish pcsc context2014-10-19 15:30:47.182 Found new pcsc reader 'Virtual Smart Card Architecture Virtual PCD 0'2014-10-19 15:30:47.182 Virtual Smart Card Architecture Virtual PCD 0 check2014-10-19 15:30:47.198 current  state: 0x004500122014-10-19 15:30:47.198 previous state: 0x000000002014-10-19 15:30:47.198 card absent2014-10-19 15:30:47.198 Requesting reader features ...2014-10-19 15:30:47.198 Virtual Smart Card Architecture Virtual PCD 0:SCardConnect(DIRECT): 0x000000002014-10-19 15:30:47.198 [opensc-tool] reader-pcsc.c:824:detect_reader_features:called2014-10-19 15:30:47.232 Virtual Smart Card Architecture Virtual PCD 0:SCardControl failed: 0x000000322014-10-19 15:30:47.232 [opensc-tool] reader-pcsc.c:1101:pcsc_detect_readers: returning with: 0 (Success)# Detected readers (pcsc)Nr.  Card  Features  Name2014-10-19 15:30:47.232 [opensc-tool] sc.c:231:sc_detect_card_presence: called2014-10-19 15:30:47.232 [opensc-tool] reader-pcsc.c:370:pcsc_detect_card_presence: called2014-10-19 15:30:47.232 Virtual Smart Card Architecture Virtual PCD 0 check2014-10-19 15:30:47.232 current  state: 0x004502222014-10-19 15:30:47.232 previous state: 0x004500122014-10-19 15:30:47.232 card present, changed2014-10-19 15:30:47.232 [opensc-tool] reader-pcsc.c:375:pcsc_detect_card_presence: returning with: 32014-10-19 15:30:47.248 [opensc-tool] sc.c:236:sc_detect_card_presence: returning with: 30    Yes             Virtual Smart Card Architecture Virtual PCD 02014-10-19 15:30:47.248 [opensc-tool] card.c:125:sc_connect_card: called2014-10-19 15:30:47.248 [opensc-tool] reader-pcsc.c:450:pcsc_connect: called2014-10-19 15:30:47.248 Virtual Smart Card Architecture Virtual PCD 0 check2014-10-19 15:30:47.248 current  state: 0x004600122014-10-19 15:30:47.248 previous state: 0x004502222014-10-19 15:30:47.248 card absent, changed2014-10-19 15:30:47.248 [opensc-tool] reader-pcsc.c:457:pcsc_connect: returningwith: -1104 (Card not present)2014-10-19 15:30:47.248 [opensc-tool] card.c:249:sc_connect_card: returning with: -1104 (Card not present)     failed: Card not present2014-10-19 15:30:47.248 [opensc-tool] ctx.c:787:sc_release_context: called2014-10-19 15:30:47.248 [opensc-tool] reader-pcsc.c:745:pcsc_finish: called
>
>
>  
> Date: Sun, 19 Oct 2014 12:30:34 +0200
> From: [hidden email]
> To: [hidden email]; [hidden email]
> Subject: Re: [Opensc-devel] Regarding pcsc reader
>
> I'm not sure what the problem is. What does the virtual card say when
> you start it with -vvvvvvvvv?
>  
> Also, you could dig deeper and try to debug the virtual driver as
> described here in section "Compile, Install and Debug":
> http://www.codeproject.com/Articles/134010/An-UMDF-Driver-for-a-Virtual-Smart-Card-Reader
>  
> On Sunday, October 19 at 01:34PM, nsar nq wrote:
> > Hi!
> > I am trying to connect my virtual smart card with the reader . On viewing the detailed debug  OpenSC reader-pcsc shows card presence, connected then changed to card absent . Kindly provide some help.
> > debug output:
> > C:\Program Files (x86)\OpenSC Project\OpenSC\tools>opensc-tool -l -vvv# Detected readers (pcsc)Nr.  Card  Features  Name2014-10-19 13:26:46.569 [opensc-tool] sc.c:231:sc_detect_card_presence: called2014-10-19 13:26:46.569 [opensc-tool] reader-pcsc.c:370:pcsc_detect_card_presence: called2014-10-19 13:26:46.569 Virtual Smart Card Architecture Virtual PCD 0 check2014-10-19 13:26:46.569 current  state: 0x004402222014-10-19 13:26:46.569 previous state: 0x004400122014-10-19 13:26:46.569 card present, changed2014-10-19 13:26:46.569 [opensc-tool] reader-pcsc.c:375:pcsc_detect_card_presence: returning with: 32014-10-19 13:26:46.569 [opensc-tool] sc.c:236:sc_detect_card_presence: returning with: 30    Yes             Virtual Smart Card Architecture Virtual PCD 02014-10-19 13:26:46.569 [opensc-tool] card.c:125:sc_connect_card: called2014-10-19 13:26:46.569 [opensc-tool] reader-pcsc.c:450:pcsc_connect: called2014-10-19 13:26:46.569 Virtual Smart Card Architecture Virtual PCD 0 check2014-10-19 13:26:46.569 current  state: 0x004500122014-10-19 13:26:46.569 previous state: 0x004402222014-10-19 13:26:46.569 card absent, changed2014-10-19 13:26:46.569 [opensc-tool] reader-pcsc.c:457:pcsc_connect: returningwith: -1104 (Card not present)2014-10-19 13:26:46.585 [opensc-tool] card.c:249:sc_connect_card: returning with: -1104 (Card not present)     failed: Card not present2014-10-19 13:26:46.585 [opensc-tool] ctx.c:787:sc_release_context: called2014-10-19 13:26:46.585 [opensc-tool] reader-pcsc.c:745:pcsc_finish: called    
> > ------------------------------------------------------------------------------
> > Comprehensive Server Monitoring with Site24x7.
> > Monitor 10 servers for $9/Month.
> > Get alerted through email, SMS, voice calls or mobile push notifications.
> > Take corrective actions from your mobile device.
> > http://p.sf.net/sfu/Zoho
> > _______________________________________________
> > Opensc-devel mailing list
> > [hidden email]
> > https://lists.sourceforge.net/lists/listinfo/opensc-devel
>  
>  
> --
> Frank Morgner
>  
> Virtual Smart Card Architecture http://vsmartcard.sourceforge.net
> OpenPACE                        http://openpace.sourceforge.net
> IFD Handler for libnfc Devices  http://sourceforge.net/projects/ifdnfc
>
> ------------------------------------------------------------------------------
> Comprehensive Server Monitoring with Site24x7.
> Monitor 10 servers for $9/Month.
> Get alerted through email, SMS, voice calls or mobile push notifications.
> Take corrective actions from your mobile device.
> http://p.sf.net/sfu/Zoho
> _______________________________________________
> Opensc-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/opensc-devel     

------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
Opensc-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/opensc-devel

attachment0 (985 bytes) Download Attachment