A target network segment dormancy state management method and related equipment
By analyzing the dynamic sleep indications in the network management message, controlling the dormant and wake-up state of the target network segment in the automotive network, the problem of dynamic network segment awakening or sleeping in the prior art is solved, and the reduction of system losses and the improvement of vehicle energy efficiency is achieved.
Patent Information
- Application Number
- CN202111444898.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-30
- Publication Date
- 2025-05-13
- Estimated Expiration
- 2041-11-30
AI Technical Summary
The prior art cannot dynamically configure wake-up or sleep in different network segments in automotive networks, resulting in some network segments without functional requirements waiting for other network segments to sleep before they can be sleepy, increasing the power consumption of the entire vehicle.
By obtaining and parsing the dynamic sleep indication identifier in the network management message, including the dynamic sleep indication bit of the current network segment, the sleep indication bit of the target network segment and the wake-up requirement indication bit, it is determined whether the dynamic sleep indication bit is the first identifier, and the sleep and wake-up state of the target network segment are controlled based on these states.
It realizes flexible sleep and wake-up management of different network segments, reduces system losses, reduces waiting for network segments without functional requirements, and improves the energy efficiency of the entire vehicle.
Smart Images

Figure CN114143746B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of computer equipment, and in particular to a target network segment sleep state management method and related equipment. Background Art
[0002] In today's automotive field, with the diversification of automotive functions, the number of controllers on the automotive CAN bus is increasing, and the network topology structure in the car is becoming more and more complex. As the central controller of the automotive network, the gateway needs to coordinate with controllers on different network segments to perform sleep and wake-up operations, which is becoming more and more complex, and it is no longer able to sleep and wake up at the same time with different network segments.
[0003] For example, in the existing technical solutions, under normal circumstances, the gateway will determine whether each network segment meets the sleep / wake-up conditions. When all network segments meet the sleep / wake-up conditions, the gateway sends a sleep / wake-up instruction, and the controllers on all network segments perform the sleep / wake-up operation after receiving the instruction.
[0004] After research, the applicant found that in the existing solution, it is necessary to agree in advance on the wake-up requirements for each network segment. For example, when network segment A wakes up, network segment B also wakes up. It is impossible to dynamically configure network segment B to wake up or sleep when network segment A wakes up.
[0005] In the existing solution, all network segments sleep and wake up at the same time, which will cause some network segments with no functional requirements to wait for other network segments without functional requirements before they can sleep, which will inevitably increase the power consumption of the entire vehicle. Summary of the invention
[0006] In view of this, an embodiment of the present invention provides a target network segment sleep state management method and related devices to reduce system loss.
[0007] To achieve the above objectives, the embodiments of the present invention provide the following technical solutions:
[0008] A method for managing a dormant state of a target network segment, comprising:
[0009] Obtain network management messages;
[0010] Parse the network management message to obtain dynamic sleep indication identifiers of each network segment, the sleep indication identifier including: a dynamic sleep indication bit corresponding to the current network segment, a target network segment sleep indication bit and a target network segment wake-up requirement indication bit, the dynamic sleep indication bit is used to indicate whether the current network segment has a dynamic sleep wake-up requirement, the network segment sleep indication bit is used to indicate whether the target network segment under the current dynamic sleep strategy remains awake, and the network segment wake-up requirement indication bit is used to indicate whether there is an active wake-up requirement for a node in the current network segment;
[0011] Determining whether the dynamic sleep indication bit is a first flag;
[0012] When the dynamic sleep indication bit is the first flag, the sleep and wake-up states of the target network segments are controlled based on the states of the network segment sleep indication bit and the network segment wake-up requirement indication bit.
[0013] Optionally, in the target network segment sleep state management method, the controlling of the sleep and wake-up states of each target network segment based on the network segment sleep indication bit and the network segment wake-up requirement indication bit states includes:
[0014] The target network segment marked as the first identifier in both the network segment sleep indication bit and the network segment wake-up requirement indication bit is controlled to enter a sleep state, and other network segments enter a keep-awake state.
[0015] Optionally, in the above target network segment sleep state management method, controlling the target network segment to enter the sleep state includes:
[0016] When it is necessary to control the target network segment to enter a sleep state, determine whether the dynamic sleep indication bit, the target network segment sleep indication bit and the target network segment wake-up requirement indication bit corresponding to the target network segment in other network management messages are all first identifiers. If so, control the target network segment to enter a sleep state.
[0017] Optionally, the target network segment sleep state management method further includes: parsing the network management message to obtain a node wake-up indication bit of the current network segment;
[0018] When the node wake-up indication bit is a first flag, the current network segment is awakened; when the node wake-up indication bit is a second flag, the state of the current segment is maintained.
[0019] Optionally, in the above-mentioned target network segment sleep state management method, the network management message is an in-vehicle network management message.
[0020] Optionally, the target network segment sleep state management method further includes:
[0021] Determine whether the vehicle meets the vehicle sleep conditions. If the vehicle sleep conditions are met, control all network segments of the vehicle to enter the sleep state;
[0022] If the vehicle sleep condition is not met, a trigger instruction for obtaining a network management message is generated;
[0023] When the gateway is in sleep mode, determine whether the gateway needs to be awakened. If so, wake up the gateway.
[0024] A target network segment dormancy state management device, comprising:
[0025] A message collection unit, used to obtain network management messages;
[0026] A parsing unit, used for parsing the network management message to obtain the dynamic sleep indication mark of each network segment, the sleep indication mark includes: a dynamic sleep indication bit corresponding to the current network segment, a target network segment sleep indication bit and a target network segment wake-up demand indication bit, the dynamic sleep indication bit is used to indicate whether the current network segment has a dynamic sleep wake-up demand, the network segment sleep indication bit is used to indicate whether the target network segment under the current dynamic sleep strategy is in a wake-up state, and the network segment wake-up demand indication bit is used to indicate whether there is an active wake-up demand for a node in the current network segment;
[0027] A state control unit is used to obtain a network management message and a parsing result thereof, indicating whether the dynamic sleep indication bit is a first identifier; when the dynamic sleep indication bit is a first identifier, the sleep and wake-up states of each target network segment are controlled based on the states of the network segment sleep indication bit and the network segment wake-up requirement indication bit.
[0028] Optionally, in the target network segment sleep state management device, the state control unit, when controlling the sleep and wake-up states of each target network segment based on the network segment sleep indication bit and the network segment wake-up demand indication bit states, is specifically used to:
[0029] The target network segment marked as the first identifier in both the network segment sleep indication bit and the network segment wake-up requirement indication bit is controlled to enter a sleep state, and other network segments enter a keep-awake state.
[0030] A vehicle-mounted computer comprises a memory and a processor; the memory stores a program suitable for execution by the processor, the program being used to:
[0031] Obtain network management messages;
[0032] Parse the network management message to obtain dynamic sleep indication identifiers of each network segment, the sleep indication identifier including: a dynamic sleep indication bit corresponding to the current network segment, a target network segment sleep indication bit and a target network segment wake-up requirement indication bit, the dynamic sleep indication bit is used to indicate whether the current network segment has a dynamic sleep wake-up requirement, the network segment sleep indication bit is used to indicate whether the target network segment under the current dynamic sleep strategy remains awake, and the network segment wake-up requirement indication bit is used to indicate whether there is an active wake-up requirement for a node in the current network segment;
[0033] Determining whether the dynamic sleep indication bit is a first flag;
[0034] When the dynamic sleep indication bit is the first flag, the sleep and wake-up states of the target network segments are controlled based on the states of the network segment sleep indication bit and the network segment wake-up requirement indication bit.
[0035] A car is provided with the above-mentioned on-board computer.
[0036] Based on the above technical scheme, the above scheme provided by the embodiment of the present invention, after obtaining the network management message corresponding to each network segment, parses the message, makes a judgment based on the indication status of the dynamic sleep indication bit of each network segment, the target network segment sleep indication bit and the target network segment wake-up requirement indication bit in the message, and controls some network segments that meet the conditions to enter the sleep state based on the judgment result. For the increasingly complex in-vehicle network, the present invention can flexibly and dynamically realize the sleep and wake-up of different network segments, reducing system losses. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0038] Figure 1 A flowchart of a target network segment dormancy state management method disclosed in an embodiment of the present application;
[0039] Figure 2 This is a schematic diagram of the relationship between the gateway and the network segment;
[0040] Figure 3 A schematic diagram of the structure of a network management message disclosed in an embodiment of the present application;
[0041] Figure 4 , Figure 5 and Figure 6 They are network management messages configured based on the needs of CAN0, CAN1 and CAN2 network segments;
[0042] Figure 7 , Figure 8 and Fig. 9 They are complete network management messages of CAN0 segment, CAN1 segment and CAN2 segment after combining the status of other segments;
[0043] Fig.10 A schematic diagram of a process for managing a target network segment sleep state according to another embodiment of the present application;
[0044] Fig.11 This is a schematic diagram of the structure of the target network segment sleep state management device disclosed in an embodiment of the present application. DETAILED DESCRIPTION
[0045] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0046] In order to further reduce system power consumption, this application discloses a target network segment sleep state management method, see Figure 1 , the method disclosed in the embodiment of the present application includes:
[0047] Step S101: Obtain a network management message.
[0048] In this step, the network management message is an in-vehicle network management message.
[0049] See also Figure 2 , each gateway will correspond to multiple network segments. Figure 2 Here, CAN0, CAN1, and CAN2 represent the network segments under the gateway respectively, and 0_1, 0_2, 1_1, 1_2, 2_1, and 2_2 represent the nodes on each network segment respectively.
[0050] In the technical solution disclosed in this embodiment, each network segment of the vehicle corresponds to a network management message. This solution implements the sleep and wake-up process of each target network segment by defining the following data format in the user data (UserData) in the network management message.
[0051] Figure 3 A schematic diagram of the structure of the network management message corresponding to each target network segment disclosed in the embodiment of the present application is shown in FIG. Figure 3 Take the structure of the network management message disclosed in the embodiment of the present application as an example to illustrate that the user data is in Byte2-Byte7 in the network management message.
[0052] See also Figure 3 The Byte2 field in the message is used to store the dynamic sleep indication bit of the network segment (recorded as the current network segment) corresponding to the network management message. When this position is 0, it indicates that the nodes in the current network segment have no dynamic sleep wake-up requirements. When this position is 1, it indicates that the nodes in the current network segment have dynamic sleep wake-up requirements. The Byte2 field in the message is used to store the sleep indication bit of the network segment.
[0053] See also Figure 3The Byte3 field in the message is used to store the segment sleep indication bits of other target segments. Each segment sleep indication bit in the Byte3 field corresponds to a target segment. For example, the CAN0 segment sleep indication bit in the Byte3 field refers to the segment sleep indication bit of the CAN0 segment, the CAN1 segment sleep indication bit refers to the segment sleep indication bit of the CAN1 segment, and the CAN2 segment sleep indication bit refers to the segment sleep indication bit of the CAN2 segment. When the segment sleep indication bit is set to 0, it indicates that the current dynamic sleep strategy keeps the segment awake. When the segment sleep indication bit is set to 1, it indicates that the current dynamic sleep strategy does not keep the segment awake. For example, the segment sleep indication bit position of the CAN0 segment is 0, indicating that the current dynamic sleep strategy keeps the CAN0 segment awake. The segment sleep indication bit position of the CAN0 segment is 1, indicating that the current dynamic sleep strategy does not keep the CAN0 segment awake.
[0054] See also Figure 3 , the Byte6 field in the message is used to store the segment wake-up requirement indication bits of other target network segments. Each segment wake-up requirement indication bit in the Byte6 field corresponds to a target network segment. For example, the CAN0 network segment wake-up requirement indication bit in the Byte6 field refers to the segment wake-up requirement indication bit of the CAN0 network segment, the CAN1 network segment wake-up requirement indication bit refers to the segment wake-up requirement indication bit of the CAN1 network segment, and the CAN2 network segment wake-up requirement indication bit refers to the segment wake-up requirement indication bit of the CAN2 network segment. When the segment wake-up requirement indication bit is 0, it indicates that there are nodes in the current network segment with active wake-up requirements. When the segment wake-up requirement indication bit is 1, it indicates that there are no active wake-up requirements for nodes in the current network segment. For example, in the Byte6 field, the segment wake-up requirement indication bit position of the CAN0 network segment is 0, indicating that the current dynamic sleep strategy maintains the wake-up of the CAN0 network segment. The segment wake-up requirement indication bit position of the CAN0 network segment is 1, indicating that the current dynamic sleep strategy does not maintain the wake-up of the CAN0 network segment.
[0055] Step S102: parsing the network management message to obtain the dynamic sleep indication identifier of each network segment.
[0056] In this step, the dynamic sleep indication flag of each network segment is obtained by parsing each acquired network management message, and the sleep indication flag specifically includes the dynamic sleep indication bit corresponding to the current network segment introduced in step S101, the target network segment sleep indication bit and the target network segment wake-up demand indication bit, the dynamic sleep indication bit is used to indicate whether the current network segment has a dynamic sleep wake-up demand, the network segment sleep indication bit is used to indicate whether the target network segment under the current dynamic sleep strategy remains awake, and the network segment wake-up demand indication bit is used to indicate whether there is an active wake-up demand for a node in the current network segment;
[0057] Step S103: determining whether the dynamic sleep indication bit is a first flag;
[0058] Among them, the priority of the dynamic sleep indication bit is higher than the network segment sleep indication bit and the target network segment wake-up requirement indication bit. When the dynamic sleep indication bit is 0, the gateway ignores the data of the network segment sleep indication bit and the target network segment wake-up requirement indication bit.
[0059] That is, in this solution, the first preset identifier refers to 1, and relative to the first identifier, the second identifier refers to 0, and it is determined whether the dynamic sleep indication bit parsed is the first identifier, that is, it is determined whether the dynamic sleep indication bit in the network management message is set to 1. When it is set to 1, it indicates that the node in the current network segment has a dynamic sleep wake-up demand. At this time, step S104 is executed;
[0060] Step S104: When the dynamic sleep indication bit is the first flag, the sleep and wake-up states of each target network segment are controlled based on the states of the network segment sleep indication bit and the network segment wake-up requirement indication bit.
[0061] In this step, when it is detected that the dynamic sleep indication bit in the network management message is 1, the segment sleep indication bit and the segment wake-up requirement indication bit status corresponding to each parsed target network segment are obtained, and the sleep and wake-up status of the target network segment is controlled based on the segment sleep indication bit and the segment wake-up requirement indication bit status. In this step, when the segment sleep indication bit corresponding to a certain target network segment indicates that the current dynamic sleep strategy maintains the wake-up of the target network segment, and the segment wake-up requirement indication bit corresponding to the target network segment indicates that there is a node in the target network segment that has an active wake-up requirement, the target network segment is controlled to be in the wake-up state. When the segment sleep indication bit corresponding to a certain target network segment indicates that the current dynamic sleep strategy does not maintain the wake-up of the target network segment, and the segment wake-up requirement indication bit corresponding to the target network segment indicates that there is a node in the target network segment that has no active wake-up requirement, the target network segment is controlled to be in the sleep state.
[0062] In the technical solution disclosed in the above embodiment of the present application, after obtaining the network management message corresponding to each network segment, the message is parsed, and a judgment is made based on the indication status of the dynamic sleep indication bit of each network segment, the target network segment sleep indication bit and the target network segment wake-up demand indication bit in the message, and based on the judgment result, the network segments that meet the conditions are controlled to enter the sleep state. For the increasingly complex in-vehicle network, the present invention can flexibly and dynamically realize the sleep and wake-up of different network segments, reducing system loss. For example, it is of great significance to reduce bus load and automobile power consumption.
[0063] In a technical solution disclosed in another embodiment of the present application, if the network segment sleep indication bit corresponding to a certain target network segment conflicts with its network segment wake-up requirement indication bit, the target network segment can be controlled to be in the wake-up state at this time, that is, in the above solution, based on the status of the network segment sleep indication bit and the network segment wake-up requirement indication bit, the sleep and wake-up states of each target network segment are controlled, specifically: the target network segment marked with the first identifier (identified as 1) in both the network segment sleep indication bit and the network segment wake-up requirement indication bit is controlled to enter the sleep state, and other network segments (network segment sleep indication bits and network segment wake-up requirement indication bits are marked with the second identifier, or network segment sleep indication bits and network segment wake-up requirement indication bits conflict) enter the stay awake state.
[0064] In the technical solution disclosed in another embodiment of the present application, when controlling a target network segment to enter a sleep state, it is also necessary to control the dynamic sleep indication flag in the network management message corresponding to the target network segment to be set to 0. When controlling a target network segment to enter a wake-up state, it is also necessary to control the dynamic sleep indication flag in the network management message corresponding to the target network segment to be set to 1.
[0065] In the technical solution disclosed in this embodiment, when the dynamic sleep indication position corresponding to the network segment CAN0 is 1, the network segment sleep indication bit needs to match the network segment wake-up demand indication bit, for example: the network segment sleep indication bit corresponding to CAN0 is 1, the network segment sleep indication bit corresponding to CAN1 is 0, and the network segment sleep indication bit corresponding to CAN2 is 1, indicating that the nodes in the CAN0 network segment want to keep the network segments CAN0 and CAN2 awake, and at the same time want the network segment CAN1 to sleep, which requires that the nodes in the network segment CAN1 themselves have met the sleep conditions, otherwise the gateway will ignore the current dynamic sleep request. That is, in the above scheme disclosed in the above embodiment of the present application, when controlling a target network segment to enter a sleep state, the above scheme also includes: judging whether the nodes of the target network segment meet the sleep conditions, and if the sleep conditions are met, controlling the target field to enter a sleep state.
[0066] When there are multiple target network segments or multiple nodes in the same target network segment set the dynamic sleep indication bit, the gateway needs to integrate the network segment sleep indication bit and the network segment wake-up requirement indication bit in the message with the dynamic sleep indication bit set. When the integrated information conflicts, the gateway will ignore the current dynamic sleep indication. That is, in the technical solution disclosed in this embodiment, in order to ensure that other network segments will not be affected when a certain network segment is controlled to enter a sleep state, in this solution, when the target network segment is controlled to enter a sleep state, it specifically includes: when it is necessary to control the target network segment to enter a sleep state, determine whether the dynamic sleep indication bit, the target network segment sleep indication bit and the target network segment wake-up requirement indication bit corresponding to the target network segment that needs to enter a sleep state in other network management messages are all the first identifiers. If so, the target network segment is controlled to enter a sleep state. Otherwise, the target field is not controlled to enter a sleep state.
[0067] The technical solution disclosed in another embodiment of the present application also includes:
[0068] Parsing the network management message to obtain a node wake-up indication bit of the current network segment;
[0069] When the node wake-up indication bit is the first identifier, the current network segment is woken up. When the node wake-up indication bit is the second identifier, the state of the current field is maintained. At the same time, based on the node wake-up indication bit, the configuration state of the network segment wake-up requirement indication bit corresponding to the network segment in each message management network is adjusted. In this scheme, the network segment wake-up requirement indication bit corresponding to each network segment is consistent with its node wake-up indication bit.
[0070] Furthermore, in order to facilitate users to more clearly understand the specific implementation process of the technical solution disclosed in this application, Figure 4-Figure 6 Take the technical solution disclosed in this application as an example to explain it in detail.
[0071] See also Figure 4 , Figure 5 and Figure 6 , Figure 4 The corresponding one is the network management message configured by the CAN0 network segment based on its own needs. Figure 5 The corresponding one is the network management message configured by the CAN1 segment based on its own needs. Figure 6 The corresponding is the network management message configured by the CAN2 segment based on its own needs. Figure 4-Figure 6 In the corresponding network management message, the dynamic sleep indication position corresponding to the CAN0 network segment is 0, and the dynamic sleep indication position corresponding to the CAN1 network segment and the CAN2 network segment is 1, indicating that the CAN0 node hopes to keep some network segments in partial network segment sleep state.
[0072] In the network management message configured based on the needs of the CAN0 network segment, the node wake-up indication bit SI is 0, and the node wake-up indication bits SI of the CAN1 and CAN2 network segments are both 1 (SI is Figure 3 The data bit in the data Opcode, when it is 1, it represents the sending node), indicating that the nodes in the CAN0 network segment have a wake-up requirement, and the nodes in the CAN1 network segment and the CAN2 network segment do not have a wake-up requirement.
[0073] In the network management message configured by the CAN0 network segment based on its own needs, the sleep indication position corresponding to the CAN0 network segment and the CAN2 network segment is 0, and the sleep indication position corresponding to the CAN2 network segment is 1, indicating that the nodes in the CAN0 network segment hope to keep the CAN0 network segment and the CAN2 network segment awake, but not keep the CAN1 network segment awake.
[0074] According to the above situation, Figure 4-Figure 6 The network management messages of the corresponding network segments are combined to obtain the complete network management messages of each network segment. The complete message data sent by the gateway is as follows: Figure 7-9 shown.
[0075] For example Figure 7-Figure 9 There is no conflict between the sleep indication bit and the wake-up demand indication bit shown in the figure. The gateway sends a message with the node wake-up indication bit SI as 1 in the CAN1 network segment to guide the CAN1 network segment to enter sleep mode, and sends a message with the node wake-up indication bit SI as 0 in the CAN0 network segment and the CAN2 network segment to keep the CAN0 network segment and the CAN2 network segment awake, and enter the sleep state of some network segments.
[0076] In the technical solution disclosed in another embodiment of the present application, when the gateway needs to enter the normal state from the dormant state of some network segments, the gateway guides the dormant network segments to re-enter the awakened state. At this time, the node awakening indication bit SI of each dormant network segment can be set to 0, or the dynamic indication bit of the dormant network segment can be cleared, or the dormant indication bit of the dormant network segment can be cleared. When any of the above conditions occurs, the gateway can guide each CAN network segment to be awakened and control the gateway to enter the normal state.
[0077] In the technical solution disclosed in the embodiment of the present application, the above-mentioned target network segments may correspond to the same gateway, that is, the above-mentioned solution disclosed in the embodiment of the present application is mainly used to control the various network segments under the same gateway, and the network management message is the network management message corresponding to the various network segments under the same gateway. In the technical solution disclosed in the embodiment of the present application, the gateway may have three states, which are sleep state, normal state and partial sleep state, wherein, in the sleep state, the gateway is in a low power consumption mode, in the normal state, all the network segments of the gateway are in an awake state, and in the partial sleep state, some network segments corresponding to the gateway are in an awake state, and some network segments are in a sleep state. The technical solution disclosed in the above-mentioned embodiment of the present application mainly introduces the operation process of the gateway in a partial sleep state. In the technical solution disclosed in the embodiment of the present application, in order to control the gateway to switch between the sleep state, normal state and partial sleep state, see Fig.10 , the above scheme also includes:
[0078] Step S201: When the gateway is in a normal state, determine whether the gateway meets the vehicle sleep condition. If so, execute step S202; otherwise, generate a trigger instruction for obtaining a network management message and execute step S101.
[0079] In the technical solution disclosed in the embodiment of the present application, some logical judgment strategies can be pre-set to judge whether the vehicle sleep condition is met based on these logical judgment strategies. When the vehicle sleep condition is met, it indicates that the gateway can enter the sleep state;
[0080] Step S202: Control the gateway to enter a dormant state.
[0081] Step S203: When the gateway is in a dormant state, determine whether the gateway needs to be awakened. If so, proceed to step S204;
[0082] Step S204: Wake up the gateway.
[0083] This embodiment discloses a target network segment sleep state management device. For the specific working contents of each unit in the device, please refer to the contents of the above method embodiment.
[0084] The target network segment sleep state management device provided by an embodiment of the present invention is described below. The target network segment sleep state management device described below and the target network segment sleep state management method described above can be referenced to each other.
[0085] See also Fig.11 , a target network segment dormancy state management device disclosed in an embodiment of the present application may include:
[0086] The message collection unit 100 corresponds to step S101 in the above method and is used to obtain network management messages;
[0087] The parsing unit 200 corresponds to steps S102-S103 in the above method, and is used to parse the network management message to obtain the dynamic sleep indication identifier of each network segment, wherein the sleep indication identifier includes: a dynamic sleep indication bit corresponding to the current network segment, a target network segment sleep indication bit, and a target network segment wake-up requirement indication bit, wherein the dynamic sleep indication bit is used to indicate whether the current network segment has a dynamic sleep wake-up requirement, the network segment sleep indication bit is used to indicate whether the target network segment under the current dynamic sleep strategy is in a wake-up state, and the network segment wake-up requirement indication bit is used to indicate whether there is an active wake-up requirement for a node in the current network segment;
[0088] The state control unit 300 corresponds to step S104 in the above method and is used to determine whether the dynamic sleep indication bit is a first identifier; when the dynamic sleep indication bit is a first identifier, the sleep and wake-up states of each target network segment are controlled based on the state of the network segment sleep indication bit and the network segment wake-up requirement indication bit.
[0089] Corresponding to the above method, the state control unit, when controlling the sleep and wake-up states of each target network segment based on the network segment sleep indication bit and the network segment wake-up requirement indication bit states, is specifically used to:
[0090] The target network segment marked as the first identifier in both the network segment sleep indication bit and the network segment wake-up requirement indication bit is controlled to enter a sleep state, and other network segments enter a keep-awake state.
[0091] Corresponding to the above method, in a technical solution disclosed in another embodiment of the present application, the target network segment sleep state management device is further used for:
[0092] When the gateway is in a normal state, determine whether the gateway meets the vehicle sleep condition. If so, control the gateway to enter the sleep state. Otherwise, generate a trigger instruction for obtaining the network management message to trigger the message collection unit 100. When the gateway is in a sleep state, determine whether the gateway needs to be awakened. If so, wake up the gateway.
[0093] For other functions of the message collection unit 100, the parsing unit 200 and the state control unit 300, please refer to the above method introduction, which will not be repeated again.
[0094] Corresponding to the above method, the present application further discloses an on-board computer, including a memory and a processor; the memory stores a program suitable for execution by the processor, and the program is used to execute the method disclosed in the above embodiment of the present application, for example, the program is used to execute:
[0095] Obtain network management messages;
[0096] Parse the network management message to obtain dynamic sleep indication identifiers of each network segment, the sleep indication identifier including: a dynamic sleep indication bit corresponding to the current network segment, a target network segment sleep indication bit and a target network segment wake-up requirement indication bit, the dynamic sleep indication bit is used to indicate whether the current network segment has a dynamic sleep wake-up requirement, the network segment sleep indication bit is used to indicate whether the target network segment under the current dynamic sleep strategy remains awake, and the network segment wake-up requirement indication bit is used to indicate whether there is an active wake-up requirement for a node in the current network segment;
[0097] Obtaining a network management message and a parsing result thereof of whether the dynamic sleep indication bit is a first identifier;
[0098] When the dynamic sleep indication bit is the first flag, the sleep and wake-up states of the target network segments are controlled based on the states of the network segment sleep indication bit and the network segment wake-up requirement indication bit.
[0099] Corresponding to the above-mentioned on-board computer, the present application also discloses a car using the above-mentioned on-board computer.
[0100] For the convenience of description, the above system is described as being divided into various modules according to their functions. Of course, when implementing the present invention, the functions of each module can be implemented in the same or multiple software and / or hardware.
[0101] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without creative work.
[0102] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0103] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0104] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0105] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A target network segment dormancy state management method, characterized in that: include: Obtain network management messages; The network management message is parsed to obtain the dynamic sleep indication identifier of each network segment, the sleep indication identifier includes: a dynamic sleep indication bit corresponding to the current network segment, a target network segment sleep indication bit and a target network segment wake-up requirement indication bit, the dynamic sleep indication bit is used to indicate whether the current network segment has a dynamic sleep wake-up requirement, the network segment sleep indication bit is used to indicate whether the target network segment under the current dynamic sleep strategy remains awake, and the network segment wake-up requirement indication bit is used to indicate whether there is an active wake-up requirement in the current network segment; wherein the priority of the dynamic sleep indication bit is higher than the network segment sleep indication bit and the target network segment wake-up requirement indication bit; Determine whether the dynamic sleep indication bit is a first flag or a second flag, the first flag is 1, the second flag is 0, and the first flag indicates that a node in the current network segment has a dynamic sleep wake-up requirement; When the dynamic sleep indication bit is the first flag, based on the network segment sleep indication bit and the network segment wake-up requirement indication bit states, controlling the sleep and wake-up states of each target network segment; When the dynamic sleep indication bit is the second flag, data of the network segment sleep indication bit and the target network segment wake-up requirement indication bit are ignored.
2. The target network segment sleep state management method according to claim 1, characterized in that: The controlling the sleep and wake-up states of each target network segment based on the network segment sleep indication bit and the network segment wake-up requirement indication bit states includes: The target network segment marked as the first identifier in both the network segment sleep indication bit and the network segment wake-up requirement indication bit is controlled to enter a sleep state, and other network segments enter a keep-awake state.
3. The target network segment sleep state management method according to claim 2, characterized in that: When controlling the target network segment to enter the dormant state, it includes: When it is necessary to control the target network segment to enter a sleep state, determine whether the dynamic sleep indication bit, the target network segment sleep indication bit and the target network segment wake-up requirement indication bit corresponding to the target network segment in other network management messages are all first identifiers. If so, control the target network segment to enter a sleep state.
4. The target network segment sleep state management method according to claim 2, characterized in that: Also includes: Parsing the network management message to obtain a node wake-up indication bit of the current network segment; When the node wake-up indication bit is a first flag, the current network segment is awakened; when the node wake-up indication bit is a second flag, the state of the current network segment is maintained.
5. The target network segment sleep state management method according to claim 2, characterized in that: The network management message is an in-vehicle network management message.
6. The target network segment sleep state management method according to claim 1, characterized in that: Before obtaining the network management message, the method further includes: Determine whether the vehicle meets the vehicle sleep conditions. If the vehicle sleep conditions are met, control all network segments of the vehicle to enter the sleep state; If the vehicle sleep condition is not met, a trigger instruction for obtaining a network management message is generated; When the gateway is in sleep mode, determine whether the gateway needs to be awakened. If so, wake up the gateway.
7. A target network segment dormancy state management device, characterized in that: include: A message collection unit, used to obtain network management messages; A parsing unit, used for parsing the network management message to obtain the dynamic sleep indication mark of each network segment, the sleep indication mark includes: a dynamic sleep indication bit corresponding to the current network segment, a target network segment sleep indication bit and a target network segment wake-up requirement indication bit, the dynamic sleep indication bit is used to indicate whether the current network segment has a dynamic sleep wake-up requirement, the network segment sleep indication bit is used to indicate whether the target network segment under the current dynamic sleep strategy remains awake, and the network segment wake-up requirement indication bit is used to indicate whether there is an active wake-up requirement in the current network segment; wherein the priority of the dynamic sleep indication bit is higher than the network segment sleep indication bit and the target network segment wake-up requirement indication bit; A state control unit is used to obtain a network management message and a parsing result thereof, in which the dynamic sleep indication bit is a first identifier or a second identifier, wherein the first identifier is 1 and the second identifier is 0, and the first identifier indicates that a node in the current network segment has a dynamic sleep and wake-up requirement; when the dynamic sleep indication bit is a first identifier, the sleep and wake-up status of each target network segment is controlled based on the status of the network segment sleep indication bit and the network segment wake-up requirement indicator bit; when the dynamic sleep indication bit is a second identifier, the data of the network segment sleep indication bit and the target network segment wake-up requirement indicator bit are ignored.
8. The target network segment dormancy state management device according to claim 7, characterized in that: The state control unit, when controlling the sleep and wake-up states of each target network segment based on the network segment sleep indication bit and the network segment wake-up requirement indication bit states, is specifically used to: The target network segment marked as the first identifier in both the network segment sleep indication bit and the network segment wake-up requirement indication bit is controlled to enter a sleep state, and other network segments enter a keep-awake state.
9. A vehicle-mounted computer, characterized in that: The invention comprises a memory and a processor; the memory stores a program suitable for execution by the processor, and the program is used to: Obtain network management messages; The network management message is parsed to obtain the dynamic sleep indication identifier of each network segment, the sleep indication identifier includes: a dynamic sleep indication bit corresponding to the current network segment, a target network segment sleep indication bit and a target network segment wake-up requirement indication bit, the dynamic sleep indication bit is used to indicate whether the current network segment has a dynamic sleep wake-up requirement, the network segment sleep indication bit is used to indicate whether the target network segment under the current dynamic sleep strategy remains awake, and the network segment wake-up requirement indication bit is used to indicate whether there is an active wake-up requirement in the current network segment; wherein the priority of the dynamic sleep indication bit is higher than the network segment sleep indication bit and the target network segment wake-up requirement indication bit; Obtaining a network management message and a parsing result thereof, in which the dynamic sleep indication bit is a first identifier or a second identifier, wherein the first identifier is 1 and the second identifier is 0, and the first identifier indicates that a node in the current network segment has a dynamic sleep wake-up requirement; When the dynamic sleep indication bit is the first flag, based on the network segment sleep indication bit and the network segment wake-up requirement indication bit states, controlling the sleep and wake-up states of each target network segment; When the dynamic sleep indication bit is the second flag, data of the network segment sleep indication bit and the target network segment wake-up requirement indication bit are ignored.
10. An automobile, characterized in that: The vehicle-mounted computer according to claim 9 is used.
Citation Information
Patent Citations
Whole vehicle network partial dormancy management system and method, and central gateway
CN113259421A