<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body>
<p><br />Works with nutdrv_qx ..YEAH :-)<br /><br />Its a bit quirky to reply myself but maybe this can help someone.<br /><br />I tried to find all distro's HID drivers:<br />#grep HID /lib/nut/*<br />Binary file /lib/nut/blazer_usb matches<br />Binary file /lib/nut/mge-shut matches<br />Binary file /lib/nut/nutdrv_qx matches<br />Binary file /lib/nut/oldmge-shut matches<br />Binary file /lib/nut/riello_usb matches<br />Binary file /lib/nut/tripplite_usb matches<br />Binary file /lib/nut/usbhid-ups matches<br /><br />..and then tried nutdrv_qx<br />[ups]<br />    driver = nutdrv_qx<br />    port = auto<br />    vendorid = 06da<br />    productid = 0005<br /><br />#upsdrvctl start<br />Network UPS Tools - UPS driver controller 2.7.2<br />Network UPS Tools - Generic Q* USB/Serial driver 0.06 (2.7.2)<br />USB communication driver 0.32<br />Using protocol: Q1 0.02<br />Can't autodetect number of battery packs [-1/2.31]<br />Battery runtime will not be calculated (runtimecal not set)<br /><br />Finally...<br />ups.conf:<br />[ups]<br />    # UPS: PowerWalker VFI 2000 RT LCD<br />    driver = nutdrv_qx<br />    port = auto<br />    vendorid = 06da<br />    productid = 0005<br />    protocol = megatec<br />    novendor<br />    pollfreq = 30<br />    override.battery.packs = 24<br />    runtimecal = 180,100,600,50<br /><br />#/etc/init.d/nut-server stop<br />#/etc/init.d/nut-server start<br /># upsc ups<br />Init SSL without certificate database<br />battery.charge: 100<br />battery.packs: 24<br />battery.runtime: 1800<br />battery.voltage: 2.32<br />battery.voltage.high: 52.00<br />battery.voltage.low: 41.60<br />battery.voltage.nominal: 48.0<br />device.type: ups<br />driver.flag.novendor: enabled<br />driver.name: nutdrv_qx<br />driver.parameter.pollfreq: 30<br />driver.parameter.pollinterval: 2<br />driver.parameter.port: auto<br />driver.parameter.productid: 0005<br />driver.parameter.protocol: megatec<br />driver.parameter.runtimecal: 180,100,600,50<br />driver.parameter.vendorid: 06da<br />driver.version: 2.7.2<br />driver.version.data: Megatec 0.01<br />driver.version.internal: 0.06<br />input.current.nominal: 8.0<br />input.frequency: 49.9<br />input.frequency.nominal: 50<br />input.voltage: 238.4<br />output.voltage: 229.9<br />ups.beeper.status: enabled<br />ups.delay.shutdown: 30<br />ups.delay.start: 180<br />ups.load: 8<br />ups.productid: 0005<br />ups.status: OL<br />ups.temperature: 20.0<br />ups.type: online<br />ups.vendorid: 06da<br /><br /></p>
<p> </p>
<div>
<pre><span style="font-family: courier new,courier;">-- 

Pozdrawiam/Regards
Krzysztof Pisarek, KLL

