[Nut-upsdev] nut-2.0.5 megatec + Online Xanto
Henning Brauer
hb-nut at bsws.de
Tue Jan 23 01:07:34 CET 2007
good new first: the megatec driverin 2.0.5 now works with the Online
Xanto S3000R here - well, for the very basics.
the UPS has NO way ofidentifying itself. It also does not respond to
the power ratings query ("F"). I previously used a hacked up fentonups
driver. This means the driver cannot figure out the battery voltage and
thus no battery charge level, which is a problem in our setup.
it is a 96V unit. the values I had in fentonups.h were
+ { "XS3000R", "Online", "Xanto S3000R",
+ 1.81, 0.44, 1.81, 0.44, 165, 200, 240, 275, 1 },
if there were a way to give the driver the desired voltage overriding
the auto-detection, everything would work fine again...I had this
hacked up for 2.0.3 at one point, but can't fine it right now. Carlos,
didn't I mail hat before? in any case. does anyone have a better idea
to solve this?
<brahe at paploo> tmp $ sudo /usr/local/bin/megatec -a UPS-3 -DDDDD
Network UPS Tools - Megatec protocol driver 1.5 (2.0.5)
Carlos Rodrigues (c) 2003-2006
debug level is '5'
Starting UPS detection process...
Attempting to detect the UPS...
Sending "Q1" command...
"Q1" command successful.
Attempting to detect the UPS...
Sending "Q1" command...
"Q1" command successful.
Attempting to detect the UPS...
Sending "Q1" command...
"Q1" command successful.
Attempting to detect the UPS...
Sending "Q1" command...
"Q1" command successful.
Attempting to detect the UPS...
Sending "Q1" command...
"Q1" command successful.
0 out of 5 detection attempts failed (minimum failures: 2).
Asking for UPS information ("I" command)...
UPS doesn't return any information about itself.
Megatec protocol UPS detected.
Asking for UPS power ratings ("F" command)...
UPS doesn't return any information about its power ratings.
Done setting up the UPS.
Asking for UPS status ("Q1" command)...
UPS status: 228.8 228.8 228.8 052 49.9 2.26 25.0 00000000
dstate_init: sock /var/db/nut/UPS-3 open on fd 5
Asking for UPS status ("Q1" command)...
UPS status: 228.8 228.8 228.8 052 49.9 2.26 25.0 00000000
new connection on fd 6
Asking for UPS status ("Q1" command)...
UPS status: 228.8 228.8 228.8 052 49.9 2.26 25.0 00000000
Asking for UPS status ("Q1" command)...
UPS status: 228.8 228.8 228.8 052 49.9 2.26 25.0 00000000
Asking for UPS status ("Q1" command)...
UPS status: 228.8 228.8 228.8 052 49.9 2.26 25.0 00000000
<brahe at paploo> tmp $ upsc UPS-3 at localhost
battery.voltage: 2.26
driver.name: megatec
driver.parameter.port: /dev/ttym1
driver.version: 2.0.5
driver.version.internal: 1.5
input.frequency: 49.9
input.voltage: 228.8
input.voltage.fault: 228.8
input.voltage.maximum: 228.8
input.voltage.minimum: 228.8
output.voltage: 228.8
ups.beeper.status: disabled
ups.delay.shutdown: 0
ups.delay.start: 2
ups.load: 52.0
ups.mfr: unknown
ups.model: unknown
ups.serial: unknown
ups.status: OL
ups.temperature: 25.0
--
Henning Brauer, hb at bsws.de, henning at openbsd.org
BS Web Services, http://bsws.de
Full-Service ISP - Secure Hosting, Mail and DNS Services
Dedicated Servers, Rootservers, Application Hosting - Hamburg & Amsterdam
More information about the Nut-upsdev
mailing list