[Nut-upsdev] Support for APC Matrix UPS

Marcus Wellhardh wellhardh at roxen.com
Tue Nov 11 13:18:22 UTC 2008


Hi,

I have been using NUT 1.4 for many years which has worked flawlessly.
The hardware are two old UPS:es, APC Matrix UPS 3000 and APC Matrix UPS
5000. When upgrading to NUT 2.2 many variables was lost.

Running upsc in 1.4 gives the following (serial censored):

  battery.alarm.threshold: 0
  battery.charge: 100.0
  battery.charge.restart: 00
  battery.date: 10/25/93
  battery.voltage: 55.62
  driver.name: apcsmart
  driver.parameter.port: /dev/ttyS0
  driver.version: 1.4.0
  driver.version.internal: 0.72
  input.frequency: 50.00
  input.sensitivity: A
  input.transfer.high: 253
  input.transfer.low: 176
  input.voltage: 233.7
  output.voltage: 226.2
  ups.delay.shutdown: 600
  ups.delay.start: 000
  ups.id: 79<><>/\
  ups.load: 049.4
  ups.mfr: APC
  ups.model: Matrix-UPS
  ups.serial: ********
  ups.status: OL
  ups.temperature: 022.5

The same command in 2.2 gives far less variables:

  driver.name: apcsmart
  driver.parameter.pollinterval: 2
  driver.parameter.port: /dev/ttyS0
  driver.version: 2.2.0-
  driver.version.internal: 1.99.8
  input.voltage: 231.8
  output.current: 09.31
  ups.mfr: APC
  ups.model: Matrix-UPS
  ups.serial: ********
  ups.status: OL

So I decided to troubleshoot the code and have found a solution which
gives the following output:

  battery.alarm.threshold: L
  battery.charge: 100.0
  battery.charge.restart: 00
  battery.date: 04/07/03
  battery.packs: 003
  battery.packs.bad: 000
  battery.runtime: 22560
  battery.runtime.low: 600
  battery.voltage: 55.36
  battery.voltage.nominal: 048
  driver.name: apcsmart
  driver.parameter.pollinterval: 2
  driver.parameter.port: /dev/ttyS0
  driver.version: 2.2.0
  driver.version.internal: 1.99.8
  input.frequency: 50.00
  input.quality: FF
  input.sensitivity: H
  input.transfer.high: 264
  input.transfer.low: 176
  input.transfer.reason: T
  input.voltage: 231.8
  input.voltage.maximum: 231.8
  input.voltage.minimum: 231.8
  output.current: 05.43
  output.voltage: 239.3
  output.voltage.nominal: 230
  ups.delay.shutdown: 180
  ups.delay.start: 000
  ups.id: UPS_IDEN
  ups.load: 039.0
  ups.mfr: APC
  ups.mfr.date: 10/18/99
  ups.model: Smart-UPS
  ups.serial: ********
  ups.status: OL
  ups.temperature: 021.6
  ups.test.interval: 1209600
  ups.test.result: NO

As a bonus I got a couple of new variables that was not part of the old
version.

The modification is quite small, about 6 lines in drivers/apcsmart.{c,h}
and uses the same workaround as the other vintage APC boxes. Patch is
attached.

If possible please add the modification to the development branch so
other can take advantage of the fix.

I apologize for the low signal to noise ratio in the text.

Regards,
Marcus

-- 
Marcus Wellhardh                        e-mail: wellhardh at roxen.com
Roxen Internet Software AB              Support: +46 13 376804
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nut-2.3.0-matrix.patch
Type: text/x-patch
Size: 1202 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20081111/3cdc6a28/attachment.bin 


More information about the Nut-upsdev mailing list