NUT and UPS via USB



  • Hmm, I can't make it work.

    I have an APC SmartUPS 1000i (SUA1000i).
    I have a USB cable going from the UPS to one of the firewall USB ports.
    I tried running dmesg and I dot see the USB…

    dmesg

    Copyright (c) 1992-2008 The FreeBSD Project.
    Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
            The Regents of the University of California. All rights reserved.
    FreeBSD is a registered trademark of The FreeBSD Foundation.
    FreeBSD 7.0-RELEASE-p5 #0: Wed Nov 19 21:52:05 EST 2008
        sullrich@freebsd7-releng_1_2.pfsense.org:/usr/obj.pfSense/usr/src/sys/pfSense.7
    Timecounter "i8254" frequency 1193182 Hz quality 0
    CPU: VIA C3 Nehemiah+RNG+AES (799.86-MHz 686-class CPU)
      Origin = "CentaurHauls"  Id = 0x698  Stepping = 8
      Features=0x381b83f <fpu,vme,de,pse,tsc,msr,sep,mtrr,pge,cmov,pat,mmx,fxsr,sse>real memory  = 469696512 (447 MB)
    avail memory = 445624320 (424 MB)
    wlan: mac acl policy registered
    kbd1 at kbdmux0
    ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
    hptrr: HPT RocketRAID controller driver v1.1 (Nov 19 2008 21:51:45)
    cryptosoft0: <software crypto="">on motherboard
    acpi0: <vt9174 awrdacpi="">on motherboard
    acpi0: [ITHREAD]
    acpi0: Power Button (fixed)
    acpi0: reservation of 0, a0000 (3) failed
    acpi0: reservation of 100000, 1bef0000 (3) failed
    Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
    acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0
    cpu0: <acpi cpu="">on acpi0
    acpi_throttle0: <acpi cpu="" throttling="">on cpu0
    acpi_button0: <power button="">on acpi0
    pcib0: <acpi host-pci="" bridge="">port 0xcf8-0xcff on acpi0
    pci0: <acpi pci="" bus="">on pcib0
    agp0: <via 862x="" (cle266)="" host="" to="" pci="" bridge="">on hostb0
    agp0: Invalid aperture setting 0x0agp0: Invalid aperture setting 0x0agp0: bad aperture size
    agp0: Invalid aperture setting 0x0agp0: Invalid aperture size (0Mb)
    device_attach: agp0 attach returned 12
    pcib1: <pci-pci bridge="">at device 1.0 on pci0
    pci1: <pci bus="">on pcib1
    vgapci0: <vga-compatible display="">mem 0xd8000000-0xdbffffff,0xdc000000-0xdcffffff irq 11 at device 0.0 on pci1
    uhci0: <via 83c572="" usb="" controller="">port 0xe000-0xe01f irq 11 at device 16.0 on pci0
    uhci0: [GIANT-LOCKED]
    uhci0: [ITHREAD]
    usb0: <via 83c572="" usb="" controller="">on uhci0
    usb0: USB revision 1.0
    uhub0: <via 1="" 9="" uhci="" root="" hub,="" class="" 0,="" rev="" 1.00="" 1.00,="" addr="">on usb0
    uhub0: 2 ports with 2 removable, self powered
    uhci1: <via 83c572="" usb="" controller="">port 0xd000-0xd01f irq 5 at device 16.1 on pci0
    uhci1: [GIANT-LOCKED]
    uhci1: [ITHREAD]
    usb1: <via 83c572="" usb="" controller="">on uhci1
    usb1: USB revision 1.0
    uhub1: <via 1="" 9="" uhci="" root="" hub,="" class="" 0,="" rev="" 1.00="" 1.00,="" addr="">on usb1
    uhub1: 2 ports with 2 removable, self powered
    uhci2: <via 83c572="" usb="" controller="">port 0xd400-0xd41f irq 10 at device 16.2 on pci0
    uhci2: [GIANT-LOCKED]
    uhci2: [ITHREAD]
    usb2: <via 83c572="" usb="" controller="">on uhci2
    usb2: USB revision 1.0
    uhub2: <via 1="" 9="" uhci="" root="" hub,="" class="" 0,="" rev="" 1.00="" 1.00,="" addr="">on usb2
    uhub2: 2 ports with 2 removable, self powered
    ehci0: <via vt6202="" usb="" 2.0="" controller="">mem 0xde101000-0xde1010ff irq 7 at device 16.3 on pci0
    ehci0: [GIANT-LOCKED]
    ehci0: [ITHREAD]
    usb3: EHCI version 1.0
    usb3: companion controllers, 2 ports each: usb0 usb1 usb2
    usb3: <via vt6202="" usb="" 2.0="" controller="">on ehci0
    usb3: USB revision 2.0
    uhub3: <via 1="" 9="" ehci="" root="" hub,="" class="" 0,="" rev="" 2.00="" 1.00,="" addr="">on usb3
    uhub3: 6 ports with 6 removable, self powered
    isab0: <pci-isa bridge="">at device 17.0 on pci0
    isa0: <isa bus="">on isab0
    atapci0: <via 8235="" udma133="" controller="">port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xd800-0xd80f at device 17.1 on pci0
    ata0: <ata 0="" channel="">on atapci0
    ata0: [ITHREAD]
    ata1: <ata 1="" channel="">on atapci0
    ata1: [ITHREAD]
    vr0: <via 10="" vt6102="" rhine="" ii="" 100basetx="">port 0xdc00-0xdcff mem 0xde100000-0xde1000ff irq 11 at device 18.0 on pci0
    vr0: Quirks: 0x0
    vr0: Revision: 0x74
    miibus0: <mii bus="">on vr0
    ukphy0: <generic ieee="" 802.3u="" media="" interface="">PHY 1 on miibus0
    ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
    vr0: Ethernet address: 00:40:63:ee:3b:7e
    vr0: [ITHREAD]
    pcib2: <pci-pci bridge="">at device 20.0 on pci0
    pci2: <pci bus="">on pcib2
    fxp0: <intel 100="" 82550="" pro="" ethernet="">port 0xc000-0xc03f mem 0xde041000-0xde041fff,0xde000000-0xde01ffff irq 5 at device 4.0 on pci2
    miibus1: <mii bus="">on fxp0
    inphy0: <i82555 10="" 100="" media="" interface="">PHY 1 on miibus1
    inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
    fxp0: Ethernet address: 00:02:b3:00:53:00
    fxp0: [ITHREAD]
    fxp1: <intel 100="" 82550="" pro="" ethernet="">port 0xc400-0xc43f mem 0xde040000-0xde040fff,0xde020000-0xde03ffff irq 10 at device 5.0 on pci2
    miibus2: <mii bus="">on fxp1
    inphy1: <i82555 10="" 100="" media="" interface="">PHY 1 on miibus2
    inphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
    fxp1: Ethernet address: 00:02:b3:00:53:01
    fxp1: [ITHREAD]
    speaker0: <pc speaker="">port 0x61 on acpi0
    atkbdc0: <keyboard controller="" (i8042)="">port 0x60,0x64 irq 1 on acpi0
    atkbd0: <at keyboard="">irq 1 on atkbdc0
    kbd0 at atkbd0
    atkbd0: [GIANT-LOCKED]
    atkbd0: [ITHREAD]
    psm0: <ps 2="" mouse="">irq 12 on atkbdc0
    psm0: [GIANT-LOCKED]
    psm0: [ITHREAD]
    psm0: model IntelliMouse Explorer, device ID 4
    pmtimer0 on isa0
    ppc0: parallel port not found.
    sc0: <system console="">at flags 0x100 on isa0
    sc0: VGA <16 virtual consoles, flags=0x300>
    sio0: configured irq 4 not in bitmap of probed irqs 0
    sio0: port may not be enabled
    sio0: configured irq 4 not in bitmap of probed irqs 0
    sio0: port may not be enabled
    sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
    sio0: type 8250 or not responding
    sio0: [FILTER]
    sio1: configured irq 3 not in bitmap of probed irqs 0
    sio1: port may not be enabled
    vga0: <generic isa="" vga="">at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
    ugen0: <american 0="" 2="" 1000="" power="" conversion="" smart-ups="" fw:600.3.i="" usb="" fw:1.4,="" class="" 0,="" rev="" 1.10="" 0.06,="" addr="">on uhub0
    Timecounter "TSC" frequency 799863267 Hz quality 800
    Timecounters tick every 1.000 msec
    Fast IPsec: Initialized Security Association Processing.
    hptrr: no controller detected.
    ad0: FAILURE - SETFEATURES SET TRANSFER MODE status=51 <ready,dsc,error>error=4 <aborted>ad0: 976MB <toshiba thncf1g02ma="" 3.10="">at ata0-master BIOSPIO
    acd0: CDROM <cd-224e 1.5a="">at ata1-master PIO4
    Trying to mount root from ufs:/dev/ad0s1a
    vr0: link state changed to UP
    fxp0: link state changed to UP
    fxp1: link state changed to DOWN
    pflog0: promiscuous mode enabled

    If I unplug the USB cable, it says this on the console
    ugen0: at uhub0 port 2 (addr 2) disconnected
    ugen0: detached

    If I plug it back in it shows:
    ugen0: American Power Conversion Smart-UPS 1000 FW:600.3.I USB FW:1.4, class 0/0, rev 1.10/0.06 addr2> on uhub0

    So as I can read this, the USB port registeres it.

    The pfSense NUT package has been set up with
    UPS Monitoring: Local UPS
    Local UPS Name: Smart-UPS
    Local UPS Model: APS Smart-UPS USB
    Local UPS Interface: auto (USB only)

    Any ideas?</cd-224e></toshiba></aborted></ready,dsc,error></american></generic></system></ps></at></keyboard></pc></i82555></mii></intel></i82555></mii></intel></pci></pci-pci></generic></mii></via></ata></ata></via></isa></pci-isa></via></via></via></via></via></via></via></via></via></via></via></via></vga-compatible></pci></pci-pci></via></acpi></acpi></power></acpi></acpi></vt9174></software></fpu,vme,de,pse,tsc,msr,sep,mtrr,pge,cmov,pat,mmx,fxsr,sse>



  • I was also having problems with the nut package in 1.2.1 RC2 and a APC ES-350 using a usb cable.
    I was able to resolve the issue by running a search and replace on "nut.xml"  and replacing all instances of "newhidups" with "usbhid-ups"

    Hope that helps
    GP

    P.S as always it would be a good idea to make a backup of "nut.xml" before you start!


Log in to reply