CN116112298B - Vehicle network management method, device, equipment and storage medium - Google Patents
Vehicle network management method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN116112298B CN116112298B CN202310048125.0A CN202310048125A CN116112298B CN 116112298 B CN116112298 B CN 116112298B CN 202310048125 A CN202310048125 A CN 202310048125A CN 116112298 B CN116112298 B CN 116112298B
- Authority
- CN
- China
- Prior art keywords
- network
- network segment
- segment
- sleep
- network management
- 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
- 238000007726 management method Methods 0.000 title claims abstract description 216
- 230000007958 sleep Effects 0.000 claims abstract description 183
- 238000000034 method Methods 0.000 claims abstract description 17
- 238000012544 monitoring process Methods 0.000 claims abstract description 9
- 230000002618 waking effect Effects 0.000 claims abstract description 8
- 230000004622 sleep time Effects 0.000 claims description 13
- 238000004590 computer program Methods 0.000 claims description 12
- 238000004891 communication Methods 0.000 claims description 9
- 230000004044 response Effects 0.000 claims description 8
- 238000003708 edge detection Methods 0.000 claims description 5
- 238000005265 energy consumption Methods 0.000 abstract description 2
- 230000001360 synchronised effect Effects 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 15
- 230000006870 function Effects 0.000 description 7
- 230000008569 process Effects 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000004134 energy conservation Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/12—Arrangements for remote connection or disconnection of substations or of equipment thereof
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L12/40006—Architecture of a communication node
- H04L12/40039—Details regarding the setting of the power status of a node according to activity on the bus
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L2012/40208—Bus networks characterized by the use of a particular bus standard
- H04L2012/40215—Controller Area Network CAN
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L2012/40267—Bus for use in transportation systems
- H04L2012/40273—Bus for use in transportation systems the transportation system being a vehicle
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention provides a vehicle network management method, device, equipment and medium, wherein the method comprises the steps of obtaining a vehicle bus in a target vehicle, and configuring the number and types of network segments according to the vehicle bus; the method comprises the steps of monitoring network states of network segments, determining whether the network segments meet sleep conditions or wake-up conditions, switching the network states of the network segments to the sleep states if the network segments meet the sleep conditions, and waking up all the network segments of the target vehicle if the network segments are in the sleep states and at least one wake-up condition is met. The invention can dynamically configure the types and the number of the network segments, so that the sleep and wake-up switching among the network segments is synchronous, and the energy consumption of the vehicle is reduced.
Description
Technical Field
The present invention relates to the field of network management technologies, and in particular, to a vehicle network management method, device, equipment, and storage medium.
Background
At present, as the automobile gets more intelligent, the number of electronic controllers carried by the automobile is continuously increased, the overall consumed electric quantity is increased, and great influence is brought to the endurance mileage of the automobile. In the related art, all electronic controllers in an automobile are connected by mainly adopting a network structure and are communicated through a CAN (Controller Area Network ) bus, so that network management is carried out on network segments in the automobile, and the problem of energy conservation of the automobile is solved. Network management enables the electronic controller to sleep and wake up orderly through the network, i.e. each network segment sleeps when no communication needs and wakes up when communication is needed.
However, when the number of network segments in the automobile is increased, the conventional network management cannot dynamically configure the network management type of each network segment and the number of network segments corresponding to the network management type for different automobile types to adapt to different bus configurations, and on the other hand, the network management cannot cooperatively manage sleep and wake-up among the network segments, which has the problems of asynchronous network state switching and low reliability and stability of the network management of the network segments.
Disclosure of Invention
In view of the above-mentioned shortcomings of the prior art, the present invention provides a vehicle network management method, apparatus, device and storage medium, to solve at least one of the above-mentioned technical problems.
According to an aspect of an embodiment of the present invention, there is provided a vehicle network management method including:
acquiring a vehicle bus in a target vehicle, and configuring the number and types of network segments according to the vehicle bus;
Monitoring the network state of each network segment, and determining whether the network segment meets a sleep condition or a wake-up condition;
if the network segment meets the sleep condition, switching the network state of the network segment to a sleep state;
and if the network segment is in the sleep state and at least one awakening condition is met, awakening all network segments of the target vehicle.
In one embodiment of the present invention, if the network segment satisfies the sleep condition, the method includes:
Switching the network segment to a pre-sleep state, wherein the type of the network segment at least comprises a first network management network segment of an automobile open system architecture and a second network management network segment of an automobile electronic open system;
If the network segment is the first network management network segment and the first network management network segment does not receive a first network management message within a preset timeout time, switching the first network management network segment to a pre-sleep state;
And if the network segment is the second network management network segment, generating a pre-sleep inquiry instruction in the second network management network segment, and switching the second network management network segment to a pre-sleep state.
In one embodiment of the present invention, if the network segment satisfies the sleep condition, the method includes:
When the network segment is a first network management network segment, determining the validity of the first network management message received by the network segment at present;
If the first network management message is valid, determining the number of the first network management network segments, wherein the first network management network segments comprise multiple network management network segments and single network management network segments;
If the network segment is the multi-network management network segment, determining whether the network segment meets the sleep condition according to the first network management message and a local sleep event;
and if the network segment is the single network management network segment or the second network management network segment, determining whether the network segment meets the sleep condition according to the local sleep event.
In one embodiment of the present invention, if the network segment meets the sleep condition, switching the network state of the network segment to the sleep state includes:
If the network segment is the first network management network segment and the first network management network segment keeps the pre-sleep state for reaching a preset first sleep time, switching the first network management network segment to a sleep state;
If the network segment is the second network management network segment, responding to the pre-sleep inquiry instruction, sending a response message to a node generating the pre-sleep inquiry instruction, and switching the second network management network segment to a sleep waiting state when the response message is received and meets a preset condition;
and when the second network management network segment keeps the sleep waiting state to reach a preset second sleep time, the second network management network segment is switched to a sleep state, the communication of the network management network segment is stopped, and the network further comprises the network management network segment.
In one embodiment of the present invention, if the network segment is in the sleep state and at least one of the wake-up conditions is satisfied, waking up all network segments of the target vehicle includes:
When the first network management network segment is in the pre-sleep state or the sleep state, waking up the network segment based on the wake-up condition;
when the second network management network segment is in the sleep waiting state or the sleep state, waking up the network segment based on the wake-up condition;
dividing the wake-up condition into a local wake-up condition or a remote wake-up condition;
If the network segment detects a second network management message, the remote awakening condition is met, the current network segment is awakened, other network segments are awakened through the current network segment, and the second management message carries an awakening mark relative to the first network management message;
if the network segment detects that the local wake-up event is generated, the local wake-up condition is met, the current network segment is waken, and other network segments are waken through the current network segment.
In one embodiment of the present invention, if the network segment is the multi-network management network segment, determining whether the network segment meets the sleep condition according to the first network management message and a local sleep event includes:
Clearing the first network message received by the network segment outside a preset clearing time;
and determining whether the network segment meets the sleep condition according to the first network management report and the local sleep event in the preset clear time.
In one embodiment of the present invention, switching the network state of the network segment to the sleep state includes:
and when the network segment is switched to the sleep state, switching the vehicle bus to an edge detection mode.
According to an aspect of an embodiment of the present invention, there is provided a vehicle network management apparatus including:
The configuration module is configured to acquire a vehicle bus in a target vehicle, and configure the number and types of network segments according to the vehicle bus;
The monitoring module is configured to monitor the network state of each network segment and determine whether the network segment meets a sleep condition or a wake-up condition;
and the sleep module is configured to switch the network state of the network segment to a sleep state if the network segment meets the sleep condition.
And the awakening module is configured to awaken all network segments of the target vehicle if the network segments are in the sleep state and at least one awakening condition is met.
According to an aspect of an embodiment of the present invention, there is provided an electronic device including one or more processors, and storage means for storing one or more programs, which when executed by the one or more processors, cause the one or more processors to implement the vehicle network management method as described in the above embodiment.
According to an aspect of the embodiments of the present invention, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor of a computer, causes the computer to execute the vehicle network management method as described in the above embodiments.
The vehicle network management method, device and equipment and storage medium have the beneficial effects that the vehicle network management method, device and equipment and storage medium are provided, the method is characterized in that the number and types of network segments are configured according to the vehicle buses in a target vehicle, the network states of the network segments are monitored to determine whether the network segments meet sleep conditions or wake-up conditions, the network states of the network segments are switched to the sleep states if the network segments meet the sleep conditions, and all the network segments of the target vehicle are wakened if the network segments are in the sleep states and at least one wake-up condition is met, so that the network management of the vehicle is completed. The acquired bus of the target vehicle is not fixed, so that the types and the number of network segments can be dynamically configured, and the sleep and wake-up switching among the network segments is synchronized, so that the energy consumption of the vehicle is reduced, and the problems of low reliability and stability of network management are solved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention. It is evident that the drawings in the following description are only some embodiments of the present invention and that other drawings may be obtained from these drawings without inventive effort for a person of ordinary skill in the art. In the drawings:
FIG. 1 is a schematic diagram of a network topology state shown in an exemplary embodiment of the present invention;
FIG. 2 is a flow chart of a method of vehicle network management shown in an exemplary embodiment of the invention;
FIG. 3 is a schematic diagram illustrating a first network management segment switching network state according to an exemplary embodiment of the present invention;
FIG. 4 is a schematic diagram illustrating a second network management segment switching network state according to an exemplary embodiment of the present invention;
FIG. 5 is a flow chart illustrating vehicle network management sleep according to an exemplary embodiment of the present invention;
FIG. 6 is a block diagram of a vehicle network management device shown in an exemplary embodiment of the invention;
Fig. 7 shows a schematic diagram of a computer system suitable for use in implementing an embodiment of the invention.
Detailed Description
Further advantages and effects of the present invention will become readily apparent to those skilled in the art from the disclosure herein, by referring to the accompanying drawings and the preferred embodiments. The invention may be practiced or carried out in other embodiments that depart from the specific details, and the details of the present description may be modified or varied from the spirit and scope of the present invention. It should be understood that the preferred embodiments are presented by way of illustration only and not by way of limitation.
It should be noted that the illustrations provided in the following embodiments merely illustrate the basic concept of the present invention by way of illustration, and only the components related to the present invention are shown in the drawings and are not drawn according to the number, shape and size of the components in actual implementation, and the form, number and proportion of the components in actual implementation may be arbitrarily changed, and the layout of the components may be more complicated.
In the following description, numerous details are set forth in order to provide a more thorough explanation of embodiments of the present invention, it will be apparent, however, to one skilled in the art that embodiments of the present invention may be practiced without these specific details, in other embodiments, well-known structures and devices are shown in block diagram form, rather than in detail, in order to avoid obscuring the embodiments of the present invention.
Fig. 1 is a flowchart illustrating a vehicle network management method according to an exemplary embodiment of the present invention.
Referring to fig. 1, in an exemplary embodiment, the vehicle network management method at least includes steps S110 to S150, and is described in detail as follows:
step S110, a vehicle bus in the target vehicle is obtained, and the number and types of network segments are configured according to the vehicle bus.
It should be understood that the vehicle buses configured for different vehicle types are different, and the type and number of the vehicle buses are first determined according to the configuration of the target vehicle, and then converted into the corresponding network structure, so as to configure the type and number of network segments in the target vehicle, where the type of network segments includes a first network management network segment of the automobile open system architecture, a second network management network segment of the automobile electronic open system, and a no network management network segment.
Fig. 2 is a schematic diagram illustrating a network topology state according to an exemplary embodiment of the present invention.
Referring to fig. 2, in one embodiment of the present invention, the network topology of the target vehicle may be the bus type network topology in fig. 2, and the entire network includes eight network segments including DCAN (i.e., a diagnostic controller area network), ADASCAN (i.e., a driving controller area network), DATACAN (i.e., a data controller area network), INFOCAN (i.e., an information controller area network), BCAN (i.e., a body controller area network), PTCAN (i.e., a power controller area network), HEVCAN (i.e., a new energy controller area network), and EPSCAN (i.e., a steering controller area network). These network segments are different in terms of network management, and can be classified into three types, including an AUTOSAR (AUTomotive Open System Architecure, automobile open system architecture) network management segment, an OSEK (i.e., german automobile electronics open system and corresponding interface standards) network management segment, and no network management. In the present invention, the first network management network segment may be an AUTOSAR network management network segment, and the second network management network segment may be an OSEK network management network segment. As shown in fig. 2, the number of the first network management segments is three, the number of the second network management segments is two, and the number of the non-network management segments is three. The first network management network segment can be configured in a self-defining way, and can be configured to be a type of first network management at times and a type without network management. It should be noted that the present invention does not limit the number of network segments in the target vehicle, and the types of network segments and the number of corresponding network segments of different types support dynamic configuration.
Step S420, monitor the network status of each network segment, determine whether the network segment satisfies the sleep condition or the wake-up condition.
In one embodiment of the invention, the network state of each network segment needs to be monitored, if the network segment normally communicates, whether the network segment meets the sleep condition is judged, and if the network segment is in the sleep state, whether the network segment meets the wake condition is judged.
In one embodiment of the invention, the network segment satisfies any one of the wake-up conditions and will be woken up. Table 1 shows wake-up conditions for the network segment configured in FIG. 2, and the conditions are shown in Table 1:
TABLE 1
As can be seen from Table 1, the network segment in FIG. 2 can be awakened when any one of the wake-up conditions in Table 1 is satisfied.
Step S130, if the network segment meets the sleep condition, the network state of the network segment is switched to the sleep state.
It should be understood that the network state of the network segment may be switched to the sleep state through steps S131 to S133.
Step S131, judging whether the network segment meets the sleep condition.
In one embodiment of the invention, the type of network segment needs to be determined before determining whether the network segment satisfies the sleep condition. If the network segment is a first network management network segment, whether the first network management network segment is a multi-network management network segment or a single network management network segment needs to be judged first, and the judgment basis is the number of the first network management network segments in the target vehicle. When the network segment is a multi-network management network segment, judging whether the network segment meets the sleep condition according to the combination of the local sleep event and the received first network message, namely, taking the first network message as the local sleep event. The first network message participating in judgment is received by the network segment within preset clear time, the first network message received by the network segment outside the preset clear time is cleared, and when the network segment is single network management, the sleep condition to be met is the same as that of the second network management network segment.
In one embodiment of the invention, each network segment in the target vehicle can be controlled to enter sleep only under the condition that all sleep conditions are simultaneously met, and whether the current network segment needs to be switched to a sleep state can be accurately judged. Table 2 is a sleep condition for the network segment configured in fig. 2, and the relevant conditions are shown in table 2:
TABLE 2
It should be noted that all the sleep conditions in table 2 are related to each other, and all the sleep conditions must be satisfied to switch the network segment to the sleep state, and the time involved in the sleep conditions may be set according to different actual requirements.
In one embodiment of the present invention, before determining whether the first network segment is a multi-network management segment or a single-network management segment, the validity of the first network packet received by the current first network management segment is periodically determined, and it should be noted that the determination period may be configured according to the actual situation.
Step S132, after the network segment meets the sleep condition, the network state of the network segment is switched to the pre-sleep state.
In one embodiment of the present invention, switching network states of network segments to a sleep state requires switching network segments to a pre-sleep state first. When the network segment is a first network management network segment, after the sleep condition is met, the network segment is switched to a sleep preparation state, and stops forwarding the first network message until the network segment does not continuously receive the first network management message within a preset timeout time, the network segment is switched from the sleep preparation state to a pre-sleep state, and stops sending the application message. When the network segment is a second network management message, after the sleep condition is met, one node in the network segment generates a pre-sleep inquiry instruction, sends the pre-sleep inquiry instruction to other nodes in the network segment, and switches the network state of the network segment to a pre-sleep state.
Step S133, switching the network segment from the pre-sleep state to the sleep state.
In one embodiment of the present invention, when the network segment is the first network management network segment, if the time that the network segment is in the pre-sleep state reaches the preset first sleep time, the network segment is switched from the pre-sleep state to the sleep state. When the network segment is a second network management network segment, the node in the network segment receiving the pre-sleep query instruction responds to the pre-sleep query instruction and sends a response message to the node of the pre-sleep query instruction, if the response message meets a preset condition, for example, the response message is sleep permission, the network segment is switched from the pre-sleep state to the sleep waiting state until the time of the network segment in the sleep waiting state reaches a preset second sleep time, the network segment is switched from the sleep waiting state to the sleep state, and meanwhile, the network management-free network segment is prevented from continuing to communicate. It should be noted that the preset first sleep time and the preset second sleep time may be the same or different, and may be adjusted according to actual situations, for example, if the real-time requirement of the target vehicle for switching to the sleep state is high, the preset first sleep time and the preset second sleep time are set to smaller values.
In one embodiment of the present invention, if the network segment is switched to the sleep state, the bus in the target vehicle is switched to the edge detection mode, so that the target vehicle can wake up by means of external interrupt when the target vehicle is in low power consumption due to the fact that all the network segments enter sleep.
FIG. 3 is a flow chart illustrating vehicle network management sleep according to an exemplary embodiment of the present invention.
In one embodiment of the present invention, the process of switching the network state of the network segment to the sleep state includes five parts, as described with reference to fig. 3. The first part is to first judge whether the first network management network segment receives the effective first network management message, then judge whether the first network management network segment is a multi-network management network segment or a single network management network segment, and the multi-network management network segment and the single network management network segment are different when judging whether the sleep condition is satisfied. The single network management network segment only needs to judge according to the local wake-up event, and the first network management message in the preset clear time received by the first network management network segment in the multi-network management network segment also participates in judgment. And the second part, after the sleep condition is met, the first network state is switched to the sleep preparation state, the forwarding of the first network management message is stopped, whether the preset timeout time is reached or not is judged, and if the timeout time is not reached, the waiting is continued. And the third part is used for switching the first network management network segment to a pre-sleep state and stopping forwarding the application message when the first network management network segment still does not receive the first network management message after the preset timeout time, and simultaneously switching the network state of the second network management network segment to the pre-sleep state, wherein the second network management network segment meets the sleep condition. And a fourth step of switching the first network management network segment to a sleep state and switching the vehicle bus to an edge detection mode if the first network management network segment keeps the pre-sleep state for a preset first sleep time. And a fifth step of switching the second network management network segment to a sleep waiting state if the second network management network segment transmits the sleep inquiry request and the response information of the rest nodes is received and meets the preset condition, switching the second network management network segment to the sleep waiting state until the preset second sleep time is reached, stopping the communication without network management, and switching the vehicle bus to an edge detection mode.
Fig. 4 is a schematic diagram illustrating a first network management network segment switching network state according to an exemplary embodiment of the present invention.
Referring to fig. 4, the network states of the first network management network segment include a normal operation state, a ready-to-sleep state, a pre-sleep state, a sleep state, and a repeated message state, wherein the normal operation state refers to when the first network management network segment communicates. The repeated message states in turn include a normal send sub-state and a fast send sub-state. The network message in fig. 4 is identical to the first network message, the network message receiving timeout is identical to the above-mentioned preset timeout period, and the waiting timeout period is identical to the above-mentioned preset first sleep period. In the repeated message state, the current first network management network segment will always periodically send the first network message to prompt the other network segments of the first network management multifarious to enter a normal running state or a sleep ready state, wherein in the normal sending sub-state, the first network management network segment must send the first network message in a normal period, and in the fast sending sub-state, the first network management network segment must send the first network management message in a fast period. The network state switching process of the first network management network segment shown in fig. 4 is already described in the above embodiment, and will not be described herein.
Fig. 5 is a schematic diagram illustrating a second network management network segment switching network state according to an exemplary embodiment of the present invention.
Referring to fig. 5, the network states of the second network management network segment include a normal running state, a pre-sleep state, a normal waiting sleep state and a sleep state, where the normal running state refers to that when the second network management network segment communicates, the normal waiting sleep state is equal to the sleep waiting state, and after the second network management network segment wakes up, the second network management network segment performs a network initialization operation. The network state switching process of the second network management network segment shown in fig. 5 is already described in the above embodiment, and will not be described herein.
Step S140, if the network segment is in a sleep state and at least one wake-up condition is satisfied, waking up all network segments of the target vehicle.
In one embodiment of the present invention, the wake-up conditions include a local wake-up condition and a remote wake-up condition, where the local wake-up condition refers to a wake-up condition that a local wake-up event is detected, such as a wake-up condition that a vehicle bus is detected in table 1, and the remote wake-up condition refers to a wake-up condition that a second network management message is detected, such as a wake-up condition that a second network management message is detected in table 1, and it is noted that the second network management message carries a wake-up flag to be valid. When the network segment is a first network management network segment, the network segment can be awakened in a pre-sleep state or a sleep state, and when the network segment is a second network management network segment, the network segment can be awakened in a sleep preparation state or a sleep state. And under the condition that the current network segment is awakened, sending a second network message to the rest network segments, so as to awaken all the network segments of the target vehicle.
Fig. 6 is a block diagram of a vehicle network management apparatus according to an exemplary embodiment of the present invention.
Referring to fig. 6, the exemplary vehicle network management apparatus includes a configuration module 601, a monitoring module 602, a sleep module 603, and a wake module 604.
The system comprises a configuration module 601, a monitoring module 602 and a sleep module 603, wherein the configuration module is configured to acquire a vehicle bus in a target vehicle, configure the number and the type of network segments according to the vehicle bus, monitor the network state of each network segment, determine whether the network segment meets the sleep condition or the wake-up condition, and switch the network state of the network segment to the sleep state if the network segment meets the sleep condition. The wake-up module 604 is configured to wake up all segments of the target vehicle if the segments are in the sleep state and at least one wake-up condition is satisfied.
It should be noted that, the vehicle network management device provided in the foregoing embodiment and the vehicle network management method provided in the foregoing embodiment belong to the same concept, and a specific manner in which each module and unit perform an operation has been described in detail in the method embodiment, which is not repeated herein. In practical application, the vehicle network management device provided in the above embodiment may allocate the functions to different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to perform all or part of the functions described above, which is not limited herein.
The embodiment of the invention also provides electronic equipment, which comprises one or more processors and a storage device, wherein the storage device is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the electronic equipment realizes the vehicle network management method provided in each embodiment.
Fig. 7 shows a schematic diagram of a computer system suitable for use in implementing an embodiment of the invention. It should be noted that, the computer system 700 of the electronic device shown in fig. 7 is only an example, and should not impose any limitation on the functions and the application scope of the embodiments of the present invention.
As shown in fig. 7, the computer system 700 includes a central processing unit (Central Processing Unit, CPU) 701 that can perform various appropriate actions and processes, such as performing the methods in the above-described embodiments, according to a program stored in a Read-Only Memory (ROM) 702 or a program loaded from a storage portion 708 into a random access Memory (Random Access Memory, RAM) 703. In the RAM 703, various programs and data required for the system operation are also stored. The CPU 701, ROM 702, and RAM 703 are connected to each other through a bus 704. An Input/Output (I/O) interface 705 is also connected to bus 704.
Connected to the I/O interface 705 are an input section 706 including a keyboard, a mouse, and the like, an output section 707 including a Cathode Ray Tube (CRT), a Liquid crystal display (Liquid CRYSTAL DISPLAY, LCD), and the like, and a speaker, and the like, a storage section 708 including a hard disk, and the like, and a communication section 709 including a network interface card such as a LAN (Local Area NetworK) card, a modem, and the like. The communication section 709 performs communication processing via a network such as the internet. The drive 710 is also connected to the I/O interface 705 as needed. A removable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is installed on the drive 710 as needed, so that a computer program read out therefrom is installed into the storage section 708 as needed.
In particular, according to embodiments of the present invention, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present invention include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising a computer program for performing the method shown in the flowchart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 709, and/or installed from the removable medium 711. When executed by a Central Processing Unit (CPU) 701, performs the various functions defined in the system of the present invention.
It should be noted that, the computer readable medium shown in the embodiments of the present invention may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium may be, for example, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-Only Memory (ROM), an erasable programmable read-Only Memory (Erasable Programmable Read Only Memory, EPROM), a flash Memory, an optical fiber, a portable compact disc read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer-readable signal medium may comprise a data signal propagated in baseband or as part of a carrier wave, with a computer-readable computer program embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. A computer program embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, etc., or any suitable combination of the foregoing.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. Where each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present invention may be implemented by software, or may be implemented by hardware, and the described units may also be provided in a processor. Wherein the names of the units do not constitute a limitation of the units themselves in some cases.
The present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor of a computer, causes the computer to perform the vehicle network management method as before. The computer-readable storage medium may be included in the electronic device described in the above embodiment or may exist alone without being incorporated in the electronic device.
The above embodiments are merely illustrative of the principles of the present invention and its effectiveness, and are not intended to limit the invention. Modifications and variations may be made to the above-described embodiments by those skilled in the art without departing from the spirit and scope of the invention. It is therefore intended that all equivalent modifications and changes made by those skilled in the art without departing from the spirit and technical spirit of the present invention shall be covered by the appended claims.
Claims (7)
1. A vehicle network management method, the method comprising:
acquiring a vehicle bus in a target vehicle, and configuring the number and types of network segments according to the vehicle bus;
Monitoring the network state of each network segment, and determining whether the network segment meets a sleep condition or a wake-up condition;
if the network segment meets the sleep condition, switching the network state of the network segment to a sleep state;
if the network segment is in the sleep state and at least one awakening condition is met, awakening all network segments of the target vehicle;
Before the network state of the network segment is switched to the sleep state, the network segment type at least comprises a first network management network segment of an automobile open system architecture and a second network management network segment of an automobile electronic open system, the network segment is switched to a pre-sleep state, if the network segment is the first network management network segment and the first network management network segment does not receive a first network management message within a preset timeout time, the first network management network segment is switched to the pre-sleep state, and if the network segment is the second network management network segment, a pre-sleep inquiry command is generated in the second network management network segment, and the second network management network segment is switched to the pre-sleep state;
determining the validity of a first network management message received by the network segment at present when the network segment is a first network management network segment; if the first network management message is valid, determining the number of the first network management network segments, wherein the first network management network segments comprise multiple network management network segments and single network management network segments; if the network segment is the multi-network management network segment, determining whether the network segment meets the sleep condition according to the first network management message and a local sleep event; if the network segment is the single network management network segment or the second network management network segment, determining whether the network segment meets the sleep condition according to the local sleep event;
The network state of the network segment is switched to a sleep state, and the network segment comprises the first network management network segment, the second network management network segment and the network segment, wherein the first network management network segment is switched to the sleep state if the network segment is the first network management network segment and the first network management network segment keeps the pre-sleep state for a preset first sleep time, the second network management network segment is responded to the pre-sleep inquiry command, a response message is sent to a node generating the pre-sleep inquiry command, the second network management network segment is switched to a sleep waiting state when the response message is received and meets a preset condition, the second network management network segment is switched to the sleep state for a preset second sleep time when the second network management network segment keeps the sleep waiting state for the second sleep time, the second network management network segment is switched to the sleep state, and no network management network segment communication is stopped.
2. The vehicle network management method according to claim 1, wherein waking up all network segments of the target vehicle if the network segments are in the sleep state and at least one wake-up condition is satisfied, comprises:
When the first network management network segment is in the pre-sleep state or the sleep state, waking up the network segment based on the wake-up condition;
when the second network management network segment is in the sleep waiting state or the sleep state, waking up the network segment based on the wake-up condition;
dividing the wake-up condition into a local wake-up condition or a remote wake-up condition;
If the network segment detects a second network management message, the remote awakening condition is met, the current network segment is awakened, other network segments are awakened through the current network segment, and the second network management message carries an awakening mark relative to the first network management message;
if the network segment detects that the local wake-up event is generated, the local wake-up condition is met, the current network segment is waken, and other network segments are waken through the current network segment.
3. The vehicle network management method according to claim 1, wherein if the network segment is the multi-network management network segment, determining whether the network segment satisfies the sleep condition according to the first network management message and a local sleep event includes:
clearing the first network management message received by the network segment outside a preset clearing time;
and determining whether the network segment meets the sleep condition according to the first network management report and the local sleep event in the preset clear time.
4. The vehicle network management method according to claim 1, characterized in that switching the network state of the network segment to a sleep state includes:
and when the network segment is switched to the sleep state, switching the vehicle bus to an edge detection mode.
5. A vehicle network management apparatus, characterized in that the apparatus comprises:
The configuration module is used for acquiring a vehicle bus in a target vehicle, and configuring the number and types of network segments according to the vehicle bus, wherein the types of the network segments at least comprise a first network management network segment of an automobile open system architecture and a second network management network segment of an automobile electronic open system;
the system comprises a monitoring module, a judging module and a sleep module, wherein the monitoring module is used for monitoring the network state of each network segment and determining whether the network segment meets a sleep condition or a wake-up condition, wherein when the network segment is a first network management network segment, the validity of a first network management message received by the network segment at present is determined, if the first network management message is valid, the number of the first network management network segments is determined, the first network management network segment comprises a plurality of network management network segments and a single network management network segment, if the network segment is the plurality of network management network segments, whether the network segment meets the sleep condition is determined according to the first network management message and a local sleep event, and if the network segment is the single network management network segment or a second network management network segment, whether the network segment meets the sleep condition is determined according to the local sleep event;
the sleep module is used for switching the network state of the network segment to a sleep state if the network segment meets the sleep condition; before switching the network state of the network segment to the sleep state, the method further comprises the step of switching the network segment to a pre-sleep state; if the network segment is the first network management network segment and the first network management network segment does not receive a first network management message within a preset timeout time, switching the first network management network segment to a pre-sleep state; if the network segment is the second network management network segment, a pre-sleep inquiry command is generated in the second network management network segment, and the second network management network segment is switched to a pre-sleep state;
And the awakening module is used for awakening all network segments of the target vehicle if the network segments are in the sleep state and at least one awakening condition is met.
6. An electronic device, the electronic device comprising:
one or more processors;
storage means for storing one or more programs that, when executed by the one or more processors, cause the electronic device to implement the vehicle network management method of any one of claims 1 to 4.
7. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor of a computer, causes the computer to perform the vehicle network management method according to any one of claims 1 to 4.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310048125.0A CN116112298B (en) | 2023-01-31 | 2023-01-31 | Vehicle network management method, device, equipment and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310048125.0A CN116112298B (en) | 2023-01-31 | 2023-01-31 | Vehicle network management method, device, equipment and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN116112298A CN116112298A (en) | 2023-05-12 |
| CN116112298B true CN116112298B (en) | 2025-03-18 |
Family
ID=86261075
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202310048125.0A Active CN116112298B (en) | 2023-01-31 | 2023-01-31 | Vehicle network management method, device, equipment and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN116112298B (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN119892954B (en) * | 2025-01-03 | 2025-10-28 | 东风汽车集团股份有限公司 | Multi-bus protocol network control method, device, equipment, storage medium and product |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113438140A (en) * | 2021-05-20 | 2021-09-24 | 江铃汽车股份有限公司 | Electric automobile CAN bus control method and system |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR101283213B1 (en) * | 2011-12-15 | 2013-07-05 | 현대자동차주식회사 | A management system and method for ethernet communication network in vehicle |
| CN111698107B (en) * | 2019-03-13 | 2022-08-30 | 上海欧菲智能车联科技有限公司 | Vehicle network management method, device and system and computer equipment |
-
2023
- 2023-01-31 CN CN202310048125.0A patent/CN116112298B/en active Active
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113438140A (en) * | 2021-05-20 | 2021-09-24 | 江铃汽车股份有限公司 | Electric automobile CAN bus control method and system |
Also Published As
| Publication number | Publication date |
|---|---|
| CN116112298A (en) | 2023-05-12 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110758289B (en) | A sleep and wake-up method for an in-vehicle hybrid network including in-vehicle Ethernet | |
| CN114363099B (en) | A network management system, control method, electronic controller and electric vehicle | |
| CN102231705B (en) | Power controller area network (CAN) control method | |
| CN108900313A (en) | A kind of CAN bus based network management and system | |
| CN101700762A (en) | Electricity-saving method of vehicle-mounted CAN bus network | |
| CN116600262B (en) | Method and device for determining sleep wakeup abnormality, electronic equipment and storage medium | |
| CN111624902A (en) | Control method and device for dormancy and awakening | |
| CN116112298B (en) | Vehicle network management method, device, equipment and storage medium | |
| CN101165636A (en) | Microcomputer, program and on-vehicle electronic controller | |
| CN115685843A (en) | Partial network management grouping method and device, electronic equipment, storage medium | |
| CN210839611U (en) | Sleep and awakening device of in-vehicle hybrid network comprising vehicle-mounted Ethernet | |
| CN113993196B (en) | Node control method, system, equipment and storage medium of vehicle-mounted Ethernet | |
| CN119109719A (en) | LIN-based network management method, electronic control unit and wake-up manager | |
| CN117377044A (en) | A control method, device, equipment and storage medium for network management ECU | |
| CN115416596B (en) | Vehicle wake-up method, vehicle wake-up device, vehicle and storage medium | |
| CN103738274B (en) | Low-power consumption car control system and control method | |
| CN114697154B (en) | Dormancy and wakeup control method | |
| CN118590520A (en) | Local network management method, device, equipment and storage medium | |
| CN119099519A (en) | Vehicle energy consumption management method, system, vehicle and storage medium | |
| CN116366394A (en) | Network management method and device of vehicle-mounted electronic control unit and control unit | |
| CN117087574A (en) | Power distribution control method and device for vehicle, electronic equipment and storage medium | |
| CN119766594A (en) | Network management method, vehicle network system, electronic device, computer readable storage medium and computer program product | |
| CN117608263A (en) | Vehicle power consumption control method and system, vehicle and storage medium | |
| CN117768978A (en) | Node control method, node control system, vehicle and medium | |
| CN115755859A (en) | Network fault diagnosis method, device and medium based on local network |
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 |