apcupsd using ubuntu and the BE550G APC Back-UPS ES 550

http://www.apcupsd.org/
http://www.apc.com/resource/include/techspec_index.cfm?base_sku=BE550G
#/var/log/messages
#generic-usb 0003:051D:0002.0004: hiddev96,hidraw3: USB HID v1.10 Device [APC Back-UPS ES 550 FW:843.K1 .D USB FW:K1 ] on usb-0000:00:04.0-8/input0

apt-get install apcupsd apcupsd-doc apcupsd-cgi gapcmon
vi /etc/default/apcupsd
ISCONFIGURED=yes

vi /etc/apcupsd/apcupsd.conf
UPSCABLE usb
UPSTYPE usb
DEVICE
BATTERYLEVEL 20
MINUTES 12

#send text message via Google Voice
vi /etc/apcupsd/onbattery
vi /etc/apcupsd/offbattery
/usr/local/bin/gvoice -b -e [email protected] -p pass send_sms 1NPANXXXXXX,1NPANXXXXXX "Power On/Off: http://HOST/cgi-bin/apcupsd/multimon.cgi" > /dev/null 2>&1

service apcupsd start

#Check the status of your UPS from shell
apcaccess status localhost:3551


#Link to cgi-bin per your /etc/apache2/sites-enabled/000-default
mkdir /XXXXXX/cgi-bin
cd /XXXXXX/cgi-bin
ln -s /usr/lib/cgi-bin/apcupsd apcupsd

http://XXXXXX/cgi-bin/apcupsd/multimon.cgi


lsusb -v

Bus 002 Device 004: ID 051d:0002 American Power Conversion Uninterruptible Power Supply
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0         8
  idVendor           0x051d American Power Conversion
  idProduct          0x0002 Uninterruptible Power Supply
  bcdDevice            1.06
  iManufacturer           3 APC
  iProduct                1 Back-UPS ES 550 FW:843.K1 .D USB FW:K1 
  iSerial                 2 3B1809X60412  
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           34
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower                2mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      0 No Subclass
      bInterfaceProtocol      0 None
      iInterface              0 
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.10
          bCountryCode           33 US
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength     845
         Report Descriptors: 
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0006  1x 6 bytes
        bInterval              10
Device Status:     0x0000
  (Bus Powered)


Adapted from
http://forums.fedoraforum.org/showthread.php?t=213529

1 comment:

Jim Tonti said...

Gavin-
Thank you, thank you, thank you!
I finally got my APC Back UPS ES 550 BE550G working on Ubuntu 12.04 LTS due to your post - it helped me find a (somewhat stupid) error in my config file, and showed useful commands and edits that the 'official docs' leave out. Thank you!