Communication control method and device

By using timer and token ring monitoring mechanism in Ecu, switching the communication mode of Osek nodes according to the voltage state, the problem of Ecu power waste is solved and the vehicle power consumption is saved.

CN120282247APending Publication Date: 2025-07-08BEIJING JINGWEI HIRAIN TECH CO INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510685968.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-26
Publication Date
2025-07-08

AI Technical Summary

Technical Problem

In the prior art, Ecu opens communications of the entire Osek network when it is started, resulting in waste of power resources and increasing the power consumption of the entire vehicle.

Method used

The timer and token ring monitoring mechanism are used to switch the communication mode of the Osek node according to the voltage state of Ecu, including the short-term communication mode and the full-scale communication mode. The token ring state is judged by detecting the voltage threshold and network management messages, and the sleep acknowledgement or request message is sent to control the node's sleep.

Benefits of technology

It realizes the communication method of flexibly switching Osek nodes, reduces the power consumption of Ecu and further saves the power consumption of the vehicle.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120282247A_ABST
    Figure CN120282247A_ABST
Patent Text Reader

Abstract

The invention provides a communication control method and device, and the method comprises the steps: switching each Osek node into a short-time communication mode and starting a timer if the voltage of Ecu is lower than a voltage threshold value; for each Osek node, judging whether the Osek node and a target node form a token ring or not; if not, entering a dormant state when the timer is overtime; if yes, when each target node is in a short-time communication mode, controlling the Osek node to send a sleep confirmation message to each target node and enter a dormant state, so that each target node enters the dormant state; and when any target node is not in the short-time communication mode, controlling the Osek node to send a sleep request message to each target node until a sleep confirmation message sent by any target node is received, and entering a sleep state. In the scheme, a timer and a token ring monitoring mechanism are adopted, so that the communication mode of the Osek node can be flexibly switched according to the state of the Ecu, and the purpose of reducing energy consumption is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of automotive electronics, and in particular to a communication control method and device. Background Art

[0002] Osek (Open systems and the corresponding interfaces for automotive electronics, automotive electronics open system and corresponding interface standard), which aims to provide a standardized interface for automotive electronic systems to promote interoperability between different manufacturers and systems.

[0003] In the prior art, the communication of the entire Osek network is usually turned on when the Ecu starts, and if there is no external communication release request or a sleep confirmation sent by an external node is received, the entire Osek channel or the entire Osek network will always be in a communication state.

[0004] The prior art does not perform Osek network communication control at the Ecu level, so it is easy to cause waste of Ecu power resources, and further increase the power consumption of the entire vehicle. Summary of the Invention

[0005] In view of this, embodiments of the present invention provide a communication control method and device to achieve the purpose of reducing the power consumed by the Ecu and further saving the power consumption of the vehicle.

[0006] To achieve the above object, embodiments of the present invention provide the following technical solutions:

[0007] A first aspect of an embodiment of the present invention discloses a communication control method applied to an Ecu. A plurality of Osek nodes of an Osek network are set in the Ecu, and a corresponding timer is set for each Osek node. The method includes:

[0008] Real-time detect the voltage of the Ecu. If the voltage of the Ecu is lower than a voltage threshold, switch the communication mode of each Osek node to a short-term communication mode and start the corresponding timer;

[0009] For each Osek node in the short-term communication mode, determine whether the Osek node forms a token ring with one or more target nodes; the target nodes include: the Osek nodes in the Ecu and / or other Osek nodes in other Ecus;

[0010] If not, when the timer corresponding to the Osek node times out for a preset duration, control the Osek node to enter a sleep state;

[0011] If so, determine whether each of the target nodes in the token ring is in the short-time communication mode;

[0012] When each of the target nodes in the token ring is in the short-time communication mode, control the Osek node to send a sleep confirmation message to each of the target nodes and enter the sleep state, so that each of the target nodes enters the sleep state when receiving the sleep confirmation message;

[0013] When any one of the target nodes in the token ring is not in the short-time communication mode, control the Osek node to send a sleep request message to each of the target nodes and enter the sleep state until receiving a sleep confirmation message sent by any one of the target nodes.

[0014] Preferably, for each of the Osek nodes in the short-time communication mode, determining whether the Osek node forms a token ring with one or more target nodes includes:

[0015] For each of the Osek nodes in the short-time communication mode, determine whether the Osek node receives a network management message sent by a target node and send a network management message with the Osek node information to the target node;

[0016] If so, determine that the Osek node forms a token ring with one or more of the target nodes;

[0017] If not, determine that the Osek node does not form a token ring with one or more of the target nodes.

[0018] Preferably, determining whether each of the target nodes in the token ring is in the short-time communication mode includes:

[0019] Obtain the status information of each of the target nodes from the network management messages sent from each of the target nodes in the token ring to the Osek node;

[0020] Judge whether the status information of each of the target nodes indicates that the corresponding target node is in the short-time communication mode.

[0021] Preferably, the method further includes:

[0022] If the voltage of the Ecu is higher than or equal to the voltage threshold, switch the communication mode of each Osek node to the full-volume communication mode;

[0023] For each of the Osek nodes in the full communication mode, if the Osek node does not form a token ring with one or more target nodes, control the Osek node to maintain the communication state until it enters the sleep state when receiving a sleep instruction input by the user.

[0024] Preferably, the method further includes:

[0025] For each of the Osek nodes in the full communication mode, if the Osek node forms a token ring with one or more target nodes, control the Osek node to maintain the communication state until receiving a sleep instruction input by the user, and send a sleep request message to each of the target nodes;

[0026] When the Osek node receives the sleep request messages sent by each of the target nodes, or receives a sleep confirmation message sent by any one of the target nodes, control the Osek node to send a sleep confirmation message to each of the target nodes and enter the sleep state.

[0027] A second aspect of the embodiments of the present invention discloses a communication control device applied to an Ecu. A plurality of Osek nodes of an Osek network are provided in the Ecu, and each of the Osek nodes is provided with a corresponding timer. The device includes:

[0028] A detection unit for detecting the voltage of the Ecu in real time. If the voltage of the Ecu is lower than a voltage threshold, switch the communication mode of each of the Osek nodes to the short-term communication mode and start the corresponding timer;

[0029] A first determination unit for determining, for each of the Osek nodes in the short-term communication mode, whether the Osek node forms a token ring with one or more target nodes; the target nodes include: the Osek nodes in the Ecu and / or other Osek nodes in other Ecus;

[0030] A first control unit for controlling the Osek node to enter the sleep state when the timer corresponding to the Osek node times out for a preset duration if the Osek node does not form a token ring with one or more target nodes;

[0031] A second determination unit for determining whether each of the target nodes in the token ring is in the short-term communication mode if the Osek node forms a token ring with one or more target nodes;

[0032] A second control unit, configured to control the Osek node to send a sleep confirmation message to each of the target nodes and enter a sleep state when each of the target nodes in the token ring is in the short-time communication mode, so that each of the target nodes enters a sleep state when receiving the sleep confirmation message;

[0033] A third control unit, configured to control the Osek node to send a sleep request message to each of the target nodes when any one of the target nodes in the token ring is not in the short-time communication mode, and enter a sleep state until a sleep confirmation message sent by any one of the target nodes is received.

[0034] Preferably, the first determination unit is specifically configured to:

[0035] For each Osek node in the short-time communication mode, determine whether the Osek node receives a network management message sent by a target node, and send a network management message with the Osek node information to the target node;

[0036] If so, determine that the Osek node forms a token ring with one or more of the target nodes;

[0037] If not, determine that the Osek node does not form a token ring with one or more of the target nodes.

[0038] Preferably, the second determination unit is specifically configured to:

[0039] Obtain the status information of each of the target nodes from the network management messages sent from each of the target nodes in the token ring to the Osek node;

[0040] Determine whether the status information of each of the target nodes indicates that the corresponding target node is in the short-time communication mode.

[0041] Preferably, the apparatus further includes:

[0042] A switching unit, configured to switch the communication mode of each Osek node to a full-scale communication mode if the voltage of the Ecu is higher than or equal to a voltage threshold;

[0043] A fourth control unit, configured to, for each Osek node in the full-scale communication mode, if the Osek node does not form a token ring with one or more target nodes, control the Osek node to maintain a communication state until a sleep instruction input by a user is received and then enter a sleep state.

[0044] Preferably, the apparatus further includes:

[0045] A fifth control unit, for each of the Osek nodes in the full communication mode, if the Osek node forms a token ring with one or more target nodes, controls the Osek node to maintain the communication state until a sleep instruction input by the user is received, and sends a sleep request message to each of the target nodes;

[0046] When the Osek node receives the sleep request messages sent by each of the target nodes, or receives a sleep confirmation message sent by any one of the target nodes, controls the Osek node to send a sleep confirmation message to each of the target nodes and enter the sleep state.

[0047] Based on the communication control method and device provided in the above embodiments of the present invention, the voltage of the Ecu is detected in real time. If the voltage of the Ecu is lower than the voltage threshold, the communication mode of each Osek node is switched to the short-time communication mode and the corresponding timer is started; for each Osek node in the short-time communication mode, it is judged whether the Osek node forms a token ring with one or more target nodes; the target nodes include: the Osek node in the Ecu and / or other Osek nodes in other Ecus; if not, when the timer corresponding to the Osek node times out for more than the preset duration, controls the Osek node to enter the sleep state; if so, it is judged whether each target node in the token ring is in the short-time communication mode; when each target node in the token ring is in the short-time communication mode, controls the Osek node to send a sleep confirmation message to each of the target nodes and enter the sleep state, so that each target node enters the sleep state when receiving the sleep confirmation message; when any one of the target nodes in the token ring is not in the short-time communication mode, controls the Osek node to send a sleep request message to each of the target nodes until a sleep confirmation message sent by any one of the target nodes is received and then enters the sleep state. In this solution, the timer and the token ring monitoring mechanism can flexibly switch the communication mode of the Osek node according to the state of the entire Ecu, achieving the purpose of reducing the power consumption of the Ecu and further saving the power consumption of the vehicle. Description of the Drawings

[0048] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only the embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained according to the provided drawings without creative efforts.

[0049] Figure 1Flowchart of a communication control method disclosed in an embodiment of the present invention;

[0050] Figure 2 Flowchart of another communication control method disclosed in an embodiment of the present invention;

[0051] Figure 3 Structural diagram of a communication control device disclosed in an embodiment of the present invention. Detailed implementation manners

[0052] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0053] In this application, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or also includes elements inherent to such process, method, article or device. Without further limitation, the element defined by the statement "including one..." does not exclude the existence of additional identical elements in the process, method, article or device including the said element.

[0054] As can be seen from the background art, in the prior art, the communication of the entire Osek network is usually turned on when the Ecu starts, and if there is no external communication release request or a sleep confirmation sent by an external node is received, the entire Osek channel or the entire Osek network will always be in a communication state. The prior art does not perform Osek network communication control from the perspective of the Ecu, so it is easy to cause waste of the Ecu's electrical energy resources, and further increase the power consumption of the entire vehicle.

[0055] Therefore, the embodiments of the present invention disclose a communication control method and device. In this solution, a timer and a token ring monitoring mechanism can be used to flexibly switch the communication mode of the Osek node according to the state of the entire Ecu, so as to achieve the purpose of reducing the electrical energy consumed by the Ecu and further saving the power consumption of the vehicle.

[0056] As Figure 1 shown, it is a flowchart of a communication control method disclosed in an embodiment of the present invention. This method is applied to the Ecu in a vehicle. There are multiple Osek nodes of the Osek network set in the Ecu, and each Osek node is provided with a corresponding timer. The method mainly includes the following steps:

[0057] Step S101: Detect the voltage of the Ecu in real time. If the voltage of the Ecu is lower than the voltage threshold, switch the communication mode of each Osek node to the short-time communication mode and start the corresponding timer.

[0058] In step S101, the short-time communication mode means that after the Osek node communicates for a period of time (after the timer times out), the Ecu will release (close) the communication of the Osek node and make it enter the sleep state; the corresponding one is the full-volume communication mode. In the full-volume communication mode, the timer is not started. If no sleep input from the user or sleep confirmation message sent by other Osek nodes is received, the Osek node will always maintain the communication state.

[0059] It should be noted that the main function of the timer is to time and notify timeout. After the timer is started, it will time out as the Ecu runs. After the timer times out, it notifies the Ecu to close the communication of the Osek node.

[0060] Step S102: For each Osek node in the short-time communication mode, determine whether the Osek node forms a token ring with one or more target nodes; if so, execute step S104; if not, execute step S103.

[0061] In the specific implementation process of step S102, for each Osek node in the short-time communication mode, determine whether the Osek node receives the network management message sent by the target node and send the network management message with the information of the Osek node to the target node; if so, determine that the Osek node forms a token ring with one or more target nodes; if not, determine that the Osek node does not form a token ring with one or more target nodes.

[0062] It should be noted that the Ecu will determine whether the current Osek node has received the network management messages of other Osek nodes (i.e., each target node). If the network management messages of each target node are received, then the current Osek node will send the network management message with the information of the current Osek node to each target node, thus establishing a ring model. The network management messages within the ring are called tokens, and this ring mode is called a token ring.

[0063] Among them, the network management message is usually used for the network management of the whole vehicle and can control the sleep and wake-up of the whole vehicle. If an Osek node is in the sleep state, it will be woken up after receiving the network management message of another Osek node and start its own communication. After the Osek node starts communication, it will periodically send a special format message, and this message is the network management message.

[0064] It should also be noted that there can be multiple Osek nodes within a token ring. The Osek nodes within a token ring may not be on the same Ecu. Therefore, it is possible that some Osek nodes within the token ring are in the short communication mode, while some Osek nodes are in the full communication mode.

[0065] Step S103: When the timer corresponding to the Osek node times out the preset duration, control the Osek node to enter the sleep state.

[0066] Step S104: Determine whether each target node in the token ring is in the short communication mode; if so, execute Step S105; if not, execute Step S106.

[0067] In the specific implementation process of Step S104, obtain the status information of each target node from the network management messages sent from each target node in the token ring to the Osek node; determine whether the status information of each target node indicates that the corresponding target node is in the short communication mode.

[0068] It should be noted that in the case of low Ecu voltage, if the current Osek node establishes a token ring with other Osek nodes (i.e., each target node), the current Osek node will activate the token ring monitoring mechanism and set the Ecu communication status additionally in the sent network management messages.

[0069] Exemplarily, when each target node sends a network management message to the current Osek node, if it is in the short communication mode at this time, fill 1 at a specified position. At this time, there is status information in the network management message indicating that the corresponding target node is in the short communication mode.

[0070] There are multiple Osek nodes within the token ring, and the network management messages will be transmitted in a certain order within this token ring. During each operation of the token ring, the current Osek node will record the status information in each network management message within the ring. Therefore, it is possible to determine whether the status information of each target node indicates that the corresponding target node is in the short communication mode through the status information of each target node.

[0071] Step S105: Control the Osek node to send a sleep confirmation message to each target node and enter the sleep state, so that each target node enters the sleep state when receiving the sleep confirmation message.

[0072] In Step S105, control the Osek node to send a sleep confirmation message to each target node by setting the sending permission of the sleep confirmation message for the Osek node.

[0073] It should be noted that the sleep confirmation message is used to indicate that the Osek node sending the sleep confirmation message will enter the sleep state. As long as the Osek node sends or receives a sleep confirmation message, the Osek node will enter the sleep state.

[0074] Step S106: Control the Osek node to send sleep request messages to each target node, and enter the sleep state until a sleep confirmation message sent by any target node is received.

[0075] In step S106, the Osek node is in the short communication mode, and there are target nodes in the full communication mode in the token ring where the Osek node is located. It can be understood that when there are Osek nodes in the full communication mode in the token ring where the Osek node in the short communication mode is located, in order not to affect the Osek nodes in the full communication mode, the Osek node in the short communication mode cannot actively send a sleep confirmation message and can only wait to receive.

[0076] The sleep indication message indicates that the Osek node wants to enter the sleep state. However, since there are target nodes in the full communication mode in the token ring, it cannot send sleep confirmation messages to each target node and enter the sleep state. It can only wait until all Osek nodes in the token ring send sleep indication messages, indicating that each Osek node wants to sleep. Then, the Osek nodes in the full communication mode will send sleep confirmation messages to each other Osek node, causing all Osek nodes in the token ring to enter the sleep state.

