Closed
Description
Hello, I'm using the latest version of the udsoncan lib with the NotifierBasedCanStack
and I'm facing slow response time for the transfer data.
After a positive response it takes almost ~150ms to send the next chunk of transfer data.
Environment:
- Windows 11 23H2
- PCAN/Vector (both similar time)
- can-isotp==2.0.4
- udsoncan==1.23.0
I tried adding a custom wait_func
but still fastest i could get is this 150ms between a positive response and the next frame.
Enabling debugging show that there is ~118ms difference in the timestamp from canoe and the debug print, is this expected or is there a way to reduce this gap? (overall there is 150ms delay)
config:
"stmin": 0,
# Request the sender to send 8 consecutives frames before sending a new flow control message
"blocksize": 32,
# Number of wait frame allowed before triggering an error
"wftmax": 0,
# 8 byte payload (CAN 2.0)
"tx_data_length": 8,
# Minimum length of CAN messages. When different from None, messages are padded to meet this length
"tx_data_min_length": None,
# Will pad all transmitted CAN messages with byte 0x00
"tx_padding": 0,
# Triggers a timeout if a flow control is awaited for more than 1000ms
"rx_flowcontrol_timeout": 1000,
# Triggers a timeout if a consecutive frame is awaited for more than 1000ms
"rx_consecutive_frame_timeout": 1000,
# When sending, respect the stmin requirement of the receiver
"override_receiver_stmin": None,
# Limit the size of receive frame.
"max_frame_size": 2048,
"wait_func": busy_wait_seconds,
Metadata
Metadata
Assignees
Labels
No labels