[Nut-upsdev] Trying to fix "Unsupported combination of battery voltage / nr. of batteries" error

Arjen de Korte nut+devel at de-korte.org
Thu May 3 08:42:33 UTC 2007


> I also found a problem in serial.c I am not sure if it is intentional
> however the buffer size being read from the serial port was 64 chars.

This is intentional.

> That block was then scanned through to find the end of line char and once
> it was found the remaining data in that block was discarded.
>
> The side effect was that it could take some time before there was a valid
> block of data to be read in that the driver could handle. Anyway, I
> modified
> the block size to 1 char and I got a lot more accurate data appearing.

This is something that should be fixed in the driver. Apparently, the
serial in- and output buffers need to be flushed before sending a command
and reading back the reply.

Best regards, Arjen
-- 
Eindhoven - The Netherlands
Key fingerprint - 66 4E 03 2C 9D B5 CB 9B  7A FE 7E C1 EE 88 BC 57




More information about the Nut-upsdev mailing list