Re: [Nut-upsuser] Eaton PW5110 + nut-2.4.1 + OpenBSD

2010-02-20 Thread Charles Lepple
On Sat, Feb 20, 2010 at 3:25 AM, Dimitris Mandalidis man...@mandas.org wrote:
[...]
 I still haven't solved this, I also tried today with 2.4.2 with no luck.

 ---
 # USB_DEBUG=3 drivers/bcmxcp_usb -DDD -a myups
 Network UPS Tools - BCMXCP UPS driver 0.23 (2.4.2)
 USB communication subdriver 0.18
[...]
 usb_control_msg: 0 7 772 0 0xcfbe8a60 4 1000
   0.056915     entering get_answer(31)
 USB error: error reading from interrupt endpoint /dev/ugen0.01: Resource
 temporarily unavailable
   0.058914     Communications with UPS lost: Error executing command
   0.059347     Could not communicate with the ups: Resource temporarily
 unavailable
   0.059754     CLOSING

 usb_os_close: closing endpoint 5
 -

 Can I assume that this is driver problem or there are other things that I
 could check first.

What version of OpenBSD are you using?

When I was trying to get a different driver to work on FreeBSD 6.x, I
had problems with the interrupt endpoints, and I think OpenBSD might
use a similar USB stack.

-- 
- Charles Lepple

___
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser


Re: [Nut-upsuser] Eaton PW5110 + nut-2.4.1 + OpenBSD

2010-02-20 Thread Dimitris Mandalidis
On Sat, Feb 20, 2010 at 08:35:15AM -0500, Charles Lepple wrote:

 What version of OpenBSD are you using?
 
 When I was trying to get a different driver to work on FreeBSD 6.x, I
 had problems with the interrupt endpoints, and I think OpenBSD might
 use a similar USB stack.

I 'm using OpenBSD 4.6, I also assumed that this was also a libusb problem,
because 1.0 branch is not (yet?) supported for *BSD. I also applied a patch
which was supposed to solve this issue with no luck.

You can catch previous mails of this thread on :

http://lists.alioth.debian.org/pipermail/nut-upsuser/2010-January/005818.html

Thanks
D.

-- 
PGP key 39A40276 at wwwkeys.eu.pgp.net 
key fingeprint: 9A0B 61C6 B826 4B73 69BB  972B C5E7 A153 39A4 0276

___
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser


Re: [Nut-upsuser] Eaton PW5110 + nut-2.4.1 + OpenBSD

2010-02-20 Thread Daniel O'Connor
On Sun, 21 Feb 2010, Charles Lepple wrote:
  Can I assume that this is driver problem or there are other things
  that I could check first.

 What version of OpenBSD are you using?

 When I was trying to get a different driver to work on FreeBSD 6.x, I
 had problems with the interrupt endpoints, and I think OpenBSD might
 use a similar USB stack.

I believe they both use a ported version of the NetBSD USB stack, try 
adding pollonly to your UPS config entry, it (mostly) worked for me.

-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C


signature.asc
Description: This is a digitally signed message part.
___
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser

Re: [Nut-upsuser] Eaton PW5110 + nut-2.4.1 + OpenBSD

2010-01-13 Thread Arnaud Quette
Hi Dimitris,

2010/1/10 Dimitris Mandalidis man...@mandas.org:
 Hello,

 I 'm trying to set up an Eaton PW5110 using nut-2.4.1 in OpenBSD, my
 ups.conf follows :

 [myups]
        driver = bcmxcp_usb
        port = auto
        desc = Eaton PW 5110 (1500VA)

 My first attempt to run upsdrvctl ended up complaining about unimplemented
 usb_clear_halt() in libusb. I patched libusb-0.1.12 with the following
 patch :

 http://old.nabble.com/Openbsd-and-libusb-td21558254.html

 Second attempt:

 r...@fox /home/mandas/nut-2.4.1 # USB_DEBUG=3 bcmxcp_usb -DDD -a myups
 Network UPS Tools - BCMXCP UPS driver 0.21 (2.4.1)
 USB communication subdriver 0.17
 debug level is '3'
 usb_set_debug: Setting debugging level to 3 (on)
 usb_os_find_busses: Found /dev/usb0
 usb_os_find_busses: Found /dev/usb1
 usb_os_find_busses: Found /dev/usb2
 usb_os_find_devices: Found /dev/ugen0 on /dev/usb2
 usb_control_msg: 128 6 512 0 0xcfbf7558 8 1000
 usb_control_msg: 128 6 512 0 0x7f374500 34 1000
 skipped 1 class/vendor specific interface descriptors
 usb_control_msg: 0 7 772 0 0xcfbf7490 4 1000
 USB error: error reading from interrupt endpoint /dev/ugen0.01: Resource
 temporarily unavailable
 Communications with UPS lost: Receive error (Request command): COMMAND: 31

 RECONNECT USB DEVICE

 r...@fox /home/mandas/nut-2.4.1 # USB_DEBUG=3 drivers/bcmxcp_usb -DDD -a
 myups
 Network UPS Tools - BCMXCP UPS driver 0.23 (2.4.1)
 USB communication subdriver 0.18
   0.00     debug level is '3'
 usb_set_debug: Setting debugging level to 3 (on)
 usb_os_find_busses: Found /dev/usb0
 usb_os_find_busses: Found /dev/usb1
 usb_os_find_busses: Found /dev/usb2
 usb_os_find_devices: Found /dev/ugen0 on /dev/usb2
 usb_control_msg: 128 6 512 0 0xcfbcadc8 8 1000
 usb_control_msg: 128 6 512 0 0x82cbc240 34 1000
 skipped 1 class/vendor specific interface descriptors
   0.019716     device /dev/ugen0 opened successfully
 usb_control_msg: 0 7 772 0 0xcfbcacd0 4 1000
   0.024370     entering get_answer(31)
 USB error: error reading from interrupt endpoint /dev/ugen0.01: Resource
 temporarily unavailable
 usb_control_msg: 0 7 772 0 0xcfbcacd0 4 1000
   0.029368     entering get_answer(31)
 USB error: error reading from interrupt endpoint /dev/ugen0.01: Resource
 temporarily unavailable
 usb_control_msg: 0 7 772 0 0xcfbcacd0 4 1000
   0.032365     entering get_answer(31)
   0.032736     get_answer: (8 bytes) = ab 01 79 01 02 50 00 10
   0.033027     get_answer: block_number = 1
   0.033341     get_answer: data length = 121
   0.033680     get_answer: need to read 118 more data
 USB error: error reading from interrupt endpoint /dev/ugen0.01: Resource
 temporarily unavailable
 usb_control_msg: 0 7 772 0 0xcfbcacd0 4 1000
   0.038364     entering get_answer(31)
 USB error: error reading from interrupt endpoint /dev/ugen0.01: Resource
 temporarily unavailable
 usb_control_msg: 0 7 772 0 0xcfbcacd0 4 1000
   0.042364     entering get_answer(31)
 USB error: error reading from interrupt endpoint /dev/ugen0.01: Resource
 temporarily unavailable
   0.044364     Communications with UPS lost: Error executing command
   0.044816     Could not communicate with the ups: Resource temporarily
 unavailable
   0.045230     CLOSING

 usb_os_close: closing endpoint 5

 Connecting the UPS to a linux box running nut 2.4.1 + gentoo works however.

 I found after searching a similar thread on Jan 2009 but no one posted a
 solution if there were any.

 Any help would be appreciated
 Thanks

I'm very busy ATM, but can you try the latest development version:
http://new.networkupstools.org/download.html#_development_tree_2_5

I've made some changes that may solve your issue.

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

___
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser

Re: [Nut-upsuser] Eaton PW5110 + nut-2.4.1 + OpenBSD

2010-01-13 Thread Dimitris Mandalidis
On Wed, Jan 13, 2010 at 08:52:47PM +0100, Arnaud Quette wrote:

 http://new.networkupstools.org/download.html#_development_tree_2_5
 
 I've made some changes that may solve your issue.
 
 cheers,
 Arnaud

I forgot to mention that the above output was from the latest repository
revision (last Sunday). Howver, I updated to the latest revision but it
didn't work either.

r...@fox ~/nut-2.4.1 # USB_DEBUG=3 drivers/bcmxcp_usb -DDD -a myups
Network UPS Tools - BCMXCP UPS driver 0.23 (2.4.1)
USB communication subdriver 0.18
   0.00 debug level is '3'
usb_set_debug: Setting debugging level to 3 (on)
usb_os_find_busses: Found /dev/usb0
usb_os_find_busses: Found /dev/usb1
usb_os_find_busses: Found /dev/usb2
usb_os_find_devices: Found /dev/ugen0 on /dev/usb2
usb_control_msg: 128 6 512 0 0xcfbdcdc8 8 1000
usb_control_msg: 128 6 512 0 0x82de0380 34 1000
skipped 1 class/vendor specific interface descriptors
   0.037629 device /dev/ugen0 opened successfully
usb_control_msg: 0 7 772 0 0xcfbdcce0 4 1000
   0.042291 entering get_answer(31)
USB error: error reading from interrupt endpoint /dev/ugen0.01: Resource
temporarily unavailable
usb_control_msg: 0 7 772 0 0xcfbdcce0 4 1000
   0.047288 entering get_answer(31)
USB error: error reading from interrupt endpoint /dev/ugen0.01: Resource
temporarily unavailable
usb_control_msg: 0 7 772 0 0xcfbdcce0 4 1000
   0.051286 entering get_answer(31)
USB error: error reading from interrupt endpoint /dev/ugen0.01: Resource
temporarily unavailable
usb_control_msg: 0 7 772 0 0xcfbdcce0 4 1000
   0.055285 entering get_answer(31)
USB error: error reading from interrupt endpoint /dev/ugen0.01: Resource
temporarily unavailable
usb_control_msg: 0 7 772 0 0xcfbdcce0 4 1000
   0.059284 entering get_answer(31)
USB error: error reading from interrupt endpoint /dev/ugen0.01: Resource
temporarily unavailable
   0.061284 Communications with UPS lost: Error executing command
   0.061734 Could not communicate with the ups: Resource temporarily
unavailable
   0.062152 CLOSING

usb_os_close: closing endpoint 5

-- 
PGP key 39A40276 at wwwkeys.eu.pgp.net 
key fingeprint: 9A0B 61C6 B826 4B73 69BB  972B C5E7 A153 39A4 0276

___
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser