CN115348291A - Autosar network management flexible design method, system and medium - Google Patents

Autosar network management flexible design method, system and medium Download PDF

Info

Publication number
CN115348291A
CN115348291A CN202210997144.3A CN202210997144A CN115348291A CN 115348291 A CN115348291 A CN 115348291A CN 202210997144 A CN202210997144 A CN 202210997144A CN 115348291 A CN115348291 A CN 115348291A
Authority
CN
China
Prior art keywords
network management
message
node
autosar
local network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210997144.3A
Other languages
Chinese (zh)
Inventor
黄杰
卢乾
王敏
吕茂林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chongqing Changan Automobile Co Ltd
Original Assignee
Chongqing Changan Automobile Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chongqing Changan Automobile Co Ltd filed Critical Chongqing Changan Automobile Co Ltd
Priority to CN202210997144.3A priority Critical patent/CN115348291A/en
Publication of CN115348291A publication Critical patent/CN115348291A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/12Discovery or management of network topologies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40215Controller Area Network CAN

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a flexible design method, a system and a medium for Autusar network management, wherein the method comprises the following steps: defining the format of an Autosar network management message of a CAN bus, wherein the Autosar network management message is divided into a local network management parameter configuration message and a related node awakening message; according to the function requirements, counting the function scenes under the condition that the automobile is powered off, determining a logic main node in the function scenes, and defining a local network management grouping rule; and according to the Autosar network management message format and the local network management grouping rule, using the Autosar network management to perform awakening or dormancy management on the logic main node. On one hand, the invention meets the requirements of people on the functional scene after the power-off condition of the automobile and improves the comfort level of the automobile; on the other hand, the network management layout of the invention is flexible, the design efficiency is improved, the subsequent function scene expansion is convenient, the function participation nodes are simplified, and the automobile power consumption is saved.

Description