[0077] Based on the communication control method disclosed in the above embodiments of the present invention, in this solution, the timer and the token ring monitoring mechanism can flexibly switch the communication mode of the Osek node according to the state of the entire Ecu, achieving the purpose of reducing the power consumption of the Ecu and further saving the power consumption of the vehicle.

[0078] Based on the communication control method disclosed in the above embodiments of the present invention, as Figure 2 shown, it is a flowchart of another communication control method disclosed in the embodiments of the present invention, including the following steps:

[0079] Step S201: When the voltage of the Ecu is higher than or equal to the voltage threshold, switch the communication mode of each Osek node to the full communication mode.

[0080] Step S202: For each Osek node in the full communication mode, determine whether the Osek node forms a token ring with one or more target nodes; if so, execute step S204; if not, execute step S203.

[0081] Step S203: Control the Osek node to maintain the communication state until it receives a sleep instruction input by the user and then enters the sleep state.

[0082] It should be noted that in the full - volume communication mode, the Osek node will continuously transmit network management messages outward. Unless the user actively releases the sleep instruction for node communication or receives a sleep confirmation message sent by other Osek nodes, the Osek node will always be in the full - volume communication state and will not enter the sleep state.

[0083] Step S204: Control the Osek node to maintain the communication state until it receives a sleep instruction input by the user, and then send a sleep request message to each target node.

[0084] In step S204, if the current Osek node has established a token ring with other Osek nodes (i.e., each target node), then only when the user actively releases the node communication, the current Osek node will transmit a sleep indication message outward.

[0085] It can be understood that there may be target nodes in the full - volume communication mode within the token ring. In order not to affect the communication of the target nodes in the full - volume communication mode, before receiving the sleep indication messages sent by each node within the token ring, it cannot enter the sleep state and send a sleep confirmation message.

[0086] Step S205: When the Osek node receives the sleep request messages sent by each target node, or receives a sleep confirmation message sent by any target node, control the Osek node to send a sleep confirmation message to each target node and enter the sleep state.

[0087] It should be noted that if a non - sleep indication message appears within the token ring, that is, the network management message sent by at least one target node is not a sleep indication message, then the current Osek node will continue to request communication until each node within the entire token ring has sent a sleep indication message, and then the current Osek node will send a sleep confirmation message and enter the sleep state. Or, when the current Osek node receives a sleep confirmation message sent by a target node, indicating that the target node has first received the sleep indication messages sent by each node within the token ring, sent a sleep confirmation message to the current Osek node and entered the sleep state, the current Osek node will also enter the sleep state.

[0088] Based on the communication control method disclosed in the above - mentioned embodiment of the present invention, in this solution, by using a timer and a token - ring monitoring mechanism, the communication mode of the Osek node can be flexibly switched according to the status of the entire Ecu, achieving the purpose of reducing the electrical energy consumed by the Ecu and further saving the power consumption of the vehicle, and can be flexibly embedded into the existing Osek node communication control method.

[0089] Based on the communication control method disclosed in the above embodiments of the present invention, as Figure 3 shown, it is a structural diagram of a communication control device disclosed in an embodiment of the present invention. The device is applied to an Ecu, and multiple Osek nodes of an Osek network are set in the Ecu. Each Osek node is provided with a corresponding timer, including: a detection unit 301, a first judgment unit 302, a first control unit 303, a second judgment unit 304, a second control unit 305, and a third control unit 306.

[0090] The detection unit 301 is used to detect the voltage of the Ecu in real time. If the voltage of the Ecu is lower than the voltage threshold, the communication mode of each Osek node is switched to the short-time communication mode and the corresponding timer is started.

[0091] The first judgment unit 302 is used to judge, for each Osek node in the short-time communication mode, whether the Osek node forms a token ring with one or more target nodes; the target nodes include: Osek nodes in the Ecu and / or other Osek nodes in other Ecus.

[0092] In one embodiment, the first judgment unit 302 is specifically used for:

[0093] For each Osek node in the short-time communication mode, judge whether the Osek node receives a network management message sent by a target node, and send a network management message with Osek node information to the target node;

[0094] If so, it is determined that the Osek node forms a token ring with one or more target nodes;

[0095] If not, it is determined that the Osek node does not form a token ring with one or more target nodes.

[0096] The first control unit 303 is used to control the Osek node to enter the sleep state when the timer corresponding to the Osek node times out for a preset duration if the Osek node does not form a token ring with one or more target nodes.

[0097] The second judgment unit 304 is used to judge whether each target node in the token ring is in the short-time communication mode if the Osek node forms a token ring with one or more target nodes.

[0098] In one embodiment, the second judgment unit 304 is specifically used for:

[0099] Obtain the status information of each target node from the network management messages sent from each target node in the token ring to the Osek node;

[0100] Determine whether the status information of each target node indicates that the corresponding target node is in the short-term communication mode.

[0101] A second control unit 305, configured to, when each target node in the token ring is in the short-term communication mode, control the Osek node to send a sleep confirmation message to each target node and enter the sleep state, so that each target node enters the sleep state when receiving the sleep confirmation message.

[0102] A third control unit 306, configured to, when any target node in the token ring is not in the short-term communication mode, control the Osek node to send a sleep request message to each target node and enter the sleep state until receiving a sleep confirmation message sent by any target node.

[0103] In an embodiment, the device further includes:

[0104] A switching unit, configured to, if the voltage of the Ecu is higher than or equal to the voltage threshold, switch the communication mode of each Osek node to the full-scale communication mode.

[0105] A fourth control unit, configured to, for each Osek node in the full-scale communication mode, if the Osek node does not form a token ring with one or more target nodes, control the Osek node to maintain the communication state until receiving a sleep instruction input by the user and then enter the sleep state.

[0106] A fifth control unit, configured to, for each Osek node in the full-scale communication mode, if the Osek node forms a token ring with one or more target nodes, control the Osek node to maintain the communication state until receiving a sleep instruction input by the user, and then send a sleep request message to each target node.

[0107] When the Osek node receives sleep request messages sent by each target node or receives a sleep confirmation message sent by any target node, control the Osek node to send a sleep confirmation message to each target node and enter the sleep state.

[0108] Based on the above-described communication control device disclosed in the embodiments of the present invention, in this solution, a timer and a token ring monitoring mechanism can be used to flexibly switch the communication mode of the Osek node according to the status of the entire Ecu, so as to achieve the purpose of reducing the power consumption of the Ecu and further saving the power consumption of the vehicle.

[0109] Each embodiment in this specification is described in a progressive manner. For the same or similar parts among the embodiments, reference can be made to each other. Each embodiment focuses on the differences from other embodiments. In particular, for a system or a system embodiment, since it is basically similar to a method embodiment, the description is relatively simple. For the relevant parts, reference can be made to the description of the method embodiment. The systems and system embodiments described above are merely illustrative. 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 to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. A person of ordinary skill in the art can understand and implement it without creative effort.

[0110] Those skilled in the art can further realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.

[0111] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be obvious to those skilled in the art, and the general principles defined herein can 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 will be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A control method for communication, characterized in that, Applied to an ECU, where multiple Osek nodes of an Osek network are set in the ECU, and a corresponding timer is set for each Osek node. The method includes: Detect the voltage of the ECU in real time. If the voltage of the ECU is lower than the voltage threshold, switch the communication mode of each Osek node to the short-term communication mode and start the corresponding timer. For each Osek node in the short-term communication mode, determine whether the Osek node forms a token ring with one or more target nodes. The target nodes include: the Osek nodes in the ECU and / or the Osek nodes in other ECUs. If not, when the timer corresponding to the Osek node times out for more than the preset duration, control the Osek node to enter the sleep state. If so, determine whether each target node in the token ring is in the short-term communication mode. When each target node in the token ring is in the short-term communication mode, control the Osek node to send a sleep confirmation message to each target node and enter the sleep state, so that each target node enters the sleep state when receiving the sleep confirmation message. When any target node in the token ring is not in the short-term communication mode, control the Osek node to send a sleep request message to each target node and enter the sleep state until receiving a sleep confirmation message sent by any target node.

2. The method according to claim 1, characterized in that, The step of determining whether the Osek node in the short-term communication mode forms a token ring with one or more target nodes includes: For each Osek node in the short-term communication mode, determine whether the Osek node receives a network management message sent by a target node, and send a network management message with the Osek node information to the target node. If so, determine that the Osek node forms a token ring with one or more target nodes. If not, determine that the Osek node does not form a token ring with one or more target nodes.

