On 19/09/13(Thu) 12:20, Gregory Edigarov wrote: > Hello, everybody. > > A few days ago I've bought a new ups, as a replacement for my old one, which > got it's last way to junkyard. > The old one had RS232 порт, and the new one is an USB ups. > Trying different ways to connect it to OpenBSD, but everything I've tried > fails. > The UPS reports itself as: > > uhidev2 at uhub3 port 2 configuration 1 interface 0 "ATCL FOR UPS ATCL FOR > UPS" rev 2.00/0.00 addr 4 > uhidev2: iclass 3/0 > uhid2 at uhidev2: input=8, output=8, feature=0 > > I've connected it to Windows via USB, and installed software which came with > it, snooped the protocol, and I am dead sure it is an old and frayed > Megatec/Q1, which should work with blazer_usb driver from nut. But it isn't. > Seems I've tried nearly every option and allowed option combinations with no > result. > I cannot get you the usbdevs && usbhidctl right now, because I left it > connected to windows, and it is at home. > > So, my question is: could it the differences in usb stack between various > OSes, that are giving the trouble? Will try connect it to linux and NetBSD > later, but I am willing to solve the puzzle with OpenBSD.
nut depends on the libusb to talk to the ups, and to be fully functional with the libusb your device must be attached to ugen(4). That's why usb_quirks.c contains various UPS. Could you try adding a quirk for your device and see if it works? If you don't know how to do it, please post the output of "usbdevs -dv" so that somebody can make a diff with the right values. Martin

