Skip to content

send periodic a list of messages without wrapping #992

Open
@zorce

Description

@zorce

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions