MrNice
Posts: 72
Joined: Thu Oct 17, 2013 10:18 am

Install IrScrutinizer on RPi2/Raspbian Buster

Sun Dec 01, 2019 8:04 pm

Hello,
I did this project 3 years ago and it was working fine. Now with the new version I need help.
I want to setup my RPi2 as a remote control tool with IrScrutinizer http://www.hifi-remote.com/wiki/index.p ... izer_Guide
I built a board with transmitter and receiver LEDs connected to GPIO pins

I can't find a recent howto the the new software version.

I installed Raspbian with Noobs then openjdk then IrScrutinizer then lirc.
Now I need to install the driver to set the good GPIO output.
Could you help me to copy lirc_rpi.ko in the good place and tell me how to setup the gpio pins.
http://www.harctoolbox.org/lirc_rpi.html

Thank you for your help

Edit:
I can run IrScrutinizer. I can transmit a signal and see it with a webcam.
However when I try to capture (test button) I get the error message:
"HarcHardwareException: Hardware based exception: org.harctoolbox.devslashlirc.NotSupportedException Hardware does not support receiving"

So I'd guess the driver is not setup.
Any help?
Last edited by MrNice on Fri Dec 27, 2019 5:51 pm, edited 2 times in total.

MrNice
Posts: 72
Joined: Thu Oct 17, 2013 10:18 am

Re: Install IrScrutinizer on RPi2/Raspbian Buster

Tue Dec 03, 2019 3:05 pm

I got it.
I learned that .ko files are used by the kernel.
In Raspbian they are in ib/modules/4.19.75+/kernel/ and organised in sub directories.
I found lib/modules/4.19.75+/kernel/drivers/media/rc/ where IR remote file are and I copied the lirc_rpi.ko file in.

Now it's working fine.Thank you anyway.

MrNice
Posts: 72
Joined: Thu Oct 17, 2013 10:18 am

Re: Install IrScrutinizer on RPi2/Raspbian Buster

Fri Dec 27, 2019 5:56 pm

I am back to this thread as again Irscrutinizer is not working.

After 2 weeks I want to use it again but when I set "Capturing HW" to /dev/lirc" and push "test" I get the error message:
"HarcHardwareException: Hardware based exception: org.harctoolbox.devslashlirc.NotSupportedException Hardwaree does not support receving"

I can't find what is wrong now and has not a clue the way to debug. Is there a way to get a log?

Thank you for your help

MrNice
Posts: 72
Joined: Thu Oct 17, 2013 10:18 am

Re: Install IrScrutinizer on RPi2/Raspbian Buster

Mon Dec 30, 2019 1:10 pm

I tried different how to, reinstalled Raspbian and all settings, unsuccessfully.
Anybody to help me ?
Thanks

MrNice
Posts: 72
Joined: Thu Oct 17, 2013 10:18 am

Re: Install IrScrutinizer on RPi2/Raspbian Buster

Tue Dec 31, 2019 5:50 pm

I got information from http://www.hifi-remote.com/forums/viewt ... p?t=102288

The issue is due to the new driver gpio-ir. It works only as sender, not receiver.
I'm struggling to get a driver same as /dev/lirc that support IR receiving from GPIO.

Is it possible to use the old one lirc_rpi with Raspbian 10 Buster, how?
Should I use Raspbian 9 Stretch?
I am not very skilled, please be explicit in the way to fix it. An howto should be great.

Thank you for your help

Barf
Posts: 11
Joined: Tue Dec 06, 2016 11:42 am

Re: Install IrScrutinizer on RPi2/Raspbian Buster

Wed Jan 01, 2020 6:11 pm

This is not really a support request for IrScrutinizer; it is all about /dev/lirc and what recently happened with it. Since you phrased it as IrScrutinizer support, no-one felt compelled to answer.

There are a number of thread coverring lirc_rpi -> gpio_ir_[rx|tx] migration. Repeating some stuff from these theads, lirc_rpi is dead, and resurrect it would be a lot of worlk and not be a good idea. Instead you use the gpio stuff, possibly also pwm_ir_tx. Put

Code: Select all

dtoverlay=gpio-ir,gpio_pin=18
dtoverlay=gpio-ir-tx,gpio_pin=12
in /boot/config.txt (adjust the numbers to your actual ones), reboot, and you should be going. There will now be two device files /dev/lirc0 and /dev/lirc1, one can send and one can receive. (Unfortunately which one is not really deterministic..., use udev rules if you need it (or use only one)). So you select the receiving one in IrScrutinizer and you should be going (unless you want to send).

