Skip to content

Conversation

@arduinoenigma
Copy link
Contributor

Prior to this pull request, a node in Normal mode that sends a message will continuously send the same message over and over until another node in Normal mode appears on the bus and acknowledges receipt of this message.

With this pull request, if one calls .setNormalOneShotMode(); the 2515 is placed in One Shot Mode and a message will be sent only once regardless of if there is anybody else on the bus to acknowledge it as would be the case if all the other nodes in the bus are in ListenOnlyMode.

This PR merges the code from @DeltaC6 and the insight from @igorok107 on the correct mask to use to make it work
https://github.com/DeltaC6/arduino-mcp2515/tree/master
#65 (comment)

This pull request refactors the code introduced in PR#124

This code has been verified on the ArduinoEnigma CanBusTool
https://arduinoenigma.blogspot.com/2024/12/can-bus-tool.html

added One Shot Mode flag and enable / disable methods
refactored One Shot Mode functionality
refactored One Shot Mode functionality
@autowp autowp merged commit be31d00 into autowp:master Sep 14, 2025
@autowp
Copy link
Owner

autowp commented Sep 14, 2025

Squashed commits and bump version

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

Successfully merging this pull request may close these issues.

2 participants