Communication control method and device, equipment and storage medium
By determining the communication status synchronization between the master channel and the slave channel in the automotive electronic architecture, the problems of redundancy and resource occupation of ECU communication control schemes in the prior art are solved, efficient multi-channel communication management is realized, and electronic control units are saved resources.
Patent Information
- Application Number
- CN202411384261.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-30
- Publication Date
- 2024-12-31
AI Technical Summary
The communication control scheme of ECU in the existing automotive electronics architecture is redundant when managing multiple channels, resulting in increased development work and resource utilization, and it is easy to cause management chaos.
By obtaining multiple communication channel information of the target electronic control unit in the target vehicle, determining the master channel and the slave channel, and adjusting the status of the slave channel based on the communication status of the main channel, automatic synchronization of network management is achieved, and redundant development and resource consumption are reduced. .
While controlling multi-channel communication, the development of network communication management is reduced, the internal resources of the electronic control unit are saved, and the efficiency and accuracy of communication control are improved.
Smart Images

Figure CN119232520A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of power supply and communication control of automotive electronic architecture, and in particular to a communication control method, device, equipment and storage medium. Background Art
[0002] With the rapid development of automotive electronic technology, the structure of automobiles has become more and more complex and diverse, and the number of ECUs (Electronic Control Units) has also increased. As a result, the functional requirements for various aspects of the numerous ECUs in automobiles have become higher and higher. The most basic function is communication control, so a rigorous solution is needed for communication control. In addition, when ECUs are connected to multiple network segments, communication control becomes more complicated.
[0003] At present, in the classic AUTOSAR (Automotive Open System Architecture) communication control implementation process, if it is necessary to manage the multi-channel communication status, each channel has the function of network management, which means that each channel needs to have the ability of communication management and network management, which increases the development work, and the communication status of each channel needs to be monitored at all times, which is easy to cause confusion in management. The communication control solution under this framework will be very redundant in application, with a lot of unnecessary development and extra internal resources. Summary of the invention
[0004] In order to solve the above problems, the present application discloses a communication control method, apparatus, equipment and storage medium, which obtains channel information of multiple communication channels corresponding to a target electronic control unit in a target vehicle, determines a main channel and at least one slave channel from the multiple communication channels, and obtains the communication status of the main channel so that the communication management status of other slave channels changes back and forth as the communication status of the main channel changes, thereby solving the development redundancy caused by network management on all communication channels, and can reduce network communication management development work while controlling multi-channel communications, thereby saving internal resources of the electronic control unit.
[0005] In order to achieve the above-mentioned object of the invention, the present application provides a communication control method, the method comprising:
[0006] Acquire channel information of multiple communication channels corresponding to a target electronic control unit in a target vehicle; the multiple communication channels are channels formed by communication between the target electronic control unit and associated electronic control units; at least one communication channel is formed between any two electronic control units;
[0007] Based on the channel information of the multiple communication channels, determining a master channel and at least one slave channel from the multiple communication channels; the channel information of the master channel includes network control information, and the network control information is used to control the network communication between the target electronic control unit and the associated electronic control unit;
[0008] Obtaining the communication status of the main channel;
[0009] Based on the communication state of the master channel, the communication state of the at least one slave channel is determined; the communication state of the master channel is consistent with the communication state of the at least one slave channel.
[0010] In some implementations, acquiring the communication status of the primary channel includes:
[0011] Acquiring voltage information of the target electronic control unit and acquiring functional status information of the target electronic control unit;
[0012] If the voltage information indicates that the voltage is normal and the functional status information indicates that the function is normal, determining that the communication status of the main channel is a full communication status;
[0013] If the voltage information indicates that the voltage is abnormal and the function status information indicates that the function is normal, determining that the communication status of the main channel is a semi-communication status;
[0014] If the voltage information indicates that the voltage is abnormal and the functional status information indicates that the function is abnormal, or if the voltage information indicates that the voltage is normal and the functional status information indicates that the function is abnormal, it is determined that the communication state of the main channel is a non-communication state.
[0015] In some implementations, acquiring voltage information of the target electronic control unit includes:
[0016] Obtaining an actual voltage value of the target electronic control unit at a current time node, and comparing it with a preset voltage range;
[0017] When the actual voltage value is within the preset voltage range, determining that the voltage information is normal;
[0018] In the case where the actual voltage value is not within the preset voltage range, if the actual voltage value is restored to within the preset voltage range within a first preset time period starting from the current time node, it is determined that the voltage information is normal;
[0019] If the voltage is not restored to the preset voltage range within a first preset time period starting from the current time node, it is determined that the voltage information is a voltage abnormality.
[0020] In some implementations, obtaining the functional status information of the target electronic control unit includes:
[0021] Monitoring the functional state of the target electronic control unit and monitoring the target wake-up source attribute of the target electronic control unit; the functional state indicates whether there is an abnormality in the component function of the target electronic control unit;
[0022] If the function state is enabled and the target wakeup source attribute is active wakeup, determining that the function state information is normal;
[0023] If the function state is off, or the target wake-up source attribute is passive wake-up, it is determined that the function state information is function abnormality.
[0024] In some embodiments, the method further comprises:
[0025] When the communication state of the main channel is a semi-communication state, acquiring the voltage information within a second preset time period starting at a time node when the semi-communication state starts;
[0026] If the voltage information is restored to normal voltage, determining that the communication state of the main channel is a full communication state;
[0027] If the voltage information remains abnormal, it is determined that the communication state of the main channel is a non-communication state.
[0028] In some embodiments, the target electronic control unit includes a target wakeup source, and the method further includes:
[0029] When the target wakeup source receives the wakeup information, a wakeup operation is performed on the target electronic control unit.
[0030] In some embodiments, the method further comprises:
[0031] Acquire a power management state; the power management state includes a first operating state and a second operating state; the first operating state indicates that the power supply supplies power to the target electronic control unit; the second operating state indicates that the power supply supplies power to both the target electronic control unit and the associated electronic control unit;
[0032] In a case where the target wake-up source receives the wake-up information, determining that the power management state is the first operating state;
[0033] In a case where the power management state is the first operating state, if the communication state of the main channel is the full communication state, determining that the power management state is the second operating state;
[0034] In a case where the power management state is the second operating state, if the communication state of the main channel is the semi-communication state, determining that the power management state remains in the second operating state;
[0035] In a case where the power management state is the second operating state, if the communication state of the main channel is a non-communication state, it is determined that the power management state is the first operating state.
[0036] The present application also provides a communication control device, the device comprising:
[0037] A first acquisition module is used to acquire channel information of multiple communication channels corresponding to a target electronic control unit in a target vehicle; the multiple communication channels are channels formed by communication between the target electronic control unit and associated electronic control units; at least one communication channel is formed between any two electronic control units;
[0038] A first determination module is used to determine a master channel and at least one slave channel from the multiple communication channels based on the channel information of the multiple communication channels; the channel information of the master channel includes network control information, and the network control information is used to control the network communication between the target electronic control unit and the associated electronic control unit;
[0039] A second acquisition module, used to acquire the communication status of the main channel;
[0040] The second determining module is used to determine the communication state of the at least one slave channel based on the communication state of the master channel; the communication state of the master channel is consistent with the communication state of the at least one slave channel.
[0041] The present application also provides an electronic device, which includes a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded by the processor and executes the above-mentioned communication control method.
[0042] The present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions implement the above-mentioned communication control method when executed by a processor.
[0043] By implementing the embodiments of the present application, the following beneficial effects can be achieved:
[0044] The embodiment of this specification obtains the channel information of multiple communication channels corresponding to the target electronic control unit in the target vehicle; determines the main channel and at least one slave channel from the multiple communication channels based on the channel information of the multiple communication channels; obtains the communication status of the main channel; and determines the communication status of the at least one slave channel based on the communication status of the main channel. It is possible to realize network control and communication control of the main channel of the target electronic control unit, and let the communication management status of other slave channels change back and forth with the change of the communication status of the main channel. While controlling the communication of multiple channels, it reduces the development work of network communication management, avoids the development of redundant network management and communication control on multiple channels, and saves the internal resources of the electronic control unit. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the communication control method, device, equipment and storage medium described in the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0046] Figure 1 It is a flow chart of a communication control method provided in an embodiment of the present application;
[0047] Figure 2 It is a flowchart of a method for determining the communication status of a main channel provided in an embodiment of the present application;
[0048] Figure 3 It is a flowchart of a method for determining voltage information provided by an embodiment of the present application;
[0049] Figure 4 It is a flowchart of a method for determining functional status information provided by an embodiment of the present application;
[0050] Figure 5 It is a flow chart of a method for determining a communication state when a main channel is in a semi-communication state provided by an embodiment of the present application;
[0051] Figure 6 It is a flowchart of a method for determining a power management state provided by an embodiment of the present application;
[0052] Figure 7 is a structural diagram of a communication control device provided in an embodiment of the present application;
[0053] Figure 8 is a block diagram of an electronic device for communication control provided in an embodiment of the present application;
[0054] Fig. 9It is a block diagram of another electronic device for communication control provided in an embodiment of the present application. DETAILED DESCRIPTION
[0055] In order to enable those skilled in the art to better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings 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 of the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.
[0056] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the information used in this way can be interchanged where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or server that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.
[0057] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for display, data for analysis, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.
[0058] With the rapid development of automotive electronic technology, the structure of automobiles has become more and more complex and diverse, and the number of ECUs in them has also increased. The functional requirements for various aspects of the numerous ECUs in automobiles have also become higher and higher, especially communication control. However, in the existing technology, if you manage the multi-channel communication status, you must ensure that each channel has the ability to manage communication and network, which increases the development work, and the communication status on each channel needs to be monitored at all times, which is easy to cause confusion in management. The communication control solution under this framework will be very redundant in application, with a lot of unnecessary development and additional internal resources.
[0059] See also Figure 1, which shows a flow chart of a communication control method provided by an embodiment of the present application. This specification provides the method operation steps described in the embodiment or flow chart. The order of steps listed in the embodiment is only one way of executing the steps among many, and does not represent the only execution order. The communication control method can be executed in the order of the method shown in the embodiment or the accompanying drawings. Specifically, Figure 1 As shown, the method can be applied to any vehicle capable of running the communication control method; the method may include the following steps:
[0060] S101: Acquire channel information of multiple communication channels corresponding to a target electronic control unit in a target vehicle; the multiple communication channels are channels formed by communication between the target electronic control unit and associated electronic control units; at least one communication channel is formed between any two electronic control units;
[0061] In this embodiment, the execution subject may be the vehicle controller of the target vehicle, the target electronic control unit is any electronic control unit in the target vehicle to be awakened for communication, the target electronic control unit may communicate with any one or more electronic control units in the target vehicle, and at least one communication channel is formed between the target electronic control unit and each electronic control unit, and the multiple communication channels are channels for communication between the target electronic control unit and other electronic control units, wherein the other electronic control units are associated with the target electronic control unit. All electronic control units may be connected to a network bus, that is, any two electronic control units may be connected via a physical connection line, and there is at least one communication channel formed between any two electronic control units.
[0062] S102: determining a master channel and at least one slave channel from the multiple communication channels based on the channel information of the multiple communication channels; the channel information of the master channel includes network control information, and the network control information is used to control the network communication between the target electronic control unit and the associated electronic control unit;
[0063] In this embodiment, the main channel is a communication channel including network control information, and the slave channel is other communication channels between the target electronic control unit and the associated electronic control unit except the main channel, and the number of slave channels can be at least one. Specifically, the channel information of multiple communication channels can be configured through a configuration tool during the development process, and the communication information contained in different communication channels can be the same or different. The channel information of multiple slave channels does not contain network control information, and the channel information of the main channel contains network control information; it can be determined whether this channel is a main channel based on whether the channel is configured with network control information, wherein the configuration of network information can enable the main channel to have a network management function, and the main channel can also include a wake-up function, wherein the wake-up function is determined by the manual of the transceiver chip on the main channel, so that the transceiver on the channel can receive wake-up information sent by other electronic control units. When the channel has a network management function and a wake-up function, this channel is determined as a main channel, and the channel information of the slave channel does not include network control information and a wake-up function.
[0064] In some exemplary embodiments, the target electronic control unit includes a target wakeup source, and the method further includes:
[0065] When the target wakeup source receives the wakeup information, a wakeup operation is performed on the target electronic control unit.
[0066] Specifically, the target wake-up source is integrated in the target electronic control unit and is used to wake up the target electronic control unit. The wake-up information may be issued by an electronic control unit associated with the target electronic control unit, and the wake-up information may include a wake-up message. The initial state of the target electronic control unit may be a sleep state. In the above sleep state, if the above wake-up information is received, the target electronic control unit will change from the sleep state to the wake-up state. For example, if the frame information of the specified range received by the target electronic control unit is 400-4FF, and the specified bit in the message is 1, it is determined that the wake-up information corresponds to the target wake-up source of the target electronic control unit and can wake up the target electronic control unit.
[0067] By configuring the network management function and the wake-up function for the main channel determined by the target electronic control unit, redundant development caused by the need to configure the functions of all channels is avoided, thus saving the internal resources of the electronic control unit; at the same time, after the target wake-up source receives the corresponding wake-up information, it can wake up the target electronic control unit, thus reducing the power consumption of the entire vehicle.
[0068] S103: Acquire the communication status of the main channel;
[0069] In this embodiment, the communication state of the main channel may include a full communication state, a half communication state, and a non-communication state. Among them, the full communication state indicates that the communication channel between the target electronic control unit and the associated electronic control unit is completely open, and the target electronic control unit and the associated electronic control unit can both receive and send communication message groups, and they are mutually receiving and sending ends; the half communication state indicates that the communication channel between the target electronic control unit and the associated electronic control unit is not completely open, at this time the target electronic control unit is the receiving end, and the electronic control unit associated with the target electronic control unit is the sending end, that is, the target electronic control unit can receive the communication message group sent from the associated electronic control unit, but cannot send the communication message group to the associated electronic control unit; the non-communication state indicates that the communication channel between the target electronic control unit and the associated electronic control unit is closed, and the target electronic control unit and the associated electronic control unit can neither receive nor send the communication message group, and there is no communication between them.
[0070] In some exemplary embodiments, see Figure 2 , which is a flow chart of a method for determining the communication status of a main channel provided in an embodiment of the present application, such as Figure 2 As shown, the obtaining of the communication status of the main channel includes:
[0071] S201: Acquire voltage information of the target electronic control unit and acquire functional status information of the target electronic control unit;
[0072] S202: If the voltage information indicates that the voltage is normal and the function status information indicates that the function is normal, determining that the communication status of the main channel is a full communication status;
[0073] S203: If the voltage information indicates that the voltage is abnormal and the function status information indicates that the function is normal, determining that the communication status of the main channel is a semi-communication status;
[0074] S204: If the voltage information indicates that the voltage is abnormal and the functional status information indicates that the function is abnormal, or if the voltage information indicates that the voltage is normal and the functional status information indicates that the function is abnormal, determine that the communication state of the main channel is a non-communication state.
[0075] In the above exemplary embodiment, the communication state of the main channel can be determined according to the voltage information and functional state information of the target electronic control unit. The voltage information can represent the actual voltage of the target electronic control unit during operation. The functional state information can represent the functional state of the SWC (Software Component) in the target electronic control unit, that is, whether the SWC can provide functions normally. SWC is a core concept in AUTOSAR and can be understood as a functional software component. SWC provides a flexible and scalable architecture for realizing communication and function allocation between electronic control units. These functional software components usually include application software components (Application SWC), sensor / actuator software components (Sensor / Actuator SWC), calibration parameter software components (Parameter SWC), ECU abstraction software components (ECU Abstraction SWC), and complex device driver software components, which are used to implement application layer control algorithms, process sensor / actuator signals, provide calibration parameter values, access ECU specific I / O capabilities, and define port functions. Functional state information can also represent the target wake-up source properties of the target electronic control unit. Among them, voltage information can be determined by monitoring the actual voltage value of the target electronic control unit, and the voltage information may include normal voltage and abnormal voltage; functional status information can be determined by monitoring the functional status of the target electronic control unit and the target wake-up source attributes, and the functional status information may include normal function and abnormal function.
[0076] By acquiring the voltage information and functional status information of the target electronic control unit, the communication status of the main channel can be determined under different circumstances, making the communication status of the main channel more accurate, thereby ensuring that the network communication between the target electronic control unit and the associated electronic control units is more accurate.
[0077] In the above exemplary embodiments, specifically, see Figure 3 , which is a flow chart of a method for determining voltage information provided by an embodiment of the present application, such as Figure 3 As shown, the obtaining of the voltage information of the target electronic control unit includes:
[0078] S301: Obtaining an actual voltage value of the target electronic control unit at a current time node, and comparing it with a preset voltage range;
[0079] In the above exemplary embodiment, the communication state of the main channel is related to the voltage information. Specifically, the actual voltage value may be a voltage value obtained by real-time monitoring of the voltage of the target electronic control unit, the preset voltage range may be a voltage range that ensures the stable and safe operation of the target electronic control unit, and the result of the comparison with the preset voltage range may include that the actual voltage value is within the preset voltage range, the actual voltage value is lower than the lower limit of the preset voltage range, and the actual voltage value is higher than the upper limit of the preset voltage range.
[0080] S302: When the actual voltage value is within the preset voltage range, determining that the voltage information is normal;
[0081] In the above exemplary embodiment, when the comparison result is that the actual voltage value is within the preset voltage range, indicating that the voltage is normal, the voltage information is determined to be normal. For example, the actual voltage value is 8V, the preset voltage range is 6.5V-16V, and 8V is within the range of 6.5V-16V, then the voltage information is normal.
[0082] S303: When the actual voltage value is not within the preset voltage range, if the actual voltage value is restored to the preset voltage range within a first preset time period starting from the current time node, determining that the voltage information is normal;
[0083] In the above exemplary embodiment, when the comparison result is that the actual voltage value is not within the preset voltage range, the time node at which the actual voltage value is detected to be not within the preset voltage range is used as the starting node, and the actual voltage value is continuously monitored for the length of the first preset time period. There are two situations here. The first situation is that the voltage is restored to the preset voltage range within the first preset time period, indicating that the voltage has returned to normal, and the voltage information is determined to be normal. For example, the actual voltage value monitored at the current time node is 17V, the preset voltage range is 6.5V-16V, 17V is higher than the upper limit of the range of 6.5V-16V, and the first preset time period can be 500 milliseconds. If the actual voltage value monitored at a certain time node within 500 milliseconds is 7V, then it indicates that the actual voltage value has returned to the preset voltage range, and the voltage information is determined to be normal.
[0084] S304: If the voltage information is not restored to the preset voltage range within a first preset time period starting from the current time node, determine that the voltage information is a voltage abnormality.
[0085] In the above exemplary embodiment, when the comparison result is that the actual voltage value is not within the preset voltage range, the second situation is that the voltage information is determined to be a voltage anomaly if the voltage value is not restored to the preset voltage range in the first preset time period starting from the current time node. For example, the actual voltage value monitored at the current time node is 6V, the preset voltage range is 6.5V-16V, 6V is lower than the lower limit of the range of 6.5V-16V, and the first preset time period can be 500 milliseconds. If the actual voltage value monitored at any time node within 500 milliseconds is less than 6.5V, it indicates that the actual voltage value has not been restored to the preset voltage range, and the voltage information is determined to be a voltage anomaly.
[0086] By real-time monitoring of the actual voltage value of the target electronic control unit, it is possible to determine in real time whether there is any abnormality in the power supply of the target electronic control unit, and stop communication when an abnormality occurs, thereby performing voltage protection on the target electronic control unit and ensuring safe communication of the target electronic control unit.
[0087] In the above exemplary embodiments, accordingly, see Figure 4 , which is a flow chart of a method for determining functional status information provided by an embodiment of the present application, such as Figure 4 As shown, the obtaining of the functional status information of the target electronic control unit includes:
[0088] S401: monitoring the functional state of the target electronic control unit and monitoring the target wake-up source attribute of the target electronic control unit; the functional state indicates whether there is an abnormality in the component function of the target electronic control unit;
[0089] In the above exemplary embodiment, the communication status of the main channel is also related to the functional status information. The functional status information is jointly determined by the functional status and the target wake-up source attribute. Among them, the functional status can be the functional status of the SWC component in the target electronic control unit, which characterizes whether there is an abnormality in the component function of the target electronic control unit, that is, whether the SWC component can provide the function normally. The functional status can include on and off. When the SWC component can provide the function normally, the functional status is on, and when the SWC component cannot provide the function normally, the functional status is off; the target wake-up source attribute characterizes the type of the target wake-up source in the target electronic control unit, which can include an active wake-up source and a passive wake-up source.
[0090] S402: If the function state is enabled and the target wakeup source attribute is active wakeup, determine that the function state information is normal;
[0091] S403: If the function state is off, or the target wakeup source attribute is passive wakeup, determine that the function state information is function abnormality.
[0092] In the above exemplary embodiments, the function status information of normal function may indicate that the function status is on and the target wake-up source is an active wake-up source; the function status information of abnormal function may include the following situations: the first situation is that the function status is on and the target wake-up source is a passive wake-up source; the second situation is that the function status is off and the target wake-up source is an active wake-up source; the third situation is that the function status is off and the target wake-up source is a passive wake-up source. The function status information of abnormal function may also include that the function status is off and there is no target wake-up source, at which time the target electronic control unit no longer waits for communication, but directly enters the power-off operation.
[0093] By monitoring the functional status of the target electronic control unit and the target wake-up source properties to determine the functional status information, it is possible to accurately determine whether the SWC component in the target electronic control unit can provide functions normally, thereby determining the communication status of the main channel and then controlling the communication status of the target electronic control unit. It ensures that the target electronic control unit is kept in a dormant state when the function is abnormal or the target wake-up source is not an active wake-up source, thereby saving power consumption, and achieving normal operation of the target electronic control unit when the function is normal and the target wake-up source is an active wake-up source.
[0094] In some exemplary embodiments, see Figure 5 , which is a flow chart of a method for determining a communication state when a main channel is in a semi-communication state provided by an embodiment of the present application, such as Figure 5 As shown, the method also includes:
[0095] S501: When the communication state of the main channel is a semi-communication state, acquiring the voltage information within a second preset time period starting at a time node of the semi-communication state;
[0096] In the above exemplary embodiment, the second preset time period can be considered as the time period between the time node when the communication state of the above main channel begins to become a semi-communication state and the time node when the communication state of the main channel becomes a non-communication state, and the voltage information in this time period always maintains voltage abnormality. In the second preset time period, the actual voltage value of the target electronic control unit is still monitored in real time and compared with the preset voltage range. For example, the second preset time period can be 5 seconds, and the preset voltage range is 6.5V-16V.
[0097] S502: If the voltage information is restored to normal voltage, determine that the communication state of the main channel is a full communication state;
[0098] S503: If the voltage information remains abnormal, determine that the communication state of the main channel is a non-communication state.
[0099] Specifically, if the actual voltage value is restored to the preset voltage range, that is, the voltage information is normal, then the communication state of the main channel will be re-determined from the current semi-communication state to the full communication state. If the actual voltage value is not restored to the preset voltage range, then after the second preset time period ends, the communication state of the main channel is determined to be a non-communication state. For example, when the communication state of the main channel becomes a semi-communication state, the actual voltage value is 16.5V, the preset voltage range is 6.5V-16V, and the actual voltage value exceeds the upper limit of the preset voltage range. The time node when the communication state of the main channel becomes a semi-communication state is taken as the starting node, and the actual voltage value is monitored within 5 seconds. If the actual voltage value monitored at a certain time node within 5 seconds is 10V, which is within the preset voltage range of 6.5V-16V, it indicates that the actual voltage value has been restored to the preset voltage range, and the main channel has re-entered the full communication state; if the actual voltage value monitored at any time node within 5 seconds is greater than 16V, it indicates that the actual voltage value has not been restored to the preset voltage range, and the main channel enters the non-communication state after 5 seconds.
[0100] By monitoring the actual voltage value of the target electronic control unit in real time, accurate and reciprocating communication control can be performed on the target electronic control unit, thereby improving the accuracy and security of repeated network communications between electronic control units.
[0101] In some exemplary embodiments, see Figure 6 , which is a flow chart of a method for determining a power management state provided by an embodiment of the present application, such as Figure 6 As shown, the method also includes:
[0102] S601: Acquire a power management state; the power management state includes a first operating state and a second operating state; the first operating state indicates that the power supply supplies power to the target electronic control unit; the second operating state indicates that the power supply supplies power to both the target electronic control unit and the associated electronic control unit;
[0103] Specifically, the power management state can characterize the power supply of the power supply to the target electronic control unit. The power supply voltage of the power supply in the first operating state and the second operating state is the working voltage of the electronic control unit. The power management state also includes a verification state, which is the state before the first operating state. The verification state characterizes that the power supply provides a basic power supply voltage to the target electronic control unit. In the verification state, the target electronic control unit is in a dormant state and has not been awakened. At this time, the power supply provides a standard basic voltage to the target electronic control unit to ensure that the target electronic control unit can be awakened at any time through the target wake-up source. For example, the basic supply voltage can be 5V and the working voltage can be 12V.
[0104] S602: When the target wake-up source receives the wake-up information, determine that the power management state is the first operating state;
[0105] In the above exemplary embodiment, after the target vehicle is powered on, the target electronic control unit determines whether to be awakened based on the wake-up information. If the target wake-up source receives the wake-up information, the target electronic control unit is awakened, the main channel and at least one slave channel are determined, and the power management state is switched from the verification state to the first operating state. At this time, the power supply supplies power to the target electronic control unit and switches the power management state according to the communication state of the main channel.
[0106] S603: When the power management state is the first operating state, if the communication state of the main channel is the full communication state, determine that the power management state is the second operating state;
[0107] S604: when the power management state is the second operating state, if the communication state of the main channel is the semi-communication state, determine that the power management state remains in the second operating state;
[0108] S605: When the power management state is the second operating state, if the communication state of the primary channel is a non-communication state, determine that the power management state is the first operating state.
[0109] In the above exemplary embodiment, the switching process of the power management state may include: when the main channel communication state is the full communication state, the power management state is switched from the first operating state to the second operating state; in the second operating state, if the main channel communication state changes to the half communication state, the power management state remains in the second operating state, which indicates that the voltage information is abnormal, and the voltage is abnormal. Figure 5 The method given determines the power management state, that is, if the voltage information is restored to normal voltage, the power management state is determined to be the second operating state; if the voltage information remains abnormal voltage, the main channel enters a non-communication state, and the power management state is switched from the second operating state to the first operating state.
[0110] It should be noted that when the functional status information indicates a functional abnormality, the power management status will directly switch to a power-off status, that is, the power supply no longer supplies power to the target electronic control unit, the power supply voltage is 0, and the target electronic control unit directly enters the power-off stage and no longer communicates with the associated electronic control unit over the network.
[0111] By obtaining the power management status and allowing it to change repeatedly with the changes in the main channel communication status, it is possible to control multiple channels without the need for additional network management and communication management. This enables the target electronic control unit to have a voltage protection function, ensures the correct operation of the power management status, and ensures the safety of vehicle communications.
[0112] S104: Determine the communication state of the at least one slave channel based on the communication state of the master channel; the communication state of the master channel is consistent with the communication state of the at least one slave channel;
[0113] In this embodiment, the communication state of the slave channel changes accordingly according to the change of the communication state of the master channel, that is, when the communication state of the master channel is a full communication state, the communication state of at least one slave channel is determined to be a full communication state; when the communication state of the master channel is a half communication state, the communication state of at least one slave channel is determined to be a half communication state; when the communication state of the master channel is a non-communication state, the communication state of at least one slave channel is determined to be a non-communication state.
[0114] By determining the communication status of the main channel, the network communication between the target electronic control unit and all associated electronic control units is controlled, so that the development of a main channel can realize the network communication between all associated electronic control units, saving the development work of the electronic control unit, and can accurately combine the logic of voltage protection to control the communication on each channel, thereby saving the internal resources of the electronic control unit.
[0115] The present application also provides a communication control device. Figure 7 , which is a device block diagram of a communication control device provided by an embodiment of the present application, such as Figure 7 As shown, the communication control device includes:
[0116] The first acquisition module 701 is used to acquire channel information of multiple communication channels corresponding to a target electronic control unit in a target vehicle; the multiple communication channels are channels formed by communication between the target electronic control unit and associated electronic control units; at least one communication channel is formed between any two electronic control units;
[0117] A first determining module 702 is configured to determine a master channel and at least one slave channel from the plurality of communication channels based on the channel information of the plurality of communication channels; the channel information of the master channel includes network control information, and the network control information is used to control the network communication between the target electronic control unit and the associated electronic control unit;
[0118] The second acquisition module 703 is used to acquire the communication status of the main channel;
[0119] The second determination module 704 is configured to determine the communication state of the at least one slave channel based on the communication state of the master channel; the communication state of the master channel is consistent with the communication state of the at least one slave channel.
[0120] In an optional embodiment, the communication control device further includes:
[0121] A communication acquisition module, used to acquire voltage information of the target electronic control unit and functional status information of the target electronic control unit;
[0122] A first communication determination module, configured to determine that the communication state of the main channel is a full communication state if the voltage information indicates that the voltage is normal and the function state information indicates that the function is normal;
[0123] A second communication determination module, configured to determine that the communication state of the main channel is a semi-communication state if the voltage information indicates that the voltage is abnormal and the function state information indicates that the function is normal;
[0124] The third communication determination module is used to determine that the communication state of the main channel is a non-communication state if the voltage information is abnormal voltage and the functional status information is functional abnormality, or if the voltage information is normal voltage and the functional status information is functional abnormality.
[0125] In an optional embodiment, the communication control device further includes:
[0126] A first voltage information acquisition module, used to acquire an actual voltage value of the target electronic control unit at a current time node, and compare it with a preset voltage range;
[0127] A first voltage information determining module, configured to determine that the voltage information is normal when the actual voltage value is within the preset voltage range;
[0128] A second voltage information determination module, configured to determine that the voltage information is normal if the actual voltage value is restored to the preset voltage range within a first preset time period starting from the current time node when the actual voltage value is not within the preset voltage range;
[0129] The third voltage information determining module is configured to determine that the voltage information is abnormal if the voltage information has not recovered to within the preset voltage range within a first preset time period starting from the current time node.
[0130] In an optional embodiment, the communication control device further includes:
[0131] A function status information determination module, used to monitor the function status of the target electronic control unit and the target wake-up source attribute of the target electronic control unit; the function status indicates whether there is an abnormality in the component function of the target electronic control unit;
[0132] A first function status information determination module, configured to determine that the function status information is normal if the function status is on and the target wakeup source attribute is active wakeup;
[0133] The second function status information determination module is used to determine that the function status information is function abnormal if the function status is off, or the target wake-up source attribute is passive wake-up.
[0134] In an optional embodiment, the communication control device further includes:
[0135] A second voltage information acquisition module, configured to acquire, when the communication state of the main channel is a semi-communication state, the voltage information within a second preset time period starting from a time node of the semi-communication state;
[0136] a fourth communication determination module, configured to determine that the communication state of the main channel is a full communication state if the voltage information is restored to normal voltage;
[0137] The fifth communication determination module is used to determine that the communication state of the main channel is a non-communication state if the voltage information remains as abnormal voltage.
[0138] In an optional embodiment, the communication control device further includes:
[0139] The wake-up module is used to perform a wake-up operation on the target electronic control unit when the target wake-up source receives the wake-up information.
[0140] In an optional embodiment, the communication control device further includes:
[0141] A power management state acquisition module, used to acquire the power management state; the power management state includes a first operating state and a second operating state; the first operating state indicates that the power supply supplies power to the target electronic control unit; the second operating state indicates that the power supply supplies power to both the target electronic control unit and the associated electronic control unit;
[0142] A first management state determining module, configured to determine that the power management state is the first operating state when the target wake-up source receives the wake-up information;
[0143] A second management state determining module, configured to determine that the power management state is the second operating state if the communication state of the main channel is the full communication state when the power management state is the first operating state;
[0144] a third management state determining module, configured to determine that the power management state remains in the second operating state if the communication state of the main channel is the semi-communication state when the power management state is the second operating state;
[0145] The fourth management state determination module is used to determine that the power management state is the first operating state if the communication state of the main channel is a non-communication state when the power management state is the second operating state.
[0146] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0147] An embodiment of the present application also provides a communication control electronic device, which includes a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded by the processor and executes the communication control method described in the above method embodiment.
[0148] See also Figure 8 , which is a block diagram of an electronic device for communication control provided by an embodiment of the present application. The electronic device can be any control terminal that can run the communication control method, and its internal structure diagram can be as shown in Figure 8 As shown. The electronic device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the electronic device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a communication control method is implemented.
[0149] See also Fig. 9 , which is a block diagram of another electronic device for communication control provided by an embodiment of the present application. The electronic device may be a server, and its internal structure diagram may be as shown in FIG. Fig. 9As shown. The electronic device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the electronic device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a communication control method is implemented.
[0150] Those skilled in the art will understand that Figure 8 or Fig. 9 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present disclosure, and does not constitute a limitation on the electronic device to which the scheme of the present disclosure is applied. The specific electronic device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0151] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the communication control method described in the embodiment of the present application is implemented.
[0152] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0153] The above describes specific embodiments of the present specification, and other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily have to be performed in the specific order or sequential order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0154] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the electronic device and computer-readable storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0155] The electronic device, computer-readable storage medium and method provided in the embodiments of the present application correspond to each other. Therefore, the electronic device and computer-readable storage medium also have similar beneficial technical effects as the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the corresponding electronic device and computer-readable storage medium will not be repeated here.
[0156] The above is only the embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A communication control method, characterized in that: include: Acquire channel information of a plurality of communication channels corresponding to a target electronic control unit in a target vehicle; the plurality of communication channels are channels formed by communication between the target electronic control unit and associated electronic control units; At least one communication channel is formed between any two electronic control units; Based on the channel information of the multiple communication channels, determining a master channel and at least one slave channel from the multiple communication channels; the channel information of the master channel includes network control information, and the network control information is used to control the network communication between the target electronic control unit and the associated electronic control unit; Obtaining the communication status of the main channel; Based on the communication state of the master channel, the communication state of the at least one slave channel is determined; the communication state of the master channel is consistent with the communication state of the at least one slave channel.
2. The method according to claim 1, characterized in that The acquiring the communication status of the primary channel comprises: Acquiring voltage information of the target electronic control unit and acquiring functional status information of the target electronic control unit; If the voltage information indicates that the voltage is normal and the functional status information indicates that the function is normal, determining that the communication status of the main channel is a full communication status; If the voltage information indicates that the voltage is abnormal and the function status information indicates that the function is normal, determining that the communication status of the main channel is a semi-communication status; If the voltage information indicates that the voltage is abnormal and the functional status information indicates that the function is abnormal, or if the voltage information indicates that the voltage is normal and the functional status information indicates that the function is abnormal, it is determined that the communication state of the main channel is a non-communication state.
3. The method according to claim 2, characterized in that The step of acquiring voltage information of the target electronic control unit comprises: Obtaining an actual voltage value of the target electronic control unit at a current time node, and comparing it with a preset voltage range; When the actual voltage value is within the preset voltage range, determining that the voltage information is normal; In the case where the actual voltage value is not within the preset voltage range, if the actual voltage value is restored to within the preset voltage range within a first preset time period starting from the current time node, it is determined that the voltage information is normal; If the voltage is not restored to the preset voltage range within a first preset time period starting from the current time node, it is determined that the voltage information is a voltage abnormality.
4. The method according to claim 2, characterized in that: The obtaining of the functional status information of the target electronic control unit comprises: Monitoring the functional state of the target electronic control unit and monitoring the target wake-up source attribute of the target electronic control unit; the functional state indicates whether there is an abnormality in the component function of the target electronic control unit; If the function state is enabled and the target wakeup source attribute is active wakeup, determining that the function state information is normal; If the function state is off, or the target wake-up source attribute is passive wake-up, it is determined that the function state information is function abnormality.
5. The method according to claim 3, characterized in that: The method further comprises: When the communication state of the main channel is a semi-communication state, acquiring the voltage information within a second preset time period starting at a time node when the semi-communication state starts; If the voltage information is restored to normal voltage, determining that the communication state of the main channel is a full communication state; If the voltage information remains abnormal, it is determined that the communication state of the main channel is a non-communication state.
6. The method according to claim 1, characterized in that The target electronic control unit includes a target wakeup source, and the method further includes: When the target wakeup source receives the wakeup information, a wakeup operation is performed on the target electronic control unit.
7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: Acquire a power management state; the power management state includes a first operating state and a second operating state; the first operating state indicates that the power supply supplies power to the target electronic control unit; the second operating state indicates that the power supply supplies power to both the target electronic control unit and the associated electronic control unit; In a case where the target wake-up source receives the wake-up information, determining that the power management state is the first operating state; In a case where the power management state is the first operating state, if the communication state of the main channel is the full communication state, determining that the power management state is the second operating state; When the power management state is the second operating state, if the communication state of the main channel is the semi-communication state, determining that the power management state remains in the second operating state; In a case where the power management state is the second operating state, if the communication state of the main channel is a non-communication state, it is determined that the power management state is the first operating state.
8. A communication control device, characterized in that: The device comprises: A first acquisition module is used to acquire channel information of multiple communication channels corresponding to a target electronic control unit in a target vehicle; the multiple communication channels are channels formed by communication between the target electronic control unit and associated electronic control units; at least one communication channel is formed between any two electronic control units; A first determination module, configured to determine a master channel and at least one slave channel from the plurality of communication channels based on channel information of the plurality of communication channels; the channel information of the master channel includes network control information, and the network control information is used to control network communication between the target electronic control unit and the associated electronic control unit; A second acquisition module, used to acquire the communication status of the main channel; The second determining module is used to determine the communication state of the at least one slave channel based on the communication state of the master channel; the communication state of the master channel is consistent with the communication state of the at least one slave channel.
9. An electronic device, characterized in that: The electronic device includes a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded by the processor and executes the communication control method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the communication control method according to any one of claims 1 to 7 is implemented.
