Re: Serial UPS Device
Re: Serial UPS Device
- Subject: Re: Serial UPS Device
- From: Ethan Bold <email@hidden>
- Date: Thu, 8 Dec 2005 16:58:07 -0800
Hi Chris-
You're on the right track. You can create your own serial UPS plugin
for ioupsd, and I'll point you at the right headers and the open
source code that you'll need to interface with, but we don't have all
the documentation for these API's that we'd like.
A UPS plugin is a CFPlugin with a few defined entry points for
reading capabilities, sending commands, etc. If you haven't yet,
please check out the existing USB HID UPS plugin that's part of the
IOHIDFamily Darwin project.
http://www.opensource.apple.com/darwinsource/10.4.3/IOHIDFamily-172.8/
IOHIDLib/IOHIDUPSClass.cpp
http://www.opensource.apple.com/darwinsource/10.4.3/IOHIDFamily-172.8/
IOHIDLib/IOHIDUPSClass.h
This HID UPS Plugin fits into the ioupsd plugin, as any serial or
network UPS plugin would. One importante difference is that OS X
cannot automatically detect the presence of your serial UPS, so
you'll need some software entity (a daemon, or a process launched by
launchd) to ping ioupsd and tell it to load your plugin.
I'm happy to help out more with API's and ambiguities. Let me know.
-ethan
On Dec 8, 2005, at 11:40 AM, Chris McKinnon wrote:
Hi,
I've been looking into the Power Management APIs on OS X. I'm
working on UPS monitoring software for a serial UPS and I would
like to make the PM aware of the UPS. Most details I've seen about
this relate to USB HID devices. I did notice on Apple's site a
IOUPSPlugIn.h header. It looks like it can be used to create a
plugin for ioupsd so it can communicate with the UPS. Am I on the
right track? And, if so, does anyone know where I can get
additional details on implementing a plugin? The header doesn't
give a lot of detail.
Thanks,
Chris McKinnon
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden