F28335 CAN communication reliability

조회 수: 4 (최근 30일)
Manex Barrenetxea
Manex Barrenetxea 2017년 9월 26일
답변: Venkatesh Chilapur 2017년 10월 9일
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에서 Computer Vision with Simulink에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by