mdflib icon indicating copy to clipboard operation
mdflib copied to clipboard

when writing CAN LIN ETH, the channel only occupies 4 bits

Open sy950915 opened this issue 9 months ago • 2 comments

Hello, I noticed that when writing CAN LIN ETH, the channel only occupies 4 bits. In practical use, there may be cases where the number of channels exceeds 20, which could lead to duplicate channel records. I wonder if this can be resolved?

sy950915 avatar Apr 17 '25 10:04 sy950915

@sy950915 The number of bytes each message require is optimized. The channel number is typical added in bits left-over. CAN and ETH have 4-bits while the LIN have 6-bit.

It is possible to add an extra byte for channel number but what is the required limit ?

ihedvall avatar Apr 21 '25 08:04 ihedvall

@ihedvall Generally speaking, the channel number should occupy one byte. I checked in CANoe, and they also designed it to use one byte.

sy950915 avatar Apr 21 '25 08:04 sy950915