Skip to content

fix(socketcand): refuse remote frames instead of sending them as normal ones - #2100

Merged
zariiii9003 merged 2 commits into
hardbyte:mainfrom
swimmingbrain:fix/socketcand-remote-frames
Nov 11, 2026
Merged

zariiii9003 merged 2 commits into
hardbyte:mainfrom
swimmingbrain:fix/socketcand-remote-frames

Conversation

@swimmingbrain

Copy link
Copy Markdown
Contributor

Sending a remote frame through the socketcand interface puts a normal empty frame on the bus. The protocol's send command is < send id dlc [data]* >, so there is nowhere to put the remote request flag and it just gets dropped. The report in #2091 has the candump output next to what python-can printed.

There is no way to express it, and socketcand does not forward received remote frames either, so rather than sending something other than what was asked for, the converter now raises CanOperationError. I also added tests for the message to ascii direction, which had none.

Closes #2091

@mergify

mergify Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@zariiii9003
zariiii9003 force-pushed the fix/socketcand-remote-frames branch from 8b87ad5 to f323199 Compare November 11, 2026 12:14

@zariiii9003 zariiii9003 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks

@zariiii9003
zariiii9003 merged commit c4450a2 into hardbyte:main Nov 11, 2026
27 checks passed
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.

No remote request flag is set when sending such frame with interface socketcand

2 participants