Re: Powercycling USB device on hub

2011-07-26 Thread Peer Stritzinger
On Sat, Jul 23, 2011 at 11:47 PM, Hans Petter Selasky hsela...@c2i.net wrote: On Saturday 23 July 2011 18:53:46 Peer Stritzinger wrote: In newer libusb there is a function to get the parent HUB address. Ah great, I've to update the production systems soon. Is it already in 8 stable? -- Peer

Re: Powercycling USB device on hub

2011-07-26 Thread Hans Petter Selasky
On Tuesday 26 July 2011 19:11:31 Peer Stritzinger wrote: On Sat, Jul 23, 2011 at 11:47 PM, Hans Petter Selasky hsela...@c2i.net wrote: On Saturday 23 July 2011 18:53:46 Peer Stritzinger wrote: In newer libusb there is a function to get the parent HUB address. Ah great, I've to update

Re: Powercycling USB device on hub

2011-07-23 Thread Peer Stritzinger
Hi, On Thu, Jul 21, 2011 at 12:49 PM, Hans Petter Selasky hsela...@c2i.net wrote: Using the usbconfig utility in 8 stable and 9 current, you can set the configuration to 255 which means unconfigured and then 0 for the root HUB. For non-root HUBs you can BUS-reset the devices usbconfig -d

Re: Powercycling USB device on hub

2011-07-23 Thread Peer Stritzinger
Hi, On Sat, Jul 23, 2011 at 5:17 PM, Hans Petter Selasky hsela...@c2i.net wrote: On Saturday 23 July 2011 17:18:34 Peer Stritzinger wrote:  $ sudo usbconfig -u 3 -a 1 reset usbconfig: could not reset device: Device not configured and after this all devices hat are on this bus are no longer

Re: Powercycling USB device on hub

2011-07-23 Thread Hans Petter Selasky
On Saturday 23 July 2011 17:44:11 Peer Stritzinger wrote: Hi, On Sat, Jul 23, 2011 at 5:17 PM, Hans Petter Selasky hsela...@c2i.net wrote: On Saturday 23 July 2011 17:18:34 Peer Stritzinger wrote: $ sudo usbconfig -u 3 -a 1 reset usbconfig: could not reset device: Device not configured

Re: Powercycling USB device on hub

2011-07-23 Thread Peer Stritzinger
On Sat, Jul 23, 2011 at 5:55 PM, Hans Petter Selasky hsela...@c2i.net wrote: Since power-cycling needs to reset the HUB I now have the problem to find out on which HUB in the system my device hangs. There are two HUB's on the same root HUB and I don't want to power-cycle all devices.  Is

Re: Powercycling USB device on hub

2011-07-23 Thread Hans Petter Selasky
On Saturday 23 July 2011 18:53:46 Peer Stritzinger wrote: On Sat, Jul 23, 2011 at 5:55 PM, Hans Petter Selasky hsela...@c2i.net wrote: Since power-cycling needs to reset the HUB I now have the problem to find out on which HUB in the system my device hangs. There are two HUB's on the

Re: Powercycling USB device on hub

2011-07-21 Thread Peer Stritzinger
Hi, On Wed, Jul 20, 2011 at 3:19 PM, Hans Petter Selasky hsela...@c2i.net wrote: On Wednesday 20 July 2011 14:30:37 Peer Stritzinger wrote: ... Using the usbconfig utility in 8 stable and 9 current, you can set the configuration to 255 which means unconfigured and then 0 for the root HUB. For

Re: Powercycling USB device on hub

2011-07-21 Thread Hans Petter Selasky
On Thursday 21 July 2011 12:47:55 Peer Stritzinger wrote: Hi, On Wed, Jul 20, 2011 at 3:19 PM, Hans Petter Selasky hsela...@c2i.net wrote: On Wednesday 20 July 2011 14:30:37 Peer Stritzinger wrote: ... Using the usbconfig utility in 8 stable and 9 current, you can set the

Powercycling USB device on hub

2011-07-20 Thread Peer Stritzinger
Hi, is ist possible to power-cycle the HUB port of a USB device by programmatic means (via script or libusb or some ioctl)? It would be perfect if I could power-off/on just a certain device but it would also help to power-cycle all devices on a HUB. Cheers, Peer Stritzinger

Re: Powercycling USB device on hub

2011-07-20 Thread Hans Petter Selasky
On Wednesday 20 July 2011 14:30:37 Peer Stritzinger wrote: Hi, is ist possible to power-cycle the HUB port of a USB device by programmatic means (via script or libusb or some ioctl)? It would be perfect if I could power-off/on just a certain device but it would also help to power-cycle