An OBD-II API written in Java. Based on obd-java-api.
Just include it into the build.gradle file:
dependencies {
...
// Java OBD API
implementation 'com.github.eltonvs:java-obd-api:0.0.1'
}
You only need to include it into your pom.xml file:
<dependency>
<groupId>com.github.eltonvs</groupId>
<artifactId>java-obd-api</artifactId>
<version>0.0.1</version>
</dependency>
After pairing and establishing a Bluetooth connection with your OBD device.
// retrieve Bluetooth socketsocket = ...; // specific to the VM you're using (Java, Android, etc.)// Group many obd commands into a single command ()ObdCommandGroupobdCommands = newObdCommandGroup();
obdCommands.add(newEchoOffCommand());
obdCommands.add(newLineFeedOffCommand());
obdCommands.add(newTimeoutCommand(timeout));
obdCommands.add(newSelectProtocolCommand(protocol));
// Run all commands at onceobdCommands.run(socket.getInputStream(), socket.getOutputStream());We're open for contributions!
- Elton Viana - Initial work
- Ivanovitch Silva - Initial work
See also the list of contributors who participated in this project.
This project is licensed under the Apache 2.0 - see the LICENSE file for details
- Paulo Pires - Creator of the obd-java-api, on which this project was based.
- SmartMetropolis Project (Digital Metropolis Institute - UFRN, Brazil)