The current version of pymodbus defines static methods for
calculating the RTU frame size for each and every kind of
Modbus request / response. It would be better if only the
individual frame sizes / byte count positions were stored
in these classes.
I have fixed this problem on the rtu branch. The new version
moves the calculation to ModbusPDU, changes it to become
a classmethod, and adds class attributes _rtu_frame_size
or _rtu_byte_count_pos to the request and response classes.
I've also added some missing unittests.
Please have a look at the changes and commit them to the
trunk if everything is ok.
Original issue reported on code.google.com by albert.k...@gmail.com on 28 Feb 2011 at 11:49
Original issue reported on code.google.com by
albert.k...@gmail.com
on 28 Feb 2011 at 11:49