IsoTpMessage: add separation time to flow control msg (#1074)

* one frame at a time, 20 ms delay

* send one at a time

* update separation time to 10ms

* comment
This commit is contained in:
Shane Smiskol 2022-09-19 20:47:12 -07:00 committed by GitHub
parent b86199244a
commit 11ea112258
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -456,8 +456,8 @@ class IsoTpMessage():
print(f"ISO-TP: RX - first frame - {hex(self._can_client.rx_addr)} idx={self.rx_idx} done={self.rx_done}")
if self.debug:
print(f"ISO-TP: TX - flow control continue - {hex(self._can_client.tx_addr)}")
# send flow control message (send all bytes)
msg = b"\x30\x00\x00".ljust(self.max_len, b"\x00")
# send flow control message (send all bytes) with a separation time of 10 ms
msg = b"\x30\x00\x0a".ljust(self.max_len, b"\x00")
self._can_client.send([msg])
return