Vehicle Network Gateway (VNG)

Size: px
Start display at page:

Download "Vehicle Network Gateway (VNG)"

Transcription

1 Vehicle Network Gateway (VNG) (With emphasis on the j1850 interface) Fetah Basic (Spencer Volmar and Marc Oliver Co-Workers)

2 Abstract The Vehicle Network Gateway or VNG (pronounced ving ) is a small embedded microcontroller system that is utilized by a host computer as an interface to the different types of in-vehicle networks that are integrated on today s electronic engines. The Vehicle Network Gateway multiplexes SAE J1708, J1939, and J1850 vehicle networks on a single asynchronous serial channel to reduce the hardware overhead of a host system. A simple and easy to use interface eliminates the complexities of dealing with each protocol and their timing constraints. Below is a basic description of the J1708, J1939 and J1850 protocols. A complete description can be found in the SAE J1708, SAE J1939 and SAE J1850 publications found at The VNG is envisioned for the big and ever growing OBD (On-Board Diagnostics) market that encompasses both the private and commercial sector of vehicles from compact cars to freightliners. The VNG interfaces to the OBD through the Engine/Electronic Control Unit (ECU). On- Board Diagnostics are used to communicate to a vehicles engine, transmission, brakes and other electronic components and monitor there performance. These standards and protocols have been regulated by the US government and they have been required by federal law since 1996 for passenger vehicles and even earlier for medium to heavy duty vehicles. The J1708 and J1939 protocols are for medium to heavy duty vehicles while the J1850 is for passenger cars. OBD is most commonly associated with car mechanics that use OBD technology to diagnose engine troubles. But the often forgotten sector of this industry is the fleet management market. This enormous market is comprised of Fleet Companies, Countless Trucking Companies, First Responders (e.g., Ambulance, Police,

3 etc), etc. These OBD capabilities are usually integrated in some sort of fleet management system that trucking companies use to monitor their drivers. The common measurements utilized by the Trucking Companies are: odometer, fuel spent, RPM, brakes, engine idle, engine time (time engine has been running) and some other similar driving, on duty, resting or off duty. This is used to regulate the driver s driving time and resting time to help prevent accidents from fatigue, and help trucking companies with the pay role. 1. General (For Block Diagram and Data Flow Diagram see Diagram 1 and Diagram 2 respectfully) measurements. These companies use the engine measurements provided by the OBD along with the fleet management systems to find out if the drivers are speeding, hard braking, over idling, over RPM, etc. They also monitor when the truck is moving, when it is stopped, when it is idling, the miles traveled, miles traveled per gallon, etc. These measurements are very important in compiling the Hours of Service (HOS) reports for the drivers required by federal law, and also figuring out the fuel tax reports for each state traveled through also required by federal law. HOS is the driver s weekly report on how long they have been

4 Diagram 1. VNG Block Diagram Diagram 2. VNG Data Flow (Red my Responsibility)

5 1.1 The SAE J1708 Protocol J1708 protocols support communication The one character MID field ranges from 0 to 255. A MID value in the field is a unique among devices installed on a transit vehicle identifier. It pertains to a device or (e.g., bus, truck). The physical connection of SAE J1708 Protocol is a modification of the ISO EIA/RS 485 standard for electrical characteristics of generators and receivers for use in balanced digital multipoint systems. It defines a small entity transmitted on a physical communications channel as a character of 10 bits. The format of the character is: transmitter and indicates the characteristics of the data following the MID value. MID values ranging between 128 and 255 are reserved by SAE J1587 for devices or components which may be installed in a bus or other heavy-duty vehicle. Data characters convey the meaning of a message that is embedded from higher layers. They conform to the definition of a character structure described in Figure 2. SAE J1708 does not impose any modifications or constraints on In addition to this character structure, J1708 also defines messages. A message consists of Message Identification (MID) character, a set of data characters, and a checksum (see Figure 1). the data characters transferred during data transmission. The checksum is a specific character generated from the two s complement of the sum of the MID value and the data characters for a message. It is used to verify error-free transmission. Each message in SAE J1708 is limited to 21 Figure 1. Message Structure in SAE J1708 characters including MID and checksum. This means that an application cannot

6 generate a message, which contains more device has gained control of the network, the than 19 characters. Further, messages transmission of the character stream is in an assigned by different MID values have different message priorities. These priorities represent different levels of importance based on transmitter categories. J1708 compliant-components are allowed to access the vehicle network simultaneously. This causes network contention or conflicts. In order to solve this problem, J1708 assigns a delay that determines the time when the device may re-access the network. The delay is based on the priority of the message content and device. Clearly, the communications configuration depicted by the SAE J1708 protocol is a peer-to-peer (or balanced) communications configuration. Under this configuration, devices attempt to transmit whenever they have a message to send; the protocol employs a contention mechanism to determine which device is allowed to send if two or more devices attempt to send simultaneously. Once a asynchronous mode. The start and stop bits control the transmission process The SAE J1587 Protocol SAE J1587 protocol is an extension of SAE J1708, which defines data and message identifiers. It expands SAE J1708 to handle messages created and used by components in a heavy-duty vehicle like class 8 trucks. The messages defined in SAE J1587 include: 1. Vehicle and component information which pertains to the operational status and performance of the vehicle 2. Routing and scheduling information which relates to the planned or actual route of the vehicle, current vehicle location, and estimated time of arrival 3. Driver information which relates to driver activity 4. Freight information that pertains to freight status and billing activities.

7 specified for connection management and Currently, the SAE J1587 protocol is limited to the formats for basic vehicle and component identifiers, and performance data. The SAE J1587 functions on the data link layer as the addressing or routing service. Instead of using the term data characters, it organizes an address by parameters. A parameter consists of a Parameter Identification (PID) character and a series of data characters (see Figure 2). Currently, data transfer. The connection management includes connection requesting and closing, message acknowledgments, and flow control. The data transfer includes operations used for transferring user-defined (proprietary control) data. SAE J1587 protocol can act as an application-level protocol, however application-level messages (or protocol data units) that can be passed down to the data link layer to form parameters are not SAE J1587 uses 511 parameters to specify defined. In addition, application-level various activities associated with a heavyduty vehicle. network services used to create and map the messages into lower level protocols are also not clearly defined. Figure 2. Message Structure in SAE J1587 The SAE J1587 protocol acts not only as a protocol on the data link layer but also as network services on the transport layer. It incorporates a set of the transport-level services and organizes them by two parameters. These two parameters are 1.2 The SAE J1939 Protocol J1939 is a high speed communications network designed to support real-time closed loop control functions between Electronic Control Units (ECU s) physically distributed throughout the vehicle. J1939 is capable of performing all of the functions of

