[Nut-upsuser] powerware 5110 and openbsd

Hannu Vuolasaho vuokko at msn.com
Thu Jan 8 00:36:55 UTC 2009




>Date: Mon, 5 Jan 2009 09:57:04 +0100
>From: aquette.dev at gmail.com

>2009/1/4 Charles Lepple 



>>Can you try the following patch:



>>That should tell us what the error was, and see if we can continue past it.


I applied the patch and now I know what's the problem. I don't know if it's going to help any further. It is the unfinished libusb :) I can't even program serial port on BSD so I am unable to implement usb_clear_halt for BSD

On the other hand I have installed libusb 0.1.12. from packages. I tried to compile libusb 1.0 and see what nut thought about it. Anyway it said that it isn't compatible 0.1 versions and ./configure was very blunt: checking operating system... configure: error: unsupported operating system.

anyway the 0.1.12 said:

USB error: usb_clear_halt called, unimplemented on BSD

>you might also want to set libusb debug using USB_DEBUG=3
>this can also report some low level things...
>(btw, it might be a good idea to document this somewhere!)

I ran 
$ USB_DEBUG=3 ./upsdrvctl start
Network UPS Tools - UPS driver controller 2.4.0-pre1
Network UPS Tools - BCMXCP UPS driver 0.18 (2.4.0-pre1)
USB communication subdriver 0.17
usb_set_debug: Setting debugging level to 3 (on)
usb_os_find_busses: Found /dev/usb0
usb_os_find_devices: Found /dev/ugen0 on /dev/usb0
usb_control_msg: 128 6 512 0 0xcfbe73b8 8 1000
usb_control_msg: 128 6 512 0 0x854d7340 34 1000
skipped 1 class/vendor specific interface descriptors
USB error: usb_clear_halt called, unimplemented on BSD
Can't reset POWERWARE USB endpoint: usb_clear_halt called, unimplemented on BSD
usb_control_msg: 0 7 772 0 0xcfbe72c0 4 1000
Communications with UPS lost: Receive error (data): got 3 bytes instead of 121!!!

usb_control_msg: 0 7 772 0 0xcfbe72c0 4 1000
Communications with UPS lost: Receive error (data): got 3 bytes instead of 121!!!

usb_control_msg: 0 7 772 0 0xcfbe72c0 4 1000
Communications with UPS lost: Receive error (data): got 3 bytes instead of 121!!!
usb_control_msg: 0 7 772 0 0xcfbe72c0 4 1000
Communications with UPS lost: Receive error (data): got 3 bytes instead of 121!!!

usb_control_msg: 0 7 772 0 0xcfbe72c0 4 1000
Communications with UPS lost: Receive error (data): got 3 bytes instead of 121!!!

Communications with UPS lost: Error executing command
Could not communicate with the ups: Device not configured
CLOSING

usb_os_close: closing endpoint 5
Driver failed to start (exit status=1)
$ 

Not funny :( Do we have to make conclusion that powerware 5110 with OpenBSD doesn't work? Or do we have some hacks?

Hannu Vuolasaho

_________________________________________________________________
Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us


More information about the Nut-upsuser mailing list