Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
USB on/off switch
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
grant123
l33t
l33t


Joined: 23 Mar 2005
Posts: 989

PostPosted: Thu Dec 10, 2015 1:57 pm    Post subject: USB on/off switch Reply with quote

Does anyone know of a USB on/off switch like this but which does connect the data lines?

https://www.adafruit.com/products/1620
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 2152
Location: Berlin, Germany

PostPosted: Thu Dec 10, 2015 3:43 pm    Post subject: Reply with quote

Do you want a hardware switch or is software switch also ok?

Many USB hubs (even cheap ones) have the ability to do per port power switching.
If you have any lying around, connect and run lsusb -v, look for "wHubCharacteristic" and "power switching".

Else you can buy USB hubs with hardware switches like these:
http://www.amazon.com/Insten-7-Port-USB-Switch-Black/dp/B007S642BW
http://www.amazon.com/Sabrent-4-Port-Individual-Switches-HB-UMLS/dp/B00BWF5U0M/
Back to top
View user's profile Send private message
grant123
l33t
l33t


Joined: 23 Mar 2005
Posts: 989

PostPosted: Thu Dec 10, 2015 4:32 pm    Post subject: Reply with quote

It must be hardware. I'd rather not use a powered device for this (bus-powered or otherwise). I'm looking for something mechanical like the Adafruit device but one that passes data through.
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 2152
Location: Berlin, Germany

PostPosted: Thu Dec 10, 2015 4:52 pm    Post subject: Reply with quote

These should work if you leave the second uplink disconnected.

http://www.amazon.com/EEEKit-Printer-Scanner-Keyboard-Protective/dp/B00B2IC0VQ/
http://www.amazon.com/Sharing-Switch-Port-Printer-Scanner/dp/B00CGWQLHG/
http://www.amazon.com/Tek-Republic-TUS-200-Sharing-Switch/dp/B00FEM3OKM/
Back to top
View user's profile Send private message
Syl20
Guru
Guru


Joined: 04 Aug 2005
Posts: 564
Location: France

PostPosted: Fri Dec 11, 2015 10:04 am    Post subject: Reply with quote

There's probably something I don't understand, but why looking for such a stange workaround, when you can just unplug the USB device ?
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 2152
Location: Berlin, Germany

PostPosted: Fri Dec 11, 2015 10:36 am    Post subject: Reply with quote

Pluggin/unplugging puts stress on the connectors, the electronics behind them, and also on the soldering joints on the boards.

USB Type-A is specified for 1,500 plug cycles I think.
Back to top
View user's profile Send private message
frostschutz
Advocate
Advocate


Joined: 22 Feb 2005
Posts: 2968
Location: Germany

PostPosted: Fri Dec 11, 2015 12:02 pm    Post subject: Reply with quote

You could probably build your own cable. Or just use a cheap extension cable (un)plug that, if it breaks you just need a new cable.

There are a few offers on cable with a data/power switch, not sure if you're allowed to use that while it's connected though.
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 2152
Location: Berlin, Germany

PostPosted: Fri Dec 11, 2015 12:10 pm    Post subject: Reply with quote

If you look at an USB plug, you will notice that some pins are longer than others. This is important, because it enforces the order in which they are connected and disconnected. If you build a switch yourself, you need to ensure keeping that order too, which might not be trivial.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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