|
|
|
@ -36,6 +36,7 @@ CX5_FW_VERSIONS = [ |
|
|
|
|
(Ecu.transmission, 0x7e1, None, b'PYNC-21PS1-B\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'), |
|
|
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class TestStartup(unittest.TestCase): |
|
|
|
|
|
|
|
|
|
@parameterized.expand([ |
|
|
|
@ -112,7 +113,7 @@ class TestStartup(unittest.TestCase): |
|
|
|
|
if not params.get_bool("ObdMultiplexingChanged"): |
|
|
|
|
params.put_bool("ObdMultiplexingChanged", True) |
|
|
|
|
|
|
|
|
|
msgs = [[addr, 0, b'\x00'*length, 0] for addr, length in finger.items()] |
|
|
|
|
msgs = [[addr, 0, b'\x00' * length, 0] for addr, length in finger.items()] |
|
|
|
|
pm.send('can', can_list_to_can_capnp(msgs)) |
|
|
|
|
|
|
|
|
|
time.sleep(0.01) |
|
|
|
@ -125,5 +126,6 @@ class TestStartup(unittest.TestCase): |
|
|
|
|
else: |
|
|
|
|
self.fail(f"failed to fingerprint {car_model}") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__": |
|
|
|
|
unittest.main() |
|
|
|
|