RPi3 + LibreELEC + A389 + TSOP38238 IR vevő

 ( makgab | 2018. október 26., péntek - 20:11 )

Üdv!
A korábbi téma alapján próbálom összerakni a $SUBJ-t:
https://www.rpibolt.hu/blog/xbmc_media_center_taviranyitasa_infra_taviranyitoval_raspberry_pi-n.html
https://gist.github.com/coaxial/575fec33fcb10f69586e419b97927eb8

A "killall lircd && mode2 -d /dev/lirc0" után a távirányítón érzékel gombnyomást, de a librelec "nem látja" - nem működik vele.
Mit kell még beállítani? A LibreELEC System settings / Input-ban gondolom látni kellene ezt az IR vevőt valahogy.

-------------------------------------------------------------------------------------------------------

A /flash/config.txt végére beraktam:

# IR reciever, GPIO (def: GPIO_18)
dtoverlay=lirc-rpi

# dmesg | grep lirc
[ 3.242793] lirc_dev: IR Remote Control driver registered, major 245
[ 3.280616] lirc_rpi: module is from the staging directory, the quality is unknown, you have been warned.
[ 4.034981] input: lircd-uinput as /devices/virtual/input/input3
[ 4.196386] input: eventlircd as /devices/virtual/input/input4
[ 4.234854] lirc_rpi: auto-detected active low receiver on GPIO pin 18
[ 4.235062] lirc_rpi lirc_rpi: lirc_dev: driver lirc_rpi registered at minor = 0
[ 4.235065] lirc_rpi: driver registered!

A /storage/.config/lircd.conf-ban:

# Please make this file available to others

# by sending it to

#

# this config file was automatically generated

# using lirc-0.9.0-pre1(default) on Thu Mar 14 14:21:25 2013

#

# contributed by

#

# brand: /home/pi/lircd.conf

# model no. of remote control:

# devices being controlled by this remote:

#

begin remote

name /home/pi/lircd.conf

bits 16

flags SPACE_ENC|CONST_LENGTH

eps 30

aeps 100

header 8945 4421

one 594 1634

zero 594 519

ptrail 598

repeat 8949 2187

pre_data_bits 16

pre_data 0xFD

gap 106959

toggle_bit_mask 0x0

begin codes

KEY_VOLUMEDOWN 0x00FF

KEY_PLAYPAUSE 0x807F

KEY_VOLUMEUP 0x40BF

KEY_SETUP 0x20DF

KEY_UP 0xA05F

KEY_STOP 0x609F

KEY_LEFT 0x10EF

KEY_ENTER 0x906F

KEY_RIGHT 0x50AF

KEY_KP0 0x30CF

KEY_DOWN 0xB04F

KEY_BACK 0x708F

KEY_KP1 0x08F7

KEY_KP2 0x8877

KEY_KP3 0x48B7

KEY_KP4 0x28D7

KEY_KP5 0xA857

KEY_KP6 0x6897

KEY_KP7 0x18E7

KEY_KP8 0x9867

KEY_KP9 0x58A7

end codes

end remote