5.5.2 Python
USB-connected µFR Nano Online NFC RFID Reader Writer on the Raspberry Pi
Last Updated: October 10, 2023USB-connected µFR Nano Online NFC RFID Reader Writer on the Raspberry Pi To connect and run the µFR Nano Online reader plugged into the Raspberry Pi USB port, follow the instructions below: 1) USB-CONNECTED µFR NANO ONLINE NFC READER INSTALLATION All µFR series devices require FTDI drivers for USB communication. This also applies to the µFR Nano Online NFC reader if it is used as a standard USB device. If you have no FTDI drivers installed on your installed Raspberry Pi, please follow the manual for the FTDI drivers installed on the Linux-based platforms. This article is also available in our Knowledge Base. Important notice: Before you proceed with the µFR Nano Online implementation, make sure you grant the USB PORT access permission to the local user (the script is available in our GitLab projects repository). Once you have the FTDI drivers installed with your USB-connected NFC reader, you will be able to open the port and establish communication with the device by the ReaderOpen function provided by the ufr library. Important notice: The recommended library for the Raspberry Pi is the 64-bit aarch64. However, there are some known problems with aarch64 on a Raspberry Pi 4 with 8 GB...
Running Python SDK/software on macOS
Last Updated: May 4, 2023For Python software examples, we suggest you use any Python 3.x.x version. If you don’t have the right Python version installed, use the following command line to install a new version: brew install python Now simply run our source code software example with the command: python3 file_name.py Please have in mind that our Python SDK structure has only one executable .py file (main file) and that one imports all other files as modules. For example, the NDEF Python SDK console uses ndef_example.py as the main file, so the software is executed with the following command: python3 ndef_example.py To make sure which file is the main executable file, you can simply check the source code of the *.py files and look for the one that has a ReaderOpen/ReaderOpenEx function calls. NOTE: This test was performed with Python 3.7.2 so and included the following SDK: https://code.d-logic.com/nfc-rfid-reader-sdk/ufr-ndef-examples-python-console https://code.d-logic.com/nfc-rfid-reader-sdk/ufr-mf-examples-c