Professional Web Applications Themes

apcupsd with usb - FreeBSD

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. Has anyone a working (beta) version of this freebsd-apcupsd with usb-support? When will be usb officialy supported? (And no, I can not workaround with serial, since the 1U-server doesn't have any) Thanks in advance Chris P.S.: Sorry for any inconveniences caused, if this is not the correct list....

  1. #1

    Default apcupsd with usb

    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.

    Has anyone a working (beta) version of this freebsd-apcupsd with usb-support?

    When will be usb officialy supported? (And no, I can not workaround with serial,
    since the 1U-server doesn't have any)

    Thanks in advance
    Chris

    P.S.: Sorry for any inconveniences caused, if this is not the correct list.
    Ing. Guest

  2. #2

    Default apcupsd with usb


    Ing. Christian Sudec writes:
     

    The folks at apcupsd are in the middle of rolling a new version
    - to be tagged either 3.10.17 or 3.11, I'm a little unclear - which
    will include the beta (I would call it gamma) FreeBSD USB code. The
    code is actually there, and can probably be had from their CVS;
    what's holding up the formal release (and therefore the port) is
    getting the doentation in sync.
    You may want to subscribe to the mailing list for more
    information.



    Robert Huff



    Robert Guest

  3. #3

    Default Re: apcupsd with usb

    On Tue, 05 Apr 2005 11:27:55 +0200, in sentex.lists.freebsd.questions
    you wrote:
     

    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
    ONBATT: 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 sentex.ca
    (no tty) at 22:32 EDT...

    Warning power loss detected.


    Broadcast Message from sentex.ca
    (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
    ONBATT: 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 sentex.ca
    (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
    ONBATT: 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
    net, (http://www.tancsa.com)
    Mike Guest

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139