На контроллере не работает ИК порт.
Пытался заставить работать ИК порт. После неопределенных действий - он таки все же работал но только до перезагрузки.
Что делал:
Пытался собрать lirc-0.10.2 (безуспешно)
Загружал драйвер modprobe lirc-pwm
Просто пытался запустить /usr/sbin/lircd
Перезапускал service wb-mqtt-lirc restart
После этого реально пульт работал и работали правила по кнопкам. Но после перезагрузки все превратилось в тыкву(. Пытался повторить данные действия, но все безуспешно.
apt show lirc
Package: lirc
Version: 0.9.4c-9
Priority: extra
Section: utils
Maintainer: lirc Maintainer Team <pkg-lirc-maint@lists.alioth.debian.org>
Installed-Size: 1 939 kB
Depends: liblirc0 (= 0.9.4c-9), init-system-h
dmesg | grep lirc # Поиск информации об ошибке в системных журналах
[ 12.991356] lirc_dev: IR Remote Control driver registered, major 245
[ 13.012809] lirc_pwm: module is from the staging directory, the quality is unknown, you have been warned.
[ 13.095609] lirc_pwm: module is from the staging directory, the quality is unknown, you have been warned.
[ 13.124724] lirc_pwm lirc-rfm69: GPIO receiver on pin 37
[ 13.242992] lirc_pwm lirc-rfm69: lirc_dev: driver lirc-rfm69 registered at minor = 0
[ 13.250784] lirc_pwm lirc-rfm69: probed
[ 13.423805] lirc_pwm lirc-cir: PWM transmitter on lirc-cir, max duty 50%
[ 13.430714] lirc_pwm lirc-cir: GPIO receiver on pin 79
[ 13.549103] lirc_pwm lirc-cir: lirc_dev: driver lirc-cir registered at minor = 1
[ 13.640471] lirc_pwm lirc-cir: probed
[ 221.885251] lirc_pwm lirc-cir: Value on the pin #79 hasn't been changed! (wtf?) value=0, last=66985162, now=221767393, delta=154782231
c mode2 разобрался он был тоже 10 версии. Удалили, убрал lirc 10 - переустановил пакет.
oot@wirenboard-AEUQHNW4:~# /usr/bin/mode2
Using driver default on device /dev/lirc1
Trying device: /dev/lirc1
Using device: /dev/lirc1
Warning: Running as root.
pulse 237516
space 174
pulse 93411
space 168
pulse 877347
space 154
pulse 137905
space 181
pulse 75
space 170
pulse 1566490
space 174
А как в конфиге lirc (сейчас) описан этот lirc1?
То есть если отстановить lircd и попробовать mode2 - импульсы считываютс, потом запускаем lircd - и?
Да, заодно покажите с какими правами создан /dev/lirc1, кто вледелец
root@wirenboard-AEUQHNW4:/etc/lirc# cat hardware.conf
# /etc/lirc/hardware.conf
#
# Arguments which will be used when launching lircd
LIRCD_ARGS=""
#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD=false
#Don't start irexec, even if a good config file seems to exist.
#START_IREXEC=false
#Try to load appropriate kernel modules
LOAD_MODULES=true
# Run "lircd --driver=help" for a list of supported drivers.
DRIVER="default"
# usually /dev/lirc0 is the correct setting for systems using udev
DEVICE="/dev/lirc1"
MODULES=""
# Default configuration files for your hardware if any
LIRCD_CONF=""
LIRCMD_CONF=""
root@wirenboard-AEUQHNW4:/etc/lirc#
root@wirenboard-AEUQHNW4:/etc/lirc# cat lircd.conf
# Populated config files can be found at http://sf.net/p/lirc-remotes. The
# irdb-get(1) and lirc-setup(1) tools can be used to search and download
# config files.
#
# From 0.9.2 config files could just be dropped as-is in the lircd.conf.d
# directory and be included by this file.
include "lircd.conf.d/*.conf"
root@wirenboard-AEUQHNW4:/etc/lirc# cat lirc_options.conf
# These are the default options to lircd, if installed as
# /etc/lirc/lirc_options.conf. See the lircd(8) and lircmd(8)
# manpages for info on the different options.
#
# Some tools including mode2 and irw uses values such as
# driver, device, plugindir and loglevel as fallback values
# in not defined elsewhere.
[lircd]
nodaemon = False
driver = default
device = /dev/lirc1
output = /var/run/lirc/lircd
pidfile = /var/run/lirc/lircd.pid
plugindir = /usr/lib/arm-linux-gnueabi/lirc/plugins
permission = 666
allow-simulate = No
repeat-max = 600
#effective-user =
#listen = [address:]port
#connect = host[:port]
#loglevel = 6
#uinput = ...
#release = ...
#logfile = ...
[lircmd]
uinput = False
nodaemon = False
# [modinit]
# code = /usr/sbin/modprobe lirc_serial
# code1 = /usr/bin/setfacl -m g:lirc:rw /dev/uinput
# code2 = ...
# [lircd-uinput]
# release-timeout = 200
root@wirenboard-AEUQHNW4:/etc/lirc#
root@wirenboard-AEUQHNW4:/etc/lirc# cat lirc_options.conf
# These are the default options to lircd, if installed as
# /etc/lirc/lirc_options.conf. See the lircd(8) and lircmd(8)
# manpages for info on the different options.
#
# Some tools including mode2 and irw uses values such as
# driver, device, plugindir and loglevel as fallback values
# in not defined elsewhere.
[lircd]
nodaemon = False
driver = default
device = /dev/lirc1
output = /var/run/lirc/lircd
pidfile = /var/run/lirc/lircd.pid
plugindir = /usr/lib/arm-linux-gnueabi/lirc/plugins
permission = 666
allow-simulate = No
repeat-max = 600
#effective-user =
#listen = [address:]port
#connect = host[:port]
#loglevel = 6
#uinput = ...
#release = ...
#logfile = ...
[lircmd]
uinput = False
nodaemon = False
# [modinit]
# code = /usr/sbin/modprobe lirc_serial
# code1 = /usr/bin/setfacl -m g:lirc:rw /dev/uinput
# code2 = ...
# [lircd-uinput]
# release-timeout = 200
root@wirenboard-AEUQHNW4:/etc/lirc#
root@wirenboard-AEUQHNW4:/etc/lirc# ls -la /dev/lirc1
crw-rw---- 1 root video 245, 1 янв 12 15:23 /dev/lirc1