hardbyte / hardbyte/python-can
send periodic a list of messages without wrapping
- 主要語言
- Python
- 星號
- 1.6k
- 分支
- 697
- PR 合併指標
- 30 天內沒有已合併 PR
描述
Is it possible to send a list of messages periodically without wrapping when reaching the end of the list?
using the duration based on len(send_list) * cycle_time will overshoot and retransmit.
Creating a list of messages to send cyclic (including 20 or so muxed frames)
```
send_list = list()
for bmsg in bmsg_list:
send_list.append(can.Message(arbitration_id=txid, is_extended_id=False, data=bmsg._data))
duration = len(send_list) * inhibit
task = c.bus.send_periodic(send_list, inhibit, duration=duration)
```
貢獻指南
研究方向
Start at the c.bus.send_periodic call and trace how a list of messages is scheduled when a duration is provided. Reproduce the example with multiple muxed frames, then define completion as periodic transmission that does not retransmit after the list reaches its end; add or update coverage for that behavior.
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- networking
- Issue 類型
- 功能
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 42/100