Question
CAN received message filtering mechanism
Posted on June 10, 2016 at 14:03
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 messagesfor which it is configured(using some GUI utility). So i need to implement this filter mechanism in my code.I am using STM8SAF52Ax mcu withIAR 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.ThanksAmit KumarEmail-amitkrv22@outlook.com #becan #can-message-filtering