hardbyte / hardbyte/python-can

error using multiple Vector devices

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

描述

The setup contains 2 Vector devices and a CAN cable that connects the ECU and the 2 boxes (using the first piggy on each device):
* Vector Vn1630A
* Vector VH6501

``CANoe CAN1`` is assigned to the first piggy of the VH6501 device.

If I assign ``MyAPP CAN1`` to the same piggy then I can record the traffic.
If I assign ``MyAPP CAN1`` to the first piggy of VN1630A then I get the following error:

```
Details: Traceback (most recent call last):
File "MyAPP\xil\devices\can_device.py", line 276, in prepare
File "lib\site-packages\can\util.py", line 303, in wrapper
File "lib\site-packages\can\interfaces\vector\canlib.py", line 183, in __init__
File "lib\site-packages\can\interfaces\vector\canlib.py", line 686, in get_application_config
File "lib\site-packages\can\interfaces\vector\xldriver.py", line 35, in check_status
can.interfaces.vector.exceptions.VectorError: xlGetApplConfig failed (XL_ERROR)
```

Any idea about what is going on here?

貢獻指南

開啟貢獻指南

研究方向

從 MyAPP/xil/devices/can_device.py 第 276 行開始,沿著 can/interfaces/vector/canlib.py 和 xldriver.py 追蹤 Vector 後端,特別關注 get_application_config 和 check_status。重現 issue 中描述的雙裝置指派,並將其與正常運作的 VH6501 指派進行比較。完成標準是找出 xlGetApplConfig 失敗的原因,並記錄已確認的修正方案或設定需求。

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

評估

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

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

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