Skip to content

v2.1.0 - optionally not send a message immediately when you call modify_data on a BCM cyclic Tx task#399

Closed
brad-drehmer wants to merge 3 commits intohardbyte:developfrom
DV-Electronics:branch_v2.1.0
Closed

v2.1.0 - optionally not send a message immediately when you call modify_data on a BCM cyclic Tx task#399
brad-drehmer wants to merge 3 commits intohardbyte:developfrom
DV-Electronics:branch_v2.1.0

Conversation

@brad-drehmer
Copy link
Copy Markdown

This code was from the v2.1.0 release. It looks like socketcan_native.py no longer exists, but the concept should remain the same.
The issue was that when you call modify_data on a BCM cyclic Tx task, the message was sent immediately on the CAN bus. The code in this pull request adds the ability to optionally not send a message immediately. It is likely not desirable to disrupt the message period controlled by the BCM. When modifying data, this feature allows you to maintain the message period and just transmit the new value whenever the next message is due for transmission

hardbyte and others added 3 commits January 5, 2018 10:38
Optionally NOT send a message immediately when you call modify_data on a BCM cyclic Tx task.  It is likely not desirable to disrupt the message period controlled by the BCM.  When modifying data, this feature allows you to maintain the message period and just transmit the new value whenever the next message is due for transmission
@christiansandberg
Copy link
Copy Markdown
Collaborator

This was fixed in v2.2.0, in pull request #323. You are right that the timer should not be restarted if data is modified.

@felixdivo
Copy link
Copy Markdown
Collaborator

So this can be closed? Sorry, for us to being able to include your effort in the library.

@hardbyte
Copy link
Copy Markdown
Owner

Thanks for the contribution all the same.

If you think it is still important/useful to provide the user with the option of restarting the timer as soon as they change the data please open a new PR.

@hardbyte hardbyte closed this Aug 31, 2018
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.

4 participants