crashboogie
Posts: 34
Joined: Thu Aug 04, 2016 4:03 am

Not receiving signals from IR remote to LIRC

Sat Apr 22, 2017 5:30 am

Having some trouble here. Cant receive signals from any remote I have to my Rpi1. I've tried both
sudo irrecord -d /dev/lirc0 -n capture
and
mode2 -d dev/lirc0
neither work. I'm going off this http://www.raspberry-pi-geek.com/Archiv ... -IR-remote tutorial. Even tried to switch out the receiver and LED thinking they were DOA. Hoping someone can point out my dumb mistake in wiring or config.

I'm using these:
https://www.amazon.com/gp/product/B00EF ... UTF8&psc=1
I'm trying to get my LG air remote to work for it (remote model #6711A20066L) and it picks it up just fine on my arduino and outputs with this module http://g02.a.alicdn.com/kf/HTB1WWRxMXXX ... uino-6.jpg and outputs the code below. Is there possibly a way to just take this output and plug it into lirc? I believe I saw a function on either mode2 or irrecord that had a "-a" option to analyse a file with the raw data output but I wasn't sure of how it should be formatted and such. config files are also below. Thanks for any help. :D

Power button

Code: Select all

Starting
4476
1658
542
540
542
543
542
543
1656
543
1658
1659
542
543
1658
1656
542
1661
544
544
543
543
543
543
1658
544
1655
1657
1655
1658
1657
1654
569
42115
2254
95603
2234
95607
2232
95608
2257
95609
2236
0
0
0
0
0
0
0
Temp down:

Code: Select all

Starting
4477
1659
543
542
542
542
542
544
1659
542
1682
1683
540
543
1658
1657
543
1660
543
1660
543
544
544
543
1683
542
1660
543
1658
1656
1660
1658
541
42117
2234
95606
2232
95606
2231
95606
2235
95606
2236
95606
2235
95609
2234
95608
2235
0
Temp up:

Code: Select all

Starting
4476
1684
544
545
545
543
544
544
1684
543
1684
1683
544
545
1684
1660
545
1684
544
1684
544
544
543
544
1685
546
1684
545
1683
1684
1683
1685
543
42119
2232
95610
2234
95606
2234
95608
2210
95609
2234
95608
2235
95609
2234
0
0
0
Mode:

Code: Select all

Starting
4476
1683
542
543
542
543
543
544
1661
544
1683
1684
545
542
1683
1660
544
1684
1683
546
1684
1684
544
545
1684
545
545
1684
543
544
1661
1661
544
42119
2237
95611
2233
95609
2235
95609
2236
95609
2235
95610
2235
0
0
0
0
0
/boot/config

Code: Select all

# For more options and information see
# http://www.raspberrypi.org/documentation/configuration/config-txt.md
# Some settings may impact device functionality. See link above for details

# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1

# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
#disable_overscan=1

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16

# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720

# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2

# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4

# uncomment for composite PAL
#sdtv_mode=2

#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800

# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on

# Uncomment this to enable the lirc-rpi module
dtoverlay=lirc-rpi, gpio_out_pin=22

# Additional overlays and parameters are documented /boot/overlays/README

# Enable audio (loads snd_bcm2835)
dtparam=audio=on

# NOOBS Auto-generated Settings:
hdmi_force_hotplug=1
/etc/modules

Code: Select all

# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.

i2c-dev
lirc_dev
lirc_rpi, gpio_out_pin=22

/etc/lirc/hardware.conf

Code: Select all

# /etc/lirc/hardware.conf
#
# Arguments which will be used when launching lircd
LIRCD_ARGS="--uinput"

#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD=false

#Don't start irexec, even if a good config file seems to exist.
#START_IREXEC=false

#Try to load appropriate kernel modules
LOAD_MODULES=true

# Run "lircd --driver=help" for a list of supported drivers.
DRIVER="default"
# usually /dev/lirc0 is the correct setting for systems using udev 
DEVICE="/dev/lirc0"
MODULES="lirc_rpi"

# Default configuration files for your hardware if any
LIRCD_CONF=""
LIRCMD_CONF=""

User avatar
joan
Posts: 15101
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: Not receiving signals from IR remote to LIRC

Sat Apr 22, 2017 8:11 am

The lirc entries in /etc/modules are at least redundant and may actually be harmful when using device tree. I think the device tree entry in /boot/config.txt is all you need.

Are you sure your receiver is connected to the default LIRC input GPIO? Do you have an IR blaster connected to GPIO 22?

I presume you are trying to receive signals rather than transmit them.

crashboogie
Posts: 34
Joined: Thu Aug 04, 2016 4:03 am

Re: Not receiving signals from IR remote to LIRC

Sat Apr 22, 2017 7:13 pm

Thanks for the response. I ended up just connecting the receiver directly to the pi through different wiring and was able to capture the codes. Now the light is not responding though. Some of your posts actually helped me a great deal though, like for example the one here:
https://raspberrypi.stackexchange.com/q ... rt-sending
and this one
viewtopic.php?f=28&t=79828

but now as I said the light will not respond and I've posted a new topic here
viewtopic.php?f=63&t=181281

Return to “General discussion”