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

Monitor mode #67

Open
matonga opened this issue Feb 5, 2025 · 2 comments
Open

Monitor mode #67

matonga opened this issue Feb 5, 2025 · 2 comments

Comments

@matonga
Copy link

matonga commented Feb 5, 2025

I'd love to see a "monitor" mode. This would not send ACKs or any other stuff, it would only receive canbus frames and just discard invalid frames without ever writing to the tx pin.

I understand could just not connect the tx pin to the canbus transceiver, but would prefer to have the ability to switch between normal mode and monitor mode in software. Tried to implement this myself but the PIO state machine seems to depend on successful transmission of the ack to prepare for reception of next frame and couldn't solve it.

@kaseiiro
Copy link

kaseiiro commented Feb 9, 2025

A simple (software!) workaround is to remap the tx to an unused pin (something like gpio_tx = 28 instead of 5; maybe -1 works too). Please give it a try.

@KevinOConnor
Copy link
Owner

Interesting. It should be possible to implement by changing the C code. It's not something I've looked at (and I'm not sure I'll get a chance to look at it in the near term).

As indicated above, designating a dummy tx pin may work.

Cheers,
-Kevin

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

3 participants