Write me a stateful canbus scheduler for 2 different device types each having 50 or 70 messages, respectively, and where data get messages are scheduled at the beginning of a predefined timeslot, then data set messages one per round per device, and all remaining timeslot time is used for possible firmware update data.
def add(a, b): return a + b add(1, 2)