我正在使用Raspberry Pi 4 Model B,并试图获得一个能够接收和发送IR信号的电路。我能够使IR接收器工作并接收信号。但是,当我更改/boot/config.txt文件以包括IR发送器时(取消注释“#dtoverlay = gpio-ir-tx,gpio_pin = 22”行)。更改之后,我将无法再使用IR接收器,并且IR发射器也无法使用。
尝试使用红外接收器时收到的错误是:
pi@raspberrypi:/etc/lirc/lircd.conf.d $ sudo mode2 -d /dev/lirc0
Using driver default on device /dev/lirc0
Trying device: /dev/lirc0
Please use the --raw option to access the device directly instead through the abstraction layer
我建立的电路是: Link to Circuit Diagram
我正在运行Raspbian 10(破坏者)和Lirc 0.10.1-5.2。
/etc/lirc/lirc_options.conf:
[lircd]
nodaemon = False
driver = default
device = /dev/lirc0
output = /var/run/lirc/lircd
pidfile = /var/run/lirc/lircd.pid
plugindir = /usr/lib/arm-linux-gnueabihf/lirc/plugins
permission = 666
allow-simulate = No
repeat-max = 600
[lircmd]
uinput = False
nodaemon = False
/boot/config.txt:
hdmi_safe=1
hdmi_force_hotplug=1
dtoverlay=gpio-ir,gpio_pin=17
dtoverlay=gpio-ir-tx,gpio_pin=22
dtparam=audio=on
dtoverlay=vc4-fkms-v3d
max_framebuffers=2