Hi,
recently I got a GE EP6000R UPS. At first I feared it's not supported at
all, but after digging in I found out that it's supported by the
'blazer' driver.
The UPS has both RS232 and USB connection. To use the RS232 connection,
I had to use the 'cablepower = none' as the UPS is using only RX, TX and
GND pins.
So my 'usp.conf' was a bit like that:
> [myups]
> driver = blazer_ser
> port = /dev/ttyS0
> cablepower = none
> desc = "Local UPS"
To use the USB connection required a bit more work, but I eventually
found out what it takes:
> [myups]
> driver = blazer_usb
> port = /dev/ttyS0 # probably irrelevant
> vendorid = 14f0
> productid = 00c9
> subdriver = phoenix
> desc = "Local UPS"
I also made a patch so I don't need to define 'vendorid', 'productid'
and 'subdriver' in config, but since I'm not a programmer, the patch is
mostly 'guesswork'. The patch is against nut-2.6.0 release.
I hope this list accepts attachments...
Regards, Danilo
--
Danilo Godec, sistemska podpora / system administration
Predlog! Obiscite prenovljeno spletno stran www.agenda.si
ODPRTA KODA IN LINUX
STORITVE : POSLOVNE RESITVE : UPRAVLJANJE IT : INFRASTRUKTURA IT :
IZOBRAZEVANJE : PROGRAMSKA OPREMA
Visit our updated web page at www.agenda.si
OPEN SOURCE AND LINUX
SERVICES : BUSINESS SOLUTIONS : IT MANAGEMENT : IT INFRASTRUCTURE : TRAINING :
SOFTWARE
diff -Nur nut-2.6.0/drivers/blazer_usb.c nut-2.6.0-new/drivers/blazer_usb.c
--- nut-2.6.0/drivers/blazer_usb.c 2010-12-24 14:24:29.000000000 +0100
+++ nut-2.6.0-new/drivers/blazer_usb.c 2011-04-14 13:59:17.074896771 +0200
@@ -294,6 +294,12 @@
return NULL;
}
+static void *phoenix_subdriver(void)
+{
+ subdriver_command = &phoenix_command;
+ return NULL;
+}
+
static usb_device_id_t blazer_usb_id[] = {
{ USB_DEVICE(0x05b8, 0x0000), &cypress_subdriver }, /* Agiler UPS */
@@ -302,6 +308,7 @@
{ USB_DEVICE(0x0665, 0x5161), &cypress_subdriver }, /* Belkin F6C1200-UNV */
{ USB_DEVICE(0x06da, 0x0003), &ippon_subdriver }, /* Mustek Powermust */
{ USB_DEVICE(0x0f03, 0x0001), &cypress_subdriver }, /* Unitek Alpha 1200Sx */
+ { USB_DEVICE(0x14f0, 0x00c9), &phoenix_subdriver }, /* GE EP series */
/* end of list */
{-1, -1, NULL}
};
_______________________________________________
Nut-upsdev mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/nut-upsdev