Network management method, in-vehicle network system, electronic device, computer readable storage medium, and computer program product
By adopting a combination of direct and indirect network management on the main node of the vehicle network system, the problem of inflexible traditional network management methods is solved, and flexible management and accurate control of the main nodes in the main network and sub-network states are achieved.
Patent Information
- Application Number
- CN202410623365.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-17
- Publication Date
- 2025-04-04
AI Technical Summary
The traditional in-vehicle network management method adopts indirect network management strategies, and the management method is not flexible enough, making it difficult to effectively manage the status of the master node in the main network and subnet.
By implementing direct network management on the master node, and managing the state of the master node in the subnet through indirect network management, the state of the master node in the main network and subnet is flexibly managed.
It realizes flexible management of the master node in the main network and sub-network state, improves the flexibility and accuracy of network management, and can determine the status of the master node in a timely and accurate manner.
Smart Images

Figure CN119766594A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle technology, and in particular to a network management method, a vehicle network system, an electronic device, a computer-readable storage medium, and a computer program product. Background Art
[0002] With the rapid development of the vehicle industry, vehicles have more and more functions, and the communication between various electronic devices in the vehicle is also increasing. The vehicle network system is changing from an integrated gateway architecture to a central integration and distributed gateway regional control architecture. However, the traditional network management method adopts an indirect network management strategy, which is not flexible enough. Summary of the invention
[0003] The embodiments of the present application provide a network management method, an in-vehicle network system, an electronic device, a computer-readable storage medium, and a computer program product, which can flexibly manage the status of a master node in a main network and a sub-network.
[0004] A first aspect of an embodiment of the present application provides a network management method, the method being applied to an in-vehicle network system, the in-vehicle network system comprising a main network, a sub-network and at least one master node, the master node being connected to the main network and the sub-network;
[0005] The at least one master node comprises a first master node;
[0006] The first master node manages the state of the first master node in the master network by direct network management;
[0007] The first master node manages the state of the first master node in the sub-network by means of indirect network management.
[0008] Optionally, the method further includes:
[0009] The first master node determines a state of the first master node based on a state of the first master node in the main network and a state of the first master node in the sub-network.
[0010] Optionally, the first master node manages the state of the first master node in the primary network by direct network management, including:
[0011] When the first master node is actively awakened or passively awakened, the first master node enters a repeated message state;
[0012] When the first master node has a network request, the first master node enters a normal operating state.
[0013] Optionally, the first master node manages the state of the first master node in the primary network by direct network management, including:
[0014] When the first master node releases the network request, the first master node enters a ready-to-sleep state;
[0015] When the first master node is in the ready-to-sleep state, starting a first timer to start timing;
[0016] When the timing duration of the first timer exceeds a first duration, the first master node maintains the ready-to-sleep state within the first duration, and other master nodes have no network requests, the first master node enters a bus pre-sleep state, and the other master nodes are master nodes other than the first master node among the at least one master node.
[0017] Optionally, the first master node manages the state of the first master node in the sub-network by indirect network management, including:
[0018] When the hard-line signal of the first master node is valid, the first master node enters a normal mode;
[0019] When the hard line signal of the first master node is invalid and the signal line of the sub-network is invalid, the first master node enters a waiting sleep state;
[0020] When the first master node enters the waiting sleep state, starting a second timer to count;
[0021] When the timing duration of the second timer exceeds a second duration and the first master node maintains the waiting sleep state within the second duration, the first master node enters a sleep indication state;
[0022] When the first master node enters the sleep indication state, starting a third timer to start timing;
[0023] When the timing duration of the third timer exceeds the third duration and the first master node maintains the sleep indication state within the third duration, the first master node enters the listening-only state.
[0024] Optionally, the first master node determines the state of the first master node based on the state of the first master node in the main network and the state of the first master node in the sub-network, including:
[0025] When the state of the first master node in the main network is a bus pre-sleep state, and the state of the first master node in the sub-network is a listen-only state, starting a fourth timer for timing;
[0026] When the timing duration of the fourth timer exceeds the fourth duration, and the state of the first master node in the main network and the state of the first master node in the fourth network remain unchanged during the fourth duration, it is determined that the state of the first master node is a bus sleep state.
[0027] Optionally, the first master node manages the state of the first master node in the primary network by direct network management, including:
[0028] When the first master node is in a sleep preparation state or a normal operation state, and the repeat bit of the network management message received by the first master node is valid, the first master node enters a repeat message state.
[0029] Optionally, the first master node manages the state of the first master node in the sub-network by indirect network management, including:
[0030] When the first master node is in a bus sleep state and the first master node is bus awakened or locally awakened, the first master node enters a waiting sleep state;
[0031] When the first master node is in a waiting sleep state or a sleep indication state or a listening-only state, and the hard line signal of the first master node is valid or the signal line of the sub-network is valid, the first master node enters a normal mode;
[0032] When the first master node is in a waiting sleep state and the first master node receives a signal action request or a bus access request from a sub-network, the first master node maintains the waiting sleep state;
[0033] When the first master node is in the sleep indication state and the first master node receives a signal action request or a bus access request from a sub-network, the first master node enters a waiting sleep state;
[0034] When the first master node is in a listening-only state and the first master node receives a signal action request or a bus access request from a sub-network, the first master node enters a waiting sleep state.
[0035] Optionally, each master node is connected to at least two slave nodes via a sub-network, and the slave nodes connected to each master node are different.
[0036] Optionally, the vehicle network system further includes a central computing unit, and each master node is connected to the central computing unit via a main network.
[0037] Optionally, the master node includes a domain controller, and the slave node includes an actuator and / or a sensor.
[0038] A second aspect of an embodiment of the present application provides a vehicle network system, including a main network, a sub-network and at least one main node, wherein the main node is connected to the main network and the sub-network;
[0039] The at least one master node comprises a first master node;
[0040] The first master node is used to manage the state of the first master node in the master network by direct network management;
[0041] The first master node is further used to manage the state of the first master node in the sub-network by means of indirect network management.
[0042] Optionally, each master node is connected to at least two slave nodes via a sub-network, and the slave nodes connected to each master node are different.
[0043] Optionally, the vehicle network system further includes a central computing unit, and each master node is connected to the central computing unit via a main network.
[0044] Optionally, the master node includes a domain controller, and the slave node includes an actuator and / or a sensor.
[0045] A third aspect of an embodiment of the present application provides an electronic device, including a processor, the processor is connected to a memory, the memory is used to store a computer program, the computer program includes program instructions, and the processor is configured to call the program instructions to execute the step instructions in the first aspect of the embodiment of the present application.
[0046] The fourth aspect of the embodiments of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the steps described in the first aspect of the embodiments of the present application.
[0047] The fifth aspect of the embodiment of the present application provides a computer program product, wherein the computer program product includes a computer program, and the computer program is operable to cause a computer to execute some or all of the steps described in the first aspect of the embodiment of the present application. The computer program product can be a software installation package.
[0048] In the embodiment of the present application, the master node manages the state of the master node in the main network by direct network management; the master node manages the state of the master node in the sub-network by indirect network management. Compared with the indirect network management strategy, the embodiment of the present application manages the state of the master node in the main network by direct network management, and manages the state of the master node in the sub-network by indirect network management, thereby flexibly managing the state of the master node in the main network and the sub-network. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the embodiments of the present application 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 some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0050] Figure 1 is a structural diagram of a vehicle network system provided by an embodiment of the present application;
[0051] Figure 2 is a structural diagram of another vehicle network system provided in an embodiment of the present application;
[0052] Figure 3 is a specific structural diagram of an in-vehicle network system provided by an embodiment of the present application;
[0053] Figure 4 It is a flowchart of a network management method provided by an embodiment of the present application;
[0054] Figure 5 It is a flowchart of another network management method provided by an embodiment of the present application;
[0055] Figure 6 It is a schematic diagram of the main network architecture of a vehicle network system provided by an embodiment of the present application;
[0056] Figure 7 It is a schematic diagram of a sub-network architecture of an in-vehicle network system provided in an embodiment of the present application;
[0057] Figure 8 It is a state transition diagram of a domain controller provided in an embodiment of the present application;
[0058] Fig. 9 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0059] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0060] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0061] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described in this application may be combined with other embodiments.
[0062] See also Figure 1 , Figure 1 Schematic diagram of the structure of a vehicle network system provided by an embodiment of the present application. Figure 1 As shown, the vehicle network system includes a main network, a sub-network and at least one main node ( Figure 1 Taking 4 master nodes as an example), the master nodes access the main network and the sub-network, and the at least one master node includes a first master node;
[0063] The first master node is used to manage the state of the first master node in the master network by direct network management, and the first master node is any one of the at least one master node;
[0064] The first master node is further used to manage the state of the first master node in the sub-network by means of indirect network management.
[0065] Compared with the indirect network management strategy, the embodiment of the present application manages the status of the master node in the main network through direct network management, and manages the status of the master node in the sub-network through indirect network management, thereby flexibly managing the status of the master node in the main network and the sub-network.
[0066] Optionally, the first master node is further used to determine the state of the first master node based on the state of the first master node in the main network and the state of the first master node in the sub-network.
[0067] Figure 1 The four master nodes are: master node 1, master node 2, master node 3 and master node 4. Taking the first master node as an example, the master node 1 is connected to the slave nodes 11 and 12 through the controller area network (CAN) network. Figure 1 The master nodes 2, 3 and 4 in the network are also connected to at least one slave node through a sub-network ( Figure 1 not shown).
[0068] In the embodiment of the present application, the main network may also be referred to as a bus network or a network, and the main network may include any one of a CAN network and an Ethernet network.
[0069] The sub-network may also be referred to as a branch network or a secondary network. The sub-network may include at least one of a CAN network, a local interconnect network (LIN), Ethernet, and a wireless network (eg, Bluetooth, WiFi, Star Flash, etc.).
[0070] In the embodiment of the present application, compared with the indirect network management strategy, the master node manages the status of the master node in the main network through direct network management, and manages the status of the master node in the sub-network through indirect network management, thereby flexibly managing the status of the master node in the main network and the sub-network.
[0071] See also Figure 2 , Figure 2 is a schematic diagram of the structure of another vehicle network system provided by an embodiment of the present application. Figure 2 As shown, in Figure 1 On the basis of Figure 2 The vehicle network system also includes a central computing unit, each master node is connected to the central computing unit through a main network, and each master node is connected to the central computing unit through a sub-network ( Figure 1 The sub-network takes the CAN network as an example, CAN1, CAN2, CAN3, and CAN4 represent 4 different CAN buses) are connected to at least one slave node, and each master node is connected to a different slave node.
[0072] In a possible example, the master node includes a domain controller, and the slave node includes an actuator and / or a sensor.
[0073] like Figure 2As shown, in the main network, the central computing unit can communicate with each master node separately, and can perform calculations and decisions based on the reports of each master node. In the main network, any two master nodes can also communicate and obtain each other's status.
[0074] In the sub-network, each slave node can report its own status to the master node, and the master node makes decisions based on the status reported by each slave node.
[0075] The master node is a key node in the main network and the sub-network. In the main network, the master node can receive instructions from the central computing unit. In the sub-network, the master node can send instructions to the slave node.
[0076] Nodes in the main network manage their own status through direct network management, and nodes in the sub-network manage their own status through indirect network management.
[0077] In a sub-network, the master node cannot directly obtain the status of other slave nodes in the sub-network. Other slave nodes report their own status to the master node.
[0078] The master node can be a domain controller. The domain controller can include: power domain controller, chassis domain controller, cockpit domain controller / intelligent domain controller, autonomous driving domain controller, body domain controller, etc.
[0079] See also Figure 3 , Figure 3 Schematic diagram of a specific structure of a vehicle network system provided by an embodiment of the present application. Figure 3 As shown, the vehicle network system includes a central computing unit and four domain controllers ( Figure 3 Taking 4 domain controllers as an example), each domain controller is connected to the central computing unit through a domain control network, and each domain controller is connected to the central computing unit through a sub-network ( Figure 3 A sub-network (taking the CAN network as an example) is connected to at least one slave node, and each master node is connected to a different slave node.
[0080] Figure 3 The four domain controllers are: front area domain controller, back area domain controller, left area domain controller and right area domain controller. The front area domain controller is connected to the central computing unit through the front area control network, the back area domain controller is connected to the central computing unit through the back area control network, the left area domain controller is connected to the central computing unit through the left area control network, and the right area domain controller is connected to the central computing unit through the right area control network.
[0081] Among them, the front area domain controller, the rear area domain controller, the left area domain controller and the right area domain controller can be located in the front, rear, left and right areas of the vehicle respectively. The front area control network, the rear area control network, the left area control network and the right area control network can be components of the main network in the front, rear, left and right areas.
[0082] In the embodiment of the present application, since the state of the master node is related to the state of other master nodes, if the master node adopts indirect network management in both the main network and the sub-network, the master node cannot obtain the state of other master nodes in a timely manner, and thus cannot determine the state of the master node in a timely and accurate manner. Compared with the indirect network management strategy, the master node of the embodiment of the present application manages the state of the master node in the main network by direct network management, and can obtain the state of other master nodes in a timely manner, thereby accurately determining the state of the master node.
[0083] See also Figure 4 , Figure 4 It is a flow chart of a network management method provided in an embodiment of the present application. Figure 4 The method shown can be applied to Figure 1 or Figure 2 The vehicle network system shown in FIG. The vehicle network system includes a main network, a sub-network and at least one main node, wherein the main node is connected to the main network and the sub-network; the at least one main node includes a first main node. Figure 4 As shown, the network management method includes the following steps.
[0084] 401. The first master node manages the state of the first master node in the main network by direct network management.
[0085] In the embodiment of the present application, the direct network management method means that the first master node can communicate directly with other master nodes in the main network to obtain the other party's network requirements, and determine the status of the master node in the main network according to the network requirements of the first master node and the network requirements of other master nodes.
[0086] Optionally, step 401 may include the following steps:
[0087] (11) When the first master node is actively awakened or passively awakened, the first master node enters a repeated message state;
[0088] (12) When the first master node releases the network request, the first master node enters a ready-to-sleep state;
[0089] (13) When the first master node has a network request, the first master node enters a normal operating state;
[0090] (14) when the first master node is in the sleep-ready state, start a first timer to start timing;
[0091] (15) When the timing duration of the first timer exceeds a first duration, the first master node maintains the ready-to-sleep state within the first duration, and other master nodes have no network requests, the first master node enters a bus pre-sleep state, and the other master nodes are master nodes other than the first master node among the at least one master node.
[0092] In an embodiment of the present application, the state of the first master node may include: a repeat message state, a prepare sleep state, a normal operation state, and a bus pre-sleep state. The repeat message state is an intermediate state between entering the normal operation state from the sleep state (bus pre-sleep state, or bus sleep state). The normal operation state is a state in which network messages are sent normally. The prepare sleep state is an intermediate state between entering the sleep state (bus pre-sleep state, or bus sleep state) from the normal operation state.
[0093] When the first master node is in the bus pre-sleep state or the bus sleep state, the first master node is actively awakened or passively awakened, and then the first master node enters the repeated message state and starts to resend the network management message on the main network, which can inform other nodes of the main network that the first master node has been awakened and can enter the normal operation state. After the first master node enters the repeated message state, it can make other nodes of the main network visible.
[0094] When the first master node is in the repeated message state, if the first master node receives a network request from the central computing unit, the first master node enters a normal operation state. In the normal operation state, the first master node can send messages (for example, send corresponding network management messages) on the main network.
[0095] When the first master node is in the repeated message state, if the first master node receives a network release request from the central computing unit, the first master node enters the ready-to-sleep state. In the ready-to-sleep state, the first master node can start a first timer to count and wait to enter the bus pre-sleep state.
[0096] When the first master node is in a normal operating state, if the first master node receives a network release request from the central computing unit, the first master node enters a ready-to-sleep state.
[0097] When the first master node is in the sleep preparation state, if the first master node receives a network request from the central computing unit, the first master node enters a normal operation state.
[0098] Among them, the repeated message state, the ready sleep state and the normal operation state are network states, and the bus pre-sleep state is a non-network state. In the network state, the first master node can send messages (for example, network management messages) in the main network. In the non-network state, the first master node and other nodes in the main network have no network requirements, and all nodes in the main network stop bus activities. After the first master node enters the bus pre-sleep state, there may be messages in the sending queue or buffer of the first master node that have not been cleared. It is necessary to wait until these messages are sent before entering the bus sleep state.
[0099] Among them, the first duration can be set in advance. When the timing duration of the first timer exceeds the first duration, the first master node remains in a ready-to-sleep state within the first duration, and other master nodes have no network requests, the first master node enters a bus pre-sleep state. The first master node remains in a ready-to-sleep state within the first duration, indicating that the first master node has no network requests (has not entered a normal operating state) and has not entered a repeated message state within the duration of the first duration. It is considered that the first master node can enter a bus pre-sleep state. If other master nodes have no network requests within the first duration, the first master node will not be awakened by network requests from other master nodes within the first duration, and the state of the first master node can be accurately determined to be a bus pre-sleep state.
[0100] Optionally, step 401 may include the following steps:
[0101] When the first master node is in a sleep preparation state or a normal operation state, and the repeat bit of the network management message received by the first master node is valid, the first master node enters a repeat message state.
[0102] In an embodiment of the present application, when the first master node is in a network state and is not in a repeated message state (that is, the first master node is in a ready-to-sleep state or a normal operating state), and the repeat bit of the network management message received by the first master node is valid, the first master node enters a repeated message state. The repeat bit of the network management message received by the first master node is valid, indicating that the first master node needs to resend the network management message, and at this time the first master node enters a repeated message state. The repeat bit of the network management message received by the first master node is invalid, indicating that the first master node does not need to resend the network management message, and at this time the first master node maintains the previous state (ready-to-sleep state or normal operating state).
[0103] When the first master node is in the network state and not in the repeated message state, whether the first master node enters the repeated message state can be determined based on whether the repeated bit of the network management message received by the first master node is valid.
[0104] 402. The first master node manages the state of the first master node in the sub-network by means of indirect network management.
[0105] In the embodiment of the present application, the indirect network management method refers to that the first master node can indirectly communicate with the slave node in the sub-network where the first master node is located to obtain the status of the slave node (for example, network access requirements, data upload requirements and the status of the sub-network), and determine the status of the first master node in the sub-network according to the status of the slave node. The first master node can passively obtain the status of the slave node. For example, the first master node can passively obtain the status of the sub-network, and the first master node can passively receive the network access requirements and data upload requirements of the slave node.
[0106] Optionally, step 402 may include the following steps:
[0107] (21) When the hard-wire signal of the first master node is valid, the first master node enters a normal mode;
[0108] (22) When the hard-line signal of the first master node is invalid and the signal line of the sub-network is invalid, the first master node enters a waiting sleep state;
[0109] (23) when the first master node enters the waiting sleep state, start a second timer to start timing;
[0110] (24) when the timing duration of the second timer exceeds a second duration and the first master node maintains the waiting sleep state within the second duration, the first master node enters the sleep indication state;
[0111] (25) when the first master node enters the sleep indication state, start a third timer to start timing;
[0112] (26) When the timing duration of the third timer exceeds a third duration and the first master node maintains the sleep indication state within the third duration, the first master node enters a listening-only state.
[0113] In the embodiment of the present application, the first master node can be connected to at least one slave node through a sub-network. If the sub-network is a CAN network, the first master node can communicate with at least one slave node through a CAN signal line, and the slave node reports its own status through the CAN signal line. The master node can also communicate with the at least one slave node through a hard line ( Figure 1 , Figure 2 and Figure 3The master node (not shown) is connected to a slave node (e.g., a sensor), and the slave node can be awakened via a hard line. The signal transmitted on the hard line is a hard line signal. The slave node can be actively awakened (exemplarily, the master node controls the hard line signal to be valid) or passively awakened (exemplarily, the slave node can actively send a valid hard line signal on the hard line).
[0114] Exemplarily, when the hard-wire signal is at a high level, the hard-wire signal is valid; when the hard-wire signal is at a low level, the hard-wire signal is invalid. If the hard-wire signal is invalid, it indicates that all hard-wire signals connected to the first master node are invalid.
[0115] If the signal line of the sub-network is invalid, it means that all the signal lines of the sub-network are invalid. At this time, the slave nodes of the sub-network cannot send signals to the master node through the signal line. If the sub-network is a CAN network, the signal line of the sub-network is invalid, which may be that the CAN signal on the CAN signal line is an invalid signal. At this time, the slave nodes of the sub-network cannot send CAN signals to the master node through the CAN signal line.
[0116] When the first master node is in normal mode, the first master node can send and receive messages normally. In normal mode, the first master node can send and receive messages normally, and the timer will not run. In normal mode, the first master node can send and receive messages in the sub-network, and the first node can communicate with the slave node through the signal line and / or hard line of the sub-network.
[0117] When the first master node is in the waiting sleep state, the first master node can send and receive messages normally. In the waiting sleep state, the first master node can send and receive messages normally, and the timer will run. When the first master node enters the waiting sleep state, the second timer is turned on for timing; when the timing duration of the second timer exceeds the second duration, and the first master node remains in the waiting sleep state within the second duration, the first master node enters the sleep indication state.
[0118] When the first master node is in the sleep indication state, the first master node stops sending messages and can receive messages from the main network to monitor message changes on the bus (the bus is the bus of the main network where the first master node is located), or receive messages from the sub-network.
[0119] When the first master node is in the listen-only state, the first master node stops sending messages, and the first master node can monitor the message changes of the bus (the bus is the bus of the main network where the first master node is located) (monitor whether the bus has messages). When the first master node is in the listen-only state, other slave nodes in the sub-network do not send messages.
[0120] When the first master node is in the sleep indication state, the first master node does not send messages, and there are other slave nodes on the sub-network that can send messages. At this time, the messages of other slave nodes do not give the first master node a wake-up request. When the first master node is in the listen-only state, all nodes on the entire sub-network do not send messages, and there are no messages on the entire sub-network.
[0121] The second duration may be pre-set, and when the timing duration of the second timer exceeds the second duration and the first master node remains in the waiting sleep state within the second duration, the first master node enters the sleep indication state from the waiting sleep state.
[0122] The third duration may be pre-set, and when the timing duration of the third timer exceeds the third duration and the first master node maintains the sleep indication state within the third duration, the first master node enters the listen-only state from the sleep indication state.
[0123] The second timer and the third timer may be the same timer or different timers.
[0124] Optionally, step 402 may include the following steps:
[0125] (31) when the first master node is in a bus sleep state and the first master node is bus awakened or locally awakened, the first master node enters a waiting sleep state;
[0126] (32) when the first master node is in a waiting sleep state, a sleep indication state, or a listening state, and the hard line signal of the first master node is valid or the signal line of the sub-network is valid, the first master node enters a normal mode;
[0127] (33) when the first master node is in a waiting sleep state and the first master node receives a signal action request or a bus access request from a sub-network, the first master node maintains the waiting sleep state;
[0128] (34) when the first master node is in the sleep indication state and the first master node receives a signal action request or a bus access request from the sub-network, the first master node enters the waiting sleep state;
[0129] (35) When the first master node is in a listening-only state and receives a signal action request or a bus access request from the sub-network, the first master node enters a waiting sleep state.
[0130] In the embodiment of the present application, the first master node bus awakening refers to the first master node being awakened by other nodes of the main network (the other nodes of the main network include the central computing unit and the master nodes other than the first master node).
[0131] The first master node is awakened locally, which means that the first master node is awakened by other slave nodes in the sub-network.
[0132] The signal line of the sub-network is valid, which means that at least one signal line of the sub-network is valid. At this time, the slave node of the sub-network can send a signal to the first master node through the valid signal line.
[0133] The first master node receives a signal action request from the sub-network, which means whether the first master node receives a signal from the sub-network with an action request. Exemplarily, the sub-network takes the CAN network as an example, and the first master node can receive the CAN signal of the sub-network to identify whether the CAN signal has an action request. Specifically, if a certain bit of the CAN signal changes (for example, from 01 to 00), it is judged that there is a CAN signal action request. For example, if the bit in the CAN signal representing whether the vehicle door is closed changes from ox01 to ox00, it means that the vehicle changes from closing the door to opening the door. Among them, ox01 indicates that the vehicle is closing the door, and ox00 indicates that the vehicle is opening the door. If a certain bit of the CAN signal does not change, it is judged that the CAN signal has no action request.
[0134] The first master node receives a bus access request, which means that a change in a hard-wire signal requires access to the bus. For example, the change in the hard-wire signal may be a change in a door state, a change in a light, a start of an ignition (IG) signal, or other hard-wire signal changes.
[0135] In the embodiment of the present application, compared with the indirect network management strategy, the master node manages the status of the master node in the main network through direct network management, and manages the status of the master node in the sub-network through indirect network management, thereby flexibly managing the status of the master node in the main network and the sub-network.
[0136] See also Figure 5 , Figure 5 FIG. 1 is a flow chart of another network management method provided by an embodiment of the present application. Figure 5 As shown, the network management method includes the following steps.
[0137] 501. The first master node manages the state of the first master node in the main network by direct network management.
[0138] 502. The first master node manages the state of the first master node in the sub-network by means of indirect network management.
[0139] The specific implementation of step 501 to step 502 may refer to the above-mentioned step 401 to step 402, which will not be repeated here.
[0140] 503. The first master node determines the state of the first master node based on the state of the first master node in the main network and the state of the first master node in the sub-network.
[0141] In an embodiment of the present application, the first master node is in both the main network and the sub-network. The state of the first master node determined in step 503 cannot conflict with the state of the first master node in the main network and the state of the first master node in the sub-network. Exemplarily, if the state of the first master node in the main network is to enter the bus pre-sleep state, and the state of the first master node in the sub-network is normal mode, the first master node cannot enter the bus sleep state. For another example, if the state of the first master node in the main network is a normal operating state, and the state of the first master node in the sub-network is a listen-only state, the first master node cannot enter the bus sleep state.
[0142] The bus sleep state is when the first master node is in a sleep state. In this state, the first master node cannot send or receive messages, cannot actively communicate with nodes in the main network, and cannot actively communicate with slave nodes in the self-network. In the bus sleep state, the first master node can maintain low power consumption. Accurately determining the state of the first master node can reduce power consumption.
[0143] Optionally, step 503 may include the following steps:
[0144] (41) when the state of the first master node in the main network is a bus pre-sleep state and the state of the first master node in the sub-network is a listen-only state, start a fourth timer to count;
[0145] (42) When the timing duration of the fourth timer exceeds the fourth duration and the state of the first master node in the main network and the state of the first master node in the fourth network remain unchanged during the fourth duration, determine that the state of the first master node is the bus sleep state.
[0146] In an embodiment of the present application, when the state of the first master node in the main network is a bus pre-sleep state, and the state of the first master node in the sub-network is a listen-only state, it indicates that the state of the first master node in the main network and the state of the first master node in the sub-network both point to the bus sleep state. At this time, the fourth timer is started for timing. When the timing duration of the fourth timer exceeds the fourth duration, and the state of the first master node in the main network and the state of the first master node in the fourth network remain unchanged within the fourth duration, it is determined that the state of the first master node is the bus sleep state.
[0147] The fourth time period may be preset. After the first master node enters the bus pre-sleep state, the fourth time period may be sufficient for the first master node to clear unsent messages in the sending queue or buffer in the main network.
[0148] In the embodiment of the present application, since the state of the master node is related to the state of other master nodes, if the master node adopts indirect network management in both the main network and the sub-network, the master node cannot obtain the state of other master nodes in a timely manner, and thus cannot determine the state of the master node in a timely and accurate manner. Compared with the indirect network management strategy, the master node of the embodiment of the present application manages the state of the master node in the main network by direct network management, and can obtain the state of other master nodes in a timely manner, thereby accurately determining the state of the master node.
[0149] The following is an example in which the main network and sub-network are CAN networks and the main node is a domain controller.
[0150] See also Figure 6 , Figure 6 Schematic diagram of the main network architecture of a vehicle network system provided by an embodiment of the present application. Figure 6 As shown, the main network architecture includes a central computing unit, a front area domain controller, a rear area domain controller, a left area domain controller, and a right area domain controller. The central computing unit, the front area domain controller, the left area domain controller, the right area domain controller, and the rear area domain controller are controlled by direct network management on the domain control network, and the network management message of each domain controller is only sent to the domain control network. The front area domain controller is connected to the central computing unit through the front domain control network, the rear area domain controller is connected to the central computing unit through the rear domain control network, the left area domain controller is connected to the central computing unit through the left domain control network, and the right area domain controller is connected to the central computing unit through the right domain control network.
[0151] See also Figure 7 , Figure 7 Schematic diagram of a sub-network architecture of a vehicle network system provided by an embodiment of the present application. Figure 7 As shown, the domain controller (master node) is connected to module H (slave node) and module I (slave node) through the CAN1 signal line, the domain controller (master node) is connected to module E (slave node), module F (slave node) and module G (slave node) through the CAN2 signal line, the domain controller (master node) is connected to module A (slave node), module B (slave node), module C (slave node) and module D (slave node) through the CAN3 signal line, and the domain controller (master node) is connected to module K (slave node) and module J (slave node) through the CAN4 signal line. Each domain controller acts as a master node, and the modules in the subnet under the domain controller act as slave nodes. Indirect network management is performed between the domain controller and each subnet module.
[0152] See also Figure 8 , Figure 8 This is a state transition diagram of a domain controller provided in an embodiment of the present application. Figure 8As shown, the left side is the state transition diagram of indirect network management, and the right side is the state transition diagram of direct network management. Figure 8 It is a state transition diagram that combines the indirect network management and direct network management of the domain controller.
[0153] The following are direct network management of domain controllers:
[0154] When the domain controller is in the bus sleep state or the bus pre-sleep state, if the domain controller is actively awakened or passively awakened, the domain controller enters the repeated message state.
[0155] When the domain controller is in the repeated message state, if the domain controller has a network request, the domain controller enters the normal operation state; if the domain controller releases the network request, the domain controller enters the ready-to-sleep state.
[0156] When the domain controller is in normal operation, if the repeat bit of the network management message received by the domain controller is set to 1 (that is, the repeat bit of the network management message received by the domain controller is valid), the domain controller enters the repeat message state; if the domain controller releases the network request, the domain controller enters the ready-to-sleep state.
[0157] When the domain controller is in the sleep state, if the repeat bit of the network management message received by the domain controller is set to 1 (that is, the repeat bit of the network management message received by the domain controller is valid), the domain controller enters the repeat message state; if the domain controller has a network request, the domain controller enters the normal operation state;
[0158] When the domain controller is in the sleep-ready state, the timer of the domain controller starts timing. When the timing duration exceeds T1, if the domain controller continues to be in the sleep-ready state within the timing duration T1 (that is, within T1, the domain controller has no network request, and the repeat bit of the received network management message is not 1), then after the timing duration exceeds T1, the domain controller enters the bus pre-sleep state.
[0159] The following are indirect network management of domain controllers:
[0160] When the domain controller is in bus sleep state, if the domain controller is awakened by the bus or locally, the domain controller enters the waiting sleep state; if the hard line signal of the domain controller (for example, hard line IG power) is valid, the domain controller enters the normal mode.
[0161] When the domain controller is in normal mode, if the hard line signal of the domain controller is invalid and the CAN signal is invalid, the domain controller enters the waiting sleep state;
[0162] When the domain controller is in the waiting sleep state, if the hard line signal of the domain controller is valid or the CAN signal is valid, the domain controller enters the normal mode; if the domain controller receives a CAN signal action request or the change of the local signal requires access to the bus, the domain controller continues to be in the waiting sleep state;
[0163] When the domain controller is in the waiting sleep state, the timer of the domain controller starts timing. When the timing time exceeds T2, if the domain controller continues to be in the waiting sleep state within the timing time T2, the domain controller enters the sleep indication state after the timing time exceeds T2.
[0164] When the domain controller is in the sleep indication state, if the hard line signal of the domain controller is valid or the CAN signal is valid, the domain controller enters the normal mode; if the domain controller receives a CAN signal action request or the change of the local signal requires access to the bus, the domain controller enters the waiting sleep state;
[0165] When the domain controller is in the sleep indication state, the timer of the domain controller starts timing. When the timing duration exceeds T3, if the domain controller continues to be in the sleep indication state within the timing duration T3, the domain controller enters the listening-only state after the timing duration exceeds T3.
[0166] When the domain controller is in the listen-only state, if the hard-wire signal of the domain controller is valid or the CAN signal is valid, the domain controller enters the normal mode; if the domain controller receives a CAN signal action request or the change of the local signal requires access to the bus, the domain controller enters the waiting sleep state; if the domain controller receives a CAN message but no action request, the domain controller enters the sleep indication state.
[0167] When the indirect network management status of the domain controller is the listen-only state (the domain controller's status in the sub-network is the listen-only state), and the direct network management status of the domain controller is the bus pre-sleep state (the domain controller's status in the main network is the bus pre-sleep state), the timer of the domain controller starts timing. When the timing duration exceeds T4, if the domain controller's status remains unchanged within the timing duration T4, the domain controller enters the bus sleep state after the timing duration exceeds T4.
[0168] For the direct network management part, take the active awakening of the domain controller as an example. When the domain controller determines that the active awakening conditions are met, the domain controller sends the specified network message in the fast-sending state (the period and number of frames can be defined), thereby entering the repeated message state; when the domain controller is in the repeated message state, if the domain controller has a network demand, the domain controller enters the normal working state. When the domain controller is in the normal working state, if the domain controller releases the network request, the domain controller enters the ready-to-sleep state. When the domain controller is in the ready-to-sleep state, the timer of the domain controller starts timing, and when the timing duration exceeds T1, if the domain controller continues to be in the ready-to-sleep state within the timing duration T1 (that is, within T1, the domain controller has no network request, and the repeat bit of the received network management message is not 1), the domain controller enters the bus pre-sleep state. Among them, the fast-sending state refers to the domain controller sending messages to all connected networks (at least one network, such as CAN, LIN, etc.).
[0169] For the indirect network management part, when the hard-wired signal (for example, hard-wired IG power) of the domain controller is valid, the domain controller enters the normal mode, and when the hard-wired signal becomes invalid and the CAN signal becomes invalid, the domain controller enters the waiting sleep state. When the domain controller is in the waiting sleep state, the timer of the domain controller starts timing, and when the timing duration exceeds T2, if the domain controller continues to be in the waiting sleep state within the timing duration T2, the domain controller enters the sleep indication state. When the domain controller is in the sleep indication state, the timer of the domain controller starts timing, and when the timing duration exceeds T3, if the domain controller continues to be in the sleep indication state within the timing duration T3, the domain controller enters the listen-only state.
[0170] When the domain controller enters the listen-only state and the bus pre-sleep state at the same time, the timer is started. When the timer duration is greater than T4, if the domain controller continues to be in the listen-only state and the bus pre-sleep state within the timing duration T4, the domain controller enters the bus sleep state. If the domain controller is in the listen-only state in the indirect network management part, and the direct network management part is in the repeating message state, normal operation state or ready to sleep state, the domain controller cannot enter the bus sleep state. If the domain controller is in the bus pre-sleep state in the direct network management part, it cannot enter the bus sleep state when the direct or indirect network management part is in a state other than the listen-only state (the non-listen-only state is a state other than the listen-only state).
[0171] Among them, the three states of repeated message state, normal operation state, and sleep preparation state are all network states. When the domain controller is in the network state in the direct network management part, it needs to send network messages and still needs to work, and it cannot enter the bus sleep state at this time. When the domain controller is in the non-listening-only state in the indirect network management part, it still needs to work and cannot enter the bus sleep state at this time.
[0172] The above-mentioned scheme of the embodiment of the present application is introduced from the perspective of the execution process of the method side. It is understandable that, in order to realize the above-mentioned functions, the master node includes a hardware structure and / or software module corresponding to the execution of each function. It should be easily appreciated by those skilled in the art that, in combination with the units and algorithm steps of each example described in the embodiments provided herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can 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 application.
[0173] The embodiment of the present application can divide the main node into functional units according to the above method example. For example, each functional unit can be divided according to each function, or two or more functions can be integrated into one processing unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units. It should be noted that the division of units in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0174] See also Fig. 9 , Fig. 9 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, such as Fig. 9 As shown, the electronic device 900 includes a processor 901, and the processor 901 is connected to a memory 902. The processor 901 and the memory 902 can be connected to each other through a communication bus 903. The communication bus 903 can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus 903 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig. 9The memory 902 is used to store computer programs. The computer programs include program instructions. The processor 901 is configured to call the program instructions. The program includes instructions for executing Figure 4-5 Some or all of the steps in the method included.
[0175] Processor 901 may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the above program. Specifically, processor 901 may be an MCU or an MPU in a domain controller. An MCU may be a single chip microcomputer or a single chip microcomputer. An MPU may be a microprocessor unit (MPU).
[0176] The memory 902 may be a read-only memory (ROM) or other types of static storage devices that can store static and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory may exist independently and be connected to the processor via a bus. The memory may also be integrated with the processor.
[0177] Exemplarily, the electronic device may be the above-mentioned master node, and the master node may include a domain controller.
[0178] In the embodiment of the present application, since the state of the master node is related to the state of other master nodes, if the master node adopts indirect network management in both the main network and the sub-network, the master node cannot obtain the state of other master nodes in a timely manner, and thus cannot determine the state of the master node in a timely and accurate manner. Compared with the indirect network management strategy, the embodiment of the present application manages the state of the master node in the main network by direct network management, and can obtain the state of other master nodes in a timely manner, thereby accurately determining the state of the master node.
[0179] An embodiment of the present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any one of the network management methods recorded in the above method embodiments.
[0180] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0181] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0182] In the several embodiments provided in the present application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the device or unit can be electrical or other forms.
[0183] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0184] In addition, the functional units in the various embodiments of the application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware or in the form of software program modules.
[0185] If the integrated unit is implemented in the form of a software program module and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM), random access memory (RAM), mobile hard disk, disk or optical disk and other media that can store program codes.
[0186] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable memory, which can include: a flash drive, a read-only memory, a random access memory, a magnetic disk or an optical disk, etc.
[0187] The embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of the present application. At the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A network management method, characterized in that: The method is applied to a vehicle network system, the vehicle network system comprising a main network, a sub-network and at least one main node, the main node being connected to the main network and the sub-network; The at least one master node comprises a first master node; The first master node manages the state of the first master node in the master network by direct network management; The first master node manages the state of the first master node in the sub-network by means of indirect network management.
2. The method according to claim 1, characterized in that The method further comprises: The first master node determines a state of the first master node based on a state of the first master node in the main network and a state of the first master node in the sub-network.
3. The method according to claim 1, characterized in that The first master node manages the state of the first master node in the master network by direct network management, including: When the first master node is actively awakened or passively awakened, the first master node enters a repeated message state; When the first master node has a network request, the first master node enters a normal operating state.
4. The method according to claim 1, characterized in that The first master node manages the state of the first master node in the master network by direct network management, including: When the first master node releases the network request, the first master node enters a ready-to-sleep state; When the first master node is in the ready-to-sleep state, starting a first timer to start timing; When the timing duration of the first timer exceeds a first duration, the first master node maintains the ready-to-sleep state within the first duration, and other master nodes have no network requests, the first master node enters a bus pre-sleep state, and the other master nodes are master nodes other than the first master node among the at least one master node.
5. The method according to claim 1, characterized in that The first master node manages the state of the first master node in the sub-network by indirect network management, including: When the hard-line signal of the first master node is valid, the first master node enters a normal mode; When the hard line signal of the first master node is invalid and the signal line of the sub-network is invalid, the first master node enters a waiting sleep state; When the first master node enters the waiting sleep state, starting a second timer to count; When the timing duration of the second timer exceeds a second duration and the first master node maintains the waiting sleep state within the second duration, the first master node enters a sleep indication state; When the first master node enters the sleep indication state, starting a third timer to start timing; When the timing duration of the third timer exceeds the third duration and the first master node maintains the sleep indication state within the third duration, the first master node enters the listening-only state.
6. The method according to claim 2, characterized in that The first master node determines the state of the first master node based on the state of the first master node in the main network and the state of the first master node in the sub-network, including: When the state of the first master node in the main network is a bus pre-sleep state, and the state of the first master node in the sub-network is a listen-only state, starting a fourth timer for timing; When the timing duration of the fourth timer exceeds the fourth duration, and the state of the first master node in the main network and the state of the first master node in the fourth network remain unchanged during the fourth duration, it is determined that the state of the first master node is a bus sleep state.
7. The method according to claim 1, characterized in that The first master node manages the state of the first master node in the master network by direct network management, including: When the first master node is in a sleep preparation state or a normal operation state, and the repeat bit of the network management message received by the first master node is valid, the first master node enters a repeat message state.
8. The method according to claim 1, characterized in that The first master node manages the state of the first master node in the sub-network by indirect network management, including: When the first master node is in a bus sleep state and the first master node is bus awakened or locally awakened, the first master node enters a waiting sleep state; When the first master node is in a waiting sleep state or a sleep indication state or a listening-only state, and the hard line signal of the first master node is valid or the signal line of the sub-network is valid, the first master node enters a normal mode; When the first master node is in a waiting sleep state and the first master node receives a signal action request or a bus access request from a sub-network, the first master node maintains the waiting sleep state; When the first master node is in the sleep indication state and the first master node receives a signal action request or a bus access request from a sub-network, the first master node enters a waiting sleep state; When the first master node is in a listening-only state and the first master node receives a signal action request or a bus access request from a sub-network, the first master node enters a waiting sleep state.
9. The method according to any one of claims 1 to 8, characterized in that: Each master node is connected to at least two slave nodes through a sub-network, and each master node is connected to different slave nodes.
10. The method according to any one of claims 1 to 8, characterized in that: The vehicle network system also includes a central computing unit, and each master node is connected to the central computing unit via a master network.
11. The method according to claim 9, characterized in that The master node includes a domain controller, and the slave node includes an actuator and / or a sensor.
12. A vehicle network system, characterized in that: It includes a main network, a sub-network and at least one main node, wherein the main node is connected to the main network and the sub-network; The at least one master node comprises a first master node; The first master node is used to manage the state of the first master node in the master network by direct network management; The first master node is further used to manage the state of the first master node in the sub-network by means of indirect network management.
13. The vehicle network system according to claim 12, characterized in that: Each master node is connected to at least two slave nodes through a sub-network, and each master node is connected to different slave nodes.
14. The vehicle network system according to claim 12 or 13, characterized in that: The vehicle network system also includes a central computing unit, and each master node is connected to the central computing unit via a master network.
15. The vehicle network system according to claim 13, characterized in that: The master node includes a domain controller, and the slave node includes an actuator and / or a sensor.
16. An electronic device, characterized in that: The method comprises a processor, wherein the processor is connected to a memory, wherein the memory is used to store a computer program, wherein the computer program comprises program instructions, and wherein the processor is configured to call the program instructions to execute the method according to any one of claims 1 to 11.
17. The electronic device according to claim 16, characterized in that: The electronic device is a domain controller.
18. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor is enabled to perform the method according to any one of claims 1 to 11.
19. A computer program product, characterized in that The computer program product comprises a computer program, and the computer program is operable to cause a computer to execute the method according to any one of claims 1 to 11.
Citation Information
Cited By
Network management method, in-vehicle network system, electronic device, computer readable storage medium, and computer program product
WO2025237086A1