2020-03-12 12:14 AM
Hi all, Thanks for the support,
I am using STM32 CAN filter in MASK mode. I required to filter the IDs that follow the J1939 requirements. So I required to filter the ID Group 1 and ID Group 2 using the two filter banksv(Bank 0, Bank 1, Other filter are reserved for future use) of CAN1(Master CAN).
ID Group 1 : FEE9,FEDC,FEE5,FEEE,FEEF,FEF6,FEF7,FEF1,FEDF,FEB1,FEA4,FE56, FE58,FE6A, FE82,FE83,FE84,FE85,FE86,FE92,FE9F,FEA0,FEA1,FEA2,FEA5,FEB9,FEDA
ID Group 2 : F004,F001,F017,F018,F019,F01A,F023,FCDF,FCE4,FCE5,FD07,FD08,FD40, FD73,FD74, FD75,FD7C,FD92,FD98,FDD0
Observation : I am not able to set the right values in the MASK and ID register to filter the above ID's.
Note : Using STMCubeMx generated drivers,
Query:
1) What are the rules need to be followed to use the filter bank in MASK mode ?
2) How to group the ID?
Kindly share the suggestion...