CAN message fault in Simulink
3 views (last 30 days)
Show older comments
Hi
how can I check if data corruption and loss message of CAN bus have happened? I've been designing some algorithms in Simulink then I will convert it to a piece of code and upload it to a hardware.
0 Comments
Answers (1)
Ayush
on 5 Aug 2024
Hello Nafiseh,
To check for data corruption and loss of CAN message you can utilize the several CAN blocks that Simulink provides. For more information on the "CAN" blocks, you can refer to the following documentation:
Furthermore, for your particular use case specifically, you can try leveraging the following "CAN" blocks:
1. CAN Log block to log the CAN messages being sent from the network to be saved and further analysed for data corruption or loss. You can also use the CAN Replay block to stream the logged data and visualise them to debug effectively. For more information on blocks you can refer to the following documentation:
2. CAN Unpack block to unpack the CAN messages into signal outputs to see the type of data or parameters being used to generate a signal and compare it with the desired data type to check for corruption or losses. For more information on this block, you can refer to the following documentation:
Hope it helps!
0 Comments
See Also
Categories
Find more on Sources in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!