diff --git a/java_console/autotest/src/com/rusefi/RealHwTest.java b/java_console/autotest/src/com/rusefi/RealHwTest.java index ea71d0d4c6..ed9afa87df 100644 --- a/java_console/autotest/src/com/rusefi/RealHwTest.java +++ b/java_console/autotest/src/com/rusefi/RealHwTest.java @@ -2,6 +2,8 @@ package com.rusefi; import com.devexperts.logging.Logging; import com.rusefi.autodetect.PortDetector; +import com.rusefi.config.generated.Fields; +import com.rusefi.core.EngineState; import com.rusefi.io.LinkManager; import org.jetbrains.annotations.NotNull; @@ -15,9 +17,9 @@ import static com.rusefi.Timeouts.SECOND; * A few jumper wires are used to test some subsystems as realistically as possible: * PD1 <=> PC6 * PD2 <=> PA5 - * - * - * + *
+ *
+ *
* this test connects to real hardware via serial port
* Andrey Belomutskiy, (c) 2013-2020
* 2/22/2015
@@ -25,6 +27,7 @@ import static com.rusefi.Timeouts.SECOND;
public class RealHwTest {
private static final Logging log = getLogging(RealHwTest.class);
private static final int STARTUP_SLEEP = 20;
+ private volatile static String firmwareVersion;
public static void main(String[] args) throws InterruptedException {
log.info("Sleeping " + STARTUP_SLEEP + " seconds to give OS time to connect VCP driver");
@@ -92,9 +95,18 @@ public class RealHwTest {
private static void runRealHardwareTest(String port) {
LinkManager linkManager = new LinkManager().setCompositeLogicEnabled(false);
+ linkManager.getEngineState().registerStringValueAction(Fields.PROTOCOL_VERSION_TAG, new EngineState.ValueCallback