8 J1708/J1587 as well as the control system support. J1939 uses the CAN protocol which permits any ECU to transmit a message on the network when the bus is idle. Every message contains an identifier that defines the message priority, who sent it, and what data is contained within it. Collisions are avoided due to the arbitration process that occurs while the identifier is transmitted (using a non-destructive arbitration scheme). Such a scheme assures that the highest priority message will be transmitted on the bus first, even if multiple ECU s are attempting to transmit at the same time. The J1939 protocol supports only the CAN 2.0B 29 bit identifier/arbitration field. J1939 messages are broken up into Protocol Data Units (PDU s) which can be transmitted onto the CAN bus. Each PDU contains information about message priority, type, and content. Figure 1 shows the three required fields of a J1939 PDU. Figure 1. PDU Structure in SAE J1939 The priority field is used by the CAN controller chip and CAN protocol. This field is not used by the J1939 protocol. The PGN (Parameter Group Number) uniquely identifies each parameter group. This field is similar to the J1708 MID/PID fields. This number uniquely identifies the type of message and type of data that is being transmitted. There are five message types currently supported by the J1939 protocol. These types are: Commands, Requests, Broadcasts, Acknowledgment, and Group Functions. More information about the specific PGN assignments can be obtained in Appendix A of the SAE J1939 documentation. The source address field of the PDU contains the address of the ECU transmitting the message. For a given network, every address must be unique (254 available).

9 Two different ECUs cannot use the same address at the same time. The PGNs are independent of the Source Address, thus any ECU can transmit any message. Each J1939 message is limited to 1785 data bytes. Messages greater than eight bytes in length are too large to fit into a single CAN data frame. They must therefore be broken into several smaller packets, and those packets transmitted in separate message transmitted correctly. Messages are received from the CAN bus by waiting for the CAN controller to send an interrupt signifying that it has received a message and then reading the message from the CAN controller s registers. The CAN controller ensures that messages are transmitted according to the message priority and at the specified rate of the network. 1.3 The SAE J1850 Protocol frames. At the destination end, the The SAE J1850 On-Board Diagnostics individual message frames must be received, parsed, and the original message reassembled from the received packets. The Transport Protocol Message is used to transmit these multiple packet messages. Transmitting and Receiving messages is accomplished with the help of an integrated CAN controller. Messages are transmitted on the CAN bus by writing the appropriate information into the registers of the CAN controller and waiting for an interrupt response signifying that the message was standard used in On and Off-Road vehicles is an Open Architecture protocol that is low cost, intended for masterless bus control, and it is a single level bus topology. J1850 has two main operation methods, Pulse Width Modulation (PWM) at 41.6 Kb/s, and a Variable Pulse Width (VPW) at 10.4 Kb/s approach. The VNG will support both approaches. J1850 has three main classifications, A, B, C class. The performance or data-rate increases respectfully for each class. VNG will

10 primarily be utilizing the B class. The B class usually supports intermodule, non-real time control and communication. In class B the high speed PWM uses two wire differential approach and the 10.4 Kb/s VPW uses single wire approach. VPW supports General Motors (GM) and Chrysler, while PWM supports Ford. J1850 is an intermodule data communication network for sharing information passed in frames between all vehicle electronic components that are connected on the J1850 bus. Communication of digital signals between these electronic components can be achieved using multiplexing. The two types of multiplexing are frequency division and time division. Frequency division sends two or more frames at the same time on a single channel. Time division sends two or more signals with fixed or variable time delays or buffers in-between, also on a single channel. to all network nodes to access the network. Because in J1850 the transmitting node broadcasts its message, all the other nodes see the message including the transmitting node itself. Because of its asynchronous nature some kind of arbitration scheme needs to be in place to offer a non-colliding environment that supports the peer-to-peer equal access protocol. Before a node transmits a frame it first listens to the bus for some pre set amount of time. If the bus is not busy then the message is transmitted, otherwise if the bus is busy transmitting another message then the listing node waits for the current message to finish transmitting before it sends its. Collision Resolution allows multiple transmitting nodes to talk at the same time, and it resolves the issue of who controls the bus by utilizing a message prioritization scheme. Checking is done using a bit-by-bit arbitration. J1850 is an asynchronous, masterless, peerto-peer protocol that gives equal opportunity

11 Beginning of every frame start with a pre-set high potential nominal period of 200us called the Start of Frame (SOF). This is followed by bit symbols representing data bytes. Anywhere between one byte to eleven bytes can be transmitted. The field following the SOF is the Header Field. The HF can either be one or three bytes in length. HF contains critical information about what a receiving node should expect in the proceeding frame, such as how many bytes are in the HF or how many data bytes the frame contains. For more information on the header byte bit definition, a bit by bit break down of the header field and the meaning refer to the SAE J1850 manual. The Data Field consists of ones and zeros. A passive 1-bit symbol is 128us long low potential, and a dominate 1-bit symbol is 64us long high potential. The zero bit symbol is the opposite, passive is 64us long low potential and dominate is 128us long high potential. Only one transition is required per bit. At the end of the data field is the CRC (or Cyclical Redundancy Check) byte. The CRC divides the entire message excluding the SOF, by a special polynomial. The 1 s complement result of the polynomial is appended to the frame after the data field. The receiving nodes do a similar polynomial calculation to the received frame and if no errors occurred the result will always be the same (C4 in hex). After the CRC byte, comes the End of Data (EOD) which is a 200us low potential. The receiving nodes after this symbol can immediately respond with an In-Frame Response (IFR) message which is a form of error handling that J1850 supports. Otherwise if no IFR is needed by the receiver then the EOD extends into an End of Frame (EOF) symbol. These to combined make the EOF which is 280us long low potential. There are much more detailed explanations, tables and definitions of the J1850 protocol in the SAE J1850 manual.

