hardbyte / hardbyte/python-can

Error state indication for message with bitrate_switch=True

未關閉
#1,055 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
bug
主要語言
Python
星號
1.6k
分支
697
PR 合併指標
30 天內沒有已合併 PR

描述

**Describe the bug**
Error state indication observed for can.Message with is_fd=True and bitrate_switch=True

**To Reproduce**
Steps to reproduce the behavior (please add longer code examples below):

If i create CAN bus with fd=True and create can.Message with is_fd=True
outgoing message printout looks ok:
ID: 0123 S F BS DLC: 8 ff ff ff ff ff ff ff ff

But if i try send can.Message with is_fd=True and bitrate_switch=True,
i get error indication
ID: 0123 S F BS EI DLC: 8 ff ff ff ff ff ff ff ff

**Expected behavior**
I expect that bitrate_switch defines BRS bit set or not,
and without any errors.
Or it can not be used to set BRS bit - just for indication?
What does it mean EI ?
What error can cause it?

**Additional context**
socketCAN used

貢獻指南

開啟貢獻指南

研究方向

No source file or test is named. Start by reproducing the socketCAN case with a CAN bus using fd=True and a can.Message using is_fd=True and bitrate_switch=True, then trace how the BRS and EI indicators are produced. Done means the meaning and cause of EI are established and the expected bitrate-switch behavior is corrected or clearly documented.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
linux, python
領域
networking
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
需要釐清
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。