Modifications

Sauter à la navigation Sauter à la recherche
489 octets ajoutés ,  12 novembre 2015 à 12:03
aucun résumé de modification
Ligne 1 : Ligne 1 :  
{{PN532-RFID-NFC-NAV}}
 
{{PN532-RFID-NFC-NAV}}
  −
{{traduction}}
      
== Utiliser LibNFC ==
 
== Utiliser LibNFC ==
Ligne 41 : Ligne 39 :     
=== Etape 3: Faire le Build et installer libnfc ===
 
=== Etape 3: Faire le Build et installer libnfc ===
{{traduction}}
+
Vous pouvez compile et installer libnfc avec les 3 commandes suivantes. Les commandes doivent être exécutées depuis le répertoire où vous avez extrait le contenu de l'archive:
You can build and install libnfc with the following three commands, also run from the folder where the original archive was unzipped:
     −
  <nowiki> $ make clean
+
  <nowiki>$ make clean
  $ make
+
$ make
  $ make install</nowiki>
+
$ make install</nowiki>
    
=== Etape 4: Détecter le lecteur ===
 
=== Etape 4: Détecter le lecteur ===
 
Nous allons maintenant vérifier si libnfc est capable de retrouver notre lecteur pn532.
 
Nous allons maintenant vérifier si libnfc est capable de retrouver notre lecteur pn532.
 
   
 
   
Now that libnfc is (hopefully) built and installed, you can run the 'nfc-list' example to try to detect an attached NFC board. Make sure the board is connected to the FTDI or USB/UART adapter, and that it is connected to your PC, and run the following commands:
+
Maintenant que libnfc est compilé et installé, vous pouvez exécuter l'exemple {{fname|nfc-list}} pour essayer de détecter la carte NFC branchée sur le PC.
<nowiki>  $ cd examples
  −
  $ ./nfc-list</nowiki>
     −
This should list the devices that were detected.
+
Assurez vous que la carte soit bien connectée sur votre PC à l'aide d'un adaptateur FTDI ou USB/UART (USB-Série).
 +
 
 +
Exécutez les commandes suivantes:
 +
<nowiki>$ cd examples
 +
$ ./nfc-list</nowiki>
 +
 
 +
Cela devrait afficher une liste des périphérique détectés.
    
=== Etape 5: lecture de carte MiFare ===
 
=== Etape 5: lecture de carte MiFare ===
 
Nous allons faire une opération de polling pour récupérer les infos des cartes au standard ISO14443A (les cartes Mifare).
 
Nous allons faire une opération de polling pour récupérer les infos des cartes au standard ISO14443A (les cartes Mifare).
   −
Next, you can use the 'nfc-poll' example to wait 30 seconds for an ISO14443A card or tag and display some basic information about this card. In the examples folder that we changed to above, run the following command:
+
Nous pouvons utiliser l'exemple {{fname|nfc-poll}} qui, durant 30 secondes, attend la présentation d'une carte ISO14443A ou d'un tag afin d'afficher quelques informations de base à propos de cette carte.  
 +
 
 +
Saisissez la commande suivante dans le répertoire d'exemple (dans lequel nous nous sommes déplacés tout à l'heure):
    
  <nowiki>$ ./nfc-poll</nowiki>
 
  <nowiki>$ ./nfc-poll</nowiki>
   −
This should give you some basic information on any card that entered the magnetic field within the specified delay.
+
Cela devrait afficher des informations élémentaires concernant les cartes qui rentre dans le champs magnétique du lecteur (durant un délais de 30 secondes).
    
{{ADFImage|PN532-RFID-NFC-LibNFC-20.jpg}}
 
{{ADFImage|PN532-RFID-NFC-LibNFC-20.jpg}}
    
== 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
 +
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)
 +
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)
 +
ISO/IEC 14443A (106 kbps) target:
 +
    ATQA (SENS_RES): 00  04 
 +
      UID (NFCID1): 3e  b9  6e  66 
 +
      SAK (SEL_RES): 08</nowiki>
   −
<nowiki>  cd examples
+
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.  
  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)
  −
  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)
  −
  ISO/IEC 14443A (106 kbps) target:
  −
      ATQA (SENS_RES): 00  04 
  −
        UID (NFCID1): 3e  b9  6e  66 
  −
        SAK (SEL_RES): 08</nowiki>
     −
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.  
+
Il y a quelques utilisateurs développent activement sur Mac.  
https://learn.adafruit.com/adafruit-pn532-rfid-nfc/libnfc
      
{{PN532-RFID-NFC-TRAILER}}
 
{{PN532-RFID-NFC-TRAILER}}
29 917

modifications

Menu de navigation