OpenCyphal / pycyphal

Python implementation of the Cyphal protocol stack.
https://pycyphal.readthedocs.io/
MIT License
117 stars 106 forks source link

Add an experimental Cyphal/CAN media implementation for replaying candump files, release v1.9 #235

Closed pavel-kirienko closed 2 years ago

pavel-kirienko commented 2 years ago

Also, update linters to the latest versions.

Usage example with Yakut:

export UAVCAN__CAN__IFACE='candump:verification/integration/candump.log'
y sub uavcan.node.heartbeat 10:reg.udral.service.common.readiness 130:reg.udral.service.actuator.common.status
y mon

Currently, by default, the upper layers will not be notified when the end of the log file is reached. This may be worked around later as part of #227. Meanwhile, you can instruct CandumpMedia to terminate its process when the end of the file is reached by exporting PYCYPHAL_CANDUMP_YOU_ARE_TERMINATED=1.

Test against Python 3.9 fails randomly due to problems with AppVeyor, so disregard that.

cc @silverv

pavel-kirienko commented 2 years ago

https://github.com/appveyor/ci/issues/3832