Software Engineering for Automotive Systems Software Engineering for Automotive Systems Principles and Applications Edited by P. Sivakumar, B. Vinoth Kumar, and R. S. Sandhya Devi First edition published 2022 by CRC Press 6000 Broken Sound Parkway NW, Suite 300, Boca Raton, FL 33487-2742 and by CRC Press 2 Park Square, Milton Park, Abingdon, Oxon, OX14 4RN © 2022 selection and editorial matter, P. Sivakumar, B. Vinoth Kumar, and R. S. Sandhya Devi; individual chapters, the contributors First edition published by CRC Press 2022 CRC Press is an imprint of Taylor & Francis Group, LLC Reasonable efforts have been made to publish reliable data and information, but the author and pub- lisher cannot assume responsibility for the validity of all materials or the consequences of their use. The authors and publishers have attempted to trace the copyright holders of all material reproduced in this publication and apologize to copyright holders if permission to publish in this form has not been obtained. If any copyright material has not been acknowledged please write and let us know so we may rectify in any future reprint. Except as permitted under U.S. Copyright Law, no part of this book may be reprinted, reproduced, trans- mitted, or utilized in any form by any electronic, mechanical, or other means, now known or hereafter invented, including photocopying, microfilming, and recording, or in any information storage or retrieval system, without written permission from the publishers. For permission to photocopy or use material electronically from this work, access www.copyright.com or contact the Copyright Clearance Center, Inc. (CCC), 222 Rosewood Drive, Danvers, MA 01923, 978- 750-8400. For works that are not available on CCC please contact [email protected] Trademark notice: Product or corporate names may be trademarks or registered trademarks and are used only for identification and explanation without intent to infringe. ISBN: 978-0-367-64785-8 (hbk) ISBN: 978-1-032-21759-8 (pbk) ISBN: 978-1-003-26990-8 (ebk) DOI: 10.1201/9781003269908 Typeset in Times by KnowledgeWorks Global Ltd. Contents Preface......................................................................................................................vii Editor Biographies ....................................................................................................ix Chapter 1 Role of AUTOSAR in Automotive Software Trends ...........................1 P.Sivakumar, A. Pavithra, S. K. Somasundarum, P. K. Somanathan, and A. Manimuthu Chapter 2 Use of Communication Protocols in Automotive Software Development Process .........................................................................17 R. S. Sandhya Devi, P. Sivakumar, B. Vinoth Kumar, and A. D. Buvanesswaran Chapter 3 Bootloader Design for Advanced Driver Assistance System ................................................................................................31 R. S. Sandhya Devi, B. Vinoth Kumar, P. Sivakumar, A.Neeraja Lakshmi, and R. Tripathy Chapter 4 Advanced System Requirements for Automotive Automation .........................................................................................45 H.Suneeta, M. Manohar, and S. Harlapur Chapter 5 Software Architecture for Autonomous Trouble Code Diagnostics in Smart Vehicles............................................................73 R.Rajaguru, M. Mathankumar, T. Viswanathan, and M. Manimaran Chapter 6 Automotive Grade Linux: An Open-Source Architecture for Connected Cars .............................................................................91 P.Sivakumar, A. Neeraja Lakshmi, A. Angamuthu, R. S. Sandhya Devi, B. Vinoth Kumar, and S. Studener Chapter 7 Edge Node Creation Using Edge Computing Tools for Automotive Applications ..................................................................111 P.Sivakumar, S. Bharanidharan, A. Angamuthu, R. S. Sandhya Devi, B. Vinoth Kumar, and S. K. Somasundaram v vi Contents Chapter 8 Nanosensors for Automotive Applications .......................................125 M. Saravanan, E. Parthasarathy, J. Ajayan, and P. Mohankumar Index ......................................................................................................................157 Preface SOFTWARE ENGINEERING FOR AUTOMOTIVE SYSTEMS: PRINCIPLES AND APPLICATIONS This book explores the concept of principles and applications of software engineer- ing in automotive systems for both beginners and advanced software engineers. This book presents the state of the art, challenges, and future trends in automotive software engineering. The amount of automotive software in today’s cars is inevitable in the current sce- nario, and working in the EV industry and on futuristic flying cars seems to continue in the years to come. The Indian automobile sector is predicted to have a prominent impact on the global economy and to be a promising employment domain for young minds, directly or indirectly, in the forthcoming years. This book mainly targets this group or audience such as professionals working with automotive software and software engineering students who need to understand the specifics of automotive software. The book covers all the basic essential aspects of the automotive software field. As the first part, it introduces the topic related to AUTOSAR, communication protocols used in the automotive domain, and then it addresses the bootloader design of automotive software development, software architecture for autonomous trouble code diagnostics, automotive grade Linux for connected cars, edge computing for automotive applications, and nanosensors for future automotive applications. This book serves as a reliable, complete, and well- documented source of information on automotive software systems. The chapters of this book will give a wide range of analysis on principles and applications of software engineering for automotive systems. A brief introduction to each chapter is as follows: • Chapter 1 discusses the role of AUTOSAR in automotive software trends and the difference between traditional and adaptive AUTOSAR. • Chapter 2 depicts the need for a common protocol in automotive commu- nication systems and outlines the protocols used in automotive systems. • Chapter 3 illustrates the design of bootloader software for an ADAS system and also discusses the security challenges faced during the updating of soft- ware and applications in the ADAS systems. • Chapter 4 presents the notion of design requirements generally and describes the categories of requirements used when designing automotive software systems by emphasizing the identification of problems or challenges faced in automotive requirement engineering with reference to communication and organization structure. • Chapter 5 proposes an on-board diagnostic system that has software architecture to solve the issues and alert the users with the help of trouble- shooting codes. vii viii Preface • Chapter 6 discusses the open-source architecture for connected cars using automotive grade Linux to allow the accelerated creation of new technology and applications. • Chapter 7 discusses the application of edge computing in the automotive domain. Usage of edge computing increases the computational capability of the nodes, enhances the application delivery time, and reduces the scope of congestion. • Chapter 8 deals with nanomaterials and nanostructures used for the devel- opment of nanosensors for automotive applications. We are grateful to the authors and reviewers for their excellent contributions in making this book possible. We are grateful to CRC Press and Taylor and Francis Group, especially to Gauravjeet Singh Reen (Senior Commissioning Editor) for the excellent collabora- tion and support. This edited book covers the theory and case studies of software engineering for automotive systems. We hope the chapters presented will inspire researchers and practitioners from academia and industry to spur further advances in the field. Dr P. Sivakumar Dr B. Vinoth Kumar Ms R. S. Sandhya Devi July 2021 Editor Biographies P. Sivakumar received his B.E. degree in Electrical and Electronics with I class in 2006 from Anna University. He completed his M.E. degree in Embedded System Technologies with I class in 2009 from Anna University Coimbatore. He completed his Ph.D. in Electrical Engineering with a specialization in Automotive Embedded Software in 2018 from Anna University, PSG College of Technology. His research interests include embedded systems, model-based design, model-based testing of automotive software, automo- tive software development, fog and edge computing. He serves as a Guest Editor/ Reviewer of journals with leading publishers such as Inderscience and Springer. B. Vinoth Kumar is working as an Associate Professor with 17 years of experience in the Department of Information Technology at PSG College of Technology. His research interests include computational intelligence, digital image processing, and embedded systems. He is the author of more than 40 papers in refereed journals and international conferences. He has edited four books with reputed publishers such as Springer and CRC Press. He serves as a Guest Editor/Reviewer of many journals with leading publishers such as Inderscience and Springer. R. S. Sandhya Devi received her B.E. (Electronics and Communication Engineering) from Avinashilingam University, Coimbatore, Tamil Nadu, India. She com- pleted her M.E. (Embedded Systems) at Anna University of Technology, Coimbatore, Tamil Nadu, India. She is an Assistant Professor at Kumaraguru College of Technology. Her areas of interest include embedded system design and ARM processors. She published her project in a journal and international conference. ix