<div dir="ltr">Additional,<div><br></div><div>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</div><div><br></div><div><div>tion=1 transaction_end_action=0 reconnect_action=0 enable_pinpad=1 enable_pace=1</div><div>0x7f638934b700 11:27:08.095 [piv-tool] reader-pcsc.c:948:pcsc_detect_readers: called</div><div>0x7f638934b700 11:27:08.095 [piv-tool] reader-pcsc.c:956:pcsc_detect_readers: Probing pcsc readers</div><div>0x7f638934b700 11:27:08.095 [piv-tool] reader-pcsc.c:978:pcsc_detect_readers: Establish pcsc context</div><div>0x7f638934b700 11:27:08.098 [piv-tool] reader-pcsc.c:983:pcsc_detect_readers: SCardEstablishContext failed: 0x8010001d</div><div>0x7f638934b700 11:27:08.098 [piv-tool] reader-pcsc.c:1101:pcsc_detect_readers: returning with: -1101 (No readers found)</div><div>0x7f638934b700 11:27:08.098 [piv-tool] ctx.c:795:sc_release_context: called</div><div>0x7f638934b700 11:27:08.098 [piv-tool] reader-pcsc.c:745:pcsc_finish: called</div></div><div><br></div><div>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)</div><div>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?</div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 4, 2015 at 11:13 AM, William Roberts <span dir="ltr"><<a href="mailto:bill.c.roberts@gmail.com" target="_blank">bill.c.roberts@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">So what's the semantics behind the function pointer returned for TAG_IFD_POLLING_THREAD_WITH_TIMEOUT, well call this LongPoll() for our discussion.<div><br></div><div>Essentially I have a working IFD without this capabiltiy and am now trying to add this in.</div><div><br></div><div>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.</div><div><br></div><div>IFDHPresence() returns IFD_ICC_SUCCESS on smart card present or IFD_ICC_NOT_PRESENT</div><div><br></div><div>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.</div><div><br></div><div><br></div><div>See attached logs.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div><div><br></div>-- <br><div>Respectfully,<br><br>William C Roberts<br><br></div>
</div></font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Respectfully,<br><br>William C Roberts<br><br></div>
</div>