Appunti su ir-keytable (no LIRC)

Appunti di uso sul ricevitore IR GPIO e l'utility ir-keytable (senza LIRC Linux Infrared Remote Control)

Gli step per abilitare il funzionamento di un telecomando a raggi infrarossi con ir-keytable sono i seguenti:

  • collegare il ricevitore hardware (TSOP48xx)
  • installare e configurare il driver PIO
  • installare la utility ir-keytable
  • configurare uno o piu' telecomandi

Installazione hardware

Lo schema mostrato e' riferito al modello TSOP con portante a 38 kHz:

Installazione driver GPIO

Per l'utilizzo di LIRC con un ricevitore TSOP e' necessario aggiungere/scommentare il seguente codice nel file /boot/config.txt

#
# https://forum.libreelec.tv/thread/4413-7-95-1-lirc-not-working-correct-on-rpi/
#
dtoverlay=gpio-ir,gpio_pin=23,gpio_pull=1,rc-map-name=rc-rc6-mce

e fare il reboot del sistema.

Installazione utility ir-keytable


# Remove LIRC from your system
% sudo apt-get purge lirc

# If the /etc/lirc folder exists on your system, remove that as well
% sudo rm -rf /etc/lirc

# install ir-keytable
sudo apt-get update && sudo apt-get dist-upgrade -y
sudo apt-get install ir-keytable -y

Configurazione telecomandi

ir-keytable e' un sistema molto piu' semplice quando comparato con LIRC, non richiede installazione di device drivers particolari perche' usa quelli del kernel mainstream che su RPI sono inclusi ed i cui DTS sono gia' presenti e, come gia' visto, configurabili su /boot/config.txt .

Il difetto principale e' che , rispetto a LIRC, il numero dei telecomandi gia' presenti e' molto ridotto e quindi, con tutta probabilita', occorrera' configurarli da zero.

Lista protocoli supportati

pi@rpi-iw0hdv:~ $ ir-keytable -p
ir-keytable: option requires an argument -- 'p'
Try `ir-keytable --help' or `ir-keytable --usage' for more information.
Found /sys/class/rc/rc0/ (/dev/input/event0) with:
    Driver gpio-rc-recv, table rc-rc6-mce
    Supported protocols: unknown other lirc rc-5 rc-5-sz jvc sony nec sanyo mce_kbd rc-6 sharp xmp 

Lista telecomandi

pi@rpi-iw0hdv:~ $ ls /lib/udev/rc_keymaps/
a800                      behold               dvico_portable      kworld_315u              pinnacle_color          terratec_cinergy_s2_hd
adstech_dvb_t_pci         behold_columbus      em_terratec         kworld_pc150u            pinnacle_grey           terratec_cinergy_xs
af9005                    budget_ci_old        encore_enltv        kworld_plus_tv_analog    pinnacle_pctv_hd        terratec_slim
alink_dtu_m               cec                  encore_enltv2       leadtek_y04g0051         pixelview               terratec_slim_2
allwinner_ba10_tv_box     cinergy              encore_enltv_fm53   lme2510                  pixelview_002t          tevii_nec
allwinner_i12_a20_tv_box  cinergy_1400         evga_indtube        manli                    pixelview_mk12          tivo
anysee                    cinergyt2            eztv                medion_x10               pixelview_new           total_media_in_hand
apac_viewcomp             d680_dmb             flydvb              medion_x10_digitainer    powercolor_real_angel   total_media_in_hand_02
asus_pc39                 delock_61959         flyvideo            medion_x10_or2x          proteus_2309            trekstor
asus_ps3_100              dib0700_nec          fusionhdtv_mce      megasky                  purpletv                tt_1500
ati_tv_wonder_hd_600      dib0700_rc5          gadmei_rm008z       msi_digivox_ii           pv951                   tvwalkertwin
ati_x10                   dibusb               genius_tvgo_a11mce  msi_digivox_iii          rc6_mce                 twinhan_dtv_cab_ci
avermedia                 digitalnow_tinytwin  gotview7135         msi_tvanywhere           real_audio_220_32_keys  twinhan_vp1027_dvbs
avermedia_a16d            digittrade           haupp               msi_tvanywhere_plus      reddo                   videomate_k100
avermedia_cardbus         digitv               hauppauge           nebula                   snapstream_firefly      videomate_s350
avermedia_dvbt            dm1105_nec           imon_mce            nec_terratec_cinergy_xs  streamzap               videomate_tv_pvr
avermedia_m135a           dntv_live_dvb_t      imon_pad            norwood                  su3000                  vp702x
avermedia_m733a_rm_k6     dntv_live_dvbt_pro   iodata_bctv7e       npgtech                  tbs_nec                 vp7045
avermedia_rm_ks           dtt200u              it913x_v1           opera1                   technisat_ts35          winfast
avertv_303                dvbsky               it913x_v2           pctv_sedna               technisat_usb2          winfast_usbii_deluxe
azurewave_ad_tu700        dvico_mce            kaiomy              pinnacle310e             terratec_cinergy_c_pci  wobo_i5

