If your device is compatible with ELM327, you can use several PID requests, but only if the adapter is connected to a vehicle with CAN protocol. Thus, this will only work with a subset of vehicles, because not all vehicles support CAN.
Popular scanning tools simply send sequential requests. The maximum bandwidth that you can get with this approach is about 30-40 rps.
I don’t know how the freematics file works, but I see that it has some SD card installed - maybe it only gives parallelism emulation and internally every request is sent sequentially?
If you are looking for a reliable Java library to connect to your OBD II device, I would recommend you https://github.com/pires/obd-java-api . You can also take a look at my library - https://github.com/devesion/java-obd-adapter
source share