-------------------------
E-mail: kp@kll.pl
-------------------------
</span></pre>
</div>
<p>W dniu 2017-01-19 15:27, KP napisaƂ(a):</p>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<p>Hi all,</p>
<p>I have problem with UPS from PowerWalker model VFI 2000 RT LCD over USB (didn't try serial yet).</p>
<p>UPS should work via HID driver but ups.status is not rendered properly.<br />Specification of UPS says USB HID compatible.</p>
<p>HID driver is the only one which talks with UPS as i try a few from /lib/nut.</p>
<p>I use driver usbhid-ups (which communicate with ups), but subdriver resolving is automatic (no subdriver param), as i read source code this driver uses usb manufacture signature (vendorid/productid) to choose subdriver so there was no chance to more tests, just few params (pollonly, pollfreq, maxreport).</p>
<p>But... Help needed !</p>
<p>OS: Debian Jessie (Proxmox 4.3 distro)<br />NUT: 2.7.2<br />driver: usbhid-ups</p>
<p>#cat ups.conf<br />[ups]<br />    driver = usbhid-ups<br />    port = auto<br />    vendorid = 06da<br />    productid = 0005<br />    pollonly<br />    pollfreq = 15</p>
<p># lsusb<br />Bus 001 Device 003: ID 06da:0005 Phoenixtec Power Co., Ltd<br />[..cut..]</p>
<p>When UPS is Online:<br /># upsc ups <br />Init SSL without certificate database<br />device.mfr: PPC<br />device.model: USB UPS<br />device.type: ups<br />driver.flag.pollonly: enabled<br />driver.name: usbhid-ups<br />driver.parameter.pollfreq: 15<br />driver.parameter.pollinterval: 2<br />driver.parameter.port: auto<br />driver.parameter.productid: 0005<br />driver.parameter.vendorid: 06da<br />driver.version: 2.7.2<br />driver.version.data: Liebert HID 0.3<br />driver.version.internal: 0.38<br />ups.mfr: PPC<br />ups.model: USB UPS<br />ups.productid: 0005<br />ups.status: OB<br />ups.vendorid: 06da<br /><br /></p>
<p>The ups.status is permanently OB, there is no change when UPS goes OL/OB.</p>
<p> </p>
<p>Explore mode output below:</p>
<p># /lib/nut/usbhid-ups -a ups -DDDDD<br />Network UPS Tools - Generic HID driver 0.38 (2.7.2)<br />USB communication driver 0.32<br />   0.000000     debug level is '5'<br />   0.000230     upsdrv_initups...<br />   0.059356     Checking device (413C/2106) (002/003)<br />[..cut..]<br />   0.059565     Device does not match - skipping<br />   0.059569     Checking device (06DA/0005) (001/003)<br />   0.060812     - VendorID: 06da<br />   0.060822     - ProductID: 0005<br />   0.060826     - Manufacturer: PPC<br />   0.060830     - Product: USB UPS<br />   0.060833     - Serial Number: unknown<br />   0.060837     - Bus: 001<br />   0.060841     Trying to match device<br />   0.060869     Device matches<br />   0.061313     HID descriptor, method 1: (9 bytes) => 09 21 11 01 00 01 22 1b 00<br />   0.061317     i=0, extra[i]=09, extra[i+1]=21<br />   0.061319     HID descriptor, method 2: (9 bytes) => 09 21 11 01 00 01 22 1b 00<br />   0.061321     HID descriptor length 27<br />   0.061693     Report Descriptor size = 27<br />   0.061698     Report Descriptor: (27 bytes) => 06 a0 ff 09 04 a1 01 09 06 15 00 26 ff 00<br />   0.061721      75 08 95 08 81 82 09 07 95 40 91 82 c0<br />   0.061781     Using subdriver: EXPLORE HID 0.1<br />   0.061785     Entering libusb_get_report<br />   0.061939     Can't retrieve Report 00: Broken pipe<br />   0.061944     hid_lookup_path: ffa00004 -> not found in lookup table<br />   0.061954     hid_lookup_path: ffa00006 -> not found in lookup table<br />   0.061962     Path: ffa00004.ffa00006, Type: Input, ReportID: 0x00, Offset: 0, Size: 8<br />   0.061965     Entering libusb_get_report<br />   0.062310     Can't retrieve Report 00: Broken pipe<br />   0.062314     hid_lookup_path: ffa00004 -> not found in lookup table<br />   0.062316     hid_lookup_path: ffa00007 -> not found in lookup table<br />   0.062318     Path: ffa00004.ffa00007, Type: Output, ReportID: 0x00, Offset: 0, Size: 8<br />   0.062339     send_to_all: SETINFO ups.mfr "PPC"<br />   0.062345     send_to_all: SETINFO ups.model "USB UPS "<br />   0.062348     send_to_all: SETINFO ups.vendorid "06da"<br />   0.062368     send_to_all: SETINFO ups.productid "0005"<br />   0.062370     Report descriptor retrieved (Reportlen = 27)<br />   0.062373     Found HID device<br />   0.062376     Detected a UPS: PPC/USB UPS<br />   0.062379     find_nut_info: unknown info type: load.off.delay<br />   0.062381     find_nut_info: unknown info type: load.on.delay<br />   0.062385     find_nut_info: unknown info type: load.off.delay<br />   0.062407     send_to_all: SETINFO device.type "ups"<br />   0.062411     send_to_all: SETINFO driver.version "2.7.2"<br />   0.062415     send_to_all: SETINFO driver.version.internal "0.38"<br />   0.062443     send_to_all: SETINFO driver.name "usbhid-ups"<br />   0.062446     upsdrv_initinfo...<br />   0.062450     send_to_all: SETINFO driver.version.data "EXPLORE HID 0.1"<br />   0.062458     upsdrv_updateinfo...<br />   0.062461     Not using interrupt pipe...<br />   0.062465     Quick update...<br />   0.062469     send_to_all: SETINFO ups.status "OB"<br />   0.062472     send_to_all: DATAOK<br />   0.062497     dstate_init: sock /var/run/nut/usbhid-ups-ups open on fd 5<br />   0.062501     send_to_all: SETINFO driver.parameter.pollinterval "2"<br />   0.062505     send_to_all: SETINFO device.mfr "PPC"<br />   0.062509     send_to_all: SETINFO device.model "USB UPS "<br />   0.062513     upsdrv_updateinfo...<br />   0.062516     Not using interrupt pipe...<br />   0.062518     Quick update...<br />   0.228313     new connection on fd 6<br />   0.228325     send_to_one: SETINFO device.mfr "PPC"<br />   0.228347     send_to_one: SETINFO device.model "USB UPS "<br />   0.228350     send_to_one: SETINFO device.type "ups"<br />   0.228354     send_to_one: SETINFO driver.flag.explore "enabled"<br />   0.228375     send_to_one: SETINFO driver.flag.pollonly "enabled"<br />   0.228380     send_to_one: SETINFO driver.name "usbhid-ups"<br />   0.228385     send_to_one: SETINFO driver.parameter.pollfreq "15"<br />   0.228404     send_to_one: SETINFO driver.parameter.pollinterval "2"<br />   0.228408     send_to_one: SETINFO driver.parameter.port "auto"<br />   0.228413     send_to_one: SETINFO driver.parameter.productid "0005"<br />   0.228434     send_to_one: SETINFO driver.parameter.vendorid "06da"<br />   0.228439     send_to_one: SETINFO driver.version "2.7.2"<br />   0.228444     send_to_one: SETINFO driver.version.data "EXPLORE HID 0.1"<br />   0.228447     send_to_one: SETINFO driver.version.internal "0.38"<br />   0.228458     send_to_one: SETINFO ups.mfr "PPC"<br />   0.228466     send_to_one: SETINFO ups.model "USB UPS "<br />   0.228473     send_to_one: SETINFO ups.productid "0005"<br />   0.228481     send_to_one: SETINFO ups.status "OB"<br />   0.228484     send_to_one: SETINFO ups.vendorid "06da"<br />   0.228490     send_to_one: DATAOK<br />   0.228494     send_to_one: DUMPDONE<br />   2.064395     upsdrv_updateinfo...<br />   2.064412     Not using interrupt pipe...<br />   2.064417     Quick update...<br />   4.066426     upsdrv_updateinfo...<br />   4.066433     Not using interrupt pipe...<br />   4.066435     Quick update...<br />   6.068457     upsdrv_updateinfo...<br />   6.068464     Not using interrupt pipe...<br />   6.068466     Quick update...<br />   8.070504     upsdrv_updateinfo...<br />   8.070522     Not using interrupt pipe...<br />   8.070527     Quick update...<br />  10.072535     upsdrv_updateinfo...<br />  10.072543     Not using interrupt pipe...<br />  10.072545     Quick update...<br />[...]<br /><br /></p>
<p>Explore mode off:</p>
<p># upsdrvctl start<br />Network UPS Tools - UPS driver controller 2.7.2<br />Network UPS Tools - Generic HID driver 0.38 (2.7.2)<br />USB communication driver 0.32<br />Using subdriver: Liebert HID 0.3</p>
<p> </p>
<p>Is there chance to try other subdriver then Liebert or make it work properly with this UPS?</p>
<p> </p>
<div>
<pre><span style="font-family: courier new,courier;">-- 

Pozdrawiam/Regards
Krzysztof Pisarek, KLL

-------------------------
E-mail: kp@kll.pl
-------------------------
</span></pre>
</div>
<!-- html ignored --><br />
<pre>_______________________________________________
Nut-upsuser mailing list
<a href="mailto:Nut-upsuser@lists.alioth.debian.org">Nut-upsuser@lists.alioth.debian.org</a>
<a href="http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser">http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser</a>
</pre>
</blockquote>
</body></html>