Hi Arnaud, Well I have built & installed libusb 0.1.11.
No difference in behaviour. Ran the test suite as suggested and noted still getting the input/output error reported on many (but not all) of the usb_control_msg calls. In looking at this ,always appeared to be on calls with large buffers ? On looking through the doco's found that there was a setting in the request structure passed to ioctl to allow short xfer's. This was not used so requests were a larger buffer was provided than the data size returned was generating the input/output errors (I think). Anyway changed the code in bsd.c (libusb) function usb_control_msg >From req.ucr_flags = 0; To req.ucr_flags = USBD_SHORT_XFER_OK; And now don't get the input/output errors!. This hasn't solved the fact that I still get stale data until such time as I unplug/replug the USB cable but at least after I do that upsc is reporting UPS related variables which it wasn't before. Ie. bash-3.1# upsc [EMAIL PROTECTED] battery.charge: 100 battery.charge.low: 30 battery.runtime: 1000 driver.name: newhidups driver.parameter.pollinterval: 15 driver.parameter.port: auto driver.version: 2.0.3 driver.version.data: MGE HID 0.8 driver.version.internal: 0.28 outlet.1.switch: 1 output.voltage: 230.0 ups.delay.shutdown: -1 ups.delay.start: -10 ups.load: 39 ups.mfr: MGE UPS SYSTEMS ups.model: NOVA 1100 AVR ups.power.nominal: 1100 ups.status: OL CHRG Still hunting for the unplug/replug problem.... Regards Nevil -----Original Message----- From: Arnaud Quette [mailto:[EMAIL PROTECTED] Sent: Wednesday, 1 March 2006 3:16 AM To: Nevil Thatcher Cc: [email protected] Subject: Re: [Nut-upsuser] MGE Nova 1100 using newhidups on netBSD 3.0 2006/2/28, Nevil Thatcher <[EMAIL PROTECTED]>: > ... > Looking at the libusb project they are recommending to use libusb 0.1.11 > > I will download an build that and see if that helps. > ... a good thing would be to also try the libusb test tools (under the test/ dir.) Arnaud _______________________________________________ Nut-upsuser mailing list [email protected] http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser

