Reading a model (Group object with self.offset=0) results in reading its ID and Length and the next Length-2 points.
For example: d.common[0].read() will read all the points of the common model except for DA and Pad.
Instead, it could read only the ID and the Length, or ID, Length and the fixed block points.
A simple solution is to change line 85 of client.py:
data = self.model.device.read(self.model.model_addr + self.offset, self.len)
to:
data = self.model.device.read(self.model.model_addr + self.offset, self.len + 2 if self.offset == 0 else 0)
Reading a model (Group object with self.offset=0) results in reading its ID and Length and the next Length-2 points. For example:
d.common[0].read()
will read all the points of the common model except for DA and Pad. Instead, it could read only the ID and the Length, or ID, Length and the fixed block points.A simple solution is to change line 85 of client.py:
to: