Re: Using pcsclite with multiple cards through one reader

Martin Paljak <[email protected]> Wed, 16 Aug 2017 06:36:20 +0000
Newsgroups gmane.comp.lib.muscle
Message-ID <CACsm3DUQd7xW7WOypkXCGXzBYqURQeLGLp2isGgWS758YKw41Q@mail.gmail.com>
--===============0971521738330995304==
Content-Type: multipart/alternative; boundary="94eb2c059d80cb465f0556d91d42"

--94eb2c059d80cb465f0556d91d42
Content-Type: text/plain; charset="UTF-8"

I assume this is some kind of ACS reader, and those NFC readers usually
support a specific API for low level RF things, via SCardControl or
SCardTransmit, eg.
https://www.acs.com.hk/en/products/342/acr1252u-usb-nfc-reader-iii-nfc-forum-certified-reader/#tech-specs

PC/SC gives you a way to talk to a card (SCardTransmit) in a high-level
APDU oriented way and to talk to (vendor specific, proprietary, such as
libacsccid) readers with SCardControl. The rest is for you to figure out :)

Best,
Martin


On Tue, 15 Aug 2017 at 22:19 Greg Wilson-Lindberg <[email protected]>
wrote:

> We have two problems/not understandings:
>
>
>
>   1. reading more than one card at the same time
>
>   2. issuing a PWD_AUTH command to a connected card
>
>
>
> It is my understanding that to read a second card that is within range of
> a cardreader it is necessary to issue a HLTA command to the card. The HLTA
> is a low level card command and I have not been able to find out how to
> pass the card command through pcsc to the card.
>
>
>
> The PWD_AUTH command is also a low level card command and falls into the
> same issue of not knowing how to pass commands through to the card.
>
>
>
> We are running on a Raspberry Pi 3 with an ACS AVM1252U-Z2 reader and
> NTAG213 tags:
>
>     pcsc-lite version 1.8.13.
>
>     Copyright (C) 1999-2002 by David Corcoran <[email protected]>.
>
>     Copyright (C) 2001-2011 by Ludovic Rousseau <[email protected]
> >.
>
>     Copyright (C) 2003-2004 by Damien Sauveron <[email protected]>.
>
>     Report bugs to <[email protected]>.
>
>     Enabled features: Linux arm-unknown-linux-gnueabihf serial usb libudev
> usbdropdir=/usr/lib/pcsc/drivers ipcdir=/var/run/pcscd
> configdir=/etc/reader.conf.d
>
>
>
> and libacsccid v1.0.8-1
>
>
>
> Regards,
>
>
>
> Greg Wilson-Lindberg
>
> Sakura Finetek
>
> 310-783-5075
> _______________________________________________
> Pcsclite-muscle mailing list
> [email protected]
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle

-- 

typos expected due to mobile device

--94eb2c059d80cb465f0556d91d42
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">I assume this is some kind of ACS reader, and those NFC re=
aders usually support a specific API for low level RF things, via SCardCont=
rol or SCardTransmit, eg. <a href=3D"https://www.acs.com.hk/en/products/342=
/acr1252u-usb-nfc-reader-iii-nfc-forum-certified-reader/#tech-specs">https:=
//www.acs.com.hk/en/products/342/acr1252u-usb-nfc-reader-iii-nfc-forum-cert=
ified-reader/#tech-specs</a><br><br>PC/SC gives you a way to talk to a card=
 (SCardTransmit) in a high-level APDU oriented way and to talk to (vendor s=
pecific, proprietary, such as libacsccid) readers with SCardControl. The re=
st is for you to figure out :)=C2=A0<div><br></div><div>Best,</div><div>Mar=
tin<br><br></div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr">On T=
ue, 15 Aug 2017 at 22:19 Greg Wilson-Lindberg &lt;<a href=3D"mailto:GWilson=
@sakuraus.com">[email protected]</a>&gt; wrote:<br></div><blockquote cla=
ss=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;pa=
dding-left:1ex">





