Last time I asked about slave publishing. Thank you so much for your answer. However, I have a problem and would like to ask you again.
When changing the data in the subscriber frame in the slave, LIN_UpdateByteArray enabled the data frame to be changed.
However, if I change the data in the subscriber frame using UpdateByteArray when there is already a slave response, the data value I want to change will not be published, and the data value of the slave that is already responding will change to a completely different value.
In particular, this happens frequently in the first byte of the data (the rest of the bytes were able to change their data frames normally)
[For example]
(Two channels are being used.)
Code: Select all
- LIN data currently being collected
LIN ID: 0x00
LIN Data: 0x01ff
- Bytes of data I want to change
LIN ID: 0x00
(update) LIN data: 0x09ff
mode: slave
direction: publisher
- If I change the data frame by running the code
LIN ID: 0x00
(change value) LIN data: 0x08ff
Error: OtherResponse
Code: Select all
TLINFrameEntry.FrameId = 0x00
TLINFrameEntry.Length = 2
TLINFrameEntry.Direction = TLIN_DIRECTION_PUBLISHER
TLINFrameEntry.ChecksumType = TLIN_CHECKSUMTYPE_ENHANCED
TLINFrameEntry.Flags = FRAME_FLAG_RESPONSE_ENABLE
Please help me.
Thank you.