<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2014-07-17 15:52 GMT+02:00 Tom Arnautovic <span dir="ltr"><<a href="mailto:tom.arnautovic@neardesk.com" target="_blank">tom.arnautovic@neardesk.com</a>></span>:<br>



<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div link="#0563C1" vlink="#954F72" lang="EN-GB"><div><p class="MsoNormal">Hi All,</p></div></div></blockquote>


<div><br>
</div><div>Hello,<br>  <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div link="#0563C1" vlink="#954F72" lang="EN-GB"><div><p class="MsoNormal">


I’m not sure if this is the right place to be sending this but anyhow.  <u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Situation is we have a Raspberry PI (with PiFace) connected to an ACR122U-A9 card reader.  We have a C# application running (via mono) on the Pi which provides a card watcher service.   When a card is checked as valid on the network, the magnet on the door is released.<u></u><u></u></p>



<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">The system works fine until it doesn’t and stops working.  I’ve searched everywhere  and can’t find a smoking gun anywhere in the logs and I’ve tried a number of workarounds to get it working consistently including updating Kernal via rpi-update to 3.12.22+, restarting mono/pcscd every 2hours via cron (not a fix but to see if this helps).<u></u><u></u></p>



<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">In the /var/log/messages log there are a lot of “door0007 pcscd: winscard.c:887:SCardDisconnect() Error resetting card” messages.  I’m wondering if the cards are not disconnected, if these “handles” build up to a threshold on pcscd and then it crashes.  Is this likely to be a problem in the code or a problem with pcsc or mono but I really don’t know what I’m talking about. </p>



</div></div></blockquote><div><br></div><div>This error was not present in the private email you sent me.<br>You only mentioned the error: "door0007 pcscd: readerfactory.c:1062:RFAddRead<div>erHandle() Too many handles opened, exceeding configured max (200)."</div>


This error indicates bug in your program or in the C# wraper.<br><br></div><div>For the new error you may want to read "USB issues with a Raspberry Pi" <a href="http://ludovicrousseau.blogspot.fr/2014/04/usb-issues-with-raspberry-pi.html" target="_blank">http://ludovicrousseau.blogspot.fr/2014/04/usb-issues-with-raspberry-pi.html</a><br>


</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div link="#0563C1" vlink="#954F72" lang="EN-GB"><div><p class="MsoNormal"><u></u><u></u></p>


<p class="MsoNormal">Anyway, any advice on how to go about debugging this issue would be much appreciated?  I do not have access to the code so I’m just trying to ascertain at which layer the issue is occurring.  If it is an issue with the C# code I can send it back to the developers.  </p>


</div></div></blockquote><div><br>It is often a good idea to send all the needed data for a debug. See <a href="http://pcsclite.alioth.debian.org/pcsclite.html#support" target="_blank">http://pcsclite.alioth.debian.org/pcsclite.html#support</a><br>

</div></div><br></div><div class="gmail_extra">But if you do not have access to the source code of your application it will be difficult to debug and fix.<br><br></div><div class="gmail_extra">Bye<br></div><div class="gmail_extra">

<br></div><div class="gmail_extra">

-- <br> Dr. Ludovic Rousseau
</div></div>