在线商店

配置树莓派参数树莓派参数数字逻辑屏蔽连接阅读器RS232

打印友好,PDF和电子邮件
[printfriendly电流= '是的']
打印友好,PDF和电子邮件

配置树莓派参数树莓派参数数字逻辑屏蔽连接阅读器RS232#

Introduccion#

数字逻辑反对在这里读者RS232Shield是一个简单的硬件平台,类似于interconexión center dispositivos ureader RS232, como uFR RS232,通过tamaño de tarjeta RS232,通过今天的两个版本的RaspberryPi。Dl屏蔽利用8号(GPIO14) 10号(GPIO15) del启用GPIO para comunicación UART通过16号(GPIO23) para可稳定的检测器uFR。El puerto serie GPIO (mini-UART) estdeshabilitado de formpredeterminada。从能力上讲,这是一种正确的功能。La biblioteca uFCoder versión 4.2.7 y posterior admit escudos DL en Raspbian。

Precaucion

El puerto serie del Pi (y El de otroRGPIO)函数仅支持3.3 vonly。将它们连接到5v源破坏了苏皮。

Habilitar puerto serie GPIO

$ sudo rspi-config

  • 另一contrasena
  • Habilitar SSH (opción de interface > SSH)
  • HabilitarPuerto serie (opción de interfaz > serie)
  • DeshabilitarLa consola serie (opción de interfaz > serie)
  • Reiniciar

功能

可能是configuración de 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 - 1 /dev/ttyS0
crw-rw——1 rootdialout4 64 nov2107:54 / dev / ttyS0
美元集团
piadmdialoutcdromsudoauvideoplugdevgamesusersinputnetdevgpioi2cspi
$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检测器#

编译器编译器编译器编译器编译器编译器编译器编译器编译器编译器编译器编译器编译器编译器编译器编译器编译器编译器编译器编译器编译器编译器编译器编译器

$ git clone——递归
//www.texashampton.com/code/nfc-rfid-reader-sdk/ufr-examples-reader_open-c

做ejecutable
让美元armhf


美元。/ ufr-reader-openReferencias: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

Raspbian OS - descargar

https://www.raspberrypi.org/downloads/raspbian/

Código fuente de prueba:

//www.texashampton.com/code/nfc-rfid-reader-sdk/ufr-examples-reader_open-c

Baidu
map