-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
irrecord 0x0 #28
Comments
Hi, Thank you for using ANAVI Infrared pHAT. The steps for installing and configuring Raspbian Buster have been described in the user's manual section Infrared and LIRC. I will try to help you debug the issue you are having. Could you please open a terminal, type in the following commands and share the output?
Best regards, |
Hi Leon,
Thank you so much for your quick response! Here are my outputs.
pi@raspberrypi:~ $ lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 10 (buster)
Release: 10
Codename: buster
pi@raspberrypi:~ $ lircd -v
lircd 0.10.1
…On Sun, Apr 19, 2020 at 12:15 AM Leon Anavi ***@***.***> wrote:
Hi,
Thank you for using ANAVI Infrared pHAT. The steps for installing and
configuring Raspbian Buster have been described in the user's manual
section *Infrared and LIRC*
<https://github.com/AnaviTechnology/anavi-docs/blob/master/anavi-infrared-phat/anavi-infrared-phat.md#infrared-and-lirc>
.
I will try to help you debug the issue you are having. Could you please
open a terminal, type in the following commands and share the output?
- Check Raspbian version:
lsb_release -a
- Check LIRC version:
lircd -v
Best regards,
Leon
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#28 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEGXVFKAWTLZKCIFSRFX6PDRNKQIDANCNFSM4MLVELWA>
.
|
Hi @MargaritaZheng, It seems you are using the right versions. However, as far as I can see your configuration files are not correct. Please fix the following the user's manual. Some pointers:
Device
Please note the exact pins. You can just copy & paste these lines. The line must not be commented, aka it should start without Best regards, |
I apologize, I think I did not copy and paste the entire config file. I had
those two lines
dtoverlay=gpio-ir,gpio_pin=18
dtoverlay=gpio-ir-tx,gpio_pin=17
at the bottom of the config file and they did not copy paste over when
I posted my issue. I had followed the installation instructions from
your github and had made those changes already.
…On Sun, Apr 19, 2020 at 2:30 PM Leon Anavi ***@***.***> wrote:
Hi @MargaritaZheng <https://github.com/MargaritaZheng>,
It seems you are using the right versions. However, as far as I can see
your configuration files are not correct. Please fix the following the
user's manual
<https://github.com/AnaviTechnology/anavi-docs/blob/master/anavi-infrared-phat/anavi-infrared-phat.md#infrared-and-lirc>.
Some pointers:
- For scanning a remote control in /etc/lirc/lirc_options.conf set
device to /dev/lirc1:
driver = default
device = /dev/lirc1
Device /dev/lirc1 is the receiver and device /dev/lirc0 is the
transmitter. Initially /dev/lirc1 is used to scan a remote control. After
that the configuration has to be updated to /dev/lirc0 in order to send
infrared commands.
- In /boot/config.txt:
dtoverlay=gpio-ir,gpio_pin=18
dtoverlay=gpio-ir-tx,gpio_pin=17
Please note the exact pins. You can just copy & paste these lines. The
line must *not* be commented, aka it should start without #. The line for
lirc-rpi that you have right now should be removed.
Best regards,
Leon
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#28 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEGXVFIUAS3AI3SQGFXXBQDRNNUO5ANCNFSM4MLVELWA>
.
|
OK, but you still need to remove Also do you have the following lines in
Best regards, |
Yes, I have those lines in my /etc/modules. And I had uncommented the
dtoverlay=lirc-rpi
out of desperation, but I have run it with it commented out and it still
does not record any signals.
…On Sun, Apr 19, 2020 at 3:58 PM Leon Anavi ***@***.***> wrote:
OK, but you still need to remove dtoverlay=lirc-rpi from /boot/config.txt.
In 2019, with the release Buster of Raspbian, module *lirc_rpi*, the
Linux kernel module provided with Raspbian before, was replaced with
*gpio-ir* and *gpio-ir-tx*. If you are interested in details have a look
here <https://blog.anavi.technology/?p=1>.
Also do you have the following lines in /etc/modules?
lirc_dev
lirc_rpi gpio_in_pin=18 gpio_out_pin=17
Best regards,
Leon
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#28 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEGXVFJLCNTTOQ5G2XE5XILRNN62TANCNFSM4MLVELWA>
.
|
Have you downloaded and build from source LIRC (with the required patch) as explained in the appropriate section of the user's manual? Please note that you have to do all steps from the user's manual exactly. Even if a single configuration is different this may result in issues as the ones you are currently experiencing. What output do you get when you run in a terminal the following commands and start pressing keys on the remote control?
Best regards, |
Yes, I downloaded and built from source LIRC with the patches as
explained in the manual.
When I run mode2, I get a long series of
start
pulse
numbers. They run without me pressing any keys on the remote control,
however.
…On Sun, Apr 19, 2020 at 4:33 PM Leon Anavi ***@***.***> wrote:
Have you downloaded and build from source LIRC (with the required patch)
as explained in the appropriate section of the user's manual
<https://github.com/AnaviTechnology/anavi-docs/blob/master/anavi-infrared-phat/anavi-infrared-phat.md#setting-up-lirc>
?
Please note that you have to do all steps from the user's manual exactly.
Even if a single configuration is different this may result in issues as
the ones you are currently experiencing.
What output do you get when you run in a terminal the following command
and start pressing keys on the remote control?
mode2 -d /dev/lirc1
Best regards,
Leon
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#28 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEGXVFPTYZR3CJGNN5LO2MTRNOC4BANCNFSM4MLVELWA>
.
|
Hi @MargaritaZheng, Earlier today I've followed the steps in the user's manual and LIRC was working fine on Rapsbian Buster and Raspberry Pi 4. Command Could you please double check and share your exact Best regards, P.S. |
Thanks so much for taking a look at this Leon. |
Hi @MargaritaZheng, lirc_options.txt looks good. Your config.txt also looks ok with a couple of remarks: UART is disable and SPI is enabled. ANAVI Infrared pHAT has a UART pins for serial communication and does not use SPI. It is recommended to:
For a reference here is a
However, technically speaking neither UART nor SPI are connected to the LIRC features on the board. Before running Another explanation might be some kind of infrared light interference detected by LIRC while running ANAVI Infrared pHAT relies on Vishay TSOP34838 infrared receiver module and all boards have been carefully manually tested before providing them to distributors and customers. So the board you have has passed QA checks, including with the Best regards, |
Hi Leon, I changed my config file to match the one you sent. And yes, I am running sudo systemctl stop lircd before testing with mode2. However, I still get many pulse space responses without pressing the remote button. In addition, I have tried this in different rooms of my house and I am still getting the same result. Is there anything else I can try? |
Hi @MargaritaZheng, Sorry for my slow reply. I am running out of ideas. It seems you are doing the configuration properly. I'm attaching the deb files build from the patches LIRC source following the procedure in the user's manual: You can give them a try. There are from my fresh install of the setup on rpi4. In general, all boards have been manually tested before providing them to distributors and customers. If you think you may be experiencing the issues due to damage during the transportation please send an email to info at anavi.technology. Right now shipping replacements is almost impossible due to logistic implications from the COVID-19 outbreak but we will figure out something... Best regards, |
Hi Leon, Thank you for trying to debug this with me. I think there is something wrong with the board, possibly from shipping, as I have just run through the entire process again on a brand new raspberry pi 4 running buster, and I am getting the same results. I will send an email shortly. Best, |
Hi Leon, I appear to have this same issue also.
When running If i point my remote at IRRX I am also getting space XXX and pulse XXX. The issue comes with
Any tips? |
Hi @xXAzazelXx, Please made sure there is no interference that might be caused by radio signals or other infrared devices. Try scanning the remote control with
What remote control are you trying to scan? If you are trying to scan a remote control of AC you will need a different approach as explained here (however keep in mind that the article is a bit outdated and the steps nowadays might be slightly different): Best regards, |
Hi @leon-anavi Thank you, I think I am now getting another issue, I'm happy to open a new issue if you would like.
Anyway, after reboot, once again I am getting signals with
pi@raspberrypi:~ $ irsend list sony ""
Command:
LOGS:
|
Hi @xXAzazelXx, Well done for solving the issue with scanning remote controls. Could you please open a separate issue about the infrared transmission with all you configuration details? Thanks, |
I am using the ANAVI ir recorder on Buster on my Raspberry Pi 4. I have installed all patches as detailed by the installation guides in this repo.
I am able to complete the irrecord process, however, all commands are saved as 0x0. I have tried with 3 different IR remotes.
Please help me, I have been trying this for days.
My /etc/lirc/lirc_options.conf:
[lircd]
nodaemon = False
driver = default
device = /dev/lirc1
output = /var/run/lirc/lircd
pidfile = /var/run/lirc/lircd.pid
plugindir = /usr/lib/arm-linux-gnueabihf/lirc/plugins
permission = 666
allow-simulate = No
repeat-max = 600
Here is my config file:
/boot/config.txt
Uncomment some or all of these to enable the optional hardware interfaces
dtparam=i2c_arm=off
#dtparam=i2s=on
#dtparam=spi=on
Uncomment this to enable the lirc-rpi module
dtoverlay=lirc-rpi
#dtoverlay=lirc-rpi,gpio-in_pin=18,gpio_out_pin=17
#dtoverlay=gpio-ir,gpio_pin=17
#dtoverlay=gpio-ir-tx,gpio_pin=18
#dtoverlay=gpio-ir,gpio_out_pin=17,gpio_in_pin=18,gpio_in_pull=up
Additional overlays and parameters are documented /boot/overlays/README
Enable audio (loads snd_bcm2835)
dtparam=audio=on
#audio_pwm_mode = 2
[pi4]
Enable DRM VC4 V3D driver on top of the dispmanx display stack
dtoverlay=vc4-fkms-v3d
max_framebuffers=2
[all]
#dtoverlay=vc4-fkms-v3d
#dtoverlay=lirc-rpi,gpio_in_pin=18,gpio_out_pin=17
NOOBS Auto-generated Settings:
hdmi_force_hotplug=1
dtparam=spi=on
#dtoverlay=lirc-rpi,gpio_in_pin=18,gpio_out_pin=17
dtoverlay=gpio-ir,gpio_pin=18
The text was updated successfully, but these errors were encountered: