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

Robert Jobbagy jobbagy.robert at gmail.com
Fri May 21 14:34:56 UTC 2010


2010/5/21 Arjen de Korte <nut+devel at de-korte.org <nut%2Bdevel at de-korte.org>>

> Citeren Robert Jobbagy <jobbagy.robert at gmail.com>:
>
>  This is the outputs:
>>
>> [root at 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 at 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.


I change ser_fet_buf function with ser_get_buf_len

And this is the debug output:

Network UPS Tools - Liebert GXT2 serial UPS driver 0.02 (2.4.3)
Warning: This is an experimental driver.
Some features may not function correctly.

   0.000000    debug level is '2'
   0.020847    send: (6 bytes) => 01 88 02 01 04 90
   1.020588    read: truncated: (0 bytes) =>
   1.020604    GTX2 capable UPS not detected


>
>  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
>
>
> _______________________________________________
> Nut-upsdev mailing list
> Nut-upsdev at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/nut-upsdev
>



-- 
Best Regards,

Robert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20100521/c7e155b7/attachment.htm>


More information about the Nut-upsdev mailing list