Popular Science Series: Comparison of AUTOSAR and OSEK Network Management (Part 1)

Publisher:北极星小鹏Latest update time:2023-11-02 Source: elecfansKeywords:AUTOSAR Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

1. Introduction

The fundamental purpose of automobile network management is to save power. The basic implementation method is that when the car is not in use, some ECUs will enter low-power mode or sleep mode through network management coordination, thereby achieving the purpose of saving power. There are currently two mainstream network management standards, one is AUTOSAR (Automotive Open System Architecture), and the other is OSEK. Although the network management methods of AUTOSAR and OSEK are different, it can be considered that AUTOSAR is developed based on OSEK/VDS.


So how do these two standards implement network management functions? What are the differences? What are the similarities?

2. OSEK and AUTOSAR Network Management Implementation Principle

OSEK Network Management

1. State Machine

The state transition of the OSEK network management state machine is multi-layered and has three main states:

poYBAGNYe1yAQKT_AABg_MSKCuw238.png

Figure 1 OSEK network management main status diagram


NMOff: Network Management Off

NMOn: Network Management is running

NMShutDown: Shut down the network management operation. This process will clean up some data generated during the operation.

There are two sets of parallel sub-states in the NMOn state, which do not affect each other:

pYYBAGNYe1yAM47DAACizNRdthc140.png

Figure 2 Schematic diagram of sub-states in NMOn state


NMInit: Mainly hardware initialization, this state is very short (initial)

NMAwake: Generally, the node maintains the state for a long time and performs normal network management

NMBusSleep: Sleep state, network management communication stops

NMActive: Participate in network management (initial)

NMPassive: The node does not participate in network management but still monitors network activity

There are also three sub-states in the NMAwake state:

pYYBAGNYe1yAHroGAABleKM5B8c607.png

Figure 3. Schematic diagram of sub-states in NMAwake state


NMReset: software initialization, sending alive message

NMNormal: Periodically sends or receives Ring messages to detect changes in node status and network configuration

NMLimpHome: The node is in an abnormal state and cannot send and receive network management messages normally. Try to send limp messages periodically.

The schematic diagram of a node's transition from sleep to wake-up and then to sleep is as follows:

pYYBAGNYe1yAPzaqAACl4vBazIc893.png

Figure 4 OSEK network management status jump diagram


2. NM message format

The messages directly related to network management are network management messages. Network management messages can be divided into Alive messages, Ring messages, and LimpHome messages according to the different bit settings of byte 1 in the data they carry. Byte 1 of the network management message also carries information on whether each node meets the sleep condition, which are called SleepInd information and SleepACK information.

Alive message (bit 0 in byte 1 is set): a statement sent by each node when it needs to join the logical ring.

example:

poYBAGNYe1yAbR8tAAAKUxExwgI343.png

Ring message (bit 1 in byte 1 is set): A network management message transmitted by a "token" in a logical ring.

example:

poYBAGNYe1yAMXpsAAALvC8kSSs370.png

LimpHome message (bit 2 in byte 1 is set): a special message sent when the node is in an abnormal state and cannot send or receive network management messages.

example:

poYBAGNYe16AfaHsAAAKiAdpgX4210.png

SleepInd information (bit 4 in byte 1 is set): data carried in the network management message operation code, indicating that the node that sends this information no longer actively requests network communication.

example:

poYBAGNYe16AKu0VAAALp00t70s245.png

SleepACK information (bit 4 and bit 5 in byte 1 are set): indicates that all nodes in the network no longer need network communication. After receiving the message of this information, all nodes stop communicating and enter sleep.

example:

pYYBAGNYe16AGfRnAAAMivgaL2I329.png

3. Logical loop

Logical ring: The logic of network management message transmission. In a normal communication network, a node can only send out its own network management message after receiving the network management message sent by other nodes to itself, that is, the "token". Therefore, only one node in the network can send out a network management message at the same time. Each node sends the network management message in sequence. This sequence is called a logical ring. The schematic diagram is as follows:

pYYBAGNYe16ADlyAAADGQMcbAwQ525.png

Figure 5 Schematic diagram of logic loop

poYBAGNYe16AcUFVAAAGNsr6z8M465.png

