Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FR] Example file for filter #77

Closed
italocjs opened this issue Oct 1, 2021 · 3 comments
Closed

[FR] Example file for filter #77

italocjs opened this issue Oct 1, 2021 · 3 comments

Comments

@italocjs
Copy link

italocjs commented Oct 1, 2021

A example for how to use the filter would be really appreciated, i cant get it working :(

@timurrrr
Copy link

timurrrr commented Oct 1, 2021

MCP2515 or ESP32?

If MCP2515, see #47 where I fixed a couple of things that might be getting in your way.

@italocjs
Copy link
Author

italocjs commented Oct 1, 2021

Its ESP32 + a MPC2515 as transceiver, the issue i have is that if i read the CAN every loop without delay, it works fine, but if i only read it when its needed (~10ms) it always return the same value, its like a buffer or something is getting stuck.

I have setup a can testing using the pcan program (with a peak transceiver), sending several uneeded data (simulating what i will get when i connect to a vehicle).

I tried the filtering, and i'm not sure if its working, but the issue is the same as before implementing it.

the only ID i care about is 0x12, so i used CAN.filter(0x12, 0x1FFFFFFF); in setup.

@italocjs
Copy link
Author

italocjs commented Oct 1, 2021

I'm closing this, as i have managed to make it work and added a PR for a new example.
#78

@italocjs italocjs closed this as completed Oct 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants