Obd Diagnostic Interface Program In Java

OBD-II Java API

Interface

NOTICE

I am no longer involved in any way with OBD and related activities, so don't expect my feedback on issues, pull-requests and most of all, email.

I can't even remember when I first picked this project but it was fun as hell in the beginning. Now, years went by and a few contributors jumped in with amazing, smart features and fixes. To those fine people, Thank you! This is your baby, too.

Now, it's time to say goodbye.Pires

Important resources

Product Description. 1.The CANDI module connects between the Tech 2 Flash’s diagnostic link cable and the OBD adapter. 2.Once the CANDI module is connected, it can be used on all GM vehicle applications, even those vehicles using other platforms such as OBD I and OBD II. 3.Includes the CAN diagnostic interface module and instruction sheet.

Before opening an issue or using this library, please take a look at the following resources:

Build

Requisites

  • JDK 7
  • Maven 3.1 or newer

Compile, package and install locally

Usage

Maven

Gradle

Example

After pairing and establishing Bluetooth connection to your ELM327 device..

Troubleshooting

As @dembol noted:

Have you checked your ELM327 adapter with Torque or Scanmaster to see if it works with your car? Maybe the problem is with your device?

Popular OBD diagnostic tools reset state and disable echo, spaces etc before protocol selection. Download some ELM327 terminal for android and try following commands in order:

Description

Car diagnostic software for vehicles with OBD2 compatible interface.

Example

  • now we can run two actions. Program looks for serial interfaces and lets the user to select one.Then it runs the action.
  • report creates a text file in the current directory containing all implemented values.
  • clear_trouble_codes erases the saved errors.

Targets

  • support for most of today's operating systems
  • communication via USB ELM327/OBD2 car interface, probably other in future
  • stability
  • simple startup, no system modifications needed (only JRE6 and higher)
  • pretty maintainable code covered by tests, both unit (without real serial interface)and integration (with interface and car)
  • open source free code

Problems

  • how
  • only available hardware for testing - ELM327 clone (1.5a)
  • only few available cars for testing - Lada Kalina 1.6 8V 2007, Škoda Fabia 2010, Ford Focus 2007, Seat Ibiza 2001.
  • need help with a selection of the license ... GNU GPL v3? EPL? BSD? MIT?
Obd diagnostic interface program in java with output

Troubleshooting

Port name - /dev/ttyUSB0; Method name - openPort(); Exception type - Permission denied. (Linux)

  • sudo gpasswd --add ${USER} dialout
  • or run the program with sudo.

Current stage

Example
  • early development.
  • can reset error codes
  • can produce a report file with the current values
  • version 0.0.1 will be released after I will fix my problem with my car (P300, P303, P304) ... or later, in 2017 ;)
  • if someone will start implementing GUI, many people will be finally happy ;)

Useful links

Simple Interface Program In Java

Maybe useful links

Obd Diagnostic Interface Software

These libraries were not selected due to license or incompatibilities or other reason: