This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

What/Where is the Intial register(filter) for all CAN messages to discover correct ID??

Hi all,

Can anyone help?

I am using the CAN_Ex1 Example for the STM107 (for MCBSTM32C Target Board) chip however any similar CAN programs may help, Where does all the CAN Id's be read by the Microcontroller to establish if a message has the correct ID for the node?

I am trying to create a program that at this initial point if a CAN message does not have the correct ID for the node it is simply echoed (or Re-transmitted) unchanged on another CAN port (CAN2). Does anyone know how this could be carried out?

Any help or info is greatly appreciated

S

Parents
  • If you are going to forward all ID:s not specifically handled, then you can obviously not use a CAN controller configured for hardware filtering.

    So then you have to write your own code to possibly make use if a switch statement to separate the ID:s you support and have the default action forward the rest of the frames.

    Or, if your chip supports it, you might be able to use FullCAN filtering of "your" frames and have the remaining frames be accepted separately - so messages sent to individual "mailboxes" are for your program, and the other messages are for forwarding.

Reply
  • If you are going to forward all ID:s not specifically handled, then you can obviously not use a CAN controller configured for hardware filtering.

    So then you have to write your own code to possibly make use if a switch statement to separate the ID:s you support and have the default action forward the rest of the frames.

    Or, if your chip supports it, you might be able to use FullCAN filtering of "your" frames and have the remaining frames be accepted separately - so messages sent to individual "mailboxes" are for your program, and the other messages are for forwarding.

Children