Skip to content

added support for canfd frames for SavvyCan V220 app#71

Closed
victors21 wants to merge 1 commit intolinux-can:masterfrom
victors21:master
Closed

added support for canfd frames for SavvyCan V220 app#71
victors21 wants to merge 1 commit intolinux-can:masterfrom
victors21:master

Conversation

@victors21
Copy link
Copy Markdown

This code is adding support for transmiting can and canfd frames in a single tag's frame and send , so app like SavvyCan V220 is work fine with that rx and tx data for booth can and canfd as is.

Copy link
Copy Markdown
Member

@marckleinebudde marckleinebudde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your patch add some trailing white space, can you please remove them.

Comment thread src/state_raw.c
Comment on lines +100 to +104
if (setsockopt(raw_socket, SOL_CAN_RAW, CAN_RAW_FD_FRAMES, &enable, sizeof(enable)) < 0) {
PRINT_ERROR("Could not enable CAN FD\n");
state = STATE_SHUTDOWN;
return;
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will fail on CAN CC only devices, right? I think we want an option to enable CAN-FD.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you are right. So what kind of option need to added ?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add something to

static struct option long_options[] = {

@victors21 victors21 closed this Jun 5, 2025
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