配置Raspbian的树莓派3使用数字逻辑屏蔽与µFR阅读器RS232#
前言
数字逻辑屏蔽与µFR阅读器RS232
该Shield是一种简化了µFR Reader RS232设备之间互连的硬件,例如µFR Nano RS232和µFR Classic CS RS232读取器模型以及任何树莓派版本。
DLshield使用GPIO头的8脚(GPIO14)和10脚(GPIO15)进行UART通信,使用16脚(GPIO23)重置µFR读者.GPIO串口(mini-UART)默认关闭。它必须被启用为设备的全部功能。uFCoder库4.2.7及更高版本支持DL在Raspbian上的盾牌。
谨慎
RPi的串口(以及所有其他GPIO)仅在3.3V电源下工作。将它们连接到5V电源会损坏RPi。
使能GPIO串口
$ sudo rspi-config
- 更改密码
- 开启SSH(接口选项> SSH)
- 开启串口(接口选项> Serial)
- 禁用串口控制台(接口选项> Serial)
- 重新启动
测试
测试Linux配置
$ ls -l /dev/serial*lrwxrwxrwx 1 root root 5 11月21日07:54 /dev/serial0 -> ttyS0lrwxrwxrwx 1 root root 7 11月21日07:54 /dev/serial1 -> ttyAMA0$ ls - l /dev/ttyS0crw -rw——1 rootdialout4 64 nov2107:54 / dev / ttyS0美元集团piadmdialoutcdromsudoaudiovideoplugdevgamesusersinputnetdevgpioi2cspi$sudo grep uart /boot/cmdline.txtenable_uart = 1$ sudo cat /boot/cmdline.txtdwc_otg.lpm_enable = 0控制台= tty1根= PARTUUID (nomoreexistsconsole = ttyS0, 115200)
测试µFR Reader Open功能
在GIT的DL-GIT Clone上有一个简单的reader示例代码
$ git克隆——递归
//www.texashampton.com/code/nfc-rfid-reader-sdk/ufr-examples-reader_open-c
使可执行
让美元armhf
运行
美元。/ ufr-reader-open
引用:
https://spellfoundry.com/2016/05/29/configuring-gpio-serial-port-raspbian-jessie-including-pi-3/
https://www.raspberrypi.org/forums/viewtopic.php?t=151454
https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=144858&p=955297#p955236
https://raspberrypi.stackexchange.com/a/54766
下载
https://www.raspberrypi.org/downloads/raspbian/
测试源代码:
//www.texashampton.com/code/nfc-rfid-reader-sdk/ufr-examples-reader_open-c