<br><div class="gmail_quote">2012/4/5 Peter Tuhársky <span dir="ltr"><<a href="mailto:tuharsky@misbb.sk" target="_blank">tuharsky@misbb.sk</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi,<br></blockquote><div> <br>Hi Peter<br><br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I tested productid=0x1fe7 for usbhid-ups and it did not help. Do I need to compile a development version of NUT first?<br>
<br>
Or what should I do?<br></blockquote><div> <br>mea culpa: the productID was obviously missing, but the VendorID too.<br>I've just committed the patch in trunk (r3525) which adds USB/HID (Eaton mode) support for HP:<br>
<a href="http://trac.networkupstools.org/projects/nut/changeset/3525" target="_blank">http://trac.networkupstools.org/projects/nut/changeset/3525</a><br>
<br>(the changeset should be available in ~1h)<br><br>there are still a few TODO and tests needed, but I've been retaining this commit for too long now.<br>From there, you can either use the trunk or simply patch your version with the above...<br>
<br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

Dňa <a href="tel:31.03.2012%2020" value="+13103201220" target="_blank">31.03.2012 20</a>:40, Arnaud Quette  wrote / napísal(a):<div><div><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
2012/3/30 Peter Tuhársky<<a href="mailto:tuharsky@misbb.sk" target="_blank">tuharsky@misbb.sk</a>><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  Hi, Arnaud<br>
<br>
</blockquote>
<br>
Hi Peter<br>
<br>
Thank You for Your kind answer.<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I attempted to use USB, as You suggested. After connecting the cable,<br>
kernel detects HP R 5000 as HID like this:<br>
<br>
[ 1701.100025] usb 2-1: new full speed USB device using ohci_hcd and<br>
address 2<br>
[ 1701.324982] usb 2-1: New USB device found, idVendor=03f0, idProduct=1fe7<br>
[ 1701.324985] usb 2-1: New USB device strings: Mfr=1, Product=2,<br>
SerialNumber=4<br>
[ 1701.324989] usb 2-1: Product: HP R5000<br>
[ 1701.324991] usb 2-1: Manufacturer: HP<br>
[ 1701.324992] usb 2-1: SerialNumber: 3C81520083<br>
[ 1701.325147] usb 2-1: configuration #1 chosen from 1 choice<br>
[ 1701.391326] usbcore: registered new interface driver hiddev<br>
[ 1701.433359] generic-usb: probe of 0003:03F0:1FE7.0001 failed with error<br>
-22<br>
[ 1701.433395] usbcore: registered new interface driver usbhid<br>
[ 1701.433460] usbhid: v2.6:USB HID core driver<br>
<br>
Although generic-usb fails with error -22, I hope this should not be a<br>
problem, since next lines, usbcore and usbhid show no no sign of trouble.<br>
<br>
</blockquote>
<br>
not sure why you get this. I'll have to go back to the kernel soon...<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I set ups.conf like this:<br>
<br>
  protocol = usbhid-ups<br>
  port = auto<br>
<br>
However, starting upsdrvctl shows this error:<br>
<br>
  Network UPS Tools - UPS driver controller 2.4.3<br>
  Network UPS Tools - Generic HID driver 0.34 (2.4.3)<br>
  USB communication driver 0.31<br>
  No matching HID UPS found<br>
  Driver failed to start (exit status=1)<br>
<br>
<br>
Should I use some exact vendor specification in ups.conf and if, what<br>
should it be? Or is there other source of trouble?<br>
<br>
</blockquote>
<br>
R5000 (USB productID 0x1fe7) is part of my (still underway) patch :-/<br>
adding "productid=0x1fe7" to your usp.conf will indeed fix it.<br>
<br>
note that I've still a few fixes staging and tests needed on my side, even<br>
for HID.<br>
so expect to see a few buggy values, like for battery.temperature.<br>
<br>
cheers,<br>
Arnaud<br>
<br>
</blockquote>
</div></div></blockquote></div><br>cheers,<br clear="all">Arnaud<br>-- <br>Linux / Unix Expert R&D - Eaton - <a href="http://powerquality.eaton.com" target="_blank">http://powerquality.eaton.com</a><br>Network UPS Tools (NUT) Project Leader - <a href="http://www.networkupstools.org/" target="_blank">http://www.networkupstools.org/</a><br>

Debian Developer - <a href="http://www.debian.org" target="_blank">http://www.debian.org</a><br>Free Software Developer - <a href="http://arnaud.quette.free.fr/" target="_blank">http://arnaud.quette.free.fr/</a><br><br>