12 2. Tasks/Interface/Parts 2.1 Tasks components that will be needed to make the project a success. Most all of my tasks are going to involve coding C and Assembly (Maybe). I estimate ninety five percent of coding will be done in C and zero to five percent will be done in assembly. Other tasks will involve learning the protocols. Finally my last task will be integrating the J1850 capability on to the VNG board. 2.2 Interface The interfacing will be between the vehicle Electronic Control Unit and the microcontroller (J1850, VPW, PWM). In that interface there will be an interface between the different processes and there protocols (RS232, RS422 or 5v buffered). Semaphores will be the major part of task scheduling and flow control. 2.3 Parts The most important and central part of the project is the microcontroller. The Motorola MC9S12DJ256 offers the necessary Its multiple network modules support CAN/J1850-based ECU environment by enabling highly efficient communications

13 between different network buses. This microcontroller will be running on the ucos-ii (microcos-ii) operating system. This is a real time operating system. The Real-Time Kernel is a highly portable, ROMable, very scalable, preemptive realtime, multitasking kernel (RTOS) for microprocessors and microcontrollers. µc/os-ii can manage up to 63 application tasks and provides the following services: Semaphores Mutual Exclusion Semaphores (to reduce priority inversions) (added in V2.04) Event Flags (added in V2.51) Message Mailboxes Message Queues Task Management (Create, Delete, Change Priority, Suspend/Resume etc.) Fixed Sized Memory Block management Time Management Also the ucos-ii has a great real time compiler and debugger, meaning when you step through the code you are stepping through the physical chip in real time. Besides these two integral components everything else is taken care of since my two co-workers have already done the J1708 and J1939 long time ago. The VNG board is almost finished with the exception of my part the J1850 capability. I may need few more small electronic parts (caps, resisters, etc) but nothing big. I have all the parts needed for this project to be completed. 3. Testing/Demo 3.1 Testing Testing will be done through the process of writing and debugging the code. Testing will also be done by simulating ECU input and checking for corresponding output. Output data will be captured using the Dearborn, a device that captures the output data and can play it back in a meaningful structure. 3.2 Demo

14 The Demo will be done by simulating Vehicle ECU output, which will be hooked up to the VNG. If time permits I will write an application in C# or C++ to take what appears like meaningless data to the average observer, and display it in a meaningful way such as a RPM gage, or Odometer or Speedometer found in a car. So for example when the gas pedal is being pressed the RPM gage mirrors this by increasing or decreasing accordingly. 4. Schedule/Plans/BOM 4.1 Schedule Summer Research the subject and familiarize myself with the different protocols and standards. Have all the material needed for the project September Begin writing the procedures and processes for J October Finish up writing the code, interface the November Tie up any looses ends left over. Finalize all the components. Test the finished product and prepare for the Demo. Finish the Report December Everything has tested fine. The project is ready for demonstration. 4.2 Plans Have project assessment get together every week. Review the progress of the project. Adjust according to the progress. 4.3 BOM All the parts are present, ready and available. 5. Conclusion I am looking forward to doing this project and completing my undergraduate capstone. I believe that having the precedence of the already completed J1708 and J1939 protocols will help me and aid me in adding the J1850 capability to the VNG board. 6. References code components. Finish the board.

15 [1] SAE On-Board Diagnostics for Light and Medium Duty Vehicles Standards manual [2] [3] /products/ucos-ii/benefits.html [4] microcontrollers/doc/prod_breif/ MC9S12DJ256FS.pdf

Implementation and validation of SAE J1850 (VPW) protocol solution for diagnosis application

Implementation and validation of SAE J1850 (VPW) protocol solution for diagnosis application Implementation and validation of SAE J1850 (VPW) protocol solution for diagnosis application Pallavi Pandurang Jadhav 1, Prof. S.N.Kore 2 1Department Of Electronics Engineering, Walchand College Of Engineering,

More information

Microprocessor Communication Module Connecting On Board Diagnostic System and Personal Computer

Microprocessor Communication Module Connecting On Board Diagnostic System and Personal Computer Microprocessor Communication Connecting On Board Diagnostic System and Personal Computer Nina Bencheva, Yordan Alexandrov Microprocessor Communication Connecting On Board Diagnostic System and Personal

More information

J1939 OVERVIEW. 1

J1939 OVERVIEW. 1 1 www.kvaser.com Table of Contents J1939: Introduction...2 Introduction... 2 Quick facts... 2 The SAE J1939 standards... 2 J1939: In Depth...4 Message Format and Usage (J1939/21)... 4 Addresses and Names

More information

SAE J1939. Serial Control and Communications Vehicle Network

SAE J1939. Serial Control and Communications Vehicle Network SAE J1939 Serial Control and Communications Vehicle Network Literature Literature on Controller Area Network, CANopen and SAE J1939 Page 2 What is SAE J1939 General Aspects Higher-layer protocol based

More information

Today. Last Time. Motivation. CAN Bus. More about CAN. What is CAN?

Today. Last Time. Motivation. CAN Bus. More about CAN. What is CAN? Embedded networks Characteristics Requirements Simple embedded LANs Bit banged SPI I2C LIN Ethernet Last Time CAN Bus Intro Low-level stuff Frame types Arbitration Filtering Higher-level protocols Today

More information

Controller area network

Controller area network Controller area network From Wikipedia, the free encyclopedia (Redirected from Controller area network) Controller area network (CAN or CAN-bus) is a vehicle bus standard designed to allow microcontrollers

More information

SAE J1939. Serial Control and Communications Vehicle Network. Presented by Wilfried Voss

SAE J1939. Serial Control and Communications Vehicle Network. Presented by Wilfried Voss SAE J1939 Serial Control and Communications Vehicle Network Presented by Wilfried Voss Copperhill Technologies Corp. Greenfield, MA 01301 https://copperhilltech.com Literature Literature on Controller

More information

Acu-Trac Ultrasonic Level Sensors

Acu-Trac Ultrasonic Level Sensors General SSI s Acu-Trac ultrasonic level sensors broadcast and receive commands over a standard TIA/EIA RS- 485 serial data bus enabling the sensors to communicate and share data with other modules located

More information

UNDERSTANDING THE CONTROLLER AREA NETWORK (CAN)

UNDERSTANDING THE CONTROLLER AREA NETWORK (CAN) UNDERSTANDING THE CONTROLLER AREA NETWORK (CAN) The unsuspecting troops had come under heavy enemy fire just before dawn and the garrison was caught totally by surprise. The fort commander had been awakened

More information

in London (United Kingdom) Sponsored by Motorola Semiconductor National Semiconductor Philips Semiconductors Organized by

in London (United Kingdom) Sponsored by Motorola Semiconductor National Semiconductor Philips Semiconductors Organized by 2 nd international CAN Conference icc 995 in London (United Kingdom) Sponsored by Motorola Semiconductor National Semiconductor Philips Semiconductors Organized by CAN in Automation (CiA) international

More information

DISTRIBUTED EMBEDDED ARCHITECTURES

DISTRIBUTED EMBEDDED ARCHITECTURES DISTRIBUTED EMBEDDED ARCHITECTURES A distributed embedded system can be organized in many different ways, but its basic units are the Processing Elements (PE) and the network as illustrated in Figure.

More information

GW-7228 J1939/Modbus RTU Slave Gateway

GW-7228 J1939/Modbus RTU Slave Gateway GW-7228 J1939/Modbus RTU Slave Gateway User s Manual www.icpdas.com GW-7228 J1939/Modbus RTU Slave Gateway User s Manual (Ver 1.2, May/2011) ------------- 1 Warranty All products manufactured by ICP DAS

More information

J1939-based application profiles

J1939-based application profiles J1939-based application profiles Holger Zeltwanger J1939 reference model 7 6 Application Profile Presentation 5 4 Session Transport 3 etwork J1939/31 - Truck and Bus etwork Layer 2 Data Link J1939/21 -

More information

K-line Communication Description

K-line Communication Description K-line Communication Description Introduction There are two primary ISO documents that describe how to perform OBD communications on K- line between a tester and a vehicle. There are actually several ISO

More information

LDV Communications Specification

LDV Communications Specification LDV6x-0308m - 1/22 Models: LDV6S and LDV6U LDV Communications Specification 2/19/2002 Rev 0.1 Created document draft JDS 2/22/2002 Rev 0.11 Added instructions on the use of Broadcast Messages JDS 3/18/2002

More information

The House Intelligent Switch Control Network based On CAN bus

The House Intelligent Switch Control Network based On CAN bus The House Intelligent Switch Control Network based On CAN bus A.S.Jagadish Department Electronics and Telecommunication Engineering, Bharath University Abstract The Embedded Technology is now in its prime

More information

ISO INTERNATIONAL STANDARD

ISO INTERNATIONAL STANDARD INTENATIONAL STANDAD ISO 11783-3 First edition 1998-07-01 Tractors and machinery for agriculture and forestry Serial control and communications data network Part 3: Data link layer Tracteurs et machines

More information

Communication Networks for the Next-Generation Vehicles

Communication Networks for the Next-Generation Vehicles Communication Networks for the, Ph.D. Electrical and Computer Engg. Dept. Wayne State University Detroit MI 48202 (313) 577-3855, smahmud@eng.wayne.edu January 13, 2005 4 th Annual Winter Workshop U.S.

More information

CCNA Exploration1 Chapter 7: OSI Data Link Layer

CCNA Exploration1 Chapter 7: OSI Data Link Layer CCNA Exploration1 Chapter 7: OSI Data Link Layer LOCAL CISCO ACADEMY ELSYS TU INSTRUCTOR: STELA STEFANOVA 1 Explain the role of Data Link layer protocols in data transmission; Objectives Describe how the

More information

How to Hack Your Mini Cooper: Reverse Engineering CAN Messages on Passenger Automobiles

How to Hack Your Mini Cooper: Reverse Engineering CAN Messages on Passenger Automobiles How to Hack Your Mini Cooper: Reverse Engineering CAN Messages on Passenger Automobiles Jason Staggs Who is this guy? Jason Staggs Graduate Research Assistant Institute for Information Security (isec)

More information

Additional Slides (informative)

Additional Slides (informative) Automation Systems Discrete Event Control Systems and Networked Automation Systems Additional Slides (informative) Application Automotive Networks (LIN, CAN, FlexRay, MOST) Vorlesungstitel Vehicle Bus

More information

CAN bus and NMEA2000 1

CAN bus and NMEA2000 1 NMEA2000 relation to CAN and how Warwick Control can help Richard McLaughlin B.Sc., M.Sc., CEng Dr Chris Quigley Warwick Control NMEA Conference 2016, Naples, Florida CAN bus and NMEA2000 1 Company Profile

More information

CAN Based Data Acquisition

CAN Based Data Acquisition Introduction This project will convert physical temperature measurements into Controller Area Network (CAN) messages following the Society of Automotive Engineers standard, SAE-J1939, Surface Vehicle Recommended

More information

Interface The exit interface a packet will take when destined for a specific network.

Interface The exit interface a packet will take when destined for a specific network. The Network Layer The Network layer (also called layer 3) manages device addressing, tracks the location of devices on the network, and determines the best way to move data, which means that the Network

More information

Automotive and industrial use cases for CAN FD

Automotive and industrial use cases for CAN FD Improved CAN Automotive and industrial use cases for CAN FD Dr. Tobias Lorenz Author Dr. Tobias Lorenz Etas GmbH PO Box 300220 DE-70442 Stuttgart Tel.: +49-711-89661-0 Fax: +49-711-89661-107 tobias.lorenz@etas.com

More information

Course Introduction. Purpose. Objectives. Content. Learning Time

Course Introduction. Purpose. Objectives. Content. Learning Time Course Introduction Purpose This training course provides an overview of Message Frames and hardware issues of the Controller Area Network (CAN) technology used to build networked, multiprocessor embedded

More information

Network Connectivity and Mobility

Network Connectivity and Mobility Network Connectivity and Mobility BSAD 141 Dave Novak Topics Covered Lecture is structured based on the five elements of creating a connected world from the text book (with additional content) 1. Network

More information

Standardized Tool Components for NRMM-Diagnostics

Standardized Tool Components for NRMM-Diagnostics Standardized Tool Components for NRMM-Diagnostics Peter Subke (Softing Automotive Electronics) In the past, passenger car manufacturers have learned the lesson that competition on the level of bits and

More information

ON-BOARD DIAGNOSTICS SCANNER

