I am trying to get the LIRC GPIO driver to work. The module loads fine, but if I try to start irw with irw /dev/lirc0, I only get the error message "connect: Connection refused".
If I watch the signal on the GPIO line with an oscilloscope, I see that the TSOP sends a different signal whenever I press a key on my remote.
Do you have any advice how to fix this?
dmesg:
Code: Select all
[ 587.966582] lirc_dev: IR Remote Control driver registered, major 248
[ 587.972199] lirc_rpi: module is from the staging directory, the quality is unknown, you have been warned.
[ 587.975886] lirc_rpi lirc_rpi.0: lirc_dev: driver lirc_rpi registered at minor = 0
[ 587.975913] lirc_rpi: driver registered!
[ 588.926899] lirc_rpi: auto-detected active high receiver on GPIO pin 18
Testing:
Code: Select all
root@raspberrypi:/etc/lirc# irw /dev/lirc0
connect: Connection refused
root@raspberrypi:/etc/lirc# ls -l /dev/lirc*
crw-rw---T 1 root video 248, 0 Mär 13 18:49 /dev/lirc0
root@raspberrypi:/etc/lirc# lsmod
Module Size Used by
lirc_rpi 7266 0
lirc_dev 10156 1 lirc_rpi
bnep 10574 2
bluetooth 193568 7 bnep
rfkill 18202 2 bluetooth
nfsd 229441 2
snd_bcm2835 15846 0
snd_pcm 77560 1 snd_bcm2835
snd_page_alloc 5145 1 snd_pcm
snd_seq 53329 0
snd_seq_device 6438 1 snd_seq
snd_timer 19998 2 snd_pcm,snd_seq
snd 58447 5 snd_bcm2835,snd_timer,snd_pcm,snd_seq,snd_seq_device
joydev 9316 0
evdev 9426 4
leds_gpio 2235 0
led_class 3562 1 leds_gpio
root@raspberrypi:/etc/lirc# cat /proc/interrupts
CPU0
3: 3378745 ARMCTRL BCM2708 Timer Tick
32: 2961059 ARMCTRL dwc_otg, dwc_otg_pcd, dwc_otg_hcd:usb1
52: 0 ARMCTRL BCM2708 GPIO catchall handler
65: 7401 ARMCTRL ARM Mailbox IRQ
66: 1 ARMCTRL VCHIQ doorbell
75: 1 ARMCTRL
77: 15587 ARMCTRL bcm2708_sdhci (dma)
83: 19 ARMCTRL uart-pl011
84: 36051 ARMCTRL mmc0
FIQ: usb_fiq
Err: 0
root@raspberrypi:/etc/lirc#