ISSN: ISO 9001:2008 Certified International Journal of Engineering Science and Innovative Technology (IJESIT) Volume 6, Issue 2, March 2017

Similar documents
Training Schedule. Robotic System Design using Arduino Platform

Graphical Control Panel User Manual

Design and Implementation of AT Mega 328 microcontroller based firing control for a tri-phase thyristor control rectifier

M.Tech: Industrial Automation & Robotics

Automation of DC Motor Control using PWM Technique for thin film deposition

M.Tech: Industrial Automation & Robotics The National Institute of Engineering, Mysore-08. (Established in 1946) Department of Mechanical Engineering

International Journal of Advanced Research in Electrical, Electronics and Instrumentation Engineering. (An ISO 3297: 2007 Certified Organization)

Simulation Of Radar With Ultrasonic Sensors

Safety Mechanism Implementation for Motor Applications in Automotive Microcontroller

MICROCONTROLLER TUTORIAL II TIMERS

LabVIEW Based Instrument Cluster Tester

Design and Implementation of Digital Trigger Circuit for Converter

Speed Torque Characteristic Of Dc Motor Fed By H Bridge Converter

Instrument Cluster Display. Grant Scott III Erin Lawler Mike Carlson

[Ahmed, 3(1): January, 2014] ISSN: Impact Factor: 1.852

Pramod Kumar Naik Senior Application Engineer MathWorks Products

M.Tech in Machine Design

Power Factor Correction in Digital World. Abstract. 1 Introduction. 3 Advantages of Digital PFC over traditional Analog PFC.

Distance Measurement of an Object by using Ultrasonic Sensors with Arduino and GSM Module

COMPARISON OF SIMULATION AND EXPERIMENTAL RESULTS OF ZVS BIDIRECTIONAL DC-DC CONVERTER

ECE 477 Digital Systems Senior Design Project Rev 8/09. Homework 5: Theory of Operation and Hardware Design Narrative

An Efficient Low Cost Wiper System for Autonomous Vehicle

Object Detection for Collision Avoidance in ITS

Microcontroller Based Closed Loop Speed and Position Control of DC Motor

Hello, and welcome to this presentation of the FlexTimer or FTM module for Kinetis K series MCUs. In this session, you ll learn about the FTM, its

Implementation of a Self-Driven Robot for Remote Surveillance

Design of Vehicle Lamp Control System based on LIN bus Wen Jian-yue1, a, Luo Feng1, b

Four Quadrant Speed Control of DC Motor with the Help of AT89S52 Microcontroller

Robotics & Embedded Systems (Summer Training Program) 4 Weeks/30 Days

Motion Integrated Sensor for Energy Efficient LED Lighting

Internet of Things (Winter Training Program) 6 Weeks/45 Days

GRAPHICAL LCD BASED DIGITAL OSCILLOSCOPE

GTU- Centre of Excellence in Automation

SPI Slave to PWM Generation

Sensor Based Train Collision Identification and Avoidance System

Design Issues of Portable, Low-Power & High-Performance ECG Measuring System Jyoti Bali, Anilkumar Nandi

Faculty Profile. Mechanical Engineering. Thermal Enginnering. Teaching: 17 years

Unit level 5 Credit value 15. Introduction. Learning Outcomes

Hello and welcome to this Renesas Interactive Course that provides an overview of the timers found on RL78 MCUs.

WifiBotics. An Arduino Based Robotics Workshop

Phone: Mob :

A Simple Design of Clean Robot

Integration of Two Flyback Converters at Input PFC Stage for Lighting Applications

USB-UT350(T) Portable Ultrasonic Pulser/Receiver and Analog to Digital Converter. User s Guide

ARDUINO / GENUINO. start as professional. short course in a book. faculty of engineering technology

RS-232 Based Low Cost Data IO Card

PLC BASED RAILWAY LEVEL CROSSING GATE CONTROL

Speed Control of Single Phase Induction Motor Using Infrared Receiver Module

Automatic car AC control using CAN protocol

An Autonomous Self- Propelled Robot Designed for Obstacle Avoidance and Fire Fighting

Softing TDX ODX- and OTX-Based Diagnostic System Framework

Prototyping Unit for Modelbased Applications

