Skip to content

Calling send_periodic several times doesn't work with SocketCan #721

Closed
@PaulErny

Description

@PaulErny

Hi,

task = bus.send_periodic(msg, period)
task2 = bus.send_periodic(msg2, period2)

After launching several send_periodic tasks, with SocketCan, only the last one appears to be working although the same script works fine with PeakCan on another device.

EDIT: both messages have the same arbitration ID but different datas

Plugging this other device on the CAN Bus to intercept frames confirms that the last send_periodic task to be started is the only one working.

I'm using python-can 3.3.2 on a 32 bits Raspbian stretch (v9.4)

Here is the output of uname -a:

pi@raspberrypi:~ $ uname -a
Linux raspberrypi 4.14.71-v7+ #1145 SMP Fri Sep 21 15:38:35 BST 2018 armv7l GNU/Linux

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions