[Nut-upsuser] Zigor Ebro 650 compatibility
crees at FreeBSD.org
Fri Aug 10 17:26:42 UTC 2012
On 10 August 2012 18:08, Chris Rees <crees at freebsd.org> wrote:
> On 8 August 2012 10:07, Martyn Hill <martyn.joseph.hill at gmail.com> wrote:
>> Arnaud Quette <aquette.dev <at> gmail.com> writes:
>>> 2012/6/3 Chris Rees <crees <at> freebsd.org>:
>>> > Hi all,
>>> Hi Chris,
>>> > After some research I've found that this device should run with the
>>> > blazer_usb driver.
>>> > Jun 3 16:15:38 pegasus kernel: ugen0.4: <vendor 0x0001> at usbus0
>>> > Jun 3 16:15:38 pegasus kernel: uhid0: <vendor 0x0001 product 0x0000,
>>> > class 0/0, rev 1.00/1.00, addr 4> on usbus0
>>> > However, even after shoehorning it;
>>> > [crees <at> pegasus]/usr/local/libexec/nut% sudo ./blazer_usb -a zigor
>>> > -DDDDDDDDD -x vendorid=0x0001 -x productid=0x0000 -x subdriver=krauler
>>> > Password:
>>> > Network UPS Tools - Megatec/Q1 protocol USB driver 0.04
>>> > (2.6.3-Unversioned directory)
>>> > 0.000000 send_to_all: SETINFO driver.parameter.vendorid "0x0001"
>>> > 0.000013 send_to_all: SETINFO driver.parameter.productid "0x0000"
>>> > 0.000018 send_to_all: SETINFO driver.parameter.subdriver "krauler"
>>> > 0.000020 debug level is '9'
>>> > 0.000874 language ID workaround enabled (using '0x409')
>>> > 0.001019 No appropriate HID device found
>>> > 0.001025 No supported devices found. Please check your device
>>> > availability with 'lsusb'
>>> > and make sure you have an up-to-date version of NUT. If this does not help,
>>> > try running the driver with at least 'subdriver', 'vendorid'
>> and 'productid'
>>> > options specified. Please refer to the man page for details about these
>>> > (man 8 blazer).
>>> > This is on FreeBSD with NUT updated to 2.6.3 (I've modified the port).
>> Hi Chris
>> Any chance you could share the FreeBSD port? Using the version (2.6.1)
>> currently available in the ports tree, I can get a step closer than your tests
>> above, but without the enhanced blazer_usb driver (0.0.4) in nut 2.6.3, I
>> don't think I can get any further.
> All you need to do is edit the PORTVERSION value in the Makefile, and
> run make makesum :)
> I've just successfully upgraded to 2.6.4 this way....
>>> > The UPS comes with UPSilon, but it's several years (!) old and I can't
>>> > even get it to install, let alone work.
>>> > Have I sent enough info? I'm willing to have a go at hacking the
>>> > driver, but having trouble getting started.
>>> > Chris
>>> > [crees <at> pegasus]/usr/local/libexec/nut% grep -v
>> ^# /usr/local/etc/nut/ups.conf
>>> > [zigor]
>>> > port = auto
>>> > driver = blazer_usb
>>> > langid_fix = 0x409
>>> > desc = "Zigor UPS"
>>> > vendorid = 0001
>>> > productid = 0000
>>> it's quite probably due to a permission issue.
>>> See "4) Permissions" on
> Thanks Arnaud, and sorry for the delay-- I've been on holiday.
> As I mentioned above I've now got it to 2.6.4, and have a new message;
> [crees at pegasus]/usr/local/libexec/nut% sudo ./blazer_usb -a zigor -DDDDDDDDDDDDD
> Network UPS Tools - Megatec/Q1 protocol USB driver 0.08
> (2.6.4-Unversioned directory)
> 0.000000 debug level is '13'
> 0.001081 Checking device (0001/0000) (/dev/usb//dev/ugen2.3)
> 0.001688 - VendorID: 0001
> 0.001694 - ProductID: 0000
> 0.001697 - Manufacturer: unknown
> 0.001701 - Product: unknown
> 0.001705 - Serial Number: unknown
> 0.001708 - Bus: /dev/usb
> 0.001712 Trying to match device
> 0.001717 Device matches
> 0.001737 send_to_all: SETINFO ups.vendorid "0001"
> 0.001744 send_to_all: SETINFO ups.productid "0000"
> 0.001751 send_to_all: SETINFO device.type "ups"
> 0.001758 send_to_all: SETINFO driver.version "2.6.4-Unversioned
> 0.001764 send_to_all: SETINFO driver.version.internal "0.08"
> 0.001770 send_to_all: SETINFO driver.name "blazer_usb"
> 0.001775 Trying megatec protocol...
> 0.001786 send: Q1
> 0.002191 read: Unknown error
> 0.002242 Permissions problem: Input/output error
> [crees at pegasus]/usr/local/libexec/nut%
> I had already chmod'd 777 all the USB nodes (just for debugging of course!)
> [crees at pegasus]/usr/local/libexec/nut% grep -v ^# /usr/local/etc/nut/ups.conf
> port = auto
> driver = blazer_usb
> Looks as though the UPS is answering in strange ways....
Just for fun, I noticed the #ifdef TESTING in blazer_usb.c.
I defined that, and got this output when running ./blazer_usb -a zigor:
Any hints there?
More information about the Nut-upsuser