├── OBDII Terminal ├── gen │ └── .gitignore ├── bin │ ├── classes │ │ └── .gitignore │ ├── jarlist.cache │ └── AndroidManifest.xml ├── OBDII Terminal.apk ├── res │ ├── drawable │ │ ├── terminal_icon.png │ │ ├── btn_white.xml │ │ └── input_frame.xml │ ├── menu │ │ └── main.xml │ ├── values-sw600dp │ │ └── dimens.xml │ ├── values │ │ ├── dimens.xml │ │ ├── styles.xml │ │ └── strings.xml │ ├── layout │ │ ├── device_name.xml │ │ ├── message.xml │ │ ├── device_list.xml │ │ └── terminal_layout.xml │ ├── values-sw720dp-land │ │ └── dimens.xml │ ├── values-v11 │ │ └── styles.xml │ └── values-v14 │ │ └── styles.xml ├── project.properties ├── License.md ├── proguard-project.txt ├── .classpath ├── .project ├── readme.md ├── AndroidManifest.xml └── src │ └── com │ └── petrolr │ └── petrolr_obdterminal │ ├── LogWriter.java │ ├── DeviceListActivity.java │ ├── MainActivity.java │ └── BluetoothChatService.java └── README.md /OBDII Terminal/gen/.gitignore: -------------------------------------------------------------------------------- 1 | /com/ 2 | /.gitignore 3 | -------------------------------------------------------------------------------- /OBDII Terminal/bin/classes/.gitignore: -------------------------------------------------------------------------------- 1 | /com/ 2 | /.gitignore 3 | -------------------------------------------------------------------------------- /OBDII Terminal/OBDII Terminal.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/M-Helm/OBDTerminal/HEAD/OBDII Terminal/OBDII Terminal.apk -------------------------------------------------------------------------------- /OBDII Terminal/res/drawable/terminal_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/M-Helm/OBDTerminal/HEAD/OBDII Terminal/res/drawable/terminal_icon.png -------------------------------------------------------------------------------- /OBDII Terminal/bin/jarlist.cache: -------------------------------------------------------------------------------- 1 | # cache for current jar dependency. DO NOT EDIT. 2 | # format is 3 | # Encoding is UTF-8 4 | -------------------------------------------------------------------------------- /OBDII Terminal/res/menu/main.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /OBDII Terminal/res/values-sw600dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /OBDII Terminal/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 16dp 5 | 16dp 6 | 7 | 8 | -------------------------------------------------------------------------------- /OBDII Terminal/res/layout/device_name.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /OBDII Terminal/res/layout/message.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /OBDII Terminal/res/values-sw720dp-land/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 128dp 8 | 9 | 10 | -------------------------------------------------------------------------------- /OBDII Terminal/res/values-v11/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /OBDII Terminal/res/values-v14/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /OBDII Terminal/project.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must be checked in Version Control Systems. 5 | # 6 | # To customize properties used by the Ant build system edit 7 | # "ant.properties", and override values to adapt the script to your 8 | # project structure. 9 | # 10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): 11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt 12 | 13 | # Project target. 14 | target=android-19 15 | -------------------------------------------------------------------------------- /OBDII Terminal/License.md: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2019 Sawatch Inc 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | -------------------------------------------------------------------------------- /OBDII Terminal/res/drawable/btn_white.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | 12 | 13 | 16 | 20 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /OBDII Terminal/res/drawable/input_frame.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | 12 | 13 | 16 | 20 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /OBDII Terminal/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 14 | 15 | 16 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /OBDII Terminal/proguard-project.txt: -------------------------------------------------------------------------------- 1 | # To enable ProGuard in your project, edit project.properties 2 | # to define the proguard.config property as described in that file. 3 | # 4 | # Add project specific ProGuard rules here. 5 | # By default, the flags in this file are appended to flags specified 6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt 7 | # You can edit the include path and order by changing the ProGuard 8 | # include property in project.properties. 9 | # 10 | # For more details, see 11 | # http://developer.android.com/guide/developing/tools/proguard.html 12 | 13 | # Add any project specific keep options here: 14 | 15 | # If your project uses WebView with JS, uncomment the following 16 | # and specify the fully qualified class name to the JavaScript interface 17 | # class: 18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 19 | # public *; 20 | #} 21 | -------------------------------------------------------------------------------- /OBDII Terminal/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /OBDII Terminal/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | OBDII Terminal 4 | 5 | 6 | 7 | 8 | 9 | com.android.ide.eclipse.adt.ResourceManagerBuilder 10 | 11 | 12 | 13 | 14 | com.android.ide.eclipse.adt.PreCompilerBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.jdt.core.javabuilder 20 | 21 | 22 | 23 | 24 | com.android.ide.eclipse.adt.ApkBuilder 25 | 26 | 27 | 28 | 29 | 30 | com.android.ide.eclipse.adt.AndroidNature 31 | org.eclipse.jdt.core.javanature 32 | 33 | 34 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | OBDTerminal 2 | =================== 3 | 4 | This is a simple OBD Terminal for Android that can be used to pass commands and receive responses from an OBDII device. Compatible with any Bluetooth OBD reader. You type in the commands. The terminal gives you back the OBD response. Works on most cars 1996 and newer. That's about it. 5 | 6 | How to use: 7 | 8 | The various PIDs it's possible to request are described here: http://en.wikipedia.org/wiki/OBD-II_PIDs 9 | 10 | You request the PID through the terminal by combining the Mode number with the PID number in hexadecimal. For example: to request Engine RPM one would enter 010C. 11 | 12 | The exact form of the OBD response will very depending on the vehicle OBD protocol and the settings on the OBD reader you're using. A typical response would look something like this: (Assuming one has requested engine RPM) "51 0C 0F 04". Where "51 0C" is 5 + requested mode number + requested PID number, "0F" is the A value from the OBD and "04" is the B value from the OBD. The A & B values can then be converted into more useful figures through the formulas as given on the wikipedia paged linked to above. 13 | 14 | Responses from the OBD are written to a log file found on the phone under /android/data/petrolr/files. 15 | 16 | 17 | matthew.helm@gmail.com 18 | -------------------------------------------------------------------------------- /OBDII Terminal/readme.md: -------------------------------------------------------------------------------- 1 | OBDTerminal 2 | =================== 3 | 4 | This is a simple OBD Terminal for Android that can be used to pass commands and receive responses from an OBDII device. Compatible with any Bluetooth OBD reader. You type in the commands. The terminal gives you back the OBD response. Works on most cars 1996 and newer. That's about it. 5 | 6 | How to use: 7 | 8 | The various PIDs it's possible to request are described here: http://en.wikipedia.org/wiki/OBD-II_PIDs 9 | 10 | You request the PID through the terminal by combining the Mode number with the PID number in hexadecimal. For example: to request Engine RPM one would enter 010C. 11 | 12 | The exact form of the OBD response will very depending on the vehicle OBD protocol and the settings on the OBD reader you're using. A typical response would look something like this: (Assuming one has requested engine RPM) "51 0C 0F 04". Where "51 0C" is 5 + requested mode number + requested PID number, "0F" is the A value from the OBD and "04" is the B value from the OBD. The A & B values can then be converted into more useful figures through the formulas as given on the wikipedia paged linked to above. 13 | 14 | Responses from the OBD are written to a log file found on the phone under /android/data/petrolr/files. 15 | 16 | matthew.helm@gmail.com 17 | -------------------------------------------------------------------------------- /OBDII Terminal/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | obdTerminal 6 | Settings 7 | Geek View 8 | Data View 9 | 10 | Start 11 | 12 | Data View Box 13 | Start 14 | 15 | Send 16 | 17 | 18 | 19 | Send 20 | You are not connected to a device 21 | Bluetooth is not enabled. Leaving Bluetooth Chat. 22 | Connecting… 23 | Connected 24 | Not Connected 25 | 26 | 27 | Scanning… 28 | Select a Device 29 | No Devices Paired 30 | No Devices Found 31 | Paired Devices 32 | Other Available Devices 33 | Scan for Devices 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /OBDII Terminal/res/layout/device_list.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 17 | 23 | 32 | 38 |