This project is mirrored from https://github.com/nfc-tools/libnfc.
Pull mirroring updated .
- Jan 05, 2025
-
-
Reinhart Previano Koentjoro authored
-
Reinhart Previano Koentjoro authored
-
- Oct 30, 2024
-
-
Philippe Teuwen authored
Fix a minor typo on nfc-barcode.c
-
- Oct 24, 2024
-
-
brianoy authored
-
- Jul 29, 2024
-
-
Philippe Teuwen authored
Fix `nfc_initiator_select_passive_target` target count on PN53x when not using `InListPassiveTarget`
-
- Jul 28, 2024
-
-
Benjamin Delpy authored
Fix `nfc_initiator_select_passive_target` target count on PN53x when not using `InListPassiveTarget` When using `pn53x` chip with target not compatible with `InListPassiveTarget` (like `NMT_ISO14443BICLASS`, `NMT_ISO14443B2CT` & `NMT_ISO14443B2SR` by eg.), the logic behind `nfc_initiator_select_passive_target` to return target count seems to be buggy `nfc_initiator_select_passive_target`: > Returns: > Returns selected passive target count on success, otherwise returns libnfc's error code (negative value) In `pn53x_initiator_select_passive_target_ext`, the return value in success is always `abtTargetsData[0]`. This is correct when using `InListPassiveTarget` as the first byte is `NbTg`, but it can be problematic for other cases. - Example with a Mifare: ``` gentilkiwi@pi5:~/libnfc-dev $ ./utils/nfc-list -t 1 NFC device: Elechouse NFC Module V3 (SPI) opened ## End of function 'pn53x_initiator_select_passive_target_ext'... ## abtTargetsData content is : 01 01 00 04 08 04 1a da 74 44 ## return will be: 0x01 (?) 1 ISO14443A passive target(s) found: ISO/IEC 14443A (106 kbps) target: ATQA (SENS_RES): 00 04 UID (NFCID1): 1a da 74 44 SAK (SEL_RES): 08 ``` - Example with 2x ST25TB: ``` gentilkiwi@pi5:~/libnfc-dev $ ./utils/nfc-list -t 32 NFC device: Elechouse NFC Module V3 (SPI) opened ## End of function 'pn53x_initiator_select_passive_target_ext'... ## abtTargetsData content is : 35 a5 f2 a4 68 1f 02 d0 ## return will be: 0x35 (?) 1 ISO14443B-2 ST SRx passive target(s) found: ISO/IEC 14443-2B ST SRx (106 kbps) target: UID: 35 a5 f2 a4 68 1f 02 d0 ``` ``` gentilkiwi@pi5:~/libnfc-dev $ ./utils/nfc-list -t 32 NFC device: Elechouse NFC Module V3 (SPI) opened ## End of function 'pn53x_initiator_select_passive_target_ext'... ## abtTargetsData content is : 00 92 f0 a4 68 1f 02 d0 ## return will be: 0x00 (?) 0 ISO14443B-2 ST SRx passive target(s) found. ``` The proposed PR will fix the target count to 1 when not using `InListPassiveTarget`, since current versions of target initialisation do not support for more. - Results: ``` gentilkiwi@pi5:~/libnfc-dev $ ./utils/nfc-list -t 32 NFC device: Elechouse NFC Module V3 (SPI) opened 1 ISO14443B-2 ST SRx passive target(s) found: ISO/IEC 14443-2B ST SRx (106 kbps) target: UID: 00 92 f0 a4 68 1f 02 d0 gentilkiwi@pi5:~/libnfc-dev $ ./examples/nfc-st25tb |mode : info Reader : Elechouse NFC Module V3 (SPI) - via pn532_spi:/dev/spidev0.0:500000 ...wait for card... Target : ISO/IEC 14443-2B ST SRx (106 kbps) UID : 00 92 f0 a4 68 1f 02 d0 Manuf : 0x02 - STMicroelectronics ChipId : 0x1f - ST25TB04K Serial : 0x68a4f09200 |blk sz : 32 bits |nb blks: 128 |sys idx: 255 ``` (also checked for non-regression with `InListPassiveTarget`, including multiples `A` targets)
-
- Feb 16, 2024
-
-
Ludovic Rousseau authored
CMake Warning (dev) at utils/CMakeLists.txt:50 (ADD_EXECUTABLE): Policy CMP0115 is not set: Source file extensions must be explicit. Run "cmake --help-policy CMP0115" for policy details. Use the cmake_policy command to set the policy and suppress this warning. File: /home/rousseau/Documents/github/libnfc/utils/jewel.c This warning is for project developers. Use -Wno-dev to suppress it.
-
Ludovic Rousseau authored
CMake Warning (dev) at libnfc/CMakeLists.txt:77 (ADD_LIBRARY): Policy CMP0115 is not set: Source file extensions must be explicit. Run "cmake --help-policy CMP0115" for policy details. Use the cmake_policy command to set the policy and suppress this warning. File: /home/rousseau/Documents/github/libnfc/libnfc/nfc.c This warning is for project developers. Use -Wno-dev to suppress it.
-
Davide Prade authored
Fixed the CMake file because under MSYS2 it always forced 32bit compilation even on 64bit machine. (#661) Co-authored-by: Davide Prade <dprade@olari.it>
-
thewetzel authored
Fix memory leak in nfc_initiator_select_passive_target().
-
Yang Kun authored
Co-authored-by: Yang Kun <13147081-ikspress@users.noreply.gitlab.com>
-
- Oct 21, 2023
-
-
Didier A authored
-
Samuel Prevost authored
-
- Feb 13, 2023
-
-
Philippe Teuwen authored
pn53x initiator set registers for ISO14443B-2 ST SRx
-
- Feb 12, 2023
-
-
Benjamin DELPY authored
Modification to set PN53X_REG_CIU_TxAuto, PN53X_REG_CIU_CWGsP & PN53X_REG_CIU_ModGsP registers values before init. Avoids a dummy scan in B mode before
-
- Sep 20, 2021
-
-
Romain Tartière authored
-
Ujjwal Kumar authored
-
- Aug 14, 2021
-
-
Romain Tartière authored
Fix builds on FreeBSD
-
Alexander Sieg authored
Without this patch the cmake config assume that every UNIX system that is not APPLE is automatically a linux system. This however causes problems on FreeBSD and properly on other BSD systems. We now explicitly check if the CMAKE_SYSTEM_NAME is set to Linux.
-
- Aug 05, 2021
-
-
Philippe Teuwen authored
Fix - assignment instead of comparison (PCSC driver)
-
Philippe Teuwen authored
Include unistd.h (required because of usleep())
-
- Aug 04, 2021
-
-
Claudius Link authored
-
- Jul 10, 2021
-
-
Philippe Teuwen authored
Add nfc-st25b example
-
- Jun 13, 2021
-
-
Benjamin DELPY authored
-
Benjamin DELPY authored
-
Benjamin DELPY authored
-
Benjamin DELPY authored
-
Benjamin DELPY authored
This new example allows to operate on some ISO-14443-B ST25TB* and legacy SR* cards (read, write, info)
-
- Jun 09, 2021
-
-
Dave T authored
-
- May 12, 2021
-
-
rstular authored
-
- Jan 22, 2021
-
-
Ludovic Rousseau authored
The project moved from .alioth.debian.org to .apdu.fr
-
- Nov 02, 2020
-
-
Philippe Teuwen authored
Fix typo in variable name in pcsc.c
-
Antoine Viallon authored
-
- Oct 24, 2020
-
-
Adam Laurie authored
Modify code to add compatibility of readers
-
- Oct 20, 2020
-
-
Feitian Technologies authored
Follow the NXP Contactless card IC rules to be compatible with Feitian new and old R502 reader.
-
- Oct 11, 2020
-
-
Philippe Teuwen authored
docs: fix simple typo, mecanism -> mechanism
-
- Oct 10, 2020
-
-
Tim Gates authored
There is a small typo in contrib/win32/libnfc/buses/uart.c, libnfc/drivers/acr122_usb.c, libnfc/drivers/acr122s.c, libnfc/drivers/arygon.c, libnfc/drivers/pn532_uart.c, libnfc/drivers/pn53x_usb.c. Should read `mechanism` rather than `mecanism`.
-
- Jul 11, 2020
-
-
Philippe Teuwen authored
-
Philippe Teuwen authored
windows compiling with native tools and clang, macos catalina compiling, added travis ci build tests
-
- Jul 08, 2020
-
-
Unknown authored
-