2021年11月23日 星期二

XBOX original remote on OSMC issue

 最主要的問題在於, 最新的 OSMC 19 做的一些改變 :

 (1). 換成用 gpio-ir-recv 及 gpio-ir-tx

 (2). lircd 的參數(原本從 hardware.conf 或 lirc_option.conf 指定)

   要將 driver 從 devinput 換成 default

  (1) 造成的影響, 會造成在 /boot/config.txt(或 config-user.txt) 中

  dtoverlay=lirc-rpi,...   的修改, 變成 

  dtoverlay=gpio-ir,...

  而這部分直接在 OSMC config->RPI config->hardware 中

  可以透過 UI 就可以修改

  (2) 造成的影響, 原本使用 raw 方式操作的程式,

  例如 mode2 或 irrecord, 收到的資料方式不同.

  所以如果用 devinput, 應該就是針對現成的格式 decode,

  例如 rc-5, 如果用 default, 就是用 raw timing. 因為

  xbox original remote 不是用標準格式可以解, 一定要走

  raw timing 方式, 不然就要搭配原本 xbox 的 IR 接收器,

  走 USB 進 RPi.


  有關於 devinput 及 default driver 的差別, 可以參考

https://stackoverflow.com/questions/62646773/lirc-driver-option-default-vs-devinput

   The devinput driver uses the kernel decoder, and feeds these decoded events to the lircd fifo. This fifo is what clients read from.

The default driver reads raw timing data from the kernel and makes it's own decoding using lircd.conf.

 In general, if the devinput driver works it could safely be used and is a simpler setup. The default driver is useful in contexts where the kernel decoding doesn't work for example when a remote isn't supported by the kernel or there is a need to send (blast) ir signals -- the latter cannot be done using the devinput driver. 

  Xbox original remote 的 config 檔, 可以參考

  https://forum.libreelec.tv/thread/12272-xbox-original-remote-on-kodi-leia-problems-to-create-keytable-no-events/ 


沒有留言:

張貼留言