F28335 CAN communication reliability

2 次查看(过去 30 天)
I am working on the data transmission between several F28335 through CAN-Bus. However, I cannot find the information regarding the error management. My concern is if I have to include in simulink any additional control strategy to guarantee the correct transmission/reception of the data.
I guess that CRC and ACK are implemented on F28335 HW (so it will be transparent for us in Simulink, right?). But, I do not know if the DSP has an automatic retransmission after an error is detected, and if it has, I do not know either the number of retransmission tries after an ACK lack or a transmission error. Could anyone clarify my these questions please?
Thank you all in advance,

采纳的回答

Venkatesh Chilapur
Venkatesh Chilapur 2017-10-9
Hi,
Right now, via simulink block, we are not supporting viewing of the error flags that are inside the eCAN module . However, has a workaround, user can use the "System Initialize" block found under "Simulink coder->Custom Code" library blocks and add lines of code that would enable the interrupt when any of the error flags are set. To more on this, please refer the eCAN section of the device user guide. You can then add the "Hardware Interrupt" block in your model and configure it for CAN interrupt to generate the ISR code. Inside the ISR, you can filter the flags to read the source of interrupt and act accordingly.
Regards, Venkatesh Chilapur

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Block Libraries 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by