<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[libnfc developers community — Questions and Requests]]></title>
	<link rel="self" href="http://www.libnfc.org/community/feed/atom/forum/3/" />
	<updated>2013-05-24T11:12:21Z</updated>
	<generator>PunBB</generator>
	<id>http://www.libnfc.org/community/</id>
		<entry>
			<title type="html"><![CDATA[mingw32-make Error 2]]></title>
			<link rel="alternate" href="http://www.libnfc.org/community/topic/990/mingw32make-error-2/new/posts/" />
			<summary type="html"><![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>]]></summary>
			<author>
				<name><![CDATA[Datastream]]></name>
				<uri>http://www.libnfc.org/community/user/4348/</uri>
			</author>
			<updated>2013-05-24T11:12:21Z</updated>
			<id>http://www.libnfc.org/community/topic/990/mingw32make-error-2/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[libllcp can't receive long data from phone]]></title>
			<link rel="alternate" href="http://www.libnfc.org/community/topic/988/libllcp-cant-receive-long-data-from-phone/new/posts/" />
			<summary type="html"><![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>]]></summary>
			<author>
				<name><![CDATA[duanguyuan]]></name>
				<uri>http://www.libnfc.org/community/user/4141/</uri>
			</author>
			<updated>2013-05-21T01:49:11Z</updated>
			<id>http://www.libnfc.org/community/topic/988/libllcp-cant-receive-long-data-from-phone/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[scl3711 anyone can help me]]></title>
			<link rel="alternate" href="http://www.libnfc.org/community/topic/987/scl3711-anyone-can-help-me/new/posts/" />
			<summary type="html"><![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>]]></summary>
			<author>
				<name><![CDATA[alvarocordero91]]></name>
				<uri>http://www.libnfc.org/community/user/4286/</uri>
			</author>
			<updated>2013-05-16T10:10:15Z</updated>
			<id>http://www.libnfc.org/community/topic/987/scl3711-anyone-can-help-me/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[How to receive the data by SNEP at ACR122.]]></title>
			<link rel="alternate" href="http://www.libnfc.org/community/topic/985/how-to-receive-the-data-by-snep-at-acr122/new/posts/" />
			<summary type="html"><![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>]]></summary>
			<author>
				<name><![CDATA[Kota Iijima]]></name>
				<uri>http://www.libnfc.org/community/user/4327/</uri>
			</author>
			<updated>2013-05-13T20:35:58Z</updated>
			<id>http://www.libnfc.org/community/topic/985/how-to-receive-the-data-by-snep-at-acr122/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Touch to Beam]]></title>
			<link rel="alternate" href="http://www.libnfc.org/community/topic/984/touch-to-beam/new/posts/" />
			<summary type="html"><![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>]]></summary>
			<author>
				<name><![CDATA[Kota Iijima]]></name>
				<uri>http://www.libnfc.org/community/user/4327/</uri>
			</author>
			<updated>2013-05-13T20:30:39Z</updated>
			<id>http://www.libnfc.org/community/topic/984/touch-to-beam/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[activate the android terminal as card emulation mode]]></title>
			<link rel="alternate" href="http://www.libnfc.org/community/topic/983/activate-the-android-terminal-as-card-emulation-mode/new/posts/" />
			<summary type="html"><![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>]]></summary>
			<author>
				<name><![CDATA[Kota Iijima]]></name>
				<uri>http://www.libnfc.org/community/user/4327/</uri>
			</author>
			<updated>2013-05-13T20:24:32Z</updated>
			<id>http://www.libnfc.org/community/topic/983/activate-the-android-terminal-as-card-emulation-mode/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[The connection of Android4.1 and ACR122]]></title>
			<link rel="alternate" href="http://www.libnfc.org/community/topic/982/the-connection-of-android41-and-acr122/new/posts/" />
			<summary type="html"><![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>]]></summary>
			<author>
				<name><![CDATA[Kota Iijima]]></name>
				<uri>http://www.libnfc.org/community/user/4327/</uri>
			</author>
			<updated>2013-05-13T20:18:49Z</updated>
			<id>http://www.libnfc.org/community/topic/982/the-connection-of-android41-and-acr122/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[pam-nfc segfaults (acr122U)]]></title>
			<link rel="alternate" href="http://www.libnfc.org/community/topic/979/pamnfc-segfaults-acr122u/new/posts/" />
			<summary type="html"><![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>]]></summary>
			<author>
				<name><![CDATA[dejanfc]]></name>
				<uri>http://www.libnfc.org/community/user/4320/</uri>
			</author>
			<updated>2013-05-09T13:06:01Z</updated>
			<id>http://www.libnfc.org/community/topic/979/pamnfc-segfaults-acr122u/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Sending APDU's]]></title>
			<link rel="alternate" href="http://www.libnfc.org/community/topic/977/sending-apdus/new/posts/" />
			<summary type="html"><![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>]]></summary>
			<author>
				<name><![CDATA[Jens]]></name>
				<uri>http://www.libnfc.org/community/user/4153/</uri>
			</author>
			<updated>2013-05-06T12:59:56Z</updated>
			<id>http://www.libnfc.org/community/topic/977/sending-apdus/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[libllcp can't be used on Windows?]]></title>
			<link rel="alternate" href="http://www.libnfc.org/community/topic/971/libllcp-cant-be-used-on-windows/new/posts/" />
			<summary type="html"><![CDATA[<p>Libnfc can be installed on Windows, how about libllcp? <br />Thanks.</p>]]></summary>
			<author>
				<name><![CDATA[duanguyuan]]></name>
				<uri>http://www.libnfc.org/community/user/4141/</uri>
			</author>
			<updated>2013-05-02T03:39:24Z</updated>
			<id>http://www.libnfc.org/community/topic/971/libllcp-cant-be-used-on-windows/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Anti-collision doesn't work properly?]]></title>
			<link rel="alternate" href="http://www.libnfc.org/community/topic/970/anticollision-doesnt-work-properly/new/posts/" />
			<summary type="html"><![CDATA[<p>I have 2 tags,&nbsp; nfc-list showed correctly when 1 tag was in field:</p><p>C:\libnfc-1.7.0-rc7\build\utils&gt;nfc-list<br />nfc-list uses libnfc 1.7.0<br />NFC device: ACS ACR122 0 / ACR122U210 opened<br />1 ISO14443A passive target(s) found:<br />ISO/IEC 14443A (106 kbps) target:<br />&nbsp; &nbsp; ATQA (SENS_RES): 00&nbsp; 44<br />&nbsp; &nbsp; &nbsp; &nbsp;UID (NFCID1): 04&nbsp; 98&nbsp; 9b&nbsp; 8a&nbsp; 6b&nbsp; 2b&nbsp; 80<br />&nbsp; &nbsp; &nbsp; SAK (SEL_RES): 00</p><br /><p>But when I placed the other tag in field, the ATQA change:</p><p>C:\libnfc-1.7.0-rc7\build\utils&gt;nfc-list<br />nfc-list uses libnfc 1.7.0<br />NFC device: ACS ACR122 0 / ACR122U210 opened<br />1 ISO14443A passive target(s) found:<br />ISO/IEC 14443A (106 kbps) target:<br />&nbsp; &nbsp; ATQA (SENS_RES): 00&nbsp; 00<br />&nbsp; &nbsp; &nbsp; &nbsp;UID (NFCID1): 04&nbsp; 98&nbsp; 9b&nbsp; 8a&nbsp; 6b&nbsp; 2b&nbsp; 80<br />&nbsp; &nbsp; &nbsp; SAK (SEL_RES): 00</p><p>1 Jewel passive target(s) found:<br />Innovision Jewel (106 kbps) target:<br />&nbsp; &nbsp; ATQA (SENS_RES): 0c&nbsp; 00<br />&nbsp; &nbsp; &nbsp; 4-LSB JEWELID: 5c&nbsp; 4e&nbsp; a1&nbsp; 01</p><p>Is there anyone know what would cause this result? Thanks.<br />My OS is Windows XP sp3 32bit.</p>]]></summary>
			<author>
				<name><![CDATA[lokher]]></name>
				<uri>http://www.libnfc.org/community/user/4297/</uri>
			</author>
			<updated>2013-05-02T03:09:35Z</updated>
			<id>http://www.libnfc.org/community/topic/970/anticollision-doesnt-work-properly/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Error compiling libnfc: linux/mod_devicetable.h: No such file]]></title>
			<link rel="alternate" href="http://www.libnfc.org/community/topic/969/error-compiling-libnfc-linuxmoddevicetableh-no-such-file/new/posts/" />
			<summary type="html"><![CDATA[<p>Hello,</p><p>I&#039;m trying to compile libnfc-1.7.0-rc7 under debian and I got the following error:</p><div class="codebox"><pre><code>$ make
make  all-recursive
make[1]: Entering directory `/home/user/src/libnfc-1.7.0-rc7&#039;
Making all in libnfc
make[2]: Entering directory `/home/user/src/libnfc-1.7.0-rc7/libnfc&#039;
Making all in chips
make[3]: Entering directory `/home/user/src/libnfc-1.7.0-rc7/libnfc/chips&#039;
  CC     libnfcchips_la-pn53x.lo
  CCLD   libnfcchips.la
make[3]: Leaving directory `/home/user/src/libnfc-1.7.0-rc7/libnfc/chips&#039;
Making all in buses
make[3]: Entering directory `/home/user/src/libnfc-1.7.0-rc7/libnfc/buses&#039;
  CC     libnfcbuses_la-spi.lo
  CC     libnfcbuses_la-uart.lo
  CC     libnfcbuses_la-usbbus.lo
In file included from usbbus.h:37:0,
                 from usbbus.c:36:
/usr/local/include/usb.h:4:35: fatal error: linux/mod_devicetable.h: No such file or directory
compilation terminated.
make[3]: *** [libnfcbuses_la-usbbus.lo] Error 1
make[3]: Leaving directory `/home/user/src/libnfc-1.7.0-rc7/libnfc/buses&#039;
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/user/src/libnfc-1.7.0-rc7/libnfc&#039;
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/user/src/libnfc-1.7.0-rc7&#039;
make: *** [all] Error 2</code></pre></div><p>File mod_devicetable.h exists only in </p><div class="codebox"><pre><code>/usr/src/linux-headers-3.2.0-4-common/include/linux/</code></pre></div><p>When I tried to include this directory using </p><div class="codebox"><pre><code>./configure CPPFLAGS=-I/usr/src/linux-headers-3.2.0-4-common/include/</code></pre></div><p> I got the following:<br /></p><div class="codebox"><pre><code>$ make
make  all-recursive
make[1]: Entering directory `/home/user/src/libnfc-1.7.0-rc7&#039;
Making all in libnfc
make[2]: Entering directory `/home/user/src/libnfc-1.7.0-rc7/libnfc&#039;
Making all in chips
make[3]: Entering directory `/home/user/src/libnfc-1.7.0-rc7/libnfc/chips&#039;
  CC     libnfcchips_la-pn53x.lo
  CCLD   libnfcchips.la
make[3]: Leaving directory `/home/user/src/libnfc-1.7.0-rc7/libnfc/chips&#039;
Making all in buses
make[3]: Entering directory `/home/user/src/libnfc-1.7.0-rc7/libnfc/buses&#039;
  CC     libnfcbuses_la-spi.lo
In file included from /usr/src/linux-headers-3.2.0-4-common/include/linux/spi/spidev.h:25:0,
                 from spi.h:42,
                 from spi.c:37:
/usr/src/linux-headers-3.2.0-4-common/include/linux/types.h:13:2: warning: #warning is a GCC extension [enabled by default]
/usr/src/linux-headers-3.2.0-4-common/include/linux/types.h:13:2: warning: #warning &quot;Attempt to use kernel headers from user space, see kernelnewbies KernelHeaders&quot; [-Wcpp]
In file included from /usr/src/linux-headers-3.2.0-4-common/include/linux/stddef.h:4:0,
                 from /usr/src/linux-headers-3.2.0-4-common/include/linux/posix_types.h:4,
                 from /usr/src/linux-headers-3.2.0-4-common/include/linux/types.h:17,
                 from /usr/src/linux-headers-3.2.0-4-common/include/linux/spi/spidev.h:25,
                 from spi.h:42,
                 from spi.c:37:
/usr/src/linux-headers-3.2.0-4-common/include/linux/compiler.h:35:32: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
  CC     libnfcbuses_la-uart.lo
  CC     libnfcbuses_la-usbbus.lo
In file included from /usr/local/include/usb.h:4:0,
                 from usbbus.h:37,
                 from usbbus.c:36:
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:18:2: error: unknown type name &#039;__u32&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:19:2: error: unknown type name &#039;__u32&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:20:2: error: unknown type name &#039;__u32&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:21:2: error: unknown type name &#039;kernel_ulong_t&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:31:2: error: unknown type name &#039;__u32&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:32:2: error: unknown type name &#039;__u32&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:33:2: error: unknown type name &#039;__u32&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:34:2: error: unknown type name &#039;__u32&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:35:2: error: unknown type name &#039;__u32&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:36:2: error: unknown type name &#039;kernel_ulong_t&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:37:33: error: &#039;kernel_ulong_t&#039; undeclared here (not in a function)
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:37:3: error: requested alignment is not an integer constant
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:100:2: error: unknown type name &#039;__u16&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:103:2: error: unknown type name &#039;__u16&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:104:2: error: unknown type name &#039;__u16&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:105:2: error: unknown type name &#039;__u16&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:106:2: error: unknown type name &#039;__u16&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:109:2: error: unknown type name &#039;__u8&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:110:2: error: unknown type name &#039;__u8&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:111:2: error: unknown type name &#039;__u8&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:114:2: error: unknown type name &#039;__u8&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:115:2: error: unknown type name &#039;__u8&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:116:2: error: unknown type name &#039;__u8&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:119:2: error: expected specifier-qualifier-list before &#039;kernel_ulong_t&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:137:2: error: unknown type name &#039;__u16&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:138:2: error: unknown type name &#039;__u16&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:139:2: error: unknown type name &#039;__u32&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:140:2: error: unknown type name &#039;__u32&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:141:2: error: expected specifier-qualifier-list before &#039;kernel_ulong_t&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:147:2: error: unknown type name &#039;__u16&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:149:2: error: unknown type name &#039;__u16&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:150:2: error: unknown type name &#039;__u16&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:151:2: error: unknown type name &#039;__u8&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:152:2: error: unknown type name &#039;__u8&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:154:2: error: expected specifier-qualifier-list before &#039;kernel_ulong_t&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:164:2: error: unknown type name &#039;__u16&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:165:2: error: unknown type name &#039;__u8&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:166:2: error: unknown type name &#039;__u8&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:167:2: error: unknown type name &#039;__u32&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:168:2: error: expected specifier-qualifier-list before &#039;kernel_ulong_t&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:175:2: error: unknown type name &#039;__u8&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:176:2: error: unknown type name &#039;__u8&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:177:2: error: unknown type name &#039;__u16&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:178:2: error: unknown type name &#039;__u32&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:179:2: error: expected specifier-qualifier-list before &#039;kernel_ulong_t&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:186:2: error: unknown type name &#039;__u8&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:187:2: error: expected specifier-qualifier-list before &#039;kernel_ulong_t&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:194:2: error: unknown type name &#039;__u8&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:195:2: error: expected specifier-qualifier-list before &#039;kernel_ulong_t&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:199:2: error: unknown type name &#039;__u8&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:200:2: error: expected specifier-qualifier-list before &#039;kernel_ulong_t&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:210:2: error: unknown type name &#039;__u8&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:211:2: error: unknown type name &#039;__u8&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:212:2: error: unknown type name &#039;__u8&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:213:2: error: unknown type name &#039;__u8&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:227:2: error: expected specifier-qualifier-list before &#039;kernel_ulong_t&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:240:2: error: unknown type name &#039;__u16&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:242:2: error: unknown type name &#039;__u16&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:243:2: error: unknown type name &#039;__u16&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:245:2: error: unknown type name &#039;__u8&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:248:2: error: unknown type name &#039;__u8&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:251:2: error: unknown type name &#039;__u8&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:253:2: error: unknown type name &#039;__u32&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:254:33: error: &#039;__u32&#039; undeclared here (not in a function)
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:254:3: error: requested alignment is not an integer constant
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:260:2: error: expected specifier-qualifier-list before &#039;kernel_ulong_t&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:314:2: error: expected specifier-qualifier-list before &#039;kernel_ulong_t&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:341:2: error: expected specifier-qualifier-list before &#039;kernel_ulong_t&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:347:2: error: unknown type name &#039;__u8&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:348:2: error: unknown type name &#039;__u8&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:349:2: error: unknown type name &#039;__u16&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:350:2: error: expected specifier-qualifier-list before &#039;__u32&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:363:2: error: unknown type name &#039;__u8&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:364:2: error: unknown type name &#039;__u16&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:365:2: error: unknown type name &#039;__u16&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:366:2: error: expected specifier-qualifier-list before &#039;kernel_ulong_t&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:372:2: error: unknown type name &#039;__u16&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:373:2: error: unknown type name &#039;__u16&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:374:2: error: unknown type name &#039;__u8&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:387:2: error: unknown type name &#039;__u16&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:388:2: error: unknown type name &#039;__u16&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:389:2: error: unknown type name &#039;__u8&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:390:2: error: unknown type name &#039;__u8&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:403:2: error: expected specifier-qualifier-list before &#039;__u32&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:412:2: error: unknown type name &#039;__u8&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:413:2: error: expected specifier-qualifier-list before &#039;kernel_ulong_t&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:424:2: error: expected specifier-qualifier-list before &#039;kernel_ulong_t&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:435:2: error: expected specifier-qualifier-list before &#039;kernel_ulong_t&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:470:2: error: expected specifier-qualifier-list before &#039;kernel_ulong_t&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:499:2: error: expected specifier-qualifier-list before &#039;kernel_ulong_t&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:525:2: error: expected specifier-qualifier-list before &#039;__u32&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:530:2: error: expected specifier-qualifier-list before &#039;__u32&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:542:2: error: expected specifier-qualifier-list before &#039;kernel_ulong_t&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:551:2: error: unknown type name &#039;__u16&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:552:2: error: unknown type name &#039;__u16&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:553:2: error: unknown type name &#039;__u16&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:554:2: error: unknown type name &#039;__u16&#039;
/usr/src/linux-headers-3.2.0-4-common/include/linux/mod_devicetable.h:555:2: error: expected specifier-qualifier-list before &#039;kernel_ulong_t&#039;
In file included from /usr/src/linux-headers-3.2.0-4-common/include/linux/usb/ch9.h:36:0,
                 from /usr/local/include/usb.h:5,
                 from usbbus.h:37,
                 from usbbus.c:36:
/usr/src/linux-headers-3.2.0-4-common/include/linux/types.h:13:2: warning: #warning &quot;Attempt to use kernel headers from user space, see kernelnewbies KernelHeaders&quot; [-Wcpp]
usbbus.c: In function &#039;usb_prepare&#039;:
usbbus.c:49:3: warning: implicit declaration of function &#039;getenv&#039; [-Wimplicit-function-declaration]
usbbus.c:49:25: warning: initialization makes pointer from integer without a cast [enabled by default]
usbbus.c:52:3: warning: implicit declaration of function &#039;atoi&#039; [-Wimplicit-function-declaration]
usbbus.c:53:5: warning: implicit declaration of function &#039;setenv&#039; [-Wimplicit-function-declaration]
usbbus.c:57:3: warning: implicit declaration of function &#039;usb_init&#039; [-Wimplicit-function-declaration]
usbbus.c:64:3: warning: implicit declaration of function &#039;usb_find_busses&#039; [-Wimplicit-function-declaration]
usbbus.c:71:3: warning: implicit declaration of function &#039;usb_find_devices&#039; [-Wimplicit-function-declaration]
make[3]: *** [libnfcbuses_la-usbbus.lo] Error 1
make[3]: Leaving directory `/home/user/src/libnfc-1.7.0-rc7/libnfc/buses&#039;
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/user/src/libnfc-1.7.0-rc7/libnfc&#039;
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/user/src/libnfc-1.7.0-rc7&#039;
make: *** [all] Error 2</code></pre></div><p>Any clues how to resolve this issue? Thanks in advance</p>]]></summary>
			<author>
				<name><![CDATA[Aaron]]></name>
				<uri>http://www.libnfc.org/community/user/4293/</uri>
			</author>
			<updated>2013-04-30T21:53:05Z</updated>
			<id>http://www.libnfc.org/community/topic/969/error-compiling-libnfc-linuxmoddevicetableh-no-such-file/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[student aid]]></title>
			<link rel="alternate" href="http://www.libnfc.org/community/topic/966/student-aid/new/posts/" />
			<summary type="html"><![CDATA[<p>hi i am student and I have a problem Spanish&#039;m in the final project, and I have considered making a nfc access control.</p><p>I have scl3711 nfc reader, I have recommended to do so in php as it will aceder to a database with an interface in html or php. I can not find php library for nfc. By fovor someone can tell me that I have to install on ubuntu so you can operate the reader. </p><p>Thank you very much.</p>]]></summary>
			<author>
				<name><![CDATA[alvarocordero91]]></name>
				<uri>http://www.libnfc.org/community/user/4286/</uri>
			</author>
			<updated>2013-04-26T11:52:13Z</updated>
			<id>http://www.libnfc.org/community/topic/966/student-aid/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Elecfreaks RFID/NFC Breakout Board + libnfc]]></title>
			<link rel="alternate" href="http://www.libnfc.org/community/topic/961/elecfreaks-rfidnfc-breakout-board-libnfc/new/posts/" />
			<summary type="html"><![CDATA[<p>Hello, everyone, I have the aforementioned Elecfreaks RFID/NFC Breakout Board and am trying to get it to work through libnfc for my project at my university. I have first experimented in Windows, but it turned out to be too difficult, so I moved on to a Vmware Workshop virtual Ubuntu 12.10 where I managed to &quot;make&quot; and install every necessary component and am now stuck at a similar situation like the sticky post above.</p><p>I am trying to connect to the Board through UART via a FTDI USB-to Serial modified to be USB-to UART TTL. I am connected with TX, RX, PWR and GND. </p><p>I still can&#039;t detect the device, both &quot;nfc-list&quot; and &quot;nfc-scan-device -i -v&quot; say &quot;No NFC device found.&quot; I am using libnfc 1.7.0-rc5 as I had some difficulties with rc6 which remained unsolved. I installed libusb, made the fix of moving libnfc.conf to the devices.d directory, tried renaming the conf to pn532_uart.conf, modified its contents to:</p><p>#device.name = &quot;Elecfreaks BB&quot;<br />#device.connstring = &quot;pn532_uart:=dev/ttyUSB0&quot;</p><p>I tried switching around the TX-RX ports, trying different PCs, different USB ports but nothing helped. LIBNFC_LOG_LEVEL=3 nfc-list says:</p><p>debug libnfc.general log_level is set to 3<br />debug libnfc.general allow_autoscan is set to true<br />debug libnfc.general allow_instrusive_scan is set to false<br />debug libnfc.general 0 device(s) defined by user<br />nfc-list uses libnfc 1.7.0-rc5<br />no NFC device found.</p><p>Can someone please help me? I would very much appreciate it as my deadline approaches...</p>]]></summary>
			<author>
				<name><![CDATA[peter.korsos]]></name>
				<uri>http://www.libnfc.org/community/user/4227/</uri>
			</author>
			<updated>2013-04-22T13:47:29Z</updated>
			<id>http://www.libnfc.org/community/topic/961/elecfreaks-rfidnfc-breakout-board-libnfc/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Unable to open NFC device: pn532_uart:/dev/ttyAMA0 [update:now can!]]]></title>
			<link rel="alternate" href="http://www.libnfc.org/community/topic/960/unable-to-open-nfc-device-pn532uartdevttyama0-updatenow-can/new/posts/" />
			<summary type="html"><![CDATA[<p>Hello everybody, I was falled into a error during running nfc-list. I have read topic <a href="http://www.libnfc.org/community/topic/913/no-nfc-device-found-with-libnfc170rc4-on-raspberry-pi/">&quot;No NFC device found with libnfc-1.7.0-rc4 on raspberry pi&quot;</a> and do as <strong>washmachine</strong> and <strong>rconty</strong> said, but the problem was still here, may you can help me :)</p><p>My reader is ACR122U103 and the libnfc version is 1.7.0-rc7. I have created the /usr/local/etc/nfc/libnfc.conf and /usr/local/etc/nfc/devices.d/pn532_uart_on_rpi.conf as follow:</p><div class="codebox"><pre><code>#libnfc.conf file
# allow_autoscan = true
# allow_intrusive_autoscan = false
# log_level = debug
device.name = &quot;microBuilder.eu&quot;
device.connstring = &quot;pn532_uart:/dev/ttyAMA0&quot;</code></pre></div><div class="codebox"><pre><code>#pn532_uart_on_rpi.conf file
name = &quot;PN532 board via UART&quot;
connstring = &quot;pn532_uart:/dev/ttyAMA0&quot;</code></pre></div><p>When I run nfc-list, the error log was showed:<br /></p><div class="codebox"><pre><code>~$ sudo nfc-list 
debug    libnfc.config    key: [device.name], value: [microBuilder.eu]
debug    libnfc.config    key: [device.connstring], value: [pn532_uart:/dev/ttyAMA0]
debug    libnfc.config    key: [device.name], value: [PN532 board via UART]
debug    libnfc.config    key: [device.connstring], value: [pn532_uart:/dev/ttyAMA0]
unknown    libnfc.general    log_level is set to 3
debug    libnfc.general    allow_autoscan is set to true
debug    libnfc.general    allow_intrusive_scan is set to false
debug    libnfc.general    2 device(s) defined by user
debug    libnfc.general      #0 name: &quot;microBuilder.eu&quot;, connstring: &quot;pn532_uart:/dev/ttyAMA0&quot;
debug    libnfc.general      #1 name: &quot;PN532 board via UART&quot;, connstring: &quot;pn532_uart:/dev/ttyAMA0&quot;
nfc-list uses libnfc 1.7.0-rc7
debug    libnfc.driver.pn532_uart    Attempt to open: /dev/ttyAMA0 at 115200 bauds.
error    libnfc.driver.pn532_uart    Invalid serial port: /dev/ttyAMA0
debug    libnfc.general    Unable to open &quot;pn532_uart:/dev/ttyAMA0&quot;.
nfc-list: ERROR nfc-list.c:128
nfc-list:     Unable to open NFC device: pn532_uart:/dev/ttyAMA0
debug    libnfc.driver.pn532_uart    Attempt to open: /dev/ttyAMA0 at 115200 bauds.
error    libnfc.driver.pn532_uart    Invalid serial port: /dev/ttyAMA0
debug    libnfc.general    Unable to open &quot;pn532_uart:/dev/ttyAMA0&quot;.
nfc-list: ERROR nfc-list.c:128
nfc-list:     Unable to open NFC device: pn532_uart:/dev/ttyAMA0</code></pre></div><p>I tried to modified the libnfc.conf device.connstring = &quot;pn532_uart:/dev/ttyAMA0&quot; to device.connstring = &quot;pn532_uart:/dev/ttyUSB0&quot;, but the error was still showed.<br />Also, there is no include &quot;ttyAMA&quot; in my&nbsp; /libnfc/buses/uart.c. So what&#039;s wrong with me and my libnfc?<br />Thanks!</p>]]></summary>
			<author>
				<name><![CDATA[duanguyuan]]></name>
				<uri>http://www.libnfc.org/community/user/4141/</uri>
			</author>
			<updated>2013-04-20T19:31:51Z</updated>
			<id>http://www.libnfc.org/community/topic/960/unable-to-open-nfc-device-pn532uartdevttyama0-updatenow-can/new/posts/</id>
		</entry>
</feed>
