AnsweredAssumed Answered

CAN received message filtering mechanism

Question asked by Kumar.Amit.022 on Jun 10, 2016
Latest reply on Jun 19, 2016 by Clive One
Hi all,

I am working on some CAN communication project which allows us to control some external device attached to one node from some other node.
Since the CAn bus is a broadcast network and hence a message sent by a node will be received by every other CAn node on the bus. 
My requirement is that i need to implement a filteration mechanism for the nodes so that a node will only act upon those received messages
for which it is configured(using some GUI utility). So i need to implement this filter mechanism in my code.I am using STM8SAF52Ax mcu with
IAR embedded workbench as developement enviornment.


How could i implement this filter process of can messages.I also did web search and read many other tutorials but still i am unable to figure out what to be done. There are use of CAN filter Id and filter mask but i am unable to decide what value to be loaded in these and how to calculate these values.

Please suggest some tutorials or any explanations or some examples.

Thanks
Amit Kumar
Email-amitkrv22@outlook.com 

Outcomes