Skip to content

Commit

Permalink
IsoTpParallelQuery: extend timeout for every frame type (#29654)
Browse files Browse the repository at this point in the history
* recv returns updated

* bump panda

* bump

* bump
  • Loading branch information
sshane authored Aug 26, 2023
1 parent 74a0a8f commit a160f1a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion panda
6 changes: 3 additions & 3 deletions selfdrive/car/isotp_parallel_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,14 @@ def get_data(self, timeout, total_timeout=60.):

for tx_addr, msg in msgs.items():
try:
dat, rx_in_progress = msg.recv()
dat, updated = msg.recv()
except Exception:
cloudlog.exception(f"Error processing UDS response: {tx_addr}")
request_done[tx_addr] = True
continue

# Extend timeout for each consecutive ISO-TP frame to avoid timing out on long responses
if rx_in_progress:
# Extend timeout for each valid ISO-TP frame to avoid timing out on long responses
if updated:
addrs_responded.add(tx_addr)
response_timeouts[tx_addr] = time.monotonic() + timeout

Expand Down

0 comments on commit a160f1a

Please sign in to comment.