Skip to content

socketcan cannot create multiple periodic messages with same arb id #930

@SiouxerSkate

Description

@SiouxerSkate

When using a socketcan device and sending multiple periodic messages I receive the below error

"ValueError: A periodic Task for Arbitration ID XXXX has already been created." Where XXX is the arbitration ID of the message I am trying to send periodically.

Is it possible to send multiple periodic messages with same ID using socketcan?

I found this issue when running few tests using a systec probe on Linux. On Windows using the systec probe, and the systec option in python-can, I am able to create multiple cyclic messages with the same ID. Running on Linux with the systec probe as a socketcan device the same test fails. I verified with another socket can device as well.

Some context is we will be trying to simulate an ECU on a bus. So its possible that there will be multiple periodic messages coming from the same ID with different data.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions