UPC Back-UPS BK500EI problem

Status
Not open for further replies.

cr4sh

Cadet
Joined
Aug 7, 2013
Messages
7
Hello.
I have little problem with

FreeBSD 9.1-STABLE FreeBSD 9.1-STABLE #0 r+1a51513: Wed Jul 31 21:54:30 PDT 2013 root@build.ixsystems.com:/home/alfred/fn/9.1-RELEASE/os-base/amd64/tank/home/alfred/fn/9.1-RELEASE/FreeBSD/src/sys/FREENAS.amd64 amd64
and UPS UPC BACK-UPS BK500EI.

I set all up, i think correct :
Driver : (usbhid-ups)
Port : /dev/ugen0.2 [ugen0.2: <Back-UPS CS 500 FW808.q10 .I USB FWq10 American Power Conversion> at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (2mA)
]

But when i try to start service UPS: i got in console :
Aug 7 13:47:33 freenas notifier: Using subdriver: APC HID 0.95
Aug 7 13:47:33 freenas notifier: Network UPS Tools - Generic HID driver 0.37 (2.6.5)
Aug 7 13:47:33 freenas notifier: USB communication driver 0.31
Aug 7 13:47:34 freenas notifier: libusb_get_report: Unknown error
Aug 7 13:47:34 freenas notifier: Can't initialize data from HID UPS
Aug 7 13:47:34 freenas notifier: Driver failed to start (exit status=1)
Aug 7 13:47:34 freenas notifier: Network UPS Tools - UPS driver controller 2.6.5
Aug 7 13:47:34 freenas root: /usr/local/etc/rc.d/nut: WARNING: failed precmd routine for nut
Aug 7 13:47:34 freenas notifier: /usr/local/etc/rc.d/nut: WARNING: failed precmd routine for nut
Aug 7 13:47:34 freenas notifier: nut_upsmon not running? (check /var/db/nut/upsmon.pid).
Aug 7 13:47:34 freenas notifier: Starting nut_upsmon.
Aug 7 13:47:34 freenas notifier: kill: No such process
Aug 7 13:47:34 freenas notifier: UPS: ups (master) (power value 1)
Aug 7 13:47:34 freenas upsmon[15995]: UPS [ups]: connect failed: Connection failure: Connection refused
Aug 7 13:47:34 freenas upsmon[15995]: Communications with UPS ups lost
Aug 7 13:47:34 freenas notifier: nut_upslog not running? (check /var/db/nut/upslog.pid).
Aug 7 13:47:34 freenas notifier: Starting nut_upslog.
Aug 7 13:47:34 freenas notifier: Warning: initial connect failed: Connection failure: Connection refused
Aug 7 13:47:35 freenas notifier: Stopping nut_upslog.
Aug 7 13:47:35 freenas notifier: Waiting for PIDS: 16023.
Aug 7 13:47:35 freenas notifier: Stopping nut_upsmon.
Thanks all for any help with this issue.
 

paleoN

Wizard
Joined
Apr 22, 2012
Messages
1,403

cr4sh

Cadet
Joined
Aug 7, 2013
Messages
7
Try changing the port to auto by typing it in.
Thanks for info. I try it tomorrow.
I pmed to NUT mailinglist that info :
Code:
OS : FreeBSD NAS 9.1-STABLE FreeBSD 9.1-STABLE [uname -a]
Version : Network UPS Tools upsd 2.6.5 [upsd -V]
Installation method : build into FreeNAS 9
UPS : APC Back-UPS 500 BK500EI USB
Today i install FreeNAS and try to connect to it my UPS APC Back-UPS 500 BK500EI via USB with no luck;/
If anyone can try to help me I would be grateful.
My configs
nut.conf :
MODE=standalone
 
ups.conf:
[ups]
driver = usbhid-ups
port = /dev/ugen0.2
desc = "BackUPS CS 500"
 
My info
usbconfig list
ugen0.2: <Back-UPS CS 500 FW808.q10 .I USB FWq10 American Power Conversion> at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (2mA)
 
