配置树莓派3的树莓系统,使用数字逻辑屏蔽和读写器RS232#
Introduzione#
数字逻辑盾反对在这里读者RS232屏蔽è la pace dell'hardware per l'interconnessione semplificata trani dispositivi uFReader RS232, come uFR RS232 e卡尺寸RS232, e tutte le versioni di RaspberryPi。Lo shield DL utilzza i pin 8 (GPIO14) e10 (GPIO15) dell' nntazione GPIO per la comunicazione UART e pin 16 (GPIO23) per il ripristino del leore uFR。La porta seriale GPIO (mini-UART) è disabilitata per impostazione predefinita。È必须按照正确的方法处理问题。La libreria uFCoder版本4.2.7 e连续supportano gli scudi DL su Raspbian。
Attenzione
La porta seriale di Pi (e tutti gli altriGPIO) funzionanoat3.3Vonly。Connectingthemtoa5Vsource distruggerà il tuo Pi。
Abilitare la porta串行GPIO
$ sudo rspi-config
- 形成层的密码
- Abilita SSH (opzione di interfacciamento > SSH)
- AbilitaPorta系列(opzione di interfacciamento >系列)
- Disabilita控制台系列(opzione di interfacciamento >系列)
- Riavviare
测试
Linux配置测试
$ ls -l /dev/serial*
lrwxrwxrwx 1 root root 5 11月21日07:54 /dev/serial0 -> ttyS0 lrwxrwxrwx 1 root root 7 11月21日07:54 /dev/serial1 -> ttyAMA0 $ ls - l /dev/ttyS0
crw-rw——1 rootdialout4 64 nov2107:54 / dev / ttyS0
美元集团
piadmdialoutcdromsudoaudiovideoplugdevgamesusersinputputnetdevgpioi2cspi
$sudo grep uart /boot/cmdline.txt
enable_uart = 1
$ sudo cat /boot/cmdline.txt
dwc_otg。lpm_enable = tty1root = = 0控制台PARTUUID (nomoreexistsconsole = ttyS0, 115200)
测试μFR字母aperto#
C'è不知道该怎么写,就怎么写DL-GIT da GIT
$ git克隆——ricorsivo
//www.texashampton.com/code/nfc-rfid-reader-sdk/ufr-examples-reader_open-c
Rendi eseguibile让美元armhf
Correre美元。/ ufr-reader-open
Riferimenti: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/
Codice sorgente di prova:
//www.texashampton.com/code/nfc-rfid-reader-sdk/ufr-examples-reader_open-c