All Projects → pires → Obd Java Api

pires / Obd Java Api

Licence: other
OBD-II Java API

Programming Languages

java
68154 projects - #9 most used programming language

Labels

Projects that are alternatives of or similar to Obd Java Api

RecPlate-lib
基于BP神经网络的车牌识别系统
Stars: ✭ 41 (-92.08%)
Mutual labels:  car
reinforced-race
A model car learns driving along a track using reinforcement learning
Stars: ✭ 37 (-92.86%)
Mutual labels:  car
Cartool
Mac上解压Assets.car文件的小工具(支持右键解压)
Stars: ✭ 375 (-27.61%)
Mutual labels:  car
RejsaCAN-ESP32
ESP32 board with CAN interface, runs on 12V power (with auto shutdown)
Stars: ✭ 88 (-83.01%)
Mutual labels:  car
self-driving-car-nd
Udacity's Self-Driving Car Nanodegree project files and notes.
Stars: ✭ 50 (-90.35%)
Mutual labels:  car
awesome-automotive-can-id
🚜 unpretentious attempt to collect CAN IDs and payloads for various car brands/models in one place.
Stars: ✭ 104 (-79.92%)
Mutual labels:  car
epp
上海车牌 辅助 拍牌 软件
Stars: ✭ 34 (-93.44%)
Mutual labels:  car
Vehicle detection haarcascades
Vehicle Detection by Haar Cascades with OpenCV
Stars: ✭ 445 (-14.09%)
Mutual labels:  car
cybertruckchallenge19
Android security workshop material taught during the CyberTruck Challenge 2019 (Detroit USA).
Stars: ✭ 80 (-84.56%)
Mutual labels:  car
Sdsandbox
This provides a sandbox simulator for training a self-driving car. This uses Unity for simulation and Python with Keras and Tensorflow for training. Recently updated to work on Python 3.4+ and Keras 2+
Stars: ✭ 369 (-28.76%)
Mutual labels:  car
Nissboard
🚗 Nissan Consult/OBDII Realtime Dashboard
Stars: ✭ 20 (-96.14%)
Mutual labels:  car
WeConnect-mqtt
MQTT Client that publishes data from Volkswagen WeConnect
Stars: ✭ 14 (-97.3%)
Mutual labels:  car
savagewheels
🏁 2D car crashing game armageddon
Stars: ✭ 21 (-95.95%)
Mutual labels:  car
uracer-kotd
A GLES2 top-down racer, built on top of libgdx and Box2D.
Stars: ✭ 95 (-81.66%)
Mutual labels:  car
Carhackingtools
Install and Configure Common Car Hacking Tools.
Stars: ✭ 374 (-27.8%)
Mutual labels:  car
mbapipy
MercedesME platform as a Custom Component for Home Assistant.
Stars: ✭ 25 (-95.17%)
Mutual labels:  car
car-OCR
基于机器学习和OCR的车牌识别系统 @fujunhao
Stars: ✭ 39 (-92.47%)
Mutual labels:  car
Assetsextractor
『Assets提取工具』是一款OSX平台上用于将Assets.car或xxx.app中打包的png图片、pdf等资源重新提取出来的开发者工具。Assets.car常见于iOS/Mac/Unity等开发中的资源打包。
Stars: ✭ 486 (-6.18%)
Mutual labels:  car
Carassistant
汽车助手:消费信息的增删改查;消费记录、百分比统计表;百公里油耗曲线图,最低油耗/最高油耗信息
Stars: ✭ 414 (-20.08%)
Mutual labels:  car
Stuntrally
The main repository containing Stunt Rally sources and game data. A 3D racing game based on VDrift and OGRE with track editor.
Stars: ✭ 314 (-39.38%)
Mutual labels:  car

obd-java-api

OBD-II Java API

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

Build status

Important resources

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

mvn clean install

Usage

Maven

<dependency>
  <groupId>com.github.pires</groupId>
  <artifactId>obd-java-api</artifactId>
  <version>1.0</version>
</dependency>

Gradle

dependencies {
    compile 'com.github.pires:obd-java-api:1.0'
}

Example

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

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

// execute commands
try {
  new EchoOffCommand().run(socket.getInputStream(), socket.getOutputStream());
  new LineFeedOffCommand().run(socket.getInputStream(), socket.getOutputStream());
  new TimeoutCommand(125).run(socket.getInputStream(), socket.getOutputStream());
  new SelectProtocolCommand(ObdProtocols.AUTO).run(socket.getInputStream(), socket.getOutputStream());
  new AmbientAirTemperatureCommand().run(socket.getInputStream(), socket.getOutputStream());
} catch (Exception e) {
  // handle errors
}

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:

ATD
ATZ
AT E0
AT L0
AT S0
AT H0
AT SP 0
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].