Reputation: 173
I am trying to use a pn532 board connected using an Adafruit FTDI Friend to my MacBook Pro. It pops up in /dev as "tty.usbserial-XXXXXXXX" (where the Xs are the serial number). I have tried things such as "tagtool.py --device=tty:usbserial-XXXXXXXX:pn532" but no success. I also tried that same connection string straight in my code.
Nfcpy doesn't seem to be detecting the PN532, but it detects my ACR122U over USB just fine. I have already confirmed its not the PN532 board, as libnfc on my Mac detects it, and it works fine on my Raspberry Pi.
My code to connect:
with nfc.ContactlessFrontend('tty:usbserial-XXXXXXXX:pn532') as clf:
tag = clf.connect(rdwr=rdwr_options)
if tag == False:
raise KeyboardInterrupt
Upvotes: 2
Views: 1465
Reputation: 621
With nfcpy 0.13.0 (and earlier versions) it was not possible to use serial ports on Mac OS X. The /dev/
naming scheme for OS-X has been added in nfcpy 0.13.1 and those ports are now automatically discovered or specifically selectable with the device path of nfc.ContactlessFrontend.open()
.
Upvotes: 1