[Pcsclite-muscle] Semantics of TAG_IFD_POLLING_THREAD_WITH_TIMEOUT

William Roberts bill.c.roberts
Wed Mar 4 14:57:37 PST 2015


Additional,

I installed PCSCD from source and never verified existing functionality
when I moved to implementing the polling fn. Here is a snip from opensc.log

tion=1 transaction_end_action=0 reconnect_action=0 enable_pinpad=1
enable_pace=1
0x7f638934b700 11:27:08.095 [piv-tool]
reader-pcsc.c:948:pcsc_detect_readers: called
0x7f638934b700 11:27:08.095 [piv-tool]
reader-pcsc.c:956:pcsc_detect_readers: Probing pcsc readers
0x7f638934b700 11:27:08.095 [piv-tool]
reader-pcsc.c:978:pcsc_detect_readers: Establish pcsc context
0x7f638934b700 11:27:08.098 [piv-tool]
reader-pcsc.c:983:pcsc_detect_readers: SCardEstablishContext failed:
0x8010001d
0x7f638934b700 11:27:08.098 [piv-tool]
reader-pcsc.c:1101:pcsc_detect_readers: returning with: -1101 (No readers
found)
0x7f638934b700 11:27:08.098 [piv-tool] ctx.c:795:sc_release_context: called
0x7f638934b700 11:27:08.098 [piv-tool] reader-pcsc.c:745:pcsc_finish: called

It looks like I just cant get a from-source install working event without
my ifd, but the binary distribution for Ubuntu works fine. I had to run the
PCSCD daemon (built from source)
as root just to get it to run, but looking at the debian version, perhaps I
have some bad perms issue going on, or some file is not found from a config?




On Wed, Mar 4, 2015 at 11:13 AM, William Roberts <bill.c.roberts at gmail.com>
wrote:

> So what's the semantics behind the function pointer returned
> for TAG_IFD_POLLING_THREAD_WITH_TIMEOUT, well call this LongPoll() for our
> discussion.
>
> Essentially I have a working IFD without this capabiltiy and am now trying
> to add this in.
>
> In my implementation the LongPoll() function always sleeps on the timeout,
> and returns either at timeout or immedatley on smart card insert. If a
> smart card is present on return it returns IFD_SUCCESS, else it
> returns IFD_ICC_NOT_PRESENT.
>
> IFDHPresence() returns IFD_ICC_SUCCESS on smart card present
> or IFD_ICC_NOT_PRESENT
>
> However, I see in the logs that my card gets powered down, looks like for
> some power saving thing, however, when I try to run an opensc command like
> pkcs15-tool -c, it says no card inserted.
>
>
> See attached logs.
>
>
> --
> Respectfully,
>
> William C Roberts
>
>


-- 
Respectfully,

William C Roberts
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pcsclite-muscle/attachments/20150304/9e82b982/attachment.html>



More information about the pcsclite-muscle mailing list