On Thu, Sep 19, 2013 at 12:20:14PM +0300, 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.

Not sure if that is your issue, but just in case: the UPS tools (blazer_usb, 
upsd, ...) run as user "_ups".
As such you need to ensure that the "_ups" user has access to the terminal 
interface -- e.g. /dev/ttyU0 .

-- 
Antoine

Reply via email to