ON-BOARD DIAGNOSTICS SCANNER ON-BOARD DIAGNOSTICS SCANNER Supervisor: Dr. Samer Arandi Prepared by: Ahmad Saqfalhait & Morad Abushamma Hardware graduation project Outline 2 Background High Level View Protocols User Interface Storage

More information

Introduction to Controller Area Network (CAN)

Introduction to Controller Area Network (CAN) Introduction to Controller Area Network (CAN) 2003 Microchip Technology Incorporated. All Rights Reserved. Introduction to Controller Area Network (CAN) 1 Topics CAN Protocol Overview What is CAN? CAN

More information

Chapter 4. MARIE: An Introduction to a Simple Computer. Chapter 4 Objectives. 4.1 Introduction. 4.2 CPU Basics

Chapter 4. MARIE: An Introduction to a Simple Computer. Chapter 4 Objectives. 4.1 Introduction. 4.2 CPU Basics Chapter 4 Objectives Learn the components common to every modern computer system. Chapter 4 MARIE: An Introduction to a Simple Computer Be able to explain how each component contributes to program execution.

More information

ISO INTERNATIONAL STANDARD

ISO INTERNATIONAL STANDARD INTERNATIONAL STANDARD ISO 11783-3 Second edition 2007-10-01 Tractors and machinery for agriculture and forestry Serial control and communications data network Part 3: Data link layer Tracteurs et matériels

More information

GW-7238D J1939 to Modbus TCP Server / RTU Slave Gateway

GW-7238D J1939 to Modbus TCP Server / RTU Slave Gateway GW-7238D J1939 to Modbus TCP Server / RTU Slave Gateway User s Manual www.icpdas.com 1 Warranty All products manufactured by ICP DAS are under warranty regarding defective materials for a period of one

More information

OpenLCB Technical Note. Datagram Transport. 1 Introduction. 2 Annotations to the Standard. 2.1 Introduction. 2.2 Intended Use

OpenLCB Technical Note. Datagram Transport. 1 Introduction. 2 Annotations to the Standard. 2.1 Introduction. 2.2 Intended Use OpenLCB Technical Note Datagram Transport Feb 6, 2016 Adopted 5 10 15 20 25 1 Introduction This Technical Note contains informative discussion and background for the corresponding OpenLCB Datagram Transport

More information

DeviceNet - CIP on CAN Technology

DeviceNet - CIP on CAN Technology The CIP Advantage Technology Overview Series DeviceNet - CIP on CAN Technology DeviceNet has been solving manufacturing automation applications since the mid-1990's, and today boasts an installed base

More information

CS 4453 Computer Networks Winter

CS 4453 Computer Networks Winter CS 4453 Computer Networks Chapter 2 OSI Network Model 2015 Winter OSI model defines 7 layers Figure 1: OSI model Computer Networks R. Wei 2 The seven layers are as follows: Application Presentation Session

More information

MilCAN A. Data Link Layer Specification IHSDB-APP-GEN-D-031. Revision 4

MilCAN A. Data Link Layer Specification IHSDB-APP-GEN-D-031. Revision 4 MilCAN A Data Link Layer Specification IHSDB-APP-GEN-D-031 Revision 4 Cover + viii + 19 pages March 2003 This document may be downloaded from http://www.milcan.org Rev. 4 To request clarification of any

More information

Figure 1. ECU Access to CAN bus

Figure 1. ECU Access to CAN bus Welcome to our 4th CAN Tech Tips feature (Sort of a Chinese New Year edition). In December we showed how the CAN frame is packaged before sending over the physical bus. In the edition we will cover the

More information

CANalyzer.J1939. Product Information

CANalyzer.J1939. Product Information Product Information Table of Contents 1 Introduction... 3 1.1 Application Areas... 3 1.2 Features and Advantages... 3 1.3 Further Information... 3 2 Functions... 4 3 Hardware Interfaces... 4 4 Transport

More information

6.9. Communicating to the Outside World: Cluster Networking

6.9. Communicating to the Outside World: Cluster Networking 6.9 Communicating to the Outside World: Cluster Networking This online section describes the networking hardware and software used to connect the nodes of cluster together. As there are whole books and

More information

Chapter 2 - Part 1. The TCP/IP Protocol: The Language of the Internet

Chapter 2 - Part 1. The TCP/IP Protocol: The Language of the Internet Chapter 2 - Part 1 The TCP/IP Protocol: The Language of the Internet Protocols A protocol is a language or set of rules that two or more computers use to communicate 2 Protocol Analogy: Phone Call Parties

More information

CONTROLLER AREA NETWORK (CAN)

CONTROLLER AREA NETWORK (CAN) GROUP 54C CONTROLLER AREA NETWORK (CAN) CONTENTS GENERAL INFORMATION........ 54C-2 STRUCTURE................... 54C-3 SELF-DIAGNOSIS............... 54C-6 CAN BUS DIAGNOSTICS......... 54C-6 OPERATION...................

More information

ET4254 Communications and Networking 1

ET4254 Communications and Networking 1 Topic 10:- Local Area Network Overview Aims:- LAN topologies and media LAN protocol architecture bridges, hubs, layer 2 & 3 switches 1 LAN Applications (1) personal computer LANs low cost limited data

More information

Communication (III) Kai Huang

Communication (III) Kai Huang Communication (III) Kai Huang Ethernet Turns 40 12/17/2013 Kai.Huang@tum 2 Outline Bus basics Multiple Master Bus Network-on-Chip Examples o SPI o CAN o FlexRay o Ethernet Basic OSI model Real-Time Ethernet

More information

Research and Development of Vehicle Fault Diagnostic Protocol ISO15765

Research and Development of Vehicle Fault Diagnostic Protocol ISO15765 2011 International Conference on Transportation, Mechanical, and Electrical Engineering December 16-18, Changchun, China Research and Development of Vehicle Fault Diagnostic Protocol ISO15765 Aidong Xu,

More information

Micrium µc/os II RTOS Introduction EE J. E. Lumpp

Micrium µc/os II RTOS Introduction EE J. E. Lumpp Micrium µc/os II RTOS Introduction (by Jean Labrosse) EE599 001 Fall 2012 J. E. Lumpp μc/os II μc/os II is a highly portable, ROMable, very scalable, preemptive real time, deterministic, multitasking kernel

