|
1 | | -## Typical configuration file for PN532 device on R-Pi 5 connected using miniUART |
2 | | -## Note: Changes have been made to R-Pi 5 with the removal of the /dev/ttyS0 address |
3 | | -## in favor of /dev/ttyAMA0. Additionally, the /boot/cmdline.txt has been replaced |
4 | | -## with /boot/firmware/cmdline.txt. |
| 1 | +## Typical configuration file for PN532 device on R-Pi 5 |
| 2 | +## Note: Changes have been made to R-Pi 5 with the removal of the mini UART |
| 3 | +## (/dev/ttyS0), hence the module can be accessed through the original R-Pi |
| 4 | +## UART address (/dev/ttyAMA0). |
5 | 5 | ## |
6 | | -## Tested recipe with generic PN532 module (common clones of the Elechouse module) |
| 6 | +## For more information about UART differences between R-Pi models, visit: |
| 7 | +## https://www.raspberrypi.com/documentation/computers/configuration.html#configure-uarts |
7 | 8 | ## |
8 | | -## To enable uart on GPIO, add this line to bottom of /boot/config.txt |
9 | | -## enable_uart=1 |
| 9 | +## This configuration is almost identical to pn532_uart_on_rpi.conf.sample |
| 10 | +## except the allow_intrusive_scan option from the R-Pi 3 sample. |
| 11 | +## |
| 12 | +## Tested recipe with generic PN532 module (common Elechouse module clones) |
10 | 13 | ## |
11 | | -## Stop and disable serial console: |
12 | | -## $ sudo systemctl stop serial-getty@ttyAMA0.service |
13 | | -## $ sudo systemctl disable serial-getty@ttyAMA0.service |
| 14 | +## To enable uart on GPIO, add this line to bottom of /boot/firmware/config.txt |
| 15 | +## enable_uart=1 |
14 | 16 | ## |
15 | | -## Remove console from /boot/firmware/cmdline.txt by removing: |
16 | | -## console=serial0,115200 Save and reboot for changes to take effect. |
| 17 | +## If you are using an earlier version of Raspberry Pi OS (prior to Bookworm), |
| 18 | +## the config file is available instead on /boot/config.txt. |
17 | 19 | ## |
18 | 20 | name = "PN532 board via UART" |
19 | 21 | connstring = pn532_uart:/dev/ttyAMA0 |
20 | 22 | allow_intrusive_scan = true |
21 | | - |
|
0 commit comments