Hi, I am trying to use an MGE Pulsar Extreme UPS with the NUT port using the newhidups driver. I can read the values just fine but I can't set anything which precludes the PC from shutting the UPS off (or in fact configuring it in any way). The error is... ... Looking up DelayBeforeStartup usb_control_msg: 161 1 791 0 0x514f34 8 4000 Report : (8 bytes) => 17 FF FF FF CB 1F 51 0A =>> SET: Before set: -10.00 (120) =>> SET: after exp: 12/12.00 (exp = 0.10) PhyMax = 0, PhyMin = 0, LogMax = 65535, LogMin = -1 =>> SET: after PL: 12 ==> Report after setvalue: (8 bytes) => 17 0C 00 00 CB 1F 51 0A usb_control_msg: 33 9 791 0 0x514f34 8 4000 USB error: error sending control message: Input/output error Set report failed FAILED Shutoff command failed (setting ondelay) ... This program uses libusb to talk to the UPS over ugen - the system has 6.0 on it and libusb 0.1.12 (the latest). I am going to try instrumenting ugen next and see why it's returning EIO. I checked CVS but I don't believe any of the commits since 6.0 would have an effect here. Does anyone have any suggestions? Thanks. -- 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 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20060616/02ebb0a5/attachment.pgp
On Friday 16 June 2006 11:48, Daniel O'Connor wrote:> usb_control_msg: 33 9 791 0 0x514f34 8 4000 > USB error: error sending control message: Input/output error > Set report failed > FAILEDktrace shows.. 26140 newhidups RET write 89/0x59 26140 newhidups CALL ioctl(0x4,USB_SET_TIMEOUT,0x7fffffffe7a8) 26140 newhidups RET ioctl 0 26140 newhidups CALL ioctl(0x4,USB_DO_REQUEST,0x7fffffffe740) 26140 newhidups RET ioctl -1 errno 5 Input/output error 26140 newhidups CALL write(0x2,0x7fffffffdb20,0x12) 26140 newhidups GIO fd 2 wrote 18 bytes "Set report failed " 26140 newhidups RET write 18/0x12 Which is not wholly unexpected I guess :) -- 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 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20060616/6b6ea0b5/attachment.pgp