플랫폼
- Raspberry pi 2 B+
- openelec / kodi helix 14.x
- 늘솜 GPIO 확장 키트 + ir receiver(TSOP38238)
GPIO IR receiver Don't have a CEC TV or a smartphone remote? For less than a dollar/euro, you can add an IR receiver to your Raspberry Pi that works with most MCE and Apple remotes (and a few others). Most Kodi install options for the Pi should work with the GPIO IR out of the box, or by enabling a setting from within Kodi. Go to a local electronics store or search on ebay for "TSOP4838" and use some simple jumper wires (or solder the pins directly, if you wish). (We need a link to a good, up to date GPIO IR guide. Most of the links I found are outdated and contain instructions for additional configurations that are no longer required. If you find a good link/guide, please add it to the wiki.) If you are using OpenELEC just add this to your config.txt file: device_tree_overlay=lirc-rpi |
[링크 : http://wiki.openelec.tv/index.php/Guide_To_lirc_rpi_GPIO_Receiver]
[링크 : http://wiki.openelec.tv/index.php/Guide_to_add_your_own_remote]
[링크 : http://www.alessandrocolla.com/configuring-ir-remote-control-openelec-5-0/]
config.txt에 넣어 나서 부팅로그
OpenELEC:~ # dmesg | grep -i lirc [ 5.581824] lirc_dev: IR Remote Control driver registered, major 248 [ 5.601775] lirc_rpi: module is from the staging directory, the quality is unknown, you have been warned. [ 6.495878] lirc_rpi: auto-detected active high receiver on GPIO pin 18 [ 6.498306] lirc_rpi lirc_rpi: lirc_dev: driver lirc_rpi registered at minor = 0 [ 6.498585] lirc_rpi: driver registered! [ 6.822791] input: lircd as /devices/virtual/input/input1 |
OpenELEC:~ # ps -ef | grep -i lirc 213 root 0:00 /usr/sbin/eventlircd -f --evmap=/etc/eventlircd.d --socket=/run/lirc/lircd --release=_UP 386 root 3:28 /usr/lib/kodi/kodi.bin --standalone -fs --lircdev /run/lirc/lircd 390 root 0:00 /usr/sbin/lircd --uinput --driver=default --device=/dev/lirc0 --output=/run/lirc/lircd-lirc0 --pidfile=/run/lirc/lircd-lirc0.pid /etc/lirc/lircd.conf.rpi 530 root 0:00 grep -i lirc |
나머지는... 땜질 다시 하고 나서 ㅠㅠ
+
경로가 미묘하게 다른거 같은데.. 다른 설정도 있나..
아니면 땜질하다가 부품 태워먹었나.. ㅠㅠ
irw /var/run/lirc/lircd-lirc0
-> irw /run/lirc/lircd-lirc0
# ir-keytable -p LIRC
Couldn't find any node at /sys/class/rc/rc*.
# ir-keytable -p LIRC -d /sys/class/lirc/lirc0
Unable to query evdev protocol version: Inappropriate ioctl for device
'embeded > raspberry pi' 카테고리의 다른 글
라즈베리 파이 2 - 적외선 수신기... -_- (0) | 2015.04.24 |
---|---|
라즈베리 파이 2 - 늘솜 GPIO 확장보드 손보기 (0) | 2015.04.23 |
라즈베리 파이 / raspbian + raspi-config (0) | 2015.04.22 |
라즈베리 오버클럭 테스트 링크 (0) | 2015.04.22 |
라즈베리 파이 2 늘솜 확장보드 - 어? 길이가..!!? (0) | 2015.04.21 |