Lirc Howto 2 (troubleshooting)

Issues relating to installation of your USB-UIRT device.

Moderator: jrhees

Lirc Howto 2 (troubleshooting)

Postby MM » Fri Nov 10, 2006 6:11 pm

If you are having troubles get the USB UIRT to work with LIRC, here's how i finally get it working.

BTW: If you need Linux support don't buy a USB-UIRT !!!
Nearly every Infrared Receiver Transmitter has native Lirc support except the USB-UIRT !!!

You followed the Lirc Howto but get this Errors:

Code: Select all
hw_uirt2usb_raw.c:55: error: static declaration of ‘debug’ follows non-static declaration

Code: Select all
libtool unrecognized option --tag=cc


The reason for this is that the patch changes the LIRC configuration, which in turn forces automake to run again. When automake runs, it calls the system version of libtool for configure to use. The problem is that lirc is packed with an older version of libtool that gets used when you run make. So, an old version of libtool is being run from a script generated by a newer version. The solution?
In the lirc source directory:
/usr/src/lirc* or whatever yours happens to be
# libtoolize --force
This replaces the libtool version that's with the lirc source to be linked to the system libtool. Now when automake runs, it calls the system version rather than the source version.

You followed the Lirc Howto but get this Error at transmitting:

Every command that you transmit will be send twice

The patch uses:
Code: Select all
const int REPEAT_COUNT = 2;

With:
Code: Select all
const int REPEAT_COUNT = 1;

commands will only transmitted once.

That is still faraway from a good solution but now i can:

Code: Select all
#irsend send_once humax 1 2 3 4


that will change to channel 1234 on my humax cable box.(And not to channel 11223344)

Troubleshooting:

If you also have the "transmitted twice bug" then do this before you follow benow's guide !

Edit the patch at line 2362
Code: Select all
+   const int REPEAT_COUNT = 2;

to
Code: Select all
+   const int REPEAT_COUNT = 1;


Else you can start here:

Change from

Code: Select all
# tar xvfj lirc-0.7.1.tar.bz2
# cd lirc-0.7.1
# bzcat ../lirc-0.7.1-usb_uirt.patch.bz2 | patch -p1
# ./setup.sh
choose Driver Configuration->USB Devices->USB-UIRT2 (receive and transmit)
choose Save Configuration & Exit

to
Code: Select all
# tar xvfj lirc-0.7.1.tar.bz2
# cd lirc-0.7.1
# bzcat ../lirc-0.7.1-usb_uirt.patch.bz2 | patch -p1


Now open the lirc-0.7.1/daemons folder and edit the hw_uirt2usb_raw.c file:

At line 55 change
Code: Select all
static int debug = 3;

to
Code: Select all
//static int debug = 3;


Now still in the lirc folder
Code: Select all
# libtoolize --force
# ./setup.sh
choose Driver Configuration->USB Devices->USB-UIRT2 (receive and transmit)
choose Save Configuration & Exit


Follow benow's guide and be prepared for more troubles !

P.S.

i need to run lircd with

Code: Select all
#lircd -d /dev/ttyUSB0 -n


and irrecord with

Code: Select all
#irrecord -l lircd.conf -d /dev/ttyUSB0


Thanks to David Norwood (FTDI), neveld (patch), benow (howto), jds-myth(libtoolize --force), Nathan(//static int debug = 3)

The lirc authors are more than willing to add the USB-UIRT to the supported devices.

If you want to write a driver here are some links:

http://ftdi-usb-sio.sourceforge.net/#references
http://www.nabble.com/LIRC-f2054.html (meet the lirc staff)
http://misterhouse.sourceforge.net/ (linux usb-uirt support perl)
http://www.eventghost.org (windows usb-uirt support python)

http://www.mmdsi.com/mythtv/MythTV_DISH ... l(jds-myth site)
MM
 
Posts: 13
Joined: Sat Sep 30, 2006 6:10 pm

Postby benow » Thu Jul 05, 2007 6:49 am

Great stuff... howto updated to include the //, the =1 and the --force. Thanks.
benow
 
Posts: 16
Joined: Mon Oct 17, 2005 6:51 pm


Return to Installation

Who is online

Users browsing this forum: No registered users and 18 guests

cron