<div lang=3D"EN-US" link=3D"#0563C1" vlink=3D"#954F72">
<div class=3D"m_8957870977145896065WordSection1">
<p class=3D"MsoNormal">We have two problems/not understandings:<u></u><u></=
u></p>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
<p class=3D"MsoNormal">=C2=A0 1. reading more than one card at the same tim=
e<u></u><u></u></p>
<p class=3D"MsoNormal">=C2=A0 2. issuing a PWD_AUTH command to a connected =
card<u></u><u></u></p>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
<p class=3D"MsoNormal">It is my understanding that to read a second card th=
at is within range of a cardreader it is necessary to issue a HLTA command =
to the card. The HLTA is a low level card command and I have not been able =
to find out how to pass the card command
 through pcsc to the card.<u></u><u></u></p>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
<p class=3D"MsoNormal">The PWD_AUTH command is also a low level card comman=
d and falls into the same issue of not knowing how to pass commands through=
 to the card.<u></u><u></u></p>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
<p class=3D"MsoNormal">We are running on a Raspberry Pi 3 with an ACS AVM12=
52U-Z2 reader and NTAG213 tags:<u></u><u></u></p>
<p class=3D"MsoNormal">=C2=A0=C2=A0=C2=A0 pcsc-lite version 1.8.13.<u></u><=
u></u></p>
<p class=3D"MsoNormal">=C2=A0=C2=A0=C2=A0 Copyright (C) 1999-2002 by David =
Corcoran &lt;<a href=3D"mailto:[email protected]" target=3D"_blank">c=
[email protected]</a>&gt;.<u></u><u></u></p>
<p class=3D"MsoNormal">=C2=A0=C2=A0=C2=A0 Copyright (C) 2001-2011 by Ludovi=
c Rousseau &lt;<a href=3D"mailto:[email protected]" target=3D"_blank=
">[email protected]</a>&gt;.<u></u><u></u></p>
<p class=3D"MsoNormal">=C2=A0=C2=A0=C2=A0 Copyright (C) 2003-2004 by Damien=
 Sauveron &lt;<a href=3D"mailto:[email protected]" target=3D"_blank">sauver=
[email protected]</a>&gt;.<u></u><u></u></p>
<p class=3D"MsoNormal">=C2=A0=C2=A0=C2=A0 Report bugs to &lt;<a href=3D"mai=
lto:[email protected]" target=3D"_blank">[email protected].=
com</a>&gt;.<u></u><u></u></p>
<p class=3D"MsoNormal">=C2=A0=C2=A0=C2=A0 Enabled features: Linux arm-unkno=
wn-linux-gnueabihf serial usb libudev usbdropdir=3D/usr/lib/pcsc/drivers ip=
cdir=3D/var/run/pcscd configdir=3D/etc/reader.conf.d<u></u><u></u></p>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
<p class=3D"MsoNormal">and libacsccid v1.0.8-1<u></u><u></u></p>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
<p class=3D"MsoNormal">Regards,<u></u><u></u></p>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Ar=
ial&quot;,sans-serif">Greg Wilson-Lindberg</span><span style=3D"font-size:1=
2.0pt;font-family:&quot;Times New Roman&quot;,serif"><u></u><u></u></span><=
/p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Ar=
ial&quot;,sans-serif">Sakura Finetek</span><span style=3D"font-size:12.0pt;=
font-family:&quot;Times New Roman&quot;,serif"><u></u><u></u></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Ar=
ial&quot;,sans-serif">310-783-5075</span><u></u><u></u></p>
</div>
</div>

_______________________________________________<br>
Pcsclite-muscle mailing list<br>
<a href=3D"mailto:[email protected]" target=3D"_blank=
">[email protected]</a><br>
<a href=3D"http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite=
-muscle" rel=3D"noreferrer" target=3D"_blank">http://lists.alioth.debian.or=
g/cgi-bin/mailman/listinfo/pcsclite-muscle</a></blockquote></div><div dir=
=3D"ltr">-- <br></div><div class=3D"gmail_signature" data-smartmail=3D"gmai=
l_signature"><div dir=3D"ltr"><p dir=3D"ltr">typos expected due to mobile d=
evice</p>
</div></div>

--94eb2c059d80cb465f0556d91d42--


--===============0971521738330995304==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Pcsclite-muscle mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle
--===============0971521738330995304==--