Test telecomando

Purtroppo per poter appurare quale protocollo supportoa il telecomando sotto test occorre andare per esclusione, abilitando dapprima tutti i protocolli disponibili:

pi@rpi-iw0hdv:~ $ sudo ir-keytable -v -t -p rc-5,rc-5-sz,jvc,sony,nec,sanyo,mce_kbd,rc-6,sharp,xmp
Found device /sys/class/rc/rc0/
Input sysfs node is /sys/class/rc/rc0/input0/
Event sysfs node is /sys/class/rc/rc0/input0/event0/
Parsing uevent /sys/class/rc/rc0/input0/event0/uevent
/sys/class/rc/rc0/input0/event0/uevent uevent MAJOR=13
/sys/class/rc/rc0/input0/event0/uevent uevent MINOR=64
/sys/class/rc/rc0/input0/event0/uevent uevent DEVNAME=input/event0
Parsing uevent /sys/class/rc/rc0/uevent
/sys/class/rc/rc0/uevent uevent NAME=rc-rc6-mce
/sys/class/rc/rc0/uevent uevent DRV_NAME=gpio-rc-recv
input device is /dev/input/event0
/sys/class/rc/rc0/protocols protocol other (disabled)
/sys/class/rc/rc0/protocols protocol unknown (disabled)
/sys/class/rc/rc0/protocols protocol rc-5 (disabled)
/sys/class/rc/rc0/protocols protocol nec (disabled)
/sys/class/rc/rc0/protocols protocol rc-6 (disabled)
/sys/class/rc/rc0/protocols protocol jvc (disabled)
/sys/class/rc/rc0/protocols protocol sony (enabled)
/sys/class/rc/rc0/protocols protocol rc-5-sz (disabled)
/sys/class/rc/rc0/protocols protocol sanyo (disabled)
/sys/class/rc/rc0/protocols protocol sharp (disabled)
/sys/class/rc/rc0/protocols protocol mce_kbd (disabled)
/sys/class/rc/rc0/protocols protocol xmp (disabled)
/sys/class/rc/rc0/protocols protocol cec (disabled)
/sys/class/rc/rc0/protocols protocol lirc (enabled)
Opening /dev/input/event0
Input Protocol version: 0x00010001
Protocols changed to rc-5 rc-5-sz jvc sony nec sanyo mce_kbd rc-6 sharp xmp 
Testing events. Please, press CTRL-C to abort.

Premendo i tasti del telecomando vengono visualizzati i codici ricevuti (questo nel caso il protocollo sia supportato). Eliminando i protocolli uno ad uno , si riesce ad indentificare quello corretto (nel nostro esempio il sony)..

...
...
1508273202.082676: event type EV_MSC(0x04): scancode = 0x1f0026
1508273202.082676: event type EV_SYN(0x00).

se, come nell'esempio, non compare il nome del tasto, la tabella di decodifica non supporta il telecomando.La cosa piu' semplice e' cercare se in qualcuno dei telecomandi supportati compare lo scancode:

