Hi Dojo,
I'm working on serial connector and I'm calculating length of the part of the response using
<Param id="3141">
<Name>PollNode2TypeLengthResponse</Name>
<Description>Poll Node 2 Type Length Response</Description>
<Type>length</Type>
<Interprete>
<RawType>unsigned number</RawType>
<LengthType>fixed</LengthType>
<Length>1</Length>
<Type>double</Type>
</Interprete>
<Length>
<Content>
<Param>7</Param>
</Content>
</Length>
</Param>
In the cases where the response is empty(just 00) I'm noticing this message in the logs, where is it coming from and how might I fix the issue?
CParameter::FillData|ERR|-1|PollNode2TypeLengthResponse(3141) (incoming bytes = 000000 00 .) - Insufficient room to write 1 bytes at position 10 in size 1 with data size 10
Cheers
Hi Edib,
I believe the error could be because you only have 1 byte coming in and are trying to calculate the length of the 7th 'object' of the response.
Since each 'object' will likely have 1 byte or more it is failing to find the correct bytes to calculate the length
You may need to define a secondary response to that serial command that serves as a fallback match for that scenario.