<br><br><div class="gmail_quote">2010/5/21 Arjen de Korte <span dir="ltr">&lt;<a href="mailto:nut%2Bdevel@de-korte.org">nut+devel@de-korte.org</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;">
<div class="im">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"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); 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 class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); 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.</blockquote><div><br>Sorry but this , not I did it, I asked someone and him sent this to me.<br>
This is it what you asked from me.<br><br>[root@gcsontos-ghost ~]# /sbin/liebertgxt2 -u root -DD -a liebertgxt2<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>
   0.000000     debug level is &#39;2&#39;<br>
   0.001072     send: (6 bytes) =&gt; 01 88 02 01 04 90<br>
   0.009326     read: truncated: (1 bytes) =&gt; 01<br>
   0.009338     GTX2 capable UPS not detected<br>
<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;"><div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
   0.002463 send: (6 bytes) =&gt; 01 88 02 01 04 90<br>
</blockquote>
<br></div>
That looks good.<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); 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.</blockquote>
<div><br>I will try it and write back. <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); 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 class="h5"><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><br><br clear="all"><br>-- <br>Best Regards,<br><br>Robert <br>