obd-ii

How to have multiple connections to a single Obd2 bluetooth device connected to car

女生的网名这么多〃 提交于 2019-12-20 15:29:22
问题 I have to do an Android application that reads value via Bluetooth from a Bluetooth device connected to OBD-II port of a car. I use the UUID SPP UUID 00001101-0000-1000-8000-00805F9B34FB . If I create 4 threads that want to connect to the OBD-II device, 3 connect() s fail and only one thread is able to connect to the device. Is there a way to connect more thread to an OBD-II device via Bluetooth? I don't know if the elm-237 device is able to communicate with more threads. 回答1: I am not an

Unable to Get VIN Number response from OBD-2 Device

我与影子孤独终老i 提交于 2019-12-18 15:29:27
问题 I need to fetch VIN number from car's controller using plxKiwi-2 wifi obd2 device. I am getting other information like car rpm,speed,throttle position,etc. in correct format. But when I request for VIN Number it gives me below response. 014 0: 49 02 01 FF FF FF 1: FF FF FF FF FF FF FF 2: FF FF FF FF FF FF FF which is invalid.In Hyundai's EON car, I got proper response for VIN Number,but in almost all other cars, I got above mentioned response. So is there any specific 'AT' command to get the

Make Android simultaneously use WiFi to talk to a device and mobile data to talk to a server?

左心房为你撑大大i 提交于 2019-12-17 10:43:02
问题 I'm developing an Android application which connects to an OBD2 device by Wifi and app can read Speed, RPM, Engine coolant temperature details etc. So wifi is used only for connecting with the OBD2 device(it doesn't have facility to connect with internet, only for communication with local clients). I also need an internet connection for web services. But after connecting my wifi I am not able to connect internet via my mobile data network in android. The similar application is also developed

Initialization of obd adapter

╄→гoц情女王★ 提交于 2019-12-12 09:03:29
问题 I am developing a android application which reads Obd data from vehicle's Obd adapter via bluetooth... I am facing issue while initializing the adapter. I have sent following Obd commands in sequence to initialize the obd : atz (received OK) atsp0 (Received OK) ate0 (Received OK) 0100 (This is the part where issue occurs)... Some times for this command i receive BUSINIT:ERROR.. And after that for every vehicle command (except AT commands) same error is repeated.. I want to know the Exact

Parsing a Very Simply Config File

给你一囗甜甜゛ 提交于 2019-12-11 18:50:03
问题 I am writing a OBDII reading library / application in C++. Data is retrieved from the car's computer by sending a simple string command, then passing the result through a function specific to each parameter. I would like to read a config file of all the commands I want, something like this perhaps: Name, Command, function Engine RPM, 010C, ((256*A)+B)/4 Speed, 010D, A Basically, very simple, all data needs to just be read in as a string. Can anyone recommend a good simple library for this? My

Trouble reading data from OBD 2

隐身守侯 提交于 2019-12-11 13:36:23
问题 I am using OBD2 device to get data from different vehicles. Communication between the app and OBD2 is done using Bluetooth LE. When I use an OBD2 device I get the service UUID = FFE0 and characteristic UUID = FFE1. I can use this characteristic to write PID and I am getting data from my car without any problem. But when I use a different OBD2 I get service UUID = FFF0 and two characteristics with UUID FFE1(with property .write) and FFE2(with property .read). When I try to write a PID to the

Pyserial, Getting extra info from OBD Device

邮差的信 提交于 2019-12-08 03:09:55
问题 I am new at programming and am trying to communicate with my vehicle with an OBD II device. Serial to USB. I've done what I want it to do but I get the command I entered to print out. How do I just get the information from the device? Heres my code. I am using Python 3.2.3 import serial import time import string import io import os import sys ser = serial.Serial("/dev/ttyUSB1") ser.baudrate = 38400 s = input('Enter AT command --> ') print ('AT command = ' + s) ser.write(bytes(s + '\r\n',

Android OBD-II How to clear distance travelled (PID0131)?

一曲冷凌霜 提交于 2019-12-07 10:16:54
问题 I working on an app that I need to calculate distance travelled from point A to point B (by car). I asked Elm Electronics (chipset manufacturer) and they said there is no standard OBD-II PID to return mileage from odometer, although car manufacturers might provide a PID. Since this way is not standard then I found another way. PID 0131 (Distance traveled since codes cleared), is returning something that I think might be helpful. IF i'm able to clear it at point A and read its value at point B

Pyserial, Getting extra info from OBD Device

淺唱寂寞╮ 提交于 2019-12-06 15:06:01
I am new at programming and am trying to communicate with my vehicle with an OBD II device. Serial to USB. I've done what I want it to do but I get the command I entered to print out. How do I just get the information from the device? Heres my code. I am using Python 3.2.3 import serial import time import string import io import os import sys ser = serial.Serial("/dev/ttyUSB1") ser.baudrate = 38400 s = input('Enter AT command --> ') print ('AT command = ' + s) ser.write(bytes(s + '\r\n', encoding = 'utf-8')) ser.timeout = 1 response = ser.read(999).decode('utf-8') print(response) ser.close()

Android OBD-II How to clear distance travelled (PID0131)?

£可爱£侵袭症+ 提交于 2019-12-05 16:56:11
I working on an app that I need to calculate distance travelled from point A to point B (by car). I asked Elm Electronics (chipset manufacturer) and they said there is no standard OBD-II PID to return mileage from odometer, although car manufacturers might provide a PID. Since this way is not standard then I found another way. PID 0131 (Distance traveled since codes cleared), is returning something that I think might be helpful. IF i'm able to clear it at point A and read its value at point B then I'm done :) I thought a lot to guess what does "codes cleared" mean but I couldn't realize what