pycyphal icon indicating copy to clipboard operation
pycyphal copied to clipboard

Capture/tracing API: Put a lower bound on the auto-detected transfer-ID timeout

Open pavel-kirienko opened this issue 4 years ago • 0 comments

Python VM cannot be relied on to deliver repeatable real-time performance. When tracing a high-rate session in real-time, spurious transfer-ID timeout events may occur which may lead to duplication of transfers. To fix this, a sensible lower bound ca. 100 ms should be introduced here:

UAVCAN/serial, UAVCAN/UDP: https://github.com/UAVCAN/pyuavcan/blob/master/pyuavcan/transport/commons/high_overhead_transport/_alien_transfer_reassembler.py#L49

UAVCAN/CAN: https://github.com/UAVCAN/pyuavcan/blob/master/pyuavcan/transport/can/_tracer.py#L124

pavel-kirienko avatar Mar 24 '21 23:03 pavel-kirienko