SlideShare a Scribd company logo
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 06 Issue: 05 | May 2019 www.irjet.net p-ISSN: 2395-0072
© 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 1498
An Android solution for Car Monitoring and
Alerting System
Hima.M1, Angel Rose A2
1Master of Computer Applications, College of Engineering, Trivandrum, Kerala, India
2Assistant Professor, Master of Computer Applications, College of Engineering, Trivandrum, Kerala, India
---------------------------------------------------------------------***---------------------------------------------------------------------
Abstract - At present one of the problems faced by the drivers is that most of the sensor data in the Engine Control Unit(ECU)is
not visible to the driver. The ECU data is very helpful to the driver to understand the speed, rpm, voltage, temperature, etc. Thereis
no proper application to show these values in an understandable way. Another problem is that accidentsinaruralareawilltakea
long time for the helping hands to reach the victim. There are still problems in finding relatives of the injured person. No proper
application to alert the driver if he exceeds the speed limit. Still, it will take a long time for thepolicetodetecttheaccidentlocation
and to the relatives, to reach the injured person on time.
In this paper, we are introducing an efficient, low-cost android application based on the OBD-II Bluetooth scanner, as a
solution to the above problems. Here we develop an Android application for giving alert to the driver if he is over speed and also
there is a facility to send SMS to the relatives when an accident is detected. This app will inform the police immediately with
location data in case of an accident. So that we can ensure safe car driving and can save lives.
Key Words: On-Board Diagnostics, Electronic Control Unit, Parameter Identification, Diagnostics Trouble Codes.
1. INTRODUCTION
OBD stands for On-Board Diagnostic System.Thisstandardwasdevelopedin1996intheUnitedStatesofAmerica. The
OBD standard is supported by all vehicles in the market developed after the year 1996. ThisstandardsupportOBD porthaving
16-pin.OBD scanner is connected to the port to read data from the Engine Control Unit(ECU). Many sensors placed inside the
vehicle are connected with this ECU. Data send from these sensors are accumulated at the control unit. Each sensor has an
identifier associated with it. This unique identifier is called Parameter Identifiers(PIDs). In addition to this, manufacture can
add additional PIDs as their own. Scanning tool can request data from the ECU by sending hexadecimal representing a PID.
These scanners are portable and easy to use. Another type of code we can use with OBD is Diagnostic Trouble Codes (DTCs).
These codes are used for troubleshooting purpose such as malfunction detection. The 16 pin OBD port can be used to connect
the OBD scanner. It can then be used for reading data from ECU. It can read data such as speed, rpm, voltage, temperature, etc
from the vehicle.
In this project, we use the OBD-II Bluetooth scanner for reading data from the ECU and pass the data to android
application for further processing.
In this project, we develop an android application asaninterfacetotheuserfordisplayingthe readingsfromthe OBDII
scanner. When speed is high it gives alert to the driver and sends message to authority with the vehicle number, GPSwhenthe
car's speed is over the limit. Another module included in the projectisdetectingtheaccidentcondition. Whentheconditionhas
occurred an immediate message regarding the crash is sent to the driver's family members and to the concerned authority.
2. RELATED WORK
Some of the literature can be found which explains Android-based smartphones that support vehicle services.
Hernandez developed a prototype of an On Board system which provides communication between driverandhisvehicle.This
provides intelligent transport services as a result.
Chen proposed Android/OSGi platform for vehicles,used formanagingordiagnosingthestatusofa vehicularplatform
from a remote area.
Al-Ani proposed an Android-based terminal whichreplacesthestereosystemofa vehiclethatcanprovidehighfidelity
In-Vehicle Infotainment System. It also provides good driver experience with the use of a mobile operating system.
Joint work of Jorge Zaldivar, Carlos T. Calafate, Juan Carlos Cano, and Pietro Manzoni also proposes an idea about
detecting accident in vehicles with the use of mobile phones. This paper discusses the use of OBDII Bluetooth scanner in
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 06 Issue: 05 | May 2019 www.irjet.net p-ISSN: 2395-0072
vehicles. They also explain an android application which can read data from the scanner and how it can be used for further
processing.
3. THE OBD-II STANDARD
The standard for OBDII include the different types of diagnostic connector and its pin details. It also includes the
formats for messages.OBD scanner takes its power from one of its pin connected with the battery of the vehicle. This standard
provides a predefined set of Diagnostic Trouble Codes.
3.1 Types of OBD-II scanner
There are two categories of OBD-II scanners,
OBD-II Code readers
These are commonly low-cost devices which can be used with vehicles to read the PIDs.These PIDs are comprised of
temperature, speed, rpm data. It can be displayed as real-time data in a user interface. One of the limitations of this reader
device is that it does not support all type of data.
OBD-II Scan Tools
These tools are more expensive than code readers and they can offer a variety of different features. Scan tools are
commonly used for advanced troubleshooting.OBD-II scanner functionality depends on whetheritisa basic“codereader”ora
more advanced “scan tool.” OBDII code readers are used for only read and clear codes. At thesametime,scantoolsareusedfor
recording real-time data from the vehicle.
Figure(1)
Basic functionality of OBDII is its ability to read and clear codes. Scanners can also set up lists of parameter IDs (PIDs). OBDII
standardization makes it relatively simple to use and they use the same connector defined by SAE J1962. Scan tools can be
inserted into a universal plug into the OBD-II diagnostic connector in a vehicle.
3.2 OBD-II Protocols
An OBD2 supporting vehicle can use any of the five communication protocols: SAE J1850 PWM, SAE J1850 VPW,
ISO9141-2, ISO14230-4 (KWP2000), ISO 15765-4/SAE J2480. The ELM-USB and OBD Tester can support all of them.
The CAN/OBD-II scanner uses an ELM327 chip based on SAE/ISO standards. This device can be used for the
diagnostic purpose such as troubleshooting. The different modes of operation it provides are discussed below.
MODE 1: In this mode, some common values for some sensor suchas speed,temperature,informationaboutoxygen sensorare
returned. Each sensor is uniquely identified by a number called PID (Parameter Identifier) used to identify theparameter.For
example, speed has a PID of 12. The OBD standard includes 137 PIDs.
MODE 2: Mode 2 returns fault data at each instant. When ECM detects a fault, it records the sensor data at a specific moment.
MODE 3: Mode 3 return the stored DTC. All vehicles support the fault codes and are categorized into 4 :
P0xxx: for standard faults linked to the powertrain (engine and transmission)
C0xxx: for standard faults on the chassis
B0xxx: for standard faults on the body
U0xxx: for standard faults on the communications network.
© 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 1499
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 06 Issue: 05 | May 2019 www.irjet.net p-ISSN: 2395-0072
MODE 4: In Mode 4 recorded fault codes are cleared and engine fault indicator switches off.
MODE 5: It gives a self-diagnostics result on the oxygen/lambda sensors. It is commonly used in petrol vehicles. For CAN bus
ECU this mode is not used.
MODE 6: This mode used with systems not subjected to constant surveillance and gives results off self-diagnostics.
MODE 7: This fault codes which are unconfirmed. These codes are used to check that the fault code does not reappear without
having to do a long test run, after a repair.
MODE 8: Mode 8 is used to return self-diagnostics on other systems and commonly used in Europe.
MODE 9: Gives information regarding the vehicle such as Vehicle Identification Number and calibration values.
MODE 10 (OR MODE A): Mode10 is used to return the permanent fault codes.
3.3 Diagnostic Trouble Codes (DTCs)
A DTC is made up of 5 digits. The below figure illustrates the working of a DTC. With this information, it is easier to
troubleshoot a DTC without knowing the description of the code. Among the five letter code representing DTC, the first one is
an alphabet in English representing system malfunction. Second is a digit that represents ISO/SAE malfunction. The DTC
message has five codes. In this code, the first letter is an English alphabet which is used to represent the established
malfunction system. The remaining four codes are digits. The second code represents the meaning of malfunction formulated
by ISO/SAE or customized by the vehicle manufacturer. The third code is the area of the vehicle system. The lasttwo codesare
used to represent the definition of the subject malfunction.
Vehicle manufacturers use the same DTC across different vehicles. As an example: General Motors vehicle and the
Diagnostic Trouble Code is B0566.
 The third digit of VIN is a "1", your DTC means Infl Rest System Indicator Circuit Malf.
 The third digit is "2", the DTC means Temperature Gage Data Out of Range
