Vehicle network management method, device, equipment and storage medium
By dynamically configuring and monitoring the vehicle network, the problem of traditional network management in poor management in multi-network environments is solved, synchronous switching of network segment status is achieved, and management reliability and stability are improved.
Patent Information
- Application Number
- CN202310048125.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-31
- Publication Date
- 2025-03-18
- Estimated Expiration
- 2043-01-31
AI Technical Summary
Traditional vehicle network management cannot dynamically configure the type and number of network segments when facing multiple network segments, resulting in network state switching being out of synchronization and low management reliability and stability.
By obtaining the vehicle bus of the target vehicle, dynamically configure the number and type of network segments, monitoring the network status of each network segment. If the sleep conditions are met, switch to the sleep state, and if the wake-up conditions are met, all network segments will be awakened.
Dynamic management of the vehicle network is realized, ensuring the synchronization of sleep and wake-up switching between each network segment, reducing the energy consumption of the vehicle and improving the reliability and stability of network management.
Smart Images

Figure CN116112298B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of network management, and in particular to a vehicle network management method, device, equipment and storage medium. Background Art
[0002] At present, as cars become more and more intelligent, the number of electronic controllers carried by cars continues to increase, and the overall power consumption increases, which has a huge impact on the car's cruising range. In related technologies, a network structure is mainly used to connect all electronic controllers in the car, and communicate through the CAN (Controller Area Network) bus, so as to manage the network segments in the vehicle and solve the problem of car energy saving. Network management can make the electronic controllers sleep and wake up in an orderly manner through the network, that is, each network segment sleeps when there is no communication demand and wakes up when communication is required.
[0003] However, when faced with the increasing number of network segments in automobiles, traditional network management, on the one hand, cannot dynamically configure the network management type of each network segment and the number of network segments of the corresponding network management type for different vehicle models to adapt to different bus configurations; on the other hand, the network segments cannot be collaboratively managed for sleep and wake-up, resulting in asynchronous network status switching of each network segment and low reliability and stability of network management. Summary of the invention
[0004] In view of the above-mentioned shortcomings of the prior art, the present invention provides a vehicle network management method, device, equipment and storage medium to solve at least one of the above-mentioned technical problems.
[0005] According to one aspect of an embodiment of the present invention, there is provided a vehicle network management method, comprising:
[0006] Obtain a vehicle bus in a target vehicle, and configure the number and type of network segments according to the vehicle bus;
[0007] Monitoring the network status of each network segment to determine whether the network segment meets the sleep condition or the wake-up condition;
[0008] If the network segment meets the sleep condition, switching the network state of the network segment to the sleep state;
[0009] If the network segment is in the sleeping state and satisfies at least one of the awakening conditions, all network segments of the target vehicle are awakened.
[0010] In one embodiment of the present invention, if the network segment meets the sleep condition, the method further includes:
[0011] Switching the network segment to a pre-sleep state, wherein the types of the network segment include at least a first network management network segment of an automotive open system architecture and a second network management network segment of an automotive electronics open system;
[0012] If the network segment is the first network management network segment, and the first network management network segment does not receive the first network management message within a preset timeout period, switching the first network management network segment to a pre-sleep state;
[0013] If the network segment is the second network management network segment, a pre-sleep query instruction is generated in the second network management network segment, and the second network management network segment is switched to a pre-sleep state.
[0014] In one embodiment of the present invention, before the network segment satisfies the sleep condition, the method includes:
[0015] When the network segment is a first network management network segment, determining the validity of the first network management message currently received by the network segment;
[0016] 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 include multiple network management network segments and single network management network segments;
[0017] 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 the local sleep event;
[0018] If the network segment is the single network management segment or the second network management segment, it is determined whether the network segment meets the sleep condition according to the local sleep event.
[0019] 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:
[0020] If the network segment is the first network management network segment, and the first network management network segment maintains the pre-sleep state for a preset first sleep time, switching the first network management network segment to the sleep state;
[0021] If the network segment is the second network management network segment, respond to the pre-sleep query instruction, send a response message to the node that generates the pre-sleep query instruction, and when the response message received meets the preset condition, switch the second network management network segment to the sleep waiting state;
[0022] When the second network management segment maintains the sleep waiting state for a preset second sleep time, the second network management segment is switched to the sleep state, and communication with the non-network management segment is stopped, and the network also includes the non-network management segment.
[0023] In one embodiment of the present invention, if the network segment is in the sleep state and satisfies at least one of the awakening conditions, all network segments of the target vehicle are awakened, including:
[0024] 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;
[0025] 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;
[0026] The wake-up condition is divided into a local wake-up condition or a remote wake-up condition;
[0027] If the network segment detects a second network management message, the remote wake-up condition is met, the current network segment is awakened, and the remaining network segments are awakened through the current network segment, and the second management message carries a wake-up flag relative to the first network management message;
[0028] If the network segment detects that a local wake-up event occurs, the local wake-up condition is met, the current network segment is woken up, and the remaining network segments are woken up through the current network segment.
[0029] 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 the local sleep event includes:
[0030] Clearing the first network message received by the network segment outside the preset clearing time;
[0031] Determine whether the network segment meets the sleep condition according to the first network management report and the local sleep event within the preset clearing time.
[0032] In one embodiment of the present invention, switching the network state of the network segment to a sleep state includes:
[0033] When the network segment switches to the sleep state, the vehicle bus is switched to an edge detection mode.
[0034] According to one aspect of an embodiment of the present invention, there is provided a vehicle network management device, comprising:
[0035] A configuration module, configured to obtain a vehicle bus in a target vehicle, and configure the number and type of network segments according to the vehicle bus;
[0036] A monitoring module configured to monitor the network status of each network segment and determine whether the network segment meets the sleep condition or the wake-up condition;
[0037] The sleep module is configured to switch the network state of the network segment to the sleep state if the network segment meets the sleep condition.
[0038] The wake-up module is configured to wake up all network segments of the target vehicle if the network segment is in the sleep state and satisfies at least one wake-up condition.
[0039] According to one aspect of an embodiment of the present invention, an electronic device is provided, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the vehicle network management method as described in the above embodiments.
[0040] According to one aspect of an embodiment of the present invention, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor of a computer, the computer executes the vehicle network management method as described in the above embodiment.
[0041] Beneficial effects of the present invention: The present invention proposes a vehicle network management method, device, equipment and storage medium, which obtains the vehicle bus in the target vehicle and configures the number and type of network segments according to the vehicle bus; monitors the network status of each network segment to determine whether the network segment meets the sleep condition or the wake-up condition; if the network segment meets the sleep condition, the network status of the network segment is switched to the sleep state; if the network segment is in the sleep state and meets at least one wake-up condition, all network segments of the target vehicle are awakened, thereby completing the network management of the vehicle. Since the configuration of the target vehicle itself is different, the acquired vehicle bus is not fixed, so the type and number of network segments can be dynamically configured; in addition, the switching between sleep and wake-up between each network segment is synchronized, thereby reducing the energy consumption of the vehicle and improving the reliability and low stability of network management.
[0042] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present invention, and together with the specification, are used to explain the principles of the present invention. Obviously, the drawings described below are only some embodiments of the present invention, and for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0044] Figure 1 is a schematic diagram of a network topology state shown in an exemplary embodiment of the present invention;
[0045] Figure 2 is a flow chart of a vehicle network management method shown in an exemplary embodiment of the present invention;
[0046] Figure 3 is a schematic diagram of a first network management segment switching network state shown in an exemplary embodiment of the present invention;
[0047] Figure 4 is a schematic diagram of switching the network state of the second network management network segment shown in an exemplary embodiment of the present invention;
[0048] Figure 5 is a flowchart of vehicle network management sleep shown in an exemplary embodiment of the present invention;
[0049] Figure 6 is a block diagram of a vehicle network management device shown in an exemplary embodiment of the present invention;
[0050] Figure 7 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0051] The following will describe the embodiments of the present invention with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are only for illustrating the present invention, not for limiting the scope of protection of the present invention.
[0052] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
[0053] In the following description, numerous details are discussed to provide a more thorough explanation of the embodiments of the present invention. However, it is obvious to those skilled in the art that the embodiments of the present invention can be implemented without these specific details. In other embodiments, well-known structures and devices are shown in the form of block diagrams rather than in detail to avoid making the embodiments of the present invention difficult to understand.
[0054] Figure 1 is a flow chart of a vehicle network management method according to an exemplary embodiment of the present invention.
[0055] Reference Figure 1 As shown, in an exemplary embodiment, the vehicle network management method includes at least steps S110 to S150, which are described in detail as follows:
[0056] Step S110, obtaining a vehicle bus in the target vehicle, and configuring the number and type of network segments according to the vehicle bus.
[0057] It should be understood that different vehicle models are configured with different vehicle buses. First, the type and quantity of the vehicle bus are determined based on the configuration of the target vehicle, and then the type and quantity of the vehicle bus are converted into the corresponding network structure to configure the type and quantity of the network segments in the target vehicle. The types of network segments include the first network management segment of the automotive open system architecture, the second network management segment of the automotive electronics open system, and the non-network management segment.
[0058] Figure 2 It is a schematic diagram of a network topology state shown in an exemplary embodiment of the present invention.
[0059] Reference Figure 2 As shown, in one embodiment of the present invention, the network topology of the target vehicle can be Figure 2The bus network topology structure in the whole network includes eight network segments, including DCAN (i.e., diagnostic controller area network), ADASCAN (i.e., driving controller area network), DATACAN (i.e., data controller area network), INFOCAN (i.e., information controller area network), BCAN (i.e., body controller area network), PTCAN (i.e., power controller area network), HEVCAN (i.e., new energy controller area network) and EPSCAN (i.e., steering controller area network). These network segments can be divided into three types according to the different network management methods, including AUTOSAR (AUTomotive Open System Architecure, automotive open system architecture) network management segment, OSEK (i.e., German automotive electronics open system and corresponding interface standard) network management segment and no network management. Among them, in the present invention, the first network management segment can be an AUTOSAR network management segment, and the second network management segment can be an OSEK network management segment. Figure 2 As shown, the number of first network management segments is three, the number of second network management segments is two, and the number of non-network management segments is three. Among them, the first network management segment can be customized and can be configured as a type of sometimes first network management, and can also be configured as a type of no network management. It should be noted that the present invention does not limit the number of segments in the target vehicle, and the type of segments and the number of segments corresponding to different types support dynamic configuration.
[0060] Step S420, monitoring the network status of each network segment to determine whether the network segment meets the sleep condition or the wake-up condition.
[0061] In one embodiment of the present invention, the network status of each network segment needs to be monitored. If the network segment is communicating normally, then it is determined whether the network segment meets the sleep condition; if the network segment is in a sleep state, then it is determined whether the network segment meets the wake-up condition.
[0062] In one embodiment of the present invention, a network segment will be awakened if it meets any one of the awakening conditions. Figure 2 The wake-up conditions of the configured network segment are shown in Table 1:
[0063] Table 1
[0064]
[0065] From Table 1, we can see that Figure 2 The network segment in can be awakened if it meets any of the awakening conditions in Table 1.
[0066] Step S130: If the network segment meets the sleep condition, the network state of the network segment is switched to the sleep state.
[0067] It should be understood that the network state of the network segment can be switched to the sleep state through steps S131 to S133.
[0068] Step S131, determining whether the network segment meets the sleep condition.
[0069] In one embodiment of the invention, before determining whether a network segment meets the sleep condition, it is necessary to determine the type of network segment. If the network segment is a second network management segment, it is necessary to determine whether the network segment meets the sleep condition based on the local sleep event; if the network segment is a first network management segment, it is necessary to first determine whether the first network management segment is a multi-network management segment or a single network management segment, and the basis for the determination is the number of first network management segments in the target vehicle. When the network segment is a multi-network management segment, it is determined whether the network segment meets the sleep condition based on the local sleep event and the first network message received, that is, the first network message is used as a local sleep event. Among them, the first network message involved in the judgment is received by the network segment within the preset clearing time, and the first network message received by the network segment outside the preset clearing time may be cleared; when the network segment is a single network management, the sleep condition that needs to be met is the same as that of the second network management segment.
[0070] In one embodiment of the present invention, only when all the sleep conditions are met at the same time, can each network segment in the target vehicle be controlled to enter sleep mode, and it can be accurately determined whether the current network segment needs to be switched to sleep mode. Figure 2 The sleep conditions of the configured network segment are shown in Table 2:
[0071] Table 2
[0072]
[0073] It should be noted that all the sleep conditions in Table 2 are in a relationship of and , and all must be met to switch the network segment to the sleep state. The time involved in the sleep conditions can be set according to actual needs.
[0074] 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 message received by the current first network management segment is periodically determined. It should be noted that the determination period can be configured according to actual conditions.
[0075] Step S132: after the network segment meets the sleep condition, the network state of the network segment is switched to the pre-sleep state.
[0076] In one embodiment of the present invention, to switch the network state of a network segment to a sleep state, it is necessary to first switch the network segment to a pre-sleep state. When the network segment is a first network management segment, after the sleep condition is met, the network segment will switch to a sleep-ready state and stop forwarding the first network message until the network segment does not continue to receive the first network management message within a preset timeout period, at which time the network segment is switched from a sleep-ready state to a pre-sleep state and stops sending application messages. When the network segment is a second network management message, after the sleep condition is met, a node in the network segment will generate a pre-sleep query instruction, send it to the remaining nodes in the network segment, and switch the network state of the network segment to a pre-sleep state.
[0077] Step S133, switching the network segment from the pre-sleep state to the sleep state.
[0078] In one embodiment of the present invention, when the network segment is a 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 that receives the pre-sleep query instruction will respond to the pre-sleep query instruction and send a response message to the node of the pre-sleep query instruction. If the response message meets the preset conditions, for example, the response message is to allow sleep, the network segment is switched from the pre-sleep state to the sleep waiting state until the time that the network segment is in the sleep waiting state reaches the preset second sleep time, the network segment is switched from the sleep waiting state to the sleep state, and the network segment without network management is prevented from continuing to communicate. It should be noted that the preset first sleep time and the preset second sleep time can be the same or different, and can be adjusted according to actual conditions. For example, if the real-time requirement for the target vehicle to switch to the sleep state is high, the preset first sleep time and the preset second sleep time are set to a smaller value.
[0079] In one embodiment of the present invention, if the network segment switches to sleep mode, the bus in the target vehicle is switched to edge detection mode, so that the target vehicle can be awakened by external interruption when all network segments enter sleep mode and the target vehicle is in low power consumption.
[0080] Figure 3 The figure is a flowchart showing vehicle network management sleep according to an exemplary embodiment of the present invention.
[0081] Reference Figure 3In one embodiment of the present invention, the process of switching the network state of a network segment to a sleep state includes five parts. In the first part, taking the first network management network segment as an example, first determine whether the first network management network segment receives a valid first network management message, and then determine whether the first network management network segment is a multi-network management network segment or a single network management network segment. There is a difference between the multi-network management network segment and the single network management network segment in determining whether the sleep condition is met. Among them, the single network management network segment only needs to make a judgment based on the local wake-up event, and the first network management message received by the first network management network segment in the multi-network management network segment within the preset clearing time will also participate in the judgment. In the second part, after the sleep condition is met, the first network state will be switched to the ready sleep state, stop forwarding the first network management message, and then determine whether the preset timeout time is reached. If not, continue to wait. In the third part, when the first network management network segment still does not receive the first network management message after the preset timeout time, the first network management network segment is switched to the pre-sleep state and the application message is stopped forwarding; at the same time, the network state of the second network management network segment is switched to the pre-sleep state, and the second network management network segment meets the sleep condition. In the fourth part, if the first network management segment maintains the pre-sleep state for the preset first sleep time, the first network management segment is switched to the sleep state, and the vehicle bus is switched to the edge detection mode. In the fifth part, if the node that sends the sleep query request in the second network management segment receives the response information of the remaining nodes, and the message meets the preset conditions, the second network management segment is switched to the sleep waiting state until the preset second sleep time is reached, the second network management segment is switched to the sleep state, and the communication without network management is stopped, and the vehicle bus is switched to the edge detection mode.
[0082] Figure 4 It is a schematic diagram showing a first network management segment switching network state according to an exemplary embodiment of the present invention.
[0083] Reference Figure 4 As shown, the network status of the first network management segment includes normal operation status, sleep preparation status, pre-sleep status, sleep status and repeated message status, wherein the normal operation status refers to when the first network management segment is communicating. The repeated message status includes a normal sending sub-state and a fast sending sub-state. Figure 4The network message in is equivalent to the first network message, the network message receiving timeout is equivalent to the above-mentioned preset timeout period for receiving the first network message, and the waiting sleep timeout period is equivalent to the above-mentioned preset first sleep time. In the repeated message state, the current first network management segment will continue to periodically send the first network message to prompt the other segments of the first network management terminal to enter the normal operating state or the sleep preparation state. Among them, in the normal sending sub-state, the first network management segment must send the first network message at a normal period; in the fast sending sub-state, the first network management segment must send the first network management message at a fast period. Figure 4 The network status switching process of the first network management segment shown has been described in the above embodiment and will not be repeated here.
[0084] Figure 5 It is a schematic diagram showing a second network management segment switching network state according to an exemplary embodiment of the present invention.
[0085] Reference Figure 5 As shown, the network status of the second network management segment includes normal operation status, pre-sleep status, normal waiting sleep status and sleep status, wherein the normal operation status refers to when the second network management segment is communicating, the normal waiting sleep status is equivalent to the above-mentioned sleep waiting status, and after the second network management segment wakes up, it will perform network initialization operations on it. Figure 5 The network status switching process of the second network management segment shown has been described in the above embodiment and will not be repeated here.
[0086] Step S140: If the network segment is in a sleeping state and satisfies at least one awakening condition, all network segments of the target vehicle are awakened.
[0087] In one embodiment of the present invention, the wake-up condition includes a local wake-up condition and a remote wake-up condition, wherein the local wake-up condition refers to the detection of the occurrence of a local wake-up event, such as the wake-up condition for detecting vehicle bus activity in Table 1; the remote wake-up condition refers to the detection of a second network management message, such as the wake-up condition for detecting the second network management message in Table 1. It should be noted that the second network management message is valid only if it carries a wake-up flag. When the network segment is a first network management network segment, the network segment can only be awakened when it is in a pre-sleep state or a sleep state; when the network segment is a second network management network segment, the network segment can only be awakened when it is in a sleep preparation state or a sleep state. When the current network segment is awakened, the second network message will be sent to the remaining network segments, thereby awakening all network segments of the target vehicle.
[0088] Figure 6 It is a block diagram of a vehicle network management device shown in an exemplary embodiment of the present invention.
[0089] Reference Figure 6 As shown, the exemplary vehicle network management device includes: a configuration module 601 , a monitoring module 602 , a sleeping module 603 and a wake-up module 604 .
[0090] The configuration module 601 is configured to obtain the vehicle bus in the target vehicle and configure the number and type of network segments according to the vehicle bus; the monitoring module 602 is configured to monitor the network status of each network segment and determine whether the network segment meets the sleep condition or the wake-up condition; the sleep module 603 is configured to switch the network status 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 network segments of the target vehicle if the network segment is in the sleep state and meets at least one wake-up condition.
[0091] It should be noted that the vehicle network management device provided in the above embodiment and the vehicle network management method provided in the above embodiment belong to the same concept, wherein the specific manner in which each module and unit performs operations has been described in detail in the method embodiment and will not be repeated here. In actual applications, the vehicle network management device provided in the above embodiment can distribute the above functions to different functional modules as needed, that is, divide the internal structure of the device into different functional modules to complete all or part of the functions described above, and this is not limited here.
[0092] An embodiment of the present invention also provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by one or more processors, the electronic device implements the vehicle network management method provided in the above-mentioned embodiments.
[0093] Figure 7 The structure diagram of the computer system of the electronic device suitable for implementing the embodiment of the present invention is shown. It should be noted that: Figure 7 The computer system 700 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0094] like Figure 7As shown, the computer system 700 includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 702 or the program loaded from the storage part 708 to the random access memory (RAM) 703, such as executing the method in the above embodiment. In the RAM 703, various programs and data required for system operation are also stored. The CPU 701, the ROM 702 and the RAM 703 are connected to each other through the bus 704. The input / output (I / O) interface 705 is also connected to the bus 704.
[0095] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A 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, etc., is installed on the drive 710 as needed so that a computer program read therefrom is installed into the storage section 708 as needed.
[0096] In particular, according to an embodiment of the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present invention includes a computer program product, which includes a computer program carried on a computer readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 709, and / or installed from a removable medium 711. When the computer program is executed by a central processing unit (CPU) 701, various functions defined in the system of the present invention are executed.
[0097] It should be noted that the computer-readable medium shown in the embodiment of the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable computer program. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. A computer program contained on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0098] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present invention. Among them, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0099] The units involved in the embodiments of the present invention may be implemented by software or hardware, and the units described may also be arranged in a processor. The names of these units do not, in some cases, limit the units themselves.
[0100] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor of a computer, the computer executes the vehicle network management method as described above. The computer-readable storage medium may be included in the electronic device described in the above embodiment, or may exist independently without being assembled into the electronic device.
[0101] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present invention. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed by the present invention shall still be covered by the claims of the present invention.
Claims
1. A vehicle network management method, characterized in that: The method comprises: Obtain a vehicle bus in a target vehicle, and configure the number and type of network segments according to the vehicle bus; Monitoring the network status of each network segment to determine whether the network segment meets the sleep condition or the wake-up condition; If the network segment meets the sleep condition, switching the network state of the network segment to the sleep state; If the network segment is in the sleeping state and satisfies at least one of the awakening conditions, all network segments of the target vehicle are awakened; Wherein, before switching the network state of the network segment to the sleep state, it also includes: the type of the network segment at least includes a first network management network segment of an automotive open system architecture and a second network management network segment of an automotive electronics open system; 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 period, switching the first network management network segment to a pre-sleep state; if the network segment is the second network management network segment, generating a pre-sleep query instruction in the second network management network segment, and switching the second network management network segment to a pre-sleep state; Before the network segment meets the sleep condition, it includes: when the network segment is the first network management segment, determining the validity of the first network management message currently received by the network segment; if the first network management message is valid, determining the number of the first network management segments, wherein the first network management segments include multiple network management segments and single network management segments; if the network segment is the multiple network management segment, determining whether the network segment meets the sleep condition based on the first network management message and the local sleep event; if the network segment is the single network management segment or the second network management segment, determining whether the network segment meets the sleep condition based on the local sleep event; Switching the network state of the network segment to a sleep state includes: if the network segment is the first network management segment, and the first network management segment maintains the pre-sleep state for a preset first sleep time, switching the first network management segment to a sleep state; if the network segment is the second network management segment, responding to the pre-sleep query instruction, sending a response message to the node that generates the pre-sleep query instruction, and when the response message received meets the preset conditions, switching the second network management segment to a sleep waiting state; when the second network management segment maintains the sleep waiting state for a preset second sleep time, switching the second network management segment to a sleep state, and stopping communication without a network management segment, and the network also includes the network without a network management segment.
2. The vehicle network management method according to claim 1, characterized in that: If the network segment is in the sleep state and satisfies at least one of the wake-up conditions, all network segments of the target vehicle are woken up, including: 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; The wake-up condition is divided into a local wake-up condition or a remote wake-up condition; If the network segment detects a second network management message, the remote wake-up condition is met, the current network segment is awakened, and the remaining network segments are awakened through the current network segment, and the second network management message carries a wake-up flag relative to the first network management message; If the network segment detects that a local wake-up event occurs, the local wake-up condition is met, the current network segment is woken up, and the remaining network segments are woken up through the current network segment.
3. The vehicle network management method according to claim 1, characterized in that: 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 the local sleep event includes: clearing the first network management message received by the network segment outside the preset clearing time; Determine whether the network segment meets the sleep condition according to the first network management report and the local sleep event within the preset clearing 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: When the network segment switches to the sleep state, the vehicle bus is switched to an edge detection mode.
5. A vehicle network management device, characterized in that: The device comprises: A configuration module, used for acquiring a vehicle bus in a target vehicle, and configuring the number and type of network segments according to the vehicle bus, wherein the types of the network segments at least include a first network management network segment of an automotive open system architecture and a second network management network segment of an automotive electronics open system; A monitoring module, used to monitor the network status of each of the network segments, and determine whether the network segment meets the sleep condition or the wake-up condition; wherein, when the network segment is the first network management segment, determine the validity of the first network management message currently received by the network segment; if the first network management message is valid, determine the number of the first network management segments, wherein the first network management segment includes multiple network management segments and single network management segments; if the network segment is the multiple network management segment, determine whether the network segment meets the sleep condition based on the first network management message and the local sleep event; if the network segment is the single network management segment or the second network management segment, determine whether the network segment meets the sleep condition based on the local sleep event; A sleep module, used for switching the network state of the network segment to a sleep state if the network segment meets the sleep condition; wherein, before switching the network state of the network segment to the sleep state, it also includes: switching the network segment to a pre-sleep state; if the network segment is the first network management segment, and the first network management segment does not receive the first network management message within a preset timeout period, switching the first network management segment to a pre-sleep state; if the network segment is the second network management segment, generating a pre-sleep query instruction in the second network management segment, and switching the second network management segment to a pre-sleep state; switching the network state of the network segment to a sleep state includes: if the network segment If the network segment is the first network management segment, and the first network management segment maintains the pre-sleep state for a preset first sleep time, the first network management segment is switched to a sleep state; if the segment is the second network management segment, the pre-sleep query instruction is responded to, and a response message is sent to a node that generates the pre-sleep query instruction, and when the response message received meets a preset condition, the second network management segment is switched to a sleep waiting state; when the second network management segment maintains the sleep waiting state for a preset second sleep time, the second network management segment is switched to a sleep state, and communication without a network management segment is stopped, and the network also includes the network segment without a network management segment; The wake-up module is used to wake up all network segments of the target vehicle if the network segment is in the sleep state and satisfies at least one of the wake-up conditions.
6. An electronic device, characterized in that: The electronic device comprises: one or more processors; A storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, enables the electronic device to implement the vehicle network management method as described in any one of claims 1 to 4.
7. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor of a computer, the computer is caused to execute the vehicle network management method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Electric automobile CAN bus control method and system
CN113438140A