Someone any idea, what is wrong?<br><br><div class="gmail_quote">2010/5/21 Robert Jobbagy <span dir="ltr">&lt;<a href="mailto:jobbagy.robert@gmail.com">jobbagy.robert@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br><br><div class="gmail_quote"><div class="im">2010/5/21 Arjen de Korte <span dir="ltr">&lt;<a href="mailto:nut%2Bdevel@de-korte.org" target="_blank">nut+devel@de-korte.org</a>&gt;</span><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div>Citeren Robert Jobbagy &lt;<a href="mailto:jobbagy.robert@gmail.com" target="_blank">jobbagy.robert@gmail.com</a>&gt;:<br>
<br>
</div><div class="im"><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
This is the outputs:<br>
<br>
[root@gcsontos-ghost ~]# lsusb<br>
Bus 002 Device 001: ID 0000:0000<br>
Bus 002 Device 002: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial<br>
Port<br>
</blockquote>
<br></div>
This won&#39;t be the problem (the PL-2303 is known to work with many devices).<div><br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
[root@gcsontos-ghost ~]# /sbin/liebertgxt2 -u root -DDDDD -a liebertgxt2<br>
</blockquote>
<br></div>
I asked for &#39;-DD&#39; for a reason. Please don&#39;t up the debug level without being asked to do so. If you think you know better, don&#39;t ask for help.<div><br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
   0.002463 send: (6 bytes) =&gt; 01 88 02 01 04 90<br>
</blockquote>
<br></div>
That looks good.<div><br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
   0.041255 read: truncated: (1 bytes) =&gt; 01<br>
   0.041357 GTX2 capable UPS not detected<br>
</blockquote>
<br></div>
But this doesn&#39;t. The ser_get_buf() function in the do_command() function will do only read data once. If not all data is received by then, the driver will fail. We probably need ser_get_buf_len() here. Please try if changing that works.</div>
</blockquote>
<div><br>I change ser_fet_buf function with ser_get_buf_len<br><br>And this is the debug output:<div class="im"><br><br>Network UPS Tools - Liebert GXT2 serial UPS driver 0.02 (2.4.3)<br>Warning: This is an experimental driver.<br>
Some features may not function correctly.<br>
<br></div>   0.000000    debug level is &#39;2&#39;<br>   0.020847    send: (6 bytes) =&gt; 01 88 02 01 04 90<br>   1.020588    read: truncated: (0 bytes) =&gt;<br>   1.020604    GTX2 capable UPS not detected<br><br></div>
<div class="im"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
and the driver works on serial port  ,but  with usb to serial don&#39;t<br>
</blockquote>
<br></div>
I&#39;m actually quite surprised that it did (looking at the above).<br>
<br>
Best regards, Arjen<br>
<br>
PS  Stop top posting!<div><div></div><div><br>
-- <br>
Please keep list traffic on the list<br>
<br>
<br>
_______________________________________________<br>
Nut-upsdev mailing list<br>
<a href="mailto:Nut-upsdev@lists.alioth.debian.org" target="_blank">Nut-upsdev@lists.alioth.debian.org</a><br>
<a href="http://lists.alioth.debian.org/mailman/listinfo/nut-upsdev" target="_blank">http://lists.alioth.debian.org/mailman/listinfo/nut-upsdev</a><br>
</div></div></blockquote></div></div><br><br clear="all"><br>-- <br>Best Regards,<br><font color="#888888"><br>Robert <br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Best Regards,<br><br>Robert <br>