2023-04-22 09:15 AM
2023-04-22 04:22 PM
Hello @SSoor.1 ,
You can use the CAN extended frame format which supports up to 8 bytes of data per frame.
To use the extended frame format, you will need to modify the CAN message structure in your code to include the extended frame format bit (EFF) and a 29-bit identifier instead of the standard 11-bit identifier.
TxHeader.DLC = 8; // 8 bytes of data
TxHeader.ExtId = 0x12345678; // 29-bit identifier
TxHeader.RTR = CAN_RTR_DATA; // Data frame
TxHeader.IDE = CAN_ID_EXT; // Extended frame format
Hope I helped you!
If this solves your problem, please mark my answer as "Best Answer" by clicking on the "Select as Best" button, this can be helpful for Community users to find this solution faster.
Foued
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2023-04-22 04:22 PM
Hello @SSoor.1 ,
You can use the CAN extended frame format which supports up to 8 bytes of data per frame.
To use the extended frame format, you will need to modify the CAN message structure in your code to include the extended frame format bit (EFF) and a 29-bit identifier instead of the standard 11-bit identifier.
TxHeader.DLC = 8; // 8 bytes of data
TxHeader.ExtId = 0x12345678; // 29-bit identifier
TxHeader.RTR = CAN_RTR_DATA; // Data frame
TxHeader.IDE = CAN_ID_EXT; // Extended frame format
Hope I helped you!
If this solves your problem, please mark my answer as "Best Answer" by clicking on the "Select as Best" button, this can be helpful for Community users to find this solution faster.
Foued
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.