On Tue, 05 Apr 2005 11:27:55 +0200, in sentex.lists.freebsd.questions you wrote:
>Hi there, > >a few months back there was already a question in this list regarding >usb support in apcupsd since afaik only usb with linux is still supported. >But there was a beta version named apcupsd-3.10.16-test2 which delivered >the functions I need. Sad but true the link was broken. Hi, the version I downloaded from sourceforge works great so far (apcupsd-3.10.17) I was just playing with it today actually. Couple of caveats-- make sure the device is assigned to ugen, not uhid. To compile, ./configure --prefix=/usr/local --sbindir=/usr/local/sbin --enable-usb --sysconfdir=/usr/local/etc [releng5-865]# usbdevs addr 1: UHCI root hub, Intel addr 2: Back-UPS ES 725 FW:802.n2.D USB FW:n2, APC addr 3: U.S. Robotics 56K Faxmodem USB, U.S. Robotics addr 1: UHCI root hub, Intel addr 2: USB FAST SERIAL ADAPTER, FTDI addr 3: USB Communicator, STMicroelectronics addr 1: UHCI root hub, Intel addr 1: UHCI root hub, Intel [releng5-865]# Here is my minimal config [releng5-865]# grep -v ^# apcupsd.conf | strings UPSNAME usb-test UPSCABLE smart UPSTYPE usb DEVICE usb /dev/uhid0 LOCKFILE /var/spool/lock ONBATTERYDELAY 6 BATTERYLEVEL 5 MINUTES 3 TIMEOUT 0 ANNOY 300 ANNOYDELAY 60 NOLOGON disable KILLDELAY 0 NETSERVER on NISIP 0.0.0.0 NISPORT 3551 EVENTSFILE /var/log/apcupsd.events EVENTSFILEMAX 10 UPSCLASS standalone UPSMODE disable STATTIME 0 STATFILE /var/log/apcupsd.status LOGSTATS off DATATIME 0 [releng5-865]# [releng5-865]# apcaccess status APC : 001,033,0842 DATE : Tue Apr 05 22:32:02 EDT 2005 HOSTNAME : releng5-865.sentex.ca RELEASE : 3.10.17 VERSION : 3.10.17 (18 March 2005) freebsd UPSNAME : usb-test CABLE : Custom Cable Smart MODEL : Back-UPS ES 725 UPSMODE : Stand Alone STARTTIME: Tue Apr 05 17:40:20 EDT 2005 STATUS : ONLINE LINEV : 119.0 Volts LOADPCT : 12.0 Percent Load Capacity BCHARGE : 100.0 Percent TIMELEFT : 42.5 Minutes MBATTCHG : 5 Percent MINTIMEL : 3 Minutes MAXTIME : 0 Seconds LOTRANS : 088.0 Volts HITRANS : 138.0 Volts ALARMDEL : Always BATTV : 13.5 Volts NUMXFERS : 0 TONBATT : 0 seconds CUMONBATT: 0 seconds XOFFBATT : N/A STATFLAG : 0x02000008 Status Flag MANDATE : 2002-10-23 SERIALNO : AB0243121472 BATTDATE : 2000-00-00 NOMBATTV : 12.0 FIRMWARE : 02.n2.D USB FW:n2 APCMODEL : Back-UPS ES 725 END APC : Tue Apr 05 22:32:05 EDT 2005 [releng5-865]# If I kill the power Broadcast Message from [EMAIL PROTECTED] (no tty) at 22:32 EDT... Warning power loss detected. Broadcast Message from [EMAIL PROTECTED] (no tty) at 22:32 EDT... Power failure. Running on UPS batteries. [releng5-865]# apcaccess status APC : 001,034,0884 DATE : Tue Apr 05 22:32:55 EDT 2005 HOSTNAME : releng5-865.sentex.ca RELEASE : 3.10.17 VERSION : 3.10.17 (18 March 2005) freebsd UPSNAME : usb-test CABLE : Custom Cable Smart MODEL : Back-UPS ES 725 UPSMODE : Stand Alone STARTTIME: Tue Apr 05 17:40:20 EDT 2005 STATUS : ONBATT LINEV : 001.0 Volts LOADPCT : 10.0 Percent Load Capacity BCHARGE : 099.0 Percent TIMELEFT : 44.4 Minutes MBATTCHG : 5 Percent MINTIMEL : 3 Minutes MAXTIME : 0 Seconds LOTRANS : 088.0 Volts HITRANS : 138.0 Volts ALARMDEL : Always BATTV : 12.6 Volts NUMXFERS : 1 XONBATT : Tue Apr 05 22:32:45 EDT 2005 TONBATT : 11 seconds CUMONBATT: 11 seconds XOFFBATT : N/A STATFLAG : 0x02068010 Status Flag MANDATE : 2002-10-23 SERIALNO : AB0243121472 BATTDATE : 2000-00-00 NOMBATTV : 12.0 FIRMWARE : 02.n2.D USB FW:n2 APCMODEL : Back-UPS ES 725 END APC : Tue Apr 05 22:32:56 EDT 2005 Broadcast Message from [EMAIL PROTECTED] (no tty) at 22:33 EDT... Power has returned... [releng5-865]# [releng5-865]# apcaccess status APC : 001,034,0908 DATE : Tue Apr 05 22:33:15 EDT 2005 HOSTNAME : releng5-865.sentex.ca RELEASE : 3.10.17 VERSION : 3.10.17 (18 March 2005) freebsd UPSNAME : usb-test CABLE : Custom Cable Smart MODEL : Back-UPS ES 725 UPSMODE : Stand Alone STARTTIME: Tue Apr 05 17:40:20 EDT 2005 STATUS : ONLINE LINEV : 118.0 Volts LOADPCT : 10.0 Percent Load Capacity BCHARGE : 082.0 Percent TIMELEFT : 36.8 Minutes MBATTCHG : 5 Percent MINTIMEL : 3 Minutes MAXTIME : 0 Seconds LOTRANS : 088.0 Volts HITRANS : 138.0 Volts ALARMDEL : Always BATTV : 12.6 Volts NUMXFERS : 1 XONBATT : Tue Apr 05 22:32:45 EDT 2005 TONBATT : 0 seconds CUMONBATT: 25 seconds XOFFBATT : Tue Apr 05 22:33:10 EDT 2005 STATFLAG : 0x02000008 Status Flag MANDATE : 2002-10-23 SERIALNO : AB0243121472 BATTDATE : 2000-00-00 NOMBATTV : 12.0 FIRMWARE : 02.n2.D USB FW:n2 APCMODEL : Back-UPS ES 725 END APC : Tue Apr 05 22:33:15 EDT 2005 [releng5-865]# ---Mike -------------------------------------------------------- Mike Tancsa, Sentex communications http://www.sentex.net Providing Internet Access since 1994 [EMAIL PROTECTED], (http://www.tancsa.com) _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"