Topic: how to communicate between two readers?
Can anyone help me about the communication between two readers? I am trying to exchange data between two reader. Is it possible ?
Public platform independent Near Field Communication (NFC) library
You are not logged in. Please login or register.
libnfc developers community » Application Programming Interface (API) » how to communicate between two readers?
Can anyone help me about the communication between two readers? I am trying to exchange data between two reader. Is it possible ?
Hi !
Can anyone help me about the communication between two readers?
We could try...
I am trying to exchange data between two reader. Is it possible ?
Yes, its possible. Check the examples wrote by François Kooman : nfcip-target & nfcip-initiator in development version of libnfc.
Thanx rconty... are you talking about http://code.google.com/p/nfcip-java/sou _PN53x.txt page? is it possible to use libnfc for it? in this page I can see some command for making the communication between readers. But where should I put the command? in the minicom or somewhere else?
Thanx rconty... are you talking about http://code.google.com/p/nfcip-java/sou _PN53x.txt page?
No, I'm not. I talk about http://code.google.com/p/libnfc/source/ nitiator.c
is it possible to use libnfc for it?
No : nfcip-java is in JAVA but libnfc in C without bindings in JAVA.
In this page I can see some command for making the communication between readers. But where should I put the command? in the minicom or somewhere else?
There commands are sent to PN53x chip. To send them you can use libnfc if your reader is compatible.
Thanks rconty... can I download the file directly from the webpage or do I need to copy the code??
when I copy the code, it's giving me errors during compilation...
I include libnfc.h and stdlib.h...but still i am getting the following errors...
my errors are as follows:
nfcip-initiator.c: In function ‘main’:
nfcip-initiator.c:12: error: ‘nfc_device_t’ undeclared (first use in this function)
nfcip-initiator.c:12: error: (Each undeclared identifier is reported only once
nfcip-initiator.c:12: error: for each function it appears in.)
nfcip-initiator.c:12: error: ‘pnd’ undeclared (first use in this function)
nfcip-initiator.c:13: error: ‘nfc_target_info_t’ undeclared (first use in this function)
nfcip-initiator.c:13: error: expected ‘;’ before ‘ti’
nfcip-initiator.c:18: error: too many arguments to function ‘nfc_connect’
nfcip-initiator.c:20: error: ‘NM_PASSIVE_DEP’ undeclared (first use in this function)
nfcip-initiator.c:21: error: ‘ti’ undeclared (first use in this function)
if (!pnd || !nfc_initiator_init(pnd)
|| !nfc_initiator_select_dep_target(pnd, NM_PASSIVE_DEP, NULL, 0,
NULL, 0, NULL, 0, &ti)) {
i have fixed the other problems , but i have problems with the above line....
the error is
‘NM_PASSIVE_DEP’ undeclared (first use in this function)
nfcip-initiator.c:22: error: (Each undeclared identifier is reported only once
nfcip-initiator.c:22: error: for each function it appears in.)
the function name is changed ...so i keep the name as previous version to fix it.
Hello avra,
NFCIP is an experimentale features that comes from development version of libnfc. You need to compile the whole sources in trunk not nfcip-initiator.c only.
Under Linux (or other POSIX system), to build libnfc from svn:
svn checkout http://libnfc.googlecode.com/svn/trunk/ libnfc
cd libnfc
./autogen.sh
make
sudo make installHope it helps.
I am trying to use the nfcip-initiator and nfcip target, but i can't find any documentation of this programs. So do i need to pass any arguments with this programs... I have two readers and I just want to communicate between them. When I am running the program its not giving me any error but its just waiting for something. Helps will be appreciated strongly.
There is no documentation for theses experimental examples, only source code can help you ATM.
We need and will improve P2P support under libnfc, help will be appreciated strongly ;-)
hi Romuald,
thanks for your help...actually we are trying to use the nfc_connect function in a program...but it's saying that undefined reference...nfc_device_t declaration is fine...but the only error I am getting in the nfc_connect function...("undefined reference")...can u help me in fixing that???do i need to include any other header file??the result is same when I am trying to compile any other example files....waiting for ur reply
Hi avra,
nfc_connect function...("undefined reference")...can u help me in fixing that?
It seems to be a missing argument in compiler command line options: you need to link with libnfc. In example, for GCC :
gcc -o mynfcprog mynfc.c -lnfcPowered by PunBB, supported by Informer Technologies, Inc.
Currently installed 2 official extensions. Copyright © 2003–2009 PunBB.