F28335 CAN communication reliability
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Manex Barrenetxea
le 26 Sep 2017
Réponse apportée : Venkatesh Chilapur
le 9 Oct 2017
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,
0 commentaires
Réponse acceptée
Venkatesh Chilapur
le 9 Oct 2017
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 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Block Libraries dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!