pires/obd-java-api

ObdCommand issue

Closed this issue · 4 comments

Hi,

I noticed that you added a speed up part which consists in adding " 1" after every command, this change causes NODATA response, I tried with 3 cars and it gave the same result. I'm using OBDLink LX adapter. When I removed it everithing worked fine, can I ask with which setup this speedup works?
Here the part I'm referring to:
public ObdCommand(String command) {
this.cmd = command;
this.buffer = new ArrayList();
if (this instanceof ReturnAsapCommand) {
this.cmd += " 1";//speed up
}
}

pires commented

@anti43 I'm seeing a lot of users reporting this. Can you chime in and fix it if needed?

It maybe that not all adapters support it?

pires commented

@anti43 can we make it optional somehow? Otherwise, I prefer to remove this functionality.

i think then you must remove it for now, until i found a way to detect the ability of the adapter.