[Pcsclite-muscle] Driver development? (for rasp pi NXP PN512 spidev module)

Frank Morgner morgner at informatik.hu-berlin.de
Thu Nov 20 18:30:22 UTC 2014


Hi!

pcscd loads the driver and communicates to its C-like interface, see
http://pcsclite.alioth.debian.org/api/group__IFDHandler.html

So there is no way around a C-like interface. Although it's possible to
create a shared object file from python code (see
http://lmgtfy.com/?q=create+so+from+python ), I'm not sure if it's the
most practical path to go.

What you could also do is write a minimal IFDHandler and simply delegate
all calls to your python code. I did that using a very simple socket
interface, see
http://frankmorgner.github.io/vsmartcard/virtualsmartcard/api.html#creating-a-virtual-smart-card
You could also skip the IFDHandler part, reuse my driver and jump
directly to the socket communication...

Greets, Frank.

PS. Jan, you should also read encrypted mails ;-)


On Thursday, November 20 at 03:49PM, Jan Vales wrote:
> Hi,
> 
> I have seen in the list archives that there were some mails about
> writing your own driver.
> Is there any progress on getting an example driver out?
> 
> Basically I want to make pcscd work with my raspberry pi + NXP
> EXPLORE-NFC with a PN512 spidev-NFC module.
> 
> The nxp folks released a lib, but it seems a litte overcomplicated and
> is written in c.
> 
> I already have an omnikey reader and do not want to reimplement all my
> python code in c and maintain 2 versions of my stuff just to have 2 nfc
> readers ...
> 
> But I hope to be able to read the spidev access magic from the nxp-lib.
> 
> lg
> Jan Vales
> --
> I only read plaintext emails.
> 



> _______________________________________________
> Pcsclite-muscle mailing list
> Pcsclite-muscle at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle

-- 
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 966 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pcsclite-muscle/attachments/20141120/421c604d/attachment.sig>


More information about the Pcsclite-muscle mailing list