Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to develop on the Android platform #13

Open
Timmy5818 opened this issue Mar 15, 2024 · 39 comments
Open

How to develop on the Android platform #13

Timmy5818 opened this issue Mar 15, 2024 · 39 comments

Comments

@Timmy5818
Copy link

Hello, I have quoted your library file according to the steps here. I took a look at the file content. The sample file uses BluetoothConnection. However, I searched on the Internet and found that BluetoothSocket is mainly used on Android. This is different. Function library, if I want to receive data in the background of Android Server and use the BroadcastReceiver method to display the data on the Activity screen, how does the overall process work?
Thanks

@tzebrowski
Copy link
Owner

Hi,

BluetoothConnection in fact is a wrapper on BluetoothSocket, in addition it implements AdapterConnection interface to be able to integrate with the FW.

For Android integration purpose you may check ObdGraphs.datalogger module https://github.com/tzebrowski/ObdGraphs/tree/master/datalogger/src/main/java/org/obd/graphs/bl/datalogger
It contains all what you need to start with Android development

@Timmy5818
Copy link
Author

Thank you. I would like to ask if these programs are currently based on Kotlin architecture. If my application mainly runs on Java, will there be any compatibility issues?

@tzebrowski
Copy link
Owner

ObdMetrics is java library, so I don't see any compatibility issues for now. In any case, Kotlin part (ObdGraphs) can be always rewritten to java.

@Timmy5818
Copy link
Author

Timmy5818 commented Mar 15, 2024

Understood, thank you~
In addition, the following is the part where I wrote the program based on your instructions on the home page, but I encountered some problems and wanted to ask for advice. If I run BluetoothDemo as a Service, I want to change it to automatically connect to the OBD device, and then use the home page's The description is that workflow.start will start collecting data, and then workflow.getDiagnostics will collect the results. If you want to test a simple data (such as vehicle speed) and send it to OBDActivity for display, I use BroadcastReceiver to send it to the screen and Display (other methods can also be used), in the meantime how to send data to the screen in BluetoothDemo for display?
Also, I don’t know if there is anything wrong with this way of implementation.

BluetoothDemo.java:

public class BluetoothDemo extends Service {
    public void test() throws IOException, InterruptedException, ExecutionException {
        AdapterConnection connection = BluetoothConnection.connect(getDeviceByName("OBD"));
        var collector = new DataCollector();

        final Pids pids = Pids
                .builder()
                .resource(Objects.requireNonNull(Thread.currentThread().getContextClassLoader()).getResource("giulia_2.0_gme.json"))
                .resource(Objects.requireNonNull(Thread.currentThread().getContextClassLoader()).getResource("extra.json"))
                .resource(Objects.requireNonNull(Thread.currentThread().getContextClassLoader()).getResource("mode01.json"))
                .build();

        int commandFrequency = 6;
        var workflow = Workflow.instance().pids(pids).observer(collector).initialize();

        var query = Query.builder().pid(7005l).pid(7006l).pid(7007l).pid(7008l).build();

        var optional = Adjustments
                .builder()
                .vehicleCapabilitiesReadingEnabled(Boolean.TRUE)
                .vehicleMetadataReadingEnabled(Boolean.TRUE)
                .adaptiveTimeoutPolicy(AdaptiveTimeoutPolicy.builder().enabled(Boolean.TRUE).checkInterval(5000).commandFrequency(commandFrequency).build())
                .producerPolicy(ProducerPolicy.builder().priorityQueueEnabled(Boolean.TRUE).build())
                .cachePolicy(CachePolicy.builder().resultCacheEnabled(Boolean.FALSE).build())
                .batchPolicy(
                        BatchPolicy.builder().responseLengthEnabled(Boolean.FALSE).enabled(Boolean.FALSE).build())
                .build();

        var init = Init.builder()
                .delayAfterInit(1000)
                .header(Header.builder().mode("22").header("DA10F1").build())
                .header(Header.builder().mode("01").header("DB33F1").build())
                .protocol(Protocol.CAN_29)
                .sequence(DefaultCommandGroup.INIT).build();

        workflow.start(connection, query, init, optional);

        WorkflowFinalizer.finalizeAfter(workflow,25000);

        var registry = workflow.getPidRegistry();

        var intakePressure = registry.findBy(7005l);
        double ratePerSec = workflow.getDiagnostics().rate().findBy(RateType.MEAN, intakePressure).get().getValue();

        Assertions.assertThat(ratePerSec).isGreaterThanOrEqualTo(commandFrequency);
    }

    @SuppressLint("MissingPermission")
    private BluetoothDevice getDeviceByName(String name) {
        BluetoothAdapter bluetoothAdapter = BluetoothAdapter.getDefaultAdapter();
        if (bluetoothAdapter != null) {
            Set<BluetoothDevice> pairedDevices = bluetoothAdapter.getBondedDevices();
            if (pairedDevices != null && !pairedDevices.isEmpty()) {
                for (BluetoothDevice device : pairedDevices) {
                    if (device.getName().equals(name)) {
                        return device;
                    }
                }
            }
        }
        return null;
    }

    @Nullable
    @Override
    public IBinder onBind(Intent intent) {
        return null;
    }
}

DataCollector.java:

public final class DataCollector extends ReplyObserver<Reply<?>> {
    private final MultiValuedMap<Command, Reply<?>> data = new ArrayListValuedHashMap<Command, Reply<?>>();

    private final MultiValuedMap<PidDefinition, ObdMetric> metrics = new ArrayListValuedHashMap<PidDefinition, ObdMetric>();

    public ObdMetric findSingleMetricBy(PidDefinition pidDefinition) {
        List<ObdMetric> list = (List<ObdMetric>) metrics.get(pidDefinition);
        if (list.isEmpty()) {
            return null;
        }
        return list.get(0);
    }

    public List<ObdMetric> findMetricsBy(PidDefinition pidDefinition) {
        return (List<ObdMetric>) metrics.get(pidDefinition);
    }


    @Override
    public void onNext(Reply<?> reply) {
        Log.i("Receive data: {}", reply.toString());
        data.put(reply.getCommand(), reply);

        if (reply instanceof ObdMetric) {
            metrics.put(((ObdMetric) reply).getCommand().getPid(), (ObdMetric) reply);
        }
    }
}

WorkflowFinalizer.java:

public interface WorkflowFinalizer {
    int DEFAULT_FINALIZE_TIME = 500;

    static void finalizeAfter(final Workflow workflow, long sleepTime) throws InterruptedException {
        final Callable<String> end = () -> {
            TimeUnit.MILLISECONDS.sleep(sleepTime);
            workflow.stop();
            return "end";
        };

        final ExecutorService newFixedThreadPool = Executors.newFixedThreadPool(1);
        newFixedThreadPool.invokeAll(Arrays.asList(end));
        newFixedThreadPool.shutdown();
    }

    static void finalizeAfter500ms(final Workflow workflow) throws InterruptedException {
        finalizeAfter(workflow, DEFAULT_FINALIZE_TIME);
    }
}

OBDActivity.java:

public class OBDActivity extends AppCompatActivity {
    private ActivityObdBinding binding;

    @SuppressLint("MissingPermission")
    @SuppressWarnings("all")
    private final BroadcastReceiver connectionStateReceiver = new BroadcastReceiver() {
        @Override
        public void onReceive(Context context, Intent intent) {
            if (OBDBluetoothService.ACTION_OBD_STATE.equals(intent.getAction())) {
                int speed = intent.getIntExtra(OBDBluetoothService.EXTRA_OBD_SPEED, 0);

                if (binding != null) {
                    if (speed != 0 ) {
                        binding.testSpeed.setText(speed +"Km/h");
                    }
                }
            }
        }
    };

    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        binding = ActivityObdBinding.inflate(getLayoutInflater());
        setContentView(binding.getRoot());
        setTheme(R.style.AppTheme);

        final Toolbar toolbar = binding.toolbar;
        setSupportActionBar(toolbar);
        if (getSupportActionBar() != null) {
            getSupportActionBar().setTitle(R.string.navigation_obd_II);
            getSupportActionBar().setDisplayHomeAsUpEnabled(true);
        }

    }

    @Override
    public boolean onSupportNavigateUp() {
        finish();
        return true;
    }
}

@tzebrowski
Copy link
Owner

tzebrowski commented Mar 15, 2024

Can you please create simple project on your own, I could clone it and validate it locally? This would speedup problem solving,

@Timmy5818
Copy link
Author

Hello, I have placed the file and the working program on Github, because the program will execute the OBDBluetoothService when specifying automatic connection to find the relevant OBD device. An error occurred and we are currently dealing with the error. If you have some solutions, I can open this Github for editing permissions for you. You can directly modify the file and view the error. Thank you.

@tzebrowski
Copy link
Owner

tzebrowski commented Mar 19, 2024

Hi,

I managed to run your project, and found few things:

  1. You need to uncomment this https://github.com/Timmy5818/SimpleOBDJavaTest/blob/main/app/src/main/java/com/example/simpleobdjavatest/OBDBluetoothService.java#L49
  2. You need to start the connection here: https://github.com/Timmy5818/SimpleOBDJavaTest/blob/main/app/src/main/java/com/example/simpleobdjavatest/OBDBluetoothService.java#L82
  3. You need to remove this line: https://github.com/Timmy5818/SimpleOBDJavaTest/blob/main/app/src/main/java/com/example/simpleobdjavatest/OBDBluetoothService.java#L84 it cause ANR

For now, some reason, your bt class is not able to open the connection with the bt device, checking this..

`2024-03-19 09:44:23.461 12745-12781 System.err              com.example.simpleobdjavatest        W  [pool-3-thread-1] ERROR org.obd.metrics.api.DefaultWorkflow - Failed to initialize the Workflow task.
2024-03-19 09:44:23.461 12745-12781 System.err              com.example.simpleobdjavatest        W  java.io.IOException: read failed, socket might closed or timeout, read ret: -1
2024-03-19 09:44:23.462 12745-12781 System.err              com.example.simpleobdjavatest        W  	at android.bluetooth.BluetoothSocket.readAll(BluetoothSocket.java:952)
2024-03-19 09:44:23.462 12745-12781 System.err              com.example.simpleobdjavatest        W  	at android.bluetooth.BluetoothSocket.readInt(BluetoothSocket.java:966)
2024-03-19 09:44:23.462 12745-12781 System.err              com.example.simpleobdjavatest        W  	at android.bluetooth.BluetoothSocket.connect(BluetoothSocket.java:522)
2024-03-19 09:44:23.463 12745-12781 System.err              com.example.simpleobdjavatest        W  	at com.example.simpleobdjavatest.BluetoothConnection.connect(BluetoothConnection.java:67)
2024-03-19 09:44:23.463 12745-12781 System.err              com.example.simpleobdjavatest        W  	at org.obd.metrics.transport.Connector.create(Connector.java:42)
2024-03-19 09:44:23.463 12745-12781 System.err              com.example.simpleobdjavatest        W  	at org.obd.metrics.transport.Connector$ConnectorBuilder.build(Connector.java:40)
2024-03-19 09:44:23.464 12745-12781 System.err              com.example.simpleobdjavatest        W  	at org.obd.metrics.api.ConnectionManager.onInit(ConnectionManager.java:73)
2024-03-19 09:44:23.464 12745-12781 System.err              com.example.simpleobdjavatest        W  	at org.obd.metrics.context.Context.lambda$init$0$org-obd-metrics-context-Context(Context.java:60)
2024-03-19 09:44:23.465 12745-12781 System.err              com.example.simpleobdjavatest        W  	at org.obd.metrics.context.Context$$ExternalSyntheticLambda0.accept(Unknown Source:4)
2024-03-19 09:44:23.465 12745-12781 System.err              com.example.simpleobdjavatest        W  	at java.util.concurrent.ConcurrentHashMap.forEach(ConcurrentHashMap.java:1608)
2024-03-19 09:44:23.465 12745-12781 System.err              com.example.simpleobdjavatest        W  	at org.obd.metrics.context.Context.init(Context.java:58)
2024-03-19 09:44:23.466 12745-12781 System.err              com.example.simpleobdjavatest        W  	at org.obd.metrics.api.DefaultWorkflow.lambda$start$11$org-obd-metrics-api-DefaultWorkflow(DefaultWorkflow.java:272)
2024-03-19 09:44:23.466 12745-12781 System.err              com.example.simpleobdjavatest        W  	at org.obd.metrics.api.DefaultWorkflow$$ExternalSyntheticLambda1.accept(Unknown Source:13)
2024-03-19 09:44:23.466 12745-12781 System.err              com.example.simpleobdjavatest        W  	at org.obd.metrics.context.Context.apply(Context.java:69)
2024-03-19 09:44:23.466 12745-12781 System.err              com.example.simpleobdjavatest        W  	at org.obd.metrics.api.DefaultWorkflow.lambda$start$12$org-obd-metrics-api-DefaultWorkflow(DefaultWorkflow.java:256)
2024-03-19 09:44:23.467 12745-12781 System.err              com.example.simpleobdjavatest        W  	at org.obd.metrics.api.DefaultWorkflow$$ExternalSyntheticLambda7.run(Unknown Source:10)
2024-03-19 09:44:23.467 12745-12781 System.err              com.example.simpleobdjavatest        W  	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:487)
2024-03-19 09:44:23.467 12745-12781 System.err              com.example.simpleobdjavatest        W  	at java.util.concurrent.FutureTask.run(FutureTask.java:264)
2024-03-19 09:44:23.468 12745-12781 System.err              com.example.simpleobdjavatest        W  	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
2024-03-19 09:44:23.468 12745-12781 System.err              com.example.simpleobdjavatest        W  	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
2024-03-19 09:44:23.469 12745-12781 System.err              com.example.simpleobdjavatest        W  	at java.lang.Thread.run(Thread.java:1012)
2024-03-19 09:44:23.469 12745-12781 System.err              com.example.simpleobdjavatest        W  [pool-3-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Stopping the Workflow task.
2024-03-19 09:44:23.469 12745-12781 System.err              com.example.simpleobdjavatest        W  [pool-3-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Notyfing workflow is stopped`

@Timmy5818
Copy link
Author

Timmy5818 commented Mar 20, 2024

Hello, I have modified the program code using the method you suggested and uploaded it to Github. Please re-Clone the project. I am not sure if this modification is correct. There is also a problem about BT connection. There are other methods. Any suggestions?
Thank you

@tzebrowski
Copy link
Owner

tzebrowski commented Mar 20, 2024

Hi, your app does not ask for bluetooth permissions, you might integrate with easypermissions and request what's missing, for instance:

EasyPermissions.requestPermissions(this,"I need BT permissions",1, Manifest.permission.BLUETOOTH_ADMIN, Manifest.permission.BLUETOOTH, Manifest.permission.BLUETOOTH_CONNECT);

@Timmy5818
Copy link
Author

Timmy5818 commented Mar 21, 2024

Hello, I have modified part of the program and added Bluetooth permissions and uploaded it to Github. However, after I actually tested it, I found that the program seems to try to connect to the following device (BA0DED_5), which seems incorrect, my device name is OBDII(Mac Address:CE:5E:89:74:3D:4C)

2024-03-21 11:19:40.943 BluetoothSocket I connect() for device BA0DED_5 called by pid: 31882

The following are all the Logcat records displayed in Android Studio. What solutions are there according to the current displayed records?
thank you

---------------------------- PROCESS STARTED (31413) for package com.example.simpleobdjavatest ----------------------------
--------- beginning of main
--------- beginning of system
---------------------------- PROCESS ENDED (31413) for package com.example.simpleobdjavatest ----------------------------
---------------------------- PROCESS STARTED (31882) for package com.example.simpleobdjavatest ----------------------------
2024-03-21 11:19:40.152 mpleobdjavatest          W  Redefining intrinsic method boolean java.lang.Thread.interrupted(). This may cause the unexpected use of the original definition of boolean java.lang.Thread.interrupted()in methods that have already been compiled.
2024-03-21 11:19:40.155 Compatibil...geReporter  D  Compat change id reported: 171979766; UID 10606; state: ENABLED
2024-03-21 11:19:40.190 ziparchive               W  Unable to open '/data/data/com.example.simpleobdjavatest/code_cache/.overlay/base.apk/classes6.dm': No such file or directory
2024-03-21 11:19:40.190 ziparchive               W  Unable to open '/data/app/~~WGx38tcE1W4ZBIo2Zc9a4w==/com.example.simpleobdjavatest-hRIwfTOgsPQc5RogiBYs0A==/base.dm': No such file or directory
2024-03-21 11:19:40.190 ziparchive               W  Unable to open '/data/app/~~WGx38tcE1W4ZBIo2Zc9a4w==/com.example.simpleobdjavatest-hRIwfTOgsPQc5RogiBYs0A==/base.dm': No such file or directory
2024-03-21 11:19:40.495 nativeloader             D  Configuring clns-4 for other apk /data/app/~~WGx38tcE1W4ZBIo2Zc9a4w==/com.example.simpleobdjavatest-hRIwfTOgsPQc5RogiBYs0A==/base.apk. target_sdk_version=34, uses_libraries=, library_path=/data/app/~~WGx38tcE1W4ZBIo2Zc9a4w==/com.example.simpleobdjavatest-hRIwfTOgsPQc5RogiBYs0A==/lib/arm64:/data/app/~~WGx38tcE1W4ZBIo2Zc9a4w==/com.example.simpleobdjavatest-hRIwfTOgsPQc5RogiBYs0A==/base.apk!/lib/arm64-v8a, permitted_path=/data:/mnt/expand:/data/user/0/com.example.simpleobdjavatest
2024-03-21 11:19:40.535 GraphicsEnvironment      V  ANGLE Developer option for 'com.example.simpleobdjavatest' set to: 'default'
2024-03-21 11:19:40.535 GraphicsEnvironment      V  ANGLE GameManagerService for com.example.simpleobdjavatest: false
2024-03-21 11:19:40.536 GraphicsEnvironment      V  App is not on the allowlist for updatable production driver.
2024-03-21 11:19:40.541 NetworkSecurityConfig    D  No Network Security Config specified, using platform default
2024-03-21 11:19:40.591 NetworkSecurityConfig    D  No Network Security Config specified, using platform default
2024-03-21 11:19:40.613 OpenGLRenderer           D  RenderThread::requireGlContext()
2024-03-21 11:19:40.613 AdrenoGLES-0             I  QUALCOMM build                   : 193b2ee, I593c16c433
                                                    Build Date                       : 10/07/21
                                                    OpenGL ES Shader Compiler Version: EV031.32.02.10
                                                    Local Branch                     : Test-lib-SR05432264
                                                    Remote Branch                    : 
                                                    Remote Branch                    : 
                                                    Reconstruct Branch               : 
2024-03-21 11:19:40.613 AdrenoGLES-0             I  Build Config                     : S P 10.0.5 AArch64
2024-03-21 11:19:40.613 AdrenoGLES-0             I  Driver Path                      : /vendor/lib64/egl/libGLESv2_adreno.so
2024-03-21 11:19:40.617 AdrenoGLES-0             I  PFP: 0x016dd093, ME: 0x00000000
2024-03-21 11:19:40.623 OpenGLRenderer           D  RenderThread::setGrContext()
2024-03-21 11:19:40.644 AppCompatDelegate        D  Checking for metadata for AppLocalesMetadataHolderService : Service not found
2024-03-21 11:19:40.705 Compatibil...geReporter  D  Compat change id reported: 210923482; UID 10606; state: ENABLED
2024-03-21 11:19:40.710 mpleobdjavatest          W  Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (unsupported, reflection, allowed)
2024-03-21 11:19:40.719 DecorView                I  [INFO] isPopOver=false config=true
2024-03-21 11:19:40.719 DecorView                I  updateCaptionType: isFloating=false isApplication=true hasWindowDecorCaption=false this=DecorView@423f7ce[]
2024-03-21 11:19:40.719 DecorView                D  setCaptionType = 0, this = DecorView@423f7ce[]
2024-03-21 11:19:40.721 DecorView                I  getCurrentDensityDpi: from real metrics. densityDpi=600 msg=resources_loaded
2024-03-21 11:19:40.721 DecorView                I  setWindowBackground: isPopOver=false color=ffffffff d=android.graphics.drawable.ColorDrawable@60aa5fc
2024-03-21 11:19:40.737 mpleobdjavatest          W  Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (unsupported, reflection, allowed)
2024-03-21 11:19:40.745 MainActivity             I  Start OBD-II BluetoothService
2024-03-21 11:19:40.760 MSHandlerLifeCycle       I  check: return. pkg=com.example.simpleobdjavatest parent=null callers=com.android.internal.policy.DecorView.setVisibility:4412 android.app.ActivityThread.handleResumeActivity:5476 android.app.servertransaction.ResumeActivityItem.execute:54 android.app.servertransaction.ActivityTransactionItem.execute:45 android.app.servertransaction.TransactionExecutor.executeLifecycleState:176 
2024-03-21 11:19:40.760 MSHandlerLifeCycle       I  removeMultiSplitHandler: no exist. decor=DecorView@423f7ce[]
2024-03-21 11:19:40.771 NativeCust...ncyManager  D  [NativeCFMS] BpCustomFrequencyManager::BpCustomFrequencyManager()
2024-03-21 11:19:40.787 InsetsController         D  onStateChanged: InsetsState: {mDisplayFrame=Rect(0, 0 - 1440, 3200), mDisplayCutout=DisplayCutout{insets=Rect(0, 97 - 0, 0) waterfall=Insets{left=0, top=0, right=0, bottom=0} boundingRect={Bounds=[Rect(0, 0 - 0, 0), Rect(683, 0 - 757, 97), Rect(0, 0 - 0, 0), Rect(0, 0 - 0, 0)]} cutoutPathParserInfo={CutoutPathParserInfo{displayWidth=1440 displayHeight=3200 physicalDisplayWidth=1440 physicalDisplayHeight=3200 density={3.75} cutoutSpec={M 0,0 H -9.866666666666667 V 25.86666666666667 H 9.866666666666667 V 0 H 0 Z @dp} rotation={0} scale={1.0} physicalPixelDisplaySizeRatio={1.0}}}}, mRoundedCorners=RoundedCorners{[RoundedCorner{position=TopLeft, radius=120, center=Point(120, 120)}, RoundedCorner{position=TopRight, radius=120, center=Point(1320, 120)}, RoundedCorner{position=BottomRight, radius=120, center=Point(1320, 3080)}, RoundedCorner{position=BottomLeft, radius=120, center=Point(120, 3080)}]}  mRoundedCornerFrame=Rect(0, 0 - 1440, 3200), mPrivacyIndicatorBounds=PrivacyIndicatorBounds {static bounds=Rect(1275, 0 - 1440, 97) rotation=0}, mSources= { InsetsSource: {mType=ITYPE_STATUS_BAR, mFrame=[0,0][1440,97], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_NAVIGATION_BAR, mFrame=[0,3020][1440,3200], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_LEFT_GESTURES, mFrame=[0,0][0,3200], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_RIGHT_GESTURES, mFrame=[1440,0][1440,3200], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_TOP_MANDATORY_GESTURES, mFrame=[0,0][1440,142], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_BOTTOM_MANDATORY_GESTURES, mFrame=[0,3020][1440,3200], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_LEFT_DISPLAY_CUTOUT, mFrame=[0,0][-100000,3200], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_TOP_DISPLAY_CUTOUT, mFrame=[0,0][1440,97], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_RIGHT_DISPLAY_CUTOUT, mFrame=[100000,0][1440,3200], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_BOTTOM_DISPLAY_CUTOUT, mFrame=[0,100000][1440,3200], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_TOP_TAPPABLE_ELEMENT, mFrame=[0,0][1440,97], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_BOTTOM_TAPPABLE_ELEMENT, mFrame=[0,3020][1440,3200], mVisible=true, mInsetsRoundedCornerFrame=false} } host=com.example.simpleobdjavatest/com.example.simpleobdjavatest.MainActivity from=android.view.ViewRootImpl.setView:1732
2024-03-21 11:19:40.795 ViewRootIm...nActivity]  I  setView = com.android.internal.policy.DecorView@423f7ce TM=true
2024-03-21 11:19:40.796 MSHandlerLifeCycle       I  removeMultiSplitHandler: no exist. decor=DecorView@423f7ce[MainActivity]
2024-03-21 11:19:40.814 ViewRootIm...nActivity]  I  performTraversals params={(0,0)(fillxfill) sim={adjust=pan forwardNavigation} ty=BASE_APPLICATION wanim=0x1030309
                                                      fl=81810100
                                                      pfl=12020040
                                                      bhv=DEFAULT
                                                      fitSides= naviIconColor=0
                                                      sfl=100000}
2024-03-21 11:19:40.816 ViewRootIm...nActivity]  I  performTraversals mFirst=true windowShouldResize=true viewVisibilityChanged=false mForceNextWindowRelayout=false params={(0,0)(fillxfill) sim={adjust=pan forwardNavigation} ty=BASE_APPLICATION wanim=0x1030309
                                                      fl=81810100
                                                      pfl=12020040
                                                      bhv=DEFAULT
                                                      fitSides= naviIconColor=0
                                                      sfl=100000}
2024-03-21 11:19:40.836 ViewRootIm...nActivity]  I  updateBlastSurfaceIfNeeded mBlastBufferQueue=null isSameSurfaceControl=false
2024-03-21 11:19:40.837 BufferQueueProducer      E  Unable to open libpenguin.so: dlopen failed: library "libpenguin.so" not found.
2024-03-21 11:19:40.837 BLASTBufferQueue         I  new BLASTBufferQueue, mName= ViewRootImpl@48311ad[MainActivity] mNativeObject= 0xb40000772d133d50 sc.mNativeObject= 0xb4000076bd14a370 caller= android.view.ViewRootImpl.updateBlastSurfaceIfNeeded:2909 android.view.ViewRootImpl.relayoutWindow:9847 android.view.ViewRootImpl.performTraversals:3884 android.view.ViewRootImpl.doTraversal:3116 android.view.ViewRootImpl$TraversalRunnable.run:10885 android.view.Choreographer$CallbackRecord.run:1301 android.view.Choreographer$CallbackRecord.run:1309 android.view.Choreographer.doCallbacks:923 android.view.Choreographer.doFrame:852 android.view.Choreographer$FrameDisplayEventReceiver.run:1283 
2024-03-21 11:19:40.838 BLASTBufferQueue         I  update, w= 1440 h= 3200 mName = ViewRootImpl@48311ad[MainActivity] mNativeObject= 0xb40000772d133d50 sc.mNativeObject= 0xb4000076bd14a370 format= -1 caller= android.graphics.BLASTBufferQueue.<init>:84 android.view.ViewRootImpl.updateBlastSurfaceIfNeeded:2909 android.view.ViewRootImpl.relayoutWindow:9847 android.view.ViewRootImpl.performTraversals:3884 android.view.ViewRootImpl.doTraversal:3116 android.view.ViewRootImpl$TraversalRunnable.run:10885 
2024-03-21 11:19:40.838 ViewRootIm...nActivity]  I  Relayout returned: old=(0,0,1440,3200) new=(0,0,1440,3200) req=(1440,3200)0 dur=20 res=0x3 s={true 0xb4000077bd125220} ch=true seqId=0
2024-03-21 11:19:40.839 ViewRootIm...nActivity]  I  mThreadedRenderer.initialize() mSurface={isValid=true 0xb4000077bd125220} hwInitialized=true
2024-03-21 11:19:40.840 OpenGLRenderer           D  eglCreateWindowSurface
2024-03-21 11:19:40.842 ViewRootIm...nActivity]  I  reportNextDraw android.view.ViewRootImpl.performTraversals:4438 android.view.ViewRootImpl.doTraversal:3116 android.view.ViewRootImpl$TraversalRunnable.run:10885 android.view.Choreographer$CallbackRecord.run:1301 android.view.Choreographer$CallbackRecord.run:1309 
2024-03-21 11:19:40.843 ViewRootIm...nActivity]  I  Setup new sync id=0
2024-03-21 11:19:40.843 ViewRootIm...nActivity]  I  Setting syncFrameCallback
2024-03-21 11:19:40.843 ViewRootIm...nActivity]  I  registerCallbacksForSync syncBuffer=false
2024-03-21 11:19:40.845 ViewRootIm...nActivity]  I  Received frameDrawingCallback syncResult=0 frameNum=1.
2024-03-21 11:19:40.845 ViewRootIm...nActivity]  I  Setting up sync and frameCommitCallback
2024-03-21 11:19:40.854 BLASTBufferQueue         I  [ViewRootImpl@48311ad[MainActivity]#0](f:0,a:0) onFrameAvailable the first frame is available
2024-03-21 11:19:40.855 ViewRootIm...nActivity]  I  Received frameCommittedCallback lastAttemptedDrawFrameNum=1 didProduceBuffer=true
2024-03-21 11:19:40.856 OpenGLRenderer           D  CFMS:: SetUp Pid : 31882    Tid : 31907
2024-03-21 11:19:40.861 Parcel                   W  Expecting binder but got null!
2024-03-21 11:19:40.861 ViewRootIm...nActivity]  I  onSyncComplete
2024-03-21 11:19:40.862 ViewRootIm...nActivity]  I  setupSync seqId=0 mSyncId=0 fn=1 caller=android.view.ViewRootImpl$$ExternalSyntheticLambda11.accept:6 android.window.SurfaceSyncer.lambda$setupSync$1$android-window-SurfaceSyncer:128 android.window.SurfaceSyncer$$ExternalSyntheticLambda1.accept:8 android.window.SurfaceSyncer$SyncSet.checkIfSyncIsComplete:382 android.window.SurfaceSyncer$SyncSet.markSyncReady:359 android.window.SurfaceSyncer.markSyncReady:151 android.view.ViewRootImpl.performTraversals:4503 
2024-03-21 11:19:40.862 ViewRootIm...nActivity]  I  reportDrawFinished seqId=0 mSyncId=-1 fn=1 mSurfaceChangedTransaction=0xb4000076ed136df0
2024-03-21 11:19:40.866 BluetoothConnection      I  Created instance of BluetoothConnection with device: OBD
2024-03-21 11:19:40.892 OBDBluetoothService      I  Try OBD-II Connection
2024-03-21 11:19:40.892 BluetoothConnection      I  Created instance of BluetoothConnection with device: OBDII
2024-03-21 11:19:40.892 BluetoothConnection      I  Try OBD-II Connection
2024-03-21 11:19:40.892 BluetoothConnection      I  Created instance of BluetoothConnection with device: OBDII
2024-03-21 11:19:40.895 OBDBluetoothService      I  Try OBD-II Connection
2024-03-21 11:19:40.895 BluetoothConnection      I  Created instance of BluetoothConnection with device: OBDII
2024-03-21 11:19:40.895 BluetoothConnection      I  Try OBD-II Connection
2024-03-21 11:19:40.912 ViewRootIm...nActivity]  I  MSG_WINDOW_FOCUS_CHANGED 1 0
2024-03-21 11:19:40.913 ViewRootIm...nActivity]  I  mThreadedRenderer.initializeIfNeeded()#2 mSurface={isValid=true 0xb4000077bd125220}
2024-03-21 11:19:40.914 InputMethodManager       D  startInputInner - Id : 0
2024-03-21 11:19:40.914 InputMethodManager       I  startInputInner - mService.startInputOrWindowGainedFocus
2024-03-21 11:19:40.920 BluetoothAdapter         I  BluetoothAdapter() : com.example.simpleobdjavatest
2024-03-21 11:19:40.934 InputMethodManager       D  startInputInner - Id : 0
2024-03-21 11:19:40.943 BluetoothConnection      I  OBD Device found: OBDII
2024-03-21 11:19:40.943 mpleobdjavatest          W  Accessing hidden method Landroid/bluetooth/BluetoothDevice;->createRfcommSocket(I)Landroid/bluetooth/BluetoothSocket; (unsupported, reflection, allowed)
2024-03-21 11:19:40.943 BluetoothSocket          I  connect() for device BA0DED_5 called by pid: 31882
2024-03-21 11:19:40.946 InsetsController         D  onStateChanged: InsetsState: {mDisplayFrame=Rect(0, 0 - 1440, 3200), mDisplayCutout=DisplayCutout{insets=Rect(0, 97 - 0, 0) waterfall=Insets{left=0, top=0, right=0, bottom=0} boundingRect={Bounds=[Rect(0, 0 - 0, 0), Rect(683, 0 - 757, 97), Rect(0, 0 - 0, 0), Rect(0, 0 - 0, 0)]} cutoutPathParserInfo={CutoutPathParserInfo{displayWidth=1440 displayHeight=3200 physicalDisplayWidth=1440 physicalDisplayHeight=3200 density={3.75} cutoutSpec={M 0,0 H -9.866666666666667 V 25.86666666666667 H 9.866666666666667 V 0 H 0 Z @dp} rotation={0} scale={1.0} physicalPixelDisplaySizeRatio={1.0}}}}, mRoundedCorners=RoundedCorners{[RoundedCorner{position=TopLeft, radius=120, center=Point(120, 120)}, RoundedCorner{position=TopRight, radius=120, center=Point(1320, 120)}, RoundedCorner{position=BottomRight, radius=120, center=Point(1320, 3080)}, RoundedCorner{position=BottomLeft, radius=120, center=Point(120, 3080)}]}  mRoundedCornerFrame=Rect(0, 0 - 1440, 3200), mPrivacyIndicatorBounds=PrivacyIndicatorBounds {static bounds=Rect(1275, 0 - 1440, 97) rotation=0}, mSources= { InsetsSource: {mType=ITYPE_STATUS_BAR, mFrame=[0,0][1440,97], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_NAVIGATION_BAR, mFrame=[0,3020][1440,3200], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_LEFT_GESTURES, mFrame=[0,0][0,3200], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_RIGHT_GESTURES, mFrame=[1440,0][1440,3200], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_TOP_MANDATORY_GESTURES, mFrame=[0,0][1440,142], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_BOTTOM_MANDATORY_GESTURES, mFrame=[0,3020][1440,3200], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_LEFT_DISPLAY_CUTOUT, mFrame=[0,0][-100000,3200], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_TOP_DISPLAY_CUTOUT, mFrame=[0,0][1440,97], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_RIGHT_DISPLAY_CUTOUT, mFrame=[100000,0][1440,3200], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_BOTTOM_DISPLAY_CUTOUT, mFrame=[0,100000][1440,3200], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_TOP_TAPPABLE_ELEMENT, mFrame=[0,0][1440,97], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_BOTTOM_TAPPABLE_ELEMENT, mFrame=[0,3020][1440,3200], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_IME, mFrame=[0,0][0,0], mVisibleFrame=[0,2108][1440,3200], mVisible=false, mInsetsRoundedCornerFrame=false} } host=com.example.simpleobdjavatest/com.example.simpleobdjavatest.MainActivity from=android.view.ViewRootImpl$ViewRootHandler.handleMessageImpl:6740
2024-03-21 11:19:40.948 BluetoothConnection      I  OBD Device found: OBDII
2024-03-21 11:19:40.949 BluetoothSocket          I  connect() for device BA0DED_5 called by pid: 31882
2024-03-21 11:19:40.962 BluetoothConnection      I  retry connect
2024-03-21 11:19:40.968 BluetoothConnection      I  retry connect
2024-03-21 11:19:42.963 BluetoothConnection      I  Try OBD-II Connection
2024-03-21 11:19:42.969 BluetoothConnection      I  Try OBD-II Connection
2024-03-21 11:19:42.976 BluetoothConnection      I  OBD Device found: OBDII
2024-03-21 11:19:42.977 BluetoothSocket          I  connect() for device BA0DED_5 called by pid: 31882
2024-03-21 11:19:42.977 BluetoothConnection      I  OBD Device found: OBDII
2024-03-21 11:19:42.978 BluetoothSocket          I  connect() for device BA0DED_5 called by pid: 31882
2024-03-21 11:19:42.989 BluetoothConnection      I  retry connect
2024-03-21 11:19:42.992 BluetoothConnection      I  retry connect
2024-03-21 11:19:44.990 BluetoothConnection      I  Try OBD-II Connection
2024-03-21 11:19:44.992 BluetoothConnection      I  Try OBD-II Connection
2024-03-21 11:19:45.005 BluetoothConnection      I  OBD Device found: OBDII
2024-03-21 11:19:45.006 BluetoothConnection      I  OBD Device found: OBDII
2024-03-21 11:19:45.006 BluetoothSocket          I  connect() for device BA0DED_5 called by pid: 31882
2024-03-21 11:19:45.007 BluetoothSocket          I  connect() for device BA0DED_5 called by pid: 31882
2024-03-21 11:19:45.023 BluetoothConnection      I  retry connect
2024-03-21 11:19:45.026 BluetoothConnection      I  retry connect
2024-03-21 11:19:45.957 ProfileInstaller         D  Installing profile for com.example.simpleobdjavatest
2024-03-21 11:19:47.024 BluetoothConnection      I  Try OBD-II Connection
2024-03-21 11:19:47.026 BluetoothConnection      I  Try OBD-II Connection
2024-03-21 11:19:47.036 BluetoothConnection      I  OBD Device found: OBDII
2024-03-21 11:19:47.037 BluetoothConnection      I  OBD Device found: OBDII
2024-03-21 11:19:47.038 BluetoothSocket          I  connect() for device BA0DED_5 called by pid: 31882
2024-03-21 11:19:47.038 BluetoothSocket          I  connect() for device BA0DED_5 called by pid: 31882
2024-03-21 11:19:47.055 BluetoothConnection      I  OBD-II connect fail
2024-03-21 11:19:47.058 BluetoothConnection      I  OBD-II connect fail
2024-03-21 11:20:14.238 System                   W  A resource failed to call close. 
2024-03-21 11:20:14.240 BluetoothSocket          D  close() this: android.bluetooth.BluetoothSocket@4aa298, channel: 1, mSocketIS: android.net.LocalSocketImpl$SocketInputStream@6e1baf1, mSocketOS: android.net.LocalSocketImpl$SocketOutputStream@c7836d6, mSocket: android.net.LocalSocket@f68bd57 impl:android.net.LocalSocketImpl@1935044 fd:java.io.FileDescriptor@6c6152d, mSocketState: INIT
2024-03-21 11:20:14.241 BluetoothSocket          D  close() this: android.bluetooth.BluetoothSocket@a98ea62, channel: 1, mSocketIS: android.net.LocalSocketImpl$SocketInputStream@451d7f3, mSocketOS: android.net.LocalSocketImpl$SocketOutputStream@f972cb0, mSocket: android.net.LocalSocket@31bd729 impl:android.net.LocalSocketImpl@11f4aae fd:java.io.FileDescriptor@3a8004f, mSocketState: INIT
2024-03-21 11:20:14.241 BluetoothSocket          D  close() this: android.bluetooth.BluetoothSocket@aba63dc, channel: 1, mSocketIS: android.net.LocalSocketImpl$SocketInputStream@3f1bce5, mSocketOS: android.net.LocalSocketImpl$SocketOutputStream@39963ba, mSocket: android.net.LocalSocket@8e526b impl:android.net.LocalSocketImpl@377e1c8 fd:java.io.FileDescriptor@9864261, mSocketState: INIT
2024-03-21 11:20:14.242 BluetoothSocket          D  close() this: android.bluetooth.BluetoothSocket@e6a0186, channel: 1, mSocketIS: android.net.LocalSocketImpl$SocketInputStream@33daa47, mSocketOS: android.net.LocalSocketImpl$SocketOutputStream@50d5274, mSocket: android.net.LocalSocket@f83a39d impl:android.net.LocalSocketImpl@f54b012 fd:java.io.FileDescriptor@4a0a3e3, mSocketState: INIT
2024-03-21 11:20:14.242 BluetoothSocket          D  close() this: android.bluetooth.BluetoothSocket@ee721e0, channel: 1, mSocketIS: android.net.LocalSocketImpl$SocketInputStream@7fbdc99, mSocketOS: android.net.LocalSocketImpl$SocketOutputStream@ac9bb5e, mSocket: android.net.LocalSocket@7af9b3f impl:android.net.LocalSocketImpl@8cc7c0c fd:java.io.FileDescriptor@a24a955, mSocketState: INIT
2024-03-21 11:20:14.242 BluetoothSocket          D  close() this: android.bluetooth.BluetoothSocket@9f22f6a, channel: 1, mSocketIS: android.net.LocalSocketImpl$SocketInputStream@c8cac5b, mSocketOS: android.net.LocalSocketImpl$SocketOutputStream@dcb4cf8, mSocket: android.net.LocalSocket@d385d1 impl:android.net.LocalSocketImpl@d7bd836 fd:java.io.FileDescriptor@95fb337, mSocketState: INIT
2024-03-21 11:20:14.243 BluetoothSocket          D  close() this: android.bluetooth.BluetoothSocket@9e440a4, channel: 1, mSocketIS: android.net.LocalSocketImpl$SocketInputStream@4b9ae0d, mSocketOS: android.net.LocalSocketImpl$SocketOutputStream@12541c2, mSocket: android.net.LocalSocket@4f24bd3 impl:android.net.LocalSocketImpl@676c310 fd:java.io.FileDescriptor@e601e09, mSocketState: INIT

@tzebrowski
Copy link
Owner

tzebrowski commented Mar 21, 2024

Hi, the reason I had BT errors java.io.IOException: read failed, socket might closed or timeout, read ret: -1 was because of the BT device selection based on the device name OBD, and app connected to the wrong device :(. I reworked that part to connect based on the device address, and now it works on my end.
You might check this commit: tzebrowski/SimpleOBDJavaTest@ce5cf7b

@Timmy5818
Copy link
Author

Timmy5818 commented Mar 22, 2024

Hello, I found that if I modify this line of code in the test() function in OBDBluetoothService.java and replace the Mac address with the correct one, I can connect correctly.

var connection = new BluetoothConnection("AA:BB:CC:11:22:33");

I would like to ask how to achieve this connection function if the Mac addresses are different, but the devices are all called OBDII. This way, the OBD-II device can be automatically connected when the program is started. Another question is how to simply receive the data. Is it possible? Is it defined in the onNext() function in DataCollector.java?
For example, I want to collect engine speed data, how to achieve it?

Thank you!

The following is to directly modify the var connection = new BluetoothConnection("AA:BB:CC:11:22:33"); program to replace Logcat with different Mac addresses. Please confirm that the connection has been established in this way.

  1. Use MacAddress CE:5E:89:74:3D:4C
--------- beginning of main
--------- beginning of system
---------------------------- PROCESS STARTED (9414) for package com.example.simpleobdjavatest ----------------------------
2024-03-22 10:54:59.616 BluetoothSocket          I  connect() for device CE5E89_C called by pid: 9414
2024-03-22 10:55:01.643 BluetoothSocket          D  waitSocketSignal read 20 bytes signal ret: 20
2024-03-22 10:55:01.647 BluetoothSocket          D  waitSocketSignal: sig size: 20, remote addr: CE5E89_4C, channel: 1, status: 0 MaxRxPktSize: 0 MaxTxPktSize: 0
2024-03-22 10:55:01.706 BluetoothSocket          D  write: android.net.LocalSocketImpl$SocketOutputStream@377e1c8 length: 4
2024-03-22 10:55:01.706 BluetoothSocket          D  write out: android.net.LocalSocketImpl$SocketOutputStream@377e1c8 length: 4
2024-03-22 10:55:01.706 BluetoothSocket          D  read in:  android.net.LocalSocketImpl$SocketInputStream@9864261 len: 1
2024-03-22 10:55:01.801 BluetoothSocket          D  read out:  android.net.LocalSocketImpl$SocketInputStream@9864261 ret: 1
  1. Use MacAddress BA:0D:ED:5B:E7:35
2024-03-22 10:46:19.656 ziparchive               W  Unable to open '/data/data/com.example.simpleobdjavatest/code_cache/.overlay/base.apk/classes6.dm': No such file or directory
2024-03-22 10:46:19.657 ziparchive               W  Unable to open '/data/app/~~hrTohXyA6B2yQD5rrY2r5g==/com.example.simpleobdjavatest-OlCCiINNiVJa_U3ebAZlHw==/base.dm': No such file or directory
2024-03-22 10:46:19.657 ziparchive               W  Unable to open '/data/app/~~hrTohXyA6B2yQD5rrY2r5g==/com.example.simpleobdjavatest-OlCCiINNiVJa_U3ebAZlHw==/base.dm': No such file or directory
2024-03-22 10:46:19.946 nativeloader             D  Configuring clns-4 for other apk /data/app/~~hrTohXyA6B2yQD5rrY2r5g==/com.example.simpleobdjavatest-OlCCiINNiVJa_U3ebAZlHw==/base.apk. target_sdk_version=34, uses_libraries=, library_path=/data/app/~~hrTohXyA6B2yQD5rrY2r5g==/com.example.simpleobdjavatest-OlCCiINNiVJa_U3ebAZlHw==/lib/arm64, permitted_path=/data:/mnt/expand:/data/user/0/com.example.simpleobdjavatest
2024-03-22 10:46:19.985 GraphicsEnvironment      V  ANGLE Developer option for 'com.example.simpleobdjavatest' set to: 'default'
2024-03-22 10:46:19.986 GraphicsEnvironment      V  ANGLE GameManagerService for com.example.simpleobdjavatest: false
2024-03-22 10:46:19.986 GraphicsEnvironment      V  App is not on the allowlist for updatable production driver.
2024-03-22 10:46:19.992 NetworkSecurityConfig    D  No Network Security Config specified, using platform default
2024-03-22 10:46:20.043 NetworkSecurityConfig    D  No Network Security Config specified, using platform default
2024-03-22 10:46:20.067 OpenGLRenderer           D  RenderThread::requireGlContext()
2024-03-22 10:46:20.068 AdrenoGLES-0             I  QUALCOMM build                   : 193b2ee, I593c16c433
                                                    Build Date                       : 10/07/21
                                                    OpenGL ES Shader Compiler Version: EV031.32.02.10
                                                    Local Branch                     : Test-lib-SR05432264
                                                    Remote Branch                    : 
                                                    Remote Branch                    : 
                                                    Reconstruct Branch               : 
2024-03-22 10:46:20.068 AdrenoGLES-0             I  Build Config                     : S P 10.0.5 AArch64
2024-03-22 10:46:20.068 AdrenoGLES-0             I  Driver Path                      : /vendor/lib64/egl/libGLESv2_adreno.so
2024-03-22 10:46:20.072 AdrenoGLES-0             I  PFP: 0x016dd093, ME: 0x00000000
2024-03-22 10:46:20.079 OpenGLRenderer           D  RenderThread::setGrContext()
2024-03-22 10:46:20.111 AppCompatDelegate        D  Checking for metadata for AppLocalesMetadataHolderService : Service not found
2024-03-22 10:46:20.172 Compatibil...geReporter  D  Compat change id reported: 210923482; UID 10606; state: ENABLED
2024-03-22 10:46:20.178 mpleobdjavatest          W  Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (unsupported, reflection, allowed)
2024-03-22 10:46:20.188 DecorView                I  [INFO] isPopOver=false config=true
2024-03-22 10:46:20.188 DecorView                I  updateCaptionType: isFloating=false isApplication=true hasWindowDecorCaption=false this=DecorView@423f7ce[]
2024-03-22 10:46:20.188 DecorView                D  setCaptionType = 0, this = DecorView@423f7ce[]
2024-03-22 10:46:20.190 DecorView                I  getCurrentDensityDpi: from real metrics. densityDpi=600 msg=resources_loaded
2024-03-22 10:46:20.190 DecorView                I  setWindowBackground: isPopOver=false color=ffffffff d=android.graphics.drawable.ColorDrawable@60aa5fc
2024-03-22 10:46:20.209 mpleobdjavatest          W  Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (unsupported, reflection, allowed)
2024-03-22 10:46:20.223 MainActivity             I  Start OBD-II BluetoothService
2024-03-22 10:46:20.238 MSHandlerLifeCycle       I  check: return. pkg=com.example.simpleobdjavatest parent=null callers=com.android.internal.policy.DecorView.setVisibility:4412 android.app.ActivityThread.handleResumeActivity:5476 android.app.servertransaction.ResumeActivityItem.execute:54 android.app.servertransaction.ActivityTransactionItem.execute:45 android.app.servertransaction.TransactionExecutor.executeLifecycleState:176 
2024-03-22 10:46:20.238 MSHandlerLifeCycle       I  removeMultiSplitHandler: no exist. decor=DecorView@423f7ce[]
2024-03-22 10:46:20.250 NativeCust...ncyManager  D  [NativeCFMS] BpCustomFrequencyManager::BpCustomFrequencyManager()
2024-03-22 10:46:20.265 InsetsController         D  onStateChanged: InsetsState: {mDisplayFrame=Rect(0, 0 - 1440, 3200), mDisplayCutout=DisplayCutout{insets=Rect(0, 97 - 0, 0) waterfall=Insets{left=0, top=0, right=0, bottom=0} boundingRect={Bounds=[Rect(0, 0 - 0, 0), Rect(683, 0 - 757, 97), Rect(0, 0 - 0, 0), Rect(0, 0 - 0, 0)]} cutoutPathParserInfo={CutoutPathParserInfo{displayWidth=1440 displayHeight=3200 physicalDisplayWidth=1440 physicalDisplayHeight=3200 density={3.75} cutoutSpec={M 0,0 H -9.866666666666667 V 25.86666666666667 H 9.866666666666667 V 0 H 0 Z @dp} rotation={0} scale={1.0} physicalPixelDisplaySizeRatio={1.0}}}}, mRoundedCorners=RoundedCorners{[RoundedCorner{position=TopLeft, radius=120, center=Point(120, 120)}, RoundedCorner{position=TopRight, radius=120, center=Point(1320, 120)}, RoundedCorner{position=BottomRight, radius=120, center=Point(1320, 3080)}, RoundedCorner{position=BottomLeft, radius=120, center=Point(120, 3080)}]}  mRoundedCornerFrame=Rect(0, 0 - 1440, 3200), mPrivacyIndicatorBounds=PrivacyIndicatorBounds {static bounds=Rect(1275, 0 - 1440, 97) rotation=0}, mSources= { InsetsSource: {mType=ITYPE_STATUS_BAR, mFrame=[0,0][1440,97], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_NAVIGATION_BAR, mFrame=[0,3020][1440,3200], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_LEFT_GESTURES, mFrame=[0,0][0,3200], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_RIGHT_GESTURES, mFrame=[1440,0][1440,3200], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_TOP_MANDATORY_GESTURES, mFrame=[0,0][1440,142], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_BOTTOM_MANDATORY_GESTURES, mFrame=[0,3020][1440,3200], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_LEFT_DISPLAY_CUTOUT, mFrame=[0,0][-100000,3200], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_TOP_DISPLAY_CUTOUT, mFrame=[0,0][1440,97], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_RIGHT_DISPLAY_CUTOUT, mFrame=[100000,0][1440,3200], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_BOTTOM_DISPLAY_CUTOUT, mFrame=[0,100000][1440,3200], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_TOP_TAPPABLE_ELEMENT, mFrame=[0,0][1440,97], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_BOTTOM_TAPPABLE_ELEMENT, mFrame=[0,3020][1440,3200], mVisible=true, mInsetsRoundedCornerFrame=false} } host=com.example.simpleobdjavatest/com.example.simpleobdjavatest.MainActivity from=android.view.ViewRootImpl.setView:1732
2024-03-22 10:46:20.273 ViewRootIm...nActivity]  I  setView = com.android.internal.policy.DecorView@423f7ce TM=true
2024-03-22 10:46:20.274 MSHandlerLifeCycle       I  removeMultiSplitHandler: no exist. decor=DecorView@423f7ce[MainActivity]
2024-03-22 10:46:20.292 ViewRootIm...nActivity]  I  performTraversals params={(0,0)(fillxfill) sim={adjust=pan forwardNavigation} ty=BASE_APPLICATION wanim=0x1030309
                                                      fl=81810100
                                                      pfl=12020040
                                                      bhv=DEFAULT
                                                      fitSides= naviIconColor=0
                                                      sfl=100000}
2024-03-22 10:46:20.294 ViewRootIm...nActivity]  I  performTraversals mFirst=true windowShouldResize=true viewVisibilityChanged=false mForceNextWindowRelayout=false params={(0,0)(fillxfill) sim={adjust=pan forwardNavigation} ty=BASE_APPLICATION wanim=0x1030309
                                                      fl=81810100
                                                      pfl=12020040
                                                      bhv=DEFAULT
                                                      fitSides= naviIconColor=0
                                                      sfl=100000}
2024-03-22 10:46:20.311 ViewRootIm...nActivity]  I  updateBlastSurfaceIfNeeded mBlastBufferQueue=null isSameSurfaceControl=false
2024-03-22 10:46:20.311 BufferQueueProducer      E  Unable to open libpenguin.so: dlopen failed: library "libpenguin.so" not found.
2024-03-22 10:46:20.312 BLASTBufferQueue         I  new BLASTBufferQueue, mName= ViewRootImpl@48311ad[MainActivity] mNativeObject= 0xb40000772d1346b0 sc.mNativeObject= 0xb4000076bd1499d0 caller= android.view.ViewRootImpl.updateBlastSurfaceIfNeeded:2909 android.view.ViewRootImpl.relayoutWindow:9847 android.view.ViewRootImpl.performTraversals:3884 android.view.ViewRootImpl.doTraversal:3116 android.view.ViewRootImpl$TraversalRunnable.run:10885 android.view.Choreographer$CallbackRecord.run:1301 android.view.Choreographer$CallbackRecord.run:1309 android.view.Choreographer.doCallbacks:923 android.view.Choreographer.doFrame:852 android.view.Choreographer$FrameDisplayEventReceiver.run:1283 
2024-03-22 10:46:20.312 BLASTBufferQueue         I  update, w= 1440 h= 3200 mName = ViewRootImpl@48311ad[MainActivity] mNativeObject= 0xb40000772d1346b0 sc.mNativeObject= 0xb4000076bd1499d0 format= -1 caller= android.graphics.BLASTBufferQueue.<init>:84 android.view.ViewRootImpl.updateBlastSurfaceIfNeeded:2909 android.view.ViewRootImpl.relayoutWindow:9847 android.view.ViewRootImpl.performTraversals:3884 android.view.ViewRootImpl.doTraversal:3116 android.view.ViewRootImpl$TraversalRunnable.run:10885 
2024-03-22 10:46:20.313 ViewRootIm...nActivity]  I  Relayout returned: old=(0,0,1440,3200) new=(0,0,1440,3200) req=(1440,3200)0 dur=17 res=0x3 s={true 0xb4000077bd125220} ch=true seqId=0
2024-03-22 10:46:20.314 ViewRootIm...nActivity]  I  mThreadedRenderer.initialize() mSurface={isValid=true 0xb4000077bd125220} hwInitialized=true
2024-03-22 10:46:20.316 OpenGLRenderer           D  eglCreateWindowSurface
2024-03-22 10:46:20.319 ViewRootIm...nActivity]  I  reportNextDraw android.view.ViewRootImpl.performTraversals:4438 android.view.ViewRootImpl.doTraversal:3116 android.view.ViewRootImpl$TraversalRunnable.run:10885 android.view.Choreographer$CallbackRecord.run:1301 android.view.Choreographer$CallbackRecord.run:1309 
2024-03-22 10:46:20.320 ViewRootIm...nActivity]  I  Setup new sync id=0
2024-03-22 10:46:20.320 ViewRootIm...nActivity]  I  Setting syncFrameCallback
2024-03-22 10:46:20.320 ViewRootIm...nActivity]  I  registerCallbacksForSync syncBuffer=false
2024-03-22 10:46:20.322 ViewRootIm...nActivity]  I  Received frameDrawingCallback syncResult=0 frameNum=1.
2024-03-22 10:46:20.323 ViewRootIm...nActivity]  I  Setting up sync and frameCommitCallback
2024-03-22 10:46:20.348 BLASTBufferQueue         I  [ViewRootImpl@48311ad[MainActivity]#0](f:0,a:0) onFrameAvailable the first frame is available
2024-03-22 10:46:20.349 ViewRootIm...nActivity]  I  Received frameCommittedCallback lastAttemptedDrawFrameNum=1 didProduceBuffer=true
2024-03-22 10:46:20.350 OpenGLRenderer           D  CFMS:: SetUp Pid : 5443    Tid : 5471
2024-03-22 10:46:20.354 Parcel                   W  Expecting binder but got null!
2024-03-22 10:46:20.355 ViewRootIm...nActivity]  I  onSyncComplete
2024-03-22 10:46:20.355 ViewRootIm...nActivity]  I  setupSync seqId=0 mSyncId=0 fn=1 caller=android.view.ViewRootImpl$$ExternalSyntheticLambda11.accept:6 android.window.SurfaceSyncer.lambda$setupSync$1$android-window-SurfaceSyncer:128 android.window.SurfaceSyncer$$ExternalSyntheticLambda1.accept:8 android.window.SurfaceSyncer$SyncSet.checkIfSyncIsComplete:382 android.window.SurfaceSyncer$SyncSet.markSyncReady:359 android.window.SurfaceSyncer.markSyncReady:151 android.view.ViewRootImpl.performTraversals:4503 
2024-03-22 10:46:20.355 ViewRootIm...nActivity]  I  reportDrawFinished seqId=0 mSyncId=-1 fn=1 mSurfaceChangedTransaction=0xb4000076ed122330
2024-03-22 10:46:20.359 BluetoothConnection      I  Created instance of BluetoothConnection with device: BA:0D:ED:5B:E7:35
2024-03-22 10:46:20.377 System.err               W  [main] INFO org.obd.metrics.api.DefaultWorkflow - Creating an instance of the Workflow task.
2024-03-22 10:46:20.378 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~hrTohXyA6B2yQD5rrY2r5g==/com.example.simpleobdjavatest-OlCCiINNiVJa_U3ebAZlHw==/base.apk!/giulia_2.0_gme.json. Files exists=false
2024-03-22 10:46:20.390 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~hrTohXyA6B2yQD5rrY2r5g==/com.example.simpleobdjavatest-OlCCiINNiVJa_U3ebAZlHw==/base.apk!/extra.json. Files exists=false
2024-03-22 10:46:20.390 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~hrTohXyA6B2yQD5rrY2r5g==/com.example.simpleobdjavatest-OlCCiINNiVJa_U3ebAZlHw==/base.apk!/mode01.json. Files exists=false
2024-03-22 10:46:20.502 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 49 PID definitions from stream. Operation took: 68ms
2024-03-22 10:46:20.503 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 1 PID definitions from stream. Operation took: 1ms
2024-03-22 10:46:20.510 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 23 PID definitions from stream. Operation took: 7ms
2024-03-22 10:46:20.510 System.err               W  [main] INFO org.obd.metrics.api.DefaultWorkflow - Loading resources files took: 133ms.
2024-03-22 10:46:20.513 System.err               W  [main] INFO org.obd.metrics.api.DefaultWorkflow - Submitting the Workflow task.
2024-03-22 10:46:20.514 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Starting the Workflow task.
2024-03-22 10:46:20.515 System.err               W   Protocol: CAN_29, headers: [Init.Header(header=DA10F1, mode=22), Init.Header(header=DB33F1, mode=01)],DBEUG: false,selected PID's: [7005, 7006, 7007, 7008], adjustements: Adjustments(debugEnabled=false, stNxx=org.obd.metrics.api.model.STNxxExtensions@d029e87, collectRawConnectorResponseEnabled=false, vehicleMetadataReadingEnabled=true, vehicleCapabilitiesReadingEnabled=true, vehicleDtcReadingEnabled=false, vehicleDtcCleaningEnabled=false, generatorPolicy=GeneratorPolicy(enabled=false, increment=5.0), adaptiveTimeoutPolicy=org.obd.metrics.api.model.AdaptiveTimeoutPolicy@9d4d1b4, producerPolicy=ProducerPolicy(priorityQueueEnabled=true, pidPriorities={}, conditionalSleepSliceSize=10, conditionalSleepEnabled=true), cachePolicy=org.obd.metrics.api.model.CachePolicy@cba51dd, errorsPolicy=org.obd.metrics.api.model.ErrorsPolicy@e346152, batchPolicy=org.obd.metrics.api.model.BatchPolicy@9609c23)
2024-03-22 10:46:20.515 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Mapping for a PID=[7005:1937] is: mode=22, header=DA10F1, hasOverrides=false
2024-03-22 10:46:20.516 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Mapping for a PID=[7006:181F] is: mode=22, header=DA10F1, hasOverrides=false
2024-03-22 10:46:20.516 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Mapping for a PID=[7007:1924] is: mode=22, header=DA10F1, hasOverrides=false
2024-03-22 10:46:20.516 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Mapping for a PID=[7008:1000] is: mode=22, header=DA10F1, hasOverrides=false
2024-03-22 10:46:20.521 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.codec.formula.backend.ScriptEngineBackend - Creating formula evaluator for FormulaEvaluatorConfig(scriptEngine=JavaScript, debug=false)
2024-03-22 10:46:20.521 mpleobdjavatest          W  Accessing hidden field Lsun/security/util/SecurityConstants;->GET_CLASSLOADER_PERMISSION:Ljava/lang/RuntimePermission; (unsupported, linking, allowed)
2024-03-22 10:46:20.528 ViewRootIm...nActivity]  I  MSG_WINDOW_FOCUS_CHANGED 1 0
2024-03-22 10:46:20.528 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.buffer.DefaultCommandsBuffer - Invaldiating 0 commands in the queue.
2024-03-22 10:46:20.529 ViewRootIm...nActivity]  I  mThreadedRenderer.initializeIfNeeded()#2 mSurface={isValid=true 0xb4000077bd125220}
2024-03-22 10:46:20.529 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Setting delay after ATZ command: 0
2024-03-22 10:46:20.530 InputMethodManager       D  startInputInner - Id : 0
2024-03-22 10:46:20.530 InputMethodManager       I  startInputInner - mService.startInputOrWindowGainedFocus
2024-03-22 10:46:20.530 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.PIDsGroupHandler - Group: METADATA is enabled. Adding METADATA group commands to the queue.
2024-03-22 10:46:20.535 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.CANMessageHeaderManager - Found CAN header=DA10F1 for mode=22
2024-03-22 10:46:20.536 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.CANMessageHeaderManager - Found CAN header=DB33F1 for mode=01
2024-03-22 10:46:20.536 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.CANMessageHeaderManager - Determined single mode=false, available modes=[22, AT, 09]
2024-03-22 10:46:20.537 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.PIDsGroupHandler - Group: CAPABILITES is enabled. Adding CAPABILITES group commands to the queue.
2024-03-22 10:46:20.540 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.CANMessageHeaderManager - Found CAN header=DA10F1 for mode=22
2024-03-22 10:46:20.540 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.CANMessageHeaderManager - Found CAN header=DB33F1 for mode=01
2024-03-22 10:46:20.540 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.CANMessageHeaderManager - Determined single mode=true, available modes=[01]
2024-03-22 10:46:20.541 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.CANMessageHeaderManager - Injecting CAN message header=DB33F1 for the mode to=01
2024-03-22 10:46:20.543 InputMethodManager       D  startInputInner - Id : 0
2024-03-22 10:46:20.544 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.AdaptiveTimeout - Timeout: 166ms for expected command frequency: 6, adaptive timing enabled: true, check interval: 5000
2024-03-22 10:46:20.544 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.CANMessageHeaderManager - Found CAN header=DA10F1 for mode=22
2024-03-22 10:46:20.544 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.CANMessageHeaderManager - Found CAN header=DB33F1 for mode=01
2024-03-22 10:46:20.554 InsetsController         D  onStateChanged: InsetsState: {mDisplayFrame=Rect(0, 0 - 1440, 3200), mDisplayCutout=DisplayCutout{insets=Rect(0, 97 - 0, 0) waterfall=Insets{left=0, top=0, right=0, bottom=0} boundingRect={Bounds=[Rect(0, 0 - 0, 0), Rect(683, 0 - 757, 97), Rect(0, 0 - 0, 0), Rect(0, 0 - 0, 0)]} cutoutPathParserInfo={CutoutPathParserInfo{displayWidth=1440 displayHeight=3200 physicalDisplayWidth=1440 physicalDisplayHeight=3200 density={3.75} cutoutSpec={M 0,0 H -9.866666666666667 V 25.86666666666667 H 9.866666666666667 V 0 H 0 Z @dp} rotation={0} scale={1.0} physicalPixelDisplaySizeRatio={1.0}}}}, mRoundedCorners=RoundedCorners{[RoundedCorner{position=TopLeft, radius=120, center=Point(120, 120)}, RoundedCorner{position=TopRight, radius=120, center=Point(1320, 120)}, RoundedCorner{position=BottomRight, radius=120, center=Point(1320, 3080)}, RoundedCorner{position=BottomLeft, radius=120, center=Point(120, 3080)}]}  mRoundedCornerFrame=Rect(0, 0 - 1440, 3200), mPrivacyIndicatorBounds=PrivacyIndicatorBounds {static bounds=Rect(1275, 0 - 1440, 97) rotation=0}, mSources= { InsetsSource: {mType=ITYPE_STATUS_BAR, mFrame=[0,0][1440,97], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_NAVIGATION_BAR, mFrame=[0,3020][1440,3200], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_LEFT_GESTURES, mFrame=[0,0][0,3200], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_RIGHT_GESTURES, mFrame=[1440,0][1440,3200], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_TOP_MANDATORY_GESTURES, mFrame=[0,0][1440,142], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_BOTTOM_MANDATORY_GESTURES, mFrame=[0,3020][1440,3200], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_LEFT_DISPLAY_CUTOUT, mFrame=[0,0][-100000,3200], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_TOP_DISPLAY_CUTOUT, mFrame=[0,0][1440,97], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_RIGHT_DISPLAY_CUTOUT, mFrame=[100000,0][1440,3200], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_BOTTOM_DISPLAY_CUTOUT, mFrame=[0,100000][1440,3200], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_TOP_TAPPABLE_ELEMENT, mFrame=[0,0][1440,97], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_BOTTOM_TAPPABLE_ELEMENT, mFrame=[0,3020][1440,3200], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_IME, mFrame=[0,0][0,0], mVisibleFrame=[0,2268][1440,3200], mVisible=false, mInsetsRoundedCornerFrame=false} } host=com.example.simpleobdjavatest/com.example.simpleobdjavatest.MainActivity from=android.view.ViewRootImpl$ViewRootHandler.handleMessageImpl:6740
2024-03-22 10:46:20.556 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.EventsPublishlisher - Created fallback map: {org.obd.metrics.diagnostic.DefaultDiagnostics=org.obd.metrics.api.model.ObdMetric, org.obd.metrics.alert.DefaultAlertManager=org.obd.metrics.api.model.Reply, com.example.simpleobdjavatest.DataCollector=org.obd.metrics.api.model.Reply} for event publisher
2024-03-22 10:46:20.564 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.api.ConnectionManager
2024-03-22 10:46:20.574 BluetoothAdapter         I  BluetoothAdapter() : com.example.simpleobdjavatest
2024-03-22 10:46:20.579 BluetoothConnection      I  OBD Device found: OBDII
2024-03-22 10:46:20.580 BluetoothSocket          I  connect() for device BA0DED_5 called by pid: 5443
2024-03-22 10:46:21.003 BluetoothSocket          D  waitSocketSignal read 20 bytes signal ret: 20
2024-03-22 10:46:21.010 BluetoothSocket          D  waitSocketSignal: sig size: 20, remote addr: BA0DED_35, channel: 2, status: 0 MaxRxPktSize: 0 MaxTxPktSize: 0
2024-03-22 10:46:21.023 BluetoothConnection      E  Successfully connected to the adapter: BA:0D:ED:5B:E7:35
2024-03-22 10:46:21.026 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.pid.PidDefinitionRegistry
2024-03-22 10:46:21.027 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.codec.CodecRegistry
2024-03-22 10:46:21.028 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.api.CommandProducer
2024-03-22 10:46:21.029 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.buffer.decoder.ConnectorResponseBuffer
2024-03-22 10:46:21.029 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.api.model.Lifecycle.Subscription
2024-03-22 10:46:21.030 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.api.EventsPublishlisher
2024-03-22 10:46:21.030 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.buffer.CommandsBuffer
2024-03-22 10:46:21.030 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.transport.Connector
2024-03-22 10:46:21.031 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.CommandLoop - Starting command executor thread..
2024-03-22 10:46:21.042 System.err               W  [pool-4-thread-2] INFO org.obd.metrics.api.CommandProducer - Starting command producer thread. Priorities: {0=0, 1=5, 2=15, 3=35, 4=50, 5=100, 6=200, 7=500, 8=1000, 9=5000, 10=10000} 
2024-03-22 10:46:21.042 System.err               W  [pool-4-thread-2] INFO org.obd.metrics.api.AdaptiveTimeout - Scheduling adaptive timeout task. Fixed rate: 5000
2024-03-22 10:46:21.073 BluetoothSocket          D  write: android.net.LocalSocketImpl$SocketOutputStream@377e1c8 length: 4
2024-03-22 10:46:21.073 BluetoothSocket          D  write out: android.net.LocalSocketImpl$SocketOutputStream@377e1c8 length: 4
2024-03-22 10:46:21.073 BluetoothSocket          D  read in:  android.net.LocalSocketImpl$SocketInputStream@9864261 len: 1
2024-03-22 10:46:21.102 BluetoothSocket          D  read out:  android.net.LocalSocketImpl$SocketInputStream@9864261 ret: 1
2024-03-22 10:46:21.103 BluetoothSocket          D  read in:  android.net.LocalSocketImpl$SocketInputStream@9864261 len: 1
2024-03-22 10:46:21.103 BluetoothSocket          D  read out:  android.net.LocalSocketImpl$SocketInputStream@9864261 ret: 1
2024-03-22 10:46:21.103 BluetoothSocket          D  read in:  android.net.LocalSocketImpl$SocketInputStream@9864261 len: 1
2024-03-22 10:46:21.105 BluetoothSocket          D  read out:  android.net.LocalSocketImpl$SocketInputStream@9864261 ret: 1
2024-03-22 10:46:21.105 BluetoothSocket          D  read in:  android.net.LocalSocketImpl$SocketInputStream@9864261 len: 1
2024-03-22 10:46:21.105 BluetoothSocket          D  read out:  android.net.LocalSocketImpl$SocketInputStream@9864261 ret: 1
2024-03-22 10:46:21.105 BluetoothSocket          D  read in:  android.net.LocalSocketImpl$SocketInputStream@9864261 len: 1
2024-03-22 10:46:21.105 BluetoothSocket          D  read out:  android.net.LocalSocketImpl$SocketInputStream@9864261 ret: 1
2024-03-22 10:46:21.105 Receive data: {}         I  Reply [com=[query=ATD]]

@tzebrowski
Copy link
Owner

I would like to ask how to achieve this connection function if the Mac addresses are different, but the devices are all called OBDII. This way, the OBD-II device can be automatically connected when the program is started.

Correct, mac address need to be changed and refer to the device u are using. Somewhere in the application you need to have mapping between deviceName and macAddress, probably you can use some map for this

var deviceMapping = new HashMap<String,String>();
deviceMapping .put("OBD-1","AA:BB:CC:11:22:33")
deviceMapping .put("OBD-2","CE:5E:89:74:3D:4C")
var connection = new BluetoothConnection(deviceMapping .get(OBD-1"));

Another question is how to simply receive the data. Is it possible? Is it defined in the onNext() function in DataCollector.java?
For example, I want to collect engine speed data, how to achieve it?

Correct, DataCollector.onNext is the place where u receive the metrics.
If you want to receive the engine speed u need to query engine-speed PID.

U can achieve this by following code (https://github.com/tzebrowski/SimpleOBDJavaTest/blob/main/app/src/main/java/com/example/simpleobdjavatest/OBDBluetoothService.java#L146)

        var engineSpeedPID = 13L; //https://github.com/tzebrowski/ObdMetrics/blob/main/src/main/resources/mode01.json#L192
        var query = Query.builder().pid(engineSpeedPID).build();

Btw, PIDs like 7005l, 7006l, 7007l are specific for Alfa Romeo, which vehicle you want to test against ?

@Timmy5818
Copy link
Author

Timmy5818 commented Mar 25, 2024

Hello
1.If you want to display data from DataCollector.onNext, how do you retrieve indicators and write the correct program syntax? I am currently using the following syntax but there is no response. I would like to ask which part needs to be modified?

    @Override
    public void onNext(Reply<?> reply) {
        Log.i("Receive data: {}", reply.toString());
        data.put(reply.getCommand(), reply);

        if (reply instanceof ObdMetric) {
            metrics.put(((ObdMetric) reply).getCommand().getPid(), (ObdMetric) reply);
        }

        if (reply instanceof ObdMetric) {
            ObdMetric obdMetric = (ObdMetric) reply;
            Log.e("PID: ", obdMetric.getCommand().getPid().getId() + ", Value: " + obdMetric.getValue());
            metrics.put(obdMetric.getCommand().getPid(), obdMetric);
            
            if (obdMetric.getCommand().getPid().getId().equals("0x0C")) {
                double rpm = obdMetric.getValue().doubleValue();
                
                Log.i("Vehicle RPM: ", String.valueOf(rpm));
                
            }
        }
    }

2.If I only need to send the engine speed, can I define these two lines in the test() function in OBDBluetoothService.java to display them in DataCollector.onNext?

        var engineSpeedPID = 13L; //https://github.com/tzebrowski/ObdMetrics/blob/main/src/main/resources/mode01.json#L192
        var query = Query.builder().pid(engineSpeedPID).build();

3.So if I want to test multiple data, do I need to write multiple PIDs in the program here?

4.And when querying the vehicle PID, does it directly display the PID of each item in Service 01 on Wikipedia, or can it only be defined from the file you provided?

In addition, the car model I want to test is applicable to all car series. I want to make a universal OBD-II connection application that can detect error codes and return various data, etc.
Thank you~

@tzebrowski
Copy link
Owner

if (obdMetric.getCommand().getPid().getId().equals("0x0C"))

0x0C is not the correct PID id. Please have look here: https://github.com/tzebrowski/ObdMetrics/blob/main/src/main/resources/mode01.json to check mapping.

3.So if I want to test multiple data, do I need to write multiple PIDs in the program here?

You need to query multiple PID's, e.g:

var engineSpeed = 13L;
var coolant= 6L;
var query = Query.builder().pid(engineSpeed).pid(coolant).build();

And when querying the vehicle PID, does it directly display the PID of each item in Service 01 on Wikipedia, or can it only be defined from the

You can query just these PIDs which are provided by configuration e.q:

  final Pids pids = Pids
                .builder()
                resource(Objects.requireNonNull(Thread.currentThread().getContextClassLoader()).getResource("giulia_2.0_gme.json"))
                .resource(Objects.requireNonNull(Thread.currentThread().getContextClassLoader()).getResource("extra.json"))
                .resource(Objects.requireNonNull(Thread.currentThread().getContextClassLoader()).getResource("mode01.json"))
                .build();

Files likes mode01.json , giulia_2.0_gme.json provides specific PIDs configuration, and you cannot query something which does not exists within these files.

@Timmy5818
Copy link
Author

Timmy5818 commented Mar 26, 2024

Hello, the program here is modified to look like the file mode01.json, giulia_2.0_gme.json provides specific PIDs configuration, but after I run the following program, these data are not displayed. Can I determine what the problem is?
If the code written below is incorrect, can you provide an example of writing it, such as obtaining engine speed data?

Logcat:

2024-03-26 15:30:58.055 Compatibil...geReporter  D  Compat change id reported: 171979766; UID 10606; state: ENABLED
2024-03-26 15:30:58.077 ziparchive               W  Unable to open '/data/app/~~bgFkynaPYBhh__YMvwF9eg==/com.example.simpleobdjavatest-JbOU7GQdhQDdB5zVMPUYeg==/base.dm': No such file or directory
2024-03-26 15:30:58.077 ziparchive               W  Unable to open '/data/app/~~bgFkynaPYBhh__YMvwF9eg==/com.example.simpleobdjavatest-JbOU7GQdhQDdB5zVMPUYeg==/base.dm': No such file or directory
2024-03-26 15:30:58.354 nativeloader             D  Configuring clns-4 for other apk /data/app/~~bgFkynaPYBhh__YMvwF9eg==/com.example.simpleobdjavatest-JbOU7GQdhQDdB5zVMPUYeg==/base.apk. target_sdk_version=34, uses_libraries=, library_path=/data/app/~~bgFkynaPYBhh__YMvwF9eg==/com.example.simpleobdjavatest-JbOU7GQdhQDdB5zVMPUYeg==/lib/arm64, permitted_path=/data:/mnt/expand:/data/user/0/com.example.simpleobdjavatest
2024-03-26 15:30:58.394 GraphicsEnvironment      V  ANGLE Developer option for 'com.example.simpleobdjavatest' set to: 'default'
2024-03-26 15:30:58.394 GraphicsEnvironment      V  ANGLE GameManagerService for com.example.simpleobdjavatest: false
2024-03-26 15:30:58.394 GraphicsEnvironment      V  App is not on the allowlist for updatable production driver.
2024-03-26 15:30:58.398 NetworkSecurityConfig    D  No Network Security Config specified, using platform default
2024-03-26 15:30:58.449 NetworkSecurityConfig    D  No Network Security Config specified, using platform default
2024-03-26 15:30:58.475 OpenGLRenderer           D  RenderThread::requireGlContext()
2024-03-26 15:30:58.475 AdrenoGLES-0             I  QUALCOMM build                   : 193b2ee, I593c16c433
                                                    Build Date                       : 10/07/21
                                                    OpenGL ES Shader Compiler Version: EV031.32.02.10
                                                    Local Branch                     : Test-lib-SR05432264
                                                    Remote Branch                    : 
                                                    Remote Branch                    : 
                                                    Reconstruct Branch               : 
2024-03-26 15:30:58.475 AdrenoGLES-0             I  Build Config                     : S P 10.0.5 AArch64
2024-03-26 15:30:58.475 AdrenoGLES-0             I  Driver Path                      : /vendor/lib64/egl/libGLESv2_adreno.so
2024-03-26 15:30:58.478 AdrenoGLES-0             I  PFP: 0x016dd093, ME: 0x00000000
2024-03-26 15:30:58.484 OpenGLRenderer           D  RenderThread::setGrContext()
2024-03-26 15:30:58.512 AppCompatDelegate        D  Checking for metadata for AppLocalesMetadataHolderService : Service not found
2024-03-26 15:30:58.572 Compatibil...geReporter  D  Compat change id reported: 210923482; UID 10606; state: ENABLED
2024-03-26 15:30:58.579 mpleobdjavatest          W  Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (unsupported, reflection, allowed)
2024-03-26 15:30:58.588 DecorView                I  [INFO] isPopOver=false config=true
2024-03-26 15:30:58.588 DecorView                I  updateCaptionType: isFloating=false isApplication=true hasWindowDecorCaption=false this=DecorView@423f7ce[]
2024-03-26 15:30:58.588 DecorView                D  setCaptionType = 0, this = DecorView@423f7ce[]
2024-03-26 15:30:58.591 DecorView                I  getCurrentDensityDpi: from real metrics. densityDpi=600 msg=resources_loaded
2024-03-26 15:30:58.591 DecorView                I  setWindowBackground: isPopOver=false color=ffffffff d=android.graphics.drawable.ColorDrawable@60aa5fc
2024-03-26 15:30:58.608 mpleobdjavatest          W  Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (unsupported, reflection, allowed)
2024-03-26 15:30:58.621 MainActivity             I  Start OBD-II BluetoothService
2024-03-26 15:30:58.636 MSHandlerLifeCycle       I  check: return. pkg=com.example.simpleobdjavatest parent=null callers=com.android.internal.policy.DecorView.setVisibility:4412 android.app.ActivityThread.handleResumeActivity:5476 android.app.servertransaction.ResumeActivityItem.execute:54 android.app.servertransaction.ActivityTransactionItem.execute:45 android.app.servertransaction.TransactionExecutor.executeLifecycleState:176 
2024-03-26 15:30:58.636 MSHandlerLifeCycle       I  removeMultiSplitHandler: no exist. decor=DecorView@423f7ce[]
2024-03-26 15:30:58.648 NativeCust...ncyManager  D  [NativeCFMS] BpCustomFrequencyManager::BpCustomFrequencyManager()
2024-03-26 15:30:58.666 InsetsController         D  onStateChanged: InsetsState: {mDisplayFrame=Rect(0, 0 - 1440, 3200), mDisplayCutout=DisplayCutout{insets=Rect(0, 97 - 0, 0) waterfall=Insets{left=0, top=0, right=0, bottom=0} boundingRect={Bounds=[Rect(0, 0 - 0, 0), Rect(683, 0 - 757, 97), Rect(0, 0 - 0, 0), Rect(0, 0 - 0, 0)]} cutoutPathParserInfo={CutoutPathParserInfo{displayWidth=1440 displayHeight=3200 physicalDisplayWidth=1440 physicalDisplayHeight=3200 density={3.75} cutoutSpec={M 0,0 H -9.866666666666667 V 25.86666666666667 H 9.866666666666667 V 0 H 0 Z @dp} rotation={0} scale={1.0} physicalPixelDisplaySizeRatio={1.0}}}}, mRoundedCorners=RoundedCorners{[RoundedCorner{position=TopLeft, radius=120, center=Point(120, 120)}, RoundedCorner{position=TopRight, radius=120, center=Point(1320, 120)}, RoundedCorner{position=BottomRight, radius=120, center=Point(1320, 3080)}, RoundedCorner{position=BottomLeft, radius=120, center=Point(120, 3080)}]}  mRoundedCornerFrame=Rect(0, 0 - 1440, 3200), mPrivacyIndicatorBounds=PrivacyIndicatorBounds {static bounds=Rect(1275, 0 - 1440, 97) rotation=0}, mSources= { InsetsSource: {mType=ITYPE_STATUS_BAR, mFrame=[0,0][1440,97], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_NAVIGATION_BAR, mFrame=[0,3020][1440,3200], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_LEFT_GESTURES, mFrame=[0,0][0,3200], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_RIGHT_GESTURES, mFrame=[1440,0][1440,3200], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_TOP_MANDATORY_GESTURES, mFrame=[0,0][1440,142], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_BOTTOM_MANDATORY_GESTURES, mFrame=[0,3020][1440,3200], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_LEFT_DISPLAY_CUTOUT, mFrame=[0,0][-100000,3200], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_TOP_DISPLAY_CUTOUT, mFrame=[0,0][1440,97], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_RIGHT_DISPLAY_CUTOUT, mFrame=[100000,0][1440,3200], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_BOTTOM_DISPLAY_CUTOUT, mFrame=[0,100000][1440,3200], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_TOP_TAPPABLE_ELEMENT, mFrame=[0,0][1440,97], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_BOTTOM_TAPPABLE_ELEMENT, mFrame=[0,3020][1440,3200], mVisible=true, mInsetsRoundedCornerFrame=false} } host=com.example.simpleobdjavatest/com.example.simpleobdjavatest.MainActivity from=android.view.ViewRootImpl.setView:1732
2024-03-26 15:30:58.678 ViewRootIm...nActivity]  I  setView = com.android.internal.policy.DecorView@423f7ce TM=true
2024-03-26 15:30:58.679 MSHandlerLifeCycle       I  removeMultiSplitHandler: no exist. decor=DecorView@423f7ce[MainActivity]
2024-03-26 15:30:58.697 ViewRootIm...nActivity]  I  performTraversals params={(0,0)(fillxfill) sim={adjust=pan forwardNavigation} ty=BASE_APPLICATION wanim=0x1030309
                                                      fl=81810100
                                                      pfl=12020040
                                                      bhv=DEFAULT
                                                      fitSides= naviIconColor=0
                                                      sfl=100000}
2024-03-26 15:30:58.700 ViewRootIm...nActivity]  I  performTraversals mFirst=true windowShouldResize=true viewVisibilityChanged=false mForceNextWindowRelayout=false params={(0,0)(fillxfill) sim={adjust=pan forwardNavigation} ty=BASE_APPLICATION wanim=0x1030309
                                                      fl=81810100
                                                      pfl=12020040
                                                      bhv=DEFAULT
                                                      fitSides= naviIconColor=0
                                                      sfl=100000}
2024-03-26 15:30:58.722 ViewRootIm...nActivity]  I  updateBlastSurfaceIfNeeded mBlastBufferQueue=null isSameSurfaceControl=false
2024-03-26 15:30:58.722 BufferQueueProducer      E  Unable to open libpenguin.so: dlopen failed: library "libpenguin.so" not found.
2024-03-26 15:30:58.723 BLASTBufferQueue         I  new BLASTBufferQueue, mName= ViewRootImpl@48311ad[MainActivity] mNativeObject= 0xb40000772d1346b0 sc.mNativeObject= 0xb4000076bd147400 caller= android.view.ViewRootImpl.updateBlastSurfaceIfNeeded:2909 android.view.ViewRootImpl.relayoutWindow:9847 android.view.ViewRootImpl.performTraversals:3884 android.view.ViewRootImpl.doTraversal:3116 android.view.ViewRootImpl$TraversalRunnable.run:10885 android.view.Choreographer$CallbackRecord.run:1301 android.view.Choreographer$CallbackRecord.run:1309 android.view.Choreographer.doCallbacks:923 android.view.Choreographer.doFrame:852 android.view.Choreographer$FrameDisplayEventReceiver.run:1283 
2024-03-26 15:30:58.723 BLASTBufferQueue         I  update, w= 1440 h= 3200 mName = ViewRootImpl@48311ad[MainActivity] mNativeObject= 0xb40000772d1346b0 sc.mNativeObject= 0xb4000076bd147400 format= -1 caller= android.graphics.BLASTBufferQueue.<init>:84 android.view.ViewRootImpl.updateBlastSurfaceIfNeeded:2909 android.view.ViewRootImpl.relayoutWindow:9847 android.view.ViewRootImpl.performTraversals:3884 android.view.ViewRootImpl.doTraversal:3116 android.view.ViewRootImpl$TraversalRunnable.run:10885 
2024-03-26 15:30:58.723 ViewRootIm...nActivity]  I  Relayout returned: old=(0,0,1440,3200) new=(0,0,1440,3200) req=(1440,3200)0 dur=22 res=0x3 s={true 0xb4000077bd13a6c0} ch=true seqId=0
2024-03-26 15:30:58.724 ViewRootIm...nActivity]  I  mThreadedRenderer.initialize() mSurface={isValid=true 0xb4000077bd13a6c0} hwInitialized=true
2024-03-26 15:30:58.725 OpenGLRenderer           D  eglCreateWindowSurface
2024-03-26 15:30:58.727 ViewRootIm...nActivity]  I  reportNextDraw android.view.ViewRootImpl.performTraversals:4438 android.view.ViewRootImpl.doTraversal:3116 android.view.ViewRootImpl$TraversalRunnable.run:10885 android.view.Choreographer$CallbackRecord.run:1301 android.view.Choreographer$CallbackRecord.run:1309 
2024-03-26 15:30:58.728 ViewRootIm...nActivity]  I  Setup new sync id=0
2024-03-26 15:30:58.728 ViewRootIm...nActivity]  I  Setting syncFrameCallback
2024-03-26 15:30:58.728 ViewRootIm...nActivity]  I  registerCallbacksForSync syncBuffer=false
2024-03-26 15:30:58.730 ViewRootIm...nActivity]  I  Received frameDrawingCallback syncResult=0 frameNum=1.
2024-03-26 15:30:58.730 ViewRootIm...nActivity]  I  Setting up sync and frameCommitCallback
2024-03-26 15:30:58.739 BLASTBufferQueue         I  [ViewRootImpl@48311ad[MainActivity]#0](f:0,a:0) onFrameAvailable the first frame is available
2024-03-26 15:30:58.740 ViewRootIm...nActivity]  I  Received frameCommittedCallback lastAttemptedDrawFrameNum=1 didProduceBuffer=true
2024-03-26 15:30:58.740 OpenGLRenderer           D  CFMS:: SetUp Pid : 6426    Tid : 6450
2024-03-26 15:30:58.747 Parcel                   W  Expecting binder but got null!
2024-03-26 15:30:58.747 ViewRootIm...nActivity]  I  onSyncComplete
2024-03-26 15:30:58.747 ViewRootIm...nActivity]  I  setupSync seqId=0 mSyncId=0 fn=1 caller=android.view.ViewRootImpl$$ExternalSyntheticLambda11.accept:6 android.window.SurfaceSyncer.lambda$setupSync$1$android-window-SurfaceSyncer:128 android.window.SurfaceSyncer$$ExternalSyntheticLambda1.accept:8 android.window.SurfaceSyncer$SyncSet.checkIfSyncIsComplete:382 android.window.SurfaceSyncer$SyncSet.markSyncReady:359 android.window.SurfaceSyncer.markSyncReady:151 android.view.ViewRootImpl.performTraversals:4503 
2024-03-26 15:30:58.748 ViewRootIm...nActivity]  I  reportDrawFinished seqId=0 mSyncId=-1 fn=1 mSurfaceChangedTransaction=0xb4000076ed139e50
2024-03-26 15:30:58.775 BluetoothAdapter         I  BluetoothAdapter() : com.example.simpleobdjavatest
2024-03-26 15:30:58.776 BluetoothAdapter         I  startDiscovery
2024-03-26 15:30:58.802 ViewRootIm...nActivity]  I  MSG_WINDOW_FOCUS_CHANGED 1 0
2024-03-26 15:30:58.802 ViewRootIm...nActivity]  I  mThreadedRenderer.initializeIfNeeded()#2 mSurface={isValid=true 0xb4000077bd13a6c0}
2024-03-26 15:30:58.803 InputMethodManager       D  startInputInner - Id : 0
2024-03-26 15:30:58.803 InputMethodManager       I  startInputInner - mService.startInputOrWindowGainedFocus
2024-03-26 15:30:58.825 InputMethodManager       D  startInputInner - Id : 0
2024-03-26 15:30:58.837 InsetsController         D  onStateChanged: InsetsState: {mDisplayFrame=Rect(0, 0 - 1440, 3200), mDisplayCutout=DisplayCutout{insets=Rect(0, 97 - 0, 0) waterfall=Insets{left=0, top=0, right=0, bottom=0} boundingRect={Bounds=[Rect(0, 0 - 0, 0), Rect(683, 0 - 757, 97), Rect(0, 0 - 0, 0), Rect(0, 0 - 0, 0)]} cutoutPathParserInfo={CutoutPathParserInfo{displayWidth=1440 displayHeight=3200 physicalDisplayWidth=1440 physicalDisplayHeight=3200 density={3.75} cutoutSpec={M 0,0 H -9.866666666666667 V 25.86666666666667 H 9.866666666666667 V 0 H 0 Z @dp} rotation={0} scale={1.0} physicalPixelDisplaySizeRatio={1.0}}}}, mRoundedCorners=RoundedCorners{[RoundedCorner{position=TopLeft, radius=120, center=Point(120, 120)}, RoundedCorner{position=TopRight, radius=120, center=Point(1320, 120)}, RoundedCorner{position=BottomRight, radius=120, center=Point(1320, 3080)}, RoundedCorner{position=BottomLeft, radius=120, center=Point(120, 3080)}]}  mRoundedCornerFrame=Rect(0, 0 - 1440, 3200), mPrivacyIndicatorBounds=PrivacyIndicatorBounds {static bounds=Rect(1275, 0 - 1440, 97) rotation=0}, mSources= { InsetsSource: {mType=ITYPE_STATUS_BAR, mFrame=[0,0][1440,97], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_NAVIGATION_BAR, mFrame=[0,3020][1440,3200], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_LEFT_GESTURES, mFrame=[0,0][0,3200], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_RIGHT_GESTURES, mFrame=[1440,0][1440,3200], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_TOP_MANDATORY_GESTURES, mFrame=[0,0][1440,142], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_BOTTOM_MANDATORY_GESTURES, mFrame=[0,3020][1440,3200], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_LEFT_DISPLAY_CUTOUT, mFrame=[0,0][-100000,3200], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_TOP_DISPLAY_CUTOUT, mFrame=[0,0][1440,97], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_RIGHT_DISPLAY_CUTOUT, mFrame=[100000,0][1440,3200], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_BOTTOM_DISPLAY_CUTOUT, mFrame=[0,100000][1440,3200], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_TOP_TAPPABLE_ELEMENT, mFrame=[0,0][1440,97], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_BOTTOM_TAPPABLE_ELEMENT, mFrame=[0,3020][1440,3200], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_IME, mFrame=[0,0][0,0], mVisibleFrame=[0,1808][1440,3200], mVisible=false, mInsetsRoundedCornerFrame=false} } host=com.example.simpleobdjavatest/com.example.simpleobdjavatest.MainActivity from=android.view.ViewRootImpl$ViewRootHandler.handleMessageImpl:6740
2024-03-26 15:30:59.255 OBDBluetoothService      E  Mac address:CE:5E:89:74:3D:4C
2024-03-26 15:30:59.255 BluetoothConnection      I  Created instance of BluetoothConnection with device: CE:5E:89:74:3D:4C
2024-03-26 15:30:59.272 System.err               W  [main] INFO org.obd.metrics.api.DefaultWorkflow - Creating an instance of the Workflow task.
2024-03-26 15:30:59.274 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~bgFkynaPYBhh__YMvwF9eg==/com.example.simpleobdjavatest-JbOU7GQdhQDdB5zVMPUYeg==/base.apk!/giulia_2.0_gme.json. Files exists=false
2024-03-26 15:30:59.294 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~bgFkynaPYBhh__YMvwF9eg==/com.example.simpleobdjavatest-JbOU7GQdhQDdB5zVMPUYeg==/base.apk!/extra.json. Files exists=false
2024-03-26 15:30:59.295 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~bgFkynaPYBhh__YMvwF9eg==/com.example.simpleobdjavatest-JbOU7GQdhQDdB5zVMPUYeg==/base.apk!/mode01.json. Files exists=false
2024-03-26 15:30:59.296 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~bgFkynaPYBhh__YMvwF9eg==/com.example.simpleobdjavatest-JbOU7GQdhQDdB5zVMPUYeg==/base.apk!/mode01_2.json. Files exists=false
2024-03-26 15:30:59.415 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 49 PID definitions from stream. Operation took: 88ms
2024-03-26 15:30:59.417 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 1 PID definitions from stream. Operation took: 2ms
2024-03-26 15:30:59.428 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 23 PID definitions from stream. Operation took: 11ms
2024-03-26 15:30:59.441 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 46 PID definitions from stream. Operation took: 13ms
2024-03-26 15:30:59.441 System.err               W  [main] INFO org.obd.metrics.api.DefaultWorkflow - Loading resources files took: 168ms.
2024-03-26 15:30:59.444 System.err               W  [main] INFO org.obd.metrics.api.DefaultWorkflow - Submitting the Workflow task.
2024-03-26 15:30:59.447 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Starting the Workflow task.
2024-03-26 15:30:59.449 System.err               W   Protocol: CAN_29, headers: [Init.Header(header=DA10F1, mode=22), Init.Header(header=DB33F1, mode=01)],DBEUG: false,selected PID's: [13, 6, 5, 14, 67], adjustements: Adjustments(debugEnabled=false, stNxx=org.obd.metrics.api.model.STNxxExtensions@a22b05a, collectRawConnectorResponseEnabled=false, vehicleMetadataReadingEnabled=true, vehicleCapabilitiesReadingEnabled=true, vehicleDtcReadingEnabled=false, vehicleDtcCleaningEnabled=false, generatorPolicy=GeneratorPolicy(enabled=false, increment=5.0), adaptiveTimeoutPolicy=org.obd.metrics.api.model.AdaptiveTimeoutPolicy@21cb28b, producerPolicy=ProducerPolicy(priorityQueueEnabled=true, pidPriorities={}, conditionalSleepSliceSize=10, conditionalSleepEnabled=true), cachePolicy=org.obd.metrics.api.model.CachePolicy@7208f68, errorsPolicy=org.obd.metrics.api.model.ErrorsPolicy@6feef81, batchPolicy=org.obd.metrics.api.model.BatchPolicy@64b7826)
2024-03-26 15:30:59.451 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Mapping for a PID=[13:0C] is: mode=01, header=DB33F1, hasOverrides=false
2024-03-26 15:30:59.453 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Mapping for a PID=[6:05] is: mode=01, header=DB33F1, hasOverrides=false
2024-03-26 15:30:59.454 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Mapping for a PID=[5:04] is: mode=01, header=DB33F1, hasOverrides=false
2024-03-26 15:30:59.456 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Mapping for a PID=[14:0D] is: mode=01, header=DB33F1, hasOverrides=false
2024-03-26 15:30:59.457 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Mapping for a PID=[67:42] is: mode=01, header=DB33F1, hasOverrides=false
2024-03-26 15:30:59.466 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.codec.formula.backend.ScriptEngineBackend - Creating formula evaluator for FormulaEvaluatorConfig(scriptEngine=JavaScript, debug=false)
2024-03-26 15:30:59.466 mpleobdjavatest          W  Accessing hidden field Lsun/security/util/SecurityConstants;->GET_CLASSLOADER_PERMISSION:Ljava/lang/RuntimePermission; (unsupported, linking, allowed)
2024-03-26 15:30:59.479 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.buffer.DefaultCommandsBuffer - Invaldiating 0 commands in the queue.
2024-03-26 15:30:59.480 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Setting delay after ATZ command: 0
2024-03-26 15:30:59.481 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.PIDsGroupHandler - Group: METADATA is enabled. Adding METADATA group commands to the queue.
2024-03-26 15:30:59.490 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.CANMessageHeaderManager - Found CAN header=DA10F1 for mode=22
2024-03-26 15:30:59.490 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.CANMessageHeaderManager - Found CAN header=DB33F1 for mode=01
2024-03-26 15:30:59.490 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.CANMessageHeaderManager - Determined single mode=false, available modes=[22, AT, 09]
2024-03-26 15:30:59.491 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.PIDsGroupHandler - Group: CAPABILITES is enabled. Adding CAPABILITES group commands to the queue.
2024-03-26 15:30:59.496 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.CANMessageHeaderManager - Found CAN header=DA10F1 for mode=22
2024-03-26 15:30:59.496 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.CANMessageHeaderManager - Found CAN header=DB33F1 for mode=01
2024-03-26 15:30:59.497 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.CANMessageHeaderManager - Determined single mode=true, available modes=[01]
2024-03-26 15:30:59.497 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.CANMessageHeaderManager - Injecting CAN message header=DB33F1 for the mode to=01
2024-03-26 15:30:59.501 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.AdaptiveTimeout - Timeout: 166ms for expected command frequency: 6, adaptive timing enabled: true, check interval: 5000
2024-03-26 15:30:59.501 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.CANMessageHeaderManager - Found CAN header=DA10F1 for mode=22
2024-03-26 15:30:59.501 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.CANMessageHeaderManager - Found CAN header=DB33F1 for mode=01
2024-03-26 15:30:59.518 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.EventsPublishlisher - Created fallback map: {org.obd.metrics.diagnostic.DefaultDiagnostics=org.obd.metrics.api.model.ObdMetric, org.obd.metrics.alert.DefaultAlertManager=org.obd.metrics.api.model.Reply, com.example.simpleobdjavatest.DataCollector=org.obd.metrics.api.model.Reply} for event publisher
2024-03-26 15:30:59.527 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.codec.CodecRegistry
2024-03-26 15:30:59.528 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.api.EventsPublishlisher
2024-03-26 15:30:59.528 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.api.ConnectionManager
2024-03-26 15:30:59.538 BluetoothConnection      E  OBD Device found: OBDII
2024-03-26 15:30:59.540 BluetoothSocket          I  connect() for device CE5E89_C called by pid: 6426
2024-03-26 15:31:03.909 ProfileInstaller         D  Installing profile for com.example.simpleobdjavatest
2024-03-26 15:31:04.659 OBDBluetoothService      E  Mac address:CE:5E:89:74:3D:4C
2024-03-26 15:31:04.659 BluetoothConnection      I  Created instance of BluetoothConnection with device: CE:5E:89:74:3D:4C
2024-03-26 15:31:04.677 System.err               W  [main] INFO org.obd.metrics.api.DefaultWorkflow - Creating an instance of the Workflow task.
2024-03-26 15:31:04.678 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~bgFkynaPYBhh__YMvwF9eg==/com.example.simpleobdjavatest-JbOU7GQdhQDdB5zVMPUYeg==/base.apk!/giulia_2.0_gme.json. Files exists=false
2024-03-26 15:31:04.679 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~bgFkynaPYBhh__YMvwF9eg==/com.example.simpleobdjavatest-JbOU7GQdhQDdB5zVMPUYeg==/base.apk!/extra.json. Files exists=false
2024-03-26 15:31:04.680 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~bgFkynaPYBhh__YMvwF9eg==/com.example.simpleobdjavatest-JbOU7GQdhQDdB5zVMPUYeg==/base.apk!/mode01.json. Files exists=false
2024-03-26 15:31:04.681 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~bgFkynaPYBhh__YMvwF9eg==/com.example.simpleobdjavatest-JbOU7GQdhQDdB5zVMPUYeg==/base.apk!/mode01_2.json. Files exists=false
2024-03-26 15:31:04.732 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 49 PID definitions from stream. Operation took: 50ms
2024-03-26 15:31:04.733 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 1 PID definitions from stream. Operation took: 1ms
2024-03-26 15:31:04.739 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 23 PID definitions from stream. Operation took: 6ms
2024-03-26 15:31:04.748 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 46 PID definitions from stream. Operation took: 8ms
2024-03-26 15:31:04.748 System.err               W  [main] INFO org.obd.metrics.api.DefaultWorkflow - Loading resources files took: 71ms.
2024-03-26 15:31:04.749 System.err               W  [main] INFO org.obd.metrics.api.DefaultWorkflow - Submitting the Workflow task.
2024-03-26 15:31:04.749 System.err               W  [main] WARN org.obd.metrics.api.DefaultWorkflow - Workflow task was rejected. There is already running task in the queue
2024-03-26 15:31:15.298 BluetoothSocket          D  waitSocketSignal read 20 bytes signal ret: 20
2024-03-26 15:31:15.302 BluetoothSocket          D  waitSocketSignal: sig size: 20, remote addr: CE5E89_4C, channel: 1, status: 0 MaxRxPktSize: 0 MaxTxPktSize: 0
2024-03-26 15:31:15.316 BluetoothConnection      E  Successfully connected to the adapter: CE:5E:89:74:3D:4C
2024-03-26 15:31:15.317 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.api.CommandProducer
2024-03-26 15:31:15.318 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.pid.PidDefinitionRegistry
2024-03-26 15:31:15.318 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.api.model.Lifecycle.Subscription
2024-03-26 15:31:15.318 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.buffer.decoder.ConnectorResponseBuffer
2024-03-26 15:31:15.319 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.buffer.CommandsBuffer
2024-03-26 15:31:15.323 System.err               W  [pool-4-thread-2] INFO org.obd.metrics.api.CommandProducer - Starting command producer thread. Priorities: {0=0, 1=5, 2=15, 3=35, 4=50, 5=100, 6=200, 7=500, 8=1000, 9=5000, 10=10000} 
2024-03-26 15:31:15.323 System.err               W  [pool-4-thread-2] INFO org.obd.metrics.api.AdaptiveTimeout - Scheduling adaptive timeout task. Fixed rate: 5000
2024-03-26 15:31:15.325 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.CommandLoop - Starting command executor thread..
2024-03-26 15:31:15.345 System                   W  A resource failed to call close. 
2024-03-26 15:31:15.373 BluetoothSocket          D  write: android.net.LocalSocketImpl$SocketOutputStream@c09b80e length: 4
2024-03-26 15:31:15.373 BluetoothSocket          D  write out: android.net.LocalSocketImpl$SocketOutputStream@c09b80e length: 4
2024-03-26 15:31:15.373 BluetoothSocket          D  read in:  android.net.LocalSocketImpl$SocketInputStream@f0bd22f len: 1
2024-03-26 15:31:15.496 System.err               W  [pool-4-thread-2] INFO org.obd.metrics.api.CommandsSuplier - Build target commands list: [[pid=Engine Rpm, query=010C], [pid=Vehicle Speed, query=010D], [pid=Control module voltage, query=0142], [pid=Engine Load
2024-03-26 15:31:15.496 System.err               W  Value, query=0104], [pid=Coolant Temp, query=0105]]
2024-03-26 15:31:15.571 BluetoothSocket          D  read out:  android.net.LocalSocketImpl$SocketInputStream@f0bd22f ret: 1
2024-03-26 15:31:15.571 BluetoothSocket          D  read in:  android.net.LocalSocketImpl$SocketInputStream@f0bd22f len: 1
2024-03-26 15:31:15.571 BluetoothSocket          D  read out:  android.net.LocalSocketImpl$SocketInputStream@f0bd22f ret: 1
2024-03-26 15:31:15.572 BluetoothSocket          D  read in:  android.net.LocalSocketImpl$SocketInputStream@f0bd22f len: 1
2024-03-26 15:31:15.572 BluetoothSocket          D  read out:  android.net.LocalSocketImpl$SocketInputStream@f0bd22f ret: 1
2024-03-26 15:31:15.572 BluetoothSocket          D  read in:  android.net.LocalSocketImpl$SocketInputStream@f0bd22f len: 1
2024-03-26 15:31:15.572 BluetoothSocket          D  read out:  android.net.LocalSocketImpl$SocketInputStream@f0bd22f ret: 1
2024-03-26 15:31:15.573 BluetoothSocket          D  read in:  android.net.LocalSocketImpl$SocketInputStream@f0bd22f len: 1
2024-03-26 15:31:15.573 BluetoothSocket          D  read out:  android.net.LocalSocketImpl$SocketInputStream@f0bd22f ret: 1
2024-03-26 15:31:15.573 BluetoothSocket          D  read in:  android.net.LocalSocketImpl$SocketInputStream@f0bd22f len: 1
2024-03-26 15:31:15.573 BluetoothSocket          D  read out:  android.net.LocalSocketImpl$SocketInputStream@f0bd22f ret: 1
2024-03-26 15:31:15.575 Receive data: {}         E  [65, 84, 68, 13]
2024-03-26 15:31:15.579 BluetoothSocket          D  write: android.net.LocalSocketImpl$SocketOutputStream@c09b80e length: 4
2024-03-26 15:31:15.579 BluetoothSocket          D  write out: android.net.LocalSocketImpl$SocketOutputStream@c09b80e length: 4

I found that if I print out the Receive data, the following information will be displayed, but the program will not read the judgment formula I wrote (such as obtaining vehicle speed data)

2024-03-26 15:45:05.013 Receive data: {}         E  [65, 84, 68, 13]
2024-03-26 15:45:05.957 Receive data: {}         E  [65, 84, 90, 13]
2024-03-26 15:45:06.160 Receive data: {}         E  [65, 84, 76, 48, 13]
2024-03-26 15:45:06.363 Receive data: {}         E  [65, 84, 72, 48, 13]
2024-03-26 15:45:06.565 Receive data: {}         E  [65, 84, 69, 48, 13]
2024-03-26 15:45:06.768 Receive data: {}         E  [65, 84, 80, 80, 32, 50, 67, 83, 86, 32, 48, 49, 13]
2024-03-26 15:45:06.972 Receive data: {}         E  [65, 84, 80, 80, 32, 50, 67, 32, 79, 78, 13]
2024-03-26 15:45:07.110 Receive data: {}         E  [65, 84, 80, 80, 32, 50, 68, 83, 86, 32, 48, 49, 13]
2024-03-26 15:45:07.247 Receive data: {}         E  [65, 84, 80, 80, 32, 50, 68, 32, 79, 78, 13]
2024-03-26 15:45:07.449 Receive data: {}         E  [65, 84, 65, 84, 50, 13]
2024-03-26 15:45:07.587 Receive data: {}         E  [65, 84, 83, 80, 55, 13]
2024-03-26 15:45:07.726 Receive data: {}         E  [65, 84, 83, 72, 68, 65, 49, 48, 70, 49, 13]
2024-03-26 15:45:08.680 Receive data: {}         E  [65, 84, 73, 13]
2024-03-26 15:45:09.567 Receive data: {}         E  [65, 84, 64, 49, 13]
2024-03-26 15:45:11.247 Receive data: {}         E  [65, 84, 68, 80, 13]
2024-03-26 15:45:17.950 Receive data: {}         E  [65, 84, 83, 72, 68, 66, 51, 51, 70, 49, 13]
2024-03-26 15:45:24.654 Receive data: {}         E  [65, 84, 83, 72, 68, 66, 51, 51, 70, 49, 13]

OBDBluetoothService.java:

public void test() throws IOException, InterruptedException, ExecutionException {
        var connection = new BluetoothConnection(obdMacAddress);

        // var connection = new BluetoothConnection("CE:5E:89:74:3D:4C");
        // var connection = new BluetoothConnection("BA:0D:ED:5B:E7:35");
        var collector = new DataCollector();

        final Pids pids = Pids
                .builder()
                .resource(Objects.requireNonNull(Thread.currentThread().getContextClassLoader()).getResource("giulia_2.0_gme.json"))
                .resource(Objects.requireNonNull(Thread.currentThread().getContextClassLoader()).getResource("extra.json"))
                .resource(Objects.requireNonNull(Thread.currentThread().getContextClassLoader()).getResource("mode01.json"))
                .resource(Objects.requireNonNull(Thread.currentThread().getContextClassLoader()).getResource("mode01_2.json"))
                .build();

        int commandFrequency = 6;
        var workflow = Workflow.instance().pids(pids).observer(collector).initialize();

//        var query = Query.builder().pid(7005l).pid(7006l).pid(7007l).pid(7008l).build();

        var calculatedEngineLoad = 5L;
        var coolant= 6L;
        var engineSpeedPID = 13L;
        var speed = 14L;
        var controlModuleVoltage = 67L;
        var query = Query.builder().pid(engineSpeedPID).pid(coolant).pid(calculatedEngineLoad).
                pid(speed).pid(controlModuleVoltage).build();

        var optional = Adjustments
                .builder()
                .vehicleCapabilitiesReadingEnabled(Boolean.TRUE)
                .vehicleMetadataReadingEnabled(Boolean.TRUE)
                .adaptiveTimeoutPolicy(AdaptiveTimeoutPolicy.builder().enabled(Boolean.TRUE).checkInterval(5000).commandFrequency(commandFrequency).build())
                .producerPolicy(ProducerPolicy.builder().priorityQueueEnabled(Boolean.TRUE).build())
                .cachePolicy(CachePolicy.builder().resultCacheEnabled(Boolean.FALSE).build())
                .batchPolicy(
                        BatchPolicy.builder().responseLengthEnabled(Boolean.FALSE).enabled(Boolean.FALSE).build())
                .build();

        var init = Init.builder()
                .delayAfterInit(1000)
                .header(Header.builder().mode("22").header("DA10F1").build())
                .header(Header.builder().mode("01").header("DB33F1").build())
                .protocol(Protocol.CAN_29)
                .sequence(DefaultCommandGroup.INIT).build();

        workflow.start(connection, query, init, optional);
    }

DataCollector.java:

    @Override
    public void onNext(Reply<?> reply) {
        Log.e("Receive data: {}", Arrays.toString(reply.getCommand().getData()));

        ObdMetric obdMetric = (ObdMetric) reply;
        Log.e("DataCollector", String.valueOf(obdMetric));
        if (obdMetric.getCommand().getPid().getId() == 5) {
            Log.e("DataCollector", "Calculated Engine Load: " + obdMetric.getValue());

        } else if (obdMetric.getCommand().getPid().getId() == 6) {
            Log.e("DataCollector", "coolant: " + obdMetric.getValue());

        } else if (obdMetric.getCommand().getPid().getId() == 13) {
            double rpm = obdMetric.getValue().doubleValue();
            Log.e("DataCollector", "Vehicle RPM: " + rpm);

        } else if (obdMetric.getCommand().getPid().getId() == 14) {
            Log.e("DataCollector", "Vehicle Speed: " + obdMetric.getValue());

        } else if (obdMetric.getCommand().getPid().getId() == 67) {
            Log.e("DataCollector", "Control Module Voltage: " + obdMetric.getValue());
        }

        data.put(reply.getCommand(), reply);

//        if (reply instanceof ObdMetric) {
//            metrics.put(((ObdMetric) reply).getCommand().getPid(), (ObdMetric) reply);
//        }

    }

By the way, I modified it so that it will automatically determine the device with the OBD name, and will obtain the Mac address from the device before connecting. Currently, there is no problem connecting the following devices:
Samsung S20+ Android 13
Mi 9T Pro Android 11
Mi 9T Pro Android 10

But realme C51 Android 13 cannot connect normally. What kind of problem could cause this situation?
Note: My current guess is that the processor issue may be different from Qualcomm's.
Logcat:

--------- beginning of system
--------- beginning of main
---------------------------- PROCESS STARTED (4009) for package com.example.simpleobdjavatest ----------------------------
2024-03-25 16:30:26.079 re-initialized>          W  type=1400 audit(0.0:76): avc: granted { execute } for path="/data/data/com.example.simpleobdjavatest/code_cache/startup_agents/08bc8eac-agent.so" dev="dm-40" ino=16883 scontext=u:r:untrusted_app:s0:c209,c256,c512,c768 tcontext=u:object_r:app_data_file:s0:c209,c256,c512,c768 tclass=file app=com.example.simpleobdjavatest
2024-03-25 16:30:26.128 mpleobdjavatest          W  DexFile /data/data/com.example.simpleobdjavatest/code_cache/.studio/instruments-7b9ed48c.jar is in boot class path but is not in a known location
2024-03-25 16:30:26.204 mpleobdjavatest          W  Redefining intrinsic method java.lang.Thread java.lang.Thread.currentThread(). This may cause the unexpected use of the original definition of java.lang.Thread java.lang.Thread.currentThread()in methods that have already been compiled.
2024-03-25 16:30:26.204 mpleobdjavatest          W  Redefining intrinsic method boolean java.lang.Thread.interrupted(). This may cause the unexpected use of the original definition of boolean java.lang.Thread.interrupted()in methods that have already been compiled.
2024-03-25 16:30:26.215 Compatibil...geReporter  D  Compat change id reported: 171979766; UID 10209; state: ENABLED
2024-03-25 16:30:26.265 ziparchive               W  Unable to open '/data/app/~~uGX5pD2-0ApuQvb45JuqQA==/com.example.simpleobdjavatest-O76xFFclY28En9qkptt-iA==/base.dm': No such file or directory
2024-03-25 16:30:26.265 ziparchive               W  Unable to open '/data/app/~~uGX5pD2-0ApuQvb45JuqQA==/com.example.simpleobdjavatest-O76xFFclY28En9qkptt-iA==/base.dm': No such file or directory
2024-03-25 16:30:27.719 nativeloader             D  Configuring classloader-namespace for other apk /data/app/~~uGX5pD2-0ApuQvb45JuqQA==/com.example.simpleobdjavatest-O76xFFclY28En9qkptt-iA==/base.apk. target_sdk_version=34, uses_libraries=, library_path=/data/app/~~uGX5pD2-0ApuQvb45JuqQA==/com.example.simpleobdjavatest-O76xFFclY28En9qkptt-iA==/lib/arm64, permitted_path=/data:/mnt/expand:/data/user/0/com.example.simpleobdjavatest
2024-03-25 16:30:27.723 CheckTime                W  App running slow: Executing application classloader create took 1465ms
2024-03-25 16:30:27.772 GraphicsEnvironment      V  ANGLE Developer option for 'com.example.simpleobdjavatest' set to: 'default'
2024-03-25 16:30:27.775 GraphicsEnvironment      V  ANGLE GameManagerService for com.example.simpleobdjavatest: false
2024-03-25 16:30:27.776 GraphicsEnvironment      V  Neither updatable production driver nor prerelease driver is supported.
2024-03-25 16:30:27.793 NetworkSecurityConfig    D  No Network Security Config specified, using platform default
2024-03-25 16:30:27.794 NetworkSecurityConfig    D  No Network Security Config specified, using platform default
2024-03-25 16:30:28.021 AppCompatDelegate        D  Checking for metadata for AppLocalesMetadataHolderService : Service not found
2024-03-25 16:30:28.322 Compatibil...geReporter  D  Compat change id reported: 210923482; UID 10209; state: ENABLED
2024-03-25 16:30:28.349 mpleobdjavatest          W  Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (unsupported, reflection, allowed)
2024-03-25 16:30:28.447 mpleobdjavatest          W  Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (unsupported, reflection, allowed)
2024-03-25 16:30:28.487 MainActivity             I  Start OBD-II BluetoothService
2024-03-25 16:30:28.580 Choreographer            I  Skipped 44 frames!  The application may be doing too much work on its main thread.
2024-03-25 16:30:28.631 VRI[MainActivity]        D  performTraversals relayoutWindow: maybeSyncSeqId=-1 ,mSyncSeqId=0 ,relayoutResult=3
2024-03-25 16:30:28.699 mali_gralloc             I  register: id=0x2740000007d, importpid=-1
2024-03-25 16:30:28.702 mali_gralloc             I  register: id=0x2740000007e, importpid=-1
2024-03-25 16:30:28.704 mali_gralloc             I  register: id=0x2740000007f, importpid=-1
2024-03-25 16:30:28.709 mali_gralloc             I  register: id=0x27400000080, importpid=-1
2024-03-25 16:30:28.759 Parcel                   W  Expecting binder but got null!
2024-03-25 16:30:28.760 OpenGLRenderer           I  Davey! duration=910ms; Flags=1, FrameTimelineVsyncId=9425, IntendedVsync=38310886172, Vsync=39042072276, InputEventId=0, HandleInputStart=39048243049, AnimationStart=39048250356, PerformTraversalsStart=39048657241, DrawStart=39151557510, FrameDeadline=38327552839, FrameInterval=39047814625, FrameStartTime=16617866, SyncQueued=39154391395, SyncStart=39154540510, IssueDrawCommandsStart=39155726510, SwapBuffers=39201587472, FrameCompleted=39221300933, DequeueBufferDuration=11759731, QueueBufferDuration=2245500, GpuCompleted=39220186548, SwapBuffersCompleted=39221300933, DisplayPresentTime=0, CommandSubmissionCompleted=39201587472, 
2024-03-25 16:30:28.777 BluetoothConnection      I  Created instance of BluetoothConnection with device: CE:5E:89:74:3D:4C
2024-03-25 16:30:28.821 System.err               W  [main] INFO org.obd.metrics.api.DefaultWorkflow - Creating an instance of the Workflow task.
2024-03-25 16:30:28.823 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~uGX5pD2-0ApuQvb45JuqQA==/com.example.simpleobdjavatest-O76xFFclY28En9qkptt-iA==/base.apk!/giulia_2.0_gme.json. Files exists=false
2024-03-25 16:30:28.829 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~uGX5pD2-0ApuQvb45JuqQA==/com.example.simpleobdjavatest-O76xFFclY28En9qkptt-iA==/base.apk!/extra.json. Files exists=false
2024-03-25 16:30:28.829 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~uGX5pD2-0ApuQvb45JuqQA==/com.example.simpleobdjavatest-O76xFFclY28En9qkptt-iA==/base.apk!/mode01.json. Files exists=false
2024-03-25 16:30:29.040 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 49 PID definitions from stream. Operation took: 98ms
2024-03-25 16:30:29.042 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 1 PID definitions from stream. Operation took: 2ms
2024-03-25 16:30:29.050 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 23 PID definitions from stream. Operation took: 8ms
2024-03-25 16:30:29.051 System.err               W  [main] INFO org.obd.metrics.api.DefaultWorkflow - Loading resources files took: 230ms.
2024-03-25 16:30:29.055 System.err               W  [main] INFO org.obd.metrics.api.DefaultWorkflow - Submitting the Workflow task.
2024-03-25 16:30:29.058 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Starting the Workflow task.
2024-03-25 16:30:29.058 System.err               W   Protocol: CAN_29, headers: [Init.Header(header=DA10F1, mode=22), Init.Header(header=DB33F1, mode=01)],DBEUG: false,selected PID's: [13], adjustements: Adjustments(debugEnabled=false, stNxx=org.obd.metrics.api.model.STNxxExtensions@8d606d4, collectRawConnectorResponseEnabled=false, vehicleMetadataReadingEnabled=true, vehicleCapabilitiesReadingEnabled=true, vehicleDtcReadingEnabled=false, vehicleDtcCleaningEnabled=false, generatorPolicy=GeneratorPolicy(enabled=false, increment=5.0), adaptiveTimeoutPolicy=org.obd.metrics.api.model.AdaptiveTimeoutPolicy@52db07d, producerPolicy=ProducerPolicy(priorityQueueEnabled=true, pidPriorities={}, conditionalSleepSliceSize=10, conditionalSleepEnabled=true), cachePolicy=org.obd.metrics.api.model.CachePolicy@de86b72, errorsPolicy=org.obd.metrics.api.model.ErrorsPolicy@8deabc3, batchPolicy=org.obd.metrics.api.model.BatchPolicy@af6bc40)
2024-03-25 16:30:29.059 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Mapping for a PID=[13:0C] is: mode=01, header=DB33F1, hasOverrides=false
2024-03-25 16:30:29.070 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.codec.formula.backend.ScriptEngineBackend - Creating formula evaluator for FormulaEvaluatorConfig(scriptEngine=JavaScript, debug=false)
2024-03-25 16:30:29.070 mpleobdjavatest          W  Accessing hidden field Lsun/security/util/SecurityConstants;->GET_CLASSLOADER_PERMISSION:Ljava/lang/RuntimePermission; (unsupported, linking, allowed)
2024-03-25 16:30:29.087 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.buffer.DefaultCommandsBuffer - Invaldiating 0 commands in the queue.
2024-03-25 16:30:29.088 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Setting delay after ATZ command: 0
2024-03-25 16:30:29.089 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.api.PIDsGroupHandler - Group: METADATA is enabled. Adding METADATA group commands to the queue.
2024-03-25 16:30:29.093 libc                     W  Access denied finding property "persist.unipnp.debug"
2024-03-25 16:30:29.091 mpleobdjavatest          W  type=1400 audit(0.0:77): avc: denied { read } for name="u:object_r:unipnp_prop:s0" dev="tmpfs" ino=17381 scontext=u:r:untrusted_app:s0:c209,c256,c512,c768 tcontext=u:object_r:unipnp_prop:s0 tclass=file permissive=0 app=com.example.simpleobdjavatest
2024-03-25 16:30:29.091 mpleobdjavatest          W  type=1400 audit(0.0:78): avc: denied { read } for name="u:object_r:unipnp_prop:s0" dev="tmpfs" ino=17381 scontext=u:r:untrusted_app:s0:c209,c256,c512,c768 tcontext=u:object_r:unipnp_prop:s0 tclass=file permissive=0 app=com.example.simpleobdjavatest
2024-03-25 16:30:29.096 libc                     W  Access denied finding property "persist.unipnp.debug"
2024-03-25 16:30:29.097 ziparchive               W  Unable to open '/system_ext/framework/unipnp-framework.dm': No such file or directory
2024-03-25 16:30:29.097 ziparchive               W  Unable to open '/system_ext/framework/unipnp-framework.dm': No such file or directory
2024-03-25 16:30:29.098 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.api.CANMessageHeaderManager - Found CAN header=DA10F1 for mode=22
2024-03-25 16:30:29.098 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.api.CANMessageHeaderManager - Found CAN header=DB33F1 for mode=01
2024-03-25 16:30:29.098 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.api.CANMessageHeaderManager - Determined single mode=false, available modes=[22, AT, 09]
2024-03-25 16:30:29.099 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.api.PIDsGroupHandler - Group: CAPABILITES is enabled. Adding CAPABILITES group commands to the queue.
2024-03-25 16:30:29.103 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.api.CANMessageHeaderManager - Found CAN header=DA10F1 for mode=22
2024-03-25 16:30:29.103 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.api.CANMessageHeaderManager - Found CAN header=DB33F1 for mode=01
2024-03-25 16:30:29.103 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.api.CANMessageHeaderManager - Determined single mode=true, available modes=[01]
2024-03-25 16:30:29.103 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.api.CANMessageHeaderManager - Injecting CAN message header=DB33F1 for the mode to=01
2024-03-25 16:30:29.110 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.api.AdaptiveTimeout - Timeout: 166ms for expected command frequency: 6, adaptive timing enabled: true, check interval: 5000
2024-03-25 16:30:29.110 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.api.CANMessageHeaderManager - Found CAN header=DA10F1 for mode=22
2024-03-25 16:30:29.110 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.api.CANMessageHeaderManager - Found CAN header=DB33F1 for mode=01
2024-03-25 16:30:29.120 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.api.EventsPublishlisher - Created fallback map: {org.obd.metrics.diagnostic.DefaultDiagnostics=org.obd.metrics.api.model.ObdMetric, org.obd.metrics.alert.DefaultAlertManager=org.obd.metrics.api.model.Reply, com.example.simpleobdjavatest.DataCollector=org.obd.metrics.api.model.Reply} for event publisher
2024-03-25 16:30:29.143 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.pid.PidDefinitionRegistry
2024-03-25 16:30:29.144 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.api.model.Lifecycle.Subscription
2024-03-25 16:30:29.144 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.api.CommandProducer
2024-03-25 16:30:29.144 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.api.EventsPublishlisher
2024-03-25 16:30:29.144 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.buffer.decoder.ConnectorResponseBuffer
2024-03-25 16:30:29.144 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.buffer.CommandsBuffer
2024-03-25 16:30:29.144 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.codec.CodecRegistry
2024-03-25 16:30:29.144 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.api.ConnectionManager
2024-03-25 16:30:29.219 BluetoothConnection      E  OBD Device found: OBDII
2024-03-25 16:30:30.300 System.err               W  [pool-2-thread-1] ERROR org.obd.metrics.api.DefaultWorkflow - Failed to initialize the Workflow task.
2024-03-25 16:30:30.300 System.err               W  java.io.IOException: read failed, socket might closed or timeout, read ret: -1
2024-03-25 16:30:30.306 System.err               W  	at android.bluetooth.BluetoothSocket.readAll(BluetoothSocket.java:815)
2024-03-25 16:30:30.306 System.err               W  	at android.bluetooth.BluetoothSocket.readInt(BluetoothSocket.java:829)
2024-03-25 16:30:30.306 System.err               W  	at android.bluetooth.BluetoothSocket.connect(BluetoothSocket.java:442)
2024-03-25 16:30:30.306 System.err               W  	at com.example.simpleobdjavatest.BluetoothConnection.connect(BluetoothConnection.java:67)
2024-03-25 16:30:30.306 System.err               W  	at org.obd.metrics.transport.Connector.create(Connector.java:42)
2024-03-25 16:30:30.306 System.err               W  	at org.obd.metrics.transport.Connector$ConnectorBuilder.build(Connector.java:40)
2024-03-25 16:30:30.306 System.err               W  	at org.obd.metrics.api.ConnectionManager.onInit(ConnectionManager.java:73)
2024-03-25 16:30:30.306 System.err               W  	at org.obd.metrics.context.Context.lambda$init$0$org-obd-metrics-context-Context(Context.java:60)
2024-03-25 16:30:30.306 System.err               W  	at org.obd.metrics.context.Context$$ExternalSyntheticLambda0.accept(Unknown Source:4)
2024-03-25 16:30:30.306 System.err               W  	at java.util.concurrent.ConcurrentHashMap.forEach(ConcurrentHashMap.java:1608)
2024-03-25 16:30:30.306 System.err               W  	at org.obd.metrics.context.Context.init(Context.java:58)
2024-03-25 16:30:30.306 System.err               W  	at org.obd.metrics.api.DefaultWorkflow.lambda$start$11$org-obd-metrics-api-DefaultWorkflow(DefaultWorkflow.java:272)
2024-03-25 16:30:30.306 System.err               W  	at org.obd.metrics.api.DefaultWorkflow$$ExternalSyntheticLambda1.accept(Unknown Source:13)
2024-03-25 16:30:30.306 System.err               W  	at org.obd.metrics.context.Context.apply(Context.java:69)
2024-03-25 16:30:30.306 System.err               W  	at org.obd.metrics.api.DefaultWorkflow.lambda$start$12$org-obd-metrics-api-DefaultWorkflow(DefaultWorkflow.java:256)
2024-03-25 16:30:30.306 System.err               W  	at org.obd.metrics.api.DefaultWorkflow$$ExternalSyntheticLambda7.run(Unknown Source:10)
2024-03-25 16:30:30.306 System.err               W  	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:463)
2024-03-25 16:30:30.306 System.err               W  	at java.util.concurrent.FutureTask.run(FutureTask.java:264)
2024-03-25 16:30:30.306 System.err               W  	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
2024-03-25 16:30:30.307 System.err               W  	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
2024-03-25 16:30:30.307 System.err               W  	at java.lang.Thread.run(Thread.java:1012)
2024-03-25 16:30:30.307 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Stopping the Workflow task.
2024-03-25 16:30:30.307 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Notyfing workflow is stopped
2024-03-25 16:30:33.736 ProfileInstaller         D  Installing profile for com.example.simpleobdjavatest
2024-03-25 16:30:44.577 System                   W  A resource failed to call close. 
2024-03-25 16:33:03.204 mali_gralloc             I  unregister: id=0x2740000007f, base=0x0, importpid=4009
2024-03-25 16:33:03.205 mali_gralloc             I  unregister: id=0x2740000007e, base=0x0, importpid=4009
2024-03-25 16:33:03.215 VRI[MainActivity]        D  performTraversals relayoutWindow: maybeSyncSeqId=-1 ,mSyncSeqId=0 ,relayoutResult=2
2024-03-25 16:33:03.218 mali_gralloc             I  unregister: id=0x27400000080, base=0x0, importpid=4009
2024-03-25 16:33:03.219 mali_gralloc             I  unregister: id=0x2740000007d, base=0x0, importpid=4009
---------------------------- PROCESS ENDED (4009) for package com.example.simpleobdjavatest ----------------------------

In addition, I have uploaded all the programs to Github. If you need a test environment to view the content, please download it again. Thank you!

@Timmy5818
Copy link
Author

Hello, any news about the problem?
My main test here requires OBD-II data to be returned. At present, I have tried possible APIs or settings and still cannot receive OBD-II related data (such as vehicle speed). Currently, realme C51 Android 13 cannot be connected. The problem will not be dealt with for now. The most urgent part at the moment is how to send back the relevant information. If you have any information, please reply to me. Thank you!

@tzebrowski
Copy link
Owner

Please remove this section from your code https://github.com/Timmy5818/SimpleOBDJavaTest/blob/main/app/src/main/java/com/example/simpleobdjavatest/OBDBluetoothService.java#L160C16-L162C43

.header(Header.builder().mode("22").header("DA10F1").build())
.header(Header.builder().mode("01").header("DB33F1").build())
.protocol(Protocol.CAN_29)

Its specific for alfa romeo giulia,

@Timmy5818
Copy link
Author

Hello, I removed the 3 lines of code as you said, but I still did not receive the data normally (such as engine speed data). I only received the following part of the AT command that looks like Bluetooth. That's it. Is there anything else that needs to be modified?

Logcat:

2024-04-09 11:44:59.769 PcBluetoothConnection    E  OBD Device found: OBDII
2024-04-09 11:45:06.295 PcOBDBluetoothService    E  Mac address:CE:5E:89:74:3D:4C
2024-04-09 11:45:06.367 PcOBDBluetoothService    E  Mac address:CE:5E:89:74:3D:4C
2024-04-09 11:45:06.431 PcOBDBluetoothService    E  Mac address:CE:5E:89:74:3D:4C
2024-04-09 11:45:06.495 PcOBDBluetoothService    E  Mac address:CE:5E:89:74:3D:4C
2024-04-09 11:45:13.383 PcBluetoothConnection    E  Successfully connected to the adapter: CE:5E:89:74:3D:4C
2024-04-09 11:45:13.529 Receive data: {}         E  [65, 84, 68, 13]
2024-04-09 11:45:14.426 Receive data: {}         E  [65, 84, 90, 13]
2024-04-09 11:45:14.521 Receive data: {}         E  [65, 84, 76, 48, 13]
2024-04-09 11:45:14.625 Receive data: {}         E  [65, 84, 72, 48, 13]
2024-04-09 11:45:14.687 Receive data: {}         E  [65, 84, 69, 48, 13]
2024-04-09 11:45:14.811 Receive data: {}         E  [65, 84, 80, 80, 32, 50, 67, 83, 86, 32, 48, 49, 13]
2024-04-09 11:45:14.889 Receive data: {}         E  [65, 84, 80, 80, 32, 50, 67, 32, 79, 78, 13]
2024-04-09 11:45:14.970 Receive data: {}         E  [65, 84, 80, 80, 32, 50, 68, 83, 86, 32, 48, 49, 13]
2024-04-09 11:45:15.070 Receive data: {}         E  [65, 84, 80, 80, 32, 50, 68, 32, 79, 78, 13]
2024-04-09 11:45:15.169 Receive data: {}         E  [65, 84, 65, 84, 50, 13]
2024-04-09 11:45:15.229 Receive data: {}         E  [65, 84, 83, 80, 48, 13]
2024-04-09 11:45:15.751 Receive data: {}         E  [50, 50, 70, 49, 57, 48, 13]
2024-04-09 11:45:15.877 Receive data: {}         E  [65, 84, 73, 13]
2024-04-09 11:45:16.023 Receive data: {}         E  [50, 50, 70, 49, 56, 67, 13]
2024-04-09 11:45:16.099 Receive data: {}         E  [65, 84, 64, 49, 13]
2024-04-09 11:45:16.831 Receive data: {}         E  [65, 84, 68, 80, 13]
2024-04-09 11:45:19.278 Receive data: {}         E  [48, 57, 48, 50, 13]
2024-04-09 11:45:19.424 Receive data: {}         E  [48, 49, 48, 48, 13]
2024-04-09 11:45:19.584 Receive data: {}         E  [48, 49, 50, 48, 13]
2024-04-09 11:45:19.766 Receive data: {}         E  [48, 49, 52, 48, 13]
2024-04-09 11:45:19.880 Receive data: {}         E  [48, 49, 54, 48, 13]
2024-04-09 11:45:20.038 Receive data: {}         E  [48, 49, 56, 48, 13]
2024-04-09 11:45:20.127 Receive data: {}         E  [48, 49, 65, 48, 13]

By the way, the cars I tested include BMW, TOYOTA, LEXUS, etc., and they all have the same test results. Only the AT commands that look like Bluetooth are displayed. Thank you~~

@tzebrowski
Copy link
Owner

tzebrowski commented Apr 11, 2024

Hi, please enable debug logging and provide logs here,

Adjustments adj...
adj.debugEnabled(true)

@Timmy5818
Copy link
Author

Hello, the following OBD-II Log is the data I currently obtained from Logcat in Android Studio, and I have uploaded the modified program to enable Debug mode to Github. Please check the program modification and the following record files, thank you!

2024-04-17 11:15:20.686 PcOBDBluetoothService    E  Mac address:CE:5E:89:74:3D:4C
2024-04-17 11:15:20.722 System.err               W  [main] INFO org.obd.metrics.api.DefaultWorkflow - Creating an instance of the Workflow task.
2024-04-17 11:15:20.723 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~I5wAgvGLpEnpFX4BUgjR7A==/com.example.vehiclehi-SkTp4qw4qgJM-Aa2uPl27A==/base.apk!/giulia_2.0_gme.json. Files exists=false
2024-04-17 11:15:20.734 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~I5wAgvGLpEnpFX4BUgjR7A==/com.example.vehiclehi-SkTp4qw4qgJM-Aa2uPl27A==/base.apk!/extra.json. Files exists=false
2024-04-17 11:15:20.735 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~I5wAgvGLpEnpFX4BUgjR7A==/com.example.vehiclehi-SkTp4qw4qgJM-Aa2uPl27A==/base.apk!/mode01.json. Files exists=false
2024-04-17 11:15:20.736 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~I5wAgvGLpEnpFX4BUgjR7A==/com.example.vehiclehi-SkTp4qw4qgJM-Aa2uPl27A==/base.apk!/mode01_2.json. Files exists=false
2024-04-17 11:15:20.830 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 49 PID definitions from stream. Operation took: 61ms
2024-04-17 11:15:20.831 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 1 PID definitions from stream. Operation took: 1ms
2024-04-17 11:15:20.838 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 23 PID definitions from stream. Operation took: 7ms
2024-04-17 11:15:20.848 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 46 PID definitions from stream. Operation took: 10ms
2024-04-17 11:15:20.848 System.err               W  [main] INFO org.obd.metrics.api.DefaultWorkflow - Loading resources files took: 126ms.
2024-04-17 11:15:20.851 System.err               W  [main] INFO org.obd.metrics.api.DefaultWorkflow - Submitting the Workflow task.
2024-04-17 11:15:20.854 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Starting the Workflow task.
2024-04-17 11:15:20.855 System.err               W   Protocol: AUTO, headers: [],DBEUG: true,selected PID's: [13, 6, 5, 14, 67], adjustements: Adjustments(debugEnabled=true, stNxx=org.obd.metrics.api.model.STNxxExtensions@cb69ce1, collectRawConnectorResponseEnabled=false, vehicleMetadataReadingEnabled=true, vehicleCapabilitiesReadingEnabled=true, vehicleDtcReadingEnabled=false, vehicleDtcCleaningEnabled=false, generatorPolicy=GeneratorPolicy(enabled=false, increment=5.0), adaptiveTimeoutPolicy=org.obd.metrics.api.model.AdaptiveTimeoutPolicy@4938a06, producerPolicy=ProducerPolicy(priorityQueueEnabled=true, pidPriorities={}, conditionalSleepSliceSize=10, conditionalSleepEnabled=true), cachePolicy=org.obd.metrics.api.model.CachePolicy@d83c8c7, errorsPolicy=org.obd.metrics.api.model.ErrorsPolicy@9334ef4, batchPolicy=org.obd.metrics.api.model.BatchPolicy@19f261d)
2024-04-17 11:15:20.857 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Mapping for a PID=[13:0C] is: mode=01, header=, hasOverrides=false
2024-04-17 11:15:20.862 PcOBDBluetoothService    E  Mac address:CE:5E:89:74:3D:4C
2024-04-17 11:15:20.869 System.err               W  [main] INFO org.obd.metrics.api.DefaultWorkflow - Creating an instance of the Workflow task.
2024-04-17 11:15:20.870 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~I5wAgvGLpEnpFX4BUgjR7A==/com.example.vehiclehi-SkTp4qw4qgJM-Aa2uPl27A==/base.apk!/giulia_2.0_gme.json. Files exists=false
2024-04-17 11:15:20.871 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~I5wAgvGLpEnpFX4BUgjR7A==/com.example.vehiclehi-SkTp4qw4qgJM-Aa2uPl27A==/base.apk!/extra.json. Files exists=false
2024-04-17 11:15:20.872 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~I5wAgvGLpEnpFX4BUgjR7A==/com.example.vehiclehi-SkTp4qw4qgJM-Aa2uPl27A==/base.apk!/mode01.json. Files exists=false
2024-04-17 11:15:20.873 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~I5wAgvGLpEnpFX4BUgjR7A==/com.example.vehiclehi-SkTp4qw4qgJM-Aa2uPl27A==/base.apk!/mode01_2.json. Files exists=false
2024-04-17 11:15:20.900 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - PID=[13:0C] body= 
2024-04-17 11:15:20.900 System.err               W  {"alert":{"lowerThreshold":null,"upperThreshold":null},"cacheable":true,"commandClass":null,"commandType":"OBD","description":"Engine Rpm","formula":"(((A*256)+B)/4)","group":"LIVEDATA","historgam":{"avgEnabled":true,"maxEnabled":true,"minEnabled":true},"id":13,"length":2,"longDescription":null,"max":7000,"min":0,"mode":"01","module":"ecu","overrides":{"batchEnabled":true,"canMode":""},"pid":"0C","priority":0,"query":"010C","resourceFile":"mode01.json","stable":true,"successCode":"410C","type":"INT","units":"rpm","predictedSuccessCode":"41","successCodeBytes":"NDEwQw==","formulaAvailable":true,"multiSegmentAnswer":false}
2024-04-17 11:15:20.901 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Mapping for a PID=[6:05] is: mode=01, header=, hasOverrides=false
2024-04-17 11:15:20.902 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - PID=[6:05] body= 
2024-04-17 11:15:20.903 System.err               W  {"alert":{"lowerThreshold":null,"upperThreshold":50},"cacheable":true,"commandClass":null,"commandType":"OBD","description":"Coolant Temp","formula":"A-40","group":"LIVEDATA","historgam":{"avgEnabled":true,"maxEnabled":true,"minEnabled":true},"id":6,"length":1,"longDescription":null,"max":160,"min":-40,"mode":"01","module":"ecu","overrides":{"batchEnabled":true,"canMode":""},"pid":"05","priority":2,"query":"0105","resourceFile":"mode01.json","stable":true,"successCode":"4105","type":"INT","units":"C","predictedSuccessCode":"41","successCodeBytes":"NDEwNQ==","formulaAvailable":true,"multiSegmentAnswer":false}
2024-04-17 11:15:20.903 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Mapping for a PID=[5:04] is: mode=01, header=, hasOverrides=false
2024-04-17 11:15:20.905 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - PID=[5:04] body= 
2024-04-17 11:15:20.906 System.err               W  {"alert":{"lowerThreshold":null,"upperThreshold":null},"cacheable":true,"commandClass":null,"commandType":"OBD","description":"Engine Load\nValue","formula":"parseFloat((A*100/255).toFixed(2))","group":"LIVEDATA","historgam":{"avgEnabled":true,"maxEnabled":true,"minEnabled":true},"id":5,"length":1,"longDescription":null,"max":100,"min":0,"mode":"01","module":"ecu","overrides":{"batchEnabled":true,"canMode":""},"pid":"04","priority":0,"query":"0104","resourceFile":"mode01.json","stable":true,"successCode":"4104","type":null,"units":"%","predictedSuccessCode":"41","successCodeBytes":"NDEwNA==","formulaAvailable":true,"multiSegmentAnswer":false}
2024-04-17 11:15:20.906 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Mapping for a PID=[14:0D] is: mode=01, header=, hasOverrides=false
2024-04-17 11:15:20.907 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - PID=[14:0D] body= 
2024-04-17 11:15:20.908 System.err               W  {"alert":{"lowerThreshold":null,"upperThreshold":null},"cacheable":true,"commandClass":null,"commandType":"OBD","description":"Vehicle Speed","formula":"A","group":"LIVEDATA","historgam":{"avgEnabled":true,"maxEnabled":true,"minEnabled":true},"id":14,"length":1,"longDescription":null,"max":255,"min":0,"mode":"01","module":"ecu","overrides":{"batchEnabled":true,"canMode":""},"pid":"0D","priority":0,"query":"010D","resourceFile":"mode01.json","stable":true,"successCode":"410D","type":"INT","units":"km/h","predictedSuccessCode":"41","successCodeBytes":"NDEwRA==","formulaAvailable":true,"multiSegmentAnswer":false}
2024-04-17 11:15:20.908 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Mapping for a PID=[67:42] is: mode=01, header=, hasOverrides=false
2024-04-17 11:15:20.909 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - PID=[67:42] body= 
2024-04-17 11:15:20.909 System.err               W  {"alert":{"lowerThreshold":null,"upperThreshold":null},"cacheable":true,"commandClass":null,"commandType":"OBD","description":"Control module voltage","formula":"((A*256)+B)/1000","group":"LIVEDATA","historgam":{"avgEnabled":true,"maxEnabled":true,"minEnabled":true},"id":67,"length":2,"longDescription":null,"max":65535,"min":0,"mode":"01","module":"ecu","overrides":{"batchEnabled":true,"canMode":""},"pid":"42","priority":2,"query":"0142","resourceFile":"mode01_2.json","stable":false,"successCode":"4142","type":null,"units":"V","predictedSuccessCode":"41","successCodeBytes":"NDE0Mg==","formulaAvailable":true,"multiSegmentAnswer":false}
2024-04-17 11:15:20.914 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.codec.formula.backend.ScriptEngineBackend - Creating formula evaluator for FormulaEvaluatorConfig(scriptEngine=JavaScript, debug=false)
2024-04-17 11:15:20.914 ample.vehiclehi          W  Accessing hidden field Lsun/security/util/SecurityConstants;->GET_CLASSLOADER_PERMISSION:Ljava/lang/RuntimePermission; (unsupported, linking, allowed)
2024-04-17 11:15:20.922 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 49 PID definitions from stream. Operation took: 48ms
2024-04-17 11:15:20.923 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.buffer.DefaultCommandsBuffer - Invaldiating 0 commands in the queue.
2024-04-17 11:15:20.923 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Setting delay after ATZ command: 0
2024-04-17 11:15:20.923 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 1 PID definitions from stream. Operation took: 1ms
2024-04-17 11:15:20.925 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.PIDsGroupHandler - Group: METADATA is enabled. Adding METADATA group commands to the queue.
2024-04-17 11:15:20.932 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 23 PID definitions from stream. Operation took: 9ms
2024-04-17 11:15:20.934 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.CANMessageHeaderManager - Determined single mode=false, available modes=[22, AT, 09]
2024-04-17 11:15:20.935 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.PIDsGroupHandler - Group: CAPABILITES is enabled. Adding CAPABILITES group commands to the queue.
2024-04-17 11:15:20.940 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.CANMessageHeaderManager - Determined single mode=true, available modes=[01]
2024-04-17 11:15:20.943 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 46 PID definitions from stream. Operation took: 11ms
2024-04-17 11:15:20.943 System.err               W  [main] INFO org.obd.metrics.api.DefaultWorkflow - Loading resources files took: 74ms.
2024-04-17 11:15:20.943 System.err               W  [main] INFO org.obd.metrics.api.DefaultWorkflow - Submitting the Workflow task.
2024-04-17 11:15:20.944 System.err               W  [main] WARN org.obd.metrics.api.DefaultWorkflow - Workflow task was rejected. There is already running task in the queue
2024-04-17 11:15:20.944 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.AdaptiveTimeout - Timeout: 166ms for expected command frequency: 6, adaptive timing enabled: true, check interval: 5000
2024-04-17 11:15:20.952 PcOBDBluetoothService    E  Mac address:CE:5E:89:74:3D:4C
2024-04-17 11:15:20.954 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.EventsPublishlisher - Created fallback map: {com.example.vehiclehi.passenger_car.obd.PcDataCollector=org.obd.metrics.api.model.Reply, org.obd.metrics.diagnostic.DefaultDiagnostics=org.obd.metrics.api.model.ObdMetric, org.obd.metrics.alert.DefaultAlertManager=org.obd.metrics.api.model.Reply} for event publisher
2024-04-17 11:15:20.959 System.err               W  [main] INFO org.obd.metrics.api.DefaultWorkflow - Creating an instance of the Workflow task.
2024-04-17 11:15:20.959 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~I5wAgvGLpEnpFX4BUgjR7A==/com.example.vehiclehi-SkTp4qw4qgJM-Aa2uPl27A==/base.apk!/giulia_2.0_gme.json. Files exists=false
2024-04-17 11:15:20.960 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~I5wAgvGLpEnpFX4BUgjR7A==/com.example.vehiclehi-SkTp4qw4qgJM-Aa2uPl27A==/base.apk!/extra.json. Files exists=false
2024-04-17 11:15:20.961 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~I5wAgvGLpEnpFX4BUgjR7A==/com.example.vehiclehi-SkTp4qw4qgJM-Aa2uPl27A==/base.apk!/mode01.json. Files exists=false
2024-04-17 11:15:20.961 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~I5wAgvGLpEnpFX4BUgjR7A==/com.example.vehiclehi-SkTp4qw4qgJM-Aa2uPl27A==/base.apk!/mode01_2.json. Files exists=false
2024-04-17 11:15:20.964 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.api.EventsPublishlisher
2024-04-17 11:15:20.964 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.buffer.CommandsBuffer
2024-04-17 11:15:20.964 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.buffer.decoder.ConnectorResponseBuffer
2024-04-17 11:15:20.964 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.api.model.Lifecycle.Subscription
2024-04-17 11:15:20.964 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.pid.PidDefinitionRegistry
2024-04-17 11:15:20.965 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.api.CommandProducer
2024-04-17 11:15:20.965 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.api.ConnectionManager
2024-04-17 11:15:20.977 PcBluetoothConnection    E  OBD Device found: OBDII
2024-04-17 11:15:20.996 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 49 PID definitions from stream. Operation took: 34ms
2024-04-17 11:15:20.997 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 1 PID definitions from stream. Operation took: 0ms
2024-04-17 11:15:21.000 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 23 PID definitions from stream. Operation took: 3ms
2024-04-17 11:15:21.005 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 46 PID definitions from stream. Operation took: 5ms
2024-04-17 11:15:21.005 System.err               W  [main] INFO org.obd.metrics.api.DefaultWorkflow - Loading resources files took: 46ms.
2024-04-17 11:15:21.005 System.err               W  [main] INFO org.obd.metrics.api.DefaultWorkflow - Submitting the Workflow task.
2024-04-17 11:15:21.006 System.err               W  [main] WARN org.obd.metrics.api.DefaultWorkflow - Workflow task was rejected. There is already running task in the queue
2024-04-17 11:15:21.013 PcOBDBluetoothService    E  Mac address:CE:5E:89:74:3D:4C
2024-04-17 11:15:21.018 System.err               W  [main] INFO org.obd.metrics.api.DefaultWorkflow - Creating an instance of the Workflow task.
2024-04-17 11:15:21.018 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~I5wAgvGLpEnpFX4BUgjR7A==/com.example.vehiclehi-SkTp4qw4qgJM-Aa2uPl27A==/base.apk!/giulia_2.0_gme.json. Files exists=false
2024-04-17 11:15:21.019 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~I5wAgvGLpEnpFX4BUgjR7A==/com.example.vehiclehi-SkTp4qw4qgJM-Aa2uPl27A==/base.apk!/extra.json. Files exists=false
2024-04-17 11:15:21.019 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~I5wAgvGLpEnpFX4BUgjR7A==/com.example.vehiclehi-SkTp4qw4qgJM-Aa2uPl27A==/base.apk!/mode01.json. Files exists=false
2024-04-17 11:15:21.020 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~I5wAgvGLpEnpFX4BUgjR7A==/com.example.vehiclehi-SkTp4qw4qgJM-Aa2uPl27A==/base.apk!/mode01_2.json. Files exists=false
2024-04-17 11:15:21.048 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 49 PID definitions from stream. Operation took: 28ms
2024-04-17 11:15:21.049 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 1 PID definitions from stream. Operation took: 1ms
2024-04-17 11:15:21.052 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 23 PID definitions from stream. Operation took: 3ms
2024-04-17 11:15:21.057 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 46 PID definitions from stream. Operation took: 5ms
2024-04-17 11:15:21.057 System.err               W  [main] INFO org.obd.metrics.api.DefaultWorkflow - Loading resources files took: 39ms.
2024-04-17 11:15:21.057 System.err               W  [main] INFO org.obd.metrics.api.DefaultWorkflow - Submitting the Workflow task.
2024-04-17 11:15:21.058 System.err               W  [main] WARN org.obd.metrics.api.DefaultWorkflow - Workflow task was rejected. There is already running task in the queue
2024-04-17 11:15:22.472 PcOBDBluetoothService    E  Mac address:CE:5E:89:74:3D:4C
2024-04-17 11:15:22.481 System.err               W  [main] INFO org.obd.metrics.api.DefaultWorkflow - Creating an instance of the Workflow task.
2024-04-17 11:15:22.481 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~I5wAgvGLpEnpFX4BUgjR7A==/com.example.vehiclehi-SkTp4qw4qgJM-Aa2uPl27A==/base.apk!/giulia_2.0_gme.json. Files exists=false
2024-04-17 11:15:22.483 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~I5wAgvGLpEnpFX4BUgjR7A==/com.example.vehiclehi-SkTp4qw4qgJM-Aa2uPl27A==/base.apk!/extra.json. Files exists=false
2024-04-17 11:15:22.484 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~I5wAgvGLpEnpFX4BUgjR7A==/com.example.vehiclehi-SkTp4qw4qgJM-Aa2uPl27A==/base.apk!/mode01.json. Files exists=false
2024-04-17 11:15:22.485 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~I5wAgvGLpEnpFX4BUgjR7A==/com.example.vehiclehi-SkTp4qw4qgJM-Aa2uPl27A==/base.apk!/mode01_2.json. Files exists=false
2024-04-17 11:15:22.521 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 49 PID definitions from stream. Operation took: 35ms
2024-04-17 11:15:22.522 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 1 PID definitions from stream. Operation took: 1ms
2024-04-17 11:15:22.527 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 23 PID definitions from stream. Operation took: 5ms
2024-04-17 11:15:22.532 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 46 PID definitions from stream. Operation took: 5ms
2024-04-17 11:15:22.532 System.err               W  [main] INFO org.obd.metrics.api.DefaultWorkflow - Loading resources files took: 51ms.
2024-04-17 11:15:22.532 System.err               W  [main] INFO org.obd.metrics.api.DefaultWorkflow - Submitting the Workflow task.
2024-04-17 11:15:22.532 System.err               W  [main] WARN org.obd.metrics.api.DefaultWorkflow - Workflow task was rejected. There is already running task in the queue
2024-04-17 11:15:22.541 PcOBDBluetoothService    E  Mac address:CE:5E:89:74:3D:4C
2024-04-17 11:15:22.546 System.err               W  [main] INFO org.obd.metrics.api.DefaultWorkflow - Creating an instance of the Workflow task.
2024-04-17 11:15:22.547 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~I5wAgvGLpEnpFX4BUgjR7A==/com.example.vehiclehi-SkTp4qw4qgJM-Aa2uPl27A==/base.apk!/giulia_2.0_gme.json. Files exists=false
2024-04-17 11:15:22.548 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~I5wAgvGLpEnpFX4BUgjR7A==/com.example.vehiclehi-SkTp4qw4qgJM-Aa2uPl27A==/base.apk!/extra.json. Files exists=false
2024-04-17 11:15:22.548 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~I5wAgvGLpEnpFX4BUgjR7A==/com.example.vehiclehi-SkTp4qw4qgJM-Aa2uPl27A==/base.apk!/mode01.json. Files exists=false
2024-04-17 11:15:22.549 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~I5wAgvGLpEnpFX4BUgjR7A==/com.example.vehiclehi-SkTp4qw4qgJM-Aa2uPl27A==/base.apk!/mode01_2.json. Files exists=false
2024-04-17 11:15:22.577 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 49 PID definitions from stream. Operation took: 28ms
2024-04-17 11:15:22.577 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 1 PID definitions from stream. Operation took: 0ms
2024-04-17 11:15:22.581 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 23 PID definitions from stream. Operation took: 4ms
2024-04-17 11:15:22.585 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 46 PID definitions from stream. Operation took: 4ms
2024-04-17 11:15:22.585 System.err               W  [main] INFO org.obd.metrics.api.DefaultWorkflow - Loading resources files took: 39ms.
2024-04-17 11:15:22.586 System.err               W  [main] INFO org.obd.metrics.api.DefaultWorkflow - Submitting the Workflow task.
2024-04-17 11:15:22.586 System.err               W  [main] WARN org.obd.metrics.api.DefaultWorkflow - Workflow task was rejected. There is already running task in the queue
2024-04-17 11:15:22.600 PcOBDBluetoothService    E  Mac address:CE:5E:89:74:3D:4C
2024-04-17 11:15:22.606 System.err               W  [main] INFO org.obd.metrics.api.DefaultWorkflow - Creating an instance of the Workflow task.
2024-04-17 11:15:22.607 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~I5wAgvGLpEnpFX4BUgjR7A==/com.example.vehiclehi-SkTp4qw4qgJM-Aa2uPl27A==/base.apk!/giulia_2.0_gme.json. Files exists=false
2024-04-17 11:15:22.607 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~I5wAgvGLpEnpFX4BUgjR7A==/com.example.vehiclehi-SkTp4qw4qgJM-Aa2uPl27A==/base.apk!/extra.json. Files exists=false
2024-04-17 11:15:22.608 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~I5wAgvGLpEnpFX4BUgjR7A==/com.example.vehiclehi-SkTp4qw4qgJM-Aa2uPl27A==/base.apk!/mode01.json. Files exists=false
2024-04-17 11:15:22.609 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~I5wAgvGLpEnpFX4BUgjR7A==/com.example.vehiclehi-SkTp4qw4qgJM-Aa2uPl27A==/base.apk!/mode01_2.json. Files exists=false
2024-04-17 11:15:22.639 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 49 PID definitions from stream. Operation took: 30ms
2024-04-17 11:15:22.640 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 1 PID definitions from stream. Operation took: 1ms
2024-04-17 11:15:22.643 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 23 PID definitions from stream. Operation took: 3ms
2024-04-17 11:15:22.648 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 46 PID definitions from stream. Operation took: 4ms
2024-04-17 11:15:22.648 System.err               W  [main] INFO org.obd.metrics.api.DefaultWorkflow - Loading resources files took: 42ms.
2024-04-17 11:15:22.648 System.err               W  [main] INFO org.obd.metrics.api.DefaultWorkflow - Submitting the Workflow task.
2024-04-17 11:15:22.648 System.err               W  [main] WARN org.obd.metrics.api.DefaultWorkflow - Workflow task was rejected. There is already running task in the queue
2024-04-17 11:15:22.655 PcOBDBluetoothService    E  Mac address:CE:5E:89:74:3D:4C
2024-04-17 11:15:22.661 System.err               W  [main] INFO org.obd.metrics.api.DefaultWorkflow - Creating an instance of the Workflow task.
2024-04-17 11:15:22.661 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~I5wAgvGLpEnpFX4BUgjR7A==/com.example.vehiclehi-SkTp4qw4qgJM-Aa2uPl27A==/base.apk!/giulia_2.0_gme.json. Files exists=false
2024-04-17 11:15:22.662 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~I5wAgvGLpEnpFX4BUgjR7A==/com.example.vehiclehi-SkTp4qw4qgJM-Aa2uPl27A==/base.apk!/extra.json. Files exists=false
2024-04-17 11:15:22.662 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~I5wAgvGLpEnpFX4BUgjR7A==/com.example.vehiclehi-SkTp4qw4qgJM-Aa2uPl27A==/base.apk!/mode01.json. Files exists=false
2024-04-17 11:15:22.663 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~I5wAgvGLpEnpFX4BUgjR7A==/com.example.vehiclehi-SkTp4qw4qgJM-Aa2uPl27A==/base.apk!/mode01_2.json. Files exists=false
2024-04-17 11:15:22.690 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 49 PID definitions from stream. Operation took: 27ms
2024-04-17 11:15:22.690 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 1 PID definitions from stream. Operation took: 0ms
2024-04-17 11:15:22.693 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 23 PID definitions from stream. Operation took: 3ms
2024-04-17 11:15:22.697 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 46 PID definitions from stream. Operation took: 4ms
2024-04-17 11:15:22.697 System.err               W  [main] INFO org.obd.metrics.api.DefaultWorkflow - Loading resources files took: 36ms.
2024-04-17 11:15:22.697 System.err               W  [main] INFO org.obd.metrics.api.DefaultWorkflow - Submitting the Workflow task.
2024-04-17 11:15:22.698 System.err               W  [main] WARN org.obd.metrics.api.DefaultWorkflow - Workflow task was rejected. There is already running task in the queue
2024-04-17 11:15:25.373 Parcel                   W  Expecting binder but got null!
2024-04-17 11:15:29.675 ample.vehiclehi          W  Cleared Reference was only reachable from finalizer (only reported once)
2024-04-17 11:15:29.682 System                   W  A resource failed to call close. 
2024-04-17 11:15:34.019 PcBluetoothConnection    E  Successfully connected to the adapter: CE:5E:89:74:3D:4C
2024-04-17 11:15:34.020 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.codec.CodecRegistry
2024-04-17 11:15:34.021 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.CommandLoop - Starting command executor thread..
2024-04-17 11:15:34.033 System.err               W  [pool-4-thread-2] INFO org.obd.metrics.api.CommandProducer - Starting command producer thread. Priorities: {0=0, 1=5, 2=15, 3=35, 4=50, 5=100, 6=200, 7=500, 8=1000, 9=5000, 10=10000} 
2024-04-17 11:15:34.034 System.err               W  [pool-4-thread-2] INFO org.obd.metrics.api.AdaptiveTimeout - Scheduling adaptive timeout task. Fixed rate: 5000
2024-04-17 11:15:34.069 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATD
2024-04-17 11:15:34.109 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: OK, processing time: 40ms
2024-04-17 11:15:34.111 Receive data: {}         E  [65, 84, 68, 13]
2024-04-17 11:15:34.113 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATZ
2024-04-17 11:15:34.204 System.err               W  [pool-4-thread-2] INFO org.obd.metrics.api.CommandsSuplier - Build target commands list: [[pid=Engine Rpm, query=010C], [pid=Vehicle Speed, query=010D], [pid=Control module voltage, query=0142], [pid=Engine Load
2024-04-17 11:15:34.204 System.err               W  Value, query=0104], [pid=Coolant Temp, query=0105]]
2024-04-17 11:15:34.941 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: ATZÜELM327V1.5, processing time: 827ms
2024-04-17 11:15:34.941 Receive data: {}         E  [65, 84, 90, 13]
2024-04-17 11:15:34.946 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATL0
2024-04-17 11:15:34.988 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: ATL0OK, processing time: 42ms
2024-04-17 11:15:34.988 Receive data: {}         E  [65, 84, 76, 48, 13]
2024-04-17 11:15:34.991 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATH0
2024-04-17 11:15:35.031 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: ATH0OK, processing time: 41ms
2024-04-17 11:15:35.032 Receive data: {}         E  [65, 84, 72, 48, 13]
2024-04-17 11:15:35.034 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATE0
2024-04-17 11:15:35.075 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: ATE0OK, processing time: 41ms
2024-04-17 11:15:35.076 Receive data: {}         E  [65, 84, 69, 48, 13]
2024-04-17 11:15:35.078 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATPP 2CSV 01
2024-04-17 11:15:35.119 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: OK, processing time: 41ms
2024-04-17 11:15:35.120 Receive data: {}         E  [65, 84, 80, 80, 32, 50, 67, 83, 86, 32, 48, 49, 13]
2024-04-17 11:15:35.122 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATPP 2C ON
2024-04-17 11:15:35.163 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: OK, processing time: 41ms
2024-04-17 11:15:35.164 Receive data: {}         E  [65, 84, 80, 80, 32, 50, 67, 32, 79, 78, 13]
2024-04-17 11:15:35.166 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATPP 2DSV 01
2024-04-17 11:15:35.249 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: OK, processing time: 83ms
2024-04-17 11:15:35.250 Receive data: {}         E  [65, 84, 80, 80, 32, 50, 68, 83, 86, 32, 48, 49, 13]
2024-04-17 11:15:35.252 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATPP 2D ON
2024-04-17 11:15:35.384 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: OK, processing time: 132ms
2024-04-17 11:15:35.385 Receive data: {}         E  [65, 84, 80, 80, 32, 50, 68, 32, 79, 78, 13]
2024-04-17 11:15:35.387 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATAT2
2024-04-17 11:15:35.431 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: OK, processing time: 44ms
2024-04-17 11:15:35.432 Receive data: {}         E  [65, 84, 65, 84, 50, 13]
2024-04-17 11:15:35.434 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATSP0
2024-04-17 11:15:35.474 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: OK, processing time: 40ms
2024-04-17 11:15:35.475 Receive data: {}         E  [65, 84, 83, 80, 48, 13]
2024-04-17 11:15:35.477 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 22F190
2024-04-17 11:15:39.650 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: UNABLETOCONNECT, processing time: 4173ms
2024-04-17 11:15:39.650 System.err               W  [pool-4-thread-1] ERROR org.obd.metrics.executor.ObdCommandHandler - Receive device error: UNABLETOCONNECT
2024-04-17 11:15:39.651 System.err               W  [pool-4-thread-1] ERROR org.obd.metrics.api.ConnectionManager - Received onInternalError event. Counter=0, reason: UNABLETOCONNECT
2024-04-17 11:15:39.657 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATI
2024-04-17 11:15:40.187 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: ELM327V1.5, processing time: 531ms
2024-04-17 11:15:40.190 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 22F18C
2024-04-17 11:15:40.672 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:62F18C3030301:30343134353030, processing time: 482ms
2024-04-17 11:15:40.675 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: AT@1
2024-04-17 11:15:40.726 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: OBDIITORS232INTERPRETER, processing time: 51ms
2024-04-17 11:15:40.729 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 22F194
2024-04-17 11:15:41.004 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: NODATA, processing time: 275ms
2024-04-17 11:15:41.007 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 22F191
2024-04-17 11:15:41.303 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: NODATA, processing time: 295ms
2024-04-17 11:15:41.305 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATDP
2024-04-17 11:15:41.359 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: AUTO,ISO15765-4(CAN11/500), processing time: 53ms
2024-04-17 11:15:41.362 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 22F192
2024-04-17 11:15:41.606 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: NODATA, processing time: 243ms
2024-04-17 11:15:41.608 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 22F187
2024-04-17 11:15:41.849 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: NODATA, processing time: 240ms
2024-04-17 11:15:41.851 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 22F196
2024-04-17 11:15:42.099 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: NODATA, processing time: 247ms
2024-04-17 11:15:42.101 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 22F195
2024-04-17 11:15:42.343 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: NODATA, processing time: 242ms
2024-04-17 11:15:42.346 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 22F193
2024-04-17 11:15:42.591 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: NODATA, processing time: 244ms
2024-04-17 11:15:42.593 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 22F1A5
2024-04-17 11:15:42.837 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: NODATA, processing time: 244ms
2024-04-17 11:15:42.840 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 222008
2024-04-17 11:15:43.080 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: NODATA, processing time: 239ms
2024-04-17 11:15:43.082 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 221008
2024-04-17 11:15:43.325 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: NODATA, processing time: 242ms
2024-04-17 11:15:43.327 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 0902
2024-04-17 11:15:43.424 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 0140:4902015742411:435936313033502:394D3330383433, processing time: 96ms
2024-04-17 11:15:43.426 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 0100
2024-04-17 11:15:43.532 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 4100BE3EA813410098188001410098188001, processing time: 106ms
2024-04-17 11:15:43.535 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 0120
2024-04-17 11:15:43.664 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 4120A007B011412080000001412080000001, processing time: 129ms
2024-04-17 11:15:43.667 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 0140
2024-04-17 11:15:43.798 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 4140FED084154140C00000004140C0000000, processing time: 130ms
2024-04-17 11:15:43.801 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 0160
2024-04-17 11:15:44.003 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 416063000001, processing time: 203ms
2024-04-17 11:15:44.006 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 0180
2024-04-17 11:15:44.098 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 41800004000D, processing time: 92ms
2024-04-17 11:15:44.101 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01A0
2024-04-17 11:15:44.174 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 41A004000000, processing time: 72ms
2024-04-17 11:15:44.176 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01C0
2024-04-17 11:15:44.419 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: NODATA, processing time: 243ms
2024-04-17 11:15:45.425 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.executor.InitCompletedHandler - Initialization process is completed.
2024-04-17 11:15:45.425 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.executor.InitCompletedHandler - Found Vehicle metadata: {}.
2024-04-17 11:15:45.426 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.executor.InitCompletedHandler - Found Vehicle capabilities: [].
2024-04-17 11:15:45.426 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.executor.InitCompletedHandler - Found Diagnostic Trouble Codes: [].
2024-04-17 11:15:45.427 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.executor.InitCompletedHandler - Status of the Diagnostic Trouble Codes cleanup: NO_DATA.
2024-04-17 11:15:45.428 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.LifecycleAdapter - Received onRunning event. Starting CommandProducer thread.
2024-04-17 11:15:45.429 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.LifecycleAdapter - Received onRunning event. Starting ConnectionManager thread.
2024-04-17 11:15:45.430 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.LifecycleAdapter - Received onRunning event. Starting CommandLoop thread.
2024-04-17 11:15:45.430 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.LifecycleAdapter - Received onRunning event. Starting ConnectorResponseDecoder thread.
2024-04-17 11:15:45.521 System.err               W  [pool-4-thread-2] INFO org.obd.metrics.api.CANMessageHeaderManager - Determined single mode=true, available modes=[01]
2024-04-17 11:15:45.522 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 010C
2024-04-17 11:15:45.626 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 410C0BB0410C0BB4410C0BB4, processing time: 104ms
2024-04-17 11:15:45.628 System.err               W  [pool-4-thread-3] ERROR org.obd.metrics.codec.formula.backend.ScriptEngineBackend - Failed to evaluate the formula (((A*256)+B)/4) for PID: 0C
2024-04-17 11:15:45.629 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 010D
2024-04-17 11:15:45.776 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 410D00410D00410D00, processing time: 146ms
2024-04-17 11:15:45.777 System.err               W  [pool-4-thread-3] ERROR org.obd.metrics.codec.formula.backend.ScriptEngineBackend - Failed to evaluate the formula A for PID: 0D
2024-04-17 11:15:45.779 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 0142
2024-04-17 11:15:45.935 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 414239D04142395B414238C3, processing time: 157ms
2024-04-17 11:15:45.936 System.err               W  [pool-4-thread-3] ERROR org.obd.metrics.codec.formula.backend.ScriptEngineBackend - Failed to evaluate the formula ((A*256)+B)/1000 for PID: 42
2024-04-17 11:15:45.938 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 0104
2024-04-17 11:15:46.033 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 410414410414410414, processing time: 94ms
2024-04-17 11:15:46.034 System.err               W  [pool-4-thread-3] ERROR org.obd.metrics.codec.formula.backend.ScriptEngineBackend - Failed to evaluate the formula parseFloat((A*100/255).toFixed(2)) for PID: 04
2024-04-17 11:15:46.035 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 0105
2024-04-17 11:15:46.141 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 410585410585410585, processing time: 105ms
2024-04-17 11:15:46.143 System.err               W  [pool-4-thread-3] ERROR org.obd.metrics.codec.formula.backend.ScriptEngineBackend - Failed to evaluate the formula A-40 for PID: 05
2024-04-17 11:15:46.144 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 010C
2024-04-17 11:15:46.249 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 410C0BB0410C0BB0410C0BAC, processing time: 105ms
2024-04-17 11:15:46.250 System.err               W  [pool-4-thread-3] ERROR org.obd.metrics.codec.formula.backend.ScriptEngineBackend - Failed to evaluate the formula (((A*256)+B)/4) for PID: 0C
2024-04-17 11:15:46.252 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 010D
2024-04-17 11:15:46.330 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 410D00410D00410D00, processing time: 78ms
2024-04-17 11:15:46.332 System.err               W  [pool-4-thread-3] ERROR org.obd.metrics.codec.formula.backend.ScriptEngineBackend - Failed to evaluate the formula A for PID: 0D
2024-04-17 11:15:46.333 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 0142
2024-04-17 11:15:46.439 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 414239D041423952414238C3, processing time: 105ms
2024-04-17 11:15:46.440 System.err               W  [pool-4-thread-3] ERROR org.obd.metrics.codec.formula.backend.ScriptEngineBackend - Failed to evaluate the formula ((A*256)+B)/1000 for PID: 42
2024-04-17 11:15:46.441 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 0104
2024-04-17 11:15:46.519 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 410414410414410414, processing time: 78ms
2024-04-17 11:15:46.520 System.err               W  [pool-4-thread-3] ERROR org.obd.metrics.codec.formula.backend.ScriptEngineBackend - Failed to evaluate the formula parseFloat((A*100/255).toFixed(2)) for PID: 04
2024-04-17 11:15:46.522 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 0105
2024-04-17 11:15:46.628 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 410586410585410585, processing time: 105ms
2024-04-17 11:15:46.629 System.err               W  [pool-4-thread-3] ERROR org.obd.metrics.codec.formula.backend.ScriptEngineBackend - Failed to evaluate the formula A-40 for PID: 05
2024-04-17 11:15:46.631 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 010C
2024-04-17 11:15:46.750 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 410C0BB0410C0BA8410C0BA8, processing time: 120ms
2024-04-17 11:15:46.752 System.err               W  [pool-4-thread-3] ERROR org.obd.metrics.codec.formula.backend.ScriptEngineBackend - Failed to evaluate the formula (((A*256)+B)/4) for PID: 0C
2024-04-17 11:15:46.753 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 010D
2024-04-17 11:15:46.899 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 410D00410D00410D00, processing time: 145ms
2024-04-17 11:15:46.900 System.err               W  [pool-4-thread-3] ERROR org.obd.metrics.codec.formula.backend.ScriptEngineBackend - Failed to evaluate the formula A for PID: 0D
2024-04-17 11:15:46.901 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 0142
2024-04-17 11:15:46.980 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 414239E44142395D414238C3, processing time: 78ms
2024-04-17 11:15:46.981 System.err               W  [pool-4-thread-3] ERROR org.obd.metrics.codec.formula.backend.ScriptEngineBackend - Failed to evaluate the formula ((A*256)+B)/1000 for PID: 42
2024-04-17 11:15:46.982 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 0104
2024-04-17 11:15:47.090 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 410414410414410414, processing time: 107ms
2024-04-17 11:15:47.091 System.err               W  [pool-4-thread-3] ERROR org.obd.metrics.codec.formula.backend.ScriptEngineBackend - Failed to evaluate the formula parseFloat((A*100/255).toFixed(2)) for PID: 04

@tzebrowski
Copy link
Owner

tzebrowski commented Apr 17, 2024

Thanks for provided logs.
From the logs its clear why u do not receive the data. The answer from the adapter is incorrect and framework is not able to parse the response, e.g:

TX: 010D
RX: 410D00410D00410D00, processing time: 107ms

Can you please do one more tests and enable batch queries and share the logs,

final Adjustments optional = Adjustments
		        .builder()
		        .batchPolicy(BatchPolicy.builder().enabled(Boolean.TRUE).build())
		        .build();

@Timmy5818
Copy link
Author

Hello, I currently use the following three var optional = Adjustments option programs to test the situation. Currently, in these three situations, OBD-II data cannot be received normally. The following is the relevant Logcat record and the program of this method. code, and I have tested your other repository ObdGraphs (Play store name is My Giulia). The device can operate normally and can return data. What other parts of the program need to be modified? Thank you!

The first way to modify the program:

        var optional = Adjustments
                .builder()
                .debugEnabled(true)
                .vehicleCapabilitiesReadingEnabled(Boolean.TRUE)
                .vehicleMetadataReadingEnabled(Boolean.TRUE)
                .adaptiveTimeoutPolicy(AdaptiveTimeoutPolicy.builder().enabled(Boolean.TRUE).checkInterval(5000).commandFrequency(commandFrequency).build())
                .producerPolicy(ProducerPolicy.builder().priorityQueueEnabled(Boolean.TRUE).build())
                .cachePolicy(CachePolicy.builder().resultCacheEnabled(Boolean.TRUE).build())
                .batchPolicy(BatchPolicy.builder().enabled(Boolean.TRUE).build())
                .build();

Logcat:

2024-04-19 11:28:32.975 PcBluetoothConnection    E  Successfully connected to the adapter: C9:59:65:89:9D:F0
2024-04-19 11:28:32.980 System.err               W  [pool-4-thread-2] INFO org.obd.metrics.api.CommandProducer - Starting command producer thread. Priorities: {0=0, 1=5, 2=15, 3=35, 4=50, 5=100, 6=200, 7=500, 8=1000, 9=5000, 10=10000} 
2024-04-19 11:28:32.980 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.CommandLoop - Starting command executor thread..
2024-04-19 11:28:32.980 System.err               W  [pool-4-thread-2] INFO org.obd.metrics.api.AdaptiveTimeout - Scheduling adaptive timeout task. Fixed rate: 5000
2024-04-19 11:28:33.035 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATD
2024-04-19 11:28:33.077 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: OK, processing time: 42ms
2024-04-19 11:28:33.078 Receive data: {}         E  [65, 84, 68, 13]
2024-04-19 11:28:33.080 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATZ
2024-04-19 11:28:33.156 System.err               W  [pool-4-thread-2] INFO org.obd.metrics.codec.batch.AbstractBatchCodec - Calculated response length: 24 for commands '01 0C 04 0D 05 42'
2024-04-19 11:28:33.157 System.err               W  [pool-4-thread-2] INFO org.obd.metrics.api.CommandsSuplier - Build target commands list: [[priority=0, query=01 0C 04 0D 05 42 2]]
2024-04-19 11:28:33.929 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: ATZÜELM327V1.5, processing time: 849ms
2024-04-19 11:28:33.930 Receive data: {}         E  [65, 84, 90, 13]
2024-04-19 11:28:33.935 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATL0
2024-04-19 11:28:33.977 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: ATL0OK, processing time: 43ms
2024-04-19 11:28:33.978 Receive data: {}         E  [65, 84, 76, 48, 13]
2024-04-19 11:28:33.980 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATH0
2024-04-19 11:28:34.022 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: ATH0OK, processing time: 41ms
2024-04-19 11:28:34.022 Receive data: {}         E  [65, 84, 72, 48, 13]
2024-04-19 11:28:34.025 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATE0
2024-04-19 11:28:34.073 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: ATE0OK, processing time: 49ms
2024-04-19 11:28:34.074 Receive data: {}         E  [65, 84, 69, 48, 13]
2024-04-19 11:28:34.076 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATPP 2CSV 01
2024-04-19 11:28:34.116 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: OK, processing time: 39ms
2024-04-19 11:28:34.116 Receive data: {}         E  [65, 84, 80, 80, 32, 50, 67, 83, 86, 32, 48, 49, 13]
2024-04-19 11:28:34.119 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATPP 2C ON
2024-04-19 11:28:34.158 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: OK, processing time: 38ms
2024-04-19 11:28:34.158 Receive data: {}         E  [65, 84, 80, 80, 32, 50, 67, 32, 79, 78, 13]
2024-04-19 11:28:34.161 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATPP 2DSV 01
2024-04-19 11:28:34.225 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: OK, processing time: 63ms
2024-04-19 11:28:34.225 Receive data: {}         E  [65, 84, 80, 80, 32, 50, 68, 83, 86, 32, 48, 49, 13]
2024-04-19 11:28:34.228 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATPP 2D ON
2024-04-19 11:28:34.268 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: OK, processing time: 40ms
2024-04-19 11:28:34.269 Receive data: {}         E  [65, 84, 80, 80, 32, 50, 68, 32, 79, 78, 13]
2024-04-19 11:28:34.271 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATAT2
2024-04-19 11:28:34.311 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: OK, processing time: 39ms
2024-04-19 11:28:34.311 Receive data: {}         E  [65, 84, 65, 84, 50, 13]
2024-04-19 11:28:34.314 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATSP0
2024-04-19 11:28:34.371 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: OK, processing time: 57ms
2024-04-19 11:28:34.371 Receive data: {}         E  [65, 84, 83, 80, 48, 13]
2024-04-19 11:28:34.374 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 22F190
2024-04-19 11:28:34.824 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: NODATA, processing time: 449ms
2024-04-19 11:28:34.827 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATI
2024-04-19 11:28:34.871 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: ELM327V1.5, processing time: 43ms
2024-04-19 11:28:34.871 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.command.meta.HexCommand - Decoding the message: ELM327V1.5
2024-04-19 11:28:34.872 System.err               W  [pool-4-thread-1] WARN org.obd.metrics.command.meta.MetadataCommand - Failed to decode message. Invalid answer code. Message:ATI
2024-04-19 11:28:34.873 Receive data: {}         E  [65, 84, 73, 13]
2024-04-19 11:28:34.875 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 22F18C
2024-04-19 11:28:35.124 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: NODATA, processing time: 248ms
2024-04-19 11:28:35.126 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: AT@1
2024-04-19 11:28:35.178 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: OBDIITORS232INTERPRETER, processing time: 51ms
2024-04-19 11:28:35.178 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.command.meta.HexCommand - Decoding the message: OBDIITORS232INTERPRETER
2024-04-19 11:28:35.180 System.err               W  [pool-4-thread-1] WARN org.obd.metrics.command.meta.MetadataCommand - Failed to decode message. Invalid answer code. Message:AT@1
2024-04-19 11:28:35.180 Receive data: {}         E  [65, 84, 64, 49, 13]
2024-04-19 11:28:35.182 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 22F194
2024-04-19 11:28:35.423 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: NODATA, processing time: 240ms
2024-04-19 11:28:35.426 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 22F191
2024-04-19 11:28:35.673 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: NODATA, processing time: 248ms
2024-04-19 11:28:35.676 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATDP
2024-04-19 11:28:35.735 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: AUTO,ISO15765-4(CAN11/500), processing time: 59ms
2024-04-19 11:28:35.735 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.command.meta.HexCommand - Decoding the message: AUTO,ISO15765-4(CAN11/500)
2024-04-19 11:28:35.736 System.err               W  [pool-4-thread-1] WARN org.obd.metrics.command.meta.MetadataCommand - Failed to decode message. Invalid answer code. Message:ATDP
2024-04-19 11:28:35.736 Receive data: {}         E  [65, 84, 68, 80, 13]
2024-04-19 11:28:35.739 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 22F192
2024-04-19 11:28:35.974 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: NODATA, processing time: 234ms
2024-04-19 11:28:35.976 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 22F187
2024-04-19 11:28:36.224 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: NODATA, processing time: 248ms
2024-04-19 11:28:36.227 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 22F196
2024-04-19 11:28:36.473 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: NODATA, processing time: 246ms
2024-04-19 11:28:36.476 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 22F195
2024-04-19 11:28:36.723 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: NODATA, processing time: 248ms
2024-04-19 11:28:36.726 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 22F193
2024-04-19 11:28:36.973 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: NODATA, processing time: 247ms
2024-04-19 11:28:36.976 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 22F1A5
2024-04-19 11:28:37.223 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: NODATA, processing time: 247ms
2024-04-19 11:28:37.226 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 222008
2024-04-19 11:28:37.460 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: NODATA, processing time: 233ms
2024-04-19 11:28:37.462 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 221008
2024-04-19 11:28:37.701 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: NODATA, processing time: 239ms
2024-04-19 11:28:37.704 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 0902
2024-04-19 11:28:37.972 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 0140:4902014A54481:424135443232302:35303138303830, processing time: 268ms
2024-04-19 11:28:37.973 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.command.meta.HexCommand - Decoding the message: 0140:4902014A54481:424135443232302:35303138303830
2024-04-19 11:28:37.975 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.command.meta.HexCommand - Decoded message: JTHBA5D2205018080 for: 0140:4902014A54481:424135443232302:35303138303830
2024-04-19 11:28:37.976 Receive data: {}         E  [48, 57, 48, 50, 13]
2024-04-19 11:28:37.978 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 0100
2024-04-19 11:28:38.049 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 4100981A80134100BE1FA813, processing time: 71ms
2024-04-19 11:28:38.054 Receive data: {}         E  [48, 49, 48, 48, 13]
2024-04-19 11:28:38.056 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 0120
2024-04-19 11:28:38.131 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 41208001800141209005B015, processing time: 74ms
2024-04-19 11:28:38.133 Receive data: {}         E  [48, 49, 50, 48, 13]
2024-04-19 11:28:38.138 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 0140
2024-04-19 11:28:38.207 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 4140400C000141407ADC8011, processing time: 70ms
2024-04-19 11:28:38.211 Receive data: {}         E  [48, 49, 52, 48, 13]
2024-04-19 11:28:38.213 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 0160
2024-04-19 11:28:38.302 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 416008000000416008094200, processing time: 88ms
2024-04-19 11:28:38.303 Receive data: {}         E  [48, 49, 54, 48, 13]
2024-04-19 11:28:38.306 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 0180
2024-04-19 11:28:38.573 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: NODATA, processing time: 268ms
2024-04-19 11:28:38.576 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01A0
2024-04-19 11:28:38.822 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: NODATA, processing time: 246ms
2024-04-19 11:28:38.824 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01C0
2024-04-19 11:28:39.072 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: NODATA, processing time: 248ms
2024-04-19 11:28:40.077 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.executor.InitCompletedHandler - Initialization process is completed.
2024-04-19 11:28:40.078 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.executor.InitCompletedHandler - Found Vehicle metadata: {Communication protocol=AUTO,ISO15765-4(CAN11/500), Adapter description=OBDIITORS232INTERPRETER, VIN=JTHBA5D2205018080, Adapter ID=ELM327V1.5}.
2024-04-19 11:28:40.079 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.executor.InitCompletedHandler - Found Vehicle capabilities: [22, 01, 24, 04, 26, 05, 27, 28, 29, 1c, 1e, 1f, 31, 10, 32, 11, 33, 34, 35, 36, 37, 38, 39, 2b, 0c, 0d, 0f, 20, 21].
2024-04-19 11:28:40.080 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.executor.InitCompletedHandler - Found Diagnostic Trouble Codes: [].
2024-04-19 11:28:40.080 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.executor.InitCompletedHandler - Status of the Diagnostic Trouble Codes cleanup: NO_DATA.
2024-04-19 11:28:40.082 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.LifecycleAdapter - Received onRunning event. Starting CommandProducer thread.
2024-04-19 11:28:40.083 System.err               W  [pool-5-thread-1] WARN org.obd.metrics.codec.formula.FormulaEvaluatorCachePersitence - Failed to load cache from the disk: ./result_cache.json: open failed: ENOENT (No such file or directory)
2024-04-19 11:28:40.083 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.LifecycleAdapter - Received onRunning event. Starting ConnectionManager thread.
2024-04-19 11:28:40.084 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.LifecycleAdapter - Received onRunning event. Starting ConnectorResponseDecoder thread.
2024-04-19 11:28:40.085 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.LifecycleAdapter - Received onRunning event. Starting CommandLoop thread.
2024-04-19 11:28:40.147 System.err               W  [pool-4-thread-2] INFO org.obd.metrics.api.CANMessageHeaderManager - Determined single mode=true, available modes=[01]
2024-04-19 11:28:40.148 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-19 11:28:40.241 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C8F043500D0:410C0C920435, processing time: 93ms
2024-04-19 11:28:40.244 System.err               W  [pool-4-thread-3] ERROR org.obd.metrics.codec.formula.backend.ScriptEngineBackend - Failed to evaluate the formula (((A*256)+B)/4) for PID: 0C
2024-04-19 11:28:40.244 System.err               W  [pool-4-thread-3] INFO org.obd.metrics.api.ConnectorResponseDecoder - Completed decoder thread.
2024-04-19 11:28:40.314 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-19 11:28:40.388 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C8C043500D0:410C0C8C0435, processing time: 74ms
2024-04-19 11:28:40.482 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-19 11:28:40.598 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C8C043500D0:410C0C8C0435, processing time: 116ms
2024-04-19 11:28:40.650 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-19 11:28:40.747 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C73043500D0:410C0C730435, processing time: 97ms

The second way to modify the program:

        var optional = Adjustments
                .builder()
                .debugEnabled(true)
                .vehicleCapabilitiesReadingEnabled(Boolean.TRUE)
                .vehicleMetadataReadingEnabled(Boolean.TRUE)
                .adaptiveTimeoutPolicy(AdaptiveTimeoutPolicy.builder().enabled(Boolean.TRUE).checkInterval(5000).commandFrequency(commandFrequency).build())
                .producerPolicy(ProducerPolicy.builder().priorityQueueEnabled(Boolean.TRUE).build())
                .cachePolicy(CachePolicy.builder().resultCacheEnabled(Boolean.FALSE).build())
                .batchPolicy(BatchPolicy.builder().enabled(Boolean.TRUE).build())
                .build();

Logcat:

2024-04-19 11:31:24.940 PcBluetoothConnection    E  Successfully connected to the adapter: C9:59:65:89:9D:F0
2024-04-19 11:31:24.942 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.transport.Connector
2024-04-19 11:31:24.943 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.pid.PidDefinitionRegistry
2024-04-19 11:31:24.943 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.api.model.Lifecycle.Subscription
2024-04-19 11:31:24.944 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.buffer.decoder.ConnectorResponseBuffer
2024-04-19 11:31:24.944 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.api.EventsPublishlisher
2024-04-19 11:31:24.944 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.codec.CodecRegistry
2024-04-19 11:31:24.944 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.buffer.CommandsBuffer
2024-04-19 11:31:24.944 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.api.CommandProducer
2024-04-19 11:31:24.945 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.CommandLoop - Starting command executor thread..
2024-04-19 11:31:24.947 System.err               W  [pool-4-thread-2] INFO org.obd.metrics.api.CommandProducer - Starting command producer thread. Priorities: {0=0, 1=5, 2=15, 3=35, 4=50, 5=100, 6=200, 7=500, 8=1000, 9=5000, 10=10000} 
2024-04-19 11:31:24.948 System.err               W  [pool-4-thread-2] INFO org.obd.metrics.api.AdaptiveTimeout - Scheduling adaptive timeout task. Fixed rate: 5000
2024-04-19 11:31:24.988 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATD
2024-04-19 11:31:25.036 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: OK, processing time: 48ms
2024-04-19 11:31:25.037 Receive data: {}         E  [65, 84, 68, 13]
2024-04-19 11:31:25.039 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATZ
2024-04-19 11:31:25.128 System.err               W  [pool-4-thread-2] INFO org.obd.metrics.codec.batch.AbstractBatchCodec - Calculated response length: 24 for commands '01 0C 04 0D 05 42'
2024-04-19 11:31:25.130 System.err               W  [pool-4-thread-2] INFO org.obd.metrics.api.CommandsSuplier - Build target commands list: [[priority=0, query=01 0C 04 0D 05 42 2]]
2024-04-19 11:31:25.867 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: ATZÜELM327V1.5, processing time: 827ms
2024-04-19 11:31:25.867 Receive data: {}         E  [65, 84, 90, 13]
2024-04-19 11:31:25.872 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATL0
2024-04-19 11:31:25.938 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: ATL0OK, processing time: 66ms
2024-04-19 11:31:25.939 Receive data: {}         E  [65, 84, 76, 48, 13]
2024-04-19 11:31:25.941 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATH0
2024-04-19 11:31:25.984 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: ATH0OK, processing time: 42ms
2024-04-19 11:31:25.984 Receive data: {}         E  [65, 84, 72, 48, 13]
2024-04-19 11:31:25.987 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATE0
2024-04-19 11:31:26.029 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: ATE0OK, processing time: 41ms
2024-04-19 11:31:26.029 Receive data: {}         E  [65, 84, 69, 48, 13]
2024-04-19 11:31:26.032 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATPP 2CSV 01
2024-04-19 11:31:26.087 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: OK, processing time: 55ms
2024-04-19 11:31:26.088 Receive data: {}         E  [65, 84, 80, 80, 32, 50, 67, 83, 86, 32, 48, 49, 13]
2024-04-19 11:31:26.091 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATPP 2C ON
2024-04-19 11:31:26.131 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: OK, processing time: 40ms
2024-04-19 11:31:26.131 Receive data: {}         E  [65, 84, 80, 80, 32, 50, 67, 32, 79, 78, 13]
2024-04-19 11:31:26.134 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATPP 2DSV 01
2024-04-19 11:31:26.175 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: OK, processing time: 40ms
2024-04-19 11:31:26.175 Receive data: {}         E  [65, 84, 80, 80, 32, 50, 68, 83, 86, 32, 48, 49, 13]
2024-04-19 11:31:26.178 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATPP 2D ON
2024-04-19 11:31:26.239 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: OK, processing time: 61ms
2024-04-19 11:31:26.239 Receive data: {}         E  [65, 84, 80, 80, 32, 50, 68, 32, 79, 78, 13]
2024-04-19 11:31:26.242 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATAT2
2024-04-19 11:31:26.304 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: OK, processing time: 62ms
2024-04-19 11:31:26.305 Receive data: {}         E  [65, 84, 65, 84, 50, 13]
2024-04-19 11:31:26.307 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATSP0
2024-04-19 11:31:26.348 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: OK, processing time: 41ms
2024-04-19 11:31:26.348 Receive data: {}         E  [65, 84, 83, 80, 48, 13]
2024-04-19 11:31:26.351 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 22F190
2024-04-19 11:31:26.839 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: NODATA, processing time: 487ms
2024-04-19 11:31:26.841 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATI
2024-04-19 11:31:26.887 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: ELM327V1.5, processing time: 45ms
2024-04-19 11:31:26.887 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.command.meta.HexCommand - Decoding the message: ELM327V1.5
2024-04-19 11:31:26.888 System.err               W  [pool-4-thread-1] WARN org.obd.metrics.command.meta.MetadataCommand - Failed to decode message. Invalid answer code. Message:ATI
2024-04-19 11:31:26.888 Receive data: {}         E  [65, 84, 73, 13]
2024-04-19 11:31:26.891 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 22F18C
2024-04-19 11:31:27.139 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: NODATA, processing time: 248ms
2024-04-19 11:31:27.142 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: AT@1
2024-04-19 11:31:27.194 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: OBDIITORS232INTERPRETER, processing time: 51ms
2024-04-19 11:31:27.194 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.command.meta.HexCommand - Decoding the message: OBDIITORS232INTERPRETER
2024-04-19 11:31:27.195 System.err               W  [pool-4-thread-1] WARN org.obd.metrics.command.meta.MetadataCommand - Failed to decode message. Invalid answer code. Message:AT@1
2024-04-19 11:31:27.196 Receive data: {}         E  [65, 84, 64, 49, 13]
2024-04-19 11:31:27.198 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 22F194
2024-04-19 11:31:27.445 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: NODATA, processing time: 246ms
2024-04-19 11:31:27.447 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 22F191
2024-04-19 11:31:27.692 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: NODATA, processing time: 245ms
2024-04-19 11:31:27.695 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATDP
2024-04-19 11:31:27.780 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: AUTO,ISO15765-4(CAN11/500), processing time: 85ms
2024-04-19 11:31:27.781 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.command.meta.HexCommand - Decoding the message: AUTO,ISO15765-4(CAN11/500)
2024-04-19 11:31:27.782 System.err               W  [pool-4-thread-1] WARN org.obd.metrics.command.meta.MetadataCommand - Failed to decode message. Invalid answer code. Message:ATDP
2024-04-19 11:31:27.782 Receive data: {}         E  [65, 84, 68, 80, 13]
2024-04-19 11:31:27.786 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 22F192
2024-04-19 11:31:28.035 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: NODATA, processing time: 250ms
2024-04-19 11:31:28.037 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 22F187
2024-04-19 11:31:28.288 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: NODATA, processing time: 250ms
2024-04-19 11:31:28.290 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 22F196
2024-04-19 11:31:28.539 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: NODATA, processing time: 249ms
2024-04-19 11:31:28.542 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 22F195
2024-04-19 11:31:28.788 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: NODATA, processing time: 246ms
2024-04-19 11:31:28.791 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 22F193
2024-04-19 11:31:29.040 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: NODATA, processing time: 248ms
2024-04-19 11:31:29.043 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 22F1A5
2024-04-19 11:31:29.289 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: NODATA, processing time: 246ms
2024-04-19 11:31:29.292 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 222008
2024-04-19 11:31:29.538 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: NODATA, processing time: 246ms
2024-04-19 11:31:29.541 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 221008
2024-04-19 11:31:29.794 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: NODATA, processing time: 252ms
2024-04-19 11:31:29.796 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 0902
2024-04-19 11:31:30.087 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 0140:4902014A54481:424135443232302:35303138303830, processing time: 291ms
2024-04-19 11:31:30.087 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.command.meta.HexCommand - Decoding the message: 0140:4902014A54481:424135443232302:35303138303830
2024-04-19 11:31:30.089 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.command.meta.HexCommand - Decoded message: JTHBA5D2205018080 for: 0140:4902014A54481:424135443232302:35303138303830
2024-04-19 11:31:30.089 Receive data: {}         E  [48, 57, 48, 50, 13]
2024-04-19 11:31:30.091 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 0100
2024-04-19 11:31:30.207 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 4100BE1FA8134100981A8013, processing time: 115ms
2024-04-19 11:31:30.215 Receive data: {}         E  [48, 49, 48, 48, 13]
2024-04-19 11:31:30.218 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 0120
2024-04-19 11:31:30.303 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 41209005B015412080018001, processing time: 85ms
2024-04-19 11:31:30.307 Receive data: {}         E  [48, 49, 50, 48, 13]
2024-04-19 11:31:30.310 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 0140
2024-04-19 11:31:30.382 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 4140400C000141407ADC8011, processing time: 73ms
2024-04-19 11:31:30.388 Receive data: {}         E  [48, 49, 52, 48, 13]
2024-04-19 11:31:30.390 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 0160
2024-04-19 11:31:30.467 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 416008094200416008000000, processing time: 76ms
2024-04-19 11:31:30.471 Receive data: {}         E  [48, 49, 54, 48, 13]
2024-04-19 11:31:30.473 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 0180
2024-04-19 11:31:30.739 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: NODATA, processing time: 266ms
2024-04-19 11:31:30.742 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01A0
2024-04-19 11:31:30.990 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: NODATA, processing time: 248ms
2024-04-19 11:31:30.993 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01C0
2024-04-19 11:31:31.239 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: NODATA, processing time: 246ms
2024-04-19 11:31:32.244 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.executor.InitCompletedHandler - Initialization process is completed.
2024-04-19 11:31:32.245 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.executor.InitCompletedHandler - Found Vehicle metadata: {Communication protocol=AUTO,ISO15765-4(CAN11/500), Adapter description=OBDIITORS232INTERPRETER, VIN=JTHBA5D2205018080, Adapter ID=ELM327V1.5}.
2024-04-19 11:31:32.246 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.executor.InitCompletedHandler - Found Vehicle capabilities: [22, 01, 24, 03, 04, 26, 05, 27, 06, 28, 07, 29, 09, 1c, 1e, 1f, 31, 10, 32, 11, 33, 34, 13, 35, 14, 36, 15, 38, 39, 2b, 0c, 0d, 0e, 0f, 20, 21].
2024-04-19 11:31:32.247 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.executor.InitCompletedHandler - Found Diagnostic Trouble Codes: [].
2024-04-19 11:31:32.247 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.executor.InitCompletedHandler - Status of the Diagnostic Trouble Codes cleanup: NO_DATA.
2024-04-19 11:31:32.249 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.LifecycleAdapter - Received onRunning event. Starting ConnectionManager thread.
2024-04-19 11:31:32.249 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.LifecycleAdapter - Received onRunning event. Starting CommandProducer thread.
2024-04-19 11:31:32.250 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.LifecycleAdapter - Received onRunning event. Starting ConnectorResponseDecoder thread.
2024-04-19 11:31:32.251 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.LifecycleAdapter - Received onRunning event. Starting CommandLoop thread.
2024-04-19 11:31:32.283 System.err               W  [pool-4-thread-2] INFO org.obd.metrics.api.CANMessageHeaderManager - Determined single mode=true, available modes=[01]
2024-04-19 11:31:32.284 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-19 11:31:32.367 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C80043500D0:410C0C760435, processing time: 83ms
2024-04-19 11:31:32.371 System.err               W  [pool-4-thread-3] ERROR org.obd.metrics.codec.formula.backend.ScriptEngineBackend - Failed to evaluate the formula (((A*256)+B)/4) for PID: 0C
2024-04-19 11:31:32.372 System.err               W  [pool-4-thread-3] ERROR org.obd.metrics.codec.formula.backend.ScriptEngineBackend - Failed to evaluate the formula A for PID: 0D
2024-04-19 11:31:32.372 System.err               W  [pool-4-thread-3] ERROR org.obd.metrics.codec.formula.backend.ScriptEngineBackend - Failed to evaluate the formula parseFloat((A*100/255).toFixed(2)) for PID: 04
2024-04-19 11:31:32.451 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-19 11:31:32.514 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C6704351:0D0005834233BA, processing time: 63ms
2024-04-19 11:31:32.516 System.err               W  [pool-4-thread-3] ERROR org.obd.metrics.codec.formula.backend.ScriptEngineBackend - Failed to evaluate the formula (((A*256)+B)/4) for PID: 0C
2024-04-19 11:31:32.517 System.err               W  [pool-4-thread-3] ERROR org.obd.metrics.codec.formula.backend.ScriptEngineBackend - Failed to evaluate the formula A for PID: 0D
2024-04-19 11:31:32.518 System.err               W  [pool-4-thread-3] ERROR org.obd.metrics.codec.formula.backend.ScriptEngineBackend - Failed to evaluate the formula ((A*256)+B)/1000 for PID: 42
2024-04-19 11:31:32.519 System.err               W  [pool-4-thread-3] ERROR org.obd.metrics.codec.formula.backend.ScriptEngineBackend - Failed to evaluate the formula parseFloat((A*100/255).toFixed(2)) for PID: 04
2024-04-19 11:31:32.519 System.err               W  [pool-4-thread-3] ERROR org.obd.metrics.codec.formula.backend.ScriptEngineBackend - Failed to evaluate the formula A-40 for PID: 05
2024-04-19 11:31:32.619 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-19 11:31:32.724 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C6D043500D0:410C0C6A0435, processing time: 106ms
2024-04-19 11:31:32.726 System.err               W  [pool-4-thread-3] ERROR org.obd.metrics.codec.formula.backend.ScriptEngineBackend - Failed to evaluate the formula (((A*256)+B)/4) for PID: 0C
2024-04-19 11:31:32.726 System.err               W  [pool-4-thread-3] ERROR org.obd.metrics.codec.formula.backend.ScriptEngineBackend - Failed to evaluate the formula A for PID: 0D
2024-04-19 11:31:32.727 System.err               W  [pool-4-thread-3] ERROR org.obd.metrics.codec.formula.backend.ScriptEngineBackend - Failed to evaluate the formula parseFloat((A*100/255).toFixed(2)) for PID: 04
2024-04-19 11:31:32.786 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-19 11:31:32.859 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C73043500D0:410C0C700435, processing time: 73ms
2024-04-19 11:31:32.861 System.err               W  [pool-4-thread-3] ERROR org.obd.metrics.codec.formula.backend.ScriptEngineBackend - Failed to evaluate the formula (((A*256)+B)/4) for PID: 0C
2024-04-19 11:31:32.862 System.err               W  [pool-4-thread-3] ERROR org.obd.metrics.codec.formula.backend.ScriptEngineBackend - Failed to evaluate the formula A for PID: 0D
2024-04-19 11:31:32.862 System.err               W  [pool-4-thread-3] ERROR org.obd.metrics.codec.formula.backend.ScriptEngineBackend - Failed to evaluate the formula parseFloat((A*100/255).toFixed(2)) for PID: 04
2024-04-19 11:31:32.953 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-19 11:31:33.038 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C80043500D0:410C0C7C0435, processing time: 85ms
2024-04-19 11:31:33.040 System.err               W  [pool-4-thread-3] ERROR org.obd.metrics.codec.formula.backend.ScriptEngineBackend - Failed to evaluate the formula (((A*256)+B)/4) for PID: 0C
2024-04-19 11:31:33.041 System.err               W  [pool-4-thread-3] ERROR org.obd.metrics.codec.formula.backend.ScriptEngineBackend - Failed to evaluate the formula A for PID: 0D
2024-04-19 11:31:33.041 System.err               W  [pool-4-thread-3] ERROR org.obd.metrics.codec.formula.backend.ScriptEngineBackend - Failed to evaluate the formula parseFloat((A*100/255).toFixed(2)) for PID: 04
2024-04-19 11:31:33.119 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-19 11:31:33.191 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C83043500D0:410C0C830435, processing time: 72ms
2024-04-19 11:31:33.192 System.err               W  [pool-4-thread-3] ERROR org.obd.metrics.codec.formula.backend.ScriptEngineBackend - Failed to evaluate the formula (((A*256)+B)/4) for PID: 0C
2024-04-19 11:31:33.193 System.err               W  [pool-4-thread-3] ERROR org.obd.metrics.codec.formula.backend.ScriptEngineBackend - Failed to evaluate the formula A for PID: 0D
2024-04-19 11:31:33.193 System.err               W  [pool-4-thread-3] ERROR org.obd.metrics.codec.formula.backend.ScriptEngineBackend - Failed to evaluate the formula parseFloat((A*100/255).toFixed(2)) for PID: 04
2024-04-19 11:31:33.285 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-19 11:31:33.371 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C92043500D0:410C0C920435, processing time: 86ms
2024-04-19 11:31:33.373 System.err               W  [pool-4-thread-3] ERROR org.obd.metrics.codec.formula.backend.ScriptEngineBackend - Failed to evaluate the formula (((A*256)+B)/4) for PID: 0C
2024-04-19 11:31:33.373 System.err               W  [pool-4-thread-3] ERROR org.obd.metrics.codec.formula.backend.ScriptEngineBackend - Failed to evaluate the formula A for PID: 0D
2024-04-19 11:31:33.374 System.err               W  [pool-4-thread-3] ERROR org.obd.metrics.codec.formula.backend.ScriptEngineBackend - Failed to evaluate the formula parseFloat((A*100/255).toFixed(2)) for PID: 04
2024-04-19 11:31:33.453 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-19 11:31:33.540 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C8F043400D0:410C0C8F0435, processing time: 87ms
2024-04-19 11:31:33.540 System.err               W  [pool-4-thread-3] ERROR org.obd.metrics.codec.formula.backend.ScriptEngineBackend - Failed to evaluate the formula (((A*256)+B)/4) for PID: 0C
2024-04-19 11:31:33.541 System.err               W  [pool-4-thread-3] ERROR org.obd.metrics.codec.formula.backend.ScriptEngineBackend - Failed to evaluate the formula A for PID: 0D
2024-04-19 11:31:33.541 System.err               W  [pool-4-thread-3] ERROR org.obd.metrics.codec.formula.backend.ScriptEngineBackend - Failed to evaluate the formula parseFloat((A*100/255).toFixed(2)) for PID: 04
2024-04-19 11:31:33.620 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-19 11:31:33.683 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C9204341:0D0005834233BF, processing time: 63ms
2024-04-19 11:31:33.684 System.err               W  [pool-4-thread-3] ERROR org.obd.metrics.codec.formula.backend.ScriptEngineBackend - Failed to evaluate the formula (((A*256)+B)/4) for PID: 0C
2024-04-19 11:31:33.685 System.err               W  [pool-4-thread-3] ERROR org.obd.metrics.codec.formula.backend.ScriptEngineBackend - Failed to evaluate the formula A for PID: 0D
2024-04-19 11:31:33.685 System.err               W  [pool-4-thread-3] ERROR org.obd.metrics.codec.formula.backend.ScriptEngineBackend - Failed to evaluate the formula ((A*256)+B)/1000 for PID: 42
2024-04-19 11:31:33.686 System.err               W  [pool-4-thread-3] ERROR org.obd.metrics.codec.formula.backend.ScriptEngineBackend - Failed to evaluate the formula parseFloat((A*100/255).toFixed(2)) for PID: 04
2024-04-19 11:31:33.686 System.err               W  [pool-4-thread-3] ERROR org.obd.metrics.codec.formula.backend.ScriptEngineBackend - Failed to evaluate the formula A-40 for PID: 05

The third way to modify the program:

        var optional = Adjustments
                .builder()
                .debugEnabled(true)
                .batchPolicy(BatchPolicy.builder().enabled(Boolean.TRUE).build())
                .build();

Logcat:

2024-04-19 11:34:18.588 PcBluetoothConnection    E  Successfully connected to the adapter: C9:59:65:89:9D:F0
2024-04-19 11:34:18.591 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.transport.Connector
2024-04-19 11:34:18.591 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.buffer.decoder.ConnectorResponseBuffer
2024-04-19 11:34:18.591 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.pid.PidDefinitionRegistry
2024-04-19 11:34:18.592 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.api.EventsPublishlisher
2024-04-19 11:34:18.592 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.api.CommandProducer
2024-04-19 11:34:18.597 System.err               W  [pool-4-thread-2] INFO org.obd.metrics.api.CommandProducer - Starting command producer thread. Priorities: {0=0, 1=5, 2=15, 3=35, 4=50, 5=100, 6=200, 7=500, 8=1000, 9=5000, 10=10000} 
2024-04-19 11:34:18.598 System.err               W  [pool-4-thread-2] INFO org.obd.metrics.api.AdaptiveTimeout - Scheduling adaptive timeout task. Fixed rate: 10000
2024-04-19 11:34:18.600 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.CommandLoop - Starting command executor thread..
2024-04-19 11:34:18.651 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATD
2024-04-19 11:34:18.703 System.err               W  [pool-4-thread-2] INFO org.obd.metrics.codec.batch.AbstractBatchCodec - Calculated response length: 24 for commands '01 0C 04 0D 05 42'
2024-04-19 11:34:18.704 System.err               W  [pool-4-thread-2] INFO org.obd.metrics.api.CommandsSuplier - Build target commands list: [[priority=0, query=01 0C 04 0D 05 42 2]]
2024-04-19 11:34:18.762 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: OK, processing time: 111ms
2024-04-19 11:34:18.762 Receive data: {}         E  [65, 84, 68, 13]
2024-04-19 11:34:18.765 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATZ
2024-04-19 11:34:19.625 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: ATZÜELM327V1.5, processing time: 859ms
2024-04-19 11:34:19.625 Receive data: {}         E  [65, 84, 90, 13]
2024-04-19 11:34:19.630 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATL0
2024-04-19 11:34:19.674 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: ATL0OK, processing time: 43ms
2024-04-19 11:34:19.674 Receive data: {}         E  [65, 84, 76, 48, 13]
2024-04-19 11:34:19.677 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATH0
2024-04-19 11:34:19.719 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: ATH0OK, processing time: 42ms
2024-04-19 11:34:19.719 Receive data: {}         E  [65, 84, 72, 48, 13]
2024-04-19 11:34:19.722 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATE0
2024-04-19 11:34:19.768 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: ATE0OK, processing time: 46ms
2024-04-19 11:34:19.768 Receive data: {}         E  [65, 84, 69, 48, 13]
2024-04-19 11:34:19.770 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATPP 2CSV 01
2024-04-19 11:34:19.808 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: OK, processing time: 38ms
2024-04-19 11:34:19.808 Receive data: {}         E  [65, 84, 80, 80, 32, 50, 67, 83, 86, 32, 48, 49, 13]
2024-04-19 11:34:19.810 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATPP 2C ON
2024-04-19 11:34:19.849 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: OK, processing time: 39ms
2024-04-19 11:34:19.850 Receive data: {}         E  [65, 84, 80, 80, 32, 50, 67, 32, 79, 78, 13]
2024-04-19 11:34:19.852 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATPP 2DSV 01
2024-04-19 11:34:19.920 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: OK, processing time: 67ms
2024-04-19 11:34:19.920 Receive data: {}         E  [65, 84, 80, 80, 32, 50, 68, 83, 86, 32, 48, 49, 13]
2024-04-19 11:34:19.923 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATPP 2D ON
2024-04-19 11:34:19.963 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: OK, processing time: 39ms
2024-04-19 11:34:19.963 Receive data: {}         E  [65, 84, 80, 80, 32, 50, 68, 32, 79, 78, 13]
2024-04-19 11:34:19.965 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATAT2
2024-04-19 11:34:20.027 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: OK, processing time: 62ms
2024-04-19 11:34:20.028 Receive data: {}         E  [65, 84, 65, 84, 50, 13]
2024-04-19 11:34:20.030 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATSP0
2024-04-19 11:34:20.102 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: OK, processing time: 72ms
2024-04-19 11:34:20.103 Receive data: {}         E  [65, 84, 83, 80, 48, 13]
2024-04-19 11:34:21.108 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.executor.InitCompletedHandler - Initialization process is completed.
2024-04-19 11:34:21.109 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.executor.InitCompletedHandler - Found Vehicle metadata: {}.
2024-04-19 11:34:21.109 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.executor.InitCompletedHandler - Found Vehicle capabilities: [].
2024-04-19 11:34:21.109 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.executor.InitCompletedHandler - Found Diagnostic Trouble Codes: [].
2024-04-19 11:34:21.110 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.executor.InitCompletedHandler - Status of the Diagnostic Trouble Codes cleanup: NO_DATA.
2024-04-19 11:34:21.112 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.LifecycleAdapter - Received onRunning event. Starting CommandProducer thread.
2024-04-19 11:34:21.113 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.LifecycleAdapter - Received onRunning event. Starting ConnectorResponseDecoder thread.
2024-04-19 11:34:21.114 System.err               W  [pool-5-thread-1] WARN org.obd.metrics.codec.formula.FormulaEvaluatorCachePersitence - Failed to load cache from the disk: ./result_cache.json: open failed: ENOENT (No such file or directory)
2024-04-19 11:34:21.114 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.LifecycleAdapter - Received onRunning event. Starting CommandLoop thread.
2024-04-19 11:34:21.115 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.LifecycleAdapter - Received onRunning event. Starting ConnectionManager thread.
2024-04-19 11:34:21.141 System.err               W  [pool-4-thread-2] INFO org.obd.metrics.api.CANMessageHeaderManager - Determined single mode=true, available modes=[01]
2024-04-19 11:34:21.142 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-19 11:34:21.440 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C86043400D0:410C0C890435, processing time: 298ms
2024-04-19 11:34:21.443 System.err               W  [pool-4-thread-3] ERROR org.obd.metrics.codec.formula.backend.ScriptEngineBackend - Failed to evaluate the formula (((A*256)+B)/4) for PID: 0C
2024-04-19 11:34:21.443 System.err               W  [pool-4-thread-3] INFO org.obd.metrics.api.ConnectorResponseDecoder - Completed decoder thread.
2024-04-19 11:34:21.444 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-19 11:34:21.527 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C86043400D0:410C0C860435, processing time: 82ms
2024-04-19 11:34:21.530 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-19 11:34:21.619 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C8C043400D0:410C0C8C0435, processing time: 89ms
2024-04-19 11:34:21.622 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-19 11:34:21.742 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C86043400D0:410C0C860435, processing time: 120ms

@tzebrowski
Copy link
Owner

Hi,

Thanks for provided input, ECU answers looks better now, however I need to check on my end why it cannot be parsed,

  1. Please remove alfa specific configuration, this 22F18C PID is exclusive for Fiat/AR, you don't need it,
TX: 22F18C
RX: NODATA, processing time: 248ms
20
  1. This answer looks more or less looks good. What is the PID 42 about?
TX: 01 0C 04 0D 05 42 2
RX: 00D0:410C0C86043400D0:410C0C860435, processing time: 82ms

@Timmy5818
Copy link
Author

Timmy5818 commented Apr 19, 2024

May I ask which code of the alfa specific configuration you are referring to needs to be modified?

     @SuppressWarnings("all")
     public void test(Context context) throws IOException, InterruptedException, ExecutionException {
         // Automatically connect OBD devices
         var connection = new PcBluetoothConnection(obdMacAddress, context);

         // var connection = new PcBluetoothConnection("CE:5E:89:74:3D:4C");
         // var connection = new PcBluetoothConnection("BA:0D:ED:5B:E7:35");
         var collector = new PcDataCollector();

         final Pids pids = Pids
                 .builder()
                 .resource(Objects.requireNonNull(Thread.currentThread().getContextClassLoader()).getResource("giulia_2.0_gme.json"))
                 .resource(Objects.requireNonNull(Thread.currentThread().getContextClassLoader()).getResource("extra.json"))
                 .resource(Objects.requireNonNull(Thread.currentThread().getContextClassLoader()).getResource("mode01.json"))
                 .resource(Objects.requireNonNull(Thread.currentThread().getContextClassLoader()).getResource("mode01_2.json"))
                 .build();

         int commandFrequency = 6;
         var workflow = Workflow.instance().pids(pids).observer(collector).initialize();

// var query = Query.builder().pid(7005l).pid(7006l).pid(7007l).pid(7008l).build();

         // Enter the required OBD-II PID parameters (the PID parameters are defined in this file,
         // not as defined in the encyclopedia https://github.com/tzebrowski/ObdMetrics/blob/main/src/main/resources/mode01 )
         //Calculated Engine Load
         var calculatedEngineLoad = 5L;
         // Coolant
         var coolant= 6L;
         // Engine Speed
         var engineSpeedPID = 13L;
         //Speed
         var speed = 14L;
         // Control Module Voltage
         var controlModuleVoltage = 67L;
         var query = Query.builder().pid(engineSpeedPID).pid(coolant).pid(calculatedEngineLoad).
                 pid(speed).pid(controlModuleVoltage).build();

// var optional = Adjustments
// .builder()
// .debugEnabled(true)
// .vehicleCapabilitiesReadingEnabled(Boolean.TRUE)
// .vehicleMetadataReadingEnabled(Boolean.TRUE)
// .adaptiveTimeoutPolicy(AdaptiveTimeoutPolicy.builder().enabled(Boolean.TRUE).checkInterval(5000).commandFrequency(commandFrequency).build())
// .producerPolicy(ProducerPolicy.builder().priorityQueueEnabled(Boolean.TRUE).build())
// .cachePolicy(CachePolicy.builder().resultCacheEnabled(Boolean.TRUE).build())
// .batchPolicy(BatchPolicy.builder().responseLengthEnabled(Boolean.FALSE).enabled(Boolean.TRUE).build())
// .build();

         var optional = Adjustments
                 .builder()
                 .debugEnabled(true)
                 .vehicleCapabilitiesReadingEnabled(Boolean.TRUE)
                 .vehicleMetadataReadingEnabled(Boolean.TRUE)
                 .adaptiveTimeoutPolicy(AdaptiveTimeoutPolicy.builder().enabled(Boolean.TRUE).checkInterval(5000).commandFrequency(commandFrequency).build())
                 .producerPolicy(ProducerPolicy.builder().priorityQueueEnabled(Boolean.TRUE).build())
                 .cachePolicy(CachePolicy.builder().resultCacheEnabled(Boolean.FALSE).build())
                 .batchPolicy(BatchPolicy.builder().enabled(Boolean.TRUE).build())
                 .build();

         var init = Init.builder()
                 .delayAfterInit(1000)
// .header(Header.builder().mode("22").header("DA10F1").build())
// .header(Header.builder().mode("01").header("DB33F1").build())
// .protocol(Protocol.CAN_29)
                 .sequence(DefaultCommandGroup.INIT).build();

         workflow.start(connection, query, init, optional);
     }

In addition, I currently set the return data to only have the following PIDs, so I don’t know what PID 42 means.

         //Calculated Engine Load
         var calculatedEngineLoad = 5L;
         // Coolant
         var coolant= 6L;
         // Engine Speed
         var engineSpeedPID = 13L;
         //Speed
         var speed = 14L;
         // Control Module Voltage
         var controlModuleVoltage = 67L;

@tzebrowski
Copy link
Owner

tzebrowski commented Apr 19, 2024

This line refer to AR specific things, please remove it,

.resource(Objects.requireNonNull(Thread.currentThread().getContextClassLoader()).getResource("giulia_2.0_gme.json"))              

Can you please run the tests once again however without this PID

// Control Module Voltage
var controlModuleVoltage = 67L;

@tzebrowski
Copy link
Owner

tzebrowski commented Apr 20, 2024

Most probably the reason the received data is not parsed is because of missing right "javascipt evaluating formula" configured .

For Android platform u should have something like this:

Workflow.instance()
        .formulaEvaluatorConfig(FormulaEvaluatorConfig.builder().scriptEngine("rhino").build())

and in addition in your deps you should have following references:

  implementation 'io.apisense:rhino-android:1.1.1'

@Timmy5818
Copy link
Author

Timmy5818 commented Apr 23, 2024

Thank you very much for your help. I have changed it to the following equation according to your suggestion and it can run normally and receive the following data displayed by Logcat.
Other questions I would like to ask at the moment are:

  1. If I want to obtain all the data that can support PID for this vehicle, how do I obtain it?
    Do we need to first obtain the PIDs that can be supported, and then display these PIDs one by one?

  2. I currently encounter a strange problem when testing BMW models. Why does the speed often jump back and forth between 65Km/h and the real speed? In fact, the vehicle speed may be 0Km/h or the actual speed when driving may be 40Km/h. h, but it will jump out to 65Km/h and not the actual speed?

    @SuppressWarnings("all")
    public void test(Context context) throws IOException, InterruptedException, ExecutionException {
        // Automatically connect OBD devices
        var connection = new PcBluetoothConnection(obdMacAddress, context);
        var collector = new PcDataCollector();

        final Pids pids = Pids
                .builder()
//                .resource(Objects.requireNonNull(Thread.currentThread().getContextClassLoader()).getResource("giulia_2.0_gme.json"))
                .resource(Objects.requireNonNull(Thread.currentThread().getContextClassLoader()).getResource("extra.json"))
                .resource(Objects.requireNonNull(Thread.currentThread().getContextClassLoader()).getResource("mode01.json"))
                .resource(Objects.requireNonNull(Thread.currentThread().getContextClassLoader()).getResource("mode01_2.json"))
                .build();

        int commandFrequency = 6;

        var workflow = Workflow.instance()
                .formulaEvaluatorConfig(FormulaEvaluatorConfig.builder().scriptEngine("rhino").build())
                .pids(pids).observer(collector).initialize();

        // Enter the required OBD-II PID parameters (the PID parameters are defined in this file,
        // not as defined in the encyclopedia https://github.com/tzebrowski/ObdMetrics/blob/main/src/main/resources/mode01 )
        // Calculated Engine Load
        var calculatedEngineLoad = 5L;
        // Coolant
        var coolant= 6L;
        // Engine Speed
        var engineSpeedPID = 13L;
        // Speed
        var speed = 14L;
        // Control Module Voltage
        var controlModuleVoltage = 67L;

        var query = Query.builder()
                .pid(engineSpeedPID)
                .pid(coolant)
                .pid(calculatedEngineLoad)
                .pid(controlModuleVoltage)
                .pid(speed)
                .build();

        var optional = Adjustments
                .builder()
                .debugEnabled(true)
                .vehicleCapabilitiesReadingEnabled(Boolean.TRUE)
                .vehicleMetadataReadingEnabled(Boolean.TRUE)
                .adaptiveTimeoutPolicy(AdaptiveTimeoutPolicy.builder().enabled(Boolean.TRUE).checkInterval(5000).commandFrequency(commandFrequency).build())
                .producerPolicy(ProducerPolicy.builder().priorityQueueEnabled(Boolean.TRUE).build())
                .cachePolicy(CachePolicy.builder().resultCacheEnabled(Boolean.FALSE).build())
                .batchPolicy(BatchPolicy.builder().enabled(Boolean.TRUE).build())
                .build();

        var init = Init.builder()
                .delayAfterInit(1000)
//                .header(Header.builder().mode("22").header("DA10F1").build())
//                .header(Header.builder().mode("01").header("DB33F1").build())
//                .protocol(Protocol.CAN_29)
                .sequence(DefaultCommandGroup.INIT).build();

        workflow.start(connection, query, init, optional);
    }

The following information is from Toyota's actual test Logcat:

2024-04-22 16:18:49.175 PcDataCollector          E  ObdMetric [pid=05, id=6, val=86, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-22 16:18:49.175 PcDataCollector          E  coolant: 86
2024-04-22 16:18:49.364 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-22 16:18:49.364 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=773, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-22 16:18:49.364 PcDataCollector          E  Vehicle RPM: 773.0
2024-04-22 16:18:49.367 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-22 16:18:49.367 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=0, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-22 16:18:49.367 PcDataCollector          E  Vehicle Speed: 0
2024-04-22 16:18:49.370 Receive data: {}         E  [48, 49, 52, 50, 13]
2024-04-22 16:18:49.370 PcDataCollector          E  ObdMetric [pid=42, id=67, val=13.32, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-22 16:18:49.370 PcDataCollector          E  Control Module Voltage: 13.32
2024-04-22 16:18:49.374 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-22 16:18:49.374 PcDataCollector          E  ObdMetric [pid=04, id=5, val=34.9, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-22 16:18:49.374 PcDataCollector          E  Calculated Engine Load: 34.9
2024-04-22 16:18:49.377 Receive data: {}         E  [48, 49, 48, 53, 13]
2024-04-22 16:18:49.377 PcDataCollector          E  ObdMetric [pid=05, id=6, val=86, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-22 16:18:49.377 PcDataCollector          E  coolant: 86
2024-04-22 16:18:49.511 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-22 16:18:49.511 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=766, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-22 16:18:49.511 PcDataCollector          E  Vehicle RPM: 766.0
2024-04-22 16:18:49.514 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-22 16:18:49.514 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=0, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-22 16:18:49.514 PcDataCollector          E  Vehicle Speed: 0
2024-04-22 16:18:49.517 Receive data: {}         E  [48, 49, 52, 50, 13]
2024-04-22 16:18:49.517 PcDataCollector          E  ObdMetric [pid=42, id=67, val=13.3, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-22 16:18:49.517 PcDataCollector          E  Control Module Voltage: 13.3
2024-04-22 16:18:49.520 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-22 16:18:49.521 PcDataCollector          E  ObdMetric [pid=04, id=5, val=34.9, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-22 16:18:49.521 PcDataCollector          E  Calculated Engine Load: 34.9
2024-04-22 16:18:49.524 Receive data: {}         E  [48, 49, 48, 53, 13]
2024-04-22 16:18:49.524 PcDataCollector          E  ObdMetric [pid=05, id=6, val=86, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-22 16:18:49.524 PcDataCollector          E  coolant: 86
2024-04-22 16:18:49.671 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-22 16:18:49.671 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=775, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-22 16:18:49.672 PcDataCollector          E  Vehicle RPM: 775.0
2024-04-22 16:18:49.674 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-22 16:18:49.675 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=0, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-22 16:18:49.675 PcDataCollector          E  Vehicle Speed: 0
2024-04-22 16:18:49.677 Receive data: {}         E  [48, 49, 52, 50, 13]
2024-04-22 16:18:49.678 PcDataCollector          E  ObdMetric [pid=42, id=67, val=13.3, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-22 16:18:49.678 PcDataCollector          E  Control Module Voltage: 13.3
2024-04-22 16:18:49.681 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-22 16:18:49.681 PcDataCollector          E  ObdMetric [pid=04, id=5, val=34.9, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-22 16:18:49.681 PcDataCollector          E  Calculated Engine Load: 34.9
2024-04-22 16:18:49.684 Receive data: {}         E  [48, 49, 48, 53, 13]
2024-04-22 16:18:49.684 PcDataCollector          E  ObdMetric [pid=05, id=6, val=86, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-22 16:18:49.684 PcDataCollector          E  coolant: 86

@tzebrowski
Copy link
Owner

Great that it works.

If I want to obtain all the data that can support PID for this vehicle, how do I obtain it?
Do we need to first obtain the PIDs that can be supported, and then display these PIDs one by one?

You need to enable vehicle capabilities reading and connect Lifecycle listener.

		final Adjustments optional = Adjustments
		        .builder()
		        .vehicleCapabilitiesReadingEnabled(Boolean.TRUE)
		        .build();

You will receive supported PIDs within Lifecycle.onRunning callback.

@Slf4j
public final class SimpleLifecycle implements Lifecycle {
	@Override
	public void onRunning(VehicleCapabilities props) {
		log.info("Vehicle capabilities(): {}", props.getCapabilities());
		this.properties = props;
	}

I currently encounter a strange problem when testing BMW models. Why does the speed often jump back and forth between 65Km/h and the real speed? In fact, the vehicle speed may be 0Km/h or the actual speed when driving may be 40Km/h. h, but it will jump out to 65Km/h and not the actual speed?

I need raw logs (Adjustments .debugEnabled= true) from adapter to analyses this issue,

@Timmy5818
Copy link
Author

Timmy5818 commented Apr 25, 2024

Hello, I tested a LEXUS vehicle today (4/25) and this problem also occurs. The following is the current recorded content and program. Because there is currently a problem in reading the vehicle speed, it will jump back and forth between 65Km/h and the real vehicle speed. Currently The temporary solution is to use the last read true speed display if 65Km/h is read. In addition, the PID that displays vehicle support will be tested at a later date. Thank you~

OBDBluetoothService.java:

    @SuppressWarnings("all")
    public void test(Context context) throws IOException, InterruptedException, ExecutionException {
        // Automatically connect OBD devices
        var connection = new PcBluetoothConnection(obdMacAddress, context);
        var collector = new PcDataCollector();

        final Pids pids = Pids
                .builder()
//                .resource(Objects.requireNonNull(Thread.currentThread().getContextClassLoader()).getResource("giulia_2.0_gme.json"))
                .resource(Objects.requireNonNull(Thread.currentThread().getContextClassLoader()).getResource("extra.json"))
                .resource(Objects.requireNonNull(Thread.currentThread().getContextClassLoader()).getResource("mode01.json"))
                .resource(Objects.requireNonNull(Thread.currentThread().getContextClassLoader()).getResource("mode01_2.json"))
                .build();

        int commandFrequency = 6;

        var workflow = Workflow.instance()
                .formulaEvaluatorConfig(FormulaEvaluatorConfig.builder().scriptEngine("rhino").build())
                .pids(pids).observer(collector).initialize();

        // Enter the required OBD-II PID parameters (the PID parameters are defined in this file,
        // not as defined in the encyclopedia https://github.com/tzebrowski/ObdMetrics/blob/main/src/main/resources/mode01 )
        // Calculated Engine Load
        var calculatedEngineLoad = 5L;
        // Coolant
        var coolant= 6L;
        // Engine Speed
        var engineSpeedPID = 13L;
        // Speed
        var speed = 14L;
        // Control Module Voltage
        var controlModuleVoltage = 67L;

        var query = Query.builder()
                .pid(engineSpeedPID)
                .pid(coolant)
                .pid(calculatedEngineLoad)
                .pid(controlModuleVoltage)
                .pid(speed)
                .build();

        var optional = Adjustments
                .builder()
                .debugEnabled(true)
                .vehicleCapabilitiesReadingEnabled(Boolean.TRUE)
                .vehicleMetadataReadingEnabled(Boolean.TRUE)
                .adaptiveTimeoutPolicy(AdaptiveTimeoutPolicy.builder().enabled(Boolean.TRUE).checkInterval(5000).commandFrequency(commandFrequency).build())
                .producerPolicy(ProducerPolicy.builder().priorityQueueEnabled(Boolean.TRUE).build())
                .cachePolicy(CachePolicy.builder().resultCacheEnabled(Boolean.FALSE).build())
                .batchPolicy(BatchPolicy.builder().enabled(Boolean.TRUE).build())
                .build();

        var init = Init.builder()
                .delayAfterInit(1000)
//                .header(Header.builder().mode("22").header("DA10F1").build())
//                .header(Header.builder().mode("01").header("DB33F1").build())
//                .protocol(Protocol.CAN_29)
                .sequence(DefaultCommandGroup.INIT).build();

        workflow.start(connection, query, init, optional);
    }

DataCollector.java:

    @Override
    public void onNext(Reply<?> reply) {
        Log.e("Receive data: {}", Arrays.toString(reply.getCommand().getData()));
//        data.put(reply.getCommand(), reply);

        if (reply instanceof ObdMetric) {
            ObdMetric obdMetric = (ObdMetric) reply;
            Log.e("PcDataCollector", String.valueOf(obdMetric));
            // Display data
            // (defined from this file https://github.com/tzebrowski/ObdMetrics/blob/main/src/main/resources/mode01.json )
            // Calculated Engine Load
            if (obdMetric.getCommand().getPid().getId() == 5) {
                Log.e("PcDataCollector", "Calculated Engine Load: " + obdMetric.getValue());
                PcOBDHandler.Companion.calculatedEngineLoadDataUpdate(obdMetric.getValue().toString());

                // Coolant
            } else if (obdMetric.getCommand().getPid().getId() == 6) {
                Log.e("PcDataCollector", "coolant: " + obdMetric.getValue());
                PcOBDHandler.Companion.coolantDataUpdate(obdMetric.getValue().toString());

                // Engine Speed
            } else if (obdMetric.getCommand().getPid().getId() == 13) {
                double rpm = obdMetric.getValue().doubleValue();
                Log.e("PcDataCollector", "Vehicle RPM: " + rpm);
                PcOBDHandler.Companion.engineSpeedDataUpdate(String.valueOf(rpm));

                // Speed
            } else if (obdMetric.getCommand().getPid().getId() == 14) {
                Log.e("PcDataCollector", "Vehicle Speed: " + obdMetric.getValue());
                int speed = (int) obdMetric.getValue();

                if (speed != 65) {
                    PcOBDHandler.Companion.speedDataUpdate(obdMetric.getValue().toString());
                }

                // Control Module Voltage
            } else if (obdMetric.getCommand().getPid().getId() == 67) {
                Log.e("PcDataCollector", "Control Module Voltage: " + obdMetric.getValue());
                PcOBDHandler.Companion.controlModuleVoltageDataUpdate(obdMetric.getValue().toString());
            }

            metrics.put(((ObdMetric) reply).getCommand().getPid(), (ObdMetric) reply);
        }

    }

Logcat:

2024-04-25 14:27:51.663 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:27:51.664 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=802, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:51.664 PcDataCollector          E  Vehicle RPM: 802.0
2024-04-25 14:27:51.665 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:27:51.665 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=0, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:51.665 PcDataCollector          E  Vehicle Speed: 0
2024-04-25 14:27:51.667 Receive data: {}         E  [48, 49, 52, 50, 13]
2024-04-25 14:27:51.667 PcDataCollector          E  ObdMetric [pid=42, id=67, val=13.247, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:51.667 PcDataCollector          E  Control Module Voltage: 13.247
2024-04-25 14:27:51.668 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:27:51.669 PcDataCollector          E  ObdMetric [pid=04, id=5, val=22.35, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:51.669 PcDataCollector          E  Calculated Engine Load: 22.35
2024-04-25 14:27:51.670 Receive data: {}         E  [48, 49, 48, 53, 13]
2024-04-25 14:27:51.670 PcDataCollector          E  ObdMetric [pid=05, id=6, val=91, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:51.670 PcDataCollector          E  coolant: 91
2024-04-25 14:27:51.755 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:27:51.841 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C80043900D0:410C0C7C0439, processing time: 86ms
2024-04-25 14:27:51.843 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:27:51.843 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=800, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:51.843 PcDataCollector          E  Vehicle RPM: 800.0
2024-04-25 14:27:51.845 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:27:51.845 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=65, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:51.845 PcDataCollector          E  Vehicle Speed: 65
2024-04-25 14:27:51.846 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:27:51.846 PcDataCollector          E  ObdMetric [pid=04, id=5, val=22.35, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:51.846 PcDataCollector          E  Calculated Engine Load: 22.35
2024-04-25 14:27:51.911 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:27:51.992 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C86043900D0:410C0C860439, processing time: 81ms
2024-04-25 14:27:51.996 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:27:51.996 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=801, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:51.996 PcDataCollector          E  Vehicle RPM: 801.0
2024-04-25 14:27:51.998 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:27:51.998 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=65, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:51.998 PcDataCollector          E  Vehicle Speed: 65
2024-04-25 14:27:52.000 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:27:52.001 PcDataCollector          E  ObdMetric [pid=04, id=5, val=22.35, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:52.001 PcDataCollector          E  Calculated Engine Load: 22.35
2024-04-25 14:27:52.069 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:27:52.214 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C79043900D0:410C0C790439, processing time: 144ms
2024-04-25 14:27:52.218 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:27:52.218 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=798, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:52.219 PcDataCollector          E  Vehicle RPM: 798.0
2024-04-25 14:27:52.222 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:27:52.222 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=65, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:52.222 PcDataCollector          E  Vehicle Speed: 65
2024-04-25 14:27:52.225 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:27:52.225 PcDataCollector          E  ObdMetric [pid=04, id=5, val=22.35, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:52.225 PcDataCollector          E  Calculated Engine Load: 22.35
2024-04-25 14:27:52.226 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:27:52.330 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C80043900D0:410C0C7C0439, processing time: 103ms
2024-04-25 14:27:52.333 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:27:52.333 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=800, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:52.333 PcDataCollector          E  Vehicle RPM: 800.0
2024-04-25 14:27:52.335 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:27:52.335 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=65, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:52.335 PcDataCollector          E  Vehicle Speed: 65
2024-04-25 14:27:52.336 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:27:52.336 PcDataCollector          E  ObdMetric [pid=04, id=5, val=22.35, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:52.336 PcDataCollector          E  Calculated Engine Load: 22.35
2024-04-25 14:27:52.385 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:27:52.463 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C80043900D0:410C0C800439, processing time: 79ms
2024-04-25 14:27:52.465 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:27:52.465 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=800, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:52.466 PcDataCollector          E  Vehicle RPM: 800.0
2024-04-25 14:27:52.467 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:27:52.467 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=65, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:52.467 PcDataCollector          E  Vehicle Speed: 65
2024-04-25 14:27:52.469 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:27:52.469 PcDataCollector          E  ObdMetric [pid=04, id=5, val=22.35, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:52.469 PcDataCollector          E  Calculated Engine Load: 22.35
2024-04-25 14:27:52.542 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:27:52.624 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C89043900D0:410C0C860439, processing time: 82ms
2024-04-25 14:27:52.628 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:27:52.628 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=802, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:52.628 PcDataCollector          E  Vehicle RPM: 802.0
2024-04-25 14:27:52.630 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:27:52.630 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=65, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:52.630 PcDataCollector          E  Vehicle Speed: 65
2024-04-25 14:27:52.633 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:27:52.633 PcDataCollector          E  ObdMetric [pid=04, id=5, val=22.35, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:52.633 PcDataCollector          E  Calculated Engine Load: 22.35
2024-04-25 14:27:52.698 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:27:52.781 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C8C043900D0:410C0C8C0439, processing time: 82ms
2024-04-25 14:27:52.783 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:27:52.783 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=803, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:52.783 PcDataCollector          E  Vehicle RPM: 803.0
2024-04-25 14:27:52.784 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:27:52.784 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=65, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:52.784 PcDataCollector          E  Vehicle Speed: 65
2024-04-25 14:27:52.786 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:27:52.786 PcDataCollector          E  ObdMetric [pid=04, id=5, val=22.35, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:52.786 PcDataCollector          E  Calculated Engine Load: 22.35
2024-04-25 14:27:52.854 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:27:52.939 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C83043900D0:410C0C860439, processing time: 84ms
2024-04-25 14:27:52.942 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:27:52.942 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=800, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:52.942 PcDataCollector          E  Vehicle RPM: 800.0
2024-04-25 14:27:52.943 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:27:52.943 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=65, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:52.943 PcDataCollector          E  Vehicle Speed: 65
2024-04-25 14:27:52.945 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:27:52.945 PcDataCollector          E  ObdMetric [pid=04, id=5, val=22.35, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:52.945 PcDataCollector          E  Calculated Engine Load: 22.35
2024-04-25 14:27:53.010 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:27:53.119 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C8C043900D0:410C0C8C0439, processing time: 108ms
2024-04-25 14:27:53.121 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:27:53.121 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=803, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:53.121 PcDataCollector          E  Vehicle RPM: 803.0
2024-04-25 14:27:53.123 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:27:53.123 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=65, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:53.123 PcDataCollector          E  Vehicle Speed: 65
2024-04-25 14:27:53.124 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:27:53.124 PcDataCollector          E  ObdMetric [pid=04, id=5, val=22.35, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:53.124 PcDataCollector          E  Calculated Engine Load: 22.35
2024-04-25 14:27:53.168 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:27:53.278 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C9904391:0D0005834233BA, processing time: 110ms
2024-04-25 14:27:53.280 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:27:53.280 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=806, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:53.281 PcDataCollector          E  Vehicle RPM: 806.0
2024-04-25 14:27:53.282 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:27:53.282 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=0, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:53.282 PcDataCollector          E  Vehicle Speed: 0
2024-04-25 14:27:53.283 Receive data: {}         E  [48, 49, 52, 50, 13]
2024-04-25 14:27:53.283 PcDataCollector          E  ObdMetric [pid=42, id=67, val=13.242, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:53.283 PcDataCollector          E  Control Module Voltage: 13.242
2024-04-25 14:27:53.285 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:27:53.285 PcDataCollector          E  ObdMetric [pid=04, id=5, val=22.35, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:53.285 PcDataCollector          E  Calculated Engine Load: 22.35
2024-04-25 14:27:53.286 Receive data: {}         E  [48, 49, 48, 53, 13]
2024-04-25 14:27:53.286 PcDataCollector          E  ObdMetric [pid=05, id=6, val=91, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:53.286 PcDataCollector          E  coolant: 91
2024-04-25 14:27:53.326 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:27:53.385 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C9504391:0D0005834233BA, processing time: 58ms
2024-04-25 14:27:53.388 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:27:53.388 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=805, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:53.388 PcDataCollector          E  Vehicle RPM: 805.0
2024-04-25 14:27:53.390 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:27:53.391 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=0, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:53.391 PcDataCollector          E  Vehicle Speed: 0
2024-04-25 14:27:53.393 Receive data: {}         E  [48, 49, 52, 50, 13]
2024-04-25 14:27:53.393 PcDataCollector          E  ObdMetric [pid=42, id=67, val=13.242, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:53.393 PcDataCollector          E  Control Module Voltage: 13.242
2024-04-25 14:27:53.396 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:27:53.396 PcDataCollector          E  ObdMetric [pid=04, id=5, val=22.35, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:53.397 PcDataCollector          E  Calculated Engine Load: 22.35
2024-04-25 14:27:53.399 Receive data: {}         E  [48, 49, 48, 53, 13]
2024-04-25 14:27:53.399 PcDataCollector          E  ObdMetric [pid=05, id=6, val=91, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:53.399 PcDataCollector          E  coolant: 91
2024-04-25 14:27:53.483 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:27:53.566 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C8F043800D0:410C0C8F0438, processing time: 82ms
2024-04-25 14:27:53.568 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:27:53.568 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=803, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:53.568 PcDataCollector          E  Vehicle RPM: 803.0
2024-04-25 14:27:53.569 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:27:53.569 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=65, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:53.570 PcDataCollector          E  Vehicle Speed: 65
2024-04-25 14:27:53.571 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:27:53.571 PcDataCollector          E  ObdMetric [pid=04, id=5, val=21.96, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:53.571 PcDataCollector          E  Calculated Engine Load: 21.96
2024-04-25 14:27:53.640 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:27:53.718 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C99043800D0:410C0C950438, processing time: 79ms
2024-04-25 14:27:53.722 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:27:53.722 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=806, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:53.722 PcDataCollector          E  Vehicle RPM: 806.0
2024-04-25 14:27:53.725 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:27:53.725 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=65, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:53.725 PcDataCollector          E  Vehicle Speed: 65
2024-04-25 14:27:53.727 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:27:53.727 PcDataCollector          E  ObdMetric [pid=04, id=5, val=21.96, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:53.727 PcDataCollector          E  Calculated Engine Load: 21.96
2024-04-25 14:27:53.797 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:27:53.882 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C99043800D0:410C0C990438, processing time: 86ms
2024-04-25 14:27:53.885 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:27:53.885 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=806, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:53.886 PcDataCollector          E  Vehicle RPM: 806.0
2024-04-25 14:27:53.887 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:27:53.887 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=65, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:53.887 PcDataCollector          E  Vehicle Speed: 65
2024-04-25 14:27:53.888 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:27:53.888 PcDataCollector          E  ObdMetric [pid=04, id=5, val=21.96, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:53.889 PcDataCollector          E  Calculated Engine Load: 21.96
2024-04-25 14:27:53.953 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:27:54.051 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C8F043800D0:410C0C8F0438, processing time: 99ms
2024-04-25 14:27:54.055 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:27:54.055 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=803, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:54.055 PcDataCollector          E  Vehicle RPM: 803.0
2024-04-25 14:27:54.058 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:27:54.058 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=65, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:54.058 PcDataCollector          E  Vehicle Speed: 65
2024-04-25 14:27:54.061 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:27:54.061 PcDataCollector          E  ObdMetric [pid=04, id=5, val=21.96, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:54.061 PcDataCollector          E  Calculated Engine Load: 21.96
2024-04-25 14:27:54.110 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:27:54.218 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C99043800D0:410C0C990438, processing time: 108ms
2024-04-25 14:27:54.221 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:27:54.222 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=806, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:54.222 PcDataCollector          E  Vehicle RPM: 806.0
2024-04-25 14:27:54.223 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:27:54.223 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=65, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:54.223 PcDataCollector          E  Vehicle Speed: 65
2024-04-25 14:27:54.225 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:27:54.225 PcDataCollector          E  ObdMetric [pid=04, id=5, val=21.96, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:54.225 PcDataCollector          E  Calculated Engine Load: 21.96
2024-04-25 14:27:54.267 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:27:54.349 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C8004381:0D0005834233BF, processing time: 82ms
2024-04-25 14:27:54.351 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:27:54.351 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=800, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:54.351 PcDataCollector          E  Vehicle RPM: 800.0
2024-04-25 14:27:54.353 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:27:54.353 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=0, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:54.353 PcDataCollector          E  Vehicle Speed: 0
2024-04-25 14:27:54.354 Receive data: {}         E  [48, 49, 52, 50, 13]
2024-04-25 14:27:54.354 PcDataCollector          E  ObdMetric [pid=42, id=67, val=13.247, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:54.354 PcDataCollector          E  Control Module Voltage: 13.247
2024-04-25 14:27:54.356 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:27:54.356 PcDataCollector          E  ObdMetric [pid=04, id=5, val=21.96, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:54.356 PcDataCollector          E  Calculated Engine Load: 21.96
2024-04-25 14:27:54.357 Receive data: {}         E  [48, 49, 48, 53, 13]
2024-04-25 14:27:54.357 PcDataCollector          E  ObdMetric [pid=05, id=6, val=91, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:54.357 PcDataCollector          E  coolant: 91
2024-04-25 14:27:54.424 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:27:54.503 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C8C043900D0:410C0C8C0439, processing time: 80ms
2024-04-25 14:27:54.505 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:27:54.505 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=803, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:54.506 PcDataCollector          E  Vehicle RPM: 803.0
2024-04-25 14:27:54.507 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:27:54.507 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=65, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:54.507 PcDataCollector          E  Vehicle Speed: 65
2024-04-25 14:27:54.508 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:27:54.508 PcDataCollector          E  ObdMetric [pid=04, id=5, val=22.35, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:54.508 PcDataCollector          E  Calculated Engine Load: 22.35
2024-04-25 14:27:54.581 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:27:54.665 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C89043900D0:410C0C890439, processing time: 83ms
2024-04-25 14:27:54.669 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:27:54.669 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=802, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:54.669 PcDataCollector          E  Vehicle RPM: 802.0
2024-04-25 14:27:54.672 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:27:54.672 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=65, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:54.672 PcDataCollector          E  Vehicle Speed: 65
2024-04-25 14:27:54.676 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:27:54.676 PcDataCollector          E  ObdMetric [pid=04, id=5, val=22.35, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:54.676 PcDataCollector          E  Calculated Engine Load: 22.35
2024-04-25 14:27:54.737 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:27:54.819 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C8C043900D0:410C0C8C0439, processing time: 82ms
2024-04-25 14:27:54.823 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:27:54.823 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=803, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:54.824 PcDataCollector          E  Vehicle RPM: 803.0
2024-04-25 14:27:54.826 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:27:54.826 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=65, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:54.827 PcDataCollector          E  Vehicle Speed: 65
2024-04-25 14:27:54.830 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:27:54.830 PcDataCollector          E  ObdMetric [pid=04, id=5, val=22.35, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:54.830 PcDataCollector          E  Calculated Engine Load: 22.35
2024-04-25 14:27:54.894 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:27:54.954 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C8F043900D0:410C0C8F0439, processing time: 60ms
2024-04-25 14:27:54.957 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:27:54.957 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=803, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:54.957 PcDataCollector          E  Vehicle RPM: 803.0
2024-04-25 14:27:54.959 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:27:54.959 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=65, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:54.959 PcDataCollector          E  Vehicle Speed: 65
2024-04-25 14:27:54.960 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:27:54.960 PcDataCollector          E  ObdMetric [pid=04, id=5, val=22.35, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:54.960 PcDataCollector          E  Calculated Engine Load: 22.35
2024-04-25 14:27:55.052 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:27:55.162 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C86043800D0:410C0C860439, processing time: 110ms
2024-04-25 14:27:55.165 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:27:55.165 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=801, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:55.166 PcDataCollector          E  Vehicle RPM: 801.0
2024-04-25 14:27:55.167 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:27:55.167 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=65, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:55.167 PcDataCollector          E  Vehicle Speed: 65
2024-04-25 14:27:55.168 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:27:55.169 PcDataCollector          E  ObdMetric [pid=04, id=5, val=21.96, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:55.169 PcDataCollector          E  Calculated Engine Load: 21.96
2024-04-25 14:27:55.209 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:27:55.265 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C95043900D0:410C0C950439, processing time: 55ms
2024-04-25 14:27:55.269 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:27:55.269 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=805, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:55.269 PcDataCollector          E  Vehicle RPM: 805.0
2024-04-25 14:27:55.271 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:27:55.271 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=65, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:55.271 PcDataCollector          E  Vehicle Speed: 65
2024-04-25 14:27:55.274 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:27:55.274 PcDataCollector          E  ObdMetric [pid=04, id=5, val=22.35, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:55.274 PcDataCollector          E  Calculated Engine Load: 22.35
2024-04-25 14:27:55.365 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:27:55.421 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C8604391:0D0005834233BA, processing time: 56ms
2024-04-25 14:27:55.423 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:27:55.423 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=801, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:55.423 PcDataCollector          E  Vehicle RPM: 801.0
2024-04-25 14:27:55.425 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:27:55.425 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=0, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:55.425 PcDataCollector          E  Vehicle Speed: 0
2024-04-25 14:27:55.426 Receive data: {}         E  [48, 49, 52, 50, 13]
2024-04-25 14:27:55.426 PcDataCollector          E  ObdMetric [pid=42, id=67, val=13.242, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:55.426 PcDataCollector          E  Control Module Voltage: 13.242
2024-04-25 14:27:55.427 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:27:55.428 PcDataCollector          E  ObdMetric [pid=04, id=5, val=22.35, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:55.428 PcDataCollector          E  Calculated Engine Load: 22.35
2024-04-25 14:27:55.429 Receive data: {}         E  [48, 49, 48, 53, 13]
2024-04-25 14:27:55.429 PcDataCollector          E  ObdMetric [pid=05, id=6, val=91, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:55.429 PcDataCollector          E  coolant: 91
2024-04-25 14:27:55.523 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:27:55.606 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C86043900D0:410C0C860439, processing time: 83ms
2024-04-25 14:27:55.609 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:27:55.609 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=801, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:55.609 PcDataCollector          E  Vehicle RPM: 801.0
2024-04-25 14:27:55.611 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:27:55.611 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=65, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:55.611 PcDataCollector          E  Vehicle Speed: 65
2024-04-25 14:27:55.613 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:27:55.614 PcDataCollector          E  ObdMetric [pid=04, id=5, val=22.35, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:55.614 PcDataCollector          E  Calculated Engine Load: 22.35
2024-04-25 14:27:55.679 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:27:55.751 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C92043900D0:410C0C920438, processing time: 72ms
2024-04-25 14:27:55.752 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:27:55.752 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=804, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:55.753 PcDataCollector          E  Vehicle RPM: 804.0
2024-04-25 14:27:55.754 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:27:55.754 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=65, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:55.754 PcDataCollector          E  Vehicle Speed: 65
2024-04-25 14:27:55.755 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:27:55.755 PcDataCollector          E  ObdMetric [pid=04, id=5, val=22.35, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:55.756 PcDataCollector          E  Calculated Engine Load: 22.35
2024-04-25 14:27:55.836 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:27:55.918 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C83043900D0:410C0C830439, processing time: 82ms
2024-04-25 14:27:55.921 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:27:55.921 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=800, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:55.921 PcDataCollector          E  Vehicle RPM: 800.0
2024-04-25 14:27:55.922 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:27:55.922 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=65, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:55.922 PcDataCollector          E  Vehicle Speed: 65
2024-04-25 14:27:55.924 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:27:55.924 PcDataCollector          E  ObdMetric [pid=04, id=5, val=22.35, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:55.924 PcDataCollector          E  Calculated Engine Load: 22.35
2024-04-25 14:27:55.993 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:27:56.124 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C8F043900D0:410C0C8F0439, processing time: 131ms
2024-04-25 14:27:56.127 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:27:56.127 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=803, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:56.127 PcDataCollector          E  Vehicle RPM: 803.0
2024-04-25 14:27:56.128 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:27:56.128 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=65, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:56.128 PcDataCollector          E  Vehicle Speed: 65
2024-04-25 14:27:56.130 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:27:56.130 PcDataCollector          E  ObdMetric [pid=04, id=5, val=22.35, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:56.130 PcDataCollector          E  Calculated Engine Load: 22.35
2024-04-25 14:27:56.149 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:27:56.230 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C89043900D0:410C0C890439, processing time: 81ms
2024-04-25 14:27:56.234 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:27:56.234 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=802, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:56.235 PcDataCollector          E  Vehicle RPM: 802.0
2024-04-25 14:27:56.237 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:27:56.237 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=65, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:56.237 PcDataCollector          E  Vehicle Speed: 65
2024-04-25 14:27:56.240 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:27:56.241 PcDataCollector          E  ObdMetric [pid=04, id=5, val=22.35, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:56.241 PcDataCollector          E  Calculated Engine Load: 22.35
2024-04-25 14:27:56.305 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:27:56.384 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C86043900D0:410C0C830439, processing time: 79ms
2024-04-25 14:27:56.388 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:27:56.388 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=801, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:56.388 PcDataCollector          E  Vehicle RPM: 801.0
2024-04-25 14:27:56.390 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:27:56.390 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=65, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:56.390 PcDataCollector          E  Vehicle Speed: 65
2024-04-25 14:27:56.393 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:27:56.393 PcDataCollector          E  ObdMetric [pid=04, id=5, val=22.35, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:56.393 PcDataCollector          E  Calculated Engine Load: 22.35
2024-04-25 14:27:56.462 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:27:56.544 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C89043900D0:410C0C8C0439, processing time: 83ms
2024-04-25 14:27:56.548 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:27:56.548 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=802, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:56.548 PcDataCollector          E  Vehicle RPM: 802.0
2024-04-25 14:27:56.550 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:27:56.550 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=65, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:56.551 PcDataCollector          E  Vehicle Speed: 65
2024-04-25 14:27:56.553 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:27:56.554 PcDataCollector          E  ObdMetric [pid=04, id=5, val=22.35, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:56.554 PcDataCollector          E  Calculated Engine Load: 22.35
2024-04-25 14:27:56.619 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:27:56.703 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C89043800D0:410C0C890439, processing time: 84ms
2024-04-25 14:27:56.706 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:27:56.707 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=802, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:56.707 PcDataCollector          E  Vehicle RPM: 802.0
2024-04-25 14:27:56.709 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:27:56.709 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=65, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:56.709 PcDataCollector          E  Vehicle Speed: 65
2024-04-25 14:27:56.711 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:27:56.712 PcDataCollector          E  ObdMetric [pid=04, id=5, val=21.96, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:56.712 PcDataCollector          E  Calculated Engine Load: 21.96
2024-04-25 14:27:56.776 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:27:56.859 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C89043800D0:410C0C890439, processing time: 82ms
2024-04-25 14:27:56.862 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:27:56.862 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=802, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:56.862 PcDataCollector          E  Vehicle RPM: 802.0
2024-04-25 14:27:56.863 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:27:56.863 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=65, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:56.863 PcDataCollector          E  Vehicle Speed: 65
2024-04-25 14:27:56.865 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:27:56.865 PcDataCollector          E  ObdMetric [pid=04, id=5, val=21.96, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:56.865 PcDataCollector          E  Calculated Engine Load: 21.96
2024-04-25 14:27:56.933 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:27:57.066 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C86043900D0:410C0C860439, processing time: 132ms
2024-04-25 14:27:57.069 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:27:57.070 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=801, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:57.070 PcDataCollector          E  Vehicle RPM: 801.0
2024-04-25 14:27:57.072 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:27:57.072 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=65, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:57.072 PcDataCollector          E  Vehicle Speed: 65
2024-04-25 14:27:57.075 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:27:57.075 PcDataCollector          E  ObdMetric [pid=04, id=5, val=22.35, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:57.075 PcDataCollector          E  Calculated Engine Load: 22.35
2024-04-25 14:27:57.090 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:27:57.150 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C89043900D0:410C0C860439, processing time: 59ms
2024-04-25 14:27:57.152 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:27:57.152 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=802, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:57.152 PcDataCollector          E  Vehicle RPM: 802.0
2024-04-25 14:27:57.153 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:27:57.153 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=65, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:57.153 PcDataCollector          E  Vehicle Speed: 65
2024-04-25 14:27:57.155 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:27:57.155 PcDataCollector          E  ObdMetric [pid=04, id=5, val=22.35, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:57.155 PcDataCollector          E  Calculated Engine Load: 22.35
2024-04-25 14:27:57.247 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:27:57.330 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C89043900D0:410C0C860439, processing time: 82ms
2024-04-25 14:27:57.333 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:27:57.333 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=802, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:57.333 PcDataCollector          E  Vehicle RPM: 802.0
2024-04-25 14:27:57.336 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:27:57.336 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=65, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:57.336 PcDataCollector          E  Vehicle Speed: 65
2024-04-25 14:27:57.339 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:27:57.339 PcDataCollector          E  ObdMetric [pid=04, id=5, val=22.35, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:57.339 PcDataCollector          E  Calculated Engine Load: 22.35
2024-04-25 14:27:57.404 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:27:57.485 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C8C04391:0D0005834233BF, processing time: 81ms
2024-04-25 14:27:57.488 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:27:57.488 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=803, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:57.488 PcDataCollector          E  Vehicle RPM: 803.0
2024-04-25 14:27:57.490 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:27:57.490 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=0, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:57.490 PcDataCollector          E  Vehicle Speed: 0
2024-04-25 14:27:57.491 Receive data: {}         E  [48, 49, 52, 50, 13]
2024-04-25 14:27:57.491 PcDataCollector          E  ObdMetric [pid=42, id=67, val=13.247, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:57.491 PcDataCollector          E  Control Module Voltage: 13.247
2024-04-25 14:27:57.493 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:27:57.493 PcDataCollector          E  ObdMetric [pid=04, id=5, val=22.35, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:57.493 PcDataCollector          E  Calculated Engine Load: 22.35
2024-04-25 14:27:57.494 Receive data: {}         E  [48, 49, 48, 53, 13]
2024-04-25 14:27:57.494 PcDataCollector          E  ObdMetric [pid=05, id=6, val=91, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:57.494 PcDataCollector          E  coolant: 91
2024-04-25 14:27:57.561 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:27:57.661 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C80043900D0:410C0C800439, processing time: 100ms
2024-04-25 14:27:57.663 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:27:57.664 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=800, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:57.664 PcDataCollector          E  Vehicle RPM: 800.0
2024-04-25 14:27:57.665 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:27:57.665 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=65, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:57.665 PcDataCollector          E  Vehicle Speed: 65
2024-04-25 14:27:57.667 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:27:57.667 PcDataCollector          E  ObdMetric [pid=04, id=5, val=22.35, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:57.667 PcDataCollector          E  Calculated Engine Load: 22.35
2024-04-25 14:27:57.717 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:27:57.775 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C8904391:0D0005834233BA, processing time: 58ms
2024-04-25 14:27:57.779 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:27:57.779 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=802, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:57.779 PcDataCollector          E  Vehicle RPM: 802.0
2024-04-25 14:27:57.782 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:27:57.782 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=0, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:57.782 PcDataCollector          E  Vehicle Speed: 0
2024-04-25 14:27:57.785 Receive data: {}         E  [48, 49, 52, 50, 13]
2024-04-25 14:27:57.785 PcDataCollector          E  ObdMetric [pid=42, id=67, val=13.242, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:57.785 PcDataCollector          E  Control Module Voltage: 13.242
2024-04-25 14:27:57.788 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:27:57.788 PcDataCollector          E  ObdMetric [pid=04, id=5, val=22.35, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:57.789 PcDataCollector          E  Calculated Engine Load: 22.35
2024-04-25 14:27:57.791 Receive data: {}         E  [48, 49, 48, 53, 13]
2024-04-25 14:27:57.791 PcDataCollector          E  ObdMetric [pid=05, id=6, val=91, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:57.791 PcDataCollector          E  coolant: 91
2024-04-25 14:27:57.875 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:27:57.973 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C8F043900D0:410C0C8F0439, processing time: 98ms
2024-04-25 14:27:57.977 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:27:57.977 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=803, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:57.977 PcDataCollector          E  Vehicle RPM: 803.0
2024-04-25 14:27:57.980 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:27:57.980 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=65, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:57.980 PcDataCollector          E  Vehicle Speed: 65
2024-04-25 14:27:57.983 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:27:57.983 PcDataCollector          E  ObdMetric [pid=04, id=5, val=22.35, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:57.984 PcDataCollector          E  Calculated Engine Load: 22.35
2024-04-25 14:27:58.032 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:27:58.093 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C9F043900D0:410C0C9F0439, processing time: 61ms
2024-04-25 14:27:58.095 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:27:58.095 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=807, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:58.095 PcDataCollector          E  Vehicle RPM: 807.0
2024-04-25 14:27:58.096 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:27:58.097 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=65, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:58.097 PcDataCollector          E  Vehicle Speed: 65
2024-04-25 14:27:58.098 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:27:58.098 PcDataCollector          E  ObdMetric [pid=04, id=5, val=22.35, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:58.098 PcDataCollector          E  Calculated Engine Load: 22.35
2024-04-25 14:27:58.190 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:27:58.272 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C8F043900D0:410C0C8F0439, processing time: 83ms
2024-04-25 14:27:58.276 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:27:58.276 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=803, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:58.276 PcDataCollector          E  Vehicle RPM: 803.0
2024-04-25 14:27:58.278 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:27:58.278 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=65, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:58.278 PcDataCollector          E  Vehicle Speed: 65
2024-04-25 14:27:58.281 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:27:58.281 PcDataCollector          E  ObdMetric [pid=04, id=5, val=22.35, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:58.282 PcDataCollector          E  Calculated Engine Load: 22.35
2024-04-25 14:27:58.346 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:27:58.428 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C95043900D0:410C0C990439, processing time: 81ms
2024-04-25 14:27:58.430 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:27:58.430 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=805, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:58.430 PcDataCollector          E  Vehicle RPM: 805.0
2024-04-25 14:27:58.431 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:27:58.431 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=65, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:58.432 PcDataCollector          E  Vehicle Speed: 65
2024-04-25 14:27:58.433 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:27:58.433 PcDataCollector          E  ObdMetric [pid=04, id=5, val=22.35, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:58.433 PcDataCollector          E  Calculated Engine Load: 22.35
2024-04-25 14:27:58.503 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:27:58.563 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C8F04391:0D0005834233BA, processing time: 60ms
2024-04-25 14:27:58.567 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:27:58.567 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=803, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:58.567 PcDataCollector          E  Vehicle RPM: 803.0
2024-04-25 14:27:58.569 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:27:58.569 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=0, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:58.569 PcDataCollector          E  Vehicle Speed: 0
2024-04-25 14:27:58.572 Receive data: {}         E  [48, 49, 52, 50, 13]
2024-04-25 14:27:58.572 PcDataCollector          E  ObdMetric [pid=42, id=67, val=13.242, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:58.572 PcDataCollector          E  Control Module Voltage: 13.242
2024-04-25 14:27:58.576 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:27:58.576 PcDataCollector          E  ObdMetric [pid=04, id=5, val=22.35, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:58.576 PcDataCollector          E  Calculated Engine Load: 22.35
2024-04-25 14:27:58.579 Receive data: {}         E  [48, 49, 48, 53, 13]
2024-04-25 14:27:58.579 PcDataCollector          E  ObdMetric [pid=05, id=6, val=91, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:58.579 PcDataCollector          E  coolant: 91
2024-04-25 14:27:58.661 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:27:58.745 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C9C043900D0:410C0C9C0439, processing time: 84ms
2024-04-25 14:27:58.749 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:27:58.749 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=807, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:58.750 PcDataCollector          E  Vehicle RPM: 807.0
2024-04-25 14:27:58.752 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:27:58.752 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=65, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:58.752 PcDataCollector          E  Vehicle Speed: 65
2024-04-25 14:27:58.755 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:27:58.755 PcDataCollector          E  ObdMetric [pid=04, id=5, val=22.35, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:58.755 PcDataCollector          E  Calculated Engine Load: 22.35
2024-04-25 14:27:58.818 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:27:58.910 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C86043900D0:410C0C860439, processing time: 92ms
2024-04-25 14:27:58.912 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:27:58.912 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=801, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:58.912 PcDataCollector          E  Vehicle RPM: 801.0
2024-04-25 14:27:58.913 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:27:58.914 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=65, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:58.914 PcDataCollector          E  Vehicle Speed: 65
2024-04-25 14:27:58.915 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:27:58.915 PcDataCollector          E  ObdMetric [pid=04, id=5, val=22.35, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:58.915 PcDataCollector          E  Calculated Engine Load: 22.35
2024-04-25 14:27:58.974 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:27:59.085 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C8304391:0D0005834233C3, processing time: 111ms
2024-04-25 14:27:59.087 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:27:59.087 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=800, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:59.087 PcDataCollector          E  Vehicle RPM: 800.0
2024-04-25 14:27:59.089 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:27:59.089 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=0, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:59.089 PcDataCollector          E  Vehicle Speed: 0
2024-04-25 14:27:59.091 Receive data: {}         E  [48, 49, 52, 50, 13]
2024-04-25 14:27:59.091 PcDataCollector          E  ObdMetric [pid=42, id=67, val=13.251, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:59.091 PcDataCollector          E  Control Module Voltage: 13.251
2024-04-25 14:27:59.094 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:27:59.094 PcDataCollector          E  ObdMetric [pid=04, id=5, val=22.35, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:59.094 PcDataCollector          E  Calculated Engine Load: 22.35
2024-04-25 14:27:59.096 Receive data: {}         E  [48, 49, 48, 53, 13]
2024-04-25 14:27:59.096 PcDataCollector          E  ObdMetric [pid=05, id=6, val=91, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:59.096 PcDataCollector          E  coolant: 91
2024-04-25 14:27:59.130 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:27:59.216 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C8C043900D0:410C0C8C0439, processing time: 86ms
2024-04-25 14:27:59.218 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:27:59.218 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=803, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:59.218 PcDataCollector          E  Vehicle RPM: 803.0
2024-04-25 14:27:59.219 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:27:59.219 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=65, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:59.219 PcDataCollector          E  Vehicle Speed: 65
2024-04-25 14:27:59.221 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:27:59.221 PcDataCollector          E  ObdMetric [pid=04, id=5, val=22.35, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:59.221 PcDataCollector          E  Calculated Engine Load: 22.35
2024-04-25 14:27:59.287 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:27:59.371 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C83043900D0:410C0C860439, processing time: 84ms
2024-04-25 14:27:59.374 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:27:59.374 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=800, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:59.374 PcDataCollector          E  Vehicle RPM: 800.0
2024-04-25 14:27:59.375 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:27:59.375 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=65, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:59.375 PcDataCollector          E  Vehicle Speed: 65
2024-04-25 14:27:59.377 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:27:59.377 PcDataCollector          E  ObdMetric [pid=04, id=5, val=22.35, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:59.377 PcDataCollector          E  Calculated Engine Load: 22.35
2024-04-25 14:27:59.443 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:27:59.512 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C8C043900D0:410C0C8C0439, processing time: 69ms
2024-04-25 14:27:59.513 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:27:59.513 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=803, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:59.514 PcDataCollector          E  Vehicle RPM: 803.0
2024-04-25 14:27:59.515 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:27:59.515 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=65, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:59.515 PcDataCollector          E  Vehicle Speed: 65
2024-04-25 14:27:59.516 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:27:59.516 PcDataCollector          E  ObdMetric [pid=04, id=5, val=22.35, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:59.516 PcDataCollector          E  Calculated Engine Load: 22.35
2024-04-25 14:27:59.599 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:27:59.645 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C92043900D0:410C0C950439, processing time: 47ms
2024-04-25 14:27:59.646 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:27:59.647 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=804, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:59.647 PcDataCollector          E  Vehicle RPM: 804.0
2024-04-25 14:27:59.648 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:27:59.648 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=65, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:59.648 PcDataCollector          E  Vehicle Speed: 65
2024-04-25 14:27:59.649 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:27:59.649 PcDataCollector          E  ObdMetric [pid=04, id=5, val=22.35, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:59.649 PcDataCollector          E  Calculated Engine Load: 22.35
2024-04-25 14:27:59.756 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:27:59.871 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C99043800D0:410C0C990439, processing time: 115ms
2024-04-25 14:27:59.875 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:27:59.875 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=806, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:59.875 PcDataCollector          E  Vehicle RPM: 806.0
2024-04-25 14:27:59.878 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:27:59.878 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=65, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:59.878 PcDataCollector          E  Vehicle Speed: 65
2024-04-25 14:27:59.881 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:27:59.881 PcDataCollector          E  ObdMetric [pid=04, id=5, val=21.96, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:27:59.881 PcDataCollector          E  Calculated Engine Load: 21.96
2024-04-25 14:27:59.913 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:27:59.999 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C99043800D0:410C0C990439, processing time: 86ms
2024-04-25 14:28:00.003 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:28:00.003 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=806, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:28:00.004 PcDataCollector          E  Vehicle RPM: 806.0
2024-04-25 14:28:00.006 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:28:00.006 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=65, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:28:00.006 PcDataCollector          E  Vehicle Speed: 65
2024-04-25 14:28:00.008 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:28:00.008 PcDataCollector          E  ObdMetric [pid=04, id=5, val=21.96, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:28:00.008 PcDataCollector          E  Calculated Engine Load: 21.96
2024-04-25 14:28:00.071 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:28:00.155 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C99043800D0:410C0C990439, processing time: 84ms
2024-04-25 14:28:00.158 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:28:00.158 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=806, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:28:00.158 PcDataCollector          E  Vehicle RPM: 806.0
2024-04-25 14:28:00.159 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:28:00.159 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=65, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:28:00.159 PcDataCollector          E  Vehicle Speed: 65
2024-04-25 14:28:00.161 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:28:00.161 PcDataCollector          E  ObdMetric [pid=04, id=5, val=21.96, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:28:00.161 PcDataCollector          E  Calculated Engine Load: 21.96
2024-04-25 14:28:00.227 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:28:00.311 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C92043800D0:410C0C920439, processing time: 83ms
2024-04-25 14:28:00.314 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:28:00.315 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=804, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:28:00.315 PcDataCollector          E  Vehicle RPM: 804.0
2024-04-25 14:28:00.317 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:28:00.317 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=65, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:28:00.317 PcDataCollector          E  Vehicle Speed: 65
2024-04-25 14:28:00.321 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:28:00.321 PcDataCollector          E  ObdMetric [pid=04, id=5, val=21.96, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:28:00.321 PcDataCollector          E  Calculated Engine Load: 21.96
2024-04-25 14:28:00.384 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:28:00.465 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C86043900D0:410C0C890439, processing time: 81ms
2024-04-25 14:28:00.469 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:28:00.469 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=801, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:28:00.469 PcDataCollector          E  Vehicle RPM: 801.0
2024-04-25 14:28:00.471 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:28:00.471 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=65, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:28:00.471 PcDataCollector          E  Vehicle Speed: 65
2024-04-25 14:28:00.474 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:28:00.474 PcDataCollector          E  ObdMetric [pid=04, id=5, val=22.35, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:28:00.475 PcDataCollector          E  Calculated Engine Load: 22.35
2024-04-25 14:28:00.541 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:28:00.599 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C8C043900D0:410C0C8C0439, processing time: 58ms
2024-04-25 14:28:00.604 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:28:00.604 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=803, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:28:00.604 PcDataCollector          E  Vehicle RPM: 803.0
2024-04-25 14:28:00.606 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:28:00.607 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=65, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:28:00.607 PcDataCollector          E  Vehicle Speed: 65
2024-04-25 14:28:00.609 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:28:00.610 PcDataCollector          E  ObdMetric [pid=04, id=5, val=22.35, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:28:00.610 PcDataCollector          E  Calculated Engine Load: 22.35
2024-04-25 14:28:00.698 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:28:00.911 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C8C04391:0D0005834233B5, processing time: 213ms
2024-04-25 14:28:00.914 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 2
2024-04-25 14:28:00.915 Receive data: {}         E  [48, 49, 48, 67, 13]
2024-04-25 14:28:00.915 PcDataCollector          E  ObdMetric [pid=0C, id=13, val=803, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:28:00.915 PcDataCollector          E  Vehicle RPM: 803.0
2024-04-25 14:28:00.917 Receive data: {}         E  [48, 49, 48, 68, 13]
2024-04-25 14:28:00.917 PcDataCollector          E  ObdMetric [pid=0D, id=14, val=0, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:28:00.917 PcDataCollector          E  Vehicle Speed: 0
2024-04-25 14:28:00.920 Receive data: {}         E  [48, 49, 52, 50, 13]
2024-04-25 14:28:00.920 PcDataCollector          E  ObdMetric [pid=42, id=67, val=13.237, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:28:00.920 PcDataCollector          E  Control Module Voltage: 13.237
2024-04-25 14:28:00.923 Receive data: {}         E  [48, 49, 48, 52, 13]
2024-04-25 14:28:00.923 PcDataCollector          E  ObdMetric [pid=04, id=5, val=22.35, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:28:00.923 PcDataCollector          E  Calculated Engine Load: 22.35
2024-04-25 14:28:00.925 Receive data: {}         E  [48, 49, 48, 53, 13]
2024-04-25 14:28:00.925 PcDataCollector          E  ObdMetric [pid=05, id=6, val=91, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-04-25 14:28:00.925 PcDataCollector          E  coolant: 91
2024-04-25 14:28:00.976 System.err               W  [pool-9-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00D0:410C0C99043900D0:410C0C950439, processing time: 62ms

@tzebrowski
Copy link
Owner

Thanks,
Can you please do one more test and disable responseLengthEnabled inside batch policy.

final Adjustments optional = Adjustments
		        .batchPolicy(BatchPolicy
		        		.builder()
		        		 .responseLengthEnabled(Boolean.FALSE)
		        		.enabled(Boolean.TRUE).build())

@tzebrowski
Copy link
Owner

tzebrowski commented Apr 29, 2024

hi

Meanwhile I released version that tries to mitigate the problem with incorrect ecu responses,
Could you please update obd-metrics to 9.28.0-SNAPSHOT and set following

final Adjustments optional = Adjustments
		        .batchPolicy(BatchPolicy
		        .builder()
		        .strictValidationEnabled(Boolean.TRUE)
		        .enabled(Boolean.TRUE).build())

Through this, messages like 00D0:410C0C8C043900D0:410C0C8C0439 will be rejected,

@Timmy5818
Copy link
Author

Hello, we are currently busy with other projects and will select a date to test your suggestions. Thank you~~

@Timmy5818
Copy link
Author

Hello, I have been testing different devices in the past few days and found a problem. I am using Google Pixel 7 Pro and Samsung S20+, both of which are Android 13 systems. They can communicate with OBD-II devices and receive data normally, but they are both Android The realme C51 of 13 system cannot connect to the OBD-II device normally. Which part of the program needs to be modified or is the problem caused?
The following is the relevant message output using this device, thank you!
Logcat:

2024-05-08 15:50:03.769 PcOBDBluetoothService    E  Mac address:49:85:F3:46:43:30
2024-05-08 15:50:03.769 PcBluetoothConnection    I  Created instance of PcBluetoothConnection with device: 49:85:F3:46:43:30
2024-05-08 15:50:03.780 System.err               W  [main] INFO org.obd.metrics.api.DefaultWorkflow - Creating an instance of the Workflow task.
2024-05-08 15:50:03.781 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~Bc7pK5RvhNMecVWhkNTR9g==/com.example.vehiclehi-ZSGnL9DIsXA_9rVQz2Ae3g==/base.apk!/extra.json. Files exists=false
2024-05-08 15:50:03.783 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~Bc7pK5RvhNMecVWhkNTR9g==/com.example.vehiclehi-ZSGnL9DIsXA_9rVQz2Ae3g==/base.apk!/mode01.json. Files exists=false
2024-05-08 15:50:03.784 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~Bc7pK5RvhNMecVWhkNTR9g==/com.example.vehiclehi-ZSGnL9DIsXA_9rVQz2Ae3g==/base.apk!/mode01_2.json. Files exists=false
2024-05-08 15:50:03.847 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 1 PID definitions from stream. Operation took: 61ms
2024-05-08 15:50:03.857 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 23 PID definitions from stream. Operation took: 10ms
2024-05-08 15:50:03.870 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 46 PID definitions from stream. Operation took: 13ms
2024-05-08 15:50:03.870 System.err               W  [main] INFO org.obd.metrics.api.DefaultWorkflow - Loading resources files took: 90ms.
2024-05-08 15:50:03.871 System.err               W  [main] INFO org.obd.metrics.api.DefaultWorkflow - Submitting the Workflow task.
2024-05-08 15:50:03.873 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Starting the Workflow task.
2024-05-08 15:50:03.873 System.err               W   Protocol: AUTO, headers: [],DBEUG: true,selected PID's: [13, 6, 5, 67, 14], adjustements: Adjustments(debugEnabled=true, stNxx=org.obd.metrics.api.model.STNxxExtensions@2ab2167, collectRawConnectorResponseEnabled=false, vehicleMetadataReadingEnabled=true, vehicleCapabilitiesReadingEnabled=true, vehicleDtcReadingEnabled=false, vehicleDtcCleaningEnabled=false, generatorPolicy=GeneratorPolicy(enabled=false, increment=5.0), adaptiveTimeoutPolicy=org.obd.metrics.api.model.AdaptiveTimeoutPolicy@3b4cb14, producerPolicy=ProducerPolicy(priorityQueueEnabled=true, pidPriorities={}, conditionalSleepSliceSize=10, conditionalSleepEnabled=true), cachePolicy=org.obd.metrics.api.model.CachePolicy@f52bfbd, errorsPolicy=org.obd.metrics.api.model.ErrorsPolicy@af06251, batchPolicy=org.obd.metrics.api.model.BatchPolicy@5d569b2)
2024-05-08 15:50:03.874 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Mapping for a PID=[13:0C] is: mode=01, header=, hasOverrides=false
2024-05-08 15:50:03.909 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - PID=[13:0C] body= 
2024-05-08 15:50:03.910 System.err               W  {"alert":{"lowerThreshold":null,"upperThreshold":null},"cacheable":true,"commandClass":null,"commandType":"OBD","description":"Engine Rpm","formula":"(((A*256)+B)/4)","group":"LIVEDATA","historgam":{"avgEnabled":true,"maxEnabled":true,"minEnabled":true},"id":13,"length":2,"longDescription":null,"max":7000,"min":0,"mode":"01","module":"ecu","overrides":{"batchEnabled":true,"canMode":""},"pid":"0C","priority":0,"query":"010C","resourceFile":"mode01.json","stable":true,"successCode":"410C","type":"INT","units":"rpm","predictedSuccessCode":"41","successCodeBytes":"NDEwQw==","formulaAvailable":true,"multiSegmentAnswer":false}
2024-05-08 15:50:03.910 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Mapping for a PID=[6:05] is: mode=01, header=, hasOverrides=false
2024-05-08 15:50:03.912 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - PID=[6:05] body= 
2024-05-08 15:50:03.912 System.err               W  {"alert":{"lowerThreshold":null,"upperThreshold":50},"cacheable":true,"commandClass":null,"commandType":"OBD","description":"Coolant Temp","formula":"A-40","group":"LIVEDATA","historgam":{"avgEnabled":true,"maxEnabled":true,"minEnabled":true},"id":6,"length":1,"longDescription":null,"max":160,"min":-40,"mode":"01","module":"ecu","overrides":{"batchEnabled":true,"canMode":""},"pid":"05","priority":2,"query":"0105","resourceFile":"mode01.json","stable":true,"successCode":"4105","type":"INT","units":"C","predictedSuccessCode":"41","successCodeBytes":"NDEwNQ==","formulaAvailable":true,"multiSegmentAnswer":false}
2024-05-08 15:50:03.913 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Mapping for a PID=[5:04] is: mode=01, header=, hasOverrides=false
2024-05-08 15:50:03.914 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - PID=[5:04] body= 
2024-05-08 15:50:03.915 System.err               W  {"alert":{"lowerThreshold":null,"upperThreshold":null},"cacheable":true,"commandClass":null,"commandType":"OBD","description":"Engine Load\nValue","formula":"parseFloat((A*100/255).toFixed(2))","group":"LIVEDATA","historgam":{"avgEnabled":true,"maxEnabled":true,"minEnabled":true},"id":5,"length":1,"longDescription":null,"max":100,"min":0,"mode":"01","module":"ecu","overrides":{"batchEnabled":true,"canMode":""},"pid":"04","priority":0,"query":"0104","resourceFile":"mode01.json","stable":true,"successCode":"4104","type":null,"units":"%","predictedSuccessCode":"41","successCodeBytes":"NDEwNA==","formulaAvailable":true,"multiSegmentAnswer":false}
2024-05-08 15:50:03.915 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Mapping for a PID=[67:42] is: mode=01, header=, hasOverrides=false
2024-05-08 15:50:03.917 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - PID=[67:42] body= 
2024-05-08 15:50:03.917 System.err               W  {"alert":{"lowerThreshold":null,"upperThreshold":null},"cacheable":true,"commandClass":null,"commandType":"OBD","description":"Control module voltage","formula":"((A*256)+B)/1000","group":"LIVEDATA","historgam":{"avgEnabled":true,"maxEnabled":true,"minEnabled":true},"id":67,"length":2,"longDescription":null,"max":65535,"min":0,"mode":"01","module":"ecu","overrides":{"batchEnabled":true,"canMode":""},"pid":"42","priority":2,"query":"0142","resourceFile":"mode01_2.json","stable":false,"successCode":"4142","type":null,"units":"V","predictedSuccessCode":"41","successCodeBytes":"NDE0Mg==","formulaAvailable":true,"multiSegmentAnswer":false}
2024-05-08 15:50:03.917 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Mapping for a PID=[14:0D] is: mode=01, header=, hasOverrides=false
2024-05-08 15:50:03.919 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - PID=[14:0D] body= 
2024-05-08 15:50:03.919 System.err               W  {"alert":{"lowerThreshold":null,"upperThreshold":null},"cacheable":true,"commandClass":null,"commandType":"OBD","description":"Vehicle Speed","formula":"A","group":"LIVEDATA","historgam":{"avgEnabled":true,"maxEnabled":true,"minEnabled":true},"id":14,"length":1,"longDescription":null,"max":255,"min":0,"mode":"01","module":"ecu","overrides":{"batchEnabled":true,"canMode":""},"pid":"0D","priority":0,"query":"010D","resourceFile":"mode01.json","stable":true,"successCode":"410D","type":"INT","units":"km/h","predictedSuccessCode":"41","successCodeBytes":"NDEwRA==","formulaAvailable":true,"multiSegmentAnswer":false}
2024-05-08 15:50:03.920 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.codec.formula.backend.ScriptEngineBackend - Creating formula evaluator for FormulaEvaluatorConfig(scriptEngine=rhino, debug=false)
2024-05-08 15:50:03.939 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.buffer.DefaultCommandsBuffer - Invaldiating 0 commands in the queue.
2024-05-08 15:50:03.939 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Setting delay after ATZ command: 0
2024-05-08 15:50:03.940 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.api.PIDsGroupHandler - Group: METADATA is enabled. Adding METADATA group commands to the queue.
2024-05-08 15:50:03.945 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.api.CANMessageHeaderManager - Determined single mode=false, available modes=[AT, 09]
2024-05-08 15:50:03.946 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.api.PIDsGroupHandler - Group: CAPABILITES is enabled. Adding CAPABILITES group commands to the queue.
2024-05-08 15:50:03.951 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.api.CANMessageHeaderManager - Determined single mode=true, available modes=[01]
2024-05-08 15:50:03.953 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.api.AdaptiveTimeout - Timeout: 166ms for expected command frequency: 6, adaptive timing enabled: true, check interval: 5000
2024-05-08 15:50:03.955 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.api.EventsPublishlisher - Created fallback map: {com.example.vehiclehi.passenger_car.obd.PcDataCollector=org.obd.metrics.api.model.Reply, org.obd.metrics.diagnostic.DefaultDiagnostics=org.obd.metrics.api.model.ObdMetric, org.obd.metrics.alert.DefaultAlertManager=org.obd.metrics.api.model.Reply} for event publisher
2024-05-08 15:50:03.959 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.codec.CodecRegistry
2024-05-08 15:50:03.960 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.buffer.decoder.ConnectorResponseBuffer
2024-05-08 15:50:03.960 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.api.EventsPublishlisher
2024-05-08 15:50:03.961 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.api.model.Lifecycle.Subscription
2024-05-08 15:50:03.961 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.api.CommandProducer
2024-05-08 15:50:03.961 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.buffer.CommandsBuffer
2024-05-08 15:50:03.961 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.pid.PidDefinitionRegistry
2024-05-08 15:50:03.962 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.api.ConnectionManager
2024-05-08 15:50:03.974 PcBluetoothConnection    E  OBD Device found: OBDII
2024-05-08 15:50:04.996 System.err               W  [pool-2-thread-1] ERROR org.obd.metrics.api.DefaultWorkflow - Failed to initialize the Workflow task.
2024-05-08 15:50:04.996 System.err               W  java.io.IOException: read failed, socket might closed or timeout, read ret: -1
2024-05-08 15:50:04.997 System.err               W  	at android.bluetooth.BluetoothSocket.readAll(BluetoothSocket.java:815)
2024-05-08 15:50:04.997 System.err               W  	at android.bluetooth.BluetoothSocket.readInt(BluetoothSocket.java:829)
2024-05-08 15:50:04.998 System.err               W  	at android.bluetooth.BluetoothSocket.connect(BluetoothSocket.java:442)
2024-05-08 15:50:04.998 System.err               W  	at com.example.vehiclehi.passenger_car.obd.PcBluetoothConnection.connect(PcBluetoothConnection.java:83)
2024-05-08 15:50:04.999 System.err               W  	at org.obd.metrics.transport.Connector.create(Connector.java:42)
2024-05-08 15:50:05.000 System.err               W  	at org.obd.metrics.transport.Connector$ConnectorBuilder.build(Connector.java:40)
2024-05-08 15:50:05.000 System.err               W  	at org.obd.metrics.api.ConnectionManager.onInit(ConnectionManager.java:73)
2024-05-08 15:50:05.000 System.err               W  	at org.obd.metrics.context.Context.lambda$init$0$org-obd-metrics-context-Context(Context.java:60)
2024-05-08 15:50:05.001 System.err               W  	at org.obd.metrics.context.Context$$ExternalSyntheticLambda0.accept(Unknown Source:4)
2024-05-08 15:50:05.001 System.err               W  	at java.util.concurrent.ConcurrentHashMap.forEach(ConcurrentHashMap.java:1608)
2024-05-08 15:50:05.001 System.err               W  	at org.obd.metrics.context.Context.init(Context.java:58)
2024-05-08 15:50:05.002 System.err               W  	at org.obd.metrics.api.DefaultWorkflow.lambda$start$11$org-obd-metrics-api-DefaultWorkflow(DefaultWorkflow.java:272)
2024-05-08 15:50:05.002 System.err               W  	at org.obd.metrics.api.DefaultWorkflow$$ExternalSyntheticLambda1.accept(Unknown Source:13)
2024-05-08 15:50:05.002 System.err               W  	at org.obd.metrics.context.Context.apply(Context.java:69)
2024-05-08 15:50:05.003 System.err               W  	at org.obd.metrics.api.DefaultWorkflow.lambda$start$12$org-obd-metrics-api-DefaultWorkflow(DefaultWorkflow.java:256)
2024-05-08 15:50:05.003 System.err               W  	at org.obd.metrics.api.DefaultWorkflow$$ExternalSyntheticLambda7.run(Unknown Source:10)
2024-05-08 15:50:05.003 System.err               W  	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:487)
2024-05-08 15:50:05.003 System.err               W  	at java.util.concurrent.FutureTask.run(FutureTask.java:264)
2024-05-08 15:50:05.003 System.err               W  	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
2024-05-08 15:50:05.004 System.err               W  	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
2024-05-08 15:50:05.004 System.err               W  	at java.lang.Thread.run(Thread.java:1012)
2024-05-08 15:50:05.004 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Stopping the Workflow task.
2024-05-08 15:50:05.004 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Notyfing workflow is stopped
2024-05-08 15:50:06.370 PcOBDBluetoothService    E  Mac address:49:85:F3:46:43:30
2024-05-08 15:50:06.370 PcBluetoothConnection    I  Created instance of PcBluetoothConnection with device: 49:85:F3:46:43:30
2024-05-08 15:50:06.381 System.err               W  [main] INFO org.obd.metrics.api.DefaultWorkflow - Creating an instance of the Workflow task.
2024-05-08 15:50:06.382 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~Bc7pK5RvhNMecVWhkNTR9g==/com.example.vehiclehi-ZSGnL9DIsXA_9rVQz2Ae3g==/base.apk!/extra.json. Files exists=false
2024-05-08 15:50:06.384 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~Bc7pK5RvhNMecVWhkNTR9g==/com.example.vehiclehi-ZSGnL9DIsXA_9rVQz2Ae3g==/base.apk!/mode01.json. Files exists=false
2024-05-08 15:50:06.386 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~Bc7pK5RvhNMecVWhkNTR9g==/com.example.vehiclehi-ZSGnL9DIsXA_9rVQz2Ae3g==/base.apk!/mode01_2.json. Files exists=false
2024-05-08 15:50:06.448 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 1 PID definitions from stream. Operation took: 60ms
2024-05-08 15:50:06.458 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 23 PID definitions from stream. Operation took: 9ms
2024-05-08 15:50:06.471 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 46 PID definitions from stream. Operation took: 13ms
2024-05-08 15:50:06.471 System.err               W  [main] INFO org.obd.metrics.api.DefaultWorkflow - Loading resources files took: 90ms.
2024-05-08 15:50:06.472 System.err               W  [main] INFO org.obd.metrics.api.DefaultWorkflow - Submitting the Workflow task.
2024-05-08 15:50:06.474 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Starting the Workflow task.
2024-05-08 15:50:06.474 System.err               W   Protocol: AUTO, headers: [],DBEUG: true,selected PID's: [13, 6, 5, 67, 14], adjustements: Adjustments(debugEnabled=true, stNxx=org.obd.metrics.api.model.STNxxExtensions@8855f47, collectRawConnectorResponseEnabled=false, vehicleMetadataReadingEnabled=true, vehicleCapabilitiesReadingEnabled=true, vehicleDtcReadingEnabled=false, vehicleDtcCleaningEnabled=false, generatorPolicy=GeneratorPolicy(enabled=false, increment=5.0), adaptiveTimeoutPolicy=org.obd.metrics.api.model.AdaptiveTimeoutPolicy@bbb6374, producerPolicy=ProducerPolicy(priorityQueueEnabled=true, pidPriorities={}, conditionalSleepSliceSize=10, conditionalSleepEnabled=true), cachePolicy=org.obd.metrics.api.model.CachePolicy@6cee09d, errorsPolicy=org.obd.metrics.api.model.ErrorsPolicy@af06251, batchPolicy=org.obd.metrics.api.model.BatchPolicy@4f3a912)
2024-05-08 15:50:06.475 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Mapping for a PID=[13:0C] is: mode=01, header=, hasOverrides=false
2024-05-08 15:50:06.511 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - PID=[13:0C] body= 
2024-05-08 15:50:06.511 System.err               W  {"alert":{"lowerThreshold":null,"upperThreshold":null},"cacheable":true,"commandClass":null,"commandType":"OBD","description":"Engine Rpm","formula":"(((A*256)+B)/4)","group":"LIVEDATA","historgam":{"avgEnabled":true,"maxEnabled":true,"minEnabled":true},"id":13,"length":2,"longDescription":null,"max":7000,"min":0,"mode":"01","module":"ecu","overrides":{"batchEnabled":true,"canMode":""},"pid":"0C","priority":0,"query":"010C","resourceFile":"mode01.json","stable":true,"successCode":"410C","type":"INT","units":"rpm","predictedSuccessCode":"41","successCodeBytes":"NDEwQw==","formulaAvailable":true,"multiSegmentAnswer":false}
2024-05-08 15:50:06.511 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Mapping for a PID=[6:05] is: mode=01, header=, hasOverrides=false
2024-05-08 15:50:06.513 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - PID=[6:05] body= 
2024-05-08 15:50:06.513 System.err               W  {"alert":{"lowerThreshold":null,"upperThreshold":50},"cacheable":true,"commandClass":null,"commandType":"OBD","description":"Coolant Temp","formula":"A-40","group":"LIVEDATA","historgam":{"avgEnabled":true,"maxEnabled":true,"minEnabled":true},"id":6,"length":1,"longDescription":null,"max":160,"min":-40,"mode":"01","module":"ecu","overrides":{"batchEnabled":true,"canMode":""},"pid":"05","priority":2,"query":"0105","resourceFile":"mode01.json","stable":true,"successCode":"4105","type":"INT","units":"C","predictedSuccessCode":"41","successCodeBytes":"NDEwNQ==","formulaAvailable":true,"multiSegmentAnswer":false}
2024-05-08 15:50:06.514 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Mapping for a PID=[5:04] is: mode=01, header=, hasOverrides=false
2024-05-08 15:50:06.515 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - PID=[5:04] body= 
2024-05-08 15:50:06.515 System.err               W  {"alert":{"lowerThreshold":null,"upperThreshold":null},"cacheable":true,"commandClass":null,"commandType":"OBD","description":"Engine Load\nValue","formula":"parseFloat((A*100/255).toFixed(2))","group":"LIVEDATA","historgam":{"avgEnabled":true,"maxEnabled":true,"minEnabled":true},"id":5,"length":1,"longDescription":null,"max":100,"min":0,"mode":"01","module":"ecu","overrides":{"batchEnabled":true,"canMode":""},"pid":"04","priority":0,"query":"0104","resourceFile":"mode01.json","stable":true,"successCode":"4104","type":null,"units":"%","predictedSuccessCode":"41","successCodeBytes":"NDEwNA==","formulaAvailable":true,"multiSegmentAnswer":false}
2024-05-08 15:50:06.516 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Mapping for a PID=[67:42] is: mode=01, header=, hasOverrides=false
2024-05-08 15:50:06.517 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - PID=[67:42] body= 
2024-05-08 15:50:06.517 System.err               W  {"alert":{"lowerThreshold":null,"upperThreshold":null},"cacheable":true,"commandClass":null,"commandType":"OBD","description":"Control module voltage","formula":"((A*256)+B)/1000","group":"LIVEDATA","historgam":{"avgEnabled":true,"maxEnabled":true,"minEnabled":true},"id":67,"length":2,"longDescription":null,"max":65535,"min":0,"mode":"01","module":"ecu","overrides":{"batchEnabled":true,"canMode":""},"pid":"42","priority":2,"query":"0142","resourceFile":"mode01_2.json","stable":false,"successCode":"4142","type":null,"units":"V","predictedSuccessCode":"41","successCodeBytes":"NDE0Mg==","formulaAvailable":true,"multiSegmentAnswer":false}
2024-05-08 15:50:06.518 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Mapping for a PID=[14:0D] is: mode=01, header=, hasOverrides=false
2024-05-08 15:50:06.519 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - PID=[14:0D] body= 
2024-05-08 15:50:06.519 System.err               W  {"alert":{"lowerThreshold":null,"upperThreshold":null},"cacheable":true,"commandClass":null,"commandType":"OBD","description":"Vehicle Speed","formula":"A","group":"LIVEDATA","historgam":{"avgEnabled":true,"maxEnabled":true,"minEnabled":true},"id":14,"length":1,"longDescription":null,"max":255,"min":0,"mode":"01","module":"ecu","overrides":{"batchEnabled":true,"canMode":""},"pid":"0D","priority":0,"query":"010D","resourceFile":"mode01.json","stable":true,"successCode":"410D","type":"INT","units":"km/h","predictedSuccessCode":"41","successCodeBytes":"NDEwRA==","formulaAvailable":true,"multiSegmentAnswer":false}
2024-05-08 15:50:06.520 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.codec.formula.backend.ScriptEngineBackend - Creating formula evaluator for FormulaEvaluatorConfig(scriptEngine=rhino, debug=false)
2024-05-08 15:50:06.539 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.buffer.DefaultCommandsBuffer - Invaldiating 0 commands in the queue.
2024-05-08 15:50:06.539 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Setting delay after ATZ command: 0
2024-05-08 15:50:06.540 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.api.PIDsGroupHandler - Group: METADATA is enabled. Adding METADATA group commands to the queue.
2024-05-08 15:50:06.545 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.api.CANMessageHeaderManager - Determined single mode=false, available modes=[AT, 09]
2024-05-08 15:50:06.546 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.api.PIDsGroupHandler - Group: CAPABILITES is enabled. Adding CAPABILITES group commands to the queue.
2024-05-08 15:50:06.551 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.api.CANMessageHeaderManager - Determined single mode=true, available modes=[01]
2024-05-08 15:50:06.553 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.api.AdaptiveTimeout - Timeout: 166ms for expected command frequency: 6, adaptive timing enabled: true, check interval: 5000
2024-05-08 15:50:06.555 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.api.EventsPublishlisher - Created fallback map: {com.example.vehiclehi.passenger_car.obd.PcDataCollector=org.obd.metrics.api.model.Reply, org.obd.metrics.diagnostic.DefaultDiagnostics=org.obd.metrics.api.model.ObdMetric, org.obd.metrics.alert.DefaultAlertManager=org.obd.metrics.api.model.Reply} for event publisher
2024-05-08 15:50:06.560 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.codec.CodecRegistry
2024-05-08 15:50:06.560 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.buffer.decoder.ConnectorResponseBuffer
2024-05-08 15:50:06.561 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.api.EventsPublishlisher
2024-05-08 15:50:06.561 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.api.model.Lifecycle.Subscription
2024-05-08 15:50:06.562 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.api.CommandProducer
2024-05-08 15:50:06.562 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.buffer.CommandsBuffer
2024-05-08 15:50:06.562 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.pid.PidDefinitionRegistry
2024-05-08 15:50:06.562 System.err               W  [pool-2-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.api.ConnectionManager

@Timmy5818
Copy link
Author

Timmy5818 commented May 10, 2024

Hello, I saw someone on the Internet having a similar problem. I modified the Socket connection part as follows and the connection was successful. Thank you for your help!
I refer to the problem and solution of this website

In addition, the following devices can be connected to the mobile phone I tested:
Mi 9T Pro (Android 11)
Mi 9T Pro (Android 10)
Xiaomi 11T (Android 13)
Samsung S20+ (Android 13)
Google Pixel 7 Pro (Android 13)
realme C51 (Anrdoid 13)

Modify part of the connection program:

                try {
                    socket.connect();
                } catch (IOException ioException) {
                    Log.e("BluetoothConnection", "Error, Try another connection method" + ioException.getMessage());

                    try {
                        Class<?> clazz = socket.getRemoteDevice().getClass();
                        Class<?>[] paramTypes = new Class<?>[] {Integer.TYPE};
                        Method m = clazz.getMethod("createRfcommSocket", paramTypes);
                        Object[] params = new Object[] {1};
                        socket = (BluetoothSocket) m.invoke(socket.getRemoteDevice(), params);
                        if (socket != null) {
                            socket.connect();
                        } else {
                            Log.e("BluetoothConnection", "fallback_socket received null....: ");
                        }
                    } catch (NoSuchMethodException | InvocationTargetException | IllegalAccessException | IOException e) {
                        Log.e("BluetoothConnection", "exception_in_code....: " + e);
                        e.printStackTrace();
                    }
                }

Complete program:

    @Override
    @SuppressWarnings("all")
    public void connect() throws IOException {
        try {
            BluetoothAdapter bluetoothAdapter = BluetoothAdapter.getDefaultAdapter();
            BluetoothDevice adapter = null;

            if (bluetoothAdapter != null) {

                for (BluetoothDevice bondedDevice : bluetoothAdapter.getBondedDevices()) {
                    if (bondedDevice.getName() != null && bondedDevice.getAddress().equals(deviceAddress)) {
                        adapter = bondedDevice;
                        Log.e(LOGGER_TAG, "OBD Device found: " + bondedDevice.getName());
                        deviceName = bondedDevice.getName();
                        break;
                    }
                }

                if (null == adapter) {
                    throw new IOException("Device not found: " + deviceAddress);
                }

                final ParcelUuid[] uuids = adapter.getUuids();
                final UUID uuid = uuids[0].getUuid();
                socket = adapter.createInsecureRfcommSocketToServiceRecord(uuid);

                try {
                    socket.connect();
                } catch (IOException ioException) {
                    Log.e("BluetoothConnection", "Error, Try another connection method" + ioException.getMessage());

                    try {
                        Class<?> clazz = socket.getRemoteDevice().getClass();
                        Class<?>[] paramTypes = new Class<?>[] {Integer.TYPE};
                        Method m = clazz.getMethod("createRfcommSocket", paramTypes);
                        Object[] params = new Object[] {1};
                        socket = (BluetoothSocket) m.invoke(socket.getRemoteDevice(), params);
                        if (socket != null) {
                            socket.connect();
                        } else {
                            Log.e("BluetoothConnection", "fallback_socket received null....: ");
                        }
                    } catch (NoSuchMethodException | InvocationTargetException | IllegalAccessException | IOException e) {
                        Log.e("BluetoothConnection", "exception_in_code....: " + e);
                        e.printStackTrace();
                    }
                }


                if (socket.isConnected()) {
                    input = socket.getInputStream();
                    output = socket.getOutputStream();
                    Log.e(LOGGER_TAG, "Successfully connected to the adapter: " + deviceAddress);

                } else {
                    throw new IOException("Failed to connect to the adapter: " + deviceAddress);
                }
            } else {
                throw new IOException("BluetoothAdapter not found");
            }
        } catch (SecurityException e){
            Log.e(LOGGER_TAG,"Failed to connect to BT due to missing permissions.",e);
        }
    }

@Timmy5818
Copy link
Author

Hello, I recently discovered a strange problem during testing.
I connected to the OBD-II device and received data normally. However, when my engine was turned off, I left the vehicle and returned to the vehicle about 30 minutes later. Since the OBD-II device still did not interrupt the power supply, the mobile phone was able to connect automatically. To the OBD-II device, when my engine restarts, the data received is the data before the last engine shutdown and it is stuck and will not be updated. What is the solution to this?

@tzebrowski
Copy link
Owner

tzebrowski commented Jun 14, 2024

Basically, when engine turn off you should stop the workflow manually. This is something end user should do in the app.

To the OBD-II device, when my engine restarts, the data received is the data before the last engine shutdown and it is stuck and will not be updated.

I will see how this use-case works on my end. Do you have by chance some logs ?

@Timmy5818
Copy link
Author

Timmy5818 commented Jun 18, 2024

Hello, I am currently writing the relevant program that explains the stop process in your webpage, but it still doesn't work. The following is the record file and program writing status. Thank you for your reply!

BluetoothConnection.java, the call stops the workflow when disconnected:

    @Override
    public void close() {
        try {
            if (input != null) {
                input.close();
            }
            if (output != null) {
                output.close();
            }
            if (socket != null) {
                socket.close();
            }
            Log.e(LOGGER_TAG, "OBD-II Device is disconnect, Socket for the device: " + deviceAddress + " is closed.");

            PcOBDBluetoothService.stop();

            Application application = (Application) mContext.getApplicationContext();
            PcOBDViewModel viewModel = new ViewModelProvider(application).get(PcOBDViewModel.class);
            viewModel.updateDeviceName("");
            viewModel.updateDeviceMacAddress("");

        } catch (IOException e) {
            Log.e(LOGGER_TAG, "Error closing the socket: " + deviceAddress, e);
        }
    }

OBDBluetoothService.java, call to stop workflow program:

    public static void stop() {
        if (mContext != null) {
            var collector = new PcDataCollector(mContext);

            final Pids pids = Pids
                    .builder()
//                .resource(Objects.requireNonNull(Thread.currentThread().getContextClassLoader()).getResource("giulia_2.0_gme.json"))
                    .resource(Objects.requireNonNull(Thread.currentThread().getContextClassLoader()).getResource("extra.json"))
                    .resource(Objects.requireNonNull(Thread.currentThread().getContextClassLoader()).getResource("mode01.json"))
                    .resource(Objects.requireNonNull(Thread.currentThread().getContextClassLoader()).getResource("mode01_2.json"))
                    .build();

            var workflow = Workflow.instance().pids(pids).observer(collector).initialize();

            Log.e("OBDBluetoothService","Stop OBD-II Workflow");
            workflow.stop();
        }
    }

Open the APP and record the normal connection status:

2024-06-18 15:01:35.330 OBDBluetoothService      E  Start OBD-II Workflow
2024-06-18 15:01:35.330 System.err               W  [main] INFO org.obd.metrics.api.DefaultWorkflow - Submitting the Workflow task.
2024-06-18 15:01:35.333 ImageReader_JNI          W  Unable to acquire a buffer item, very likely client tried to acquire more than maxImages buffers
2024-06-18 15:01:35.334 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Starting the Workflow task.
2024-06-18 15:01:35.336 System.err               W   Protocol: AUTO, headers: [],DBEUG: true,selected PID's: [13, 6, 5, 67, 14, 16], adjustements: Adjustments(debugEnabled=true, stNxx=org.obd.metrics.api.model.STNxxExtensions@bbc0ea4, collectRawConnectorResponseEnabled=false, vehicleMetadataReadingEnabled=true, vehicleCapabilitiesReadingEnabled=true, vehicleDtcReadingEnabled=false, vehicleDtcCleaningEnabled=false, generatorPolicy=GeneratorPolicy(enabled=false, increment=5.0), adaptiveTimeoutPolicy=org.obd.metrics.api.model.AdaptiveTimeoutPolicy@260640d, producerPolicy=ProducerPolicy(priorityQueueEnabled=true, pidPriorities={}, conditionalSleepSliceSize=10, conditionalSleepEnabled=true), cachePolicy=org.obd.metrics.api.model.CachePolicy@94bfc2, errorsPolicy=org.obd.metrics.api.model.ErrorsPolicy@3cef1d3, batchPolicy=org.obd.metrics.api.model.BatchPolicy@8fd7110)
2024-06-18 15:01:35.337 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Mapping for a PID=[13:0C] is: mode=01, header=, hasOverrides=false
2024-06-18 15:01:35.376 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - PID=[13:0C] body= 
2024-06-18 15:01:35.377 System.err               W  {"alert":{"lowerThreshold":null,"upperThreshold":null},"cacheable":true,"commandClass":null,"commandType":"OBD","description":"Engine Rpm","formula":"(((A*256)+B)/4)","group":"LIVEDATA","historgam":{"avgEnabled":true,"maxEnabled":true,"minEnabled":true},"id":13,"length":2,"longDescription":null,"max":7000,"min":0,"mode":"01","module":"ecu","overrides":{"batchEnabled":true,"canMode":""},"pid":"0C","priority":0,"query":"010C","resourceFile":"mode01.json","stable":true,"successCode":"410C","type":"INT","units":"rpm","predictedSuccessCode":"41","successCodeBytes":"NDEwQw==","formulaAvailable":true,"multiSegmentAnswer":false}
2024-06-18 15:01:35.377 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Mapping for a PID=[6:05] is: mode=01, header=, hasOverrides=false
2024-06-18 15:01:35.379 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - PID=[6:05] body= 
2024-06-18 15:01:35.379 System.err               W  {"alert":{"lowerThreshold":null,"upperThreshold":50},"cacheable":true,"commandClass":null,"commandType":"OBD","description":"Coolant Temp","formula":"A-40","group":"LIVEDATA","historgam":{"avgEnabled":true,"maxEnabled":true,"minEnabled":true},"id":6,"length":1,"longDescription":null,"max":160,"min":-40,"mode":"01","module":"ecu","overrides":{"batchEnabled":true,"canMode":""},"pid":"05","priority":2,"query":"0105","resourceFile":"mode01.json","stable":true,"successCode":"4105","type":"INT","units":"C","predictedSuccessCode":"41","successCodeBytes":"NDEwNQ==","formulaAvailable":true,"multiSegmentAnswer":false}
2024-06-18 15:01:35.380 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Mapping for a PID=[5:04] is: mode=01, header=, hasOverrides=false
2024-06-18 15:01:35.382 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - PID=[5:04] body= 
2024-06-18 15:01:35.382 System.err               W  {"alert":{"lowerThreshold":null,"upperThreshold":null},"cacheable":true,"commandClass":null,"commandType":"OBD","description":"Engine Load\nValue","formula":"parseFloat((A*100/255).toFixed(2))","group":"LIVEDATA","historgam":{"avgEnabled":true,"maxEnabled":true,"minEnabled":true},"id":5,"length":1,"longDescription":null,"max":100,"min":0,"mode":"01","module":"ecu","overrides":{"batchEnabled":true,"canMode":""},"pid":"04","priority":0,"query":"0104","resourceFile":"mode01.json","stable":true,"successCode":"4104","type":null,"units":"%","predictedSuccessCode":"41","successCodeBytes":"NDEwNA==","formulaAvailable":true,"multiSegmentAnswer":false}
2024-06-18 15:01:35.383 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Mapping for a PID=[67:42] is: mode=01, header=, hasOverrides=false
2024-06-18 15:01:35.384 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - PID=[67:42] body= 
2024-06-18 15:01:35.384 System.err               W  {"alert":{"lowerThreshold":null,"upperThreshold":null},"cacheable":true,"commandClass":null,"commandType":"OBD","description":"Control module voltage","formula":"((A*256)+B)/1000","group":"LIVEDATA","historgam":{"avgEnabled":true,"maxEnabled":true,"minEnabled":true},"id":67,"length":2,"longDescription":null,"max":65535,"min":0,"mode":"01","module":"ecu","overrides":{"batchEnabled":true,"canMode":""},"pid":"42","priority":2,"query":"0142","resourceFile":"mode01_2.json","stable":false,"successCode":"4142","type":null,"units":"V","predictedSuccessCode":"41","successCodeBytes":"NDE0Mg==","formulaAvailable":true,"multiSegmentAnswer":false}
2024-06-18 15:01:35.385 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Mapping for a PID=[14:0D] is: mode=01, header=, hasOverrides=false
2024-06-18 15:01:35.386 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - PID=[14:0D] body= 
2024-06-18 15:01:35.386 System.err               W  {"alert":{"lowerThreshold":null,"upperThreshold":null},"cacheable":true,"commandClass":null,"commandType":"OBD","description":"Vehicle Speed","formula":"A","group":"LIVEDATA","historgam":{"avgEnabled":true,"maxEnabled":true,"minEnabled":true},"id":14,"length":1,"longDescription":null,"max":255,"min":0,"mode":"01","module":"ecu","overrides":{"batchEnabled":true,"canMode":""},"pid":"0D","priority":0,"query":"010D","resourceFile":"mode01.json","stable":true,"successCode":"410D","type":"INT","units":"km/h","predictedSuccessCode":"41","successCodeBytes":"NDEwRA==","formulaAvailable":true,"multiSegmentAnswer":false}
2024-06-18 15:01:35.387 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Mapping for a PID=[16:0F] is: mode=01, header=, hasOverrides=false
2024-06-18 15:01:35.388 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - PID=[16:0F] body= 
2024-06-18 15:01:35.388 System.err               W  {"alert":{"lowerThreshold":null,"upperThreshold":null},"cacheable":true,"commandClass":null,"commandType":"OBD","description":"Intake Air\n Temp","formula":"A-40","group":"LIVEDATA","historgam":{"avgEnabled":true,"maxEnabled":true,"minEnabled":true},"id":16,"length":1,"longDescription":null,"max":100,"min":-40,"mode":"01","module":"ecu","overrides":{"batchEnabled":true,"canMode":""},"pid":"0F","priority":2,"query":"010F","resourceFile":"mode01.json","stable":true,"successCode":"410F","type":"INT","units":"C","predictedSuccessCode":"41","successCodeBytes":"NDEwRg==","formulaAvailable":true,"multiSegmentAnswer":false}
2024-06-18 15:01:35.392 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.codec.formula.backend.ScriptEngineBackend - Creating formula evaluator for FormulaEvaluatorConfig(scriptEngine=rhino, debug=false)
2024-06-18 15:01:35.393 ample.vehiclehi          W  Accessing hidden field Lsun/security/util/SecurityConstants;->GET_CLASSLOADER_PERMISSION:Ljava/lang/RuntimePermission; (unsupported, linking, allowed)
2024-06-18 15:01:35.431 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.buffer.DefaultCommandsBuffer - Invaldiating 0 commands in the queue.
2024-06-18 15:01:35.431 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Setting delay after ATZ command: 0
2024-06-18 15:01:35.432 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.PIDsGroupHandler - Group: METADATA is enabled. Adding METADATA group commands to the queue.
2024-06-18 15:01:35.436 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.CANMessageHeaderManager - Determined single mode=false, available modes=[AT, 09]
2024-06-18 15:01:35.437 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.PIDsGroupHandler - Group: CAPABILITES is enabled. Adding CAPABILITES group commands to the queue.
2024-06-18 15:01:35.440 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.CANMessageHeaderManager - Determined single mode=true, available modes=[01]
2024-06-18 15:01:35.444 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.AdaptiveTimeout - Timeout: 166ms for expected command frequency: 6, adaptive timing enabled: true, check interval: 5000
2024-06-18 15:01:35.460 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.api.EventsPublishlisher - Created fallback map: {com.example.vehiclehi.passenger_car.obd.api.PcDataCollector=org.obd.metrics.api.model.Reply, org.obd.metrics.diagnostic.DefaultDiagnostics=org.obd.metrics.api.model.ObdMetric, org.obd.metrics.alert.DefaultAlertManager=org.obd.metrics.api.model.Reply} for event publisher
2024-06-18 15:01:35.472 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.codec.CodecRegistry
2024-06-18 15:01:35.473 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.buffer.decoder.ConnectorResponseBuffer
2024-06-18 15:01:35.473 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.api.ConnectionManager
2024-06-18 15:01:35.487 PcBluetoothConnection    E  OBD Device found: OBDII
2024-06-18 15:01:35.526 PcOBDBluetoothService    E  Mac address:86:90:19:D8:50:D2
2024-06-18 15:01:35.544 System.err               W  [main] INFO org.obd.metrics.api.DefaultWorkflow - Creating an instance of the Workflow task.
2024-06-18 15:01:35.545 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~tV7XsZ1JkN6zTXppmt9Fag==/com.example.vehiclehi-2cm9yn4rLy9seHpiBQNrSg==/base.apk!/extra.json. Files exists=false
2024-06-18 15:01:35.548 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~tV7XsZ1JkN6zTXppmt9Fag==/com.example.vehiclehi-2cm9yn4rLy9seHpiBQNrSg==/base.apk!/mode01.json. Files exists=false
2024-06-18 15:01:35.550 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~tV7XsZ1JkN6zTXppmt9Fag==/com.example.vehiclehi-2cm9yn4rLy9seHpiBQNrSg==/base.apk!/mode01_2.json. Files exists=false
2024-06-18 15:01:35.585 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 1 PID definitions from stream. Operation took: 34ms
2024-06-18 15:01:35.596 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 23 PID definitions from stream. Operation took: 11ms
2024-06-18 15:01:35.611 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 46 PID definitions from stream. Operation took: 14ms
2024-06-18 15:01:35.611 System.err               W  [main] INFO org.obd.metrics.api.DefaultWorkflow - Loading resources files took: 67ms.
2024-06-18 15:01:35.611 OBDBluetoothService      E  Start OBD-II Workflow
2024-06-18 15:01:35.611 System.err               W  [main] INFO org.obd.metrics.api.DefaultWorkflow - Submitting the Workflow task.
2024-06-18 15:01:35.611 System.err               W  [main] WARN org.obd.metrics.api.DefaultWorkflow - Workflow task was rejected. There is already running task in the queue
2024-06-18 15:01:51.505 PcBluetoothConnection    E  Successfully connected to the adapter: 86:90:19:D8:50:D2
2024-06-18 15:01:51.508 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.api.EventsPublishlisher
2024-06-18 15:01:51.508 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.pid.PidDefinitionRegistry
2024-06-18 15:01:51.508 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.buffer.CommandsBuffer
2024-06-18 15:01:51.509 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.api.model.Lifecycle.Subscription
2024-06-18 15:01:51.509 System.err               W  [pool-3-thread-1] INFO org.obd.metrics.context.Context - Init org.obd.metrics.api.CommandProducer
2024-06-18 15:01:51.514 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.CommandLoop - Starting command executor thread..
2024-06-18 15:01:51.518 System.err               W  [pool-4-thread-2] INFO org.obd.metrics.api.CommandProducer - Starting command producer thread. Priorities: {0=0, 1=5, 2=15, 3=35, 4=50, 5=100, 6=200, 7=500, 8=1000, 9=5000, 10=10000} 
2024-06-18 15:01:51.518 System.err               W  [pool-4-thread-2] INFO org.obd.metrics.api.AdaptiveTimeout - Scheduling adaptive timeout task. Fixed rate: 5000
2024-06-18 15:01:51.534 ample.vehiclehi          W  Cleared Reference was only reachable from finalizer (only reported once)
2024-06-18 15:01:51.542 System                   W  A resource failed to call close. 
2024-06-18 15:01:51.549 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATD
2024-06-18 15:01:51.587 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: OK, processing time: 39ms
2024-06-18 15:01:51.590 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATZ
2024-06-18 15:01:51.697 System.err               W  [pool-4-thread-2] INFO org.obd.metrics.codec.batch.AbstractBatchCodec - Calculated response length: 28 for commands '01 0C 04 0D 05 42 0F'
2024-06-18 15:01:51.698 System.err               W  [pool-4-thread-2] INFO org.obd.metrics.api.CommandsSuplier - Build target commands list: [[priority=0, query=01 0C 04 0D 05 42 0F 3]]
2024-06-18 15:01:52.475 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: ATZÜELM327V1.5, processing time: 884ms
2024-06-18 15:01:52.480 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATL0
2024-06-18 15:01:52.570 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: ATL0OK, processing time: 89ms
2024-06-18 15:01:52.572 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATH0
2024-06-18 15:01:52.672 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: ATH0OK, processing time: 100ms
2024-06-18 15:01:52.675 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATE0
2024-06-18 15:01:52.776 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: ATE0OK, processing time: 101ms
2024-06-18 15:01:52.779 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATPP 2CSV 01
2024-06-18 15:01:52.856 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: OK, processing time: 77ms
2024-06-18 15:01:52.859 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATPP 2C ON
2024-06-18 15:01:52.898 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: OK, processing time: 39ms
2024-06-18 15:01:52.901 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATPP 2DSV 01
2024-06-18 15:01:52.975 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: OK, processing time: 74ms
2024-06-18 15:01:52.978 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATPP 2D ON
2024-06-18 15:01:53.051 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: OK, processing time: 74ms
2024-06-18 15:01:53.054 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATAT2
2024-06-18 15:01:53.119 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: OK, processing time: 65ms
2024-06-18 15:01:53.122 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATSP0
2024-06-18 15:01:53.180 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: OK, processing time: 57ms
2024-06-18 15:01:53.182 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 0902
2024-06-18 15:01:53.661 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 0140:490201FFFFFF1:FFFFFFFFFFFFFF2:FFFFFFFFFFFFFF, processing time: 478ms
2024-06-18 15:01:53.661 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.command.meta.HexCommand - Decoding the message: 0140:490201FFFFFF1:FFFFFFFFFFFFFF2:FFFFFFFFFFFFFF
2024-06-18 15:01:53.663 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.command.meta.HexCommand - Decoded message: ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ for: 0140:490201FFFFFF1:FFFFFFFFFFFFFF2:FFFFFFFFFFFFFF
2024-06-18 15:01:53.666 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATI
2024-06-18 15:01:53.744 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: ELM327V1.5, processing time: 78ms
2024-06-18 15:01:53.745 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.command.meta.HexCommand - Decoding the message: ELM327V1.5
2024-06-18 15:01:53.746 System.err               W  [pool-4-thread-1] WARN org.obd.metrics.command.meta.MetadataCommand - Failed to decode message. Invalid answer code. Message:ATI
2024-06-18 15:01:53.749 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: AT@1
2024-06-18 15:01:53.830 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: OBDIITORS232INTERPRETER, processing time: 81ms
2024-06-18 15:01:53.831 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.command.meta.HexCommand - Decoding the message: OBDIITORS232INTERPRETER
2024-06-18 15:01:53.831 System.err               W  [pool-4-thread-1] WARN org.obd.metrics.command.meta.MetadataCommand - Failed to decode message. Invalid answer code. Message:AT@1
2024-06-18 15:01:53.834 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: ATDP
2024-06-18 15:01:53.952 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: AUTO,ISO15765-4(CAN11/500), processing time: 118ms
2024-06-18 15:01:53.953 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.command.meta.HexCommand - Decoding the message: AUTO,ISO15765-4(CAN11/500)
2024-06-18 15:01:53.953 System.err               W  [pool-4-thread-1] WARN org.obd.metrics.command.meta.MetadataCommand - Failed to decode message. Invalid answer code. Message:ATDP
2024-06-18 15:01:53.956 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 0100
2024-06-18 15:01:54.220 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 4100BE1FA813, processing time: 263ms
2024-06-18 15:01:54.229 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 0120
2024-06-18 15:01:54.332 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 41209005B015, processing time: 103ms
2024-06-18 15:01:54.339 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 0140
2024-06-18 15:01:54.478 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 41407ADC8001, processing time: 140ms
2024-06-18 15:01:54.486 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 0160
2024-06-18 15:01:54.604 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 416008000000, processing time: 118ms
2024-06-18 15:01:54.608 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 0180
2024-06-18 15:01:54.841 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: NODATA, processing time: 234ms
2024-06-18 15:01:54.844 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01A0
2024-06-18 15:01:55.091 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: NODATA, processing time: 246ms
2024-06-18 15:01:55.093 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01C0
2024-06-18 15:01:55.368 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: NODATA, processing time: 275ms
2024-06-18 15:01:56.373 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.executor.InitCompletedHandler - Initialization process is completed.
2024-06-18 15:01:56.374 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.executor.InitCompletedHandler - Found Vehicle metadata: {Communication protocol=AUTO,ISO15765-4(CAN11/500), Adapter description=OBDIITORS232INTERPRETER, VIN=ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ, Adapter ID=ELM327V1.5}.
2024-06-18 15:01:56.375 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.executor.InitCompletedHandler - Found Vehicle capabilities: [11, 01, 13, 02, 03, 14, 04, 15, 05, 06, 07, 08, 09, 1c, 0b, 0c, 0d, 1e, 0e, 1f, 0f, 10].
2024-06-18 15:01:56.376 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.executor.InitCompletedHandler - Found Diagnostic Trouble Codes: [].
2024-06-18 15:01:56.376 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.executor.InitCompletedHandler - Status of the Diagnostic Trouble Codes cleanup: NO_DATA.
2024-06-18 15:01:56.378 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.LifecycleAdapter - Received onRunning event. Starting CommandLoop thread.
2024-06-18 15:01:56.378 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.LifecycleAdapter - Received onRunning event. Starting ConnectionManager thread.
2024-06-18 15:01:56.379 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.LifecycleAdapter - Received onRunning event. Starting ConnectorResponseDecoder thread.
2024-06-18 15:01:56.380 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.LifecycleAdapter - Received onRunning event. Starting CommandProducer thread.
2024-06-18 15:01:56.517 System.err               W  [pool-4-thread-2] INFO org.obd.metrics.api.CANMessageHeaderManager - Determined single mode=true, available modes=[01]
2024-06-18 15:01:56.518 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 0F 3
2024-06-18 15:01:56.648 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00F0:410C0C3804571:0D00057E42341B2:0F6E0000000000, processing time: 129ms
2024-06-18 15:01:56.686 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 0F 3
2024-06-18 15:01:56.733 System.err               W  [pool-4-thread-3] ERROR org.obd.metrics.alert.DefaultAlertManager - In alert=ObdMetric [pid=05, id=6, val=86, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-06-18 15:01:56.788 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00F0:410C0C3104571:0D00057E42341B2:0F6E0000000000, processing time: 103ms
2024-06-18 15:01:56.837 System.err               W  [pool-4-thread-3] ERROR org.obd.metrics.alert.DefaultAlertManager - In alert=ObdMetric [pid=05, id=6, val=86, raw=org.obd.metrics.transport.message.RawConnectorResponse@3b]
2024-06-18 15:01:56.852 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 0F 3
2024-06-18 15:01:56.931 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - RX: 00F0:410C0C2204571:0D00057E42341B2:0F6E0000000000, processing time: 78ms

Directly turn off Bluetooth to simulate leaving the vehicle:

2024-06-18 15:02:13.332 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 0F 3
2024-06-18 15:02:13.397 System.err               W  [pool-4-thread-1] ERROR org.obd.metrics.transport.StreamConnector - Failed to receive data
2024-06-18 15:02:13.397 System.err               W  java.io.IOException: bt socket closed, read return: -1
2024-06-18 15:02:13.398 System.err               W  	at android.bluetooth.BluetoothSocket.read(BluetoothSocket.java:717)
2024-06-18 15:02:13.398 System.err               W  	at android.bluetooth.BluetoothInputStream.read(BluetoothInputStream.java:62)
2024-06-18 15:02:13.398 System.err               W  	at org.obd.metrics.transport.StreamConnector.receive(StreamConnector.java:124)
2024-06-18 15:02:13.398 System.err               W  	at org.obd.metrics.executor.ObdCommandHandler.execute(ObdCommandHandler.java:52)
2024-06-18 15:02:13.398 System.err               W  	at org.obd.metrics.executor.DefaultCommandHandler.execute(DefaultCommandHandler.java:56)
2024-06-18 15:02:13.398 System.err               W  	at org.obd.metrics.api.CommandLoop.call(CommandLoop.java:61)
2024-06-18 15:02:13.398 System.err               W  	at org.obd.metrics.api.CommandLoop.call(CommandLoop.java:33)
2024-06-18 15:02:13.399 System.err               W  	at java.util.concurrent.FutureTask.run(FutureTask.java:264)
2024-06-18 15:02:13.399 System.err               W  	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
2024-06-18 15:02:13.399 System.err               W  	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
2024-06-18 15:02:13.399 System.err               W  	at java.lang.Thread.run(Thread.java:1012)
2024-06-18 15:02:13.399 System.err               W  [pool-4-thread-1] ERROR org.obd.metrics.transport.StreamConnector - Connection is broken. Reconnecting...
2024-06-18 15:02:13.401 PcBluetoothConnection    E  OBD-II Device is disconnect, Socket for the device: 86:90:19:D8:50:D2 is closed.
2024-06-18 15:02:13.414 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Creating an instance of the Workflow task.
2024-06-18 15:02:13.415 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~tV7XsZ1JkN6zTXppmt9Fag==/com.example.vehiclehi-2cm9yn4rLy9seHpiBQNrSg==/base.apk!/extra.json. Files exists=false
2024-06-18 15:02:13.416 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~tV7XsZ1JkN6zTXppmt9Fag==/com.example.vehiclehi-2cm9yn4rLy9seHpiBQNrSg==/base.apk!/mode01.json. Files exists=false
2024-06-18 15:02:13.416 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~tV7XsZ1JkN6zTXppmt9Fag==/com.example.vehiclehi-2cm9yn4rLy9seHpiBQNrSg==/base.apk!/mode01_2.json. Files exists=false
2024-06-18 15:02:13.458 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 1 PID definitions from stream. Operation took: 39ms
2024-06-18 15:02:13.471 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 23 PID definitions from stream. Operation took: 13ms
2024-06-18 15:02:13.488 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 46 PID definitions from stream. Operation took: 16ms
2024-06-18 15:02:13.488 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Loading resources files took: 74ms.
2024-06-18 15:02:13.488 OBDBluetoothService      E  Stop OBD-II Workflow
2024-06-18 15:02:13.488 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Stopping workflow process...
2024-06-18 15:02:13.488 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Publishing onStopping event to let components complete.
2024-06-18 15:02:13.489 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.LifecycleAdapter - Received onStopping event. Stopping CommandLoop thread.
2024-06-18 15:02:13.489 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.LifecycleAdapter - Received onStopping event. Stopping ConnectionManager thread.
2024-06-18 15:02:13.489 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.LifecycleAdapter - Received onStopping event. Stopping ConnectorResponseDecoder thread.
2024-06-18 15:02:13.490 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.LifecycleAdapter - Received onStopping event. Stopping CommandProducer thread.
2024-06-18 15:02:13.490 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Stopping the Workflow task.
2024-06-18 15:02:13.490 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.buffer.DefaultCommandsBuffer - Invaldiating 1 commands in the queue.
2024-06-18 15:02:13.490 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.buffer.decoder.DefaultConnectorResponseBuffer - Invaldiating 0 commands in the queue.
2024-06-18 15:02:13.491 System.err               W  [pool-4-thread-1] ERROR org.obd.metrics.api.DefaultWorkflow - No workflow is currently running, nothing to stop
2024-06-18 15:02:13.498 System.err               W  [pool-4-thread-2] INFO org.obd.metrics.api.AdaptiveTimeout - Canceling adaptive timeout task
2024-06-18 15:02:13.498 System.err               W  [pool-4-thread-2] INFO org.obd.metrics.api.CommandProducer - Completed producer thread.
2024-06-18 15:02:13.717 BluetoothDevice          E  BT not enabled. Cannot get Remote Device name
2024-06-18 15:02:14.494 PcBluetoothConnection    E  Error reconnecting to the device: 86:90:19:D8:50:D2
                                                    java.io.IOException: Device not found: 86:90:19:D8:50:D2
                                                    	at com.example.vehiclehi.passenger_car.obd.api.PcBluetoothConnection.connect(PcBluetoothConnection.java:90)
                                                    	at com.example.vehiclehi.passenger_car.obd.api.PcBluetoothConnection.reconnect(PcBluetoothConnection.java:53)
                                                    	at org.obd.metrics.transport.StreamConnector.reconnect(StreamConnector.java:164)
                                                    	at org.obd.metrics.transport.StreamConnector.receive(StreamConnector.java:152)
                                                    	at org.obd.metrics.executor.ObdCommandHandler.execute(ObdCommandHandler.java:52)
                                                    	at org.obd.metrics.executor.DefaultCommandHandler.execute(DefaultCommandHandler.java:56)
                                                    	at org.obd.metrics.api.CommandLoop.call(CommandLoop.java:61)
                                                    	at org.obd.metrics.api.CommandLoop.call(CommandLoop.java:33)
                                                    	at java.util.concurrent.FutureTask.run(FutureTask.java:264)
                                                    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
                                                    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
                                                    	at java.lang.Thread.run(Thread.java:1012)
2024-06-18 15:02:14.496 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.transport.StreamConnector - TX: 01 0C 04 0D 05 42 0F 3
2024-06-18 15:02:14.497 System.err               W  [pool-4-thread-1] ERROR org.obd.metrics.transport.StreamConnector - Failed to transmit command: [priority=0, query=01 0C 04 0D 05 42 0F 3]
2024-06-18 15:02:14.497 System.err               W  java.io.IOException: socket closed
2024-06-18 15:02:14.497 System.err               W  	at android.net.LocalSocketImpl$SocketOutputStream.write(LocalSocketImpl.java:139)
2024-06-18 15:02:14.497 System.err               W  	at android.bluetooth.BluetoothSocket.write(BluetoothSocket.java:752)
2024-06-18 15:02:14.497 System.err               W  	at android.bluetooth.BluetoothOutputStream.write(BluetoothOutputStream.java:79)
2024-06-18 15:02:14.497 System.err               W  	at java.io.OutputStream.write(OutputStream.java:127)
2024-06-18 15:02:14.497 System.err               W  	at org.obd.metrics.transport.StreamConnector.transmit(StreamConnector.java:104)
2024-06-18 15:02:14.498 System.err               W  	at org.obd.metrics.executor.ObdCommandHandler.execute(ObdCommandHandler.java:51)
2024-06-18 15:02:14.498 System.err               W  	at org.obd.metrics.executor.DefaultCommandHandler.execute(DefaultCommandHandler.java:56)
2024-06-18 15:02:14.498 System.err               W  	at org.obd.metrics.api.CommandLoop.call(CommandLoop.java:61)
2024-06-18 15:02:14.498 System.err               W  	at org.obd.metrics.api.CommandLoop.call(CommandLoop.java:33)
2024-06-18 15:02:14.498 System.err               W  	at java.util.concurrent.FutureTask.run(FutureTask.java:264)
2024-06-18 15:02:14.498 System.err               W  	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
2024-06-18 15:02:14.498 System.err               W  	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
2024-06-18 15:02:14.498 System.err               W  	at java.lang.Thread.run(Thread.java:1012)
2024-06-18 15:02:14.498 System.err               W  [pool-4-thread-1] ERROR org.obd.metrics.transport.StreamConnector - Connection is broken. Reconnecting...
2024-06-18 15:02:14.499 PcBluetoothConnection    E  OBD-II Device is disconnect, Socket for the device: 86:90:19:D8:50:D2 is closed.
2024-06-18 15:02:14.505 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Creating an instance of the Workflow task.
2024-06-18 15:02:14.506 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~tV7XsZ1JkN6zTXppmt9Fag==/com.example.vehiclehi-2cm9yn4rLy9seHpiBQNrSg==/base.apk!/extra.json. Files exists=false
2024-06-18 15:02:14.507 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~tV7XsZ1JkN6zTXppmt9Fag==/com.example.vehiclehi-2cm9yn4rLy9seHpiBQNrSg==/base.apk!/mode01.json. Files exists=false
2024-06-18 15:02:14.508 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~tV7XsZ1JkN6zTXppmt9Fag==/com.example.vehiclehi-2cm9yn4rLy9seHpiBQNrSg==/base.apk!/mode01_2.json. Files exists=false
2024-06-18 15:02:14.544 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 1 PID definitions from stream. Operation took: 36ms
2024-06-18 15:02:14.552 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 23 PID definitions from stream. Operation took: 8ms
2024-06-18 15:02:14.561 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 46 PID definitions from stream. Operation took: 9ms
2024-06-18 15:02:14.562 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Loading resources files took: 57ms.
2024-06-18 15:02:14.562 OBDBluetoothService      E  Stop OBD-II Workflow
2024-06-18 15:02:14.562 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Stopping workflow process...
2024-06-18 15:02:14.562 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Publishing onStopping event to let components complete.
2024-06-18 15:02:14.562 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.LifecycleAdapter - Received onStopping event. Stopping CommandLoop thread.
2024-06-18 15:02:14.563 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.LifecycleAdapter - Received onStopping event. Stopping ConnectionManager thread.
2024-06-18 15:02:14.563 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.LifecycleAdapter - Received onStopping event. Stopping ConnectorResponseDecoder thread.
2024-06-18 15:02:14.563 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.LifecycleAdapter - Received onStopping event. Stopping CommandProducer thread.
2024-06-18 15:02:14.563 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Stopping the Workflow task.
2024-06-18 15:02:14.564 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.buffer.DefaultCommandsBuffer - Invaldiating 1 commands in the queue.
2024-06-18 15:02:14.564 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.buffer.decoder.DefaultConnectorResponseBuffer - Invaldiating 0 commands in the queue.
2024-06-18 15:02:14.564 System.err               W  [pool-4-thread-1] ERROR org.obd.metrics.api.DefaultWorkflow - No workflow is currently running, nothing to stop
2024-06-18 15:02:14.780 BluetoothDevice          E  BT not enabled. Cannot get Remote Device name
2024-06-18 15:02:14.829 BluetoothDevice          E  BT not enabled. Cannot get Remote Device name
2024-06-18 15:02:15.190 BluetoothDevice          E  BT not enabled. Cannot get Remote Device name
2024-06-18 15:02:15.567 PcBluetoothConnection    E  Error reconnecting to the device: 86:90:19:D8:50:D2
                                                    java.io.IOException: Device not found: 86:90:19:D8:50:D2
                                                    	at com.example.vehiclehi.passenger_car.obd.api.PcBluetoothConnection.connect(PcBluetoothConnection.java:90)
                                                    	at com.example.vehiclehi.passenger_car.obd.api.PcBluetoothConnection.reconnect(PcBluetoothConnection.java:53)
                                                    	at org.obd.metrics.transport.StreamConnector.reconnect(StreamConnector.java:164)
                                                    	at org.obd.metrics.transport.StreamConnector.transmit(StreamConnector.java:108)
                                                    	at org.obd.metrics.executor.ObdCommandHandler.execute(ObdCommandHandler.java:51)
                                                    	at org.obd.metrics.executor.DefaultCommandHandler.execute(DefaultCommandHandler.java:56)
                                                    	at org.obd.metrics.api.CommandLoop.call(CommandLoop.java:61)
                                                    	at org.obd.metrics.api.CommandLoop.call(CommandLoop.java:33)
                                                    	at java.util.concurrent.FutureTask.run(FutureTask.java:264)
                                                    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
                                                    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
                                                    	at java.lang.Thread.run(Thread.java:1012)
2024-06-18 15:02:15.567 System.err               W  [pool-4-thread-1] ERROR org.obd.metrics.transport.StreamConnector - Failed to receive data
2024-06-18 15:02:15.567 System.err               W  java.io.IOException: socket closed
2024-06-18 15:02:15.568 System.err               W  	at android.net.LocalSocketImpl$SocketInputStream.read(LocalSocketImpl.java:104)
2024-06-18 15:02:15.568 System.err               W  	at android.bluetooth.BluetoothSocket.read(BluetoothSocket.java:714)
2024-06-18 15:02:15.568 System.err               W  	at android.bluetooth.BluetoothInputStream.read(BluetoothInputStream.java:62)
2024-06-18 15:02:15.568 System.err               W  	at org.obd.metrics.transport.StreamConnector.receive(StreamConnector.java:124)
2024-06-18 15:02:15.568 System.err               W  	at org.obd.metrics.executor.ObdCommandHandler.execute(ObdCommandHandler.java:52)
2024-06-18 15:02:15.569 System.err               W  	at org.obd.metrics.executor.DefaultCommandHandler.execute(DefaultCommandHandler.java:56)
2024-06-18 15:02:15.569 System.err               W  	at org.obd.metrics.api.CommandLoop.call(CommandLoop.java:61)
2024-06-18 15:02:15.569 System.err               W  	at org.obd.metrics.api.CommandLoop.call(CommandLoop.java:33)
2024-06-18 15:02:15.569 System.err               W  	at java.util.concurrent.FutureTask.run(FutureTask.java:264)
2024-06-18 15:02:15.569 System.err               W  	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
2024-06-18 15:02:15.569 System.err               W  	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
2024-06-18 15:02:15.570 System.err               W  	at java.lang.Thread.run(Thread.java:1012)
2024-06-18 15:02:15.570 System.err               W  [pool-4-thread-1] ERROR org.obd.metrics.transport.StreamConnector - Connection is broken. Reconnecting...
2024-06-18 15:02:15.570 PcBluetoothConnection    E  OBD-II Device is disconnect, Socket for the device: 86:90:19:D8:50:D2 is closed.
2024-06-18 15:02:15.576 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Creating an instance of the Workflow task.
2024-06-18 15:02:15.577 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~tV7XsZ1JkN6zTXppmt9Fag==/com.example.vehiclehi-2cm9yn4rLy9seHpiBQNrSg==/base.apk!/extra.json. Files exists=false
2024-06-18 15:02:15.578 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~tV7XsZ1JkN6zTXppmt9Fag==/com.example.vehiclehi-2cm9yn4rLy9seHpiBQNrSg==/base.apk!/mode01.json. Files exists=false
2024-06-18 15:02:15.579 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~tV7XsZ1JkN6zTXppmt9Fag==/com.example.vehiclehi-2cm9yn4rLy9seHpiBQNrSg==/base.apk!/mode01_2.json. Files exists=false
2024-06-18 15:02:15.615 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 1 PID definitions from stream. Operation took: 35ms
2024-06-18 15:02:15.622 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 23 PID definitions from stream. Operation took: 6ms
2024-06-18 15:02:15.630 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 46 PID definitions from stream. Operation took: 7ms
2024-06-18 15:02:15.630 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Loading resources files took: 53ms.
2024-06-18 15:02:15.630 OBDBluetoothService      E  Stop OBD-II Workflow
2024-06-18 15:02:15.630 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Stopping workflow process...
2024-06-18 15:02:15.630 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Publishing onStopping event to let components complete.
2024-06-18 15:02:15.630 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.LifecycleAdapter - Received onStopping event. Stopping CommandLoop thread.
2024-06-18 15:02:15.631 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.LifecycleAdapter - Received onStopping event. Stopping ConnectionManager thread.
2024-06-18 15:02:15.631 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.LifecycleAdapter - Received onStopping event. Stopping ConnectorResponseDecoder thread.
2024-06-18 15:02:15.631 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.LifecycleAdapter - Received onStopping event. Stopping CommandProducer thread.
2024-06-18 15:02:15.631 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Stopping the Workflow task.
2024-06-18 15:02:15.632 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.buffer.DefaultCommandsBuffer - Invaldiating 1 commands in the queue.
2024-06-18 15:02:15.632 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.buffer.decoder.DefaultConnectorResponseBuffer - Invaldiating 0 commands in the queue.
2024-06-18 15:02:15.632 System.err               W  [pool-4-thread-1] ERROR org.obd.metrics.api.DefaultWorkflow - No workflow is currently running, nothing to stop
2024-06-18 15:02:16.635 PcBluetoothConnection    E  Error reconnecting to the device: 86:90:19:D8:50:D2
                                                    java.io.IOException: Device not found: 86:90:19:D8:50:D2
                                                    	at com.example.vehiclehi.passenger_car.obd.api.PcBluetoothConnection.connect(PcBluetoothConnection.java:90)
                                                    	at com.example.vehiclehi.passenger_car.obd.api.PcBluetoothConnection.reconnect(PcBluetoothConnection.java:53)
                                                    	at org.obd.metrics.transport.StreamConnector.reconnect(StreamConnector.java:164)
                                                    	at org.obd.metrics.transport.StreamConnector.receive(StreamConnector.java:152)
                                                    	at org.obd.metrics.executor.ObdCommandHandler.execute(ObdCommandHandler.java:52)
                                                    	at org.obd.metrics.executor.DefaultCommandHandler.execute(DefaultCommandHandler.java:56)
                                                    	at org.obd.metrics.api.CommandLoop.call(CommandLoop.java:61)
                                                    	at org.obd.metrics.api.CommandLoop.call(CommandLoop.java:33)
                                                    	at java.util.concurrent.FutureTask.run(FutureTask.java:264)
                                                    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
                                                    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
                                                    	at java.lang.Thread.run(Thread.java:1012)
2024-06-18 15:02:17.703 BluetoothDevice          E  BT not enabled. Cannot get Remote Device name

After restarting Bluetooth, the connection cannot be normal. Only by restarting the APP can the connection be normal:

2024-06-18 15:05:32.724 PcOBDScannerActivity     E  Start PcOBDBluetoothService
2024-06-18 15:05:33.225 PcOBDBluetoothService    E  Mac address:86:90:19:D8:50:D2
2024-06-18 15:05:33.235 System.err               W  [main] INFO org.obd.metrics.api.DefaultWorkflow - Creating an instance of the Workflow task.
2024-06-18 15:05:33.236 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~tV7XsZ1JkN6zTXppmt9Fag==/com.example.vehiclehi-2cm9yn4rLy9seHpiBQNrSg==/base.apk!/extra.json. Files exists=false
2024-06-18 15:05:33.237 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~tV7XsZ1JkN6zTXppmt9Fag==/com.example.vehiclehi-2cm9yn4rLy9seHpiBQNrSg==/base.apk!/mode01.json. Files exists=false
2024-06-18 15:05:33.237 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~tV7XsZ1JkN6zTXppmt9Fag==/com.example.vehiclehi-2cm9yn4rLy9seHpiBQNrSg==/base.apk!/mode01_2.json. Files exists=false
2024-06-18 15:05:33.268 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 1 PID definitions from stream. Operation took: 30ms
2024-06-18 15:05:33.272 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 23 PID definitions from stream. Operation took: 4ms
2024-06-18 15:05:33.278 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 46 PID definitions from stream. Operation took: 6ms
2024-06-18 15:05:33.278 System.err               W  [main] INFO org.obd.metrics.api.DefaultWorkflow - Loading resources files took: 43ms.
2024-06-18 15:05:33.278 OBDBluetoothService      E  Start OBD-II Workflow
2024-06-18 15:05:33.278 System.err               W  [main] INFO org.obd.metrics.api.DefaultWorkflow - Submitting the Workflow task.
2024-06-18 15:05:33.278 System.err               W  [main] WARN org.obd.metrics.api.DefaultWorkflow - Workflow task was rejected. There is already running task in the queue
2024-06-18 15:05:36.525 PcOBDBluetoothService    E  Mac address:86:90:19:D8:50:D2
2024-06-18 15:05:36.539 System.err               W  [main] INFO org.obd.metrics.api.DefaultWorkflow - Creating an instance of the Workflow task.
2024-06-18 15:05:36.540 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~tV7XsZ1JkN6zTXppmt9Fag==/com.example.vehiclehi-2cm9yn4rLy9seHpiBQNrSg==/base.apk!/extra.json. Files exists=false
2024-06-18 15:05:36.542 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~tV7XsZ1JkN6zTXppmt9Fag==/com.example.vehiclehi-2cm9yn4rLy9seHpiBQNrSg==/base.apk!/mode01.json. Files exists=false
2024-06-18 15:05:36.544 System.err               W  [main] INFO org.obd.metrics.api.Resources - Loading resource file: file:/data/app/~~tV7XsZ1JkN6zTXppmt9Fag==/com.example.vehiclehi-2cm9yn4rLy9seHpiBQNrSg==/base.apk!/mode01_2.json. Files exists=false
2024-06-18 15:05:36.580 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 1 PID definitions from stream. Operation took: 35ms
2024-06-18 15:05:36.586 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 23 PID definitions from stream. Operation took: 6ms
2024-06-18 15:05:36.594 System.err               W  [main] INFO org.obd.metrics.pid.DefaultPIDsRegistry - Load 46 PID definitions from stream. Operation took: 7ms
2024-06-18 15:05:36.594 System.err               W  [main] INFO org.obd.metrics.api.DefaultWorkflow - Loading resources files took: 55ms.
2024-06-18 15:05:36.594 OBDBluetoothService      E  Start OBD-II Workflow
2024-06-18 15:05:36.594 System.err               W  [main] INFO org.obd.metrics.api.DefaultWorkflow - Submitting the Workflow task.
2024-06-18 15:05:36.595 System.err               W  [main] WARN org.obd.metrics.api.DefaultWorkflow - Workflow task was rejected. There is already running task in the queue

@tzebrowski
Copy link
Owner

tzebrowski commented Jun 23, 2024

From what I see, the workflow was stopped

2024-06-18 15:02:15.630 OBDBluetoothService      E  Stop OBD-II Workflow
2024-06-18 15:02:15.630 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Stopping workflow process...
2024-06-18 15:02:15.630 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Publishing onStopping event to let components complete.
2024-06-18 15:02:15.630 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.LifecycleAdapter - Received onStopping event. Stopping CommandLoop thread.
2024-06-18 15:02:15.631 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.LifecycleAdapter - Received onStopping event. Stopping ConnectionManager thread.
2024-06-18 15:02:15.631 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.LifecycleAdapter - Received onStopping event. Stopping ConnectorResponseDecoder thread.
2024-06-18 15:02:15.631 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.LifecycleAdapter - Received onStopping event. Stopping CommandProducer thread.
2024-06-18 15:02:15.631 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.api.DefaultWorkflow - Stopping the Workflow task.
2024-06-18 15:02:15.632 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.buffer.DefaultCommandsBuffer - Invaldiating 1 commands in the queue.
2024-06-18 15:02:15.632 System.err               W  [pool-4-thread-1] INFO org.obd.metrics.buffer.decoder.DefaultConnectorResponseBuffer - Invaldiating 0 commands in the queue.
2024-06-18 15:02:15.632 System.err               W  [pool-4-thread-1] ERROR org.obd.metrics.api.DefaultWorkflow - No workflow is currently running, nothing to stop

however there is an issue with submitting new one

2024-06-18 15:05:36.595 System.err               W  [main] WARN org.obd.metrics.api.DefaultWorkflow - Workflow task was rejected. There is already running task in the queue

will take a look on this,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants