No remote request flag is set when sending such frame with interface socketcand
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 68/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- python
- Domain
- embedded-iot, networking
Research direction
Start at can.interface.Bus with interface='socketcand' and trace self.bus.send(can_msg) when can.Message sets is_remote_frame=True. Compare the socketcand path with the direct can0 path and use candump to verify the result. Done means the transmitted frame is reported as a remote request rather than an empty data frame.
Written by the indexing model from the issue text.
Description
Describe the bug
When sending a frame like
bus = can.interface.Bus(interface='socketcand', channel='can0', host='the.ipa.ddr.ess', port=29536)
...
can_msg = can.Message(is_extended_id = False, arbitration_id = address, is_remote_frame = True)
self.bus.send(can_msg)
the terminal message print is:
Timestamp: 0.000000 ID: 403 S Rx R DL: 0
but on the bus be get (using candump):
can0 403 [0] ''
kinda empty frames.
When using the direct can0 interface (no socketcand) I get correctly:
can0 403 [0] remote request
To Reproduce
Using python_can==4.6.1 on a Mac with Python 3.9.6.
socketcand Version 0.6.1 is running on a Debian 13.
Expected behavior
Seeing correct remote request frames
- Dominant language
- Python
- Stars
- 1.6k
- Forks
- 697
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from hardbyte/python-can
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 78/100
hardbyte/python-can#2077 · 1 comment · 1 reaction ·
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 68/100
hardbyte/python-can#1922 · 1 reaction ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 30/100
hardbyte/python-can#2102 ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 68/100
hardbyte/python-can#2092 ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 72/100
hardbyte/python-can#2083 ·
All issues in hardbyte/python-can
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100