Comments (8)
Hi,
i have the same error, but not the same board like you and not the one from
seedstudios or adafruit. So did you have a solution now?
tobi
Original comment by [email protected]
on 10 Feb 2014 at 1:20
from mfocuino.
Hello,
I "solved" the problem using libnfc-1.7.0-rc1 instead of the lastest one. I
based on this article
http://regnerischernachmittag.wordpress.com/2013/05/13/libnfc-mit-arduino-nfc-sh
ield-nutzen/
I think that the patch is incompatible with the lastest libnfc.
Original comment by [email protected]
on 10 Feb 2014 at 11:03
from mfocuino.
yeah i see this article, i also found a solution, but with the newest source
code:
i added sleep(4); to /libnfc/libnfc/drivers/pn532_uart.c
int
pn532_uart_wakeup(nfc_device *pnd)
{
/* High Speed Unit (HSU) wake up consist to send 0x55 and wait a "long" delay for PN532 being wakeup. */
const uint8_t pn532_wakeup_preamble[] = { 0x55, 0x55, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
int res = uart_send(DRIVER_DATA(pnd)->port, pn532_wakeup_preamble, sizeof(pn532_wakeup_preamble), 0);
CHIP_DATA(pnd)->power_mode = NORMAL; // PN532 should now be awake
sleep(4); //here
return res;
}
now the board should have enough time to wakeup.. :)
i tested it and it is working.
but there is a bigger problem: i want "make install" and then "nfc-list", but
then i can't notice a 4 sec sleep in the wakeup function. have you an idea?
Original comment by [email protected]
on 16 Feb 2014 at 2:31
from mfocuino.
Hi Tobias,
I will try your solution as soon as posible, i remember trying increasing the
delay time but i will try again with your modifications.
Meanwhile, are you using the nfc-list global command or the nfc-list in the
directory where you compiled the library? If the latter works but the first one
not, that's posibly because you have two different versions of the library in
your SO. I ended up deleting all the libnfc.so of my system and then building
de libnfc rc1.
Let me know if that helps you.
Original comment by [email protected]
on 16 Feb 2014 at 6:06
from mfocuino.
Hi,
Yeah it is the only change i made in source and its in another file as the old
patch will patch. So not only increasing the delay. ;) I would be very happy if
you will test it, because i want to write an article about that and it would be
very useful, if your board would working with it, too :)
Ah OK, i will test that, thanks for this nice idea. If that works i will write
again.
Original comment by [email protected]
on 17 Feb 2014 at 5:11
from mfocuino.
I over read some of the question. The local command goes right everytime, the
global never.
Original comment by [email protected]
on 17 Feb 2014 at 5:14
from mfocuino.
Hello Tobias,
I tried your patch, it works perfect. Now i can use the lastest mfoc too (i
made some nasty things to make it work with de old libnfc lib).
Thank you for taking the time to submit the fix :) I wish the authors update de
patch to include it.
Feel free to contact me by email if you need more information of my board for
your article.
Original comment by [email protected]
on 23 Feb 2014 at 7:11
from mfocuino.
After removing all libnfc files an reinstalling it, everything runs right.
Thanks for help :)
Here is my little instruction to get a pn532 board working with arduino and
libnfc: nfc-tools.org/index.php?title=Libnfc:Arduino
Maybe you have some tips or something i should add.
Tobi
Original comment by [email protected]
on 6 Mar 2014 at 5:50
from mfocuino.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mfocuino.