python-can

Python's asyncio.Event() across different classes

断了今生、忘了曾经 提交于 2021-02-11 07:17:48
问题 I'm writing a Python program to interact with a device based on a CAN Bus. I'm using the python-can module successfully for this purpose. I'm also using asyncio to react to asynchronous events. I have written a "CanBusManager" class that is used by the "CanBusSequencer" class. The "CanBusManager" class takes care of generating/sending/receiving messages, and the CanBusSequencer drives the sequence of messages to be sent. At some point in the sequence I want to wait until a specific message is

Python's asyncio.Event() across different classes

怎甘沉沦 提交于 2021-02-11 07:10:21
问题 I'm writing a Python program to interact with a device based on a CAN Bus. I'm using the python-can module successfully for this purpose. I'm also using asyncio to react to asynchronous events. I have written a "CanBusManager" class that is used by the "CanBusSequencer" class. The "CanBusManager" class takes care of generating/sending/receiving messages, and the CanBusSequencer drives the sequence of messages to be sent. At some point in the sequence I want to wait until a specific message is

Python's asyncio.Event() across different classes

大憨熊 提交于 2021-02-11 07:10:03
问题 I'm writing a Python program to interact with a device based on a CAN Bus. I'm using the python-can module successfully for this purpose. I'm also using asyncio to react to asynchronous events. I have written a "CanBusManager" class that is used by the "CanBusSequencer" class. The "CanBusManager" class takes care of generating/sending/receiving messages, and the CanBusSequencer drives the sequence of messages to be sent. At some point in the sequence I want to wait until a specific message is