I am using Arduino Giga Wifi R1 board.
I implemented basic read function based on Arduino_CAN.cpp and Arduino_CAN.h, but I think message filtering function is not implemented. I am looking for a way to implement CAN filter in Giga Wifi R1.
I will wait for your help.
Thank you.
You will need to post all your code. Use the IDE Tools / Auto Format and then add code tags either with the Edit menu or the ^^^^^ here.
The code for message filtering is likely handled within the library itself. I'm just guessing, as I don't use that particular library, but Cory Fowler’s mcp_can library does include filtering support. Keep in mind, it was specifically designed for the MCP2515. As far as I know, the Giga WiFi board does support CAN communication, but you'll need an external transceiver for it to work.
Giga WiFi R1 uses mbedOS.
It was implemented by modifying "Arduino_CAN.cpp" and "Arduino_CAN.h" included in the Arduino Package.
Please review it for any potential issues.
Arduino_CAN_Filter.cpp (3.7 KB)
Arduino_CAN_Filter.h (2.7 KB)
test.ino (3.5 KB)