Apache License 2.0

项目介绍

pires/android-obd-reader 是一个托管在 GitHub 上的开源项目,主要使用 Java 编写,采用 Apache License 2.0 许可证,目前获得 839 个 Star、465 次 Fork。

仓库全名
pires/android-obd-reader
开源许可证
Apache License 2.0
Star 数
839
Fork 数
465
未关闭 Issue
10

README 摘要

android-obd-reader ======================== 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 from Brice Lambi (the original author). But one thing I'm sure, it was a time my interests changed quite frequently and I'd contribute simultaneously to totally…

完整内容见 GitHub 原始 README 或本页 。

常见问题

android-obd-reader 用什么语言开发?

主要使用 Java 编写,采用 Apache License 2.0 许可证,目前有 839 个 Star。

android-obd-reader 可以免费商用吗?

仓库采用 Apache License 2.0 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 android-obd-reader 的源码?

可以直接克隆仓库:git clone https://github.com/pires/android-obd-reader.git,默认分支为 master;安装与运行步骤见仓库 README。

android-obd-reader 最近还在维护吗?

仓库最近一次更新为 2017年5月27日,当前有 10 个未关闭 Issue;Star 数为 839,可作为社区活跃度的参考。

关于

Android OBD-II Reader application that uses pure OBD-II PID's Java API.

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

简要分析

热度分
2608
价值分
726
活跃状态
归档

语言占比

Java

Release

README

android-obd-reader

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 from Brice Lambi (the original author). But one thing I’m sure, it was a time my interests changed quite frequently and I’d contribute simultaneously to totally unrelated projects. But for some reason this project stuck with me the longest.

Initially, it was more of an Android hack (sorry, Brice!). With time, I’ve redesigned the code and split it into two: a Java API library that could run anywhere the JVM ran without concerning about which transport protocol one would use (because it just asks for one InputStream/OutputStream pair) and, after learning about Android development, a revamped Android app.

I know, the UI sucks, but I’ve never had the eye for UI/UX, I’ll admit!

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

CircleCI

Android OBD-II reader designed to connect with Bluetooth Elm327 OBD reader.

screenshot

The latest release can be found here.

Prerequisites

  • JDK 8
  • Android Studio 1.5.x or newer
  • Android SDK (API 22, Build tools 23.0.1)
  • OBD Java API (already included)

Test with device

Be sure to have the device connected to your computer.

cd whatever_directory_you_cloned_this_repository
gradle clean build installDebug

Test with OBD Server

If you want to upload data to a server, for now, check the following:

  • OBD Server - a simple implementation of a RESTful app, compiled into a runnable JAR.
  • Enable the upload functionality in preferences
  • Set proper endpoint address and port in preferences.

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

One may need to turn off echo and headers depending on the dongle in use:

AT E0 - Turn echo off. Characters sent to ElmScan are not retransmitted back to the host computer.
AT E1 - Turn echo on. This is the default state, characters are echoed back to the host computer.
AT H0 - Turn headers off. This is the default state, header information and CRC byte are omitted.
AT H1 - Turn headers on. Header information and CRC byte are displayed.

Building with custom obd-java-api

This project depends on a pure-Java OBD library. For testing with a custom version of it, do the following:

  • Clone obd-java-api it into your project folder:
git clone https://github.com/pires/obd-java-api.git
  • Create obd-java-api/build.gradle with the following content:
apply plugin: 'java'
  • Edit main build.gradle and change:
compile 'com.github.pires:obd-java-api:1.0-RC14'`

to

compile project(':obd-java-api')
  • Edit settings.gradle and add:
include ':obd-java-api'

Tested on

  • Samsung Galaxy Nexus (Android 4.4.1)
  • LG Nexus 5 (Android 6.0 Preview 3)
  • Nexus 7 2013 WiFi (Android 4.4.4)
  • Samsung Galaxy S4 Active I9295 (Android 5.0.2)
  • Samsung Galaxy S6 Edge SM-925F (Android 5.0.2)
  • Samsung Galaxy Note 3

评论

暂无评论