nfc-tools / libnfc

Platform independent Near Field Communication (NFC) library
http://nfc-tools.org
GNU Lesser General Public License v3.0
1.64k stars 436 forks source link

acr122 conf #713

Open achillealb opened 4 months ago

achillealb commented 4 months ago

How to set: My first device acr122 ?

My device acr122_usb nfc-list uses libnfc 1.8.0 NFC device: ACS / ACR122U PICC Interface opened

sudo mkdir -p /etc/nfc/devices.d printf 'name = "My first device"\nconnstring = "pn532_uart:/dev/ttyACM0"\n' | sudo tee /etc/nfc/devices.d/first.conf printf 'name = "My second device"\nconnstring = "pn532_uart:/dev/ttyACM1"\n' | sudo tee /etc/nfc/devices.d/second.conf

achillealb commented 4 months ago

is right: printf 'name = "My first device"\nconnstring = "acr122_usb:/dev/ttyACM0"\n' | sudo tee /etc/nfc/devices.d/first.conf printf 'name = "My second device"\nconnstring = "acr122_usb:/dev/ttyACM1"\n' | sudo tee /etc/nfc/devices.d/second.conf

log: debug libnfc.general 0 device(s) found using pn532_uart driver debug libnfc.driver.acr122s Trying to find ACR122S device on serial port: /dev/ttyS3 at 9600 baud. debug libnfc.driver.acr122s Trying to find ACR122S device on serial port: /dev/ttyS2 at 9600 baud. debug libnfc.driver.acr122s Trying to find ACR122S device on serial port: /dev/ttyS1 at 9600 baud. debug libnfc.driver.acr122s Trying to find ACR122S device on serial port: /dev/ttyS0 at 9600 baud. debug libnfc.general 0 device(s) found using ACR122S driver debug libnfc.driver.acr122_usb device found: Bus 002 Device 003 Name ACS ACR122 debug libnfc.general 1 device(s) found using acr122_usb driver debug libnfc.general 0 device(s) found using pn53x_usb driver debug libnfc.driver.acr122_usb 3 element(s) have been decoded from "acr122_usb:002:003" debug libnfc.driver.acr122_usb TX: 62 00 00 00 00 00 00 01 00 00 debug libnfc.driver.acr122_usb RX: 80 02 00 00 00 00 00 00 81 00 3b 00 debug libnfc.driver.acr122_usb ACR122 PICC Operating Parameters debug libnfc.driver.acr122_usb TX: 6f 05 00 00 00 00 00 00 00 00 ff 00 51 00 00 debug libnfc.driver.acr122_usb RX: 80 02 00 00 00 00 00 00 81 00 90 00 debug libnfc.chip.pn53x GetFirmwareVersion debug libnfc.driver.acr122_usb TX: 6f 07 00 00 00 00 00 00 00 00 ff 00 00 00 02 d4 02 debug libnfc.driver.acr122_usb RX: 80 08 00 00 00 00 00 00 81 00 d5 03 32 01 06 07 90 00 debug libnfc.chip.pn53x SetParameters debug libnfc.driver.acr122_usb TX: 6f 08 00 00 00 00 00 00 00 00 ff 00 00 00 03 d4 12 14 debug libnfc.driver.acr122_usb RX: 80 04 00 00 00 00 00 00 81 00 d5 13 90 00 debug libnfc.general "ACS / ACR122U PICC Interface" (acr122_usb:002:003) has been claimed. debug libnfc.general set_property_bool NP_ACTIVATE_FIELD False debug libnfc.chip.pn53x ReadRegister