I realize I might have issues with the question of "can I switch this port
off".... but, the question still stands:  will a turned-off port cause the
device to disconnect?

For that matter, does the commands to turn off a port work on root hubs?

For my testing, I can require the hubs I want without any problems... but I
still need to know if what I'm thinking will work for my needs....

Matt

On Sat, Jul 07, 2001 at 04:52:51AM +1000, Brad Hards wrote:
> Matthew Dharm wrote:
> > 
> > Suppose I used usbdevfs to send a command to a hub to turn off a port...
> > does the device plugged in to that port necessarily disconnect?  That is,
> > can I change my bus topology purely within software?
> It isn't that simple :)
> IIRC, USB 1.0 spec allowed hubs to do port power switching as an optional
> feature.
> It is required that hub ports are switchable in USB 1.1, but switching is
> allowed to be "ganged", so ports are switched in groups. If any of the ports
> in a gang are configured in the powered state, then all of them are powered
> on, per USB spec 11.11
>  
> > For reference, I'm looking at doing some automated testing, and the ability
> > to detach/reattach devices from within software would be good.
> The interest in testing (from unit testing of the code, to end-to-end tests)
> seems to be picking up. It'd be good to try to get this done in some kind of
> coordinated way.
> 
> Brad
> 
> _______________________________________________
> [EMAIL PROTECTED]
> To unsubscribe, use the last form field at:
> http://lists.sourceforge.net/lists/listinfo/linux-usb-devel

-- 
Matthew Dharm                              Home: [EMAIL PROTECTED] 
Maintainer, Linux USB Mass Storage Driver

Would you mind not using our Web server? We're trying to have a game of 
Quake here.
                                        -- Greg
User Friendly, 5/11/1998

PGP signature

Reply via email to