When i try to start it i get this :
/usr/local/etc/rc.d/nut start
Network UPS Tools - UPS driver controller 2.6.5
Network UPS Tools - Generic HID driver 0.37 (2.6.5)
USB communication driver 0.31
Using subdriver: APC HID 0.95
libusb_get_report: Unknown error
Can't initialize data from HID UPS
Driver failed to start (exit status=1)
/usr/local/etc/rc.d/nut: WARNING: failed precmd routine for nut
 
 
1.115408 Report[buf]: (3 bytes) => 33 0c 00
1.115423 Path: UPS.PresentStatus.ff860080, Type: Input, ReportID: 0x33, Offset: 12, Size: 1, Value: 0
1.115430 Report[buf]: (3 bytes) => 33 0c 00
1.115438 Path: UPS.PresentStatus.ff860080, Type: Feature, ReportID: 0x33, Offset: 12, Size: 1, Value: 0
1.118990 Report[get]: (3 bytes) => 60 00 00
1.119025 Path: UPS.ff860001.ff860023, Type: Feature, ReportID: 0x60, Offset: 0, Size: 16, Value: 0
1.122998 Report[get]: (2 bytes) => 61 0a
1.123078 Path: UPS.ff860001.ff860026, Type: Feature, ReportID: 0x61, Offset: 0, Size: 8, Value: 10
1.126991 Report[get]: (5 bytes) => 62 00 01 02 03
1.127026 Path: UPS.ff860001.ff860025, Type: Feature, ReportID: 0x62, Offset: 0, Size: 32, Value: 0
1.130990 Report[get]: (2 bytes) => 51 94
1.131024 Path: UPS.PowerConverter.ff860024, Type: Feature, ReportID: 0x51, Offset: 0, Size: 8, Value: 148
1.131060 Report descriptor retrieved (Reportlen = 1217)
1.131068 Found HID device
1.131074 Detected a UPS: American Power Conversion/Back-UPS CS 500 FW:808.q10 .I USB FW:q10
1.131116 Report[buf]: (2 bytes) => 0c 64
1.131129 Path: UPS.PowerSummary.RemainingCapacity, Type: Feature, ReportID: 0x0c, Offset: 0, Size: 8, Value: 100
1.131153 Report[buf]: (2 bytes) => 11 0a
1.131174 Path: UPS.PowerSummary.RemainingCapacityLimit, Type: Feature, ReportID: 0x11, Offset: 0, Size: 8, Value: 10
1.131210 Report[buf]: (2 bytes) => 0f 32
1.131216 Path: UPS.PowerSummary.WarningCapacityLimit, Type: Feature, ReportID: 0x0f, Offset: 0, Size: 8, Value: 50
1.131236 Report[buf]: (3 bytes) => 19 54 06
1.131243 Path: UPS.Battery.RunTimeToEmpty, Type: Feature, ReportID: 0x19, Offset: 0, Size: 16, Value: 1620
1.131272 Report[buf]: (3 bytes) => 1a 78 00
1.131278 Path: UPS.Battery.RemainingTimeLimit, Type: Feature, ReportID: 0x1a, Offset: 0, Size: 16, Value: 120
1.131314 Report[buf]: (3 bytes) => 1d 47 05
1.131324 Path: UPS.Battery.Voltage, Type: Feature, ReportID: 0x1d, Offset: 0, Size: 16, Value: 13.51
1.131349 Report[buf]: (3 bytes) => 1f b0 04
1.131355 Path: UPS.Battery.ConfigVoltage, Type: Feature, ReportID: 0x1f, Offset: 0, Size: 16, Value: 12
1.131381 Report[buf]: (3 bytes) => 1e cf 0b
1.131389 Path: UPS.Battery.Temperature, Type: Feature, ReportID: 0x1e, Offset: 0, Size: 16, Value: 302.3
1.131410 Report[buf]: (2 bytes) => 05 04
1.131417 Path: UPS.PowerSummary.iDeviceChemistry, Type: Feature, ReportID: 0x05, Offset: 0, Size: 8, Value: 4
1.144027 Report[buf]: (3 bytes) => 15 2e 42
1.144042 Path: UPS.Battery.ManufacturerDate, Type: Feature, ReportID: 0x15, Offset: 0, Size: 16, Value: 16942
1.144076 Report[buf]: (4 bytes) => 45 13 14 01
1.144085 Path: UPS.Battery.APCBattReplaceDate, Type: Feature, ReportID: 0x45, Offset: 0, Size: 24, Value: 70675
1.144109 Report[buf]: (3 bytes) => 2c fa 00
1.144118 Path: UPS.Output.PercentLoad, Type: Feature, ReportID: 0x2c, Offset: 0, Size: 16, Value: 25
1.144205 Report[buf]: (3 bytes) => 12 ff ff
1.144214 Path: UPS.PowerSummary.DelayBeforeShutdown, Type: Feature, ReportID: 0x12, Offset: 0, Size: 16, Value: -1
1.144231 Report[buf]: (4 bytes) => 13 00 00 00
1.144237 Path: UPS.PowerSummary.DelayBeforeReboot, Type: Feature, ReportID: 0x13, Offset: 0, Size: 24, Value: 0
1.144287 Report[buf]: (3 bytes) => 28 00 00
1.144296 Path: UPS.Output.DelayBeforeStartup, Type: Feature, ReportID: 0x28, Offset: 0, Size: 16, Value: 0
1.144373 Report[buf]: (2 bytes) => 16 06
1.144382 Path: UPS.Battery.Test, Type: Feature, ReportID: 0x16, Offset: 0, Size: 8, Value: 6
1.144400 Report[buf]: (2 bytes) => 14 02
1.144407 Path: UPS.PowerSummary.AudibleAlarmControl, Type: Feature, ReportID: 0x14, Offset: 0, Size: 8, Value: 2
1.144427 Report[buf]: (3 bytes) => 35 2e 42
1.144433 Path: UPS.ManufacturerDate, Type: Feature, ReportID: 0x35, Offset: 0, Size: 16, Value: 16942
1.144471 Report[buf]: (3 bytes) => 52 2c 01
1.144479 Path: UPS.Output.ConfigActivePower, Type: Feature, ReportID: 0x52, Offset: 0, Size: 16, Value: 300
1.144501 Report[buf]: (3 bytes) => 07 0c 00
1.144507 Path: UPS.PowerSummary.PresentStatus.ACPresent, Type: Feature, ReportID: 0x07, Offset: 2, Size: 1, Value: 1
1.144533 Report[buf]: (3 bytes) => 07 0c 00
1.144541 Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Feature, ReportID: 0x07, Offset: 1, Size: 1, Value: 0
1.144559 Report[buf]: (3 bytes) => 07 0c 00
1.144565 Path: UPS.PowerSummary.PresentStatus.Charging, Type: Feature, ReportID: 0x07, Offset: 0, Size: 1, Value: 0
1.144580 Report[buf]: (3 bytes) => 07 0c 00
1.144586 Path: UPS.PowerSummary.PresentStatus.ShutdownImminent, Type: Feature, ReportID: 0x07, Offset: 6, Size: 1, Value: 0
1.144604 Report[buf]: (3 bytes) => 07 0c 00
1.144609 Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit, Type: Feature, ReportID: 0x07, Offset: 4, Size: 1, Value: 0
1.144625 Report[buf]: (3 bytes) => 07 0c 00
1.144631 Path: UPS.PowerSummary.PresentStatus.Overload, Type: Feature, ReportID: 0x07, Offset: 10, Size: 1, Value: 0
1.144656 Report[buf]: (3 bytes) => 07 0c 00
1.144664 Path: UPS.PowerSummary.PresentStatus.NeedReplacement, Type: Feature, ReportID: 0x07, Offset: 9, Size: 1, Value: 0
1.144682 Report[buf]: (3 bytes) => 07 0c 00
1.144688 Path: UPS.PowerSummary.PresentStatus.RemainingTimeLimitExpired, Type: Feature, ReportID: 0x07, Offset: 7, Size: 1, Value: 0
1.144708 Report[buf]: (3 bytes) => 07 0c 00
1.144714 Path: UPS.PowerSummary.PresentStatus.BatteryPresent, Type: Feature, ReportID: 0x07, Offset: 3, Size: 1, Value: 1
1.144800 Report[buf]: (2 bytes) => 21 00
1.144808 Path: UPS.Input.APCLineFailCause, Type: Feature, ReportID: 0x21, Offset: 0, Size: 8, Value: 0
1.144821 Report[buf]: (2 bytes) => 21 00
1.144827 Path: UPS.Input.APCLineFailCause, Type: Feature, ReportID: 0x21, Offset: 0, Size: 8, Value: 0
1.144842 Report[buf]: (5 bytes) => 20 4c 09 00 00
1.144848 Path: UPS.Input.Voltage, Type: Feature, ReportID: 0x20, Offset: 0, Size: 32, Value: 238
1.146989 libusb_get_report: Unknown error
1.147004 Can't retrieve Report 46: Input/output error
1.147031 Can't initialize data from HID UPS
 

paleoN

Wizard
Joined
Apr 22, 2012
Messages
1,403
I pmed to NUT mailinglist that info :
They will certainly know better than me. ;) FYI, 9-stable does have an updated USB stack and has XHCI, USB3, enabled by default.
 

paleoN

Wizard
Joined
Apr 22, 2012
Messages
1,403
http://thread.gmane.org/gmane.comp.monitoring.nut.user/7420/focus=7422 here is a patch for this UPS. But i dont have configs parameteres, and default configs makes mass in my file tree. If anyone can apply this patch and give package for it i will be grateful.
Good work. Here's the referenced commit. You can try asking on the nut mailing list for a snapshot build if you aren't able to build the source yourself. Otherwise, you are stuck waiting for the next version of nut.
 
Status
Not open for further replies.
Top