<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[libnfc developers community — Questions and Requests]]></title>
		<link>http://www.libnfc.org/community/</link>
		<atom:link href="http://www.libnfc.org/community/posts_feed/rss/forum/3/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in libnfc developers community.]]></description>
		<lastBuildDate>Fri, 24 May 2013 11:12:21 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[mingw32-make Error 2]]></title>
			<link>http://www.libnfc.org/community/post/4540/#p4540</link>
			<description><![CDATA[<p>Hello. </p><p>I&#039;m trying to compile libnfc 1.7 for windows 7 and I&#039;ve hit a snag after solving a couple of other problems. After configuring everything in cmake 2.8.11 I want to do a mingw32-make which produces the following error. I checked the code and it definitely IS declared. So every error in there is false but it won&#039;t ignore them. What to do?</p><br /><br /><div class="codebox"><pre><code>C:\dev\libnfc-build&gt;cmake-gui .

C:\dev\libnfc-build&gt;cmake-gui .

C:\dev\libnfc-build&gt;mingw32-make
Scanning dependencies of target nfc
[  1%] Building C object libnfc/CMakeFiles/nfc.dir/nfc.c.obj
[  3%] Building C object libnfc/CMakeFiles/nfc.dir/nfc-device.c.obj
[  5%] Building C object libnfc/CMakeFiles/nfc.dir/nfc-emulation.c.obj
[  7%] Building C object libnfc/CMakeFiles/nfc.dir/nfc-internal.c.obj
[  8%] Building C object libnfc/CMakeFiles/nfc.dir/conf.c.obj
[ 10%] Building C object libnfc/CMakeFiles/nfc.dir/iso14443-subr.c.obj
[ 12%] Building C object libnfc/CMakeFiles/nfc.dir/mirror-subr.c.obj
[ 14%] Building C object libnfc/CMakeFiles/nfc.dir/target-subr.c.obj
[ 15%] Building C object libnfc/CMakeFiles/nfc.dir/drivers/acr122_usb.c.obj
C:\dev\libnfc-read-only\libnfc\drivers\acr122_usb.c: In function &#039;acr122_usb_rec
eive&#039;:
C:\dev\libnfc-read-only\libnfc\drivers\acr122_usb.c:587:3: error: &#039;off_t&#039; undecl
ared (first use in this function)
C:\dev\libnfc-read-only\libnfc\drivers\acr122_usb.c:587:3: note: each undeclared
 identifier is reported only once for each function it appears in
C:\dev\libnfc-read-only\libnfc\drivers\acr122_usb.c:587:9: error: expected &#039;;&#039; b
efore &#039;offset&#039;
C:\dev\libnfc-read-only\libnfc\drivers\acr122_usb.c:630:20: error: &#039;offset&#039; unde
clared (first use in this function)
libnfc\CMakeFiles\nfc.dir\build.make:249: recipe for target `libnfc/CMakeFiles/n
fc.dir/drivers/acr122_usb.c.obj&#039; failed
mingw32-make[2]: *** [libnfc/CMakeFiles/nfc.dir/drivers/acr122_usb.c.obj] Error
1
CMakeFiles\Makefile2:79: recipe for target `libnfc/CMakeFiles/nfc.dir/all&#039; faile
d
mingw32-make[1]: *** [libnfc/CMakeFiles/nfc.dir/all] Error 2
makefile:135: recipe for target `all&#039; failed
mingw32-make: *** [all] Error 2

C:\dev\libnfc-build&gt;</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Datastream)]]></author>
			<pubDate>Fri, 24 May 2013 11:12:21 +0000</pubDate>
			<guid>http://www.libnfc.org/community/post/4540/#p4540</guid>
		</item>
		<item>
			<title><![CDATA[Re: Open PCD 2 NFC RFID Reader]]></title>
			<link>http://www.libnfc.org/community/post/4539/#p4539</link>
			<description><![CDATA[<p>i want to purchase an open pcd 2 board,but i dont know how to buy?</p>]]></description>
			<author><![CDATA[null@example.com (ongjohn)]]></author>
			<pubDate>Thu, 23 May 2013 09:20:47 +0000</pubDate>
			<guid>http://www.libnfc.org/community/post/4539/#p4539</guid>
		</item>
		<item>
			<title><![CDATA[Re: P2P of a Windows Phone and a NFC reader]]></title>
			<link>http://www.libnfc.org/community/post/4538/#p4538</link>
			<description><![CDATA[<p>Hi again!!</p><p>I changed some parameters in the TgInitAsTarget and now I´m working with a Netduino instead of an Arduino. Now I have good responses but I have some doubts............I configure the PN532 to work as a passive target in ISO/IEC 14443-4 PICC mode at 106 kbps. When I tap the phone to the shield I have the next data back:</p><p>E0 80 36 00 03 9F 3D 79 06 BE 62 AF 7C DD 00 00 00 32 46 66 6D 01 01 11 02 02 03 80 03 02 00 01 04 01 64 DA D2 6D 01 01</p><p>This data is some kind of LLCP PDU??? Analyzing it first seems to be an AGF PDU with a 36 byte PDU in it.........but the suposed inside PDU doesn´t have sense, so i don´t know what could be............</p>]]></description>
			<author><![CDATA[null@example.com (gomore11)]]></author>
			<pubDate>Wed, 22 May 2013 08:24:20 +0000</pubDate>
			<guid>http://www.libnfc.org/community/post/4538/#p4538</guid>
		</item>
		<item>
			<title><![CDATA[Re: Why ACR122 devices are not recommended with libnfc ?]]></title>
			<link>http://www.libnfc.org/community/post/4536/#p4536</link>
			<description><![CDATA[<p>ACR122 major problems are these ones:</p><p> - Timeout: ACR122 does have troubles with timeouts, used through PC/SC or not (ie. acr122-pcsc or acr122-usb driver).<br />That&#039;s not related to PC/SC at all.</p><p> - Blocking functions: a PC/SC command can not be cancelled, which is a requirement for P2P / act as target.</p><p>So, the fact that ifdnfc (ifdhandler for nfc devices) does not have troubles is absolutely not related in any point to these ones.</p><p>ifdnfc is a tools to use libnfc&#039;s compatible devices as a PC/SC reader... that&#039;s not the same that ACR122 does have its own PC/SC.</p>]]></description>
			<author><![CDATA[null@example.com (rconty)]]></author>
			<pubDate>Tue, 21 May 2013 09:46:40 +0000</pubDate>
			<guid>http://www.libnfc.org/community/post/4536/#p4536</guid>
		</item>
		<item>
			<title><![CDATA[libllcp can't receive long data from phone]]></title>
			<link>http://www.libnfc.org/community/post/4534/#p4534</link>
			<description><![CDATA[<p>Hi,<br />my pn532 can only receive 42 bytes from phone by libllcp. I used libllcp/examples/npp-server/npp-server.c to receive data. How can I get more data from phone?</p>]]></description>
			<author><![CDATA[null@example.com (duanguyuan)]]></author>
			<pubDate>Tue, 21 May 2013 01:49:11 +0000</pubDate>
			<guid>http://www.libnfc.org/community/post/4534/#p4534</guid>
		</item>
		<item>
			<title><![CDATA[Re: Why ACR122 devices are not recommended with libnfc ?]]></title>
			<link>http://www.libnfc.org/community/post/4533/#p4533</link>
			<description><![CDATA[<p>Regarding the PC/SC problem with communicating with the ACR/ACS122, does that imply that any PC/SC based driver will not work with libnfc?</p><p>I am asking because there is also the ifdhandler in beta that supposedly should make it possible to use libnfc compatible readers to the PC/SC stack, and I don&#039;t see the purpose of that if the timeout issue is a problem.</p><p>Regards, </p><p>Johan Henselmans</p>]]></description>
			<author><![CDATA[null@example.com (johanhenselmans)]]></author>
			<pubDate>Sat, 18 May 2013 06:03:13 +0000</pubDate>
			<guid>http://www.libnfc.org/community/post/4533/#p4533</guid>
		</item>
		<item>
			<title><![CDATA[scl3711 anyone can help me]]></title>
			<link>http://www.libnfc.org/community/post/4530/#p4530</link>
			<description><![CDATA[<p>hello I do not get my reader scl3711 run in ubuntu, anyone can help me.<br />The project consists of an access control system with nfc reader, someone can tell me what language to use or devo do. I researched a lot but not as and where deveria start.<br />Thank you.</p>]]></description>
			<author><![CDATA[null@example.com (alvarocordero91)]]></author>
			<pubDate>Thu, 16 May 2013 10:10:15 +0000</pubDate>
			<guid>http://www.libnfc.org/community/post/4530/#p4530</guid>
		</item>
		<item>
			<title><![CDATA[Re: pam-nfc segfaults (acr122U)]]></title>
			<link>http://www.libnfc.org/community/post/4527/#p4527</link>
			<description><![CDATA[<p>Hi</p><p>The new version worked (and I fixed the sudo nfc-list issue by copying the correct udev file), but for some reason the system doesn&#039;t automatically log me in until I click on the username I wish to log in with. This was on Ubuntu 12.04 with gdm, with &#039;auth sufficient pam_nfc.so&#039; in /etc/pam.d/login and /etc/pam.d/gdm respectively.</p>]]></description>
			<author><![CDATA[null@example.com (dejanfc)]]></author>
			<pubDate>Wed, 15 May 2013 07:40:52 +0000</pubDate>
			<guid>http://www.libnfc.org/community/post/4527/#p4527</guid>
		</item>
		<item>
			<title><![CDATA[How to receive the data by SNEP at ACR122.]]></title>
			<link>http://www.libnfc.org/community/post/4526/#p4526</link>
			<description><![CDATA[<p>I develop using Galaxy Nexus and ACR122.<br />I can&#039;t receive the data that the android terminal send in SNEP at ACR122.<br />Is there anyone knows how to do it?<br />Please show me.</p><p>Thank you,</p>]]></description>
			<author><![CDATA[null@example.com (Kota Iijima)]]></author>
			<pubDate>Mon, 13 May 2013 20:35:58 +0000</pubDate>
			<guid>http://www.libnfc.org/community/post/4526/#p4526</guid>
		</item>
		<item>
			<title><![CDATA[Touch to Beam]]></title>
			<link>http://www.libnfc.org/community/post/4525/#p4525</link>
			<description><![CDATA[<p>The android terminal display the picture of &quot;Touch to Beam&quot;,<br />when I send the data by SNEP at android terminal.<br />Can I prevent to display that picture?<br />Please show me how to do it.</p><p>Thank you,</p>]]></description>
			<author><![CDATA[null@example.com (Kota Iijima)]]></author>
			<pubDate>Mon, 13 May 2013 20:30:39 +0000</pubDate>
			<guid>http://www.libnfc.org/community/post/4525/#p4525</guid>
		</item>
		<item>
			<title><![CDATA[activate the android terminal as card emulation mode]]></title>
			<link>http://www.libnfc.org/community/post/4524/#p4524</link>
			<description><![CDATA[<p>I develop using the android terminal.<br />Is there somthing method to activate the android terminal as card emulation mode?<br />I don&#039;t mind if there is no secure element.<br />Please show me how to activate it.</p><p>Thank you,</p>]]></description>
			<author><![CDATA[null@example.com (Kota Iijima)]]></author>
			<pubDate>Mon, 13 May 2013 20:24:32 +0000</pubDate>
			<guid>http://www.libnfc.org/community/post/4524/#p4524</guid>
		</item>
		<item>
			<title><![CDATA[The connection of Android4.1 and ACR122]]></title>
			<link>http://www.libnfc.org/community/post/4523/#p4523</link>
			<description><![CDATA[<p>I develop using Galaxy Nexus and ACR122.<br />The version of Android is 4.1.<br />I have to connetct in LLCP, when I connect the android terminal and ACR122 in DEP.<br />I don&#039;t want to communicate with P2P mode.<br />Is there something method to communicate with the reader/writer mode in DEP?</p><p>My process is following.<br />-I connect ACR122 to the Windows PC by USB.<br />-I bump the android terminal to the ACR122.<br />-I execute TgInitAsTarget command of PN533 from the PC to ACR122.<br /> I set DEP connection(0x40) in SEL_RES.<br />-Gi in ATR_REQ means LLCP connection in response of TgInitAsTarget.</p><p>Thank you,</p>]]></description>
			<author><![CDATA[null@example.com (Kota Iijima)]]></author>
			<pubDate>Mon, 13 May 2013 20:18:49 +0000</pubDate>
			<guid>http://www.libnfc.org/community/post/4523/#p4523</guid>
		</item>
		<item>
			<title><![CDATA[Re: pam-nfc segfaults (acr122U)]]></title>
			<link>http://www.libnfc.org/community/post/4521/#p4521</link>
			<description><![CDATA[<p>Hello,</p><p>pam_nfc was not up to date.</p><p>I tried to quick (and maybe dirty) update the code without testing it (I&#039;m quite busy right now) but you could test it yourself and give some feedback here :</p><p>Use pam_nfc from svn,<br /></p><div class="codebox"><pre><code>svn co http://nfc-tools.googlecode.com/svn/trunk/pam_nfc
cd pam_nfc
autoreconf -vis
./configure
make clean all</code></pre></div><p>Hope it helps.</p><p>Bye</p>]]></description>
			<author><![CDATA[null@example.com (rconty)]]></author>
			<pubDate>Mon, 13 May 2013 08:00:56 +0000</pubDate>
			<guid>http://www.libnfc.org/community/post/4521/#p4521</guid>
		</item>
		<item>
			<title><![CDATA[pam-nfc segfaults (acr122U)]]></title>
			<link>http://www.libnfc.org/community/post/4514/#p4514</link>
			<description><![CDATA[<p>Hi</p><p>I&#039;m trying to get ACR122U working on Ubuntu 12.04. I&#039;ve installed libnfc-1.7.0-rc7 (also tested with libnfc-1.7.0-rc6 ) and pam_nfc-0.1.4 . Both installs go through fine and my nfc-list shows the device and tag:</p><div class="codebox"><pre><code>$ sudo nfc-list
nfc-list uses libnfc 1.7.0-rc6
NFC device: ACS / ACR122U PICC Interface opened
1 ISO14443A passive target(s) found:
ISO/IEC 14443A (106 kbps) target:
    ATQA (SENS_RES): 00  04  
       UID (NFCID1): a6  14  34  fc  
      SAK (SEL_RES): 08  </code></pre></div><p>I should note here that running the command without sudo returns this:</p><div class="codebox"><pre><code>nfc-list uses libnfc 1.7.0-rc6
error    libnfc.driver.acr122_usb    Unable to claim USB interface (Operation not permitted)
nfc-list: ERROR: Unable to open NFC device: acr122_usb:003:003</code></pre></div><p>I&#039;ve tried adding the nfc to blacklist in /etc/modprobe.d/, unfortunately without success.</p><p>If I try adding user to the tag </p><div class="codebox"><pre><code>sudo pam-nfc-add dejan</code></pre></div><p>I get a segfault:</p><div class="codebox"><pre><code>kernel: [ 2586.693391] pam-nfc-add[2640]: segfault at 0 ip 006e2848 sp bfbf6fa0 error 6 in libnfc.so.4.0.0[6df000+1b000]</code></pre></div><p>Any suggestions? Is this procedure even correct for the acr122u? Thanks in advance for answers.</p><p>Best regards,</p><p>Dejan</p>]]></description>
			<author><![CDATA[null@example.com (dejanfc)]]></author>
			<pubDate>Thu, 09 May 2013 13:06:01 +0000</pubDate>
			<guid>http://www.libnfc.org/community/post/4514/#p4514</guid>
		</item>
		<item>
			<title><![CDATA[Sending APDU's]]></title>
			<link>http://www.libnfc.org/community/post/4512/#p4512</link>
			<description><![CDATA[<p>Hi,</p><p>I&#039;m trying to make a fuzzer for NFC (and libnfc in particular) using an Android device (with Cyanogenmod to be able to emulate tags). As far as I know at the moment, Android is only capable of using NFC using APDU&#039;s.</p><p>The PCD I&#039;m using is a tikitag with firmware ACR122U1.</p><p>I&#039;ve managed to communicate between the PCD and the &#039;tag&#039; (thus, Android device) in Java using the smartcardio library on my PC (PCD-side). What I&#039;m trying now is doing the same but with libnfc in C or C++. The problem is I don&#039;t know how to send APDU&#039;s (or something similar so the NFCAdapter in Android will pick up the frame) with libnfc.</p><p>The anti-collision in C works just fine, but when trying to send an InDataExchange, it stops and waits forever for a reply.<br /></p><div class="codebox"><pre><code>REQA          | 26
ATQA          | 04  00
SEL (all)     | 93  20
UID, BCC      | 08  b8  c3  15  66
SEL (tag)     | 93  70  08  b8  c3  15  66  1f  0f
SAK           | 60  f8  32
RATS          | e0  50
ATS           | 05  78  33  88  00  59  b2</code></pre></div><p>A normal APDU for PCD to tag would be something like this:<br /></p><div class="codebox"><pre><code>0xFF, 0x00, 0x00, 0x00, 0x04, 0xD4, 0x40, 0x01, 0xBA</code></pre></div><p>In this example, the first 4 bytes are a pseudo-APDU to make sure the APDU is sent directly to the tag. The next byte is the length of the APDU itself. The 0xD4 0x40 0x01 is the InDataExchange command, telling all following bytes are data to be exchanged with the tag.</p><p>Any help is appreciated.</p>]]></description>
			<author><![CDATA[null@example.com (Jens)]]></author>
			<pubDate>Mon, 06 May 2013 12:59:56 +0000</pubDate>
			<guid>http://www.libnfc.org/community/post/4512/#p4512</guid>
		</item>
	</channel>
</rss>
