sakthivel 110242

Upload: balaji-bala

Post on 03-Apr-2018

217 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/29/2019 sakthivel 110242

    1/17

    Mobile Phone Based Drunk

    Driving Detection

    BY

    SAKTHIVEL.M

  • 7/29/2019 sakthivel 110242

    2/17

    INTRODUCTION

    Drunk driving, or officially Driving Under the In - fluence (DUI) of alcohol, is a major cause

    of traffic accidents throughout the world. In this project , we propose a highly efficient

    system aimed at early detection and alert of dangerous vehicle maneuvers typically related to

    drunk driving. The entire solution requires only a mobile phone placed in vehicle and with

    accelerometer sensor. A program installed on the mobile phone computes accelerations based

    on sensor readings, and compares them with typical drunk driving patterns extracted from

    real driving tests. Once any evidence of drunk driving is present, the mobile phone willautomatically alert the driver or sends a message to predefined number in application for

    help well before accident actually happens.

    Features :

    Uses the accelerometer sensors from Android mobile to match the Drunk and drive pattern.

    Automatically sends a message for Help .

    Displays on the Screen a message .

  • 7/29/2019 sakthivel 110242

    3/17

    ANDROID

    MOBILE

    WITH OMAP44A

    PROCESSOR

    BLOCK DIAGRAM

    GSM

    GPRS

    ACCELEROMETER

    3G

    GPSBLUETOOTH

    GPRS GPRSwireless

  • 7/29/2019 sakthivel 110242

    4/17

    ARCHITECTURE:

  • 7/29/2019 sakthivel 110242

    5/17

    MODULES

    List Of Modules

    Drunk Detection

    Finding Location

    Sending data

  • 7/29/2019 sakthivel 110242

    6/17

    FUNTIONALITY DESCRIPTION OF MODULES

    Drunk Detection

    Accelerometer sensor is going to sense x, y & z direction value.

    If the vehicle is moving in normal position, then it will show x & y direction

    values.

    If vehicle is out of control, then it will follow x, y & z direction.

    Finding Location

    Displaying the particular location.

    Sending Message

    Sending the message to other mobile

  • 7/29/2019 sakthivel 110242

    7/17

    FUNCTIONAL AND NON FUNCTIONAL REQUIREMENTS

    FUNCTIONAL REQUIREMENTS

    Functional Requirements are those that refer to the functionality of the system,i.e., what Services it will provide to the user.

    An individual mobile should check the availability as following

    A mobile will have the list of available activity select a position randomly from it.

    If a particular vehicle get the location.

    If the person having android mobile then display the location.

    If Sensor value is out of range then it will send vehicle number to Traffic controloffice

    The process done for certain time interval by a mobile is to display a location and routetravelled

  • 7/29/2019 sakthivel 110242

    8/17

    NON FUNCTIONAL REQUIREMENTS

    These are requirements that are not functional in nature, that is, these are constraints withinwhich the system must work.

    The program must be self-contained so that it can easily be moved from one

    Computer to another. It is assumed that JDK and ANDROID will be available on

    the computer on which the program resides.

    Capacity, scalability and availability.

    The system shall achieve 100 per cent availability at all times.

    The system shall be scalable to support additional clients and volunteers.

  • 7/29/2019 sakthivel 110242

    9/17

    NON FUNCTIONAL REQUIREMENTS (Continued)

    Randomness, verifiability and load balancing.

    The system should be optimized for supportability, or ease of maintenance as far as

    possible. This may be achieved through the use documentation of coding standards,

    naming conventions, class libraries and abstraction.

    Output Requirements

    The entire mobile should be in running state to check the availability and display

    the Location.

  • 7/29/2019 sakthivel 110242

    10/17

    PROGRAMMING LANGUAGE SELECTION

    JAVA Android Activity

    ABOUT JAVA

    Java is a Programming Language originally developed by james

    Gosling at Sun and released in 1995 as a core component of SunMicrosystems' Java Platform

    The language derives much of its Syntax from C and C++ but has a

    simpler object model and fewer low-level facilities

    The java compiler into Byte Codes, which are secure and portable across

    different platforms, compiles Java programs.

    These byte codes are essentially instructions encapsulated in single type,

    to what is known as java virtual machine (JVM), which resides in standard

    browser.

  • 7/29/2019 sakthivel 110242

    11/17

    Features Of Java

    Java is Portable

    Java is Object Oriented

    Java and World Wide Web

    Java Environment

    Java Architecture

    Java Virtual Machine

  • 7/29/2019 sakthivel 110242

    12/17

    ANDROID ACTIVITY

  • 7/29/2019 sakthivel 110242

    13/17

    onCreate()

    Called when the activity is first created. This is where you should do all of your normal static

    set upcreate views, bind data to lists, and so on. This method is passed a Bundle object

    containing the activity's previous state.

    onRestart()

    Called after the activity has been stopped, just prior to it being started again.

    onStart()

    Called just before the activity becomes visible to the user. Followed by onResume () if the

    activity comes to the foreground, or onStop() if it becomes hidden.

    onResume()Called just before the activity starts interacting with the user. At this point the activity is at

    the top of the activity stack, with user input going to it. Always followed by onPause().

    onPause()

    Called when the system is about to start resuming another activity. This method is typically

    used to commit unsaved changes to persistent data, stop animations and other things that may

    be consuming CPU, and so on.onStop()

    Called when the activity is no longer visible to the user. This may happen because it is being

    destroyed, or because another activity (either an existing one or a new one) has been resumed

    and is covering it.

    onDestroy()

    Called before the activity is destroyed. This is the final call that the activity will receive. Itcould be called either because the activity is finishing.

    http://developer.android.com/reference/android/app/Activity.htmlhttp://developer.android.com/reference/android/app/Activity.htmlhttp://developer.android.com/reference/android/app/Activity.htmlhttp://developer.android.com/reference/android/app/Activity.htmlhttp://developer.android.com/reference/android/app/Activity.htmlhttp://developer.android.com/reference/android/app/Activity.htmlhttp://developer.android.com/reference/android/app/Activity.htmlhttp://developer.android.com/reference/android/app/Activity.htmlhttp://developer.android.com/reference/android/app/Activity.htmlhttp://developer.android.com/reference/android/app/Activity.htmlhttp://developer.android.com/reference/android/app/Activity.htmlhttp://developer.android.com/reference/android/app/Activity.htmlhttp://developer.android.com/reference/android/app/Activity.htmlhttp://developer.android.com/reference/android/app/Activity.htmlhttp://developer.android.com/reference/android/app/Activity.htmlhttp://developer.android.com/reference/android/app/Activity.htmlhttp://developer.android.com/reference/android/app/Activity.html
  • 7/29/2019 sakthivel 110242

    14/17

    The Android Manifest File

    Before the Android system can start an application component, the system must

    know that the component exists by reading the application's AndroidManifest.xml

    file (the "manifest" file). Your application must declare all its components in thisfile, which must be at the root of the application project directory.

    The manifest does a number of things in addition to declaring the application's

    components, such as:

    Identify any user permissions the application requires, such as Internet access orread-access to the user's contacts.

    Declare the minimum API Level required by the application, based on which APIs

    the application uses.

    Declare hardware and software features used or required by the application, such as

    a camera, bluetooth services, or a multitouch screen.

    API libraries the application needs to be linked against (other than the Android

    framework APIs), such as the Google Maps library.

  • 7/29/2019 sakthivel 110242

    15/17

    Hardware requirements:

    CPU type : Intel Pentium 4

    Clock speed : 3.0 GHz

    Ram size : 512 MB Hard disk capacity : 40 GB

    Monitor type : 15 Inch color monitor

    Keyboard type : internet keyboard

    Mobile : ANDROID MOBILE

    Software Requirements:

    Programming language: Android API's, JAVA

    Eclipse SDK

    Android SDK

    Jdk 1.6

    TECHNOLOGY USED

    GPRS

    GPS

  • 7/29/2019 sakthivel 110242

    16/17

    OUTPUT SCREENSHOT

  • 7/29/2019 sakthivel 110242

    17/17

    THANK YOU