Autosar network management flexible design method, system and medium
Technical Field
The invention belongs to the technical field of vehicle-mounted communication, and particularly relates to a flexible design method, a system and a medium for Autosar network management.
Background
With the rapid development of automobile science and technology, the electronic and electrical architecture of the automobile is increasingly complex, and the number of controllers is multiplied, so as to meet the requirements of people on different scenes of the automobile, in particular the requirements of functional scenes after the automobile is powered off. In addition to the driving requirements under the power-on condition, people also have more functional scenes such as remote viewing, remote control, OTA flash and the like under the power-off condition. Under the power-off condition, if the whole vehicle is awakened when the function is required every time, the power consumption of the vehicle is wasted. In order to save energy consumption, prolong the service life of the storage battery and simplify the participation nodes of the functional scene under the power-off condition, local network management is very necessary. Due to the fact that the number of the vehicle controllers is large, the function scenes are complex, simultaneous design of the function scenes is not convenient during local network management design, and expansion of the subsequent function scenes is also inconvenient. If the local network management can be flexibly designed, the design efficiency is improved, the subsequent scene expansion is guaranteed, the function participation nodes can be well simplified, the power consumption is saved, and the development of the automobile science and technology is promoted.
In the prior art, methods for vehicle-mounted network management are numerous, most methods are for monitoring and testing vehicle-mounted network management states, but with increasing local network management requirements, design methods for vehicle-mounted local network management are more and more available; such as: aiming at OSEK local network management in a star network, a patent with the application number of 201811534615.7 provides a local dormancy awakening method of a CAN bus star network management architecture scheme. However, in the whole vehicle development process, since the controllers are mostly developed synchronously, each function scene is also designed synchronously, and in the later development stage, the requirements of function expansion are met, which causes much inconvenience for the local network management design.
Disclosure of Invention
The invention mainly aims to overcome the defects of the prior art and provide a flexible design method, a system and a medium for Autosar network management, aiming at the technical problems of more controllers for the whole vehicle, complex function requirements under the power-off condition and inconvenient local network management design, the method realizes the requirements of synchronous development and function expansion of the controllers, and is convenient for network management design under the condition of complex function scenes.
In order to achieve the purpose, the invention adopts the following technical scheme:
the first purpose is to provide a flexible design method for Autosar network management, which comprises the following steps:
defining the format of an Autosar network management message of a CAN bus, wherein the Autosar network management message is divided into a local network management parameter configuration message and a related node awakening message;
according to the function requirements, counting the function scene under the power-off condition of the automobile, determining a logic main node in the function scene, and defining a local network management grouping rule;
and according to the Autosar network management message format and the local network management grouping rule, using the Autosar network management to perform awakening or dormancy management on the logic main node.
As a preferred technical scheme, the data length of the Autosar network management message is 8Byte, wherein Byte0 is a node address, byte1 is a control vector, bytes 2 to 4 are local network management parameter groups, and bytes 5 to 7 are reserved;
the format of the control vector Byte1 of the Autosar network management message is as follows:
a Bit0: RMR fast issue flag bit;
bit1 to Bit3: res reserved bit;
and (4) Bit4: AWU sleep cause bit;
and (5) Bit5: managing message types by the WUR network;
and (6) Bit6: PNI local network management flag bit;
and (7) Bit7: res reserved bit;
when the RMR =0x0, the Autosar network management message is in a non-fast sending state; when the RMR =0x1, the Autosar network management message is in a fast sending state;
when the AWU =0x0, the Autosar network management message is awakened by a remote event; when the AWU =0x1, the Autosar network management message is awakened by a local event;
when the WUR =0x0, the Autosar network management message is represented as a local network management parameter configuration message; when the WUR =0x1, the Autosar network management message is indicated as a related node awakening message;
when the PNI =0x0, the Autosar network management message is represented as a non-local network management message; when the PNI =0x1, the Autosar network management message is represented as a local network management message;
the reserved bits are padded to 0x0.
As a preferred technical solution, the defining a local network management grouping rule specifically includes:
counting S functional scenes according to the functional requirements under the condition that the automobile is powered off;
determining logic main nodes in S function scenes according to the function requirements and corresponding function description documents, wherein the logic main nodes are nodes which are kept awakening by local events except for a gateway;
numbering x all network segments on the CAN bus, wherein the number of nodes on each network segment is y, and numbering z all functional scenes with the nodes y as logic master nodes;
storing x, y and z in a local network management parameter group of a local network management parameter configuration message, wherein Byte2 stores a network segment number x, byte3 stores the number y of nodes on the x network segment, and Byte4 stores the number y of the nodes as all functional scene numbers z of the logical master node; and then storing the corresponding relation of the x, y and z parameters and the S functional scenes in gateway and controller software of each domain to complete the definition of the local network management grouping rule.
As a preferred technical solution, the use of Autosar network management to perform wakeup or sleep management on a logical master node specifically includes:
when the automobile is in a power-off condition, all the logic main nodes are in dormancy;
when a certain logic master node is awakened by a local event, setting a control vector of the node Autosar network management message, wherein RMR is set to be 0x1, AWU is set to be 0x1, WUR is set to be 0x0, and PNI is set to be 0x1; setting a local network management parameter group of the node Autosar network management message according to the network segment where the node is located, the node number and the corresponding scene number, obtaining a local network management parameter configuration message of the node and entering a fast sending state;
after receiving the local network management parameter configuration message, the gateway removes the node address Byte0 of the local network management parameter configuration message, reserves the rest part of the local network management parameter configuration message, sends the local network management parameter configuration message in all other domain controller network segments, and enters a fast sending state;
after receiving a local network management parameter configuration message sent by a gateway, a domain controller identifies a functional scene S through a local network management parameter group of the local network management parameter configuration message i Judging whether the local node is related to the local node, if so, awakening the local node, setting a control vector of a local network management parameter configuration message, wherein RMR =0, AWU =1, WUR =1 and PNI =1, and obtaining a related node awakening message; simultaneous recognition of functional scenarios S i Neutron network segment x i Setting the corresponding local network management parameter group in the related node wake-up message by other participating nodes in the network, and sending the related node wake-up message in a normal period;
after the logic master node and the gateway enter a fast sending state, setting local network management parameter configuration message control variables of the logic master node and the gateway respectively, wherein RMR =0, AWU =1, WUR =1 and PNI =1, and obtaining node awakening messages of the logic master node and the gateway; after receiving a local network management parameter configuration message sent by a gateway, a domain controller identifies a corresponding functional scene S through a local network management parameter group i And identifying a functional scene S i Neutron network segment x i Setting corresponding local network management parameter groups in the related node awakening messages by other participating nodes, and sending the related node awakening messages by the domain controller in a normal period;
after receiving the related node awakening message, other nodes judge whether the message information is related to the other nodes, if so, the other nodes are awakened and send the related node awakening message in a normal period;
all relevant nodes on the bus are awakened, and the non-joint point is kept dormant.
As a preferred technical scheme, if there are subnet sections in the non-gateway and domain controller in the entire vehicle network, the number of the subnet section is consistent with the number of the main network section of the domain controller and the non-gateway node.
The second purpose is to provide a flexible design system for Autosar network management, which is applied to the flexible design method for Autosar network management, and comprises a message format definition module, a grouping rule definition module and a network management module;
the message format defining module is used for defining the format of an Autosar network management message of the CAN bus, and the Autosar network management message is divided into a local network management parameter configuration message and a related node awakening message;
the grouping rule definition module is used for counting the function scenes under the condition that the automobile is powered off according to the function requirements, determining a logic main node in the function scenes and defining a local network management grouping rule;
and the network management module is used for performing awakening or dormancy management on the logic main node by using the Autosar network management according to the Autosar network management message format and the local network management grouping rule.
As a preferred technical solution, in the message format defining module, the data length of the Autosar network management message is 8Byte, where Byte0 is a node address, byte1 is a control vector, bytes 2 to 4 are local network management parameter groups, and bytes 5 to 7 are reserved;
the format of the control vector Byte1 of the Autosar network management message is as follows:
a Bit0: RMR fast issue flag bit;
bit1 to Bit3: res reserved bit;
and (4) Bit4: AWU sleep cause bit;
and (5) Bit5: managing message types by the WUR network;
and (6) Bit6: PNI local network management flag bit;
and (7) Bit7: res reserved bit;
when the RMR =0x0, the Autosar network management message is in a non-fast sending state; when the RMR =0x1, the Autosar network management message is in a fast sending state;
when the AWU =0x0, the Autosar network management message is awakened by a remote event; when the AWU =0x1, the Autosar network management message is awakened by a local event;
when the WUR =0x0, the Autosar network management message is represented as a local network management parameter configuration message; when the WUR =0x1, the Autosar network management message is indicated as a related node awakening message;
when the PNI =0x0, the Autosar network management message is represented as a non-local network management message; when the PNI =0x1, the Autosar network management message is represented as a local network management message;
the reserved bits are padded with 0x0.
As a preferred technical solution, the grouping rule definition module specifically includes:
counting S function scenes according to the function requirements under the condition that the automobile is powered off;
determining logic main nodes in S function scenes according to the function requirements and corresponding function description documents, wherein the logic main nodes are nodes which are kept awakening by local events except for a gateway;
numbering x all network segments on the CAN bus, wherein the number of nodes on each network segment is y, and numbering z all functional scenes with the nodes y as logic master nodes;
storing x, y and z in a local network management parameter group of a local network management parameter configuration message, wherein Byte2 stores a network segment number x, byte3 stores the number y of nodes on the x network segment, and Byte4 stores the number y of the nodes as all functional scene numbers z of the logical master node; and then storing the corresponding relation of the x, y and z parameters and the S scenes in gateway and controller software of each domain to finish the definition of the local network management grouping rule.
As a preferred technical solution, the network management module specifically includes:
when the automobile is in a power-off condition, all the logic main nodes are in dormancy;
when a certain logic master node is awakened by a local event, setting a control vector of the node Autosar network management message, wherein RMR is set to be 0x1, AWU is set to be 0x1, WUR is set to be 0x0, and PNI is set to be 0x1; setting a local network management parameter group of the node Autosar network management message according to the network segment where the node is located, the node number and the corresponding scene number, obtaining a local network management parameter configuration message of the node and entering a fast sending state;
after receiving the local network management parameter configuration message, the gateway removes the node address Byte0 of the local network management parameter configuration message, reserves the rest part of the local network management parameter configuration message, sends the local network management parameter configuration message in all other domain controller network segments, and enters a fast sending state;
after receiving a local network management parameter configuration message sent by a gateway, a domain controller identifies a functional scene S through a local network management parameter group of the local network management parameter configuration message i Judging whether the local node is related to the local node, if so, awakening the local node, setting a control vector of a local network management parameter configuration message, wherein RMR =0, AWU =1, WUR =1 and PNI =1, and obtaining a related node awakening message; simultaneous recognition of a functional scene S i Neutron network segment x i Setting the corresponding local network management parameter group in the related node wake-up message by other participating nodes in the network, and sending the related node wake-up message in a normal period;
after the logic master node and the gateway enter a fast sending state, setting local network management parameter configuration message control variables of the logic master node and the gateway respectively, wherein RMR =0, AWU =1, WUR =1 and PNI =1, and obtaining node awakening messages of the logic master node and the gateway; after receiving a local network management parameter configuration message sent by a gateway, a domain controller identifies a corresponding functional scene S through a local network management parameter set i And identifying a functional scenario S i Neutron network segment x i The other participating nodes in the network are set, the related nodes are set to wake up the corresponding local area network in the messageA domain controller sends out related node wake-up messages in a normal cycle;
after receiving the related node awakening message, other nodes judge whether the message information is related to the other nodes, if so, the other nodes are awakened and send the related node awakening message in a normal period;
all relevant nodes on the bus are awakened, and the non-joint point is kept dormant.
A third object is to provide a computer-readable storage medium, which stores a program, and when the program is executed by a processor, the method for flexibly designing the Autosar network management is implemented.
Compared with the prior art, the invention has the following advantages and beneficial effects:
1. according to the invention, by defining the PN parameter configuration message and the related node awakening message, local network management under the conditions of more vehicle controllers and complex functional scenes is realized, the management efficiency is improved, and the safety and reliability of network communication are ensured.
2. The invention numbers all network segments, the number of nodes on each network segment and all functional scenes as logic main nodes according to the product design requirements, the functional documents and the network topology, so that the network management design layout is more flexible, and the design efficiency is obviously improved.
3. The invention realizes the requirements of synchronous development and function expansion of the controller, well simplifies the function participation nodes by defining the grouping rule and is convenient for the subsequent scene expansion.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a flexible design method for Autosar network management according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a format of an Autosar network management packet according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating a node associated with a local network management parameter set according to an embodiment of the present invention;
fig. 4 is a block diagram of an Autosar network management flexible design system according to an embodiment of the present invention;
fig. 5 is a block diagram of a computer-readable storage medium according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the specification. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
Referring to fig. 1, in an embodiment of the present application, a flexible design method for an authar network management is provided, which includes the following steps:
step 1, defining an Autosar network management message format of a CAN bus;
as shown in fig. 2, in the Autosar network management, the data length of the packet is 8Byte, where Byte0 is a node address, byte1 is a control vector, and the reserved bits of Byte2 to Byte7 can be configured, and in the present invention, byte2 to Byte4 are defined as local network management parameter sets, so as to implement flexible design of the Autosar network management.
Defining two types of the Autosar network management message, namely a local network management parameter configuration message and a related node awakening message, and judging through a WUR bit in a control vector, wherein the format of a control vector Byte1 of the Autosar network management message is as follows:
a Bit0: RMR fast issue flag bit; when RMR =0x0, the Autosar network management message is in a non-fast sending state; when RMR =0x1, the Autosar network management message is in a fast sending state;
bit1 to Bit3: res reserved bit;
and (4) Bit4: AWU sleep cause bit; when AWU =0x0, the Autosar network management message is awakened by a remote event; when AWU =0x1, the Autosar network management message is awakened by a local event;
and (5) Bit5: managing message types by the WUR network; when WUR =0x0, the Autosar network management message is indicated as a local network management parameter configuration message; when WUR =0x1, the Autosar network management message is represented as a related node awakening message;
and (6) Bit6: PNI local network management flag bit; when PNI =0x0, the Autosar network management message is represented as a non-local network management message; when PNI =0x1, the Autosar network management message is represented as a local network management message;
and (7) Bit7: res reserved bit;
the remaining reserved bits are padded with 0x0.
Step 2, according to the function requirements, counting the function scene under the power-off condition of the automobile, determining a logic master node in the function scene, and defining a local network management grouping rule, which specifically comprises the following steps:
counting S function scenes according to function requirements under the power-off condition of the automobile, such as remote viewing, remote control, OTA (over the air) flashing and the like, and related function description documents;
determining logic master nodes in S functional scenes according to product requirement design and a functional description document, wherein the logic master nodes are nodes (including domain controllers such as power, a chassis, a cockpit, intelligent driving and the like) which are kept awakening by local events except a gateway;
numbering x all network segments, wherein the number of nodes on each network segment is y, and numbering z all functional scenes with the nodes y as logical main nodes;
as shown in fig. 3, x, y, and z are stored in the local network management parameter set of the local network management parameter configuration packet, byte2 to Byte4 have 3 bytes in total, where Byte2 stores the network segment number x, and Byte3 and Byte4 store the node array related to the functional scene (each node on the network segment corresponds to a bit, if the function is related to the node, the corresponding bit is set, otherwise, the bit is not set, and finally, the related node array is obtained); and then storing the corresponding relation between the x, y and z parameters and the S scenes in the gateway and the controller software of each domain to complete the definition of the local network management grouping rule.
Step 3, according to the Autosar network management message format and the local network management grouping rule, using Autosar network management to perform awakening or dormancy management on the logic main node, specifically:
when the automobile is in a power-off condition, all the logic main nodes are in dormancy;
when a certain logic master node is awakened by a local event, setting a control vector of the node Autosar network management message, wherein RMR is set to be 0x1, AWU is set to be 0x1, WUR is set to be 0x0, and PNI is set to be 0x1; setting a local network management parameter group of the node Autosar network management message according to the network segment where the node is located, the node number and the corresponding scene number, obtaining a local network management parameter configuration message of the node and entering a fast sending state;
after receiving the local network management parameter configuration message, the gateway removes the node address Byte0 of the local network management parameter configuration message, reserves the rest part of the local network management parameter configuration message, sends the local network management parameter configuration message in all other domain controller network segments, and enters a fast sending state;
after receiving a local network management parameter configuration message sent by a gateway, a domain controller identifies a functional scene S through a local network management parameter group of the local network management parameter configuration message i And judging whether the local network management parameter is related to the local network management parameter, if so, awakening the local network management parameter, and setting the local network management parameterSetting a control vector of a message, wherein RMR =0, AWU =1, WUR =1 and PNI =1, and obtaining a related node awakening message; simultaneous recognition of a functional scene S i Neutron network segment x i Setting the corresponding local network management parameter group in the related node wake-up message by other participating nodes in the network, and sending the related node wake-up message in a normal period;
after the logic master node and the gateway enter a fast sending state, setting local network management parameter configuration message control variables of the logic master node and the gateway respectively, wherein RMR =0, AWU =1, WUR =1 and PNI =1, and obtaining node awakening messages of the logic master node and the gateway; after receiving a local network management parameter configuration message sent by a gateway, a domain controller identifies a corresponding functional scene S through a local network management parameter group i And identifying a functional scene S i Neutron network segment x i Setting corresponding local network management parameter groups in the related node awakening messages by other participating nodes, and sending the related node awakening messages by the domain controller in a normal period;
after receiving the related node awakening message, other nodes judge whether the message information is related to the other nodes, if so, the other nodes are awakened and send the related node awakening message in a normal period;
all relevant nodes on the bus are awakened, and the non-joint point is kept dormant.
As the whole vehicle network has the condition that each non-gateway and each domain controller have subnet sections, the numbers of the subnet sections are consistent with the numbers of the main subnet sections of the domain controllers and the non-gateway nodes.
It should be noted that for simplicity and clarity of description, the above-described method embodiments have been presented as a series of interrelated steps, but it should be appreciated by those skilled in the art that the present invention is not limited by the order of acts described, as some steps may occur in other orders or concurrently in accordance with the invention.
Based on the same idea as the flexible design method for the Autosar network management in the embodiment, the invention also provides a flexible design system for the Autosar network management, and the system can be used for executing the flexible design method for the Autosar network management. For convenience of illustration, the structural diagram of an embodiment of the flexible design system for managing the Autosar network only shows a part related to the embodiment of the present invention, and those skilled in the art will understand that the illustrated structure does not constitute a limitation to the apparatus, and may include more or less components than those illustrated, or combine some components, or arrange different components.
Referring to fig. 4, in another embodiment of the present application, an Autosar network management flexible design system 100 is provided, which includes a message format defining module 101, a grouping rule defining module 102, and a network management module 103;
the message format defining module 101 is configured to define an Autosar network management message format of the CAN bus, and divide the Autosar network management message format into a local network management parameter configuration message and a related node wakeup message;
the grouping rule definition module 102 is configured to count a function scenario under the power-off condition of the automobile according to a function requirement, determine a logical master node in the function scenario, and define a local network management grouping rule;
the network management module 103 is configured to perform wakeup or sleep management on the logical master node by using the Autosar network management according to the format of the Autosar network management packet and the local network management grouping rule.
Specifically, in the message format defining module 101, the data length of the Autosar network management message is 8Byte, where Byte0 is a node address, byte1 is a control vector, bytes 2 to 4 are local network management parameter sets, and bytes 5 to 7 are reserved;
the format of the control vector Byte1 of the Autosar network management message is as follows:
a Bit0: RMR fast sending flag bit (0 x0= that the Autosar network management message is in non-fast sending state; 0x1= that the Autosar network management message is in fast sending state);
bit1 to Bit3: res is reserved;
and (4) Bit4: AWU sleep reason bit (0x0 = Autosar network management message for remote event wakeup; 0x1= Autosar network management message for local event wakeup);
and (5) Bit5: a WUR network management message type (0 x0= the Autosar network management message is a local network management parameter configuration message; 0x1= the Autosar network management message is a related node awakening message);
and (6) Bit6: PNI local network management flag bit (0 x0= the Autosar network management message is a non-local network management message; 0x1= the Autosar network management message is a local network management message);
and (7) Bit7: res is reserved;
the remaining reserved bits are filled with 0x0.
Specifically, the grouping rule definition module 102 specifically includes:
counting S function scenes according to function requirements under the power-off condition of the automobile, such as remote viewing, remote control, OTA (over the air) flashing and the like, and related function description documents;
determining logic master nodes in S functional scenes according to product requirement design and a functional description document, wherein the logic master nodes are nodes (including domain controllers such as power, a chassis, a cockpit, intelligent driving and the like) which are kept awakening by local events except a gateway;
numbering x all network segments, wherein the number of nodes on each network segment is y, and numbering z all functional scenes with the nodes y as logical main nodes;
storing x, y and z in a local network management parameter group of a local network management parameter configuration message, wherein Byte2 stores a network segment number x, byte3 stores the number y of nodes on the x network segment, and Byte4 stores the number y of the nodes as all functional scene numbers z of the logical master node; and then storing the corresponding relation between the x, y and z parameters and the S scenes in the gateway and the controller software of each domain to complete the definition of the local network management grouping rule.
Specifically, the network management module 103 specifically includes:
when the automobile is in a power-off condition, all the logic main nodes are in dormancy;
when a certain logic master node is awakened by a local event, setting a control vector of the node Autosar network management message, wherein RMR is set to be 0x1, AWU is set to be 0x1, WUR is set to be 0x0, and PNI is set to be 0x1; setting a local network management parameter group of the node Autosar network management message according to the network segment where the node is located, the node number and the corresponding scene number, obtaining a local network management parameter configuration message of the node and entering a fast sending state;
after receiving the local network management parameter configuration message, the gateway removes the node address Byte0 of the local network management parameter configuration message, reserves the rest part of the local network management parameter configuration message, sends the local network management parameter configuration message in all other domain controller network segments, and enters a fast sending state;
after receiving a local network management parameter configuration message sent by a gateway, a domain controller identifies a functional scene S through a local network management parameter group of the local network management parameter configuration message i Judging whether the local node is related to the local node, if so, awakening the local node, setting a control vector of a local network management parameter configuration message, wherein RMR =0, AWU =1, WUR =1 and PNI =1, and obtaining a related node awakening message; simultaneous recognition of a functional scene S i Neutron network segment x i Setting the corresponding local network management parameter group in the related node wake-up message by other participating nodes in the network, and sending the related node wake-up message in a normal period;
after the logic master node and the gateway enter a fast sending state, setting local network management parameter configuration message control variables of the logic master node and the gateway respectively, wherein RMR =0, AWU =1, WUR =1 and PNI =1, and obtaining node awakening messages of the logic master node and the gateway; after receiving a local network management parameter configuration message sent by a gateway, a domain controller identifies a corresponding functional scene S through a local network management parameter group i And identifying a functional scene S i Neutron network segment x i Setting corresponding local network management parameter sets in the related node awakening message by other participating nodes in the network, and sending the related node awakening message by the domain controller in a normal period;
after receiving the related node awakening message, other nodes judge whether the message information is related to the other nodes, if so, the other nodes are awakened and send the related node awakening message in a normal period;
all relevant nodes on the bus are awakened, and the joint-free point is kept dormant.
It should be noted that, the flexible design system for Autosar network management of the present invention corresponds to the flexible design method for Autosar network management of the present invention one to one, and the technical features and the beneficial effects thereof described in the above embodiment of the flexible design method for Autosar network management are all applicable to the embodiment of the flexible design system for Autosar network management, and specific contents may refer to the description in the embodiment of the method of the present invention, which is not described herein again and hereby stated.
In addition, in the implementation of the flexible design system for autoar network management according to the foregoing embodiments, the logical division of each program module is only an example, and in practical applications, the foregoing function distribution may be performed by different program modules according to needs, for example, due to the configuration requirements of corresponding hardware or the convenience of software implementation, that is, the internal structure of the flexible design system for autoar network management is divided into different program modules to perform all or part of the functions described above.
Referring to fig. 5, in one embodiment, a computer storage medium 200 is provided, in which a program is stored in a memory 201, and when the program is executed by a processor 202, the method for flexibly designing the management of the Autosar network is implemented, specifically:
defining the Autosar network management message format of the CAN bus, and dividing the Autosar network management message format into a local network management parameter configuration message and a related node awakening message;
according to the function requirements, counting the function scene under the power-off condition of the automobile, determining a logic main node in the function scene, and defining a local network management grouping rule;
and according to the Autosar network management message format and the local network management grouping rule, using the Autosar network management to perform awakening or dormancy management on the logic main node.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above may be implemented by a computer program, which may be stored in a non-volatile computer readable storage medium, and when executed, may include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), rambus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above embodiments are preferred embodiments of the present invention, but the present invention is not limited to the above embodiments, and any other changes, modifications, substitutions, combinations, and simplifications which do not depart from the spirit and principle of the present invention should be construed as equivalents thereof, and all such changes, modifications, substitutions, combinations, and simplifications are intended to be included in the scope of the present invention.

Claims (10)

1. A flexible design method for Autosar network management is characterized by comprising the following steps:
defining the format of an Autosar network management message of a CAN bus, wherein the Autosar network management message is divided into a local network management parameter configuration message and a related node awakening message;
according to the function requirements, counting the function scenes under the condition that the automobile is powered off, determining a logic main node in the function scenes, and defining a local network management grouping rule;
and according to the Autosar network management message format and the local network management grouping rule, using the Autosar network management to perform awakening or dormancy management on the logic main node.
2. The flexible design method for Autosar network management according to claim 1, wherein the data length of the Autosar network management message is 8Byte, where Byte0 is a node address, byte1 is a control vector, bytes 2 to 4 are sets of local network management parameters, and bytes 5 to 7 are reserved;
the format of the control vector Byte1 of the Autosar network management message is as follows:
a Bit0: RMR fast issue flag bit;
bit1 to Bit3: res reserved bit;
and (4) Bit4: AWU sleep cause bit;
and (5) Bit5: managing message types by the WUR network;
and (6) Bit6: PNI local network management flag bit;
and (7) Bit7: res reserved bit;
when the RMR =0x0, the Autosar network management message is in a non-fast sending state; when the RMR =0x1, the Autosar network management message is in a fast sending state;
when the AWU =0x0, the Autosar network management message is awakened by a remote event; when the AWU =0x1, the Autosar network management message is awakened by a local event;
when the WUR =0x0, the Autosar network management message is represented as a local network management parameter configuration message; when the WUR =0x1, the Autosar network management message is represented as a related node awakening message;
when the PNI =0x0, the Autosar network management message is represented as a non-local network management message; when the PNI =0x1, the Autosar network management message is represented as a local network management message;
the reserved bits are padded to 0x0.
3. The flexible design method for Autosar network management according to claim 2, wherein the defining of the local network management grouping rule specifically comprises:
counting S functional scenes according to the functional requirements under the condition that the automobile is powered off;
determining logic main nodes in S function scenes according to the function requirements and corresponding function description documents, wherein the logic main nodes are nodes which are kept awakening by local events except for a gateway;
numbering x all network segments on the CAN bus, wherein the number of nodes on each network segment is y, and numbering z all functional scenes with the nodes y as logic master nodes;
storing x, y and z in a local network management parameter group of a local network management parameter configuration message, wherein Byte2 stores a network segment number x, byte3 stores the number y of nodes on the x network segment, and Byte4 stores the number y of the nodes as all functional scene numbers z of the logical master node; and then storing the corresponding relation of the x, y and z parameters and the S functional scenes in gateway and controller software of each domain to complete the definition of the local network management grouping rule.
4. The flexible design method for Autosar network management according to claim 3, wherein the logic master node is awakened or sleep managed by using the Autosar network management, specifically:
when the automobile is in a power-off condition, all the logic main nodes are in dormancy;
when a certain logic master node is awakened by a local event, setting a control vector of the node Autosar network management message, wherein RMR is set to be 0x1, AWU is set to be 0x1, WUR is set to be 0x0, and PNI is set to be 0x1; setting a local network management parameter group of the node Autosar network management message according to the network segment where the node is located, the node number and the corresponding scene number, obtaining a local network management parameter configuration message of the node and entering a fast sending state;
after receiving the local network management parameter configuration message, the gateway removes the node address Byte0 of the local network management parameter configuration message, reserves the rest part of the local network management parameter configuration message, sends the local network management parameter configuration message in all other domain controller network segments, and enters a fast sending state;
after receiving a local network management parameter configuration message sent by a gateway, a domain controller identifies a functional scene S through a local network management parameter group of the local network management parameter configuration message i Judging whether the local node is related to the local node, if so, awakening the local node, setting a control vector of a local network management parameter configuration message, wherein RMR =0, AWU =1, WUR =1 and PNI =1, and obtaining a related node awakening message; simultaneous recognition of functional scenarios S i Neutron network segment x i Setting the corresponding local network management parameter group in the related node wake-up message by other participating nodes in the network, and sending the related node wake-up message in a normal period;
after the logic master node and the gateway enter a fast sending state, setting local network management parameter configuration message control variables of the logic master node and the gateway respectively, wherein RMR =0, AWU =1, WUR =1 and PNI =1, and obtaining node awakening messages of the logic master node and the gateway; after receiving a local network management parameter configuration message sent by a gateway, a domain controller identifies a corresponding functional scene S through a local network management parameter group i And identifying a functional scene S i Neutron network segment x i Setting corresponding local network management parameter groups in the related node awakening messages by other participating nodes, and sending the related node awakening messages by the domain controller in a normal period;
after receiving the related node awakening message, other nodes judge whether the message information is related to the other nodes, if so, the other nodes are awakened and send the related node awakening message in a normal cycle;
all relevant nodes on the bus are awakened, and the joint-free point is kept dormant.
5. The flexible design method for Autosar network management according to claim 4, wherein if there are subnet sections in the non-gateway and domain controller in the entire vehicle network, the subnet section number is set to be consistent with the main network section number of the domain controller and the non-gateway node.
6. An Autosar network management flexible design system is characterized in that the design system is applied to the Autosar network management flexible design method in any one of claims 1-5, and comprises a message format definition module, a grouping rule definition module and a network management module;
the message format defining module is used for defining the format of an Autosar network management message of the CAN bus, and the Autosar network management message is divided into a local network management parameter configuration message and a related node awakening message;
the grouping rule definition module is used for counting the function scenes under the condition that the automobile is powered off according to the function requirements, determining a logic main node in the function scenes and defining a local network management grouping rule;
and the network management module is used for performing awakening or dormancy management on the logic main node by using the Autosar network management according to the Autosar network management message format and the local network management grouping rule.
7. The flexible design system for Autosar network management as claimed in claim 6, wherein in said message format defining module, the data length of said Autosar network management message is 8Byte, where Byte0 is node address, byte1 is control vector, bytes 2 to 4 are local network management parameter set, and bytes 5 to 7 are reserved;
the format of the control vector Byte1 of the Autosar network management message is as follows:
a Bit0: RMR fast issue flag bit;
bit1 to Bit3: res reserved bit;
and (4) Bit4: AWU sleep cause bit;
and (5) Bit5: managing message types by the WUR network;
and (6) Bit6: PNI local network management flag bit;
and (7) Bit7: res reserved bit;
when the RMR =0x0, the Autosar network management message is in a non-fast-forwarding state; when the RMR =0x1, the Autosar network management message is in a fast sending state;
when the AWU =0x0, the Autosar network management message is awakened by a remote event; when the AWU =0x1, the Autosar network management message is awakened by a local event;
when the WUR =0x0, the Autosar network management message is represented as a local network management parameter configuration message; when the WUR =0x1, the Autosar network management message is represented as a related node awakening message;
when the PNI =0x0, the Autosar network management message is represented as a non-local network management message; when the PNI =0x1, the Autosar network management message is represented as a local network management message;
the reserved bits are padded with 0x0.
8. The flexible design system for Autosar network management according to claim 7, wherein the grouping rule definition module specifically comprises:
counting S function scenes according to the function requirements under the condition that the automobile is powered off;
determining logic main nodes in S function scenes according to the function requirements and the corresponding function description documents, wherein the logic main nodes are nodes which are kept awake by local events except for a gateway;
numbering x all network segments on the CAN bus, wherein the number of nodes on each network segment is y, and numbering z all functional scenes with the nodes y as logic master nodes;
storing x, y and z in a local network management parameter group of a local network management parameter configuration message, wherein Byte2 stores a network segment number x, byte3 stores the number y of nodes on the x network segment, and Byte4 stores the number y of the nodes as all functional scene numbers z of the logical master node; and then storing the corresponding relation of the x, y and z parameters and the S scenes in gateway and controller software of each domain to finish the definition of the local network management grouping rule.
9. The flexible design system for Autosar network management according to claim 8, wherein the network management module is specifically:
when the automobile is in a power-off condition, all the logic main nodes are in dormancy;
when a certain logic master node is awakened by a local event, setting a control vector of the node Autosar network management message, wherein RMR is set to be 0x1, AWU is set to be 0x1, WUR is set to be 0x0, and PNI is set to be 0x1; setting a local network management parameter group of the node Autosar network management message according to the network segment where the node is located, the node number and the corresponding scene number, obtaining a local network management parameter configuration message of the node and entering a fast sending state;
after receiving the local network management parameter configuration message, the gateway removes the node address Byte0 of the local network management parameter configuration message, reserves the rest part of the local network management parameter configuration message, sends the local network management parameter configuration message in all other domain controller network segments, and enters a fast sending state;
after receiving a local network management parameter configuration message sent by a gateway, a domain controller identifies a functional scene S through a local network management parameter group of the local network management parameter configuration message i Judging whether the local node is related to the local node, if so, awakening the local node, setting a control vector of a local network management parameter configuration message, wherein RMR =0, AWU =1, WUR =1 and PNI =1, and obtaining a related node awakening message; simultaneous recognition of a functional scene S i Neutron network segment x i Setting the corresponding local network management parameter group in the related node wake-up message by other participating nodes in the network, and sending the related node wake-up message in a normal period;
after the logic master node and the gateway enter a fast sending state, setting local network management parameter configuration message control variables of the logic master node and the gateway respectively, wherein RMR =0, AWU =1, WUR =1 and PNI =1, and obtaining node awakening messages of the logic master node and the gateway; after receiving a local network management parameter configuration message sent by a gateway, a domain controller identifies a corresponding functional scene S through a local network management parameter set i And identifying a functional scenario S i Neutron network segment x i Setting corresponding local network management parameter sets in the related node awakening message by other participating nodes in the network, and sending the related node awakening message by the domain controller in a normal period;
after receiving the related node awakening message, other nodes judge whether the message information is related to the other nodes, if so, the other nodes are awakened and send the related node awakening message in a normal cycle;
all relevant nodes on the bus are awakened, and the non-joint point is kept dormant.
10. A computer-readable storage medium storing a program, wherein the program, when executed by a processor, implements an Autosar network management flexible design method as recited in any of claims 1-6.
CN202210997144.3A 2022-08-19 2022-08-19 Autosar network management flexible design method, system and medium Pending CN115348291A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210997144.3A CN115348291A (en) 2022-08-19 2022-08-19 Autosar network management flexible design method, system and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210997144.3A CN115348291A (en) 2022-08-19 2022-08-19 Autosar network management flexible design method, system and medium

