Broadcast Manager

The broadcast manager isn’t yet supported by all interfaces. Currently SockerCAN and IXXAT are supported at least partially. It allows the user to setup periodic message jobs.

If periodic transmission is not supported natively, a software thread based scheduler is used as a fallback.

This example shows the ctypes socketcan using the broadcast manager:

Functional API

can.send_periodic(bus, message, period)

Send a message every period seconds on the given channel.

Class based API

class can.CyclicSendTaskABC(message, period)

Message send task with defined period

class can.MultiRateCyclicSendTaskABC(channel, message, count, initial_period, subsequent_period)

Exposes more of the full power of the TX_SETUP opcode.

Transmits a message count times at initial_period then continues to transmit message at subsequent_period.