From 4076046a66b22c067432a050d329f94f5a9ed01f Mon Sep 17 00:00:00 2001 From: Jim Anastassiou Date: Fri, 19 Aug 2016 18:36:48 -0400 Subject: [PATCH 1/4] Create pn532_uart_on_rpi3.conf.sample --- contrib/libnfc/pn532_uart_on_rpi3.conf.sample | 1 + 1 file changed, 1 insertion(+) create mode 100644 contrib/libnfc/pn532_uart_on_rpi3.conf.sample diff --git a/contrib/libnfc/pn532_uart_on_rpi3.conf.sample b/contrib/libnfc/pn532_uart_on_rpi3.conf.sample new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/contrib/libnfc/pn532_uart_on_rpi3.conf.sample @@ -0,0 +1 @@ + From 35cc69dffb1b661e9ba0f0ca92e9705c69404850 Mon Sep 17 00:00:00 2001 From: Jim Anastassiou Date: Fri, 19 Aug 2016 18:37:04 -0400 Subject: [PATCH 2/4] Rename pn532_uart_on_rpi3.conf.sample to pn532_uart_on_rpi_3.conf.sample --- ...2_uart_on_rpi3.conf.sample => pn532_uart_on_rpi_3.conf.sample} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename contrib/libnfc/{pn532_uart_on_rpi3.conf.sample => pn532_uart_on_rpi_3.conf.sample} (100%) diff --git a/contrib/libnfc/pn532_uart_on_rpi3.conf.sample b/contrib/libnfc/pn532_uart_on_rpi_3.conf.sample similarity index 100% rename from contrib/libnfc/pn532_uart_on_rpi3.conf.sample rename to contrib/libnfc/pn532_uart_on_rpi_3.conf.sample From 27ed3acc1aced88a48d9e5d22b9e4f883e1d4476 Mon Sep 17 00:00:00 2001 From: Jim Anastassiou Date: Fri, 19 Aug 2016 18:38:19 -0400 Subject: [PATCH 3/4] Update pn532_uart_on_rpi_3.conf.sample --- contrib/libnfc/pn532_uart_on_rpi_3.conf.sample | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/contrib/libnfc/pn532_uart_on_rpi_3.conf.sample b/contrib/libnfc/pn532_uart_on_rpi_3.conf.sample index 8b13789..ae969d7 100644 --- a/contrib/libnfc/pn532_uart_on_rpi_3.conf.sample +++ b/contrib/libnfc/pn532_uart_on_rpi_3.conf.sample @@ -1 +1,6 @@ +## Typical configuration file for PN532 device on R-Pi connected using UART +## Note: to use UART port on R-Pi, you have to disable linux serial console: +## http://learn.adafruit.com/adafruit-nfc-rfid-on-raspberry-pi/freeing-uart-on-the-pi +name = "PN532 board via UART" +connstring = pn532_uart:/dev/ttyS0 From 0d3d5c13ff221a1286ba353ab2d5846d800eb1ee Mon Sep 17 00:00:00 2001 From: Jim Anastassiou Date: Fri, 19 Aug 2016 19:22:06 -0400 Subject: [PATCH 4/4] Add R-Pi 3 conf sample. There have been changes to the Raspberry Pi 3's usage of serial ports with the addition of a Bluetooth LE module. This configuration uses the mini UART without disabling any devices except for the linux serial console. --- .../libnfc/pn532_uart_on_rpi_3.conf.sample | 22 ++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/contrib/libnfc/pn532_uart_on_rpi_3.conf.sample b/contrib/libnfc/pn532_uart_on_rpi_3.conf.sample index ae969d7..fc1ad1b 100644 --- a/contrib/libnfc/pn532_uart_on_rpi_3.conf.sample +++ b/contrib/libnfc/pn532_uart_on_rpi_3.conf.sample @@ -1,6 +1,22 @@ -## Typical configuration file for PN532 device on R-Pi connected using UART -## Note: to use UART port on R-Pi, you have to disable linux serial console: -## http://learn.adafruit.com/adafruit-nfc-rfid-on-raspberry-pi/freeing-uart-on-the-pi +## Typical configuration file for PN532 device on R-Pi 3 connected using miniUART +## Note: Changes have been made to R-Pi 3 with the addition of Bluetooth LE +## The UART is now being used by the BLE module. Instead of disabling it, you can +## use the PN532 device with the "mini UART", which is still hijacked by the linux kernel +## as a serial console +## +## Tested recipe with PN532 breakout from Adafruit +## +## To enable uart on GPIO, add this line to bottom of /boot/config.txt +## enable_uart=1 +## +## Stop and disable serial console: +## $ sudo systemctl stop serial-getty@ttyS0.service +## $ sudo systemctl disable serial-getty@ttyS0.service +## +## Remove console from /boot/cmdline.txt by removing: +## console=serial0,115200 Save and reboot for changes to take effect. +## name = "PN532 board via UART" connstring = pn532_uart:/dev/ttyS0 +allow_intrusive_scan = true