Gary ! I have a APC UPS with USB output. Basically have the same experience as you, the sample code does not work.
I also had a quick look at the apcupsd but to re-code that to use Solaris USB API seems way out of my reach. However I hacked some changes to the upsusb program and now it works via the ugen driver: I can read the descriptors and it does report on the interrupt IN when events in the ups happens e.g.pull out/in the power cable and the program reports "something". I am new to USB and HID coding and do not know how to interpret the output. I have send a mail to APC if they can help but no answer so far. I attached the hacked usbusp program, it compiles on a stock solaris-10 X86 latest version 01/06 (or 06/01). To sun you have to attach the ugen driver as is outlined in the original SUN documents, but that is probably old news to you ... Perhaps you can help with the interpretation of the outputs. /Anders Israelsson This message posted from opensolaris.org
usbups.c
Description: Binary data
usbups.h
Description: Binary data
Makefile
Description: Binary data
_______________________________________________ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org