Ticket #161 (closed defect: fixed)

Opened 5 months ago

Last modified 7 weeks ago

I can recreate the "transmission failed" message

Reported by: theajaysharma Owned by: somebody
Priority: low Component: USB IR Transceiver
Version: Severity: major
Keywords: Cc:

Description

I'm on a beta of mythbuntu 9.10.

Following the getting started guide, and the installation instructions, I built lirc and installed the iguanaIR package. I've been getting the transmission error on several distro's (Gentoo, Centos 5.3, and mythbuntu) so I'd really like to get this resolved and hopefully get a package in MythBuntu? so we can have the installer set everything up for us.

Here's how I recreate the bug:

# igdaemon -n --receive-timeout=1000 --send-timeout=1000 -v

<in another window> # lircd -n --driver=iguanaIR --device=/dev/iguanaIR/0 /etc/lirc/lircd.conf

<in another window>

# irsend set_transmitters 3 # irsend send_once dish9 power

It works. So far so good. Now "ctrl-c" the igdaemon program, and restart it without killing lircd. Now when it's up and running I get:

# irsend set_transmitters 3 <--- so far so good # irsend send_once dish9 power <--- BOOM irsend: command failed: send_once dish9 power irsend: transmission failed

Funny, it still sent the power signal to my dish box, but it returns the error. I'll attach a log of the second

Attachments

igdaemon-transmission-error.log Download (10.0 KB) - added by theajaysharma 5 months ago.
igdaemon log with transmission error.

Change History

Changed 5 months ago by theajaysharma

igdaemon log with transmission error.

Changed 4 months ago by bluey

The new iguanair driver (1.0pre2) now supports the new version of libusb, which fixes a lot of problems with usb communication. Please upgrade to iguanair 1.0pre2 (and use new default config if asked). Install libusb-1.0-0. Run

igdaemon -nv

in terminal and check that the INFO line should say libusb.so and not not libusbpre1.so

If so, hopefully that will fix your problems. Let us know. As for mythbuntu packages, our standard .deb packages should work fine for mythbuntu and other debian- and ubuntu- based distros.

Changed 4 months ago by theajaysharma

Thanks for your response!

I loaded ip pre2 and I'm still getting the old libusbpre1.so:

INFO: Loaded driver: /usr/lib/iguanaIR/libusbpre1.so

I tried moving that out of /usr/lib and running 'ldconfig -v' but then I get:

ERROR: failed to find an loadable driver layer.

I did remove the old package, install the new version, and rebuilt lirc just in case. It seems to be a tiny bit more stable but I can still crash it if I tried.

Changed 4 months ago by bluey

Have you installed the libusb-1.0-0 package? If not, install that and try again. If that doesn't get you using the libusb.so (instead of libusbpre1.so), then please run

dpkg -l|grep libusb

and

ls -l /usr/lib/iguanaIR/

send me the output.

Changed 4 months ago by theajaysharma

still using the "pre" version:

debian:~# igdaemon -nv
Nov 17 18:44:19 2009 INFO: Loaded driver: /usr/lib/iguanaIR/libusbpre1.so
Nov 17 18:44:20 2009 INFO: Worker 0 starting
Nov 17 18:44:20 2009 INFO: Transaction: 0x1 (14723 microseconds)
Nov 17 18:44:20 2009 INFO: Found device version 0x306
Nov 17 18:44:20 2009 INFO: Transaction: 0x20 (23853 microseconds)
^CNov 17 18:44:22 2009 INFO: Device 0 released
Nov 17 18:44:22 2009 INFO: Worker 0 exiting
debian:~# 

I have debian stable installed on this box and was able to get the latest libusb-1.0-0 by pulling it down from testing. I can switch this to ubuntu if you think that would be better. Anyway, here's the output you asked for:

debian:~# dpkg -l|grep libusb
ii  libusb-0.1-4                      2:0.1.12-13              userspace USB programming library
ii  libusb-1.0-0                      2:1.0.3-2                userspace USB programming library
ii  libusb-dev                        2:0.1.12-13              userspace USB programming library development files

and...

debian:~# ls -l /usr/lib/iguanaIR/
total 32
-rw-r--r-- 1 root root 12500 2009-11-10 19:55 libusbpre1.so
-rw-r--r-- 1 root root 12910 2009-11-10 19:55 libusb.so

Changed 4 months ago by bluey

That's odd, if both libusb's are installed (and they appear to be), our driver should default to libusb.so and not the old one. Stop the igdaemon and run

igdaemon -nv --driver=libusb.so

you should get the output of

bluey@Hello:~/$ sudo igdaemon -nv --driver=libusb.so
Nov 17 21:11:27 2009 INFO: Loaded driver: /usr/lib/iguanaIR/libusb.so
Nov 17 21:11:27 2009 INFO: Worker 0 starting

If that fails, you can try adding "--only-preferred" to the arguments to stop it from using libusbpre1.so, but my guess is that it'll just not run instead of using the right libusb. Probably it isn't seeing libusb for some reason. The above is from an Ubuntu 9.10 (64bit) machine. Really should be the same for debian, but if you have access to try with Ubuntu, that would be interesting. Maybe debian is doing something different with libusb.

On the debian machine, send me the output of

dpkg -L libusb-1.0-0

Changed 4 months ago by theajaysharma

The first way picks the right driver:

debian:/usr/lib/iguanaIR# igdaemon -nv --driver=libusb.so
Nov 17 23:42:24 2009 INFO: Loaded driver: /usr/lib/iguanaIR/libusb.so
Nov 17 23:42:24 2009 INFO: Worker 0 starting
Nov 17 23:42:24 2009 INFO: Transaction: 0x1 (16267 microseconds)
Nov 17 23:42:24 2009 INFO: Found device version 0x306
Nov 17 23:42:24 2009 INFO: Transaction: 0x20 (23852 microseconds)

Now let me see if I can break it. :)

Changed 7 weeks ago by bluey

  • priority changed from normal to low

Haven't heard anything, so I'm assuming you couldn't break it. Please report back here if you are still having problems. Otherwise, I'll close ticket.

Changed 7 weeks ago by theajaysharma

I was still having issues but the pre2 release fixed it for me. You can close this ticket. Thanks!

Changed 7 weeks ago by bluey

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.