[Nut-upsdev] [HCL] PowerShield Defender 1200VA supported by blazer_usb (mustek subdriver)

Arnaud Quette aquette.dev at gmail.com
Mon May 21 07:54:28 UTC 2012


Hi Tom,

> I've been experimenting with getting the PowerShield Defender 1200VA UPS
> working and it appears to be supported by the blazer_usb driver, although it
> did not have the correct permissions within udev to load the driver as the
> non-root user after an RPM install on Fedora Core 16.
>
> [root at localhost ~]# lsusb
> ...
> Bus 006 Device 005: ID 0665:5161 Cypress Semiconductor USB to Serial
>
> [root at localhost ~]# dmesg | grep usb
> [1034160.810062] usb 6-3: new low speed USB device number 5 using ohci_hcd
> [1034160.963157] usb 6-3: New USB device found, idVendor=0665,
> idProduct=5161
> [1034160.963166] usb 6-3: New USB device strings: Mfr=1, Product=2,
> SerialNumber=3
> [1034160.963173] usb 6-3: Product: USB to Serial
> [1034160.963178] usb 6-3: Manufacturer: INNO TECH
> [1034160.963183] usb 6-3: SerialNumber: 20100813
> [1034160.978571] generic-usb 0003:0665:5161.0006: hiddev0,hidraw2: USB HID
> v1.00 Device [INNO TECH USB to Serial] on usb-0000:00:13.1-3/input0
>
>
> [root at localhost ~]# upsc powershield at localhost
> battery.voltage: 27.40
> battery.voltage.nominal: 24.0
> beeper.status: enabled
> device.type: ups
> driver.name: blazer_usb
> driver.parameter.pollinterval: 2
> driver.parameter.port: auto
> driver.parameter.productid: 5161
> driver.parameter.vendorid: 0665
> driver.version: 2.6.3
> driver.version.internal: 0.04
> input.current.nominal: 5.0
> input.frequency: 49.9
> input.frequency.nominal: 50
> input.voltage: 244.5
> input.voltage.fault: 244.5
> input.voltage.nominal: 240
> output.voltage: 244.5
> ups.delay.shutdown: 30
> ups.delay.start: 180
> ups.load: 8
> ups.productid: 5161
> ups.status: OL
> ups.type: offline / line interactive
> ups.vendorid: 0665
>
> NOTE: I had to put the MODE="777" in my udev rules or I would get
> "permission denied" and "failed to open device" unless I ran with the "-u
> root" option at the command line.
>
> [root at localhost ~]# cat /etc/udev/rules.d/95-nut-ups.rules
> SYSFS{idVendor}=="0665", SYSFS{idProduct}=="5161", MODE="777",
> GROUP="@RUN_AS_USER@"

beware that udev rules location have changed!
these were previously in /etc/udev and are now in /lib/udev...

the correct rule should already be present in this file (with MODE=664).

> [root at localhost init.d]# /sbin/upsdrvctl start
> Network UPS Tools - UPS driver controller 2.6.3
> Network UPS Tools - Megatec/Q1 protocol USB driver 0.04 (2.6.3)
> Supported UPS detected with mustek protocol
> Vendor information unavailable
> Battery runtime will not be calculated (runtimecal not set)

I've recently committed a small improvement to guesstimate runtime.
this will be available in the upcoming 2.6.4.

before adding this new entry, have you tested the shutdown procedure?
http://www.networkupstools.org/stable-hcl.html#footnotes

cheers,
Arnaud
-- 
Linux / Unix Expert R&D - Eaton - http://powerquality.eaton.com
Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/
Debian Developer - http://www.debian.org
Free Software Developer - http://arnaud.quette.free.fr/



More information about the Nut-upsdev mailing list