[Nut-upsdev] Liebert driver with usb to serial converter cable

Arjen de Korte nut+devel at de-korte.org
Fri May 21 12:53:32 UTC 2010


Citeren Robert Jobbagy <jobbagy.robert op gmail.com>:

> This is the outputs:
>
> [root op gcsontos-ghost ~]# lsusb
> Bus 002 Device 001: ID 0000:0000
> Bus 002 Device 002: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial
> Port

This won't be the problem (the PL-2303 is known to work with many devices).

> [root op gcsontos-ghost ~]# /sbin/liebertgxt2 -u root -DDDDD -a liebertgxt2

I asked for '-DD' for a reason. Please don't up the debug level  
without being asked to do so. If you think you know better, don't ask  
for help.

>    0.002463 send: (6 bytes) => 01 88 02 01 04 90

That looks good.

>    0.041255 read: truncated: (1 bytes) => 01
>    0.041357 GTX2 capable UPS not detected

But this doesn'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.

> and the driver works on serial port  ,but  with usb to serial don't

I'm actually quite surprised that it did (looking at the above).

Best regards, Arjen

PS  Stop top posting!
-- 
Please keep list traffic on the list




More information about the Nut-upsdev mailing list