• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Control USB Power
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Control USB Power


  • Subject: Re: Control USB Power
  • From: Mike Abdullah <email@hidden>
  • Date: Thu, 12 Jun 2008 23:08:52 -0700


On 12 Jun 2008, at 23:01, David Duncan wrote:

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...

In particular, consider the scenario of the device plugged into a USB hub. If you turn off the computer's USB port, any other devices on the hub are screwed. Furthermore, the hub may well provide its own power connection, regardless of the computer, and almost certainly has no electronics to disable power that you can communicate with anyway.


Mike.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


References: 
 >Control USB Power (From: Omar Qazi <email@hidden>)
 >Re: Control USB Power (From: David Duncan <email@hidden>)

  • Prev by Date: Re: Control USB Power
  • Next by Date: Re: Control USB Power
  • Previous by thread: Re: Control USB Power
  • Next by thread: Re: Control USB Power
  • Index(es):
    • Date
    • Thread