Publications (1)

Publication Number Publication Date
CN115348291A true CN115348291A (en) 2022-11-15

Family

ID=83954482

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210997144.3A Pending CN115348291A (en) 2022-08-19 2022-08-19 Autosar network management flexible design method, system and medium

Country Status (1)

Country Link
CN (1) CN115348291A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115755859A (en) * 2022-11-28 2023-03-07 中国第一汽车股份有限公司 Network fault diagnosis method, device and medium based on local network
CN116170355A (en) * 2023-02-10 2023-05-26 重庆长安新能源汽车科技有限公司 Method, device, equipment and medium for monitoring abnormal wake-up source of vehicle-end network
CN116170355B (en) * 2023-02-10 2024-05-17 深蓝汽车科技有限公司 Method, device, equipment and medium for monitoring abnormal wake-up source of vehicle-end network

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115755859A (en) * 2022-11-28 2023-03-07 中国第一汽车股份有限公司 Network fault diagnosis method, device and medium based on local network
CN116170355A (en) * 2023-02-10 2023-05-26 重庆长安新能源汽车科技有限公司 Method, device, equipment and medium for monitoring abnormal wake-up source of vehicle-end network
CN116170355B (en) * 2023-02-10 2024-05-17 深蓝汽车科技有限公司 Method, device, equipment and medium for monitoring abnormal wake-up source of vehicle-end network

Similar Documents

Publication Publication Date Title
CN109327372B (en) Local dormancy awakening method of CAN bus star network management architecture scheme
CN110830267A (en) State control method and device of network node and gateway
CN112491671B (en) Method and system for monitoring whole vehicle feed problem and vehicle CAN network gateway
CN113253648B (en) Vehicle and network management method thereof, domain controller, storage medium, and electronic device
CN107360072A (en) It is a kind of can synchronous dormancy CAN network and its control method
CN111404819B (en) Network control method and system based on routing function
CN113259421A (en) Complete vehicle network partial dormancy management system and method and central gateway
CN112269371B (en) Vehicle network dormancy abnormal event monitoring method
CN115348291A (en) Autosar network management flexible design method, system and medium
CN111624902A (en) Control method and device for dormancy and awakening
CN114056134A (en) Vehicle wake-up method, device and storage medium
CN112702220B (en) Network testing method and network testing device
CN108123838B (en) Node state management method and node state management device
CN111490918B (en) Vehicle-mounted Ethernet network awakening system, method and device and computer equipment
CN114143746A (en) Target network segment sleep state management method and related equipment
CN115685843A (en) Local network management grouping method and device, electronic equipment and storage medium
CN114670762B (en) Vehicle-mounted equipment awakening control method and device and electric automobile
CN115167218A (en) Vehicle-mounted local network management method and system
CN113923695A (en) Awakening fault detection method and device and message sending method and device
CN113810983A (en) Power management optimization method and device based on remote monitoring module
CN115913801A (en) Vehicle-mounted intelligent network management gateway system and management method
CN112068493A (en) Whole vehicle sleep awakening control method and control system
CN117527847A (en) Vehicle network management method, device, equipment and storage medium
CN117749562A (en) Behavior learning-based ECU awakening method, device, equipment and storage medium
CN115842688B (en) Comprehensive network management method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination