Ligne 74 : |
Ligne 74 : |
| | | |
| == Libnfc avec Mac OSX Lion == | | == Libnfc avec Mac OSX Lion == |
− | scott-42 was kind of enough to post some tips on getting libnfc working on a Mac using an FTDI adapter. A couple simple changes to the code were required (as of v1.6.0-rc1), with the details [http://forums.adafruit.com/viewtopic.php?f=19&t=22085#p115684 here]. | + | scott-42 à posté quelques trucs & astuces pour faire fonctionner libnfc sur Mac en utilisant un adaptateur FTDI. Cela nécessite quelques petites modifications dans le code (de la version v1.6.0-rc1), modifications détaillées [http://forums.adafruit.com/viewtopic.php?f=19&t=22085#p115684 ici] (''Adafruit Forums, anglais''). |
| | | |
− | Keeping in mind the code changes mentionned above, the following steps should get libnfc compiling and working via an FTDI type adapter and UART on Lion (using libnfc 1.6.0_rc1):
| + | Gardez en mémoire les modifications de code ci-dessus, les étapes suivantes devrait vous permettre de compiler libnfc et le faire fonctionner avec un adaptateur de tpe FTDI (et UART sous Lion, en utilisant libnfc 1.6.0_rc1): |
| | | |
| === Télécharger et configurer libnfc === | | === Télécharger et configurer libnfc === |
− | Download and build libnfc and configure if for PN532 UART (making the code changes above before running make):
| + | Téléchargez et compiler libnfc et configurez le pour PN532 UART ('''faites les modifications du code décrites ci-dessus avant de faire le {{fname|make}} ): |
| | | |
− | <nowiki> wget http://libnfc.googlecode.com/files/libnfc-1.6.0-rc1.tar.gz | + | <nowiki>wget http://libnfc.googlecode.com/files/libnfc-1.6.0-rc1.tar.gz |
− | tar -xvzf libnfc-1.6.0-rc1.tar.gz
| + | tar -xvzf libnfc-1.6.0-rc1.tar.gz |
− | cd libnfc-1.6.0-rc1
| + | cd libnfc-1.6.0-rc1 |
− | ./configure --with-drivers=pn532_uart --enable-serial-autoprobe
| + | ./configure --with-drivers=pn532_uart --enable-serial-autoprobe |
− | sudo make
| + | sudo make |
− | sudo make install</nowiki>
| + | sudo make install</nowiki> |
| | | |
| === Détecter le lecteur === | | === Détecter le lecteur === |
− | If everything worked out, switch to the examples folder and see if you can find the PN532 and wait for an appropriate tag:
| + | Si tout a fonctionné comme attendu, déplacez vous dans le répertoire d'exemples (nommé ''examples'' en anglais). Voyez s'il est possible de détecter le PN532 et attendre la saisie d'un tag: |
| | | |
− | <nowiki> cd examples | + | <nowiki>cd examples |
− | Kevins-Mac-mini:examples kevin$ ./nfc-poll
| + | Kevins-Mac-mini:examples kevin$ ./nfc-poll |
− | /Users/kevin/libnfc-1.6.0-rc1/examples/.libs/nfc-poll uses libnfc 1.6.0-rc1 (r1326)
| + | /Users/kevin/libnfc-1.6.0-rc1/examples/.libs/nfc-poll uses libnfc 1.6.0-rc1 (r1326) |
− | NFC reader: pn532_uart:/dev/tty.usbserial-FTE5WWPB - PN532 v1.6 (0x07) opened
| + | NFC reader: pn532_uart:/dev/tty.usbserial-FTE5WWPB - PN532 v1.6 (0x07) opened |
− | NFC device will poll during 30000 ms (20 pollings of 300 ms for 5 modulations)
| + | NFC device will poll during 30000 ms (20 pollings of 300 ms for 5 modulations) |
− | ISO/IEC 14443A (106 kbps) target:
| + | ISO/IEC 14443A (106 kbps) target: |
− | ATQA (SENS_RES): 00 04
| + | ATQA (SENS_RES): 00 04 |
− | UID (NFCID1): 3e b9 6e 66
| + | UID (NFCID1): 3e b9 6e 66 |
− | SAK (SEL_RES): 08</nowiki>
| + | SAK (SEL_RES): 08</nowiki> |
| + | |
| + | Il y a quelques dépendances nécessaire pour faire fonctionner libnfc. Etant donné qu'il ne s'agit pas d'un projet Adafruit il n'est pas possible d'obtenir directement de l'aide pour libnfc. Vous aurez certainement plus de change d'obtenir un coup de main efficace depuis les [http://www.libnfc.org/community/ libnfc forums] destinés au support pour Mac. |
| + | |
| + | Il y a quelques utilisateurs développent activement sur Mac. |
| | | |
− | There are some dependencies to get libnfc running, but since it isn't an Adafruit project and we can't really support it directly ourselves, you will probably have better luck looking at the [http://www.libnfc.org/community/ libnfc forums] for Mac support. There are a few active users developping on the Mac.
| |
| https://learn.adafruit.com/adafruit-pn532-rfid-nfc/libnfc | | https://learn.adafruit.com/adafruit-pn532-rfid-nfc/libnfc |
| | | |
| {{PN532-RFID-NFC-TRAILER}} | | {{PN532-RFID-NFC-TRAILER}} |