sysutils/nut and an MGE Ellipse 1000 UPS
Daniel O'Connor
doconnor at gsoft.com.au
Wed Jan 27 11:01:44 UTC 2010
Hi,
I have an MGE UPS connected via USB and I am having trouble getting it
to work.
I am trying the latest SVN trunk from the NUTdevs but I find it doesn't
enumerate everything from the UPS properly, eg
[midget 21:10] ~/projects/nut-trunk >sudo /usr/local/libexec/nut/usbhid-ups -D -D -D -a mge
6.238605 Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Feature, ReportID: 0x01, Offset: 2,
Size: 1, Value: 0.000000
6.238627 Report[buf]: (2 bytes) => 01 13
6.238647 Path: UPS.PowerSummary.PresentStatus.Charging, Type: Feature, ReportID: 0x01, Offset: 1, Size:
1, Value: 1.000000
6.238669 Report[buf]: (2 bytes) => 01 13
6.238676 Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: Feature, ReportID:
0x01, Offset: 3, Size: 1, Value: 0.000000
6.240481 libusb_get_report: Unknown error
6.240646 Can't retrieve Report 02: Input/output error
6.240658 Can't initialize data from HID UPS
or..
2.489542 Report[get]: (2 bytes) => 08 1e
2.489564 Path: UPS.PowerSummary.RemainingCapacityLimit, Type: Feature, ReportID: 0x08, Offset: 0, Size:
8, Value: 30.000000
2.491554 libusb_get_report: Unknown error
2.491662 Can't retrieve Report 09: Input/output error
2.491671 Path: UPS.PowerSummary.DelayBeforeShutdown, Type: Feature, ReportID: 0x09, Offset: 0, Size: 32
5.530483 libusb_get_report: Unknown error
5.530576 Can't retrieve Report 0a: Input/output error
5.530586 Path: UPS.PowerSummary.DelayBeforeStartup, Type: Feature, ReportID: 0x0a, Offset: 0, Size: 32
10.417508 libusb_get_report: Unknown error
10.417603 Can't retrieve Report 0c: Input/output error
or..
20.865729 Quick update...
20.867648 libusb_get_report: Unknown error
20.867744 Can't retrieve Report 0a: Input/output error
22.618705 upsdrv_updateinfo...
22.618729 Got to reconnect!
Sometimes it seems to work for a while, other times it won't even get the
initial descriptor.
I tried setting LIBUSB_DEBUG but it didn't seem to produce any output.
I find that if I set 'pollonly' (ie disable interrupt pipe) it works
considerably better but still glitches not infrequently. (ie upsc reports
stale data)
--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
-- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freebsd.org/pipermail/freebsd-usb/attachments/20100127/74ba055a/attachment.pgp
More information about the freebsd-usb
mailing list