Re: Control USB Power

2008-06-13 Thread David Duncan

On Jun 12, 2008, at 10:38 PM, Omar Qazi wrote:

I have a Cocoa application that controls an external USB device. I  
want to be able to turn the device off when the user performs some  
action, like click a button. Is there a way in Cocoa or IOKit to  
disable power to a USB Socket? The application runs on Leopard.



Are you really sure you want to turn off the USB socket itself? It  
would seem to me that you really want to use a device that has  
software control over its power state instead and that you would just  
send the proper message to turn it on or off rather than turning off  
the USB socket. That said, I have no idea if what you are asking is  
possible...

--
David Duncan
Apple DTS Animation and Printing
[EMAIL PROTECTED]



___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Control USB Power

2008-06-13 Thread Robert Douglas
I assume you are talking about an external piece of equipment, not a  
USB hub etc.  Some pieces of equipment have USB interfaces, but I  
suspect many can not turn themselves on and off in response to a USB  
command. Macs can, but that may be rare.  Even so it would be worth  
checking the manual.  Otherwise you may have to look at USB-controlled  
solenoid drivers.   You'll need software too, but some like http://www.phidgets.com/ 
 do have Mac drivers.

Rob

On 12-Jun-08, at 10:38 PM, Omar Qazi wrote:


Hey,

I have a Cocoa application that controls an external USB device. I  
want to be able to turn the device off when the user performs some  
action, like click a button. Is there a way in Cocoa or IOKit to  
disable power to a USB Socket? The application runs on Leopard.


Thanks in advance,
Omar Qazi
Hello, Galaxy!___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/rdouglas%40mac.com

This email sent to [EMAIL PROTECTED]


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Control USB Power

2008-06-12 Thread Omar Qazi

Hey,

I have a Cocoa application that controls an external USB device. I  
want to be able to turn the device off when the user performs some  
action, like click a button. Is there a way in Cocoa or IOKit to  
disable power to a USB Socket? The application runs on Leopard.


Thanks in advance,
Omar Qazi
Hello, Galaxy! 

smime.p7s
Description: S/MIME cryptographic signature
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]