The "Token" is in NodeB, and NodeB sends a network management message to NodeC.

pYYBAGNYe16AWQEzAAAK-2mF6eo263.png

NodeB sends a network management message to NodeC, and the "Token" is transferred to NodeC.

pYYBAGNYe1-ASzFtAAALLCpC09A702.png

The "Token" is in NodeC, and NodeC sends a network management message directed to NodeA.

poYBAGNYe1-ANd3TAAAHO0Js9Gw606.png

NodeC sends a network management message to NodeA, and the "Token" is transferred to NodeA.

pYYBAGNYe1-AdpiTAAALewohGn0796.png

The "Token" is in NodeA, and NodeA sends a network management message to NodeB.

pYYBAGNYe1-ACpO9AAAKDwpJmF0070.png

NodeA sends a network management message to NodeB, and the "Token" is transferred to NodeB.

AUTOSAR Network Management

1. State Machine

AUTOSAR network management has only three modes:

poYBAGNYe1-ASEkyAACvrXD2Yow301.png

Figure 6 Schematic diagram of AUTOSAR network management mode


BusSleepMode: Bus sleep mode, the state when the controller with AUTOSAR network management function is in normal sleep mode.

PrepareBusSleepMode: Bus pre-sleep mode. This state is a transitional state in which nodes in the network stop communicating and prepare to enter sleep mode. They will not remain in this state for a long time.

NetworkMode: Network mode, the state when there is a communication request in the network.

There are three sub-states under NetworkMode. AUTOSAR network management determines whether nodes need to communicate based on these three sub-states:

poYBAGNYe1-AF8q5AAB9Y-8bZo0863.png

Figure 7. Network Mode sub-state diagram


RepeatMessage State: Repeat message state. This state is not a long-term state. It enters this state when entering network mode from sleep mode or ready-to-sleep mode. It sends its own network management message so that other nodes in the network can detect it. It can also be used to detect currently online nodes.

NormalOperationState: Normal operation state, the state in which a node needs network communication and periodically sends its own network management messages.

ReadySleep State: Ready Sleep State, a state in which a node no longer needs network communication and no longer sends its own network management messages, but sends its own application messages normally.

All nodes in a normal communication network will maintain two states, one is NormalOperationState and the other is ReadySleepState. The difference between these two states is whether the network management message is sent or not.

The transition of a node from sleep to wake-up and then to sleep is as follows:

pYYBAGNYe2CAczRsAACPk_S5rWU002.png

Figure 8 AUTOSAR network management state transition diagram


2. NM message format

Since AUTOSAR network management messages are broadcast and do not need to specify any node, the message only contains its own ID, a small amount of control information, called the control bit vector, and user data.

poYBAGNYe2CAelraAACzqMnFDPQ908.png

Figure 9 AUTOSAR network management message format


So far, this article has briefly introduced OSEK and AUTOSAR network management in terms of state machine and network management message format.

This article focuses on the comparison of the two network management characteristics. Due to the length limitation of the article, please refer to the article "Popular Science Series: Comparison of AUTOSAR and OSEK Network Management (Part 2)".

To be continued.


Keywords:AUTOSAR Reference address:Popular Science Series: Comparison of AUTOSAR and OSEK Network Management (Part 1)

Previous article:【Technical Tips】Understand the three-electric system of new energy vehicles: battery, motor and electronic control
Next article:How to record the communication between two in-vehicle Ethernet devices using Media Gateway

Recommended ReadingLatest update time:2024-11-16 14:28

Electric power assist system design using OSEK/VDX
The principle and working process of the electric power steering system (EPS) are analyzed in detail. The PIC18F458 microcontroller is used as the controller , and the power motor is controlled through its enhanced PWM pulse width modulation module ECCP to realize the power control, return con
[Power Management]
What is DCM? Where does DCM fit in AUTOSAR?
What is DCM DCM stands for Diagnostic Communication Manager. It is located in the service layer of AUTOSAR basic software. Its main function is to provide diagnostic services that interact with diagnostic instruments during the development and production stages. The DCM module ensures the correct
[Embedded]
What is DCM? Where does DCM fit in AUTOSAR?
Latest Embedded Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号