CN113253648B - Vehicle and network management method thereof, domain controller, storage medium, and electronic device - Google Patents

Vehicle and network management method thereof, domain controller, storage medium, and electronic device Download PDF

Info

Publication number
CN113253648B
CN113253648B CN202110547861.1A CN202110547861A CN113253648B CN 113253648 B CN113253648 B CN 113253648B CN 202110547861 A CN202110547861 A CN 202110547861A CN 113253648 B CN113253648 B CN 113253648B
Authority
CN
China
Prior art keywords
network management
controller
target
domain controller
function
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
Application number
CN202110547861.1A
Other languages
Chinese (zh)
Other versions
CN113253648A (en
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.)
Beijing CHJ Automotive Information Technology Co Ltd
Original Assignee
Beijing CHJ Automotive Information Technology 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 Beijing CHJ Automotive Information Technology Co Ltd filed Critical Beijing CHJ Automotive Information Technology Co Ltd
Priority to CN202110547861.1A priority Critical patent/CN113253648B/en
Publication of CN113253648A publication Critical patent/CN113253648A/en
Application granted granted Critical
Publication of CN113253648B publication Critical patent/CN113253648B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/25Pc structure of the system
    • G05B2219/25257Microcontroller

Abstract

The application discloses a vehicle and a network management method thereof, a domain controller, a storage medium and an electronic device, wherein the vehicle network management method comprises the following steps: generating a first network management message and an application message according to a wake-up instruction, wherein the wake-up instruction is used for indicating a vehicle to execute a target function; sending a first network management message to a plurality of second domain controllers, and enabling a target domain controller in the plurality of second domain controllers to be awakened according to the first network management message, wherein the target domain controller is one of the plurality of second domain controllers corresponding to a target function indicated by an awakening instruction; and sending application messages to the plurality of second domain controllers, so that the sub-controllers of the target domain controller awaken the function controllers corresponding to the target functions indicated by the awakening instruction according to the application messages and execute the target functions. Compared with the prior art, the controller has the advantages that when a certain function is awakened, all controllers are not needed to be awakened, and the electric quantity of a vehicle is saved.

Description