More information

ECE4110 Internetwork Programming. Introduction and Overview

ECE4110 Internetwork Programming. Introduction and Overview ECE4110 Internetwork Programming Introduction and Overview 1 EXAMPLE GENERAL NETWORK ALGORITHM Listen to wire Are signals detected Detect a preamble Yes Read Destination Address No data carrying or noise?

More information

HDV100A3 Command Response Protocol

HDV100A3 Command Response Protocol HDV100A3 Command Response Protocol Documentation Number: HDV100A3-4115m International Headquarters B+B SmartWorx 707 Dayton Road -- P.O. Box 1040 -- Ottawa, IL 61350 USA Phone (815) 433-5100 -- General

More information

Growing Together Globally Serial Communication Design In Embedded System

Growing Together Globally Serial Communication Design In Embedded System Growing Together Globally Serial Communication Design In Embedded System Contents Serial communication introduction......... 01 The advantages of serial design......... 02 RS232 interface......... 04 RS422

More information

Application. Diagnosing the dashboard by the CANcheck software. Introduction

Application. Diagnosing the dashboard by the CANcheck software. Introduction Diagnosing the dashboard by the CANcheck software Introduction In recent years, vehicle electronics technology improved and advances day by day. A great of advanced electronic technology has been applied

More information

SURFACE VEHICLE RECOMMENDED PRACTICE

SURFACE VEHICLE RECOMMENDED PRACTICE 400 Commonwealth Drive, Warrendale, PA 15096-0001 SURFACE VEHICLE RECOMMENDED PRACTICE An American National Standard J1979 Issued 1991-12 Revised 1997-09 Superseding J1979 JUL96 REV. SEP97 E/E DIAGNOSTIC

More information

1. Data Link Layer (Layer 2)

1. Data Link Layer (Layer 2) 1. Data Link Layer (Layer 2) The Data Link layer provides a means for exchanging data over a common local media. The Data Link layer performs two basic services: Allows the upper layers to access the media

More information

or between microcontrollers)

or between microcontrollers) : Communication Interfaces in Embedded Systems (e.g., to interface with sensors and actuators or between microcontrollers) Spring 2016 : Communication Interfaces in Embedded Systems Spring (e.g., 2016

More information

Chapter 7 Internet Protocol Version 4 (IPv4) Kyung Hee University

Chapter 7 Internet Protocol Version 4 (IPv4) Kyung Hee University Chapter 7 Internet Protocol Version 4 (IPv4) 1 7.1 Introduction The transmission mechanism used by the TCP/IP Unreliable and connectionless datagram protocol Best-effort delivery service IP packets can

More information

A Beginner s Guide to Controller Area Network Bus Access in Modern Vehicles

A Beginner s Guide to Controller Area Network Bus Access in Modern Vehicles Kennesaw State University From the SelectedWorks of Kevin McFall November 15, 2016 A Beginner s Guide to Controller Area Network Bus Access in Modern Vehicles Kevin McFall, Kennesaw State University T.

More information

RECOMMENDATION ITU-R BS.776 * Format for user data channel of the digital audio interface **

RECOMMENDATION ITU-R BS.776 * Format for user data channel of the digital audio interface ** Rec. ITU-R BS.776 1 RECOMMENDATION ITU-R BS.776 * Format for user data channel of the digital audio interface ** The ITU Radiocommunication Assembly considering (1992) a) that there is a real need for

More information

Real-Time (Paradigms) (47)

Real-Time (Paradigms) (47) Real-Time (Paradigms) (47) Memory: Memory Access Protocols Tasks competing for exclusive memory access (critical sections, semaphores) become interdependent, a common phenomenon especially in distributed

More information

Lixia Zhang M. I. T. Laboratory for Computer Science December 1985

Lixia Zhang M. I. T. Laboratory for Computer Science December 1985 Network Working Group Request for Comments: 969 David D. Clark Mark L. Lambert Lixia Zhang M. I. T. Laboratory for Computer Science December 1985 1. STATUS OF THIS MEMO This RFC suggests a proposed protocol

More information

Chapter 6: DNP Introduction. 6.2 Features of the DNP The OSI/ISO model. 6.3 Basic topology

Chapter 6: DNP Introduction. 6.2 Features of the DNP The OSI/ISO model. 6.3 Basic topology 6.1 Introduction DNP3 (Distributed Network Protocol Version 3) is an open, intelligent, robust and efficient modern SCADA protocol designed to optimise the transmission of data acquisition information

More information

Digital communication technology for teaching automatic control: the level control case

Digital communication technology for teaching automatic control: the level control case Digital communication technology for teaching automatic control: the level control case Nicolás H. Beltrán, Manuel A. Duarte-Mermoud and Pablo A. Kremer Department of Electrical Engineering, University

More information

Lecture 6 The Data Link Layer. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

Lecture 6 The Data Link Layer. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it Lecture 6 The Data Link Layer Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it Link Layer: setting the context two physically connected devices: host-router, router-router, host-host,

More information

Chances and challenges

