Modifications

Sauter à la navigation Sauter à la recherche
1 320 octets ajoutés ,  7 novembre 2015 à 19:54
Ligne 66 : Ligne 66 :  
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):
 
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):
    +
=== Télécharger et configurer libnfc ===
 +
Download and build libnfc and configure if for PN532 UART (making the code changes above before running make):
 +
 +
<nowiki>  wget http://libnfc.googlecode.com/files/libnfc-1.6.0-rc1.tar.gz
 +
  tar -xvzf libnfc-1.6.0-rc1.tar.gz
 +
  cd libnfc-1.6.0-rc1
 +
  ./configure --with-drivers=pn532_uart --enable-serial-autoprobe
 +
  sudo make
 +
  sudo make install</nowiki>
 +
 +
=== 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:
 +
 +
<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>
 +
 +
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}}
30 072

modifications

Menu de navigation