Vehicle and network management method thereof, domain controller, storage medium, and electronic device
Technical Field
The present application relates to the field of vehicles, and in particular, to a vehicle, a network management method thereof, a domain controller, a storage medium, and an electronic device.
Background
With the development of automobile technology, the functions of vehicles are more and more, and with the increase of controllers of vehicles, network management of the vehicles is required.
At present, the conventional network management of Autosar belongs to a wake-on-sleep mechanism, that is, when one controller needs to be woken up, all controllers of the whole vehicle are woken up. And along with the controller on the car is more and more, awaken the source more and more, and then the number of times that the vehicle need be awakened is more and more, awakens the electric quantity that consumes because of the controller is many after awakening more and more.
Disclosure of Invention
Objects of the invention
An object of the present application is to provide a vehicle and a network management method thereof, a domain controller, a storage medium, and an electronic device. According to the embodiment of the application, the first domain controller is arranged, the first network management message and the application message are generated through the first domain controller according to the awakening instruction, the target domain controller is awakened through the first network management message, the sub-controllers of the target domain controller are awakened according to the application message, and the target function controller is awakened.
(II) technical scheme
In order to solve the above problem, a first aspect of the present application provides a vehicle network management method applied to a first domain controller, including: generating a first network management message and an application message according to a wake-up instruction, wherein the wake-up instruction is used for indicating a vehicle to execute a target function; sending the first network management message to a plurality of second domain controllers, and enabling a target domain controller in the plurality of second domain controllers to be awakened according to the first network management message, wherein the target domain controller is one of the plurality of second domain controllers corresponding to a target function indicated by the awakening instruction; and sending the application message to a plurality of second domain controllers, so that a sub-controller of the target domain controller wakes up a function controller corresponding to the target function indicated by the wake-up instruction according to the application message and executes the target function.
Further, the first network management packet includes identity information and target function information of a target domain controller; sending the first network management message to a plurality of second domain controllers to wake up a target domain controller in the plurality of second domain controllers according to the first network management message, wherein the steps of: sending the first network management message to a plurality of second domain controllers; and the identity information of the target domain controller in the first network management message is used for determining the target domain controller in the second domain controller.
Further, sending the application packet to a plurality of second domain controllers, so that a sub-controller of the target domain controller wakes up a function controller corresponding to a target function indicated by the wake-up instruction according to the application packet and executes the target function, includes: and sending the application message to a plurality of second domain controllers, so that a sub-controller of the target domain controller generates and sends a second network management message based on the application message, wherein the second network management message is used for awakening all controllers on a bus of a network segment where the function controller corresponding to the target function is located.
Further, the first network management message is sent to a plurality of second domain controllers, and the application message is sent to the plurality of second domain controllers at preset time intervals.
Further, the first network management packet includes: ID of the target domain controller, target function; or the application message comprises: ID of the function module of the target domain controller.
According to a second aspect of the present application, there is provided a vehicle network management method applied to a second domain controller, the method comprising: receiving a first network management message, wherein the first network management message is generated by a first domain controller according to a wake-up instruction, and the wake-up instruction is used for indicating a vehicle to execute a target function; determining that the second domain controller is a target domain controller according to the received first network management message, wherein the target domain controller is a second domain controller corresponding to a target function indicated by the awakening instruction; waking up the target domain controller; receiving an application message; and awakening a sub-controller of the target domain controller according to the application message, so that the sub-controller awakens a function controller corresponding to the target function indicated by the awakening instruction according to the application message.
Further, the first network management packet includes identity information and target function information of a target domain controller; awakening a target domain controller according to the received first network management message, comprising: comparing the received identity information of the target domain controller in the first network management message with the identity information of the target domain controller; and awakening the target domain controller when the identity information of the target domain controller in the first network management message is consistent with the identity information of the target domain controller in the first network management message.
Further, waking up the sub-controller of the target domain controller according to the application packet, so that the sub-controller of the target domain controller wakes up the function controller corresponding to the target function indicated by the wake-up instruction and executes the target function, including: generating a second network management message according to the received application message; determining a function controller corresponding to the target function according to the second network management message; and sending the second network management message to all the function controllers on the bus of the network segment where the function controller corresponding to the target function is located, wherein the function controller corresponding to the target function executes the target function, and the second network management message is used for waking up all the function controllers on the bus of the network segment where the function controller corresponding to the target function is located.
In a third aspect of the present application, there is provided a domain controller including: the message generation module is used for generating a first network management message and an application message according to a wake-up instruction, wherein the wake-up instruction is used for indicating the vehicle to execute a target function; the message sending module is used for respectively sending the first network management message and the application message to a bus; the bus is connected with a plurality of domain controllers, the first network management message is used for awakening a target domain controller corresponding to the function indicated by the awakening instruction, and the application message is used for awakening a sub-controller of the target domain controller so that the sub-controller awakens a function controller corresponding to the target function indicated by the awakening instruction.
In a fourth aspect of the present application, there is provided a domain controller, comprising: the first awakening module is used for awakening according to the received first network management message; and the second awakening module is used for awakening the sub-controller according to the received application message so that the sub-controller awakens the function controller corresponding to the target function indicated by the awakening instruction.
Further, the first wake-up module includes: the comparison unit is used for comparing the received identity information of the target domain controller in the first network management message with the identity information of the target domain controller; and the awakening unit is used for awakening when the identity information of the first network management message is consistent with the identity information of the first network management message by comparison.
In a fifth aspect of the present application, there is provided a storage medium having stored thereon a computer program which, when executed by a processor, implements the vehicle network management method of the first aspect, or which, when executed by a processor, implements the vehicle network management method of the second aspect.
In a sixth aspect of the present application, there is provided an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the vehicle network management method of the first aspect when executing the program, or the program implementing the vehicle network management method of the second aspect when executed by the processor.
In a seventh aspect of the present application, there is provided a vehicle comprising the domain controller of the third aspect and the domain controller of the fourth aspect.
(III) advantageous effects
The technical scheme of the application has the following beneficial technical effects:
1. according to the embodiment of the application, the first domain controller is arranged, the first domain controller generates the first network management message and the application message according to the awakening instruction, the target domain controller is awakened through the first network management message, and the sub-controller of the target domain controller is awakened and enables the target function controller to be awakened according to the application message.
2. According to the embodiment of the application, the second network management message is generated through the sub-controller of the target domain controller and is used for awakening the function controller on the corresponding network segment, hardware is not required to be changed for supporting local network management PN by all the controllers, waste caused by simultaneous sleep and awakening is avoided, and electric quantity is saved to a great extent; in addition, the domain controller is decomposed into the minimum function module, and the sub-controllers of the target domain controller are awakened by adopting the application message, so that the function modules of all the sub-controllers of the target domain controller are not required to be awakened, and the power consumption is saved; the two power-saving strategies are acted together, and the standing time of the vehicle can be prolonged in an extremely cold environment, so that the user experience is improved, and the brand competitiveness of the vehicle is improved.
3. According to the embodiment of the application, the command effect of the novel domain controller is fully exerted, if the collected or received awakening instruction has a functional requirement on the lower-hanging sub-controller or the sub-controller has a requirement on awakening the functional controller of another network segment, the generated second network management message is sent to the corresponding network segment, and after the functionally-related controller completes the corresponding function, the whole network enters a dormant state together. The method can support the realization of all functions of application scenes, and can achieve the effect of power saving on the basis of not changing all controller hardware.
Drawings
Fig. 1 is a schematic configuration diagram of a vehicle controller according to a first embodiment of the present application;
FIG. 2 is a schematic flow chart of a vehicle network management method according to a second embodiment of the present application;
FIG. 3 is a schematic flow chart of a vehicle network management method according to a third embodiment of the present application;
FIG. 4 is a schematic diagram of a domain controller architecture according to a fourth embodiment of the present application;
FIG. 5 is a schematic diagram of a domain controller architecture according to a fifth embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to a sixth embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is further described in detail below with reference to the accompanying drawings in combination with the detailed description. It should be understood that the description is intended to be exemplary only, and is not intended to limit the scope of the present application. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts 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 obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
In the description of the present application, it is noted that the terms "first", "second", and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In addition, the technical features mentioned in the different embodiments of the present application described below may be combined with each other as long as they do not conflict with each other.
Before explaining aspects of the present application in detail, terms related to the present application will be introduced.
An Electronic Control Unit (ECU), also called a "traveling computer" or a "vehicle-mounted computer", is a vehicle controller.
The local Network management is called Partial Network management, a plurality of virtual local networks (PN) are divided in the whole Network according to different electronic and electrical functions, an independent dormancy awakening strategy can be realized among the local networks without mutual influence, each local Network is a combination of a plurality of ECUs, is called a PN group and is represented by different positions of a message.
A domain controller: the domain controller concept was originally proposed to solve the information security, and bottleneck problem of the electronic control unit. In some examples, the electronic component function of the automobile can divide the whole automobile into several domains, such as a power assembly, an intelligent cabin, an intelligent driving and the like, and each domain is controlled relatively and intensively by using a multi-core CPU/GPU chip with stronger processing capability, so as to replace the current distributed electronic and electrical architecture.
Fig. 1 is a schematic configuration diagram of a vehicle controller according to a first embodiment of the present application.
As shown in fig. 1, the vehicle controller includes: a first domain controller ECU1, a second domain controller ECU2, a third domain controller ECU3, and a fourth domain controller ECU4.
The first domain controller ECU1, the second domain controller ECU2, the third domain controller ECU3 and the fourth domain controller ECU4 are connected through a bus CAN 0.
The first domain controller ECU1 may be arranged as a gateway domain controller responsible for receiving information for the entire controller network. The first domain controller ECU1 may include a receiver and an interface module MD2_0, for example, and the first domain controller ECU1 may further include a first sub-controller MD1_1, a second sub-controller MD1_2, a third sub-controller MD1_3, a fourth sub-controller MD1_5, and a fifth sub-controller MD1_5. The first domain controller ECU1 is also connected with functional controllers ECU81-ECU83 in the same network segment through an eighth bus CAN8, and the first domain controller ECU1 is also connected with functional controllers ECU91-ECU93 in the same network segment through a ninth bus CAN 9. Wherein the receiver is for example a T-box. The interface module can analyze the data of the application message and awaken a corresponding functional module in the domain controller, and the sub-controller can be other controllers in the domain controller or one of the other controllers.
It is understood that the sub-controllers Md1_1-Md1_5 can comprise a plurality of controllers, for example.
The second domain controller ECU2 may include, for example, sub-controllers Md2_1 to Md2_5 and an interface module Md1_0. The second domain controller ECU2 is also connected with functional controllers ECU11-ECU13 in the same network segment through a first bus CAN1, and the second domain controller ECU2 is also connected with functional controllers ECU21-ECU22 in the same network segment through a second bus CAN 2. The third domain controller ECU3 is also connected with the function controllers ECU31-ECU34 in the same network segment through a third bus CAN 3.
The third domain controller ECU3 and the fourth domain controller ECU4 are similar in structure to the second domain controller described above, and therefore, detailed description thereof is omitted.
Fig. 2 is a schematic flow chart of a vehicle network management method provided in a second embodiment of the present application, and the vehicle network management method shown in fig. 2 will be described below with reference to the structure of the vehicle controller of the embodiment shown in fig. 1, and is applied to a first domain controller connected to a plurality of domain controllers through a bus, where the first domain controller may be a gateway domain controller, and the method includes steps S101 to S103.
Step S101, generating a first network management message and an application message according to a wake-up instruction, wherein the wake-up instruction is used for indicating a vehicle to execute a target function.
In some embodiments, before step S101, the method further includes: a wake-up instruction is received.
In some embodiments, the wake-up command is sent by a mobile terminal or a server communicatively connected to the vehicle, for example. For example, the wake-up command is a command instructing the vehicle to perform some function, for example, the wake-up command is a command to open an air conditioner, lower windows, open doors, and the like.
In some embodiments, the generating of the first network management packet according to the wake-up instruction means that the gateway controller determines a target domain controller to be woken up according to a function of being waken up indicated by the wake-up instruction, and sets a control bit corresponding to the target domain controller in the network management packet stored in the gateway controller to 1, thereby generating the first network management packet.
In some embodiments, generating the application packet according to the wake-up instruction means determining a sub-domain controller of the target domain controller to be woken up according to a function that the gateway controller is woken up according to the wake-up instruction, and setting a control bit corresponding to the sub-domain controller of the target domain controller in the network management packet stored in the network management packet to 1, thereby generating the application packet.
Step S102, sending the first network management message to a plurality of second domain controllers, and enabling a target domain controller in the plurality of second domain controllers to be awakened according to the first network management message, wherein the target domain controller is one of the plurality of second domain controllers corresponding to a target function indicated by the awakening instruction.
Step S103, sending the application message to a plurality of second domain controllers, so that a sub-controller of the target domain controller wakes up a function controller corresponding to a target function indicated by the wake-up instruction according to the application message and executes the target function.
In some embodiments, the first network management packet is used to wake up a target domain controller corresponding to a function indicated by the wake-up instruction, and includes: and the first network management message is used for awakening the target domain controller consistent with the mask of the first network management message. The identity information of the target domain controller may be set as a mask.
In some embodiments, the application message is used to wake up a sub-controller of the target domain controller, so that the sub-controller wakes up a function controller corresponding to a function indicated by the wake-up instruction, including: the application message is used for awakening a sub-controller of the target domain controller, so that the sub-controller generates and sends a second network management message based on the application message, and the second network management message is used for awakening all function controllers on a bus of a network segment where the function controller corresponding to the target function is located.
In some embodiments, the sending the first network management packet and the application packet to a bus respectively includes: and sequentially sending the first network management message and the application message to a bus, and sending the first network management message and the application message at preset time intervals.
It can be understood that, after the target domain controller wakes up, the first domain controller may send the application packet to the target domain controller.
In some embodiments, the first network management packet comprises: ID of target domain controller, target function.
In some embodiments, the application packet includes: ID of the function module of the target domain controller.
In some specific embodiments, the formats of the first network management packet and the second network management packet are as follows:
table 1 formats of first and second network management messages
Figure BDA0003074286760000081
Figure BDA0003074286760000091
The Byte0 is an address for identifying the identity of the ECU in network management; byte1 is a general control Byte specified by Vector, where Bit6 is a control Bit of PN, and set 1 is a wake-up requirement, bit6 is a Partial Network Information Bit (PNI) and refers to a local Network Information Bit, and Bit 0 is an NM PDU context no Partial Network request Information, and refers to an NM PDU not containing local Network request Information. Bit 1 refers to NM PDU context Partial Network request information, NM PDU contains Partial Network request information. Bytes 2-7 are bytes that can be defined independently by each whole car factory.
In some specific embodiments, the format of the application message is as follows:
table 2 application message format
Figure BDA0003074286760000092
Figure BDA0003074286760000101
Where Res stands for Resverd, which is reserved. The unused represents a position not used, and when a certain sub-controller is added to the above-described domain controller, the certain unused can be used as a control position corresponding to the certain sub-controller.
A vehicle network management method will be discussed in detail below in conjunction with the structure of the vehicle controller of the embodiment shown in fig. 1.
First, the first domain controller ECU1 receives a wake-up command, which is taken as an example of turning on the air conditioner in this embodiment. The ECU1 determines that the function of turning on the air conditioner is completed by the cooperation of the function controller ECU12 and the function controller ECU22 connected to the second domain controller ECU2 according to the instruction of turning on the air conditioner, and generates a first network management message. And then generating an application message according to the instruction of starting the air conditioner.
Then, the first domain controller ECU1 sends a first network management message to the bus CAN0, then the ECU2-ECU4 respectively acquire the first network management message from the bus, the first network management message is compared with the mask code of the first network management message, and if the comparison is consistent (phase and non-zero), the corresponding domain controller is awakened. That is, in the present embodiment, the second domain controller ECU2 is awakened. Then, the second domain controller ECU2 receives the application message through the CAN 0. The application message indicates that the sub-controller MD2_4 of the second domain controller is awake. And the sub-controllers MD2_4 of the second domain controller generate a second network management message according to the awakening instruction, the second network management message is used for awakening all the function controllers on the CAN1 bus and the CAN2 bus, then after the function controllers on the two buses are awakened, the function controller corresponding to the target function indicated by the second network management message executes the target function, and other function controllers enter a standby state. And when the function controllers of the network segment all complete the corresponding functions, the network segment enters a dormant state.
Fig. 3 is a flowchart illustrating a vehicle network management method according to a third embodiment of the present application.
As shown in fig. 3, the vehicle network management method is applied to other domain controllers on the same bus as the first domain controller, and includes: step S201-step S205.
Step S201, a first network management message is received, the first network management message is generated by a first domain controller according to an awakening instruction, and the awakening instruction is used for indicating a vehicle to execute a target function.
Step S202, determining that the second domain controller is a target domain controller according to the received first network management message, wherein the target domain controller is a second domain controller corresponding to a target function indicated by the awakening instruction.
Step S203, awakening the target domain controller.
Step S204, receiving the application message.
And step S205, awakening a sub-controller of the target domain controller according to the application message, so that the sub-controller of the target domain controller awakens a function controller corresponding to the target function indicated by the awakening instruction according to the application message and executes the target function.
In some embodiments, waking up according to the received first network management packet includes: comparing the received first network management message with a mask of the first network management message; and awakening the first network management message when the first network management message is consistent with the mask code comparison of the first network management message.
In some embodiments, in step S205, waking up a sub-controller of the target domain controller according to the received application packet, so that the sub-controller wakes up a function controller corresponding to the target function indicated by the wake-up instruction, including: and generating and sending a second network management message according to the received application message, wherein the second network management message is used for awakening all the function controllers on the buses of the function controllers corresponding to the target functions. The function controller corresponding to the target function may be a target function controller.
In some embodiments, the first network management message comprises: ID of the target domain controller, target function; or the application message comprises: ID of the function module of the target domain controller.
Another vehicle network management method will be discussed in detail below in conjunction with the structure of the vehicle controller of the embodiment shown in fig. 1.
First, the first domain controller ECU1 receives a wake-up command, which is taken as an example of turning on the air conditioner in the present embodiment. The ECU1 determines that the function of turning on the air conditioner is completed by the cooperation of the function controller ECU12 and the function ECU22 connected to the second domain controller ECU2 according to the instruction of turning on the air conditioner, and generates a first network management message. And then generating an application message according to the instruction of starting the air conditioner. The first domain controller sends a first network management message to the bus CAN 0.
Then, the ECU2 obtains the first network management message through the CAN0, compares the first network management message with its own mask (mask code), and wakes up the ECU2 if the comparison is consistent (phase difference is not zero). Then, the second domain controller ECU2 obtains the application message through the CAN 0. The ECU2 determines that MD2_4 is woken up according to the application message. And the MD2_4 generates a second network management message according to the awakening instruction, the second network management message is used for awakening all the function controllers on the CAN1 bus and the CAN2 bus, then after the function controllers on the two buses are awakened, the function controller corresponding to the function indicated by the second network management message executes the target function, and other function controllers enter a standby state. And when the function controllers on the CAN1 bus and the CAN2 bus complete corresponding functions, the network segment enters a dormant state. If the function on CAN2 is completed and CAN1 is still required by other functions, the network segment of CAN2 enters a dormant state and the network segment of CAN1 is kept awake.
According to the vehicle network management method, the first network management message and the application message are generated through the first domain controller according to the awakening instruction, the target domain controller is awakened through the first network management message, and the sub-controller of the target domain controller is awakened according to the application message and enables the target function controller to be awakened.
Fig. 4 is a schematic diagram of a domain controller according to a fourth embodiment of the present application.
As shown in fig. 4, the domain controller includes: the device comprises a message generating module and a message sending module.
The message generation module is used for generating a first network management message and an application message according to the awakening instruction.
The message sending module is used for respectively sending the first network management message and the application message to a bus; the bus is connected with a plurality of domain controllers, the first network management message is used for awakening a target domain controller corresponding to the function indicated by the awakening instruction, and the application message is used for awakening a sub-controller of the target domain controller, so that the sub-controller awakens the function controller corresponding to the target function indicated by the awakening instruction.
In some embodiments, the first network management packet is used to wake up a target domain controller consistent with its own mask.
In some embodiments, the application packet is used to wake up a sub-controller of the target domain controller, so that the sub-controller generates and sends a second network management packet based on the application packet, where the second network management packet is used to wake up all function controllers on a network segment of a function controller corresponding to the function.
In some embodiments, the sending a message module sends the first network management message and the application message to a bus, respectively, and includes: and sequentially sending the first network management message and the application message to a bus, and sending the first network management message and the application message at preset time intervals.
In some embodiments, the first network management packet comprises: ID of target domain controller, target function.
In some embodiments, the application packet includes: ID of the function module of the target domain controller.
In some embodiments, the domain controller further includes: the information receiving module is used for receiving a wake-up instruction, and the wake-up instruction is sent by a mobile terminal or a server which is in communication connection with a vehicle. The wake-up command is, for example, a command instructing the vehicle to perform some function, for example, the wake-up command is a command to open an air conditioner, lower a window, open a door, and the like.
The domain controller provided by the present embodiment will be specifically discussed in detail in conjunction with the structure of the vehicle controller of the embodiment shown in fig. 1.
First, the first domain controller ECU1 receives a wake-up command, which is sent by a mobile terminal in communication connection with the vehicle in this embodiment. In this embodiment, the wake-up command is taken as an example for window descending. And the functional controllers corresponding to the command for controlling the vehicle window to descend are the ECU41 and the ECU43.
The ECU1 determines that the function of lowering the vehicle window is completed by the cooperation of the function controller ECU41 and the function controller ECU43 which are connected with the third domain controller ECU3 according to the command of lowering the vehicle window, and sets the control bit corresponding to the third domain controller in the network management message stored in the ECU1 to be 1 to generate the first network management message. And then, setting a control bit corresponding to a second sub-controller Md3_2 of the third domain controller ECU3 indicated by the command of lowering the window to be 1, and generating an application message.
Then, the first domain controller ECU1 sends a first network management message to the bus CAN0, then the ECU2-ECU4 respectively acquire the first network management message from the bus, the first network management message is compared with the mask code of the first network management message, and if the comparison is consistent (phase and non-zero), the corresponding domain controller is awakened. That is, in the present embodiment, the third domain controller ECU3 is awakened. Then, the third domain controller ECU3 obtains the application message through the CAN 0. And the application message indicates that the MD3_2 of the third domain controller is awakened. The MD3_2 of the third domain controller ECU3 sets the control bit of the function controller corresponding to its own network management message to 1 according to the function indicated by the wake-up instruction, so as to obtain a second network management message, which is used to wake up all function controllers on the CAN4 bus, and then the function controller ECU41 and the function controller ECU43 on this bus are woken up and execute the target function, and after other function controllers on this bus are woken up, they enter a standby state. When the ECU41 and the ECU43 cooperate to complete the window descending command, the CAN4 enters the sleep state.
Fig. 5 is a schematic diagram of a domain controller according to a fifth embodiment of the present application.
As shown in fig. 5, the domain controller includes: the device comprises a first awakening module and a second awakening module.
The first awakening module is used for being awakened according to the received first network management message.
And the second awakening module is used for awakening the sub-controllers according to the received application messages so as to awaken the function controllers corresponding to the target functions indicated by the awakening instructions.
In some embodiments, a first wake-up module, comprising: a comparison unit and a wake-up unit.
The comparison unit is used for comparing the received first network management message with the mask of the first network management message.
And the awakening unit is used for awakening when the first network management message is consistent with the mask code comparison of the first network management message.
In some embodiments, the second wake-up module is configured to generate and send a second network management packet according to the received application packet, where the second network management packet is used to wake up all function controllers on a bus of a function controller corresponding to the function.
In some embodiments, the first network management packet comprises: ID of target domain controller, target function.
In some embodiments, the application packet includes: ID of the function module of the target domain controller.
Specifically, the domain controller provided in the present embodiment will be discussed in detail with reference to the structure of the vehicle controller of the embodiment shown in fig. 1.
First, the other domain controllers (ECU 2-ECU 4) connected to the same bus CAN0 as the first domain controller ECU1 acquire the first network management message from the bus CAN 0.
The first network management message is sent by the first domain controller ECU1 to the bus CAN 0. The first network management message is generated by the first domain controller ECU1 according to the received wake-up command. In this embodiment, the wake-up command is sent by a mobile terminal in communication connection with the vehicle. In this embodiment, the wake-up command is taken as an example of the window descending. And the functional controllers corresponding to the command for controlling the vehicle window to descend are the ECU41 and the ECU43. The ECU1 determines that the function of lowering the vehicle window is completed by the cooperation of the function controller ECU41 and the function controller ECU43 which are connected with the third domain controller ECU3 according to the command of lowering the vehicle window, and sets the control bit corresponding to the third domain controller in the network management message stored in the ECU1 to be 1 to generate the first network management message. And then, setting the control bit corresponding to the second sub-controller Md3_2 of the third domain controller ECU3 indicated by the command of lowering the window to be 1, and generating an application message.
And the ECU2 to the ECU4 respectively compare the acquired first network management message with the mask code of the first network management message, and if the comparison is consistent (the comparison is not zero), the domain controller is awakened. That is, in the present embodiment, the third domain controller ECU3 is awakened.
And then, the third domain controller obtains the application message through the CAN 0. The application message indicates that MD3_2 of the third domain controller is awake. The MD3_2 of the third domain controller ECU3 sets the control bit of the function controller corresponding to its own network management message to 1 according to the function indicated by the wake-up instruction, so as to obtain a second network management message, which is used to wake up all function controllers on the CAN4 bus, and then the function controller ECU41 and the function controller ECU43 on this bus are woken up to execute the target function, and after other function controllers on this bus are woken up, they enter a standby state. When the ECU41 and the ECU43 cooperate to complete the window descending command, the CAN4 enters the sleep state.
According to the embodiment of the application, the first domain controller is arranged, the first network management message and the application message are generated through the first domain controller according to the awakening instruction, the target domain controller is awakened through the first network management message, the sub-controllers of the target domain controller are awakened according to the application message, and the target function controller is awakened.
An embodiment of the present application also provides a storage medium having stored thereon a computer program that, when executed by a processor, implements the vehicle network management method of the first embodiment, or that, when executed by a processor, implements the vehicle network management method of the second embodiment.
Fig. 6 is a schematic structural diagram of an electronic device according to a sixth embodiment of the present application.
An electronic device as shown in fig. 6 includes a memory, a processor, and a computer program stored on the memory and operable on the processor, and when the processor executes the program, the vehicle network management method of the first embodiment is implemented, or when the program is executed by the processor, the vehicle network management method of the second embodiment is implemented.
There is also provided, in accordance with an embodiment of the present application, a vehicle including a first domain controller and a second domain controller.
It is to be understood that the above-described embodiments of the present application are merely illustrative of or illustrative of the principles of the present application and are not to be construed as limiting the present application. Therefore, any modifications, equivalents, improvements and the like which are made without departing from the spirit and scope of the present application shall be included in the protection scope of the present application. Further, it is intended that the appended claims cover all such variations and modifications as fall within the scope and boundary of the appended claims, or the equivalents of such scope and boundary.
The present application has been described above with reference to embodiments thereof. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present application. The scope of the application is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be devised by those skilled in the art without departing from the scope of the present application, and these alternatives and modifications are intended to be within the scope of the present application.
Although the embodiments of the present application have been described in detail, it should be understood that various changes, substitutions, and alterations can be made hereto without departing from the spirit and scope of the application.
It should be understood that the above examples are only for clarity of illustration and are not intended to limit the embodiments. Other variations and modifications will be apparent to persons skilled in the art in light of the above description. This need not be, nor should it be exhaustive of all embodiments. And obvious variations or modifications of this invention are intended to be covered by the scope of the invention as expressed herein.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