Chances and challenges Chances and challenges CAN FD for commercial vehicles Holger Zeltwanger Commercial vehicles CAN in mobile machinery Truck network architecture Trunk, fuel Switches CAN (FD) Instrumentation train (125 or

More information

Security Concerns in Automotive Systems. James Martin

Security Concerns in Automotive Systems. James Martin Security Concerns in Automotive Systems James Martin Main Questions 1. What sort of security vulnerabilities do modern cars face today? 2. To what extent are external attacks possible and practical? Background

More information

ARM 11 Based Industrial Dust Cleaner Using High Voltage Pulse Power Supply

ARM 11 Based Industrial Dust Cleaner Using High Voltage Pulse Power Supply ARM 11 Based Industrial Dust Cleaner Using High Voltage Pulse Power Supply 1 Ramani.G, 2 Menakambal.S 1 Associate Professor, Department of EEE., Nandha Engineering College, Anna University, Erode, Tamil

More information

Introduction to Open System Interconnection Reference Model

Introduction to Open System Interconnection Reference Model Chapter 5 Introduction to OSI Reference Model 1 Chapter 5 Introduction to Open System Interconnection Reference Model Introduction The Open Systems Interconnection (OSI) model is a reference tool for understanding

More information

Operating Systems, Concurrency and Time. real-time communication and CAN. Johan Lukkien

Operating Systems, Concurrency and Time. real-time communication and CAN. Johan Lukkien Operating Systems, Concurrency and Time real-time communication and CAN Johan Lukkien (Courtesy: Damir Isovic, Reinder Bril) Question Which requirements to communication arise from real-time systems? How

More information

The problems of analysis of data on the CAN bus in vehicles

The problems of analysis of data on the CAN bus in vehicles Tomasz Jarosz 1 Comarch Technologies The problems of analysis of data on the CAN bus in vehicles Introduction Years of 80th and 90th is a breakthrough for automotive vehicles. Leading automotive companies

More information

Software Requirements Specification (SRS) Onboard Diagnostics System

Software Requirements Specification (SRS) Onboard Diagnostics System Software Requirements Specification (SRS) Onboard Diagnostics System Authors: Jonathan Rietveld, Kyle Bartush, Yuanchun Zhao, Brandon Dorazio Customer: Dr. Ed Nelson, Ford Motor Company, Innovation Center

More information

VSI-2534 User Manual

VSI-2534 User Manual VSI-2534 User Manual Version 2.2 April 2011 Foreword This document describes AutoEnginuity (DG) VSI-2534, and SAE J2534 Pass-Thru device with its primary purpose to program automotive ECUs (Electronic

More information

Chapter 3. The Data Link Layer. Wesam A. Hatamleh

Chapter 3. The Data Link Layer. Wesam A. Hatamleh Chapter 3 The Data Link Layer The Data Link Layer Data Link Layer Design Issues Error Detection and Correction Elementary Data Link Protocols Sliding Window Protocols Example Data Link Protocols The Data

More information

Prepared by Agha Mohammad Haidari Network Manager ICT Directorate Ministry of Communication & IT

Prepared by Agha Mohammad Haidari Network Manager ICT Directorate Ministry of Communication & IT Network Basics Prepared by Agha Mohammad Haidari Network Manager ICT Directorate Ministry of Communication & IT E-mail :Agha.m@mcit.gov.af Cell:0700148122 After this lesson,you will be able to : Define

More information

Serial Buses in Industrial and Automotive Applications

Serial Buses in Industrial and Automotive Applications Serial Buses in Industrial and Automotive Applications Presented by Neelima Chaurasia Class: #368 1 Overview As consumer electronics, computer peripherals, vehicles and industrial applications add embedded

More information

Winford Engineering ETH32 Protocol Reference

Winford Engineering ETH32 Protocol Reference Winford Engineering ETH32 Protocol Reference Table of Contents 1 1 Overview 1 Connection 1 General Structure 2 Communications Summary 2 Port Numbers 4 No-reply Commands 4 Set Port Value 4 Set Port Direction

More information

PPP. Point-to-Point Protocol

PPP. Point-to-Point Protocol PPP Point-to-Point Protocol 1 Introduction One of the most common types of WAN connection is the point-to-point connection. Point-to-point connections are used to connect LANs to service provider WANs,

More information

Implementation and Validation of K Line (ISO 9141) Protocol for Diagnostic Application

Implementation and Validation of K Line (ISO 9141) Protocol for Diagnostic Application Implementation and Validation of K Line (ISO 9141) Protocol for Diagnostic Application Gauri Mahajan 1, Mr. S.K.Parchandekar 2, Mr. Mohammad Tahir 3 1,2 Department of Electronics Engineering Walchand college

More information

Chapter Seven. Local Area Networks: Part 1. Data Communications and Computer Networks: A Business User s Approach Seventh Edition

Chapter Seven. Local Area Networks: Part 1. Data Communications and Computer Networks: A Business User s Approach Seventh Edition Chapter Seven Local Area Networks: Part 1 Data Communications and Computer Networks: A Business User s Approach Seventh Edition After reading this chapter, you should be able to: State the definition of

More information

TinyOBD: A TinyOS Library for OBD-II Readers

TinyOBD: A TinyOS Library for OBD-II Readers TinyOBD: A TinyOS Library for OBD-II Readers Gregory E. Stabler Clemson University Clemson, South Carolina gstable@clemson.edu ABSTRACT This paper presents a TinyOS library for On-board Diagnostics, Second

More information

Who is riding the Bus?

Who is riding the Bus? 1 of 5 12/17/2005 9:55 AM Who is riding the Bus? Let's look into the mysterious world of body and chassis controllers and the way they communicate with each other. In this article we will look at the different

More information

The CMXBug Manual. The CMXBug Manual

The CMXBug Manual. The CMXBug Manual The CMX CMXBug TM debugger provides the ability to view and modify different aspects of the CMX multitasking operating system environment, while application code is running. CMXBug runs as a task, usually

More information

An Experimental Analysis of the SAE J1939 Standard

An Experimental Analysis of the SAE J1939 Standard Truck Hacking: An Experimental Analysis of the SAE J1939 Standard 10th USENIX Workshop On Offensive Technologies (WOOT 16) Liza Burakova, Bill Hass, Leif Millar & Andre Weimerskirch Are trucks more secure

More information

Sri Vidya College of Engineering and Technology. EC6703 Embedded and Real Time Systems Unit IV Page 1.

Sri Vidya College of Engineering and Technology. EC6703 Embedded and Real Time Systems Unit IV Page 1. Sri Vidya College of Engineering and Technology ERTS Course Material EC6703 Embedded and Real Time Systems Page 1 Sri Vidya College of Engineering and Technology ERTS Course Material EC6703 Embedded and

More information

OBD-II Engine Code Reader with Bluetooth Technology

OBD-II Engine Code Reader with Bluetooth Technology User Manual OBD-II Engine Code Reader with Bluetooth Technology PP-2145 Specifications: Working environment temperature: -40 C ~ 85 C Voltage: 9-16VDC Working current: 45mA Standby current: < 40mA Wireless

More information

Ref: A. Leon Garcia and I. Widjaja, Communication Networks, 2 nd Ed. McGraw Hill, 2006 Latest update of this lecture was on

Ref: A. Leon Garcia and I. Widjaja, Communication Networks, 2 nd Ed. McGraw Hill, 2006 Latest update of this lecture was on IP Version 4 (IPv4) Header (Continued) Identification (16 bits): One of the parameters of any network is the maximum transmission unit (MTU) parameter. This parameter specifies the maximum size of the

More information

Raw Data Formatting: The RDR Formatter and NetFlow Exporting

Raw Data Formatting: The RDR Formatter and NetFlow Exporting CHAPTER 9 Raw Data Formatting: The RDR Formatter and NetFlow Exporting Revised: September 27, 2012, Introduction Cisco Service Control is able to deliver gathered reporting data to an external application

More information

Quo Vadis SAE J1939 Standardization

Quo Vadis SAE J1939 Standardization Quo Vadis SAE J1939 Standardization Due to new application layer requirements, SAE is continuing to develop the J1939 standard, which is primarily used to network powertrains in commercial vehicles. However,

More information

CMPE401 Computer Interfacing

CMPE401 Computer Interfacing CMPE401 Computer Interfacing MIDTERM EXAMINATION October 24, 2007 Name: ID: 5 questions. 50 minutes. Allowed material: Course notes A 68000 Programming Reference Card Calculators Model solutions of midterms,

More information

Universal Powerline Bus. The UPB System Description

Universal Powerline Bus. The UPB System Description Universal Powerline Bus The UPB System Description Version 1.1 09/19/03 Page i Table Of Contents 1. Overview...1 1.1. Scope...1 1.2. Prerequisites...1 2. The UPB Physical Communication Method...2 2.1.

More information

OBDII J1708/J1587 Simulator

OBDII J1708/J1587 Simulator 1 Features: Support the total 8 protocols., Customer can choose any 2 protocols or any 5 protocols or all 8 protocols in different cost 1. ISO14230-4 (KWP2000) Fast Init 2. ISO14230-4 (KWP2000) Baud 5

More information

4.0.1 CHAPTER INTRODUCTION

4.0.1 CHAPTER INTRODUCTION 4.0.1 CHAPTER INTRODUCTION Data networks and the Internet support the human network by supplying seamless, reliable communication between people - both locally and around the globe. On a single device,

More information

1. Define Peripherals. Explain I/O Bus and Interface Modules. Peripherals: Input-output device attached to the computer are also called peripherals.

1. Define Peripherals. Explain I/O Bus and Interface Modules. Peripherals: Input-output device attached to the computer are also called peripherals. 1. Define Peripherals. Explain I/O Bus and Interface Modules. Peripherals: Input-output device attached to the computer are also called peripherals. A typical communication link between the processor and

More information

RIOT and CAN. Vincent Dupont. RIOT Summit September 25-26, OTA keys. Vincent Dupont (OTA keys) RIOT and CAN RIOT Summit / 34

RIOT and CAN. Vincent Dupont. RIOT Summit September 25-26, OTA keys. Vincent Dupont (OTA keys) RIOT and CAN RIOT Summit / 34 RIOT and CAN Vincent Dupont OTA keys RIOT Summit September 25-26, 2017 Vincent Dupont (OTA keys) RIOT and CAN RIOT Summit 2017 1 / 34 Who am I? What is OTA keys? Me: Embedded software engineer: 6 years,

More information

This process is a fundamental step for every USB device, fore without it, the device would never be able to be used by the OS.

This process is a fundamental step for every USB device, fore without it, the device would never be able to be used by the OS. What is USB Enumeration? Enumeration is the process by which a USB device is attached to a system and is assigned a specific numerical address that will be used to access that particular device. It is

More information

AN1077 APPLICATION NOTE

AN1077 APPLICATION NOTE AN1077 APPLICATION NOTE OVERVIEW OF ENHANCED CAN CONTROLLERS FOR ST7 AND ST9 MCUS by Microcontroller Division Applications ABSTRACT Automotive body network requirements have changed significantly in the

More information

Chapter -4 OSI Reference Model

Chapter -4 OSI Reference Model Chapter -4 OSI Reference Model Objectives Concept of Reference Model. OSI Reference Model Concept. Layers of OSI Reference Model. 4.1 Introduction Layered Architecture, Peer-to- Peer Processes, Interfaces

More information

SRI RAMAKRISHNA INSTITUTE OF TECHNOLOGY DEPARTMENT OF INFORMATION TECHNOLOGY COMPUTER NETWORKS UNIT - II DATA LINK LAYER

SRI RAMAKRISHNA INSTITUTE OF TECHNOLOGY DEPARTMENT OF INFORMATION TECHNOLOGY COMPUTER NETWORKS UNIT - II DATA LINK LAYER SRI RAMAKRISHNA INSTITUTE OF TECHNOLOGY DEPARTMENT OF INFORMATION TECHNOLOGY COMPUTER NETWORKS UNIT - II DATA LINK LAYER 1. What are the responsibilities of data link layer? Specific responsibilities of

More information

ECE 551 System on Chip Design

ECE 551 System on Chip Design ECE 551 System on Chip Design Introducing Bus Communications Garrett S. Rose Fall 2018 Emerging Applications Requirements Data Flow vs. Processing µp µp Mem Bus DRAMC Core 2 Core N Main Bus µp Core 1 SoCs

More information

CCNA Exploration Network Fundamentals. Chapter 04 OSI Transport Layer

CCNA Exploration Network Fundamentals. Chapter 04 OSI Transport Layer CCNA Exploration Network Fundamentals Chapter 04 OSI Transport Layer Updated: 05/05/2008 1 4.1 Roles of the Transport Layer 2 4.1 Roles of the Transport Layer The OSI Transport layer accept data from the

More information

Controller Area Network

Controller Area Network Controller Area Network 1 CAN FUNDAMENTALS...3 1.1 USER BENEFITS...3 1.1.1 CAN is low cost...3 1.1.2 CAN is reliable...3 1.1.3 CAN means real-time...3 1.1.4 CAN is flexible...3 1.1.5 CAN means Multicast

More information

Mobile Communications for the Transport Sector

Mobile Communications for the Transport Sector White paper Oct 2012 Mobile Communications for the Transport Sector Public transport, as basic means of providing mobility for the general population, is a key factor in the development of our society.

More information

Computer and Network Security

Computer and Network Security CIS 551 / TCOM 401 Computer and Network Security Spring 2009 Lecture 6 Announcements First project: Due: 6 Feb. 2009 at 11:59 p.m. http://www.cis.upenn.edu/~cis551/project1.html Plan for Today: Networks:

More information