This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Hercules CAN Controller - receive several messages with one message box - configuring HalCoGen

Other Parts Discussed in Thread: HALCOGEN

Hello,


i'm using the Hercules Launchpad to receive and transmit messages. The Launchpad has the role of a Gateway, i want to filter messages or send my own. It's working very well, but the messages on the bus are much more than the message boxes on the hercules.

Could you tell me how to configure the HalCoGen so that i can transmit or receive serveral message with  different IDs on one message box.,

Thank you very much. I added a part on my configuration as picture.

  • How could i summarize, for example, 0x37 and 0x3B ?
  • TX different ArbID using one MBOX is easy, use update ArbID routines before you call transmit. It would be better to combine the two routines into one that update ID and Data together in one IFx transfer step. RX different IDs in one MBOX can be done using Acceptance-Filter. I use an older version of HalCoGen that did not provide an interface to do it. You can load the IdFilterMask with zero to accept all messages or get creative and create a mask with 1's to match the pattern that you look for. For example if the mask is 0x3F3 and set MBOX-ID as 0x33 then the MBOX will receive all ((ID & 03xF3) == 0x33), which should satisfy 0x37 and 0x3B and some others!
  • Thanks Joe for the help !