3. The method according to claim 1, wherein The step of determining whether each target node in the token ring is in the short-term communication mode includes: Obtain the status information of each target node from the network management messages sent by each target node in the token ring to the Osek node. Determine whether the status information of each target node indicates that the corresponding target node is in the short-term communication mode.

4. The method according to claim 1, wherein The method further includes: If the voltage of the ECU is higher than or equal to the voltage threshold, switch the communication mode of each Osek node to the full-scale communication mode. For each Osek node in the full-scale communication mode, if the Osek node does not form a token ring with one or more target nodes, control the Osek node to maintain the communication state until receiving a sleep instruction input by the user and then enter the sleep state.

5. The method according to claim 4, wherein The method further includes: For each of the Osek nodes in the full - scale communication mode, if the Osek node forms a token ring with one or more target nodes, control the Osek node to maintain the communication state until a sleep instruction input by the user is received, and then send a sleep request message to each of the target nodes; When the Osek node receives the sleep request messages sent by each of the target nodes, or receives a sleep confirmation message sent by any one of the target nodes, control the Osek node to send a sleep confirmation message to each of the target nodes and enter the sleep state.

6. A control device for communication, characterized in that, Applied to the Ecu, there are multiple Osek nodes of the Osek network set in the Ecu, and each Osek node is provided with a corresponding timer. The device includes: A detection unit, used to detect the voltage of the Ecu in real - time. If the voltage of the Ecu is lower than the voltage threshold, switch the communication mode of each Osek node to the short - time communication mode and start the corresponding timer; A first judgment unit, used to judge whether the Osek node forms a token ring with one or more target nodes for each of the Osek nodes in the short - time communication mode; the target nodes include: the Osek nodes in the Ecu and / or the Osek nodes in other Ecus; A first control unit, used to control the Osek node to enter the sleep state when the timer corresponding to the Osek node times out the preset duration if the Osek node does not form a token ring with one or more target nodes; A second judgment unit, used to judge whether each of the target nodes in the token ring is in the short - time communication mode if the Osek node forms a token ring with one or more target nodes; A second control unit, used to control the Osek node to send a sleep confirmation message to each of the target nodes and enter the sleep state when each of the target nodes in the token ring is in the short - time communication mode, so that each of the target nodes enters the sleep state when receiving the sleep confirmation message; A third control unit, used to control the Osek node to send a sleep request message to each of the target nodes when any one of the target nodes in the token ring is not in the short - time communication mode, and enter the sleep state until a sleep confirmation message sent by any one of the target nodes is received; 7. The device according to claim 6, characterized in that, The first judgment unit is specifically used for: For each of the Osek nodes in the short - time communication mode, judge whether the Osek node receives a network management message sent by a target node, and send a network management message with the Osek node information to the target node; If so, determine that the Osek node forms a token ring with one or more of the target nodes; If not, determine that the Osek node does not form a token ring with one or more of the target nodes.

8. The device according to claim 6, wherein The second judgment unit is specifically used for: Obtain the status information of each of the target nodes from the network management messages sent from each of the target nodes in the token ring to the Osek node; Determine whether the status information of each of the target nodes indicates that the corresponding target node is in the short - term communication mode.

9. The device according to claim 6, wherein The device further includes: A switching unit, configured to switch the communication mode of each of the Osek nodes to the full - volume communication mode if the voltage of the Ecu is higher than or equal to a voltage threshold. A fourth control unit, configured to, for each of the Osek nodes in the full - volume communication mode, if the Osek node does not form a token ring with one or more target nodes, control the Osek node to maintain the communication state until it enters the sleep state when receiving a sleep instruction input by a user.

10. The device according to claim 9, wherein The device further includes: A fifth control unit, configured to, for each of the Osek nodes in the full - volume communication mode, if the Osek node forms a token ring with one or more target nodes, control the Osek node to maintain the communication state until it receives a sleep instruction input by a user, and then send a sleep request message to each of the target nodes. When the Osek node receives the sleep request messages sent by each of the target nodes, or receives a sleep confirmation message sent by any one of the target nodes, control the Osek node to send a sleep confirmation message to each of the target nodes and enter the sleep state.