MrNice
Posts: 72
Joined: Thu Oct 17, 2013 10:18 am

Re: Install IrScrutinizer on RPi2/Raspbian Buster

Wed Jan 01, 2020 7:37 pm

Thank you Barf for this answer on a first of January. Happy New Year!

Unfortunately, I am afraid this is not the issue. I did not mention it but I uncommented the 2 lines in /boot/config.txt.

Code: Select all

dtoverlay=gpio-ir,gpio_pin=24
dtoverlay=gpio-ir-tx,gpio_pin=25
As I explained in my post Tue Dec 31, 2019 12:52 pm in the thread above (hi-fi-remote.com), I tried the both /dev/lirc0 and /dev/lirc1 with the same result, error.

I'll try again from scratch, so I sum up the setups:
- Install IRscrutinizer following the howto http://www.harctoolbox.org/IrScrutinize ... stallation chapter "Generic Binary"
- Uncomment the 2 lignes in /boot/config.txt. Change the pin numbers as needed
- Follow this post viewtopic.php?p=1486070&sid=085abc5bf80 ... 8#p1486070
  • Attempt install of lirc (It wiill fail but will create directory structure etc):
  • Rename the LIRC config file:
  • Update the following lines in /etc/lirc/lirc_options.conf:
  • Finish installation of LIRC:
This should be enough to run. Select one /dev/lirc(0/1) to send the other to receive.
Do I forget something?

Barf
Posts: 11
Joined: Tue Dec 06, 2016 11:42 am

Re: Install IrScrutinizer on RPi2/Raspbian Buster

Wed Jan 01, 2020 8:13 pm

You do not need Lirc. Delete it.

please do

Code: Select all

ir-ctl -f -d /dev/lirc0
ir-ctl -f -d /dev/lirc1
lsmod | grep gpio
in the shell and post the output.

MrNice
Posts: 72
Joined: Thu Oct 17, 2013 10:18 am

Re: Install IrScrutinizer on RPi2/Raspbian Buster

Thu Jan 02, 2020 6:46 pm

I did a new install
Raspbian 10 Buster
From ssh (commands not in one row):

Code: Select all

sudo apt update
sudo apt full-upgrade

sudo apt install openjdk-8-jre

sudo vi /boot/config.txt
dtoverlay=gpio-ir,gpio_pin=24
dtoverlay=gpio-ir-tx,gpio_pin=25

sudo mkdir /usr/local/share/irscrutinizer
cd /usr/local/share/irscrutinizer
sudo unzip /home/pi/Downloads/IrScrutinizer-2.1.0-bin.zip 
sudo ./setup-irscrutinizer.sh
Reboot
I didn't install lirc
I didn't copy lirc_rpi.ko to kernel tree ( /lib/modules/4.19.75+/kernel/drivers/media/rc/ )
Should I install lirc_rpi.ko?

From ssh

Code: Select all

pi@raspberrypi:~ $ ir-ctl -f -d /dev/lirc0
Receive features /dev/lirc0:
 - Device cannot receive
Send features /dev/lirc0:
 - Device can send raw IR
 - IR scancode encoder
 - Set carrier
 - Set duty cycle
pi@raspberrypi:~ $ ir-ctl -f -d /dev/lirc1
Receive features /dev/lirc1:
 - Device can receive raw IR
 - Can report decoded scancodes and protocol
 - Can set receiving timeout min:1 microseconds max:1250000 microseconds
Send features /dev/lirc1:
 - Device cannot send
pi@raspberrypi:~ $ lsmod | grep gpio
gpio_ir_recv           16384  0
gpio_ir_tx             16384  0
But I still get the error message with the both /dev/lirc0 and /dev/lirc1
HarcHardwareException: Hardware based exception: org.harctoolbox.devslashlirc.NotSupportedException Hardware does not support receiving

Other idea? Many thanks
Edit: I just did a reboot and now I don't get the error any more.
At least it's working receiving IR signal!

I'll go further on test and let you know

MrNice
Posts: 72
Joined: Thu Oct 17, 2013 10:18 am

Re: Install IrScrutinizer on RPi2/Raspbian Buster

Sat Jan 04, 2020 3:46 pm

Working fine now... but I need to learn Irscrutinizer usage and mainly IR protocols.
I'll try to find in hifi-remote more info or post if I can't find.

Thank you Barf for your help

Return to “Raspberry Pi OS”