CN111726340B - Local network management method and system based on AUTOSAR - Google Patents
Local network management method and system based on AUTOSAR Download PDFInfo
- Publication number
- CN111726340B CN111726340B CN202010445696.4A CN202010445696A CN111726340B CN 111726340 B CN111726340 B CN 111726340B CN 202010445696 A CN202010445696 A CN 202010445696A CN 111726340 B CN111726340 B CN 111726340B
- Authority
- CN
- China
- Prior art keywords
- function
- network management
- ecu
- group
- management message
- 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.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60R—VEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
- B60R16/00—Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for
- B60R16/02—Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements
- B60R16/023—Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements for transmission of signals between vehicle parts or subsystems
- B60R16/0231—Circuits relating to the driving or the functioning of the vehicle
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/22—Parsing or analysis of headers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/30—Services specially adapted for particular environments, situations or purposes
- H04W4/40—Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/30—Services specially adapted for particular environments, situations or purposes
- H04W4/40—Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
- H04W4/48—Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P] for in-vehicle communication
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/50—Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Automation & Control Theory (AREA)
- Mechanical Engineering (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Small-Scale Networks (AREA)
Abstract
The application relates to a local network management method and a system based on AUTOSAR, wherein the method comprises the following steps: constructing network topological graphs of all ECUs; correspondingly configuring a plurality of ECUs for each function group according to the network topological graph, and setting priorities for all the function groups; defining a network management message, wherein the network management message comprises state indicating bits of all function groups, and positions of the state indicating bits of the function groups in the network management message are distributed according to the priority of the function groups; and after the function groups trigger activation conditions, determining a response strategy according to the number, the type and the priority of the activated function groups, and identifying the network management message by the ECU and executing awakening or sleeping operation according to the state indicating bits of the function groups. The local network management method provided by the application reduces the power consumption of the storage battery, saves more energy and can prolong the service life of the ECU.
Description
Technical Field
The application relates to the technical field of automotive electronics, in particular to a local network management method and system based on AUTOSAR.
Background
At present, network management commonly used in automobiles is generally global network management, that is, when a certain function is activated, all ECUs (Electronic Control units) participating in network management on a network need to be awakened, and even if some ECUs do not participate in the function activation, the ECUs on the network are also awakened, so that the ECUs on the network are all in an awakened state, which brings disadvantages of fast power consumption of a storage battery and reduction of the service life of the ECUs.
Disclosure of Invention
The embodiment of the application provides a local network management method and system based on AUTOSAR (automotive open system architecture), which aim to solve the technical problems of high power consumption of a storage battery and short service life of an ECU (electronic control unit) in the related technology.
In a first aspect, a local network management method based on automotive open system architecture (AUTOSAR) is provided, which includes the steps of:
constructing network topological graphs of all Electronic Control Units (ECU);
presetting a plurality of function groups, correspondingly configuring a plurality of ECUs for each function group according to the network topological graph, and setting priorities for all the function groups;
defining a network management message based on AUTOSAR standard, wherein the network management message comprises status indication bits of all function groups, the status indication bits of the function groups comprise an activated state and a closed state, and the positions of the status indication bits of the function groups in the network management message are distributed according to the priority of the function groups;
when the function group triggers an activation condition, the state indicating bit of the corresponding function group in the network management message transmitted in the network topological graph is in an activation state, a response strategy is determined according to the number, the type and the priority of the activated function groups, and the ECU identifies the network management message and executes awakening or sleeping operation according to the state indicating bit of the function group.
In some embodiments, the determining the response policy according to the number, type, and priority of the activated functional groups, and the specific steps of the ECU identifying the network management packet and performing the wake-up or sleep operation according to the status indicator bits of the functional groups include:
and when the number of the activated function groups is one, all ECUs corresponding to the activated function groups identify the network management message and execute awakening operation according to the state indicating bits of the function groups.
When the number of the activated function groups is two or more, if the operation of the ECU corresponding to the activated function group has no conflict, the ECUs corresponding to all the activated function groups recognize the network management message and execute the awakening operation according to the state indicating bit of the function group to which the ECU belongs; and if the operation of the ECU corresponding to the activated function group conflicts, the ECU corresponding to the activated function group with high priority executes the awakening operation, the ECU corresponding to the activated function group with low priority executes the sleeping operation, and the ECU with the function conflict executes the operation of the function group with high priority.
In some embodiments, when the number of activated function groups is two or more, and if there is a conflict in the operation of the ECU corresponding to the activated function group, the method further includes the steps of:
and setting the state indicating bit of the activated functional group with high priority to be in an activated state, and setting the state indicating bit of the activated functional group with low priority to be in a closed state.
In some embodiments, the setting of the priorities for all the functional groups specifically includes:
according to the speed of the function realization time of each function group and the severity of the function failure influence, the function realization time and the function failure influence of each function group are graded to obtain a score of the function realization time and a score of the function failure influence;
calculating a priority score for each functional group, the priority score being equal to the product of the score of the function achievement time and the score of the function failure impact;
the priority of all functional groups is determined according to their priority scores.
In some embodiments, the AUTOSAR-based local network management method further includes the steps of:
dividing all ECUs in the same functional group into an active ECU and a passive ECU;
presetting an activation condition and a closing condition of each function group;
when a certain function group triggers an activation condition, an active ECU in the function group is awakened, the active ECU sends a network management message with the state indication bit of the function group being in an activation state, and when a passive ECU in the function group identifies the network management message, the active ECU is awakened, and other ECUs are in a dormant state;
and when the active ECU in the function group identifies that the active ECU stops sending the network management message, the passive ECU executes the dormancy operation.
In some embodiments, the specific step of dividing all ECUs in the same functional group into an active ECU and a passive ECU includes:
an ECU for monitoring a local event and triggering a local network and an ECU with a routing function are divided into active ECUs; and an active ECU is used for informing the awakened ECU through a local network management message to be divided into passive ECUs.
In some embodiments, the AUTOSAR-based local network management method further includes the steps of:
if all ECUs of the same function group are located in the same network segment of the network topological graph, after the function group triggers an activation condition, a passive ECU directly identifies a network management message sent by an active ECU;
if all ECUs of the same function group are located in different network segments of the network topological graph, after the function group triggers an activation condition, the passive ECUs located in different network segments with the active ECU identify the network management message through the gateway.
In some embodiments, when the status indication bit of the functional group is in an active state, the status indication bit of the functional group is set to 1, and when the status indication bit of the functional group is in an off state, the status indication bit of the functional group is set to 0.
In some embodiments, the bus employs CAN or CAN FD.
In a second aspect, an automotive system based local network management system is provided, which includes:
the building module is used for building network topological graphs of all Electronic Control Units (ECU);
the grouping module is used for presetting a plurality of function groups, correspondingly configuring a plurality of ECUs for each function group according to the network topological graph and setting priorities for all the function groups;
the network management system comprises a setting module, a judging module and a sending module, wherein the setting module is used for defining a network management message based on an AUTOSAR standard, the network management message comprises status indication bits of all function groups, the status indication bits of the function groups comprise an activated state and a closed state, and the positions of the status indication bits of the function groups in the network management message are distributed according to the priority of the function groups;
the processing module is used for changing the state indication bit of the corresponding function group in the network management message transmitted in the network topological graph into an activated state after the function group triggers the activation condition, and determining a response strategy according to the number, the type and the priority of the activated function group;
and the electronic control unit ECU is used for identifying the network management message, identifying the network management message and executing awakening or sleeping operation according to the state indicating bit of the function group to which the electronic control unit ECU belongs.
The embodiment of the application provides a local network management method based on AUTOSAR, firstly, all ECUs of a whole vehicle are subjected to function grouping, and then the relevant ECUs are awakened in a network management message identification mode, so that local network management can be realized.
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 an AUTOSAR-based local network management method according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a network topology of all Electronic Control Units (ECUs) provided by an embodiment of the application;
FIG. 3 is a flowchart of the steps provided in the embodiments of the present application for waking up all ECUs in the external light bank after activation for a hazard warning;
FIG. 4 is a flowchart illustrating the steps provided by an embodiment of the present application for sleeping all ECUs in the exterior light bank after the hazard alarm is turned off;
fig. 5 is a format of an automotive-based network management message according to an embodiment of the present application;
fig. 6 is a schematic diagram of an automotive architecture based network management packet according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, 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, and it is obvious that the described embodiments are some embodiments of the present application, but 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.
Referring to fig. 1, an embodiment of the present application provides a local network management method based on an AUTomotive Open System Architecture (AUTOSAR), including the steps of:
s1: constructing network topological graphs of all Electronic Control Units (ECU);
s2: presetting a plurality of function groups, correspondingly configuring a plurality of ECUs for each function group according to the network topological graph, and setting priorities for all the function groups;
s3: defining a network management message based on AUTOSAR standard, wherein the network management message comprises status indication bits of all function groups, the status indication bits of the function groups comprise an activated state and a closed state, and the positions of the status indication bits of the function groups in the network management message are distributed according to the priority of the function groups;
s4: when the function group triggers an activation condition, the state indicating bit of the corresponding function group in the network management message transmitted in the network topological graph is in an activation state, a response strategy is determined according to the number, the type and the priority of the activated function groups, and the ECU identifies the network management message and executes awakening or sleeping operation according to the state indicating bit of the function group.
In step S4, the status indicator bits of all function groups are set to be in an off state, after the function group triggers the activation condition, the status indicator bit of the function group is changed to be in an active state, when the ECU identifies that the status indicator bit of the function group to which the ECU belongs is in the active state, the ECU performs a wake-up operation, and when the ECU identifies that the status indicator bit of the function group to which the ECU belongs is in the off state, the ECU performs a sleep operation.
According to the local network management method based on AUTOSAR, all ECUs of the whole vehicle are firstly subjected to function grouping, and then the relevant ECUs are awakened in a network management message identification mode, so that local network management can be achieved, when a certain function needs to be activated, all ECUs do not need to be awakened, and only the relevant ECUs are awakened, so that power consumption of a storage battery can be reduced, energy is saved, the service life of the ECUs can be prolonged, and cost is reduced.
Referring to fig. 2, a network topology diagram of all electronic control units ECUs is provided, and the ECUs are classified according to different domains where the ECUs are located, the ECUs in a vehicle body domain include a light controller, a vehicle body controller BCM and the like, the ECUs in a video entertainment domain include an instrument, an MP5 and the like, the power domain includes an EMS, a TCU and the like, the ECUs in the same domain are located in the same network segment, the ECUs in different domains are located in different network segments, the ECUs in different domains are connected through a gateway, all the ECUs in the same functional group may be located in different domains, that is, in different network segments, and when the network is managed, the network is required to forward a message through the gateway.
Further, in this embodiment of the application, in the step S4, the step of determining the response policy according to the number, type, and priority of the activated functional groups, and the step of the ECU recognizing the network management packet and performing the wake-up or sleep operation according to the status indicator bits of the functional groups includes:
and when the number of the activated function groups is one, all ECUs corresponding to the activated function groups identify the network management message and execute awakening operation according to the state indicating bits of the function groups.
When the number of the activated function groups is two or more, if the operation of the ECU corresponding to the activated function group has no conflict, the ECUs corresponding to all the activated function groups recognize the network management message and execute the awakening operation according to the state indicating bit of the function group to which the ECU belongs; and if the operation of the ECU corresponding to the activated function group conflicts, the ECU corresponding to the activated function group with high priority executes the awakening operation, the ECU corresponding to the activated function group with low priority executes the sleeping operation, and the ECU with the function conflict executes the operation of the function group with high priority.
It should be noted that, in the embodiment of the present application, the ECU executes the sleep operation, and it should be understood that: if the ECU is originally in the dormant state, the ECU can be kept in the dormant state, and if the ECU is originally in the awakening state, the ECU needs to be changed from the awakening state to the dormant state. Furthermore, in the embodiment of the present application, when the number of activated function groups is two or more, and if there is a conflict in the operation of the ECU corresponding to the activated function group, the method further includes the steps of:
and setting the state indicating bit of the activated functional group with high priority to be in an activated state, and setting the state indicating bit of the activated functional group with low priority to be in a closed state.
In the embodiment of the present application, taking a collision function group and a comfort group function group as examples, both the two function groups trigger an ECU with a left-right door electronic child lock function, such as a vehicle body controller ECU, when the two function groups are activated simultaneously, the collision function group requires the vehicle body controller ECU to perform an operation of opening the left-right door electronic child lock, the comfort group function group requires the vehicle body controller ECU to perform an operation of closing the left-right door electronic child lock, so that there is a conflict between the operations of the vehicle body controller ECUs corresponding to the two activated function groups, and since the priority of the collision function group is higher than the priority of the comfort function group, in a network management message sent by the vehicle body controller as an active ECU, the status indication bit of the comfort function group needs to be set to be in a closed state, and the status indication bit of the collision function group can be set to be in an activated state by using a 0 flag, can be marked with 1, so that the vehicle body controller ECU corresponding to the collision function group with high priority executes the awakening operation, namely, the operation of opening the electronic child locks of the left and right doors.
And only after the functions of the ECUs of the collision function group are completely stopped, the function of 'closing the left and right electronic child locks' in the comfort group function group is activated again, and when no collision exists, the ECU corresponding to the comfort function group is awakened to execute corresponding operation.
When two or more function groups are activated simultaneously and the functions are involved in mutual conflict, the function group with higher priority has larger influence on the whole vehicle, an ECU is required to carry out an internal strategy to preferentially process the function group with higher priority, and the function group with low priority does not respond. After the function group with the high priority stops the activity, the function group with the low priority is activated again, and the ECU responds to the function. According to the method, the local network management method based on AUTOSAR is safer and more reliable through setting the priority, and the conflict can be effectively avoided.
Further, in the embodiment of the present application, the specific steps of setting priorities for all function groups include:
according to the speed of the function realization time of each function group and the severity of the function failure influence, the function realization time and the function failure influence of each function group are graded to obtain a score of the function realization time and a score of the function failure influence;
calculating a priority score for each functional group, the priority score being equal to the product of the score of the function achievement time and the score of the function failure impact;
the priority of all functional groups is determined according to their priority scores.
In the embodiment of the present application, the functional group identification bit with high priority places the low bit of the low byte of the packet, and the functional group identification bit with low priority places the high bit of the high byte of the packet.
In the embodiment of the application, the function implementation time includes four types, namely, at any time, fast, very fast and immediately, the corresponding use score is 1-4, the function failure influence also includes four types, and the first type function failure influence is: the awakening is not carried out or delayed, and the function/system is not influenced; the second category of functional failure effects is: not waking up or delaying waking up, have minor effects on function/system; the third category of functional failure effects is: not waking up or delaying waking up, have greater influence on function/system; the fourth category of functional failure effects is: not awakening or delaying to awaken up, can cause bodily injury, system damage, serious loss of property, the corresponding use score 1 ~ 4 of these four kinds of function failure influences is scored, and the scoring table of function realization time and function failure influence is shown in following table 1:
TABLE 1 scoring table of function realization time and function failure influence
Calculating to obtain the priority of the function group according to the function realization time and the grading table of the function failure influence, taking partial function groups as an example, respectively grading the function realization time and the function failure influence of each function group, and then taking the product of the score of the function realization time and the score of the function failure influence as the priority score of the function group to further determine the priority of the function group, as shown in the following table 2:
TABLE 2 function group priority example Table
As can be seen from table 2, the priority of the external light group is the highest, the priority of the high-voltage electric appliance group is the next highest, and the priorities of the internal light group and the remote data service group are the lowest.
The method for setting the priority of the functional group, provided by the embodiment of the application, is characterized in that the corresponding standard of each score is predefined, the corresponding scoring is carried out according to the actual condition of the functional group, the product of the score of the function realization time and the score of the function failure influence is used as the priority score of the functional group, two factors of the function realization time and the function failure influence are comprehensively considered, the realization method is simple, the artificial subjective judgment is reduced, the method is more objective, the determination of the priority of the functional group is more reliable, and the reliability of the network management method is better.
Further, in this embodiment of the present application, the method for local network management based on AUTOSAR further includes the steps of:
dividing all ECUs in the same functional group into an active ECU and a passive ECU;
presetting an activation condition and a closing condition of each function group;
when a certain function group triggers an activation condition, an active ECU in the function group is awakened, the active ECU sends a network management message with the state indication bit of the function group being in an activation state, and when a passive ECU in the function group identifies the network management message, the active ECU is awakened, and other ECUs are in a dormant state;
and when the active ECU in the function group identifies that the active ECU stops sending the network management message, the passive ECU executes the dormancy operation.
In the embodiment of the application, the ECUs of the same function group are divided into the active ECU and the passive ECU, when the function group triggers the activation condition, the active ECU sends the network management message to deactivate the passive ECU, in the process, the passive ECU only identifies whether the state indicator bit of the function group to which the passive ECU belongs in the network management message is in an activated state, namely, whether the network management message belongs to a wake-up source is only identified, no network management message is sent, the network management message can be effectively cooperated to sleep, the load rate on a network segment is not increased, and the network management method is higher in efficiency and better in stability.
Further, in the embodiment of the present application, the specific step of dividing all ECUs within the same functional group into an active ECU and a passive ECU includes:
an ECU for monitoring a local event and triggering a local network and an ECU with a routing function are divided into active ECUs; and an active ECU is used for informing the awakened ECU through a local network management message to be divided into passive ECUs.
Further, in this embodiment of the present application, the method for local network management based on AUTOSAR further includes the steps of:
if all ECUs of the same function group are located in the same network segment of the network topological graph, after the function group triggers an activation condition, a passive ECU directly identifies a network management message sent by an active ECU;
if all ECUs of the same function group are located in different network segments of the network topological graph, after the function group triggers an activation condition, the passive ECUs located in different network segments with the active ECU identify the network management message through the gateway.
Taking the activated function group as an external light group as an example, the activation condition of the external light group includes: the danger alarm switch is ON, the brake pedal is in a treading state, and the closing condition of the external light set comprises the following conditions: the hazard warning switch is OFF and the brake pedal is released.
The ECU that outside light group includes has vehicle body controller BCM, light controller and instrument, can realize opening, closing and the demonstration of outside light, and in the network topological graph, light controller and vehicle body controller BCM are located same network segment, all belong to the automobile body field, and the instrument is located another network segment, belongs to audio-visual amusement area to, vehicle body controller BCM and gateway are initiative ECU, and light controller and instrument are passive ECU.
Referring to fig. 3, after the hazard alarm is activated, the hazard alarm switch is turned ON, the BCM is woken up, that is, the exterior light group is activated, and the steps of waking up all the ECUs in the exterior light group include:
a1: the hazard warning switch is turned on;
a2: the BCM is awakened, and the BCM serves as an active ECU and sends a network management message with the state indicating bit of the external light group in an activated state;
a3: the ECU and the gateway of the network segment where the BCM is located carry out message filtering, the light controller is awakened after identifying the network management message of which the state indication bit of the function group is in an activated state, light output operation is executed, the gateway is also awakened, and the network management message is forwarded to the ECUs of other network segments;
a4: and the instruments positioned in other network segments are awakened after receiving the network management message forwarded by the gateway, and light display operation is executed.
Because all ECUs in the function group are located in different network segments of a network topological graph, the BCM is awakened and then sends network management messages to other passive ECUs, because the light controller and the BCM are located in the same network segment, the BCM can directly identify the network management messages and then is awakened, meanwhile, the gateway receives the network management messages and then forwards the network management messages to an instrument in another network segment, the instrument is awakened after receiving the network management messages forwarded by the gateway, then the light controller executes light output operation, the instrument displays light output conditions, and the ECU irrelevant to the function is still in a dormant state.
Referring to fig. 4, after the hazard alarm is turned OFF, the hazard alarm switch is turned OFF, and the step of sleeping all the ECUs in the exterior light group includes:
b1: the hazard warning switch is turned off;
b2: when the BCM detects that the danger alarm is closed, stopping sending the network management message;
b3: after the light controller and the gateway detect that the BCM stops sending the network management message, both the light controller and the gateway execute the sleep operation;
b4: and the meters in other network segments execute the sleep operation after detecting that the gateway stops forwarding the network management message.
In the local network management method based on AUTOSAR in the embodiment of the application, the plurality of local networks independently realize the dormancy and awakening strategies without mutual influence, so that the energy is saved, and the service life of the ECU is prolonged.
Preferably, in the local network management method based on AUTOSAR in the embodiment of the present application, when the status indication bit of the function group is in an active state, the status indication bit of the function group is set to 1, and when the status indication bit of the function group is in an off state, the status indication bit of the function group is set to 0.
Referring to the AUTOSAR-based network management message format shown in FIG. 5, Byte0 is the data field of the network management message, Byte0 is the source address of the ECU itself, Byte1 is the control field of the network management message, bytes 2-bytene are the data fields of the user-defined part, and the location of the status flag bit of the functional group is determined according to the priority of the functional group.
In the network management message based on the AUTOSAR in the embodiment of the application, the corresponding state indication bit is set in the network management message according to the function grouping condition and the priority of the function group, the low bit of the low byte of the message is placed on the high priority function group identification bit, and the high bit of the high byte of the message is placed on the low priority function group identification bit.
In the embodiment of the present application, the functions are divided according to parameters such as vehicle motion, vehicle failure, and vehicle safety, and all ECUs may be divided into a driving information group, a post-collision group, a connection service group, an external light group, a driving assistance group, a safety group, a vehicle motion group, a power group, a high voltage power group, a comfort group, an internal light group, a remote data service group, a remote transmission group, an audio-visual entertainment group, and a vehicle safety group
Referring to the network management message shown in fig. 6, the 8 bits of Byte2 of the network management message respectively correspond to the function groups bit0 to bit7, namely, the driving information group, the post-collision group, the connection service group, the external light group, the driving assistance group, the safety group, the vehicle operation group and the power group, the 8 bits of Byte3 respectively correspond to the function groups bit0 to bit7, namely, the high voltage power group, the comfort group, the internal light group, the remote data service group, the remote transmission group, the audio-visual entertainment group and the vehicle safety group, and the rest bits are Reserved, so that the classification of the function groups can be increased according to the actual vehicle function requirements.
In the network management message, the bit corresponding to the function group is used as the status indicator bit of the function group, and 0 and 1 are used to identify the off state or the active state of the status indicator bit of the function group.
Furthermore, in the local network management method based on the AUTOSAR in the embodiment of the present application, the bus may be a CAN bus or a CAN FD bus, and when in use, the bus is selected according to actual situations. When the CAN bus is adopted, the network management message has 8 bytes, namely byte 0-byte 7, and when the CAN FD bus is adopted, the network management message has 64 bytes, namely byte 0-byte 63.
The embodiment of the present application further provides a local network management system based on automotive open system architecture, including:
the building module is used for building network topological graphs of all Electronic Control Units (ECU);
the grouping module is used for presetting a plurality of function groups, correspondingly configuring a plurality of ECUs for each function group according to the network topological graph and setting priorities for all the function groups;
the network management system comprises a setting module, a judging module and a sending module, wherein the setting module is used for defining a network management message based on an AUTOSAR standard, the network management message comprises status indication bits of all function groups, the status indication bits of the function groups comprise an activated state and a closed state, and the positions of the status indication bits of the function groups in the network management message are distributed according to the priority of the function groups;
the processing module is used for changing the state indication bit of the corresponding function group in the network management message transmitted in the network topological graph into an activated state after the function group triggers the activation condition, and determining a response strategy according to the number, the type and the priority of the activated function group;
and the electronic control unit ECU is used for identifying the network management message, identifying the network management message and executing awakening or sleeping operation according to the state indicating bit of the function group to which the electronic control unit ECU belongs.
The local network management system based on AUTOSAR provided by the embodiment of the application firstly carries out function grouping on all ECUs of the whole vehicle, and then awakens related ECUs in a network management message identification mode, so that local network management can be realized.
In the description of the present application, it should be noted that the terms "upper", "lower", and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, which are only for convenience in describing the present application and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed in a specific orientation, and operate, and thus, should not be construed as limiting the present application. Unless expressly stated or limited otherwise, the terms "mounted," "connected," and "connected" are intended to be inclusive and mean, for example, that they may be fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art as appropriate.
It is noted that, in the present application, relational terms such as "first" and "second", and the like, are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is merely exemplary of the present application and is presented to enable those skilled in the art to understand and practice the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (7)
1. A local network management method based on AUTOSAR is characterized by comprising the following steps:
constructing network topological graphs of all Electronic Control Units (ECU);
presetting a plurality of function groups, correspondingly configuring a plurality of ECUs for each function group according to the network topological graph, and setting priorities for all the function groups;
defining a network management message based on AUTOSAR standard, wherein the network management message comprises status indication bits of all function groups, the status indication bits of the function groups comprise an activated state and a closed state, and the positions of the status indication bits of the function groups in the network management message are distributed according to the priority of the function groups;
when the function group triggers an activation condition, the state indicating bit of the corresponding function group in the network management message transmitted in the network topological graph is in an activation state, a response strategy is determined according to the number, the type and the priority of the activated function groups, and the ECU identifies the network management message and executes awakening or sleeping operation according to the state indicating bit of the function group to which the ECU belongs;
the specific steps of determining a response strategy according to the number, the type and the priority of the activated functional groups, identifying the network management message by the ECU, and executing awakening or sleeping operation according to the state indicating bit of the functional group comprise:
when the number of the activated function groups is one, all ECUs corresponding to the activated function groups identify the network management message and execute awakening operation according to the state indicating bits of the function groups;
when the number of the activated function groups is two or more, if the operation of the ECU corresponding to the activated function group has no conflict, the ECUs corresponding to all the activated function groups recognize the network management message and execute the awakening operation according to the state indicating bit of the function group to which the ECU belongs; if the operation of the ECU corresponding to the activated functional group conflicts, the ECU corresponding to the activated functional group with high priority executes the awakening operation, the ECU corresponding to the activated functional group with low priority executes the sleeping operation, and the ECU with the function conflict executes the operation of the functional group with high priority;
when the number of the activated function groups is two or more, if the operation of the ECU corresponding to the activated function group has conflict, the method further comprises the following steps:
setting the state indicating bit of the activated functional group with high priority to be in an activated state, and setting the state indicating bit of the activated functional group with low priority to be in a closed state;
the specific steps of setting priorities for all the functional groups include:
according to the speed of the function realization time of each function group and the severity of the function failure influence, the function realization time and the function failure influence of each function group are graded to obtain a score of the function realization time and a score of the function failure influence;
calculating a priority score for each functional group, the priority score being equal to the product of the score of the function achievement time and the score of the function failure impact;
the priority of all functional groups is determined according to their priority scores.
2. The AUTOSAR-based local network management method as claimed in claim 1, further comprising the steps of:
dividing all ECUs in the same functional group into an active ECU and a passive ECU;
presetting an activation condition and a closing condition of each function group;
when a certain function group triggers an activation condition, an active ECU in the function group is awakened, the active ECU sends a network management message with the state indication bit of the function group being in an activation state, and when a passive ECU in the function group identifies the network management message, the active ECU is awakened, and other ECUs are in a dormant state;
and when the active ECU in the function group identifies that the active ECU stops sending the network management message, the passive ECU executes the dormancy operation.
3. The AUTOSAR-based local network management method of claim 2, wherein said specific step of dividing all ECUs within the same functional group into active ECUs and passive ECUs comprises:
an ECU for monitoring a local event and triggering a local network and an ECU with a routing function are divided into active ECUs; and an active ECU is used for informing the awakened ECU through a local network management message to be divided into passive ECUs.
4. The AUTOSAR-based local network management method as claimed in claim 1, further comprising the steps of:
if all ECUs of the same function group are located in the same network segment of the network topological graph, after the function group triggers an activation condition, a passive ECU directly identifies a network management message sent by an active ECU;
if all ECUs of the same function group are located in different network segments of the network topological graph, after the function group triggers an activation condition, the passive ECUs located in different network segments with the active ECU identify the network management message through the gateway.
5. The AUTOSAR-based local network management method of claim 1, wherein: and when the state indicating bit of the function group is in an activated state, the state indicating bit of the function group is set to be 1, and when the state indicating bit of the function group is in a closed state, the state indicating bit of the function group is set to be 0.
6. The AUTOSAR-based local network management method of claim 1, wherein: the bus adopts CAN or CAN FD.
7. An automotive open system based local network management system adopting the automotive open system based local network management method according to claim 1, comprising:
the building module is used for building network topological graphs of all Electronic Control Units (ECU);
the grouping module is used for presetting a plurality of function groups, correspondingly configuring a plurality of ECUs for each function group according to the network topological graph and setting priorities for all the function groups;
the network management system comprises a setting module, a judging module and a sending module, wherein the setting module is used for defining a network management message based on an AUTOSAR standard, the network management message comprises status indication bits of all function groups, the status indication bits of the function groups comprise an activated state and a closed state, and the positions of the status indication bits of the function groups in the network management message are distributed according to the priority of the function groups;
the processing module is used for changing the state indication bit of the corresponding function group in the network management message transmitted in the network topological graph into an activated state after the function group triggers the activation condition, and determining a response strategy according to the number, the type and the priority of the activated function group;
the electronic control unit ECU is used for identifying the network management message, identifying the network management message and executing awakening or sleeping operation according to the state indicating bit of the function group to which the electronic control unit ECU belongs;
the specific steps of setting priorities for all the functional groups include:
according to the speed of the function realization time of each function group and the severity of the function failure influence, the function realization time and the function failure influence of each function group are graded to obtain a score of the function realization time and a score of the function failure influence;
calculating a priority score for each functional group, the priority score being equal to the product of the score of the function achievement time and the score of the function failure impact;
the priority of all functional groups is determined according to their priority scores.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010445696.4A CN111726340B (en) | 2020-05-22 | 2020-05-22 | Local network management method and system based on AUTOSAR |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010445696.4A CN111726340B (en) | 2020-05-22 | 2020-05-22 | Local network management method and system based on AUTOSAR |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111726340A CN111726340A (en) | 2020-09-29 |
CN111726340B true CN111726340B (en) | 2022-02-11 |
Family
ID=72564909
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010445696.4A Active CN111726340B (en) | 2020-05-22 | 2020-05-22 | Local network management method and system based on AUTOSAR |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111726340B (en) |
Families Citing this family (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112260844A (en) * | 2020-10-21 | 2021-01-22 | 王文君 | Network management method and management system of hybrid power system |
CN114363099A (en) * | 2021-02-05 | 2022-04-15 | 华为数字能源技术有限公司 | Network management system, control method, electronic controller and electric automobile |
CN114760610B (en) * | 2021-02-08 | 2023-04-28 | 广州汽车集团股份有限公司 | Multipath network awakening method and device and automobile |
CN113253648B (en) * | 2021-05-19 | 2022-10-11 | 北京车和家信息技术有限公司 | Vehicle and network management method thereof, domain controller, storage medium, and electronic device |
CN113691396A (en) * | 2021-08-09 | 2021-11-23 | 浙江吉利控股集团有限公司 | Whole vehicle network abnormal dormancy awakening monitoring method and device and storage medium |
CN114285915A (en) * | 2021-11-09 | 2022-04-05 | 江铃汽车股份有限公司 | Method, system, storage medium and equipment for determining ECU (electronic control unit) fault reason |
CN114116028A (en) * | 2021-11-15 | 2022-03-01 | 广州小鹏汽车科技有限公司 | Wake-up method and device for running computer ECU, vehicle and storage medium |
CN115571069A (en) * | 2022-09-28 | 2023-01-06 | 阿维塔科技(重庆)有限公司 | Vehicle control system, vehicle control method and vehicle |
CN115842688B (en) * | 2022-10-31 | 2024-03-22 | 重庆长安汽车股份有限公司 | Comprehensive network management method and device |
CN116193472B (en) * | 2022-12-27 | 2024-03-22 | 广州汽车集团股份有限公司 | Vehicle-mounted network management method and device, electronic equipment and storage medium |
CN116319146B (en) * | 2023-02-01 | 2024-07-05 | 南京航空航天大学 | Implementation method and storage medium for function management of vehicle-mounted CAN (controller area network) message |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN202089006U (en) * | 2011-05-31 | 2011-12-28 | 东风汽车有限公司 | Automobile controller LAN pencil structure |
CN102801551A (en) * | 2012-03-14 | 2012-11-28 | 中国汽车技术研究中心 | Open systems and the corresponding interfaces for automotive electronics (OSEK) network management-based controller area network (CAN) management method |
CN104199351A (en) * | 2014-08-21 | 2014-12-10 | 东南(福建)汽车工业有限公司 | Automobile bus dormancy waking-up method |
CN107272665A (en) * | 2017-07-31 | 2017-10-20 | 北京新能源汽车股份有限公司 | Vehicle network management method and system |
CN104834591B (en) * | 2014-05-22 | 2017-12-08 | 北汽福田汽车股份有限公司 | Test the method for testing and system of AUTOSAR component softwares |
CN107465588A (en) * | 2017-07-27 | 2017-12-12 | 广州汽车集团股份有限公司 | Condition control method, device and the NMS of multiple bus network |
CN107878366A (en) * | 2017-11-17 | 2018-04-06 | 重庆长安汽车股份有限公司 | A kind of method and device for being used to control new energy vehicle controller working condition |
CN108366008A (en) * | 2018-02-11 | 2018-08-03 | 安徽江淮汽车集团股份有限公司 | A kind of part wake-up system and method based on traditional OSEK network managements |
CN109144029A (en) * | 2018-08-24 | 2019-01-04 | 安徽江淮汽车集团股份有限公司 | A kind of method and system that the local sleep of CAN bus wakes up |
CN109327372A (en) * | 2018-12-14 | 2019-02-12 | 安徽江淮汽车集团股份有限公司 | A kind of local sleep awakening method of CAN bus Star Network management framework scheme |
CN109756407A (en) * | 2019-01-17 | 2019-05-14 | 重庆菲斯塔新能源汽车科技有限公司 | A kind of CAN bus based localized network management method |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7548805B2 (en) * | 2006-03-27 | 2009-06-16 | Fujitsu Ten Limited | Vehicle control apparatus, vehicle control method and vehicle slip suppressing apparatus |
CN102223255A (en) * | 2011-07-05 | 2011-10-19 | 迈普通信技术股份有限公司 | Method and system for quickly synchronizing information of network management system and network equipment based on simple network management protocol (SNMP) |
WO2015018429A1 (en) * | 2013-08-05 | 2015-02-12 | Siemens Aktiengesellschaft | Generation of a data record for an electrical automation device |
CN110120172A (en) * | 2019-05-28 | 2019-08-13 | 上海车轮互联网服务有限公司 | Simplification operating device and Examination instrument system for road test |
-
2020
- 2020-05-22 CN CN202010445696.4A patent/CN111726340B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN202089006U (en) * | 2011-05-31 | 2011-12-28 | 东风汽车有限公司 | Automobile controller LAN pencil structure |
CN102801551A (en) * | 2012-03-14 | 2012-11-28 | 中国汽车技术研究中心 | Open systems and the corresponding interfaces for automotive electronics (OSEK) network management-based controller area network (CAN) management method |
CN104834591B (en) * | 2014-05-22 | 2017-12-08 | 北汽福田汽车股份有限公司 | Test the method for testing and system of AUTOSAR component softwares |
CN104199351A (en) * | 2014-08-21 | 2014-12-10 | 东南(福建)汽车工业有限公司 | Automobile bus dormancy waking-up method |
CN107465588A (en) * | 2017-07-27 | 2017-12-12 | 广州汽车集团股份有限公司 | Condition control method, device and the NMS of multiple bus network |
CN107272665A (en) * | 2017-07-31 | 2017-10-20 | 北京新能源汽车股份有限公司 | Vehicle network management method and system |
CN107878366A (en) * | 2017-11-17 | 2018-04-06 | 重庆长安汽车股份有限公司 | A kind of method and device for being used to control new energy vehicle controller working condition |
CN108366008A (en) * | 2018-02-11 | 2018-08-03 | 安徽江淮汽车集团股份有限公司 | A kind of part wake-up system and method based on traditional OSEK network managements |
CN109144029A (en) * | 2018-08-24 | 2019-01-04 | 安徽江淮汽车集团股份有限公司 | A kind of method and system that the local sleep of CAN bus wakes up |
CN109327372A (en) * | 2018-12-14 | 2019-02-12 | 安徽江淮汽车集团股份有限公司 | A kind of local sleep awakening method of CAN bus Star Network management framework scheme |
CN109756407A (en) * | 2019-01-17 | 2019-05-14 | 重庆菲斯塔新能源汽车科技有限公司 | A kind of CAN bus based localized network management method |
Also Published As
Publication number | Publication date |
---|---|
CN111726340A (en) | 2020-09-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111726340B (en) | Local network management method and system based on AUTOSAR | |
US10277598B2 (en) | Method for detecting and dealing with unauthorized frames in vehicle network system | |
CN106184070B (en) | A kind of control method for vehicle and system | |
CN106371424B (en) | A kind of vehicle dormancy method and system | |
CN112491671B (en) | Method and system for monitoring whole vehicle feed problem and vehicle CAN network gateway | |
KR101393539B1 (en) | Integrated network system for vehicle | |
CN104163151B (en) | A kind of whole vehicle bus control system | |
JP2002041141A (en) | Abnormality detecting system | |
JP2014088150A (en) | In-vehicle battery management device | |
CN106557082B (en) | Error code detection and recording method and the vehicle electrically controlling unit of vehicle electrically controlling unit | |
CN104615037A (en) | CAN based vehicle-mounted equipment reminding device and method | |
CN107612774B (en) | Multi-channel synchronous sleeping method and system | |
CN110063735A (en) | Fatigue monitoring method based on driving behavior | |
JP2013106200A (en) | Communication repeater for vehicle and sleep control method | |
CN210839611U (en) | Sleep and awakening device of in-vehicle hybrid network comprising vehicle-mounted Ethernet | |
KR101073291B1 (en) | Network system of in-vehicle and control method thereof | |
CN103561054A (en) | Automobile body network management system | |
JP2015199444A (en) | Electronic control device | |
CN104228482A (en) | Driving safety control system based on tire pressure monitoring | |
CN109866710A (en) | A kind of In-vehicle networking abnormality detection system | |
JP2006253921A (en) | Network system for vehicle | |
KR20100020253A (en) | Monitoring apparatus for message transmission in network for a vehicle | |
US20110271132A1 (en) | Method and device for controlling the awaking of facilities belonging to at least one multiplexed network, by counting untimely wake-ups | |
CN208232980U (en) | A kind of automobile quiescent current abnormity prompt device and vehicle | |
CN113923063A (en) | Network management method and device, readable storage medium and electronic equipment |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |