USB-UIRT Forum Forum Index USB-UIRT Forum
Plug-n-Play IR Solution
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Lirc Howto 2 (troubleshooting)

 
Post new topic   Reply to topic    USB-UIRT Forum Forum Index -> Installation
View previous topic :: View next topic  
Author Message
MM



Joined: 30 Sep 2006
Posts: 13

PostPosted: Fri Nov 10, 2006 6:11 pm    Post subject: Lirc Howto 2 (troubleshooting) Reply with quote

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:
hw_uirt2usb_raw.c:55: error: static declaration of ‘debug’ follows non-static declaration

Code:
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:
const int REPEAT_COUNT = 2;

With:
Code:
const int REPEAT_COUNT = 1;

commands will only transmitted once.

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

Code:
#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:
+   const int REPEAT_COUNT = 2;

to
Code:
+   const int REPEAT_COUNT = 1;


Else you can start here:

Change from

Code:
# 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:
# 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:
static int debug = 3;

to
Code:
//static int debug = 3;


Now still in the lirc folder
Code:
# 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:
#lircd -d /dev/ttyUSB0 -n


and irrecord with

Code:
#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_IR_LED_TX_via_Modified_LIRC.html(jds-myth site)
Back to top
View user's profile Send private message
benow



Joined: 17 Oct 2005
Posts: 16

PostPosted: Thu Jul 05, 2007 6:49 am    Post subject: Reply with quote

Great stuff... howto updated to include the //, the =1 and the --force. Thanks.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    USB-UIRT Forum Forum Index -> Installation All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group