Dangerous Prototypes

Dangerous Prototypes => USB Infrared Toy => Topic started by: clueo8 on June 05, 2015, 05:07:03 pm

Title: USB IR Toy V2 + Lirc + Raspberry Pi (2015)
Post by: clueo8 on June 05, 2015, 05:07:03 pm
Seems to be alot of older threads which mention that LIRC needs to be patched in order to support the IR Toy.  But it appears that a newer version of LIRC which is not in the repos (needs to be compiled yourself) supports it, correct?

I think I flashed my firmware to v22, but I was wondering if there was a way to verify what firmware you have (from Linux, I hate Windows).

Also, if anybody has a newer method for LIRC+RPi+IRToy that works today, can you please let me know?
Title: Re: USB IR Toy V2 + Lirc + Raspberry Pi (2015)
Post by: Barf on June 06, 2015, 08:37:06 am
Lirc (upstream) officially supports Irtoy since version 0.9.2, which was released on December 9. So if your distro does not have it yet, ask for it.

You can use IrScrutinizer (http://http://www/harctoolbox(IrScrutinizer.html)  for checking the FW version of the IrToy. It runs on Linux.
Title: Re: USB IR Toy V2 + Lirc + Raspberry Pi (2015)
Post by: clueo8 on June 08, 2015, 03:36:53 pm
I did read that it was added to LIRC, but the distros only have 0.9.0.  I'm having issues getting LIRC installed and running from git/src.  I get through the entire configure/make/make install and when trying to run lircd, irrecord, irw, I get:

error while loading shared libraries: liblirc.so.0: cannot open shared object file: No such file or directory

I've tried this on multiple computers, Raspberry Pi and Xubuntu; same result.  Not sure if I'm missing something?  I noticed there was already a post with this same error but they did not explain how they resolved this issue.
Title: Re: USB IR Toy V2 + Lirc + Raspberry Pi (2015)
Post by: DerIng on July 23, 2015, 01:26:57 pm
Hi clueo8,

did you fixed that issue? I am still fighting to get this running at Raspi2.

At least I managed to solve the problem
Quote
error while loading shared libraries: liblirc.so.0: cannot open shared object file: No such file or directory

by creating links from /usr/lib/ to /usr/local/lib/ (where LIRC installation copied the shared libs):

Code: [Select]
liblirc.so.0 -> /usr/local/lib/liblirc.so.0
libirrecord.so.0 -> /usr/local/lib/libirrecord.so.0

But at the end it's still not working. Tried to record a lircd configuration by running:
Code: [Select]
sudo /usr/local/bin/irrecord -U plugins/.libs/ -n -H irtoy -d /dev/ttyACM0 irTEST.conf
And got  message:
Code: [Select]
Could not init hardware (lircd running ? --> close it, check permissions)
(And lircd is not running!)
 So I am afraid that hardware initialisation with driver irtoy is not (yet) working.
Any ideas welcome!

DerIng
Title: Re: USB IR Toy V2 + Lirc + Raspberry Pi (2015)
Post by: Floppy on October 03, 2015, 10:18:44 pm
Look for Peter Kooiman's patches or use version 0.9.2 which has usb_irtoy support!
Title: Re: USB IR Toy V2 + Lirc + Raspberry Pi (2015)
Post by: cncook001 on January 02, 2016, 11:42:10 pm
If you use IrScrutinizer (v1.1.3) here is how to find the firmware version of your IR Toy.

Options -> Capturing Hardware -> IrToy

Next, click on the "Capturing hw" tab.

Click on "IrToy" tab, then click "Open".  Your firmware version will be displayed.

My device showed V212 which means Hardware V2 and firmware V12. Since latest firmware is V22, it is time to upgrade it.
Title: Re: USB IR Toy V2 + Lirc + Raspberry Pi (2015)
Post by: mhodgins on March 08, 2016, 09:15:24 pm
I had the same issues as DerIng (above). I was able to get around the shared lib issue by running:

Quote
./configure --prefix=/usr

By default, it installs everything in /usr/local

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.01102071376session_write_close ( )...(null):0
20.01132202968ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01142203744Database_MySQL->query( ).../DatabaseHandler.php:119
40.05742342480Database_MySQL->error( ).../Db-mysql.class.php:273