CHAPTER 4 CONTROL ALGORITHM FOR PROPOSED H-BRIDGE MULTILEVEL INVERTER

THE EFFECT OF ELECTROSTATIC DISCHARGE ON MICROCONTROLLER DIAGNOSTIC CIRCUIT

Open Loop Speed Control of Brushless DC Motor

MICROPROCESSOR TECHNICS II

ECE 511: FINAL PROJECT REPORT GROUP 7 MSP430 TANK

ISSN Vol.05,Issue.01, January-2017, Pages:

Design and verification of internal core circuit of FlexRay transceiver in the ADAS

Modeling, Simulation and Implementation of Speed Control of DC Motor Using PIC 16F877A

FPGA-Based Autonomous Obstacle Avoidance Robot.

Power Factor Compensation Using PIC

Electronics Design Laboratory Lecture #10. ECEN 2270 Electronics Design Laboratory

Measuring Distance Using Sound

EMBEDDED SYSTEM DESIGN FOR A DIGITAL MULTIMETER USING MOTOROLA HCS12 MICROCONTROLLER

Embedded Systems & Robotics (Winter Training Program) 6 Weeks/45 Days

Microcontroller: Timers, ADC

A Model Based Approach for Human Recognition and Reception by Robot

Multi Frequency RFID Read Writer System

Debugging SENT Automotive Buses with an Oscilloscope APPLICATION NOTE

Separately Excited DC Motor for Electric Vehicle Controller Design Yulan Qi

Faculty profile. Subjects/ Specialization. Visvesvaraya Technological University, Belgaum (VTU Belgaum)

Index Terms-Emergency vehicle clearance, Higher density, IR sensor, Micro controller, RFID Technology.

Programming and Interfacing

Embedded Controls Final Project. Tom Hall EE /07/2011

PIC Functionality. General I/O Dedicated Interrupt Change State Interrupt Input Capture Output Compare PWM ADC RS232

ST Analog Products for Automotive applications. General Purpose Analog and RF

PIC Analog Voltage to PWM Duty Cycle

6. HARDWARE PROTOTYPE AND EXPERIMENTAL RESULTS

ECE 445 Spring 2017 Autonomous Trash Can. Group #85: Eshwar Cheekati, Michael Gao, Aditya Sule

Automotive Sensor Signal Conditioner with LIN and PWM Interface

SMART ELECTRONIC GADGET FOR VISUALLY IMPAIRED PEOPLE

AT15291: Migrating QTouch Designs from SAM D MCUs to SAM C MCUs. Scope. Features. QTouch APPLICATION NOTE

µtasker Document µtasker Hardware Timers

AUTOMATIC RAILWAY CROSSING SYSTEM

Microcontroller Based MPPT Buck-Boost Converter

CprE 288 Introduction to Embedded Systems (Output Compare and PWM) Instructors: Dr. Phillip Jones

Automatic Load Sharing of Transformers using Microcontroller

DISTANCE MEASUREMENT AND OBSTACLE AVOIDING USING ULTRASONIC SENSOR AND ARDUINO

Development and Application of 500MSPS Digitizer for High Resolution Ultrasonic Measurements

Index Terms IR communication; MSP430; TFDU4101; Pre setter

International Research Journal of Engineering and Technology (IRJET) e-issn: Volume: 03 Issue: 07 July p-issn:

AutoBench 1.1. software benchmark data book.

Standalone Instrument Cluster Display

Study on the Engine Electronic Ignition System Based on SCM and LabVIEW

I hope you have completed Part 2 of the Experiment and is ready for Part 3.

INTELLIGENCE HOME AUTOMATION SYSTEM USING LDR

PWM System. Microcomputer Architecture and Interfacing Colorado School of Mines Professor William Hoff

Design and Construction of Synchronizing Check Relay

Enhancing Analog Signal Generation by Digital Channel Using Pulse-Width Modulation

Transcription:

Implementation of Sensor Actuator Application and Input Output Hardware Layer of AUTOSAR Banushree 1, Hamsini C 2, Dr. S Gayathri 3, Dr. K T Veeramanju 4 Abstract AUTOSAR (Automotive Open System Architecture) is a layered software architecture. It basically has four different layers like Application layer, Runtime environment layer, Input Output hardware layer and Microcontroller abstraction layer. The AUTOSAR is represented as a top-down approach explaining the relationship between the different layers and their mapping to realize different functionalities in an automotive vehicle. This paper describes about implementation of sensor and actuator application layer and Input and Output hardware layer to actuate reversing lamp and to sense the ultrasonic sensor input for vehicle parking application based on AUTOSAR standard and evaluate its performance as a result of applied tests. Index Terms Automotive Open System Architecture (AUTOSAR), Electronic Control Unit (ECU), Micro Controller Abstract Layer (MCAL), Input Output Layer (I/O Layer), Runtime Environment Layer (RTE), Sensor Actuator Component (SAC). I. INTRODUCTION AUTOSAR stands for Automotive Open System Architecture. The immense growth in the innovative vehicle applications led to development of complex automotive electronic systems because of which technical advancement is required in design and implementation of automotive electronics systems software. Subsequently it should satisfy technical requirement and also should focus on cost effectiveness, reusability and reduction of development time. All the intelligence and vehicle functions are not manufactured by single industry, i.e. Consider a Car units supplier1, who are responsible for Electronic injection system and supplier2 for Airbags. These individual features are implemented on different ECUs by different automotive industries. The ways each of them are implemented are no longer independent and integration of these are difficult. Hence automotive industries has come up with this standard called AUTOSAR. It will be one of the emerging production design criteria in future. The same is true with software development process. Lately the software developed only targeted to offer the functionalities without considering the fact of how it affects the system. To further complicate matters a lot of functionalities are distributed over various ECUs. A more critical problem was developed with the increase in non-standard development procedures without AUTOSAR. These formed underlying reasons for emergence of AUTOSAR. AUTOSAR consisting of layers like Application layer, MCAL, I/O Layer, RTE as shown in Fig 1. The application layer basically consisting of different software components which executes specific set of requirements [1]. This layer can communicate with lower layers through RTE layer. RTE layers provides ports to communicate with Basic software layer (BSW) i.e. ECU layer, I/O layer and other lower layer. Hence these layers are independent of ECU/microcontroller used. The MCAL is the bottom layer which has direct access to the hardware and it consists of device drivers for each hardware used. This paper describes about integration and implementation of sensors and actuator application layer and I/O hardware layer of AUTOSAR to interface actuator i.e. reversing lamp and sensor i.e. ultrasonic sensor for vehicle parking application. 47

A. Application Layer Fig 1 AUTOSAR Architecture Top view [1] II. LAYERED SOFTWARE ARCHITECTURE Application layer is the top layer of AUOTSAR and it is the core of any vehicle application. It consists of various software components [1]. Application layer can send the data to the beneath layers through sender ports provided by RTE and can receive data through receiver port of RTE. The RTE layer generation is based on the template of software component. The ports interface required by application software component will serve as input to the RTE port creation. Fig 2 shows different port interface of application to access below layers. B. RTE Layer Fig 2: SAC software component of Application Layer This layer is responsible for interfacing application and below layers. This layer provide ports which means input buffers for sensor and output buffer for actuator of application. It makes application layer independent of hardware used. This layer is also responsible for providing ports for diagnostic services of sensors or actuators. 48

C. Basic Software Layer ISSN: 2319-5967 BSW layer is further divided into ECU abstraction layer and I/O hardware abstraction layer[1]. It is responsible for accessing raw data from the hardware e.g. voltage values, analog data, sensor input, independently of actual microcontroller architecture. MCAL is responsible for providing data to BSW layer and this layer performs the required scaling to the values given by the MCAL. D. Microcontroller Abstraction Layer MCAL is responsible for hardware access of different peripherals connected to microcontroller. This layer consists device drivers which provides access to read, write and control the device connected. Hence this layer is hardware dependent. MCAL typically consists of drivers as shown in Fig 3. E.g. ADC, DIO, PWM drivers, Watchdog drivers and many other device drivers. Application layer software component uses I/O drivers i.e. Digital input output drivers, analog to digital conversion driver, PWM drivers through RTE buffers. Fig 3 Microcontroller Abstraction Layer of AUTOSAR [1] III. IMPLEMENTATION A. Implementation of Sensor and Actuator Component In this paper, Sensor and Actuator software component (SAC) is one of the component of application layer to control reversing lamp and ultrasonic sensor. This is used to send the output to the actuator and to receive the input from the sensor and perform operations based on the requirements. SAC requires ports from RTE layer to communicate with microcontroller hardware layer drivers. Since the reversing lamp is the actuator and ultrasonic sensor is the sensor and theses type of SAC component uses Pulse width modulation driver (PWM) of MCAL for controlling PWM ports of the controller and sensor also uses timer unit of MCAL to calculate this distance of object. Port names for communication with details of sender or receiver is used to generate RTE connections. Fig 4 shows detailed view of SAC software component interaction with sender and receiver port of RTE layer. Sender port for setting reverse lamp duty cycle to turn ON or OFF and also to send trigger to the ultrasonic sensor and receiver port for receiving the input from the sensor. 49

Fig 4 SAC component of Reversing Lamp and Ultrasonic sensor The functional interactions of SAC component of reversing lamp and ultrasonic sensors with different layers of AUTOSAR is as shown in Fig 5. Fig 5 AUTOSAR layered functional flow of sensor and actuator application component SAC component will send the duty cycle to switch ON or OFF the reversing lamp and it also sends the trigger signal to switch ON the ultrasonic sensor to RTE layer. This layer receives the time taken to obtain the echo of the sound signal sent by sensor from RTE and it calculates distance based on the formula stated below. Timer value = time taken by the signal (to go forward + come back). so time taken by the signal to travel the Distance = Timer value / 2 The pulse travels with the speed of sound 340.29 m/s = 34029 cm/s 50

range of target= velocity * time ==> 34029 * Timer value /2 ==> 17015 * Timer value At 12MHz Timer gets incremented for 1microsecond. Distance = 17015 centimeters/seconds * TIMER micro seconds Distance of target = ( Timer value / 59 ) centimeters Hence this layer is completely independent of hardware used. Even if the controller is changed, same SAC component can be used to control these sensors and actuator. B. Implementation of Input Output Hardware Layer I/O Hardware Abstraction provides access to MCAL drivers by mapping I/O Hardware Abstraction ports to ECU signals [2]. The data provided to the software component is completely abstracted from the physical layer values. It places a very important part to interfacing sensors and actuators and to control them. The sequence diagram as show in Fig 6 and Fig 7 gives the flow of functions from application layer component to MCAL for reversing lamp and ultrasonic senor control respectively. Fig 6 Software control flow for Reverse lamp The duty cycle to set or reset reversing lamp and trigger pulse to switch ON/OFF the sensor from the SAC will be sent to IO layer through RTE buffers and this layer in turn sends to the PWM driver of the MCAL with an identifier of reversing lamp and sensor and these identifiers indicates MCAL to which port pins sensor and actuator are connected. Fig 7 Software control flow for Ultrasonic sensor 51

With this I/O abstraction layer development the software component designer does not need to know the detailed knowledge about the MCAL drivers and the units of the physical layer values anymore. C. Configuration of Microcontroller Abstraction Layer Controlling reversing lamp and ultrasonic sensors requires PORT driver [3], PWM driver [4] and Timer Unit of MCAL. (i) Configuration of Port driver Reversing lamp Port A.1 and Ultrasonic sensor trigger pulse Port A.2 configuration Table 1 Reversing Lamp and Ultrasonic sensor Port driver configuration [3] Port Pin direction OUTPUT Port Mode Port mode changeable during runtime Activation of internal pull-ups Port VersionInfo Ultrasonic sensor Input Port C.0 configuration PWM Table 2 Ultrasonic sensor Input Port configuration Port Pin direction INPUT Port Mode Port mode changeable during runtime Activation of internal pull-ups Port VersionInfo (ii) Configuration of PWM driver In PWM driver configuration pin number used for reversing lamp and ultrasonic sensor are configured[4]. PWM Port ID: Port Pin number i.e. A.1 for reversing lamp and A.2 for sensor. PWM version info: NO. (iii) Configuration of Timer Unit Table 3 Ultrasonic sensor timer unit configuration Timer Unit Timer 0 Clock Pre scalar Edge Detection IV. RESULTS GPT ( General Purpose Timer) CLK1 Raising and Falling A. Reversing Lamp Output Fig 8 and Fig 9 shows output waveforms of reversing lamp captured in oscilloscope for 50% and 80% duty cycle as requested from SAC component. It was observed that there was a deviation of 0.4% from requested duty cycle. Fig 8 Reverse Lamp output- 50% Duty cycle 52

