Skip to content

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

Open
swimmingbrain wants to merge 2 commits into
hardbyte:mainfrom
swimmingbrain:fix/socketcand-remote-frames
Open

fix(socketcand): refuse remote frames instead of sending them as normal ones#2100
swimmingbrain wants to merge 2 commits into
hardbyte:mainfrom
swimmingbrain:fix/socketcand-remote-frames

Conversation

@swimmingbrain

Copy link
Copy Markdown

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

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

1 participant