Table of Contents

APC SmartUps SU-700 - Linksys EA3500 - LuCI graphs

This describes how to connect an APC SmartUps SU-700 via USB on a Linksys EA3500 router. This includes collecting the data, and displaying graphs.

Saving the data across Reboots

Troubleshooting

If you don't have APC UPS graphs at this point, here are some things to check:

  1. Change the data collection interval to 10 seconds. This is a workaround for the issue reported in: https://github.com/collectd/collectd/issues/617.
    • Go to Statistics / Setup /
    • Change the Data collection interval to 10 seconds
  2. Verify that serial communication to the UPS is working - On a PC
    • attach usb converter to PC
    • startup minicom (or equivalent): minicom -D /dev/ttyUSB0
    • ctrl-a, ctrl-z, P,
    • change port configuration to 2400,8,n,1
    • ctrl-a, ctrl-z, O, Serial Port Setup
    • change port configuration to hardware / software flow control: none
    • type the uppercase letter: Y , and expect the reply SM
      Y
      SM
    • Note: serial APC UPS commands are documented at: http://networkupstools.org/protocols/apcsmart.html )
  3. Verify that serial communication to the UPS is working - On the Router
    • Detach the usb converter from PC , attach to router
    • Install minicom on the router.
    • Use the same minicom commands to verify communication with the router.
    • type the uppercase letter: Y , and expect the reply SM
      Y
      SM
  4. There should be a tab for APC UPS on the General Plugins page at:
    http://192.168.1.1/cgi-bin/luci/admin/statistics/collectd/general

    If not, you may not have the patches that added luci-statistics support for the apcups plugin: https://github.com/openwrt/luci/pull/1227. The best fix for this is to upgrade to a version that does.

  5. /var/etc/collectd.conf should have a section for apcups:
    LoadPlugin apcups
     <Plugin apcups>
      Host localhost
      Port "3551"
     </Plugin>

    If it does not, you can regenerate /var/etc/collectd.conf with this command:

    /usr/bin/stat-genconfig > /var/etc/collectd.conf