This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TCAN1042DEVM: Handling of CAN Database (DBC) file with Intel & Motorola Byte Order Signals in One Message

Part Number: TCAN1042DEVM

I am working on CAN communication and I have come across a CAN database (.dbc) file which has one message which contains signals with both, intel & motorola byte order (Like Case 1, 2 & 3 metioned below). So I implemented a logic which handles following scenarios:

Case 1: Intel Byte Order Signals with Length <=8 bits & Motorola Byte Order Signals with Length <=8 bits

Case 2: Intel Byte Order Signals with Length >8 bits & Motorola Byte Order Signals with Length <=8 bits

Case 3: Intel Byte Order Signals with Length <=8 bits & Motorola Byte Order Signals with Length >8 bits

Now, even though the one message contains intel & motorola signals, as long as one type of byte order (intel or motorola) has length <=8 bits, as per the implemented logic I'm getting the expected results. But for the following case logic becomes more complex:

Case 4: Intel Byte Order Signals with Length >8 bits & Motorola Byte Order Signals with Length >8 bits

So I wanted to know is Case 4 a practical scenario? If yes, please suggest me generic logic to implement all above cases.

  • Hi Harshal,

    The experts on this forum are primarily familiar with the hardware or low level protocol requirements of our transceiver so the support we can provide on higher level implementations will be limited. I am not familiar with either of these formats so I may be off in terms of where to look for a solution here. 

    Do you know if the frame format used by these is classic CAN (high speed or HS CAN) or CAN FD format? I mainly ask because the data payload for HS CAN is limited to 8 bytes where CAN FD allows for up to 64. The control field is also slightly different between these formats. 

    Regards, 
    Eric Schott