grep -iH '0x1f0026' /lib/udev/rc_keymaps/*

Se la ricerca e' vana, occorre creare autonomamnnete la mappa scan scode -> tasto, premendo tutti i tasti di interesse del proprio telecomando ed annotando

Creazione file di configurazione

Il formato del file di map e' il seguente:

pi@rpi-iw0hdv:~ $ cat robophilo.txt
# table robophilo, type: sony
0x1f0026 KEY_1
0x1f0027 KEY_2
0x1f0028 KEY_3
0x1f0029 KEY_4
0x1f002a KEY_5
0x1f002b KEY_6
0x1f002c KEY_7
0x1f002d KEY_8
0x1f002e KEY_9
0x1f002f KEY_SERVO
0x1f0030 KEY_0
0x1f0031 KEY_POSITION

la prina riga contiene il nome simbolico del telecomda ad il protocollo, seguono le corrispomdeze scancode / tasto.

Tutti i codici tasto ammessi sono visualizzabili con il seguente comando:

pi@rpi-iw0hdv:~ $ irrecord -l
KEY_0
KEY_102ND
KEY_10CHANNELSDOWN
KEY_10CHANNELSUP
KEY_1
KEY_2
KEY_3
KEY_4
KEY_5
KEY_6
KEY_7
KEY_8
KEY_9
KEY_A
KEY_AB
KEY_ADDRESSBOOK
KEY_AGAIN
KEY_ALS_TOGGLE
KEY_ALTERASE
KEY_ANGLE
KEY_APOSTROPHE
KEY_APPSELECT
KEY_ARCHIVE
KEY_ATTENDANT_OFF
KEY_ATTENDANT_ON
KEY_ATTENDANT_TOGGLE
KEY_AUDIO
KEY_AUX
KEY_B
KEY_BACK
KEY_BACKSLASH
KEY_BACKSPACE
KEY_BASSBOOST
KEY_BATTERY
KEY_BLUE
KEY_BLUETOOTH
KEY_BOOKMARKS
KEY_BREAK
KEY_BRIGHTNESS_AUTO
KEY_BRIGHTNESS_CYCLE
KEY_BRIGHTNESSDOWN
KEY_BRIGHTNESS_MAX
KEY_BRIGHTNESS_MI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PY34
BTN_TRIGGER_HAPPY35
BTN_TRIGGER_HAPPY36
BTN_TRIGGER_HAPPY37
BTN_TRIGGER_HAPPY38
BTN_TRIGGER_HAPPY39
BTN_TRIGGER_HAPPY40
BTN_TRIGGER_HAPPY4
BTN_TRIGGER_HAPPY5
BTN_TRIGGER_HAPPY6
BTN_TRIGGER_HAPPY7
BTN_TRIGGER_HAPPY8
BTN_TRIGGER_HAPPY9
BTN_WEST
BTN_WHEEL
BTN_Z

nell' esempio gli ultimi tre codici non esistono e non vengono riconosciuti, occorrera' quindi adattarsi all'uso di codici diversi.

Installazione file di configurazione


# display the existing table
ir-keytable --read
# delete the existing table
ir-keytable -c

# load the new table from local file
sudo ir-keytable -c -p sony -w ./robophilo.txt

# check if the table is really there
pi@rpi-iw0hdv:~ $ ir-keytable -r
scancode 0x1f0026 = KEY_1 (0x02)
scancode 0x1f0027 = KEY_2 (0x03)
scancode 0x1f0028 = KEY_3 (0x04)
scancode 0x1f0029 = KEY_4 (0x05)
scancode 0x1f002a = KEY_5 (0x06)
scancode 0x1f002b = KEY_6 (0x07)
scancode 0x1f002c = KEY_7 (0x08)
scancode 0x1f002d = KEY_8 (0x09)
scancode 0x1f002e = KEY_9 (0x0a)
scancode 0x1f0030 = KEY_0 (0x0b)
Enabled protocols: lirc sony 

# test  the file
sudo ir-keytable -v -t -p sony
Found device /sys/class/rc/rc0/
Input sysfs node is /sys/class/rc/rc0/input0/
Event sysfs node is /sys/class/rc/rc0/input0/event0/
Parsing uevent /sys/class/rc/rc0/input0/event0/uevent
/sys/class/rc/rc0/input0/event0/uevent uevent MAJOR=13
/sys/class/rc/rc0/input0/event0/uevent uevent MINOR=64
/sys/class/rc/rc0/input0/event0/uevent uevent DEVNAME=input/event0
Parsing uevent /sys/class/rc/rc0/uevent
/sys/class/rc/rc0/uevent uevent NAME=rc-rc6-mce
/sys/class/rc/rc0/uevent uevent DRV_NAME=gpio-rc-recv
input device is /dev/input/event0
/sys/class/rc/rc0/protocols protocol other (disabled)
/sys/class/rc/rc0/protocols protocol unknown (disabled)
/sys/class/rc/rc0/protocols protocol rc-5 (disabled)
/sys/class/rc/rc0/protocols protocol nec (disabled)
/sys/class/rc/rc0/protocols protocol rc-6 (disabled)
/sys/class/rc/rc0/protocols protocol jvc (disabled)
/sys/class/rc/rc0/protocols protocol sony (enabled)
/sys/class/rc/rc0/protocols protocol rc-5-sz (disabled)
/sys/class/rc/rc0/protocols protocol sanyo (disabled)
/sys/class/rc/rc0/protocols protocol sharp (disabled)
/sys/class/rc/rc0/protocols protocol mce_kbd (disabled)
/sys/class/rc/rc0/protocols protocol xmp (disabled)
/sys/class/rc/rc0/protocols protocol cec (disabled)
/sys/class/rc/rc0/protocols protocol lirc (enabled)
Opening /dev/input/event0
Input Protocol version: 0x00010001
Protocols changed to sony 
Testing events. Please, press CTRL-C to abort.

1508275306.220144: event type EV_MSC(0x04): scancode = 0x1f0026
1508275306.220144: event type EV_KEY(0x01) key_down: KEY_1(0x0002)
1508275306.220144: event type EV_SYN(0x00).
1508275306.265670: event type EV_MSC(0x04): scancode = 0x1f0026
1508275306.265670: event type EV_SYN(0x00).
1508275306.311174: event type EV_MSC(0x04): scancode = 0x1f0026
1508275306.311174: event type EV_SYN(0x00).
1508275306.462677: event type EV_MSC(0x04): scancode = 0x1f0026
1508275306.462677: event type EV_SYN(0x00).
1508275306.722653: event type EV_KEY(0x01) key_down: KEY_1(0x0002)
1508275306.722653: event type EV_SYN(0x00).
1508275306.722675: event type EV_KEY(0x01) key_up: KEY_1(0x0002)
1508275306.722675: event type EV_SYN(0x00).
1508275306.752903: event type EV_MSC(0x04): scancode = 0x1f002a
1508275306.752903: event type EV_KEY(0x01) key_down: KEY_5(0x0006)
1508275306.752903: event type EV_SYN(0x00).
1508275306.798392: event type EV_MSC(0x04): scancode = 0x1f002a
1508275306.798392: event type EV_SYN(0x00).
1508275306.843903: event type EV_MSC(0x04): scancode = 0x1f002a
1508275306.843903: event type EV_SYN(0x00).
1508275306.992695: event type EV_MSC(0x04): scancode = 0x1f002a
1508275306.992695: event type EV_SYN(0x00).
1508275307.252653: event type EV_KEY(0x01) key_up: KEY_5(0x0006)
1508275307.252653: event type EV_SYN(0x00).
1508275307.363014: event type EV_MSC(0x04): scancode = 0x1f002b
1508275307.363014: event type EV_KEY(0x01) key_down: KEY_6(0x0007)
1508275307.363014: event type EV_SYN(0x00).
1508275307.408518: event type EV_MSC(0x04): scancode = 0x1f002b
1508275307.408518: event type EV_SYN(0x00).
1508275307.552700: event type EV_MSC(0x04): scancode = 0x1f002b
1508275307.552700: event type EV_SYN(0x00).
1508275307.812654: event type EV_KEY(0x01) key_up: KEY_6(0x0007)
1508275307.812654: event type EV_SYN(0x00).

Link sull'argomento:

Andrea Montefusco
Currently employed as network architect, always Internet working man, real C/C++ programmer in the past, network and Unix system engineer as needed, HAM Radio enthusiast (former IW0RDI, now IW0HDV), aeromodeller (a person who builds and flies model airplanes) since 1976 (ex FAI10655).
http://www.montefusco.com - https://github.com/amontefusco - https://github.com/IW0HDV - andrew@montefusco.com



Le attività del TanzoLab si svolgono ogni mercoledi sera, salvo casi speciali, dalle ore 18:30 presso i locali della Acme Systems srl e consistono in:

  • Talk monotematici a cura di professionisti in vari settori tecnologici
  • Workshop pratici su elettronica embedded, produzione e informatica
  • Progettazione e realizzazione di nuovi prodotti embedded per l'IT

Le attività vengono coordinate tramite questo sito, in cui vengono pubblicati tutti i lavori svolti o in via di sviluppo, e tramite un gruppo Telegram con cui per interagire direttamente via chat con gli altri membri.