Figure(2)
3.4 OBD-II Parameter Ids
© 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 1500
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 06 Issue: 05 | May 2019 www.irjet.net p-ISSN: 2395-0072
PIDs are used to request data from vehicles. It can be used for diagnostic purpose. The SAE standard J1979 defines
many OBD-II PIDs and manufacturers also define additional PIDs created especially for their vehicles. Some commonly used
PIDs are,
0x04: Engine load
0x05: Engine coolant temperature
0x0C: Engine rpm
0x0D: Vehicle speed
0x10: MAF air flow rate
3.5 OBD Message Formats
Format of the message can vary depending on the protocol used. The response message hasan11-bitidentifier.It also
contains information regarding the mode of working, PID and the actual data from various sensors.
Figure(3)
OBD2 message consists of an identifier and data fields. Data field is split in Mode, PID and data bytes Ah, Bh, Ch, Dh. That fields
are described as follows.
IDENTIFIER: Identifier is a standard 11-bit.It is used to distinguish between “request messages” and “response messages” to
7EF).
LENGTH: This field represents the length in a number of bytes of the remaining data (03 to 06).
MODE: 01-0A is used for requests and 0 is replaced by 4 for responses. SAE J1979 OBD2 standard defines 10 modes of
operation.
PID: Each mode has a list of standard OBD2 PIDs .e.g. Mode 01 uses PID 0D for Vehicle Speed.
4. PROPOSED APPLICATION
The android application is used to connect with the OBDII scanner and also used to read data from it.
The OBD2 data reading comprises 3 steps,
1.connect to the OBDII scanner through Bluetooth
2. OBDII adapter is initialized with AT commands
3. Read data from the vehicle through PID codes
Basic features for the application are enabling Bluetooth, scanning for nearby Bluetooth devices, and connecting to a
Bluetooth device. The Bluetooth chat allows devices to create a Bluetooth socket to communicate with another Bluetooth
enabled device. Once the Bluetooth communication link was achieved, the applicationcanreceivedata stringsfromthe device.
In order for the gauges and textViews to display data, we first needed a way to parse the incoming data from the Bluetooth
device. The sample code below shows how we parsed the data for Intake Temperatureandcalculatedtheactual value. Inorder
to create our gauges that will be used to display the vehicle data in real time. We created a customgaugebackground withall of
the parameters that we have chosen for the project with their appropriate data ranges for each. Oncewehadimplementedthe
gauge dial backgrounds, the next step as they create the moving part, gauge needle. The system basically includes two
components. One is the vehicle and another is the android application that can be used inconnectionwiththecar.TheAndroid
© 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 1501
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 06 Issue: 05 | May 2019 www.irjet.net p-ISSN: 2395-0072
application can be used to give alert to the driver so that, we can decrease the impact of careless driving. Anaccidentdetection
mechanism is also included as part of the system and emergency help can be reached to thedriverbyinformingtheauthorities
and to the relatives. Airbag status is taken to detect an accident condition. It can't be possible to check the airbag status incase
of normal car driving.
At first mobile device is connected to an OBD-II device through a Bluetoothconnection andstartreadingdata fromthe
ECU bus with the above-said methods. Then the speed data obtained from the OBD2 is used for giving alerttothe driverifheis
over speed. Another functionality is sending message to the authority with the location details of the car if the driver has
overcome the limit, that the law permits. If an accident is detected based on the airbag status then SMS is sent to the relatives
and to the authority.
In older days OBD-II connectors are based on serial connection such as RS-232. Now it has changed to a variety of
mediums such as Bluetooth, WiFi, etc. These changes to technology have a dramatic evolution in the development of new
applications.
To use Bluetooth features in the application, it is necessary to add Bluetooth permissionsintheapplication'smanifest
file. They are BLUETOOTH, BLUETOOTH_ADMIN. Another permission need is ACCESS_COARSE_LOCATION ,which is used to
access the location of the user.
BlutoothAdapter bluetoothAdapter = BluetoothAdapter.
GetDefaultAdapter();
if (bluetoothAdapter == null) {
// Device doesn't support Bluetooth
}
BluetoothAdapter is required for all bluetooth activity.For getting it call getDefaultAdapter() method. If it returns null ,your
device does not support Bluetooth. For enabling bluetooth call the isEnabled() method.
if (!bluetoothAdapter.isEnabled()) {
Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE); startActivityForResult(enableBtIntent,
REQUEST_ENABLE_BT); }
Then BluetoothServerSocket is created for connecting the two Bluetooth devices. Start listening for connection
requests by calling accept() method. Initialize the BluetoothChatService to perform Bluetooth connections.
mChatService = new BluetoothService(this, mHandler);
The Handler is used to receive information back from the BluetoothChatService.
private final Handler mHandler = new Handler() {
Message can be handled in the following way,
public void handleMessage(Message msg) {
switch (msg.what) {
case MESSAGE_STATE_CHANGE:
.
.
.
case MESSAGE_READ:
compileMessage( msg.obj.toString());
To compile the message, msg.substring(0, 4) is checked with PIDs 0C,0D,05 etc and (msg.substring(4,
msg.length()),16) is converted to suitable forms as a value to the above said PIDs.
The general workflow of the application is illustrated in the below figure:
© 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 1502
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 06 Issue: 05 | May 2019 www.irjet.net p-ISSN: 2395-0072
Figure (4)
5. IMPLEMENTATION
By developing an android application we can communicate with the OBD scanner and can request data from it. The
received data can be used for further processing and can be displayed to the user in a convenient format. Scanner here we use
is a Bluetooth device ELM327. We need GPS and SMS functionality of our phone for the proper working of the application. In
case of an accident detection, the application sends SMS with the location data to two mobile numbers.
First, scanning for Bluetooth devices occurs. Then a list of available devices is shown. If we select any one of them
pairing code will be asked. By default, the code is 1234. Then the application is connected with OBD Bluetooth scanner. The
data coming from OBD is shown at the interface. Speed and RPM are shown in gauges. TheSpeedlimitiscross-checkedat3-sec
intervals to avoid inappropriate alerting. Accident condition is checked with the airbag triggering conditionandSMSmanager
is used to send SMS.
5.1 Graphical user interface (GUI)
At the main window, the user is informed with the speed, RPM, Voltage, mileage,Temperature, Fuel consumption,etc.
The speed and RPM are shown in gauges. On top of the window, there are two buttons, one is for the activity to select the OBD
scanner devices from the list. That activity also has a scan for device functionality. There are two buttons at the MainActivity.
One is for Settings and another one for resetting the system. In the settings menu, we have another window to change the
Engine displacement, Engine type, Face color. The Application looks like as follows.
Figure(5)
© 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 1503
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 06 Issue: 05 | May 2019 www.irjet.net p-ISSN: 2395-0072
6. CONCLUSION
In this proposed system, an android application is developed for carmonitoringpurpose.Italsoincludefunctionalities
such as giving alert to the driver in case of over speed, sending message to authorities if he violates the speed limit and also
sends message to relatives in case of an accident.The system uses Bluetooth connectivity with the OBDII device. Speed is
checked with three-second intervals, for the better working results.The future work will include additional features such as
real-time accident detection with the central server and automatic emergency helping integrated with ambulance service. A
database for storing the data from OBD-II, for analyzing the behavior of driver will also be included in the future studies.
REFERENCES
[1] Jorge Zaldivar, Carlos T. Calafate, Juan Carlos Cano, Pietro Manzoni, “Providing Accident Detection in Vehicular Networks
Through OBD-II Devices and Android-based Smartphones,”in5thIEEEWorkshopOnUserMObilityandVEhicularNetworks
On-Move 2011, Bonn.
[2] Mi-JinKim, Jong-Wook Jang, Yun-Sik Yu,” A Study on In-Vehicle Diagnosis System using OBD-Ⅱ with Navigation“, in IJCSNS
International Journal of Computer Science and Network Security, VOL.10 No.9, September 2010
[3] https://en.wikipedia.org/wiki/On-board_diagnostics
[4] https://en.wikipedia.org/wiki/ELM327
[5] https://lembergsolutions.com/blog/how-guide-obdii-reader-app-development
© 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 1504

More Related Content

PDF
Volume 2-issue-6-2155-2158
PDF
IRJET- Automatic Gate Control and Parking System using AVR Controller
PDF
On board diagnostic ii (obd ii)
PDF
Design of intelligent transport related issue system based on arm7
PPT
Obd how to guide
PDF
Ancel FX6000 User Manual
PDF
User guide OBD Car Doctor Android App
PDF
Design of intelligent transport related issue system
Volume 2-issue-6-2155-2158
IRJET- Automatic Gate Control and Parking System using AVR Controller
On board diagnostic ii (obd ii)
Design of intelligent transport related issue system based on arm7
Obd how to guide
Ancel FX6000 User Manual
User guide OBD Car Doctor Android App
Design of intelligent transport related issue system

What's hot (19)

PDF
Obd Сar Doctor_Promo
PDF
Arduino Based Voice Generator Text to Speech Robot
DOCX
Government Poly Arvi.
PDF
IRJET - Vehicle Signal Breaking Alert System
PDF
D900 manual v1.30
PDF
Smart tolling for highway transportation system using RFID
PDF
Topdon AL201 User's Manual
PDF
An Automatic Car Engine Startup and Brake Oil Monitoring Using Sensors
PDF
RFID in Vehicle Tracking & Parking Lot Management System
PDF
Report of Advance car security system major project
PDF
IRJET - Driver Drowsiness and Alcohol Detection with Car Tracking System usin...
PPT
OBD Mobile App - Fault Codes, Driving Behaviour and Fuel Economy
PDF
Bionic Person for Issuing of RTO License
PDF
Automation in Ticketing System for A Modern Transport
PDF
Ancel FX4000 User Manual
PPSX
RFID Gate Management System
PDF
IRJET- IoT based Smart BLACK BOX System
PDF
Proof collection from car black box using smart phone for accident detection
PDF
Mb880 CAN BUS manual-How to Use MB880 CAN BUS Auto Scanner
Obd Сar Doctor_Promo
Arduino Based Voice Generator Text to Speech Robot
Government Poly Arvi.
IRJET - Vehicle Signal Breaking Alert System
D900 manual v1.30
Smart tolling for highway transportation system using RFID
Topdon AL201 User's Manual
An Automatic Car Engine Startup and Brake Oil Monitoring Using Sensors
RFID in Vehicle Tracking & Parking Lot Management System
Report of Advance car security system major project
IRJET - Driver Drowsiness and Alcohol Detection with Car Tracking System usin...
OBD Mobile App - Fault Codes, Driving Behaviour and Fuel Economy
Bionic Person for Issuing of RTO License
Automation in Ticketing System for A Modern Transport
Ancel FX4000 User Manual
RFID Gate Management System
IRJET- IoT based Smart BLACK BOX System
Proof collection from car black box using smart phone for accident detection
Mb880 CAN BUS manual-How to Use MB880 CAN BUS Auto Scanner
Ad

Similar to IRJET- An Android Solution for Car Monitoring and Alerting System (20)

PPT
Details of the obd2 tools -www.obd2cart.com
PPT
OBD (On Board Diagnostics)
PDF
What is OBD2? You Should know everything.pdf
PDF
IRJET- On Board Diagnostics (OBD)3 for Vehicular Management
PDF
Autel MaxiScan MS309 User's Manual
PPTX
CarCare presentation
PDF
Veepeak OBDCheck VP30 User Manual
PPTX
Vehicle Diagnostics
PDF
Launch CReader V+ User Manual
PDF
IRJET- IoT System for Monitoring and Diagnostics of Engine
PDF
VEHICLE TO VEHICLE COMMUNICATION FOR ACCIDENT-AVOIDANCE SYSTEM
PDF
AUTOMOBILE MANAGEMENT SYSTEM
PDF
Gj2511621167
PDF
Gj2511621167
PDF
IRJET - Intelligent System for Vehicle Controlling with Alcohol Detection...
PDF
D900 manual v1.30
PDF
AutoLink AL319 User Manual_V2.0.pdf
PDF
Veepeak OBDCheck VP39 User Manual
PDF
IRJET- Data Acquistion through Connectivities in Cars
PDF
IRJET- Data Acquistion through Connectivities in Cars
Details of the obd2 tools -www.obd2cart.com
OBD (On Board Diagnostics)
What is OBD2? You Should know everything.pdf
IRJET- On Board Diagnostics (OBD)3 for Vehicular Management
Autel MaxiScan MS309 User's Manual
CarCare presentation
Veepeak OBDCheck VP30 User Manual
Vehicle Diagnostics
Launch CReader V+ User Manual
IRJET- IoT System for Monitoring and Diagnostics of Engine
VEHICLE TO VEHICLE COMMUNICATION FOR ACCIDENT-AVOIDANCE SYSTEM
AUTOMOBILE MANAGEMENT SYSTEM
Gj2511621167
Gj2511621167
IRJET - Intelligent System for Vehicle Controlling with Alcohol Detection...
D900 manual v1.30
AutoLink AL319 User Manual_V2.0.pdf
Veepeak OBDCheck VP39 User Manual
IRJET- Data Acquistion through Connectivities in Cars
IRJET- Data Acquistion through Connectivities in Cars
Ad

More from IRJET Journal (20)

PDF
Enhanced heart disease prediction using SKNDGR ensemble Machine Learning Model
PDF
Utilizing Biomedical Waste for Sustainable Brick Manufacturing: A Novel Appro...
PDF
Kiona – A Smart Society Automation Project
PDF
DESIGN AND DEVELOPMENT OF BATTERY THERMAL MANAGEMENT SYSTEM USING PHASE CHANG...
PDF
Invest in Innovation: Empowering Ideas through Blockchain Based Crowdfunding
PDF
SPACE WATCH YOUR REAL-TIME SPACE INFORMATION HUB
PDF
A Review on Influence of Fluid Viscous Damper on The Behaviour of Multi-store...
PDF
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
PDF
Explainable AI(XAI) using LIME and Disease Detection in Mango Leaf by Transfe...
PDF
BRAIN TUMOUR DETECTION AND CLASSIFICATION
PDF
The Project Manager as an ambassador of the contract. The case of NEC4 ECC co...
PDF
"Enhanced Heat Transfer Performance in Shell and Tube Heat Exchangers: A CFD ...
PDF
Advancements in CFD Analysis of Shell and Tube Heat Exchangers with Nanofluid...
PDF
Breast Cancer Detection using Computer Vision
PDF
Auto-Charging E-Vehicle with its battery Management.
PDF
Analysis of high energy charge particle in the Heliosphere
PDF
A Novel System for Recommending Agricultural Crops Using Machine Learning App...
PDF
Auto-Charging E-Vehicle with its battery Management.
PDF
Analysis of high energy charge particle in the Heliosphere
PDF
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
Enhanced heart disease prediction using SKNDGR ensemble Machine Learning Model
Utilizing Biomedical Waste for Sustainable Brick Manufacturing: A Novel Appro...
Kiona – A Smart Society Automation Project
DESIGN AND DEVELOPMENT OF BATTERY THERMAL MANAGEMENT SYSTEM USING PHASE CHANG...
Invest in Innovation: Empowering Ideas through Blockchain Based Crowdfunding
SPACE WATCH YOUR REAL-TIME SPACE INFORMATION HUB
A Review on Influence of Fluid Viscous Damper on The Behaviour of Multi-store...
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
Explainable AI(XAI) using LIME and Disease Detection in Mango Leaf by Transfe...
BRAIN TUMOUR DETECTION AND CLASSIFICATION
The Project Manager as an ambassador of the contract. The case of NEC4 ECC co...
"Enhanced Heat Transfer Performance in Shell and Tube Heat Exchangers: A CFD ...
Advancements in CFD Analysis of Shell and Tube Heat Exchangers with Nanofluid...
Breast Cancer Detection using Computer Vision
Auto-Charging E-Vehicle with its battery Management.
Analysis of high energy charge particle in the Heliosphere
A Novel System for Recommending Agricultural Crops Using Machine Learning App...
Auto-Charging E-Vehicle with its battery Management.
Analysis of high energy charge particle in the Heliosphere
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...

Recently uploaded (20)

PPTX
UNIT 4 Total Quality Management .pptx
PPT
Project quality management in manufacturing
PPTX
Welding lecture in detail for understanding
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
OOP with Java - Java Introduction (Basics)
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PPTX
Lesson 3_Tessellation.pptx finite Mathematics
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PPTX
Lecture Notes Electrical Wiring System Components
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPTX
bas. eng. economics group 4 presentation 1.pptx
PDF
PPT on Performance Review to get promotions
PDF
Well-logging-methods_new................
PPTX
Construction Project Organization Group 2.pptx
UNIT 4 Total Quality Management .pptx
Project quality management in manufacturing
Welding lecture in detail for understanding
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
Embodied AI: Ushering in the Next Era of Intelligent Systems
OOP with Java - Java Introduction (Basics)
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Model Code of Practice - Construction Work - 21102022 .pdf
Lesson 3_Tessellation.pptx finite Mathematics
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
Lecture Notes Electrical Wiring System Components
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
Foundation to blockchain - A guide to Blockchain Tech
bas. eng. economics group 4 presentation 1.pptx
PPT on Performance Review to get promotions
Well-logging-methods_new................
Construction Project Organization Group 2.pptx

IRJET- An Android Solution for Car Monitoring and Alerting System

  • 1. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 06 Issue: 05 | May 2019 www.irjet.net p-ISSN: 2395-0072 © 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 1498 An Android solution for Car Monitoring and Alerting System Hima.M1, Angel Rose A2 1Master of Computer Applications, College of Engineering, Trivandrum, Kerala, India 2Assistant Professor, Master of Computer Applications, College of Engineering, Trivandrum, Kerala, India ---------------------------------------------------------------------***--------------------------------------------------------------------- Abstract - At present one of the problems faced by the drivers is that most of the sensor data in the Engine Control Unit(ECU)is not visible to the driver. The ECU data is very helpful to the driver to understand the speed, rpm, voltage, temperature, etc. Thereis no proper application to show these values in an understandable way. Another problem is that accidentsinaruralareawilltakea long time for the helping hands to reach the victim. There are still problems in finding relatives of the injured person. No proper application to alert the driver if he exceeds the speed limit. Still, it will take a long time for thepolicetodetecttheaccidentlocation and to the relatives, to reach the injured person on time. In this paper, we are introducing an efficient, low-cost android application based on the OBD-II Bluetooth scanner, as a solution to the above problems. Here we develop an Android application for giving alert to the driver if he is over speed and also there is a facility to send SMS to the relatives when an accident is detected. This app will inform the police immediately with location data in case of an accident. So that we can ensure safe car driving and can save lives. Key Words: On-Board Diagnostics, Electronic Control Unit, Parameter Identification, Diagnostics Trouble Codes. 1. INTRODUCTION OBD stands for On-Board Diagnostic System.Thisstandardwasdevelopedin1996intheUnitedStatesofAmerica. The OBD standard is supported by all vehicles in the market developed after the year 1996. ThisstandardsupportOBD porthaving 16-pin.OBD scanner is connected to the port to read data from the Engine Control Unit(ECU). Many sensors placed inside the vehicle are connected with this ECU. Data send from these sensors are accumulated at the control unit. Each sensor has an identifier associated with it. This unique identifier is called Parameter Identifiers(PIDs). In addition to this, manufacture can add additional PIDs as their own. Scanning tool can request data from the ECU by sending hexadecimal representing a PID. These scanners are portable and easy to use. Another type of code we can use with OBD is Diagnostic Trouble Codes (DTCs). These codes are used for troubleshooting purpose such as malfunction detection. The 16 pin OBD port can be used to connect the OBD scanner. It can then be used for reading data from ECU. It can read data such as speed, rpm, voltage, temperature, etc from the vehicle. In this project, we use the OBD-II Bluetooth scanner for reading data from the ECU and pass the data to android application for further processing. In this project, we develop an android application asaninterfacetotheuserfordisplayingthe readingsfromthe OBDII scanner. When speed is high it gives alert to the driver and sends message to authority with the vehicle number, GPSwhenthe car's speed is over the limit. Another module included in the projectisdetectingtheaccidentcondition. Whentheconditionhas occurred an immediate message regarding the crash is sent to the driver's family members and to the concerned authority. 2. RELATED WORK Some of the literature can be found which explains Android-based smartphones that support vehicle services. Hernandez developed a prototype of an On Board system which provides communication between driverandhisvehicle.This provides intelligent transport services as a result. Chen proposed Android/OSGi platform for vehicles,used formanagingordiagnosingthestatusofa vehicularplatform from a remote area. Al-Ani proposed an Android-based terminal whichreplacesthestereosystemofa vehiclethatcanprovidehighfidelity In-Vehicle Infotainment System. It also provides good driver experience with the use of a mobile operating system. Joint work of Jorge Zaldivar, Carlos T. Calafate, Juan Carlos Cano, and Pietro Manzoni also proposes an idea about detecting accident in vehicles with the use of mobile phones. This paper discusses the use of OBDII Bluetooth scanner in
  • 2. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 06 Issue: 05 | May 2019 www.irjet.net p-ISSN: 2395-0072 vehicles. They also explain an android application which can read data from the scanner and how it can be used for further processing. 3. THE OBD-II STANDARD The standard for OBDII include the different types of diagnostic connector and its pin details. It also includes the formats for messages.OBD scanner takes its power from one of its pin connected with the battery of the vehicle. This standard provides a predefined set of Diagnostic Trouble Codes. 3.1 Types of OBD-II scanner There are two categories of OBD-II scanners, OBD-II Code readers These are commonly low-cost devices which can be used with vehicles to read the PIDs.These PIDs are comprised of temperature, speed, rpm data. It can be displayed as real-time data in a user interface. One of the limitations of this reader device is that it does not support all type of data. OBD-II Scan Tools These tools are more expensive than code readers and they can offer a variety of different features. Scan tools are commonly used for advanced troubleshooting.OBD-II scanner functionality depends on whetheritisa basic“codereader”ora more advanced “scan tool.” OBDII code readers are used for only read and clear codes. At thesametime,scantoolsareusedfor recording real-time data from the vehicle. Figure(1) Basic functionality of OBDII is its ability to read and clear codes. Scanners can also set up lists of parameter IDs (PIDs). OBDII standardization makes it relatively simple to use and they use the same connector defined by SAE J1962. Scan tools can be inserted into a universal plug into the OBD-II diagnostic connector in a vehicle. 3.2 OBD-II Protocols An OBD2 supporting vehicle can use any of the five communication protocols: SAE J1850 PWM, SAE J1850 VPW, ISO9141-2, ISO14230-4 (KWP2000), ISO 15765-4/SAE J2480. The ELM-USB and OBD Tester can support all of them. The CAN/OBD-II scanner uses an ELM327 chip based on SAE/ISO standards. This device can be used for the diagnostic purpose such as troubleshooting. The different modes of operation it provides are discussed below. MODE 1: In this mode, some common values for some sensor suchas speed,temperature,informationaboutoxygen sensorare returned. Each sensor is uniquely identified by a number called PID (Parameter Identifier) used to identify theparameter.For example, speed has a PID of 12. The OBD standard includes 137 PIDs. MODE 2: Mode 2 returns fault data at each instant. When ECM detects a fault, it records the sensor data at a specific moment. MODE 3: Mode 3 return the stored DTC. All vehicles support the fault codes and are categorized into 4 : P0xxx: for standard faults linked to the powertrain (engine and transmission) C0xxx: for standard faults on the chassis B0xxx: for standard faults on the body U0xxx: for standard faults on the communications network. © 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 1499
  • 3. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 06 Issue: 05 | May 2019 www.irjet.net p-ISSN: 2395-0072 MODE 4: In Mode 4 recorded fault codes are cleared and engine fault indicator switches off. MODE 5: It gives a self-diagnostics result on the oxygen/lambda sensors. It is commonly used in petrol vehicles. For CAN bus ECU this mode is not used. MODE 6: This mode used with systems not subjected to constant surveillance and gives results off self-diagnostics. MODE 7: This fault codes which are unconfirmed. These codes are used to check that the fault code does not reappear without having to do a long test run, after a repair. MODE 8: Mode 8 is used to return self-diagnostics on other systems and commonly used in Europe. MODE 9: Gives information regarding the vehicle such as Vehicle Identification Number and calibration values. MODE 10 (OR MODE A): Mode10 is used to return the permanent fault codes. 3.3 Diagnostic Trouble Codes (DTCs) A DTC is made up of 5 digits. The below figure illustrates the working of a DTC. With this information, it is easier to troubleshoot a DTC without knowing the description of the code. Among the five letter code representing DTC, the first one is an alphabet in English representing system malfunction. Second is a digit that represents ISO/SAE malfunction. The DTC message has five codes. In this code, the first letter is an English alphabet which is used to represent the established malfunction system. The remaining four codes are digits. The second code represents the meaning of malfunction formulated by ISO/SAE or customized by the vehicle manufacturer. The third code is the area of the vehicle system. The lasttwo codesare used to represent the definition of the subject malfunction. Vehicle manufacturers use the same DTC across different vehicles. As an example: General Motors vehicle and the Diagnostic Trouble Code is B0566.  The third digit of VIN is a "1", your DTC means Infl Rest System Indicator Circuit Malf.  The third digit is "2", the DTC means Temperature Gage Data Out of Range Figure(2) 3.4 OBD-II Parameter Ids © 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 1500
  • 4. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 06 Issue: 05 | May 2019 www.irjet.net p-ISSN: 2395-0072 PIDs are used to request data from vehicles. It can be used for diagnostic purpose. The SAE standard J1979 defines many OBD-II PIDs and manufacturers also define additional PIDs created especially for their vehicles. Some commonly used PIDs are, 0x04: Engine load 0x05: Engine coolant temperature 0x0C: Engine rpm 0x0D: Vehicle speed 0x10: MAF air flow rate 3.5 OBD Message Formats Format of the message can vary depending on the protocol used. The response message hasan11-bitidentifier.It also contains information regarding the mode of working, PID and the actual data from various sensors. Figure(3) OBD2 message consists of an identifier and data fields. Data field is split in Mode, PID and data bytes Ah, Bh, Ch, Dh. That fields are described as follows. IDENTIFIER: Identifier is a standard 11-bit.It is used to distinguish between “request messages” and “response messages” to 7EF). LENGTH: This field represents the length in a number of bytes of the remaining data (03 to 06). MODE: 01-0A is used for requests and 0 is replaced by 4 for responses. SAE J1979 OBD2 standard defines 10 modes of operation. PID: Each mode has a list of standard OBD2 PIDs .e.g. Mode 01 uses PID 0D for Vehicle Speed. 4. PROPOSED APPLICATION The android application is used to connect with the OBDII scanner and also used to read data from it. The OBD2 data reading comprises 3 steps, 1.connect to the OBDII scanner through Bluetooth 2. OBDII adapter is initialized with AT commands 3. Read data from the vehicle through PID codes Basic features for the application are enabling Bluetooth, scanning for nearby Bluetooth devices, and connecting to a Bluetooth device. The Bluetooth chat allows devices to create a Bluetooth socket to communicate with another Bluetooth enabled device. Once the Bluetooth communication link was achieved, the applicationcanreceivedata stringsfromthe device. In order for the gauges and textViews to display data, we first needed a way to parse the incoming data from the Bluetooth device. The sample code below shows how we parsed the data for Intake Temperatureandcalculatedtheactual value. Inorder to create our gauges that will be used to display the vehicle data in real time. We created a customgaugebackground withall of the parameters that we have chosen for the project with their appropriate data ranges for each. Oncewehadimplementedthe gauge dial backgrounds, the next step as they create the moving part, gauge needle. The system basically includes two components. One is the vehicle and another is the android application that can be used inconnectionwiththecar.TheAndroid © 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 1501
  • 5. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 06 Issue: 05 | May 2019 www.irjet.net p-ISSN: 2395-0072 application can be used to give alert to the driver so that, we can decrease the impact of careless driving. Anaccidentdetection mechanism is also included as part of the system and emergency help can be reached to thedriverbyinformingtheauthorities and to the relatives. Airbag status is taken to detect an accident condition. It can't be possible to check the airbag status incase of normal car driving. At first mobile device is connected to an OBD-II device through a Bluetoothconnection andstartreadingdata fromthe ECU bus with the above-said methods. Then the speed data obtained from the OBD2 is used for giving alerttothe driverifheis over speed. Another functionality is sending message to the authority with the location details of the car if the driver has overcome the limit, that the law permits. If an accident is detected based on the airbag status then SMS is sent to the relatives and to the authority. In older days OBD-II connectors are based on serial connection such as RS-232. Now it has changed to a variety of mediums such as Bluetooth, WiFi, etc. These changes to technology have a dramatic evolution in the development of new applications. To use Bluetooth features in the application, it is necessary to add Bluetooth permissionsintheapplication'smanifest file. They are BLUETOOTH, BLUETOOTH_ADMIN. Another permission need is ACCESS_COARSE_LOCATION ,which is used to access the location of the user. BlutoothAdapter bluetoothAdapter = BluetoothAdapter. GetDefaultAdapter(); if (bluetoothAdapter == null) { // Device doesn't support Bluetooth } BluetoothAdapter is required for all bluetooth activity.For getting it call getDefaultAdapter() method. If it returns null ,your device does not support Bluetooth. For enabling bluetooth call the isEnabled() method. if (!bluetoothAdapter.isEnabled()) { Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE); startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT); } Then BluetoothServerSocket is created for connecting the two Bluetooth devices. Start listening for connection requests by calling accept() method. Initialize the BluetoothChatService to perform Bluetooth connections. mChatService = new BluetoothService(this, mHandler); The Handler is used to receive information back from the BluetoothChatService. private final Handler mHandler = new Handler() { Message can be handled in the following way, public void handleMessage(Message msg) { switch (msg.what) { case MESSAGE_STATE_CHANGE: . . . case MESSAGE_READ: compileMessage( msg.obj.toString()); To compile the message, msg.substring(0, 4) is checked with PIDs 0C,0D,05 etc and (msg.substring(4, msg.length()),16) is converted to suitable forms as a value to the above said PIDs. The general workflow of the application is illustrated in the below figure: © 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 1502
  • 6. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 06 Issue: 05 | May 2019 www.irjet.net p-ISSN: 2395-0072 Figure (4) 5. IMPLEMENTATION By developing an android application we can communicate with the OBD scanner and can request data from it. The received data can be used for further processing and can be displayed to the user in a convenient format. Scanner here we use is a Bluetooth device ELM327. We need GPS and SMS functionality of our phone for the proper working of the application. In case of an accident detection, the application sends SMS with the location data to two mobile numbers. First, scanning for Bluetooth devices occurs. Then a list of available devices is shown. If we select any one of them pairing code will be asked. By default, the code is 1234. Then the application is connected with OBD Bluetooth scanner. The data coming from OBD is shown at the interface. Speed and RPM are shown in gauges. TheSpeedlimitiscross-checkedat3-sec intervals to avoid inappropriate alerting. Accident condition is checked with the airbag triggering conditionandSMSmanager is used to send SMS. 5.1 Graphical user interface (GUI) At the main window, the user is informed with the speed, RPM, Voltage, mileage,Temperature, Fuel consumption,etc. The speed and RPM are shown in gauges. On top of the window, there are two buttons, one is for the activity to select the OBD scanner devices from the list. That activity also has a scan for device functionality. There are two buttons at the MainActivity. One is for Settings and another one for resetting the system. In the settings menu, we have another window to change the Engine displacement, Engine type, Face color. The Application looks like as follows. Figure(5) © 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 1503
  • 7. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 06 Issue: 05 | May 2019 www.irjet.net p-ISSN: 2395-0072 6. CONCLUSION In this proposed system, an android application is developed for carmonitoringpurpose.Italsoincludefunctionalities such as giving alert to the driver in case of over speed, sending message to authorities if he violates the speed limit and also sends message to relatives in case of an accident.The system uses Bluetooth connectivity with the OBDII device. Speed is checked with three-second intervals, for the better working results.The future work will include additional features such as real-time accident detection with the central server and automatic emergency helping integrated with ambulance service. A database for storing the data from OBD-II, for analyzing the behavior of driver will also be included in the future studies. REFERENCES [1] Jorge Zaldivar, Carlos T. Calafate, Juan Carlos Cano, Pietro Manzoni, “Providing Accident Detection in Vehicular Networks Through OBD-II Devices and Android-based Smartphones,”in5thIEEEWorkshopOnUserMObilityandVEhicularNetworks On-Move 2011, Bonn. [2] Mi-JinKim, Jong-Wook Jang, Yun-Sik Yu,” A Study on In-Vehicle Diagnosis System using OBD-Ⅱ with Navigation“, in IJCSNS International Journal of Computer Science and Network Security, VOL.10 No.9, September 2010 [3] https://en.wikipedia.org/wiki/On-board_diagnostics [4] https://en.wikipedia.org/wiki/ELM327 [5] https://lembergsolutions.com/blog/how-guide-obdii-reader-app-development © 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 1504