Skip Menu |

This queue is for tickets about the Device-USB CPAN distribution.

Report information
The Basics
Id: 20870
Status: resolved
Worked: 45 min
Priority: 0/
Queue: Device-USB

People
Owner: cpan.wade [...] anomaly.org
Requestors: mikem [...] open.com.au
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.15



Subject: patch for improvements to Device-USB
Date: Mon, 7 Aug 2006 16:09:15 +1000
To: bug-Device-USB [...] rt.cpan.org
From: Mike McCauley <mikem [...] open.com.au>
Hi There. Thanks for Device-USB. this isnt a bug. I have attached diffs for changes to USB.pm and Device.pm that add the following features: debug_mode now takes an integer 0, 1 or 2, consistent with the debug modes offered by libusb. 2 is more verbose. new function get_driver_np($interface) mirrors usb_get_driver_np. Calls usb_get_driver_np on platforms where it is available, else returns 0. new function detach_kernel_driver_np($interface) mirrors usb_detach_kernel_driver_np. Calls usb_detach_kernel_np on platforms where it is available, else returns 0. This is required to get control of USB devices on some Linux distros. Cheers. -- Mike McCauley mikem@open.com.au Open System Consultants Pty. Ltd Unix, Perl, Motif, C++, WWW 9 Bulbul Place Currumbin Waters QLD 4223 Australia http://www.open.com.au Phone +61 7 5598-7474 Fax +61 7 5598-7070 Radiator: the most portable, flexible and configurable RADIUS server anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald, Platypus, Freeside, TACACS+, PAM, external, Active Directory, EAP, TLS, TTLS, PEAP etc on Unix, Windows, MacOS, NetWare etc.

Message body is not shown because sender requested not to inline it.

Thank you for the patch. It has been applied, but I don't have a useful way to test it. The patch did not have any changes to Device::USB::Device, so there was no way to call the new code. Those changes have been added. If you have a test for this code, I would appreciate a note letting me know how it turned out. Thanks, G. Wade
BTW, the updated code is Device::USB version 0.15 now available on CPAN. G. Wade
Subject: Re: [rt.cpan.org #20870] patch for improvements to Device-USB
Date: Tue, 8 Aug 2006 10:54:17 +1000
To: bug-Device-USB [...] rt.cpan.org
From: Mike McCauley <mikem [...] open.com.au>
Hello, Thanks for your note.... On Tuesday 08 August 2006 10:42, via RT wrote: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=20870 > > > Thank you for the patch. It has been applied, but I don't have a useful > way to test it. The patch did not have any changes to > Device::USB::Device, so there was no way to call the new code. Those > changes have been added.
I see now that the diffs for Device::USB::Device was not in the patch. Sorry, that was my fault. Here is a the correct, complete patch against 0.14, which includes the changes to Device::USB::Device (which do call the new code in USB.pm) Apologies. Cheers. Show quoted text
> > If you have a test for this code, I would appreciate a note letting me > know how it turned out. > > Thanks, > G. Wade
-- Mike McCauley mikem@open.com.au Open System Consultants Pty. Ltd Unix, Perl, Motif, C++, WWW 9 Bulbul Place Currumbin Waters QLD 4223 Australia http://www.open.com.au Phone +61 7 5598-7474 Fax +61 7 5598-7070 Radiator: the most portable, flexible and configurable RADIUS server anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald, Platypus, Freeside, TACACS+, PAM, external, Active Directory, EAP, TLS, TTLS, PEAP etc on Unix, Windows, MacOS, NetWare etc.

Message body is not shown because sender requested not to inline it.

Thanks, Mike. It looks like we made about the same changes to Device::USB::Device. I added a bit more documentation, though. The latest version (0.15), on CPAN should be compatible with the results of your patch. Thanks for adding this functionality. G. Wade
Subject: Re: [rt.cpan.org #20870] patch for improvements to Device-USB
Date: Tue, 8 Aug 2006 12:07:39 +1000
To: bug-Device-USB [...] rt.cpan.org
From: Mike McCauley <mikem [...] open.com.au>
On Tuesday 08 August 2006 11:39, via RT wrote: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=20870 > > > Thanks, Mike. It looks like we made about the same changes to > Device::USB::Device. I added a bit more documentation, though. The > latest version (0.15), on CPAN should be compatible with the results of > your patch.
OK, 0.15 works fine on SuSE 10 Cheers. Show quoted text
> > Thanks for adding this functionality.
My pleasure. Thanks for writing writing the module. Cheers. Show quoted text
> > G. Wade
-- Mike McCauley mikem@open.com.au Open System Consultants Pty. Ltd Unix, Perl, Motif, C++, WWW 9 Bulbul Place Currumbin Waters QLD 4223 Australia http://www.open.com.au Phone +61 7 5598-7474 Fax +61 7 5598-7070 Radiator: the most portable, flexible and configurable RADIUS server anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald, Platypus, Freeside, TACACS+, PAM, external, Active Directory, EAP, TLS, TTLS, PEAP etc on Unix, Windows, MacOS, NetWare etc.