[Nut-upsdev] [PATCH]Support full capabilities on older Smart-UPS 600
David J. Fiddes
D.J at fiddes.net
Wed Dec 12 15:27:50 UTC 2007
Hi,
The patch below adds support for a pair of old (circa 1993) APC
Smart-UPS 600 devices that I have. They don't support the query
mechanism of newer APC devices but do respond to the full Smart-UPS
command set:
battery.alarm.threshold: 0
battery.charge: 100.0
battery.charge.restart: 00
battery.date: 02/22/93
battery.runtime: 2040
battery.runtime.low: 120
battery.voltage: 27.67
battery.voltage.nominal: 024
driver.name: apcsmart
driver.parameter.cable: 940-0095B
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: L
input.transfer.high: 260
input.transfer.low: 196
input.transfer.reason: R
input.voltage: 239.3
input.voltage.maximum: 243.0
input.voltage.minimum: 240.5
output.voltage: 240.5
output.voltage.nominal: 225
ups.delay.shutdown: 020
ups.delay.start: 000
ups.id: UPS_IDEN
ups.load: 029.6
ups.mfr: APC
ups.mfr.date: 02/22/93
ups.model: Smart-UPS
ups.serial: 30021991
ups.status: OL
ups.temperature: 023.8
ups.test.interval: 0
ups.test.result: NO
thanks,
Dave
Index: drivers/apcsmart.c
===================================================================
--- drivers/apcsmart.c (revision 1175)
+++ drivers/apcsmart.c (working copy)
@@ -536,7 +536,8 @@
/* found one, force the model information */
if (!strcmp(buf, "6QD") || /* (APC600.) */
!strcmp(buf, "8QD") || /* (SmartUPS 1250, vintage 07/94.) */
- !strcmp(buf, "6TI")) { /* (APC600.) */
+ !strcmp(buf, "6TI") || /* (APC600.) */
+ !strcmp(buf, "6QI")) { /* (APC600.) */
upsdebugx(1, "Found Smart-UPS");
dstate_setinfo("ups.model", "Smart-UPS");
}
Index: drivers/apcsmart.h
===================================================================
--- drivers/apcsmart.h (revision 1175)
+++ drivers/apcsmart.h (working copy)
@@ -254,6 +254,7 @@
/* APC600 */
{ "6QD", "79ABCDEFGKLMNOPQRSUVWXYZcefgjklmnopqrsuxz", 0 },
{ "6TI", "79ABCDEFGKLMNOPQRSUVWXYZcefgjklmnopqrsuxz", 0 },
+ { "6QI", "79ABCDEFGKLMNOPQRSUVWXYZcefgjklmnopqrsuxz", 0 },
/* CS 350 */
{ "5.4.D", "\1ABPQRSUYbdfgjmnx9", 0 },
/* Smart-UPS 600 */
--
David J. Fiddes <D.J at fiddes.net>
More information about the Nut-upsdev
mailing list