Claims (13)

1. A vehicle network management method is applied to a first domain controller and comprises the following steps:
generating a first network management message and an application message according to a wake-up instruction, wherein the wake-up instruction is used for indicating a vehicle to execute a target function;
sending the first network management message to a plurality of second domain controllers, and enabling a target domain controller in the plurality of second domain controllers to be awakened according to the first network management message, wherein the target domain controller is one of the plurality of second domain controllers corresponding to a target function indicated by the awakening instruction;
sending the application message to a plurality of second domain controllers, so that a sub-controller of the target domain controller wakes up a function controller corresponding to a target function indicated by the wake-up instruction according to the application message and executes the target function; wherein, the first and the second end of the pipe are connected with each other,
and sending the application message to a plurality of second domain controllers, so that a sub-controller of the target domain controller generates and sends a second network management message based on the application message, wherein the second network management message is used for awakening all controllers on a bus of a network segment where the function controller corresponding to the target function is located.
2. The vehicle network management method according to claim 1, wherein the first network management packet includes identity information and target function information of a target domain controller;
sending the first network management message to a plurality of second domain controllers, so that a target domain controller in the plurality of second domain controllers is awakened according to the first network management message, and the method comprises the following steps:
sending the first network management message to a plurality of second domain controllers;
and the identity information of the target domain controller in the first network management message is used for determining the target domain controller in the second domain controller.
3. The vehicle network management method according to claim 1, wherein the sending of the first network management packet to a plurality of the second domain controllers and the sending of the application packet to a plurality of the second domain controllers are separated by a preset time.
4. The vehicle network management method according to claim 1, wherein the application message includes: ID of sub-controller of target domain controller.
5. A vehicle network management method applied to a second domain controller, the method comprising:
receiving a first network management message, wherein the first network management message is generated by a first domain controller according to a wake-up instruction, and the wake-up instruction is used for indicating a vehicle to execute a target function;
determining that the second domain controller is a target domain controller according to the received first network management message, wherein the target domain controller is a second domain controller corresponding to a target function indicated by the awakening instruction;
waking up the target domain controller;
receiving an application message;
awakening a sub-controller of the target domain controller according to the application message, so that the sub-controller of the target domain controller awakens a function controller corresponding to a target function indicated by the awakening instruction according to the application message and executes the target function; wherein the content of the first and second substances,
generating a second network management message according to the received application message;
determining a function controller corresponding to the target function according to the second network management message;
and sending the second network management message to all the function controllers in the network segment where the function controller corresponding to the target function is located, wherein the function controller corresponding to the target function executes the target function, and the second network management message is used for waking up all the function controllers in the network segment where the function controller corresponding to the target function is located.
6. The method of claim 5, wherein the first network management packet comprises identity information and target function information of a target domain controller;
awakening a target domain controller according to the received first network management message, comprising:
comparing the received identity information of the target domain controller in the first network management message with the identity information of the target domain controller;
and awakening the target domain controller when the identity information of the target domain controller in the first network management message is consistent with the identity information of the target domain controller in the first network management message.
7. The vehicle network management method according to claim 5 or 6, wherein the application message includes: ID of the function module of the target domain controller.
8. A domain controller, comprising:
the message generation module is used for generating a first network management message and an application message according to a wake-up instruction, wherein the wake-up instruction is used for indicating the vehicle to execute a target function;
the message sending module is used for respectively sending the first network management message and the application message to a bus; the bus is connected with a plurality of domain controllers, the first network management message is used for waking up a target domain controller corresponding to the function indicated by the wake-up instruction, the application message is used for waking up a sub-controller of the target domain controller, so that the sub-controller wakes up the function controller corresponding to the target function indicated by the wake-up instruction, so that the sub-controller of the target domain controller generates and sends a second network management message based on the application message, and the second network management message is used for waking up all controllers on the bus of the network segment where the function controller corresponding to the target function is located.
9. A domain controller, comprising:
the first awakening module is used for awakening according to the received first network management message;
the second awakening module is used for awakening a sub-controller according to the received application message, so that the sub-controller awakens a function controller corresponding to the target function indicated by the awakening instruction according to the application message; and the second network management message is used for waking up all function controllers on the buses of the function controllers corresponding to the functions.
10. The domain controller of claim 9, wherein the first network management packet includes identity information and target function information of a target domain controller;
the first wake-up module comprises:
the comparison unit is used for comparing the received identity information of the target domain controller in the first network management message with the identity information of the target domain controller;
and the awakening unit is used for awakening when the identity information of the first network management message is consistent with the identity information of the first network management message by comparison.
11. A storage medium, characterized in that the storage medium has stored thereon a computer program which, when executed by a processor, implements the vehicle network management method according to any one of claims 1 to 4, or which, when executed by a processor, implements the vehicle network management method according to any one of claims 5 to 7.
12. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the vehicle network management method according to any one of claims 1 to 4 when executing the program or the program implementing the vehicle network management method according to any one of claims 5 to 7 when executed by the processor.
13. A vehicle comprising a domain controller according to claim 8 and a domain controller according to claim 9 or 10.
CN202110547861.1A 2021-05-19 2021-05-19 Vehicle and network management method thereof, domain controller, storage medium, and electronic device Active CN113253648B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110547861.1A CN113253648B (en) 2021-05-19 2021-05-19 Vehicle and network management method thereof, domain controller, storage medium, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110547861.1A CN113253648B (en) 2021-05-19 2021-05-19 Vehicle and network management method thereof, domain controller, storage medium, and electronic device

