From 8b5df1e9ee70938c0397ba6b3c893f6cd26cca98 Mon Sep 17 00:00:00 2001 From: Jason Young <46612682+jyoung8607@users.noreply.github.com> Date: Tue, 8 Oct 2024 16:41:02 -0400 Subject: [PATCH] tools: print VIN when getting UDS fingerprints from a route (#33750) * tools: print VIN when getting UDS fingerprints * set in case not there --------- Co-authored-by: Shane Smiskol --- selfdrive/debug/fingerprint_from_route.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/selfdrive/debug/fingerprint_from_route.py b/selfdrive/debug/fingerprint_from_route.py index 68308bb62782d5..9da388999b2c14 100755 --- a/selfdrive/debug/fingerprint_from_route.py +++ b/selfdrive/debug/fingerprint_from_route.py @@ -8,10 +8,12 @@ def get_fingerprint(lr): # TODO: make this a nice tool for car ports. should also work with qlogs for FW fw = None + vin = None msgs = {} for msg in lr: if msg.which() == 'carParams': fw = msg.carParams.carFw + vin = msg.carParams.carVin elif msg.which() == 'can': for c in msg.can: # read also msgs sent by EON on CAN bus 0x80 and filter out the @@ -32,6 +34,7 @@ def get_fingerprint(lr): print(f" {f.fwVersion},") print(" ],") print() + print(f"VIN: {vin}") if __name__ == "__main__":