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

Added possibility to set BRS flag in SendFD #110

Merged
merged 1 commit into from
Nov 19, 2022
Merged

Conversation

wdim0
Copy link
Contributor

@wdim0 wdim0 commented Nov 18, 2022

Hi,

as a continuation of PR #106, I've re-synchronized my fork by latest version of node-can (PR #106 automatically closed), re-implemented the new code according to what was discussed and created this new PR.

Now, the new symbol for bitrate switching is called "fd_brs" and is boolean.
If set, the CANFD_BRS (defined in socket can kernel headers) is added to frameFD.flags when transmitting CAN-FD frame in SendFD method. This will allow users of node-can to perform bitrate switching in CAN-FD frames.
It's backward compatible. If no "fd_brs" symbol is existing, the frameFD.flags will be of value 0, as hardcoded before.

As discussed with @sebi2k1, this new feature is available in native only for now (proper integration of KCD is separated).

Thank you for possible acceptation of this PR and have a nice day!

Martin

Added symbol "fd_brs" (boolean). If set, the CANFD_BRS (defined in socket can kernel headers) is added to frameFD.flags when transmitting CANFD frame in SendFD method. As discussed with @sebi2k1, this new feature is available in native only for now (proper integration of KCD is separated).
@sebi2k1
Copy link
Owner

sebi2k1 commented Nov 19, 2022

Thanks Martin. By the way, did you noticed some incompatibilities after we switched to Typescript?

@sebi2k1 sebi2k1 merged commit a731f5e into sebi2k1:master Nov 19, 2022
@wdim0
Copy link
Contributor Author

wdim0 commented Nov 19, 2022

Hi Sebi. Sure, I'm happy to contribute. Thanks for the merge!
To answer your question: I didn't notice any incompatibilities. All worked ok for me (but bear in mind that I use just the native part, not the KCD).

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