Java OBD API

A Java OBD API

License

License

Categories

Categories

Java Languages
GroupId

GroupId

com.github.eltonvs
ArtifactId

ArtifactId

java-obd-api
Last Version

Last Version

0.0.1
Release Date

Release Date

Type

Type

aar
Description

Description

Java OBD API
A Java OBD API
Project URL

Project URL

https://github.com/eltonvs/java-obd-api
Source Code Management

Source Code Management

https://github.com/eltonvs/java-obd-api

Download java-obd-api

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.eltonvs/java-obd-api/ -->
<dependency>
    <groupId>com.github.eltonvs</groupId>
    <artifactId>java-obd-api</artifactId>
    <version>0.0.1</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/com.github.eltonvs/java-obd-api/
implementation 'com.github.eltonvs:java-obd-api:0.0.1'
// https://jarcasting.com/artifacts/com.github.eltonvs/java-obd-api/
implementation ("com.github.eltonvs:java-obd-api:0.0.1")
'com.github.eltonvs:java-obd-api:aar:0.0.1'
<dependency org="com.github.eltonvs" name="java-obd-api" rev="0.0.1">
  <artifact name="java-obd-api" type="aar" />
</dependency>
@Grapes(
@Grab(group='com.github.eltonvs', module='java-obd-api', version='0.0.1')
)
libraryDependencies += "com.github.eltonvs" % "java-obd-api" % "0.0.1"
[com.github.eltonvs/java-obd-api "0.0.1"]

Dependencies

compile (1)

Group / Artifact Type Version
com.android.support » appcompat-v7 jar 27.1.1

Project Modules

There are no modules declared in this project.

Java OBD API

An OBD-II API written in Java. Based on obd-java-api.

Quickstart

Android

Just include it into the build.gradle file:

   dependencies {
     ...

     // Java OBD API
     implementation 'com.github.eltonvs:java-obd-api:0.0.1'
   }

Maven

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>

Sample Usage

After pairing and establishing a Bluetooth connection with your OBD device.

// retrieve Bluetooth socket
socket = ...; // specific to the VM you're using (Java, Android, etc.)

// Group many obd commands into a single command ()
ObdCommandGroup obdCommands = new ObdCommandGroup();
obdCommands.add(new EchoOffCommand());
obdCommands.add(new LineFeedOffCommand());
obdCommands.add(new TimeoutCommand(timeout));
obdCommands.add(new SelectProtocolCommand(protocol));

// Run all commands at once
obdCommands.run(socket.getInputStream(), socket.getOutputStream());

Contributing

We're open for contributions!

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the Apache 2.0 - see the LICENSE file for details

Acknowledgments

Versions

Version
0.0.1