. B. Distance measured Fig 9 Reverse Lamp output- 80% Duty cycle Table 4 Results of distance measured by Ultrasonic sensor interface Actual Distance Of Object Distance Measured Error Test Result 15 cm 14.87 cm -> unit8(distance) = > 14 cm 6% PASSED 20 cm 19.98-> unit8(distance) = > 19 cm 6% PASSED 4 cm 4.23-> unit8(distance) = > 4 cm 0% PASSED V. CONCLUSION AND FUTURE SCOPE As there is a requirement of software portability to reduce the development time, its required to handle with the AUTOSAR layered architecture which provides favorable results to industries. This paper provides easy integration of sensor actuator application component and micro controller layer based on AUTOSAR. Future scope involves developing the configuration tools for modularizing each layer of AUTOSAR to further reduce the effort of integrating the various ECUs. By using same concept it possible to develop different application component and can be made independent of hardware used. REFERENCES [1] AUTOSAR Layered Software Architecture, 2014, AUTOSAR Specification Release 4.2.1, Retrieved on 12/10/2014. [2] AUTOSAR I/O hardware Abstraction, 2014, AUTOSAR Specification Release 4.2.1, retrieved on 20/11/2014. [3] AUTOSAR Specification of PORT Drive, 2014, AUTOSAR Specification Release 4.2.1, Retrieved on 12/11/2014. [4] https://www.autosar.org/standards/classic-platform/release-43/software-architecture/peripherals AUTHOR BIOGRAPHY Obtained her B.E. in Electronics and Communication from BVB College of Engineering, Hubli Autonomous affiliated to VTU, Karnataka. She has worked for 1.3 years at Robert Bosch as Embedded Software Developer. Currently pursuing her M.Tech in Industrial Electronics at SJCE, Mysore- Autonomous affiliated to VTU, Karnataka and she is working under Body control module team as an intern at Delphi Automotive Systems Pvt. Ltd., Bengaluru, Karnataka. 53

Obtained her B.E. in Electronics and Communication from ATME College of Engineering, Mysore VTU, Karnataka. Pursuing her M.Tech in Automotive Electronics at SJCE, Mysore- Autonomous affiliated to VTU, Karnataka and at present she is working under Body control module team as an intern at Delphi Automotive Systems Pvt. Ltd., Bengaluru, Karnataka. Obtained her Bachelor of Engineering degree in Electronics and Communication from Sri Jayachamarajendra College of Engineering, Mysore-University of Mysore, Karnataka, Master of Technology in Integrated Electronics from Indian Institute of Technology, Madras and Doctor of Philosophy from PET Research Centre, University of Mysore, Karnataka. She is serving as Associate professor in the department of E&C, SJCE, Mysore, Karnataka and her field of academic interests are VLSI Design, Digital Image processing, communication system, Testing and verification, HDL, Low power design, Analog and mixed mode VLSI design. She has served as reviewer for Journals and chaired sessions in International conferences in India. She has published 30 Research Papers which includes 17 International Journals, 12 International conferences and 1 national journal. Several projects have been guided for UG & PG Students. She has coordinated several Faculty development programs which are sponsored by MHTRA,AICTE, VTU and TEQIP. Obtained his B.E in Electrical Power from University Of Mysore, M.E in Computer Aided System Analysis and Drivers from IISc, Bangalore and Ph.D Computer Science and Engineering from Kuvempu University. He has more than 30 years of academic experience and presently serving as Head in the department of EEE, SJCE, Mysore. He has been involved mainly as an advisor and guide for research scholars pursuing Ph.D. He has been guiding several BE and MTech projects in the area of Soft Computing and Microcontroller applications. He has 11 international/national publications to his credit. He is an active member if ISTE, MIE and CSI. 54