Publications (2)

Publication Number Publication Date
CN113253648A CN113253648A (en) 2021-08-13
CN113253648B true CN113253648B (en) 2022-10-11

Family

ID=77183376

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110547861.1A Active CN113253648B (en) 2021-05-19 2021-05-19 Vehicle and network management method thereof, domain controller, storage medium, and electronic device

Country Status (1)

Country Link
CN (1) CN113253648B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114056134A (en) * 2021-09-30 2022-02-18 北京罗克维尔斯科技有限公司 Vehicle wake-up method, device and storage medium
CN114670762B (en) * 2021-11-19 2023-06-20 北京新能源汽车股份有限公司 Vehicle-mounted equipment awakening control method and device and electric automobile
CN114785630B (en) * 2022-03-09 2023-06-20 广州汽车集团股份有限公司 Wake-up control method and device of CAN network segment, electronic equipment and storage medium
CN115065574B (en) * 2022-05-25 2024-01-23 阿波罗智能技术(北京)有限公司 Vehicle controller awakening method and device, electronic equipment and automatic driving vehicle

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107272665A (en) * 2017-07-31 2017-10-20 北京新能源汽车股份有限公司 A kind of vehicle network management method and system
CN109327372A (en) * 2018-12-14 2019-02-12 安徽江淮汽车集团股份有限公司 A kind of local sleep awakening method of CAN bus Star Network management framework scheme
CN110830267A (en) * 2019-11-12 2020-02-21 上海元城汽车技术有限公司 State control method and device of network node and gateway
CN111404819A (en) * 2020-03-30 2020-07-10 北京经纬恒润科技有限公司 Network control method and system based on routing function
CN111726340A (en) * 2020-05-22 2020-09-29 东风汽车集团有限公司 Local network management method and system based on AUTOSAR
CN112019414A (en) * 2020-08-28 2020-12-01 北京汽车研究总院有限公司 Interception system of vehicle awakening source, interception method thereof and vehicle
CN112540798A (en) * 2019-09-23 2021-03-23 北京车和家信息技术有限公司 Awakening method, device and system for vehicle operating system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8332869B2 (en) * 2007-11-21 2012-12-11 Dell Products L.P. Systems and methods for providing wake on LAN (WoL) support

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107272665A (en) * 2017-07-31 2017-10-20 北京新能源汽车股份有限公司 A kind of vehicle network management method and system
CN109327372A (en) * 2018-12-14 2019-02-12 安徽江淮汽车集团股份有限公司 A kind of local sleep awakening method of CAN bus Star Network management framework scheme
CN112540798A (en) * 2019-09-23 2021-03-23 北京车和家信息技术有限公司 Awakening method, device and system for vehicle operating system
CN110830267A (en) * 2019-11-12 2020-02-21 上海元城汽车技术有限公司 State control method and device of network node and gateway
CN111404819A (en) * 2020-03-30 2020-07-10 北京经纬恒润科技有限公司 Network control method and system based on routing function
CN111726340A (en) * 2020-05-22 2020-09-29 东风汽车集团有限公司 Local network management method and system based on AUTOSAR
CN112019414A (en) * 2020-08-28 2020-12-01 北京汽车研究总院有限公司 Interception system of vehicle awakening source, interception method thereof and vehicle

Also Published As

Publication number Publication date
CN113253648A (en) 2021-08-13

Similar Documents

Publication Publication Date Title
CN113253648B (en) Vehicle and network management method thereof, domain controller, storage medium, and electronic device
CN107360072B (en) CAN network capable of synchronously sleeping and control method thereof
CN109327372B (en) Local dormancy awakening method of CAN bus star network management architecture scheme
CN108933719B (en) Vehicle-mounted CAN network management method, vehicle-mounted CAN network and vehicle
CN109144029A (en) A kind of method and system that the local sleep of CAN bus wakes up
CN110830267A (en) State control method and device of network node and gateway
CN107659494B (en) Data processing method and intelligent vehicle-mounted gateway
CN111404819B (en) Network control method and system based on routing function
CN111624902A (en) Control method and device for dormancy and awakening
CN113259421A (en) Complete vehicle network partial dormancy management system and method and central gateway
CN114828177B (en) Vehicle-mounted multi-gateway collaborative dormancy and awakening method, system and storage medium
CN111490918B (en) Vehicle-mounted Ethernet network awakening system, method and device and computer equipment
WO2024002316A1 (en) Vehicle controller control method and apparatus, central gateway controller, and medium
CN114670762B (en) Vehicle-mounted equipment awakening control method and device and electric automobile
CN107888472B (en) Vehicle network management method, control gateway, controller and automobile
CN113183896A (en) Method, device and system for reducing vehicle power consumption and storable medium
CN113923695A (en) Awakening fault detection method and device and message sending method and device
CN112068493A (en) Whole vehicle sleep awakening control method and control system
KR102371990B1 (en) Controller for vehicle and method for controlling power of controller for vehicle
CN114697154B (en) Dormancy and wakeup control method
CN117719441A (en) Vehicle power saving control method and device
CN117734605A (en) Vehicle control system, vehicle control method, vehicle, and storage medium
CN114785630B (en) Wake-up control method and device of CAN network segment, electronic equipment and storage medium
CN109039662B (en) Method for controlling energy consumption of whole electric automobile
CN117793671A (en) Vehicle-mounted network dormancy awakening method and device, electric structure and storage medium

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