[Nut-upsuser] Help with nut 2.0.4, MGE Ellipse 1000 and FreeBSD

Miwa Forever miwaonline at gmail.com
Wed Dec 27 19:51:02 CET 2006


Hello.
So as my english is not so good, i'll try to write my story in bash commands
:o)

miwa at zork3$ uname -mrs
FreeBSD 5.5-STABLE i386
miwa at zork3$ su
root at zork3# cd /usr/ports/sysutils/nat
root at zork3# make && make install
root at zork3# cd ../nut-usb
root at zork3# make && make install
root at zork3# cd /usr/local/etc/nut
root at zork3# cat ups.conf
user=root
[MGE-Ellipse]
driver=newhidups
port=auto
desc="MGE Ellipse 1000"

root at zork3# cat upsd.conf
ACL world 0.0.0.0/0
ACL zork 192.168.100.0/24
ACL servers 192.168.1.0/24
ACL local 127.0.0.1/32
ACCEPT local
ACCEPT servers
ACCEPT zork
REJECT world

root at zork3# cat upsd.users
[admin]
password = admin
allowfrom = local
actions = set
instcmds = all

[monitor]
password = monitor
allowfrom = local
upsmon master

root at zork3# /usr/local/libexec/nut/upsdrvctl -u root start
Network UPS Tools - UPS driver controller 2.0.4
Network UPS Tools: New USB/HID UPS driver 0.28 (2.0.4)

Detected a UPS: MGE UPS SYSTEMS/ELLIPSE
Using subdriver: MGE HID 0.9

root at zork3# upsd -u root
Network UPS Tools upsd 2.0.4
/usr/local/etc/nut/upsd.conf is world readable
Connected to UPS [MGE-Ellipse]: newhidups-auto
Synchronizing........ giving up

# Looks like everything is ok, but
root at zork3# upsc MGE-Ellipse at localhost
Error: Data stale

# Ooooops.... :o(
# I tryed (maybe tried? mean "try" in the
pust indefenite) to change usb pork, checked cable, but "Data stale"
did not disapeared.



root at zork3# killall newhidups
root at zork3# killall upsd
root at zork3# ps ax | grep ups
root at zork3# /usr/local/libexec/nut/newhidups -DDDDD -a MGE-Ellipse -u root

#here we receive VERY long output, the lust lines are:

Entering libusb_get_report
=>> Before exponent: 0, 0/0)
=>> After conversion: 0.000000 (0), 0/0)
Report : (8 bytes) => 02 00 E8 03 00 00 00 00
hu_find_infoval: searching for value = 0

hu_find_infoval: found !shutdownimm (value: 0)

process_status_info: !shutdownimm
entering string_to_path()
parsing UPS
Looking up UPS
hid_lookup_usage: found 840004
parsing PowerSummary
Looking up PowerSummary
hid_lookup_usage: found 840024
parsing PresentStatus
Looking up PresentStatus
hid_lookup_usage: found 840002
parsing BelowRemainingCapacityLimit
Looking up BelowRemainingCapacityLimit
hid_lookup_usage: found 850042
Path depth = 4
0: UPage(84), Usage(4)
1: UPage(84), Usage(24)
2: UPage(84), Usage(2)
3: UPage(85), Usage(42)
Entering libusb_get_report
=>> Before exponent: 0, 0/0)
=>> After conversion: 0.000000 (0), 0/0)
Report : (8 bytes) => 01 13 64 00 00 00 00 00
hu_find_infoval: searching for value = 0

hu_find_infoval: found !lowbatt (value: 0)

process_status_info: !lowbatt
entering string_to_path()
parsing UPS
Looking up UPS
hid_lookup_usage: found 840004
parsing PowerSummary
Looking up PowerSummary
hid_lookup_usage: found 840024
parsing PresentStatus
Looking up PresentStatus
hid_lookup_usage: found 840002
parsing OverLoad
Looking up OverLoad
hid_lookup_usage: found 840065
Path depth = 4
0: UPage(84), Usage(4)
1: UPage(84), Usage(24)
2: UPage(84), Usage(2)
3: UPage(84), Usage(65)
Entering libusb_get_report
=>> Before exponent: 0, 0/0)
=>> After conversion: 0.000000 (0), 0/0)
Report : (8 bytes) => 02 00 0F 00 00 00 00 00
hu_find_infoval: searching for value = 0

hu_find_infoval: found !overload (value: 0)

process_status_info: !overload
entering string_to_path()
parsing UPS
Looking up UPS
hid_lookup_usage: found 840004
parsing PowerSummary
Looking up PowerSummary
hid_lookup_usage: found 840024
parsing PresentStatus
Looking up PresentStatus
hid_lookup_usage: found 840002
parsing NeedReplacement
Looking up NeedReplacement
hid_lookup_usage: found 85004b
Path depth = 4
0: UPage(84), Usage(4)
1: UPage(84), Usage(24)
2: UPage(84), Usage(2)
3: UPage(85), Usage(4b)
=>> Before exponent: 0, 0/0)
=>> After conversion: 0.000000 (0), 0/0)
Report : (8 bytes) => 02 00 0F 00 00 00 00 00
hu_find_infoval: searching for value = 0

hu_find_infoval: found !replacebatt (value: 0)

process_status_info: !replacebatt
entering string_to_path()
parsing UPS
Looking up UPS
hid_lookup_usage: found 840004
parsing PowerSummary
Looking up PowerSummary
hid_lookup_usage: found 840024
parsing PresentStatus
Looking up PresentStatus
hid_lookup_usage: found 840002
parsing Good
Looking up Good
hid_lookup_usage: found 840061
Path depth = 4
0: UPage(84), Usage(4)
1: UPage(84), Usage(24)
2: UPage(84), Usage(2)
3: UPage(84), Usage(61)
Entering libusb_get_report
=>> Before exponent: 1, 0/0)
=>> After conversion: 1.000000 (1), 0/0)
Report : (8 bytes) => 01 13 64 00 00 00 00 00
hu_find_infoval: searching for value = 1

hu_find_infoval: found !off (value: 1)

process_status_info: !off
entering string_to_path()
parsing UPS
Looking up UPS
hid_lookup_usage: found 840004
parsing PowerConverter
Looking up PowerConverter
hid_lookup_usage: found 840016
parsing Output
Looking up Output
hid_lookup_usage: found 84001c
parsing Voltage
Looking up Voltage
hid_lookup_usage: found 840030
Path depth = 4
0: UPage(84), Usage(4)
1: UPage(84), Usage(16)
2: UPage(84), Usage(1c)
3: UPage(84), Usage(30)
Entering libusb_get_report
=>> Before exponent: 230, 7/7)
=>> After conversion: 230.000000 (230), 7/7)
Report : (8 bytes) => 0E E6 64 00 00 00 00 00
entering string_to_path()
parsing UPS
Looking up UPS
hid_lookup_usage: found 840004
parsing PowerSummary
Looking up PowerSummary
hid_lookup_usage: found 840024
parsing PresentStatus
Looking up PresentStatus
hid_lookup_usage: found 840002
parsing ACPresent
Looking up ACPresent
hid_lookup_usage: found 8500d0
Path depth = 4
0: UPage(84), Usage(4)
1: UPage(84), Usage(24)
2: UPage(84), Usage(2)
3: UPage(85), Usage(d0)
Entering libusb_get_report
=>> Before exponent: 1, 0/0)
=>> After conversion: 1.000000 (1), 0/0)
Report : (8 bytes) => 01 13 64 00 00 00 00 00
dstate_init: sock /var/db/nut/newhidups-auto open on fd 5
upsdrv_updateinfo...
Waiting for notifications...


Any ideas?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20061227/6780f40d/attachment.htm


More information about the Nut-upsuser mailing list