Two USB APC UPS issue in 8.0-Release

Hi!

I trying to organize a UPS server on FreeBSD AMD64-8.0-Release.
I have two identical SmartUPS 3000XL, both attached by USB.

To make this i installed apcupsd 3.14.5_1 from the FreeBSD ports then
modified all the configs as described on the apcupsd's manual (i.e. i have two
.conf files, starting two daemons on two different ports, copied and
edited the scripts etc.)
All working fine when i have one from two UPSs connected. When i try
to connect both, all daemons starts to monitor one (last enumerated).

I thinked about non-correct working of autodetect (the blank DEVICE line in .conf file) and tried to write the corresponding values (/dev/ugen0.2 and /dev/ugen1.2 for my system), tried to reconnect the cables to other ports, tried to upgrade apcupsd to the last stable (3.14.7), but nothing happens: both daemons stay monitoring the same last enumerated device. If i detach this device, all the daemons starts to monitor the other one.

On my system (8.0) the boot message are:
Code:
ugen0.2: <American Power Conversion> at usbus0

and

Code:
ugen1.2: <American Power Conversion> at usbus1

Which are truncated, as described in http://forums.freebsd.org/showthread.php?t=9174&highlight=usb+ups

My be the problem is in equal device names?

Any ideas how fix this?
 
This has been fixed. See below:

Adam Kropelin wrote:
> I will think about how we can add that feature, perhaps using the UPS
> serial number.

I've made an enhancement to the generic-usb driver that allows you to
specify the serial number of the UPS to monitor on the 'DEVICE' line in
apcupsd.conf. (Note that this must be the serial number as reported by the
UPS over USB, which may not exactly match the sticker on the back of the
UPS. Check your dmesg log or 'apcaccess status [with apcupsd in autodetect
mode] in order to determine the proper value.) If you leave the DEVICE line blank this continues to mean "autodetect".

The new code is in CVS. To check out the current code from CVS, do the
following:

cvs -d:pserver:anonymous@ap...:/cvsroot/apcupsd \
login
<leave password blank>

cvs -d:pserver:anonymous@ap...:/cvsroot/apcupsd \
co -P -dapcupsd-3.14 -rBranch-3_14 apcupsd

The source will be in a directory named "apcupsd-3.14".

This also includes a fix for compiling the generic-usb driver on FreeBSD 8.0 so you do not have to merge any special changes.
 
Back
Top