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.

CCS/TMS570LS1227: How can I change the DLC of a CAN message without changing the message ID

Part Number: TMS570LS1227

Tool/software: Code Composer Studio

Using tms570ls12 board I have to retransmit can messages from CAN1 to CAN2. CAN1 module get messages and CAN2 transmit messages what CAN1 got. The problem is that CAN1 get one ID with different DLCs (for exampale: ID 0x001 DLC 8, ID 0x001 DLC 6, DI 0x001 DLC 2). 

For exampale:

It seems to me after geting message in the messgaebox, DLC must be check to recognise message, and CAN2 can't understand from wich messagebox data must be sent. But there is no API functions that can check DLC of receiving message.

Is there the way to determine DLC? May be there is another way to retransmit messages?