<br><div class="gmail_quote">2012/10/22 Nicu Pavel <span dir="ltr"><<a href="mailto:npavel@mini-box.com" target="_blank">npavel@mini-box.com</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 Nicu,<br><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I'm trying to generate a skeleton driver with usbhid-ups and<br>
gen-usbhid-subdriver but the output seems to be incorrect. Same<br>
behavior with stable 2.6.5, so I guess there is something wrong with<br>
data coming out of device.<br></blockquote><div><br>the firmware of your UPS is indeed very buggy.<br>but there was also a bug in the gen-usbhid-usbdriver script:<br>it has not been updated since the timestamp prefix were added to the driver debug traces...<br>



<br>I've just fixed it in the trunk, r3770:<br><a href="http://trac.networkupstools.org/projects/nut/changeset/3770">http://trac.networkupstools.org/projects/nut/changeset/3770</a><br><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

I attached the output of usbhid-ups and gen-usbhid-subdriver from the commands:<br>
<br>
drivers/usbhid-ups -DD -u root -x explore -x vendorid=04d8 -a openups<br>
>& openups-dump.txt<br>
./gen-usbhid-subdriver.sh -n openUPS -v 04d8 -p d004 -k <<br>
../../openups-dump.txt<br></blockquote></div><br>can you please try again with the latest trunk? it gives better results now.<br>you will quite probably need some help from there...<br><br>thanks for your report!<br><br>
cheers,<br clear="all">Arnaud<br>-- <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.fr" target="_blank">http://arnaud.quette.fr</a><br><br>