• Currently using VMware at work? We want to hear from you.

    Thinking of making a switch from VMware? We'd love to hear your thoughts and feedback about which hypervisor you have been researching or already using. Click here to vote and share your thoughts! You can vote HERE!

Cannot connect to Powercom UPS

Status
Not open for further replies.

zerg

Dabbler
Joined
Sep 26, 2011
Messages
16
Build: FreeNAS-8.1-r7885-amd64
Platform AMD A4-3300 APU with Radeon(tm) HD Graphics

UPS: Powercom Black Knight Pro

Code:
Sep 29 01:54:25 freenas kernel: ugen2.2: <POWERCOM Co.,LTD> at usbus2 (disconnected)
Sep 29 01:54:25 freenas kernel: uhid0: at uhub2, port 2, addr 2 (disconnected)
Sep 29 01:54:29 freenas kernel: ugen2.2: <POWERCOM Co.,LTD> at usbus2
Sep 29 01:54:29 freenas root: Unknown USB device: vendor 0x0d9f product 0x00a6 bus uhub2
Sep 29 01:54:30 freenas kernel: uhid0: <POWERCOM Co.,LTD product 0x00a6, class 0/0, rev 1.10/0.01, addr 2> on usbus2


So it seems that I have to set Port to /dev/ugen2.2
Done

Code:
Sep 29 01:54:51 freenas freenas[1928]: Executing: /bin/pgrep -F /var/db/nut/upsd.pid upsd
Sep 29 01:54:56 freenas freenas[1928]: Executing: /usr/sbin/service ix-ups quietstart
Sep 29 01:54:56 freenas freenas[1928]: Executing: /usr/sbin/service nut restart
Sep 29 01:54:56 freenas freenas: nut not running? (check /var/db/nut/upsd.pid).
Sep 29 01:54:56 freenas freenas: tcgetattr(/dev/ugen2.2): Inappropriate ioctl for device
Sep 29 01:54:56 freenas freenas: Network UPS Tools - PowerCom protocol UPS driver 0.12 (2.4.1)
Sep 29 01:54:56 freenas freenas: Driver failed to start (exit status=1)
Sep 29 01:54:56 freenas freenas: Network UPS Tools - UPS driver controller 2.4.1


Port : /dev/uhid0 - the same.

P.S. On the NUT page i found that there is 2 kind of Black Knight : serial and USB. I Have the USB one.
So I should use "usbhid-ups (experimental)" driver. Nonexperimental does not work for me

Sep 29 19:07:34 freenas freenas: Network UPS Tools - Generic HID driver 0.34 (2.4.1)
Sep 29 19:07:34 freenas freenas: USB communication driver 0.31
Sep 29 19:07:34 freenas freenas: No matching HID UPS found
Sep 29 19:07:34 freenas freenas: Driver failed to start (exit status=1)
Sep 29 19:07:34 freenas freenas: Network UPS Tools - UPS driver controller 2.4.1
 

danruehle

Cadet
Joined
Jul 19, 2012
Messages
2
Ever get connected

I have a similar, if not the same UPS. Did you ever get it connected? I cannot. I'm using 8.2.0 RC1, same port as you have, none of the drivers work. Actually, selecting the powercom driver prevents nut_upsmon from starting.
 

zerg

Dabbler
Joined
Sep 26, 2011
Messages
16
8.0.4 works fine now


Jul 25 13:04:51 freenas freenas[2123]: Executing: /bin/pgrep -F /var/db/nut/upsd.pid upsd
Jul 25 13:04:54 freenas freenas[2123]: Executing: /usr/sbin/service ix-ups quietstart
Jul 25 13:04:54 freenas freenas[2123]: Executing: /usr/sbin/service nut restart
Jul 25 13:04:54 freenas freenas: nut not running? (check /var/db/nut/upsd.pid).
Jul 25 13:04:54 freenas freenas: Using subdriver: PowerCOM HID 0.2
Jul 25 13:04:54 freenas freenas: Network UPS Tools - Generic HID driver 0.35 (2.6.2)
Jul 25 13:04:54 freenas freenas: USB communication driver 0.31
Jul 25 13:04:55 freenas freenas: Network UPS Tools - UPS driver controller 2.6.2
Jul 25 13:04:55 freenas freenas: Starting nut.
Jul 25 13:04:55 freenas freenas: listening on 127.0.0.1 port 3493
Jul 25 13:04:55 freenas freenas: Connected to UPS [ups]: usbhid-ups-ups
Jul 25 13:04:55 freenas freenas[2123]: Executing: /usr/sbin/service nut_upsmon restart
Jul 25 13:04:55 freenas freenas: nut_upsmon not running? (check /var/db/nut/upsmon.pid).
Jul 25 13:04:55 freenas freenas: Starting nut_upsmon.
Jul 25 13:04:55 freenas freenas: UPS: ups (master) (power value 1)
Jul 25 13:04:55 freenas freenas[2123]: Executing: /usr/sbin/service nut_upslog restart
Jul 25 13:04:55 freenas freenas: nut_upslog not running? (check /var/db/nut/upslog.pid).
Jul 25 13:04:55 freenas freenas: Starting nut_upslog.
Jul 25 13:04:55 freenas freenas[2123]: Executing: /bin/pgrep -F /var/db/nut/upsd.pid upsd

external power off/on test:

Jul 25 13:10:25 freenas upsmon[34646]: UPS ups on battery
Jul 25 13:10:40 freenas upsmon[34646]: UPS ups on line power
 
Status
Not open for further replies.
Top