Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Help with USB power (Technical)
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
d4mo
Guru
Guru


Joined: 27 Jun 2005
Posts: 430

PostPosted: Thu Sep 21, 2006 4:11 am    Post subject: Help with USB power (Technical) Reply with quote

Ok, I am considering a little project here but I need some info first, and I can't seem to find what I'm looking for on the net.

Ok USB has 4 wires. 5v..Data +...Data -....Ground. My question is this. With the 5v wire...its there power flowing through that all the time, or could a program shut the power off completly? Also with the Data + and data - is that from the Device to the Computer or can it go in reverse?

EDIT: Basically I wanna build one of these http://www.gizmodo.com/gadgets/gadgets/magnetic-usb-power-strip-176470.php
I just need to know how I can turn on/off the power in the USB cable.
Back to top
View user's profile Send private message
Cuardin
l33t
l33t


Joined: 06 Feb 2003
Posts: 713
Location: vasastaden.stockholm.se

PostPosted: Thu Sep 21, 2006 7:50 am    Post subject: Reply with quote

I see what you are trying to do, but I think you missunderstand the purpose of these power-lines. If you turn them off, you are completely turning off the USB port, which some USB controllers do support, but I don't think that is part of any standard. Besides, I think the most you can get out of the USB power is 500mA and at 5V that is 2.5W, which will hardly power anything at all.

If you do want something to be controlled by USB, you should look at http://www.ftdichip.com/. They have real good chips that have a USB device connector on one side, and a serial port on the other end. If you connect the USB-end to a computer it will claim to be a COM-port and behave just like one. Then you can controll the Serial end of the chip just like a serial port. Hook one of the controll lines to a power-relay and you are pretty much done.
_________________
Part of "The adopt an unanswered post initiative"
Back to top
View user's profile Send private message
d4mo
Guru
Guru


Joined: 27 Jun 2005
Posts: 430

PostPosted: Thu Sep 21, 2006 4:49 pm    Post subject: Reply with quote

Well I already actually have a USB to Serial converter.

But as for the usb, I would use the usb to trip a relay of some sort that would in turn, make the power strip turn on. Wouldn't that be possible>
Back to top
View user's profile Send private message
Cuardin
l33t
l33t


Joined: 06 Feb 2003
Posts: 713
Location: vasastaden.stockholm.se

PostPosted: Thu Sep 21, 2006 8:40 pm    Post subject: Reply with quote

Yeah, that would work. But USB is a packet-based protocol, much like IP, so you need some circuit that can read USB packets and then set a control-line accordingly. USB-RS232 would definatley work. AS I mentioned, use the control lines in the RS232.
_________________
Part of "The adopt an unanswered post initiative"
Back to top
View user's profile Send private message
d4mo
Guru
Guru


Joined: 27 Jun 2005
Posts: 430

PostPosted: Fri Sep 22, 2006 7:12 am    Post subject: Reply with quote

Why couldn't I just use a serial port thats already on my computer if thats the case?
Back to top
View user's profile Send private message
Cuardin
l33t
l33t


Joined: 06 Feb 2003
Posts: 713
Location: vasastaden.stockholm.se

PostPosted: Fri Sep 22, 2006 11:17 am    Post subject: Reply with quote

No reason. But serial ports are a seriously endangered species these days.
_________________
Part of "The adopt an unanswered post initiative"
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