Vehicle communication methods, systems, controllers, and vehicles
By configuring differentiated CAN, LIN, and PLC channels for the vehicle ECU and dynamically scheduling communication resources, the problems of insufficient ECU communication reliability and resource waste are solved, and cost optimization is achieved.
Patent Information
- Application Number
- CN202611280339.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-21
- Publication Date
- 2026-11-17
AI Technical Summary
In the prior art, the differences in safety levels are not considered when configuring communication resources in vehicle electronic control units (ECUs), resulting in insufficient communication reliability or waste of resource redundancy and increased costs.
Based on the ECU's safety level, differentiated communication channels are configured from multiple preset communication channels, including CAN, LIN, and PLC channels, and communication resources are dynamically scheduled to ensure reliability and save costs.
This approach optimizes the use of vehicle communication resources and reduces overall vehicle communication costs while ensuring the reliability of ECU communication.
Smart Images

Figure CN123123064A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle communication technology, and in particular to a vehicle communication method, system, controller and vehicle. Background Technology
[0002] With the deepening development of vehicle electrification, intelligence, and connectivity, the number of on-board electronic control units (ECUs) is rapidly increasing, leading to a sharp rise in the complexity of vehicle wiring harnesses. Simultaneously, the application of new technologies such as high-precision environmental perception, advanced intelligent driving decision-making, and immersive cockpits places higher demands on the real-time performance, reliability, and bandwidth of data transmission between ECUs.
[0003] Currently, different ECUs have different safety requirements, and when configuring communication resources for ECUs, these requirements are not taken into account. This results in insufficient communication reliability of ECUs or redundant waste of ECU communication resources, leading to increased costs. Summary of the Invention
[0004] This application provides a vehicle communication method that can ensure the communication reliability of the electronic control unit in the vehicle while saving costs, thus at least partially solving the above-mentioned technical problems.
[0005] To achieve the above objectives, according to a first aspect of this application, a vehicle communication method is provided, comprising: Based on the security level corresponding to the target electronic control unit, at least one target communication channel is configured for the target electronic control unit from at least two preset communication channels, wherein the at least two preset communication channels correspond to different communication capabilities.
[0006] According to a second aspect of this application, a vehicle communication device is provided, comprising: The channel configuration module is used to configure at least one target communication channel for the target electronic control unit from at least two preset communication channels based on the security level corresponding to the target electronic control unit, wherein the at least two preset communication channels correspond to different communication capabilities.
[0007] Optionally, the preset communication channels include a first communication channel, a second communication channel, and a third communication channel, wherein the communication capability of the first communication channel is greater than that of the second communication channel, and the communication capability of the second communication channel is greater than that of the third communication channel.
[0008] Optionally, the channel configuration module includes at least one of the following: Configure a first communication channel and a second communication channel for a target electronic control unit whose safety level meets the first preset level; Configure a first communication channel and / or a third communication channel for a target electronic control unit whose safety level meets the second preset level; Configure a second and / or third communication channel for the target electronic control unit whose safety level meets the third preset level; Among them, the first preset level is greater than the second preset level, and the second preset level is greater than the third preset level.
[0009] Optionally, the target electronic control unit includes a first electronic control unit, which is configured with at least two target communication channels. The vehicle communication device may include a channel switching module, which is specifically used for: Based on the communication quality of at least two target communication channels, the first electronic control unit is controlled to switch the target communication channel of the current communication.
[0010] Optionally, the target communication channel includes a first communication channel and a second communication channel, and the channel switching module is specifically used for: When the first electronic control unit communicates through the first communication channel, if the communication quality of the first communication channel meets the first preset communication abnormality condition, and / or the communication quality of the second communication channel meets the preset communication compliance condition, then the first electronic control unit is controlled to switch to the second communication channel. And / or, if the communication quality of the first communication channel meets the first preset communication anomaly condition, and the communication quality of the second communication channel does not meet the preset communication compliance condition, then the communication parameters of the second communication channel are adjusted, so that the communication quality of the second communication channel is re-evaluated based on the adjusted parameters.
[0011] Optionally, the communication quality of the first communication channel includes the load rate, and the first preset communication abnormality condition includes the load rate being greater than a preset load threshold. And / or, the communication quality of the second communication channel includes signal-to-noise ratio, bit error rate and / or available bandwidth, and the preset communication compliance conditions include signal-to-noise ratio greater than a first preset quality threshold, and / or, bit error rate less than a second preset quality threshold, and / or, available bandwidth meets the communication data volume corresponding to the first electronic control unit; And / or, the communication quality of the second communication channel includes a quality score, and the preset communication compliance conditions include a quality score greater than a preset score threshold. The quality score is obtained by weighted summation of the parameter scores of at least two of the following parameters of the second communication channel: signal-to-noise ratio, bit error rate, and cumulative duration.
[0012] Optionally, the aforementioned channel switching module is specifically used for: If the first electronic control unit meets the preset unit conditions, then the first electronic control unit is controlled to switch to the second communication channel; wherein, the first electronic control unit meets the preset unit conditions, including the first electronic control unit's security level meeting the preset level, and / or, the data currently transmitted by the first electronic control unit meets the first preset data type. And / or, when there are at least two first electronic control units, based on the unit association information of at least two first electronic control units, select the electronic control unit to be switched from the at least two first electronic control units that matches the data transmission index of the second communication channel, and control the electronic control unit to be switched to switch to the second communication channel.
[0013] Optionally, the target electronic control unit includes a second electronic control unit, which is configured with a target communication channel. The vehicle communication device may include an evaluation module, which is specifically used for: If the communication quality of the target communication channel meets the second preset communication anomaly condition, based on the availability evaluation results of at least one candidate communication channel, a communication channel to be switched that matches the preset channel usage conditions is selected from at least one candidate communication channel. The second electronic control unit is switched to the communication channel to be switched.
[0014] Optionally, the vehicle communication device may include a communication module, which is specifically used for: The communication data in the second electronic control unit that matches the second preset data type is communicated through the communication channel to be switched.
[0015] Optionally, at least two communication channels may use different physical media; And / or, the communication channels include at least two of the following: CAN channel, PLC channel, and LIN channel.
[0016] According to a third aspect of this application, a vehicle communication system is provided, comprising: Multiple communication network units, each communication network unit including a connected execution controller and a communication channel, the communication channel being used to connect to an electronic control unit; The central control unit is connected to multiple communication network units and is used to execute any of the vehicle communication methods provided in the embodiments of this application.
[0017] Optionally, the central control unit includes at least one of the following: a status detection module, a security level mapping table memory, a channel quality assessment module, a dynamic decision engine, and a switching execution controller; The dynamic decision engine is connected to the status detection module, the security level mapping table memory, the channel quality assessment module, and the handover execution controller, respectively. The status detection module is used to collect communication status parameters of the communication network unit; The security level mapping table memory is used to store the security level corresponding to the electronic control unit; The channel quality assessment module is used to assess the communication quality of the communication channel; The dynamic decision engine is used to control the switching execution controller to execute any of the vehicle communication methods provided in the embodiments of this application, based on data corresponding to at least one of the state detection module, security level mapping table, and channel quality assessment module.
[0018] Optionally, the communication network unit includes at least two of the following: a CAN communication network unit, a LIN communication network unit, and a PLC communication network unit. The execution controller of the CAN communication network unit includes a CAN controller, and the communication channel of the CAN communication network unit includes a CAN bus; The execution controller of the LIN communication network unit includes a LIN controller, and the communication channel of the LIN communication network unit includes a LIN bus; The execution controller of the PLC communication network unit includes a PLC modulator, and the communication channel of the PLC communication network unit includes a power line.
[0019] According to a fourth aspect of this application, a controller is provided, including one or more processors and a memory, wherein the memory stores a computer program that, when executed by the processor, causes the processor to perform any of the vehicle communication methods provided in the embodiments of this application.
[0020] According to a fifth aspect of this application, a computer-readable storage medium is provided, including a computer program that, when run on a controller, causes the controller to perform any of the vehicle communication methods provided in the embodiments of this application.
[0021] According to a sixth aspect of this application, a computer program product is provided, including a computer program or instructions that, when executed by a processor, implement any of the vehicle communication methods provided in the embodiments of this application.
[0022] According to a seventh aspect of this application, a vehicle is provided, the vehicle including a vehicle communication system, or including a controller.
[0023] In the vehicle communication method of this application embodiment, at least one target communication channel is configured for the target electronic control unit from at least two preset communication channels based on the security level corresponding to the target electronic control unit. The at least two preset communication channels correspond to different communication capabilities. By utilizing the security level corresponding to the electronic control unit, the communication resources of the electronic control unit are configured differently, that is, the target communication channel is configured. This ensures the communication reliability of the electronic control unit in the vehicle when it communicates, while also saving costs.
[0024] Other features and advantages of this application will be described in detail in the following detailed description section. Attached Figure Description
[0025] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0026] To gain a more complete understanding of this application and its beneficial effects, the following description will be provided in conjunction with the accompanying drawings, wherein the same reference numerals in the following description denote the same parts.
[0027] Figure 1 This is a schematic flowchart of a vehicle communication method provided in an exemplary embodiment of this disclosure; Figure 2 This is another flowchart illustrating the vehicle communication method provided in an exemplary embodiment of this disclosure; Figure 3 This is another flowchart illustrating the vehicle communication method provided in an exemplary embodiment of this disclosure; Figure 4 This is another schematic flowchart of the vehicle communication method provided in an exemplary embodiment of this disclosure; Figure 5 This is a schematic diagram of the structure of the vehicle communication system provided in an exemplary embodiment of this disclosure; Figure 6 This is a schematic diagram of the structure of the vehicle communication device provided in an exemplary embodiment of this disclosure; Figure 7 This is a schematic diagram of the controller provided in the embodiments of this application. Detailed Implementation
[0028] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0029] This application provides a vehicle communication method, apparatus, and system. The vehicle communication apparatus can be integrated into a terminal device and / or a cloud server or other controller. For example, the terminal device can be a vehicle control unit, an in-vehicle data processing system, an in-vehicle communication system, a drone controller (handle, etc.), a smartphone, tablet computer, laptop computer, desktop computer, smart speaker, smartwatch, or other devices installed in the vehicle.
[0030] Furthermore, in the embodiments of this application, "multiple" refers to two or more. The terms "first" and "second," etc., in the embodiments of this application are used for distinguishing descriptions and should not be construed as implying relative importance.
[0031] The following sections provide detailed descriptions of each example. It should be noted that the order in which the embodiments are described is not intended to limit the preferred order of the embodiments.
[0032] Please see Figure 1 , Figure 1 This is a schematic flowchart of a vehicle communication method provided in an embodiment of this application. For ease of description, this embodiment uses a terminal device for illustration; that is, the above-described vehicle communication method may include: S101. Based on the security level corresponding to the target electronic control unit, configure at least one target communication channel for the target electronic control unit from at least two preset communication channels, wherein the at least two preset communication channels correspond to different communication capabilities.
[0033] The Electronic Control Unit (ECU), also known as the vehicle's embedded controller or car computer, is responsible for controlling specific functions of the vehicle (such as engine control, window control, and braking control). In this embodiment, different communication resources are allocated to different ECUs based on their security levels.
[0034] The security level indicates the importance of the electronic control unit. The higher the security level, the more important the electronic control unit is, meaning that the data being transmitted by the electronic control unit is more critical.
[0035] As can be seen from the above, by configuring at least one target communication channel for the target electronic control unit from at least two preset communication channels based on the security level corresponding to the target electronic control unit, wherein the at least two preset communication channels correspond to different communication capabilities, the communication resources of the electronic control unit can be configured differently by utilizing the security level corresponding to the electronic control unit, that is, by configuring the target communication channel, so as to ensure the communication reliability of the electronic control unit in the vehicle when communicating, while also saving costs.
[0036] Specifically, the safety level of the electronic control unit on the target vehicle can be determined based on the vehicle safety integrity level table. Based on the electronic control unit with the corresponding safety level, the electronic control unit can be divided into different levels. Thus, the communication medium can be configured differently based on different levels, that is, at least one communication channel can be configured.
[0037] Among them, electronic control units with the same security level are configured with the same target communication channel, or at least partially the same channel. The specific configuration can be set according to the requirements and is not limited here.
[0038] The Automotive Safety Integrity Level (ASIL) table, derived from the ISO 26262 functional safety standard, is used to classify the safety risk level of automotive electronic systems. This table is divided into four levels: A, B, C, and D. ASIL D has the highest requirements (e.g., braking systems), ASIL A has the lowest requirements, and QM (Quality Management) indicates no safety requirements. This embodiment uses this as the basis for classification.
[0039] ISO 26262 is an international standard for "Functional Safety of Road Vehicles" published by the International Organization for Standardization (ISO).
[0040] For example, preset levels can be designed to stratify electronic control units, such as designating electronic control units with a safety level that meets the first preset level as the first-level electronic control unit, electronic control units with a safety level that meets the second preset level as the second-level electronic control unit, and electronic control units with a safety level that meets the third preset level as the third-level electronic control unit.
[0041] If the first preset level is greater than the second preset level, and the second preset level is greater than the third preset level, then the first-level electronic control unit is more important than the second-level electronic control unit, and the second-level electronic control unit is more important than the third-level electronic control unit.
[0042] In this embodiment, it is realized how to implement differentiated configuration of communication resources based on the ECU security level in the vehicle network architecture, so as to better balance cost control and security protection requirements.
[0043] Optionally, at least two target communication channels configured in the same electronic control unit can be heterogeneous.
[0044] In some embodiments, the preset communication channel includes a first communication channel, a second communication channel, and a third communication channel, wherein the communication capability of the first communication channel is greater than that of the second communication channel, and the communication capability of the second communication channel is greater than that of the third communication channel.
[0045] Among them, the larger the communication capability of the communication channel, the better the communication quality of the corresponding communication channel, which can correspond to a higher security level. That is, the electronic control unit with a higher security level is equipped with a communication channel with a larger communication capability.
[0046] Specifically, the method further includes: At least two communication channels use different physical media; And / or, the communication channels include at least two of the following: CAN channel, PLC channel, and LIN channel.
[0047] In this embodiment, by integrating the CAN channel, LIN channel, and PLC channel, and implementing dynamic scheduling and intelligent redundancy based on the safety level, a high level of technical complexity and system performance is achieved while taking into account cost, reliability, and resource utilization.
[0048] CAN stands for Controller Area Network, a serial communication protocol bus used for real-time applications. It can transmit signals using twisted-pair cables or optical fibers.
[0049] LIN stands for Local Interconnect Network, a low-cost serial communication network designed for automotive distributed electronic systems. It is suitable for control units with low bandwidth requirements, such as doors and air conditioning.
[0050] In this embodiment, PLC stands for Power Line Communication, a technology that uses existing power lines as a communication medium to transmit data by coupling high-frequency signals onto power lines. In this example, the PLC channel is constructed using the vehicle's low-voltage power line, achieving multiplexing of the communication and power supply wiring harnesses.
[0051] In some embodiments, configuring at least one target communication channel for the target electronic control unit from at least two preset communication channels includes at least one of the following: Configure a first communication channel and a second communication channel for a target electronic control unit whose safety level meets the first preset level; Configure a first communication channel and / or a third communication channel for a target electronic control unit whose safety level meets the second preset level; Configure a second and / or third communication channel for the target electronic control unit whose safety level meets the third preset level; Among them, the first preset level is greater than the second preset level, and the second preset level is greater than the third preset level.
[0052] It should be noted that the choice between target electronic control units and communication media (preset communication channels) of different security levels is based on their respective security levels, thereby achieving a reasonable balance between security and resource investment.
[0053] Understandably, higher safety levels require more stringent safety requirements, such as more standardized development processes, lower failure rates, and stronger fault tolerance. Therefore, high-safety-level electronic control units typically require more redundancy (e.g., dual redundancy of CAN and PLC channels). Conversely, for units with lower safety levels, less stringent real-time requirements, and virtually no safety risks (such as QM-level units), only a PLC can be configured to reduce costs while still meeting requirements.
[0054] For example, the first-level electronic control unit is a safety-critical electronic control unit (ASIL C / D level safety-critical node, such as the electronic control unit corresponding to the brake control unit, steering control unit, battery management system, etc.), and also has the ability to communicate with PLC via CAN bus.
[0055] For example, the second-level electronic control unit is a conventional non-safe electronic control unit (ASIL A / B level conventional non-safe nodes, such as window control units, seat adjustment units, wireless charging units, etc.), which only has CAN / LIN bus communication capability, and the power line only serves to provide power.
[0056] For example, the third-level electronic control unit is a real-time / non-safe electronic control unit (QM-level non-real-time / non-safe node, such as reading light control unit, air conditioner panel control unit, etc.), which only has power line carrier (PLC) communication capability or only has LIN bus communication capability, without dedicated communication wiring harness.
[0057] For example, the brake control unit can be used to perform brake-by-wire, and the steering control unit can be used to perform steering-by-wire.
[0058] The CAN bus refers to the CAN channel, through which the electronic control unit can communicate with the intelligent management unit via the CAN controller.
[0059] Among them, PLC communication capability refers to the PLC channel, where the electronic control unit can be connected to the system only through the power cord, and establish a redundant communication link with the management unit through the power cord using a PLC modem.
[0060] Among them, the wired remote (Steer) by In the heterogeneous network architecture of this embodiment, all safety-critical drive-by-wire functions (such as steer-by-wire and brake-by-wire) belong to ASIL C / D level ECUs. These ECUs are simultaneously connected to the CAN bus (for low-latency, deterministic real-time communication) and the PLC channel (providing heterogeneous redundancy via the vehicle's low-voltage power supply line), thereby enabling seamless switching of critical drive-by-wire commands in the event of failure of either channel, ensuring high reliability and functional safety of the drive-by-wire system.
[0061] A heterogeneous network is a hybrid network architecture composed of multiple different types of communication networks. In this embodiment, it includes CAN, LIN, and PLC. Each network has different characteristics in terms of communication speed, cost, and reliability, and their advantages are complemented by unified network management.
[0062] The PLC modem is a power line carrier modem (PLC Modem), a hardware module that enables PLC communication. It is responsible for modulating digital signals into high-frequency carrier signals and loading them onto the power line, as well as demodulating received signals from the power line. In this embodiment, each ECU connected to the PLC must have this module built-in.
[0063] It is understandable that while selective redundancy for safety-critical nodes can improve reliability, non-critical nodes still use the traditional architecture, limiting the space for system-level cost optimization. Furthermore, completely replacing the existing bus with a PLC is insufficient to meet the high reliability requirements of safety-critical nodes. Therefore, a static allocation architecture for multi-media communication resources based on the safety level of the electronic control unit (ECU) is proposed. In the vehicle's electronic and electrical architecture, a differentiated communication resource configuration system is constructed based on the functional safety level (ASIL) of the ECU: For ASILC / D level safety-critical ECUs (such as steer-by-wire, brake-by-wire, and other steer-by-wire functions), a heterogeneous redundancy configuration of CAN and PLC is adopted to ensure reliable transmission of control commands even if any single bus fails, meeting the stringent requirements of functional safety for fault tolerance time and data integrity; for ASILA / B level ECUs, only CAN is configured to avoid unnecessary redundancy while ensuring real-time performance and bandwidth requirements; for QM level ECUs, only LIN or only PLC is used to meet their low-bandwidth, non-safety-critical functional requirements at the lowest cost. This solution ensures the reliability of critical nodes such as drive-by-wire systems while effectively controlling wiring harness and communication costs by selecting more economical communication methods for non-critical nodes. This achieves system-level optimization of vehicle communication resources, avoiding cost waste or insufficient reliability caused by a one-size-fits-all design. The overall architecture adopts a modular system resource configuration approach.
[0064] In one specific implementation, such as Figure 2 As shown, the following initialization steps can be performed when configuring at least one target communication channel for the target electronic control unit after the system is powered on: Step 1: Read the security level mapping table. Specifically, a pre-configured security level mapping table can be loaded from non-volatile memory. This security level mapping table can contain the identifier of each electronic control unit, the corresponding security level (such as ASIL level, i.e., ASIL A, B, C, D or QM), and the corresponding target communication channel (such as CAN channel only, LIN channel only, PLC channel only, or CAN+PLC dual-mode channel, etc.).
[0065] Step 2: Iterate through each electronic control unit (ECU) in sequence.
[0066] For each ECU visited, the following steps need to be performed: Step 2.1: Determine the ASIL level.
[0067] Step 2.2: Allocate communication resources based on the determined ASIL level, that is, according to the security level mapping table, send communication mode configuration instructions to each ECU through the corresponding communication medium.
[0068] If the level is ASIL C / D, a "dual-channel activation" command is issued to enable CAN+PLC dual-mode communication. When the load is low, CAN communication is used. When the load is high, a dual-channel simultaneous working mode (primary CAN, backup PLC) is configured to use the PLC channel to share part of the load.
[0069] Understandably, compared to the PLC channel, the CAN channel has a larger CAN bus bandwidth and better communication quality, and is the main channel. When the load is too high, some data is scheduled to be transmitted to the PLC channel.
[0070] If the ASIL A / B level is specified, a "CAN mode only" or "LIN mode only" configuration command will be issued.
[0071] If it is a QM level, then issue a "PLC mode only" configuration command.
[0072] Step 2.3: Wait for confirmation signals from each ECU, i.e., each ECU returns a configuration confirmation frame. The management unit in the controller can record the configuration status to update the network topology database, i.e., record the current communication medium attributes of each ECU in the database.
[0073] The confirmation signal is the confirmation signal fed back by the ECU after a specific configuration command is issued to the ECU. In other words, after the ECU issues a configuration command, if the ECU involves CAN+PLC, the ECU determines the specific channel for signal transmission.
[0074] The current communication medium attribute is used to indicate the target communication channel configured by the ECU, such as CAN only, CAN+PLC (load balancing), PLC only (CAN fault status function degradation, key data goes through PLC), etc.
[0075] In addition, if no confirmation signal is received from the ECU within a preset time period, a retry or error can be recorded.
[0076] Step 3: After all electronic control units have finished processing, status monitoring can be started. That is, the status monitoring module starts to collect parameters such as load rate, bit error rate, and PLC channel signal-to-noise ratio of each communication network at a fixed period (e.g., 10ms) and stores them in the real-time network status database to complete the initialization.
[0077] The communication network refers to the communication network built around the ECU, which obtains relevant parameters from the ECU. Since the management unit is also connected to each communication network, it can directly monitor parameters such as network load, bit error rate, and PLC channel signal-to-noise ratio of each communication network.
[0078] In some embodiments, the target electronic control unit includes a first electronic control unit configured with at least two target communication channels, and the method further includes: controlling the first electronic control unit to switch the target communication channel of the current communication based on the communication quality of the at least two target communication channels.
[0079] In this embodiment, the first electronic control unit is configured with at least two target communication channels. The first electronic control unit can be dynamically scheduled across media based on the communication quality of each target communication channel configured with the first electronic control unit, thereby improving the utilization rate of redundant communication resources and optimizing the channel switching decision of the first electronic control unit during communication based on security level and channel quality.
[0080] For example, the first electronic device may be configured with a first communication channel and a second communication channel, or with a first communication channel and a third communication channel, or with a second communication channel and a third communication channel, etc. The specific configuration can be made according to the requirements and is not limited here.
[0081] Understandably, in terms of redundancy architecture, to improve system reliability, multi-path backup schemes using the same type of communication medium (such as dual CAN or dual Ethernet) are currently widely adopted. While such schemes can handle some faults, they still carry the risk of common-cause failure: when the same physical wiring harness is damaged simultaneously due to compression, cutting, or other reasons, multiple backup links may fail synchronously. Especially for critical functions such as drive-by-wire steering and brake-by-wire, the requirements for communication determinism and fault tolerance time are extremely stringent, and redundancy architectures based on a single medium are no longer sufficient to meet their safety requirements.
[0082] Therefore, how to utilize the inherent power lines within the vehicle as a physical medium to construct truly heterogeneous redundant paths for the in-vehicle network has become an urgent problem to solve. On the one hand, it is necessary to avoid redundant channels being idle for extended periods during normal operation, thus avoiding bandwidth waste. On the other hand, through a cross-media dynamic scheduling mechanism, the complementary advantages of PLC (Power Line Carrier) and at least two heterogeneous communication channels such as CAN and Ethernet can be fully utilized during normal system operation. This will improve the reliability and safety of drive-by-wire functions while achieving efficient utilization of in-vehicle communication resources.
[0083] Specifically, a dynamic scheduling and intelligent switching mechanism can be constructed across three communication media: CAN, LIN, and PLC. By monitoring network load in real time, non-critical data is proactively scheduled to be transmitted to the PLC channel during non-redundant periods. This enables the PLC channel to simultaneously possess the dual functions of redundancy backup and load sharing, changing the inefficient mode of long-term idle backup resources. Simultaneously, the switching decision comprehensively considers multiple factors such as the security level of the target electronic control unit, the real-time communication quality of the corresponding communication channel, and network load. A pre-assessment of communication quality is completed before switching, thereby achieving differentiated and intelligent redundancy protection.
[0084] Specifically, the target communication channel includes a first communication channel and a second communication channel. Based on the communication quality of at least two target communication channels, the first electronic control unit is controlled to switch the target communication channel for the current communication. This includes: when the first electronic control unit is communicating through the first communication channel, if the communication quality of the first communication channel meets a first preset communication anomaly condition, and / or the communication quality of the second communication channel meets a preset communication compliance condition, then the first electronic control unit is controlled to switch to the second communication channel; and / or, if the communication quality of the first communication channel meets the first preset communication anomaly condition, and the communication quality of the second communication channel does not meet the preset communication compliance condition, then the communication parameters of the second communication channel are adjusted, so that the communication quality of the second communication channel is re-evaluated based on the adjusted parameters.
[0085] In this embodiment, on the one hand, the relative communication quality of the communication channel configured by the first electronic control unit can be introduced as an evaluation criterion to determine whether the first electronic control unit needs to be switched. By conducting a quality evaluation before switching, the reliability of redundant communication can be improved, thereby more effectively dealing with the impact of common cause failures and channel fluctuations.
[0086] On the other hand, if the communication quality of both the first and second communication channels is substandard, the communication parameters, such as the carrier frequency or modulation method, are adjusted. After the parameters are adjusted, the evaluation is carried out again, or a degradation strategy is implemented to avoid secondary failure. Through pre-assessment, it can be ensured that the PLC channel switched to is truly usable, avoiding switching failure caused by quality degradation due to channel interference. It also lays the foundation for dynamic scheduling. That is, the quality assessment mechanism can not only be used for fault switching, but also to determine whether the communication channel (such as the PLC channel) is suitable for load sharing during non-redundant periods.
[0087] Among these features, the communication quality of the target communication channel can be monitored periodically to determine whether the communication quality meets the conditions for communication anomalies or the conditions for communication compliance.
[0088] The monitoring methods for the first communication channel may include, but are not limited to, periodically sending heartbeat requests to each ECU, monitoring the error counter of the CAN / LIN bus, monitoring the carrier sensing of the PLC channel, and the load rate of the communication channel.
[0089] Correspondingly, communication anomaly conditions (including the first and second communication anomaly conditions) can be CAN bus communication interruption of the ECU, load rate exceeding a preset threshold, etc. The specific conditions can be set according to requirements and are not limited here.
[0090] It should be noted that the first communication failure condition and the second communication failure condition can be the same or different. The specific settings can be made according to the requirements, and no restrictions are imposed here.
[0091] The monitoring methods for the second communication channel may include, but are not limited to, measuring the signal-to-noise ratio (SNR), bit error rate (PER), available bandwidth, and duration of continuous successful communication.
[0092] Among them, the communication compliance conditions can be that the SNR is greater than a specific threshold, the PER is less than a specific threshold, or the multi-dimensional information is fused and processed to obtain a quality score. If the quality score is greater than a specific threshold, it means that the communication compliance conditions are met.
[0093] Optionally, if the communication quality of the first communication channel meets the first preset communication anomaly condition, and / or the communication quality of the second communication channel meets the preset communication compliance condition, then controlling the first electronic control unit to switch to the second communication channel may include: If the communication quality of the first communication channel meets the first preset communication abnormality condition, determine whether the communication quality of the second communication channel meets the preset communication compliance condition; if the communication quality of the second communication channel meets the preset communication compliance condition, control the first electronic control unit to switch to the second communication channel.
[0094] Optionally, if the communication quality of the first communication channel meets the first preset communication anomaly condition, and / or the communication quality of the second communication channel meets the preset communication compliance condition, then controlling the first electronic control unit to switch to the second communication channel may include: If the communication quality of the first communication channel meets the first preset communication abnormality condition, and the communication quality of the second communication channel meets the preset communication compliance condition, then the first electronic control unit is controlled to switch to the second communication channel.
[0095] Optionally, if the communication quality of the first communication channel meets the first preset communication anomaly condition, and / or the communication quality of the second communication channel meets the preset communication compliance condition, then controlling the first electronic control unit to switch to the second communication channel may include: If the communication quality of the first communication channel meets the first preset communication abnormality condition, or the communication quality of the second communication channel meets the preset communication compliance condition, then the first electronic control unit is controlled to switch to the second communication channel.
[0096] In some embodiments, the communication quality of the first communication channel includes the load rate, and the first preset communication abnormality condition includes the load rate being greater than a preset load threshold. And / or, the communication quality of the second communication channel includes signal-to-noise ratio, bit error rate and / or available bandwidth, and the preset communication compliance conditions include signal-to-noise ratio greater than a first preset quality threshold, and / or, bit error rate less than a second preset quality threshold, and / or, available bandwidth meets the communication data volume corresponding to the first electronic control unit; And / or, the communication quality of the second communication channel includes a quality score, and the preset communication compliance conditions include a quality score greater than a preset score threshold. The quality score is obtained by weighted summation of the parameter scores of at least two of the following parameters of the second communication channel: signal-to-noise ratio, bit error rate, and cumulative duration.
[0097] The cumulative duration is the duration accumulated when the second communication channel is in a stable state.
[0098] The above parameter scores can be obtained by processing the parameters using a scoring function. For example, the signal-to-noise ratio can be processed using a signal-to-noise ratio scoring function, the bit error rate can be processed using a bit error rate scoring function, and the cumulative duration can be processed using a stability scoring function.
[0099] Specifically, a multi-dimensional weighted scoring model can be used to calculate the quality score, and the formula for calculating the quality score is as follows:
[0100] in, f SNR (SNR) is the signal-to-noise ratio scoring function. It is 1.0 when SNR ≥ 20dB, linearly interpolated between 10 and 20dB, and 0 when SNR ≤ 10dB.
[0101] in, f PER (PER) is the bit error rate scoring function. When PER ≤ 10 -5 1.0 for time, PER at 10 -5 ~10 - Linearly decreasing between 3, PER ≥ 10 - ³ is taken as 0.
[0102] in, f stable ( Tstable ) is a stability scoring function, based on the percentage of time the channel quality has remained in a good state within the most recent minute.
[0103] Where w1, w2, and w3 are weighting coefficients, satisfying w1 + w2 + w3 = 1, for example, w1 = 0.5, w2 = 0.3, and w3 = 0.2.
[0104] Understandably, when the quality score Q... plc A quality score ≥ 0.8 indicates good channel quality, suitable for redundant handover of security-critical data; a quality score < 0.6 indicates poor channel quality. plc When the quality score Q is less than 0.8, it can be used for dynamic scheduling of non-critical data; when the quality score Q is less than 0.8, it can be used for dynamic scheduling of non-critical data. plc If the value is less than 0.6, the channel is considered unusable and should be avoided.
[0105] In some embodiments, controlling the first electronic control unit to switch to the second communication channel includes: if the first electronic control unit meets preset unit conditions, then controlling the first electronic control unit to switch to the second communication channel; wherein, the first electronic control unit meeting the preset unit conditions includes the first electronic control unit's security level meeting a preset level, and / or, the data currently transmitted by the first electronic control unit meeting a first preset data type; And / or, when there are at least two first electronic control units, based on the unit association information of at least two first electronic control units, select the electronic control unit to be switched from the at least two first electronic control units that matches the data transmission index of the second communication channel, and control the electronic control unit to be switched to switch to the second communication channel.
[0106] The preset level and the first preset data type may differ in different scenarios. For example, they may be evaluated based on the communication quality of the current communication channel of the target electronic control unit.
[0107] For example, if the target electronic control unit is in a task scheduling scenario at the current moment based on the load rate, the preset level can be a non-critical level, such as ASIL A / B or QM level; for example, the first preset data type can be a non-critical data type, which generally refers to data related to comfort functions and other functions that are icing on the cake in the basic functions. The absence of these data will not affect the implementation of the basic functions.
[0108] QM (Quality Management) typically corresponds to systems such as infotainment and in-vehicle connectivity, and its malfunctions generally do not lead to serious safety accidents. ASIL A (Minimum Safety Level) is mostly applicable to body and comfort components that are not directly and strongly related to driving safety. The QM and ASIL A levels mentioned above have a low correlation with driving safety and are usually considered non-critical levels. All other ASIL levels besides QM and ASIL A are closely related to safety and are considered critical levels.
[0109] For example, if it is determined that the target electronic control unit is in a communication interruption scenario at the current moment, the preset level can be a safety critical level, such as ASIL D level; for example, the first preset data type can be a critical data type, which generally refers to data related to safety functions.
[0110] The unit association information may include parameters such as the priority of the first electronic control unit, the security level of the first electronic control unit, and the weight value obtained by combining the priority and / or security level. The specific settings can be determined according to the needs of the system architecture, functional division and application scenario, and are not limited here.
[0111] The priority can be used to characterize the business importance, real-time requirements and resource preemption order of the first electronic control unit in the whole vehicle or the whole system. The higher the priority value, the higher the importance of the first electronic control unit in terms of task scheduling, communication resource allocation and other aspects.
[0112] The safety level can be used to characterize the degree of impact of the functions carried by the first electronic control unit on safety, such as whether it is directly related to driving safety, functional safety or information security. The higher the safety level, the higher the importance of the first electronic control unit in safety-related functions.
[0113] Specifically, when switching communication channels, priority is given to switching the communication channels corresponding to the first electronic control unit (ECU) with lower priority and / or lower security level. This means prioritizing the switching of communication channels for ECUs with lower business importance and less impact on security, thus avoiding adverse effects on more important or higher security ECUs. This strategy minimizes interference with the communication of critical control units during channel switching, reducing the risk of abnormal communication data states (such as data loss, significant increase in latency, out-of-order data packets, or verification errors) during the switching process, thereby improving the overall communication reliability and security of the system.
[0114] The data transmission index of the second communication channel indicates the amount of data that can be scheduled for the second communication channel at present, that is, the available bandwidth and transmission resources available for allocation of the second communication channel at the current moment. This data transmission index can be determined comprehensively based on parameters such as the instantaneous bandwidth, latency, congestion level, bit error rate, and proportion of occupied resources of the second communication channel, and is used to reflect the upper limit of the amount of data that the second communication channel can carry within a predetermined scheduling period.
[0115] It is understandable that when switching communication channels, the data access requirements of the first electronic control unit must meet the available bandwidth of the second communication channel, that is, the amount of data it is expected to generate or needs to receive must not exceed the schedulable data amount determined according to the data transmission indicators.
[0116] In some embodiments, the target electronic control unit includes a second electronic control unit, which is configured with a target communication channel, including: when the communication quality of the target communication channel meets a second preset communication anomaly condition, selecting a communication channel to be switched from at least one candidate communication channel that matches the preset channel usage condition based on the availability evaluation result of at least one candidate communication channel; and controlling the second electronic control unit to switch to the communication channel to be switched.
[0117] Optionally, the method further includes: communicating communication data in the second electronic control unit that matches the second preset data type through the communication channel to be switched.
[0118] The first preset data type and the second preset data type can be the same or different, and can be set according to the requirements. No restrictions are imposed here.
[0119] For example, in the case of a fault in a second-level ECU (ASIL A / B level), if the ECU only has a CAN bus, when a fault occurs, the candidate communication channels (such as PLC channels) can be evaluated to determine if the PLC channel is available. If it is available, the critical data of the ECU is temporarily switched to the PLC, while the non-critical data is delayed or discarded. If the PLC is unavailable, the fault is only recorded and no switching is performed to avoid affecting the redundant resources of safety-critical nodes.
[0120] In one specific implementation, such as Figure 3 As shown, in a task scheduling scenario, if the target electronic control unit is configured with at least two communication channels, such as the first communication channel being a CAN channel and the second communication channel being a PLC channel, then when the CAN bus load is too high, non-critical data is scheduled to the PLC channel. The specific steps are as follows: Step 1: Real-time acquisition of the current load rate L_can of the CAN channel.
[0121] Step 2: Determine whether L_can exceeds the preset first threshold Th_load. If it does not exceed the threshold, maintain the current scheduling policy and return to step S1 to continue monitoring; if it exceeds the threshold, trigger dynamic scheduling decision, i.e., execute the next step 3.
[0122] Step 3: Perform ECU screening. The decision engine queries the safety level mapping table to filter out a list of ECUs that are currently transmitting data via CAN and have a non-critical safety level (ASIL A or QM). It also retrieves the data types that these ECUs are transmitting from the real-time network status database and retains only ECUs transmitting non-critical data as candidate ECUs.
[0123] Step 4: The channel quality assessment module performs real-time communication quality assessment on the PLC channel, measuring information such as signal-to-noise ratio (SNR), bit error rate (PER), and available bandwidth.
[0124] It should be noted that PLC channel noise can sometimes be quite severe. Under extreme conditions, such as sudden changes in power grid load, frequent start-ups and shutdowns of high-power appliances, or a significant increase in interference due to line aging, if channel switching is performed directly without evaluating key indicators such as the signal-to-noise ratio, bit error rate, and link stability of the current channel, the data frames being transmitted may not be received completely or may fail to be retransmitted, resulting in information loss or even risks such as abnormal execution of control commands.
[0125] Step 5: Determine whether the evaluation results meet the preset communication compliance conditions, i.e., whether the SNR is higher than the second threshold Th_snr and whether the PER is lower than the third threshold Th_per. If the quality does not meet the standards, return to step S1 to continue monitoring; if the quality meets the standards, proceed to the next step, step 6.
[0126] Step 6: Perform ECU selection, that is, the decision engine selects several ECUs with the lowest priority from the candidate ECUs and determines the amount of data to be scheduled, ensuring that it does not exceed the available bandwidth of the PLC channel.
[0127] Step 7: Send the instruction, that is, switch the execution controller to send the "Switch to PLC transmission" instruction to the selected ECU via the CAN bus. The instruction contains the virtual channel identifier and communication parameters (such as carrier frequency, time slot, etc.) on the PLC channel.
[0128] Among them, virtual channel identifier and communication parameters: different carrier frequencies in power line carrier technology correspond to different channels. The virtual channel identifier can be understood as each ECU declaring a channel that it needs to occupy, specifying the modulation frequency and other parameters it needs.
[0129] Step 8: After receiving the command, the target ECU sends its subsequent data packets (i.e., communication data) to the intelligent network management unit via the power line through the PLC modem, while maintaining monitoring of the CAN bus in preparation for subsequent switching commands.
[0130] Step 9: The intelligent network management unit updates the real-time network status database and records the current load status of the PLC channels.
[0131] Step 10: Continue monitoring the CAN bus load L_can to determine if it has dropped below the fourth threshold Th_return. If it has not dropped, return to step S201 to continue monitoring; if it has dropped, initiate the migration process to switch some data back to the CAN channel.
[0132] Step 11: Execute the migration process to switch some or all of the data previously scheduled to the PLC back to CAN bus transmission, and then return to Step 1 to continue monitoring.
[0133] Understandably, when the CAN network load exceeds 70%, the real-time performance of some messages is difficult to guarantee, and the instantaneous load may be even higher in some operating conditions. In this case, the power line channel is used to share the load to ensure real-time performance. When the load drops to the threshold (let's assume 50%), the power line channel shared messages can be retrieved, i.e., the migration process can be performed.
[0134] In one specific implementation, such as Figure 4 As shown, in a fault scenario, if the target electronic control unit is configured with at least two communication channels, such as the first communication channel being a CAN channel and the second communication channel being a PLC channel, then when a CAN bus failure occurs, data can be switched to the PLC channel for communication. The specific steps are as follows: Step 1: The status monitoring module of the intelligent network management unit continuously monitors the health status of the communication channels of each ECUD. The monitoring methods include: periodically sending heartbeat requests to each ECU, monitoring the error counter of the CAN / LIN bus, and monitoring the carrier sensing of the PLC channel.
[0135] Step 2: When an interruption in CAN bus communication of a certain ECU is detected, it is determined that the CAN link of that ECU has failed.
[0136] Step 3: The management unit queries the security level mapping table to confirm the security level of the ECU and makes a judgment on the security level of the ECU. In one scenario, assuming ASILC / D level (safety critical), a PLC quality assessment is performed. This involves immediately evaluating the real-time communication quality of the PLC channel using a channel quality assessment module. Evaluation metrics include signal-to-noise ratio (SNR), bit error rate (PER), and duration of continuous successful communication. These metrics are then combined to calculate a quality score, Q_plc.
[0137] Then, determine whether Q_plc is higher than the preset fifth threshold Th_q.
[0138] If the quality meets the standards, a seamless switching process begins, whereby the switching execution controller initiates the seamless switching protocol. This includes: buffering data frames that have not yet been acknowledged by CAN; sending a "switch to PLC master" command to the ECU via the PLC channel; after the ECU confirms, routing all uplink and downlink data from that ECU to the PLC channel; and releasing CAN bus resources.
[0139] Understandably, the reason why data frames not yet acknowledged by CAN need to be buffered during the switching process between the two channels is that several messages may get "stuck" midway, resulting in frame loss. To prevent this from happening, this invention buffers several data frames before the channel switch and retransmits them through the other channel after the switch is complete. Since a rolling counter bit is set in the message, the receiving end can use it to verify whether there are any frame losses.
[0140] If the quality does not meet the standard, the PLC quality will be re-evaluated by adjusting parameters such as the PLC carrier frequency or modulation method; if it still does not meet the standard, a degradation strategy will be implemented, such as triggering system alarms and restricting some non-critical functions.
[0141] When adjusting the PLC carrier frequency or modulation method, different carrier frequencies can be used to distinguish the data transmitted by different ECUs. The PLC channel has an internal frequency-adjustable circuit, whose attenuation characteristics differ for different carrier frequency signals and are affected by operating conditions. For example, under certain operating conditions, if the bit error rate corresponding to a 5 MHz carrier frequency is high, and the 10 MHz carrier frequency is not yet occupied by other channels, the carrier frequency can be adjusted to 10 MHz, and the bit error rate determination process described above can be repeated.
[0142] When bandwidth is limited or channels are interfered with, some non-critical functions can be prioritized for restriction. For example, if EPS originally provides different styles of road feel simulation and vibration feedback, then only steering assist and angle feedback signals directly related to the basic steering function can be retained, and the comfort functions can be downgraded.
[0143] In another scenario, assuming ASIL A / B level (normal non-safety), first assess whether the PLC channel is available, evaluate its availability, such as whether the channel is idle, and whether the communication quality meets the standards.
[0144] Then, based on the judgment result, the corresponding logic is executed. If it is available, the critical data (if any) of the ECU is temporarily switched to the PLC, and the non-critical data is delayed or discarded. If the PLC is unavailable, the fault is only recorded and no switching is performed to avoid affecting the redundant resources of the safety-critical nodes.
[0145] Step 4: The system enters redundant operation mode while continuing to monitor whether the CAN bus recovers. If the CAN bus recovers, a reverse switch can be performed to return the system to dual-channel mode.
[0146] It is understandable that current homogeneous redundancy schemes have the risk of common-cause failure, and when using PLCs as redundant channels, there is a lack of channel quality assessment mechanisms before switching, which may lead to secondary failures if switched directly. To address this, this embodiment adopts a heterogeneous physical layer redundancy mechanism based on PLC channel quality assessment. This mechanism provides a heterogeneous physical layer redundancy architecture composed of CAN and PLC for safety-critical ECUs (especially drive-by-wire functions such as steering and braking). This architecture utilizes the complete independence of power lines and CAN buses in terms of physical paths and transmission principles to effectively resist the risk of common-cause failures caused by physical damage to wiring harnesses in homogeneous redundancy schemes. Even if there is an open circuit or electromagnetic interference on the CAN side, the PLC side can still maintain reliable command transmission, ensuring that drive-by-wire commands are delivered in a timely manner within the fault tolerance time window. To further improve the reliability of redundant communication, this solution introduces a channel quality assessment mechanism before switching to comprehensively evaluate the availability of PLC channels. Switching is only performed when the PLC channel meets a preset threshold, thereby avoiding secondary failures caused by channel interference. Under the premise of ensuring the safety of drive-by-wire functions, this solution achieves high-reliability utilization and system-level optimization of vehicle communication resources.
[0147] In some embodiments, this embodiment proposes an intelligent management and redundant communication mechanism for vehicle heterogeneous networks based on ECU functional safety level (ASIL). This means that communication media need to be configured differently for ECUs of different levels. For example, a heterogeneous dual-channel architecture of CAN + PLC is used for safety-critical nodes such as steer-by-wire and brake-by-wire to ensure that critical steer-by-wire commands can still be reliably transmitted when any bus fails. CAN or LIN communication is used for conventional functional nodes. PLC communication is used only for non-safety nodes to achieve on-demand allocation of communication resources.
[0148] Secondly, it can monitor network load and the quality status of each communication channel in real time, and dynamically schedule non-critical business data to the PLC channel for transmission during non-redundant periods, so as to achieve cross-media load balancing and make full use of idle bandwidth.
[0149] Furthermore, for safety-critical wire control nodes, a PLC channel quality assessment mechanism can be established before switching. Only when the key indicators such as the signal-to-noise ratio and bit error rate of the PLC channel meet the preset thresholds can a seamless switch from the CAN channel to the PLC channel be allowed, ensuring a reliable switch to the heterogeneous redundant channel in fault scenarios.
[0150] Through the synergistic effect of the three mechanisms of differentiated configuration, dynamic scheduling and heterogeneous redundancy, this embodiment systematically reduces the cost of the vehicle wiring harness, significantly improves the utilization rate of network resources, and effectively overcomes the common cause failure problem of traditional homogeneous redundancy schemes, while ensuring the high reliability of communication at safety-critical nodes such as drive-by-wire.
[0151] As can be seen from the above, this embodiment proposes a PLC intelligent management and drive-by-wire redundant communication architecture for vehicle heterogeneous networks. This architecture comprehensively adopts technologies such as differentiated resource configuration, cross-media dynamic scheduling, and heterogeneous redundancy switching. While ensuring the communication reliability of safety-critical nodes (especially drive-by-wire functions such as steering and braking), it systematically reduces the amount of wiring harness material, the number of connectors, and the wiring complexity, thereby achieving a significant reduction in overall vehicle cost.
[0152] This architecture employs a modular PLC intelligent management layer and a redundant communication subsystem for drive-by-wire control. This facilitates a layer-by-layer comparison with the network topology of competing products, quickly determining whether there are substantial similarities or equivalent implementations in technical features, thus ensuring high enforceability. The overall solution achieves global optimization of the vehicle network in three dimensions: cost, efficiency, and reliability, providing a technical path that balances functional safety and economy.
[0153] To facilitate better implementation of the vehicle communication method provided in the embodiments of this application, the embodiments of this application also provide a vehicle communication system, including: multiple communication network units, each communication network unit including an execution controller and a communication channel connected to each other, the communication channel being used to connect to an electronic control unit; The central control unit is connected to multiple communication network units and is used to execute any of the vehicle communication methods provided in the embodiments of this application.
[0154] Optionally, the central control unit includes at least one of the following: a status detection module, a security level mapping table memory, a channel quality assessment module, a dynamic decision engine, and a switching execution controller; The dynamic decision engine is connected to the status detection module, the security level mapping table memory, the channel quality assessment module, and the handover execution controller, respectively. The status detection module is used to collect communication status parameters of the communication network unit; The security level mapping table memory is used to store the security level corresponding to the electronic control unit; The channel quality assessment module is used to assess the communication quality of the communication channel; The dynamic decision engine is used to control the switching execution controller to execute any of the vehicle communication methods provided in the embodiments of this application, based on data corresponding to at least one of the state detection module, security level mapping table, and channel quality assessment module.
[0155] The communication status parameters may include, but are not limited to, load rate, signal-to-noise ratio, bit error rate, and available bandwidth.
[0156] Specifically, the data corresponding to at least one module may include, but is not limited to, communication status parameters, security level, and communication quality.
[0157] Optionally, the status detection module is connected to the channel quality assessment module, enabling the channel quality assessment module to perform communication quality assessment based on the communication status parameters collected by the status detection module when evaluating the communication quality of the communication channel.
[0158] Optionally, the communication network unit includes at least two of the following: a CAN communication network unit, a LIN communication network unit, and a PLC communication network unit. The execution controller of the CAN communication network unit includes a CAN controller, and the communication channel of the CAN communication network unit includes a CAN bus; The execution controller of the LIN communication network unit includes a LIN controller, and the communication channel of the LIN communication network unit includes a LIN bus; The execution controller of the PLC communication network unit includes a PLC modulator, and the communication channel of the PLC communication network unit includes a power line.
[0159] For example, such as Figure 5 As shown, Figure 5 The three units in the heterogeneous network are communication network units, namely the CAN bus network (i.e., CAN communication network unit), the PLC channel network (i.e., PLC communication network unit), and the LIN bus network (i.e., LIN communication network unit).
[0160] In the CAN bus network, the CAN bus uses twisted-pair cable as the transmission medium to connect the second-layer ECU and the third-layer ECU. In the LIN bus network, the LIN bus uses a single wire as the transmission medium to connect some second-level ECUs (optional) or low-speed nodes in the first-level ECU. The PLC channel network reuses the vehicle's existing low-voltage power lines and transmits data via power line carrier technology to connect the first-level ECU and the third-level ECU; each ECU connected to the PLC has a built-in PLC modem.
[0161] It should be noted that the ECU is a component of the bus network (i.e., a network node), rather than an external device independent of the bus. The CAN controller / transceiver and the LIN controller / transceiver can both be integrated inside the ECU to access the corresponding bus and enable bidirectional data communication with other ECUs. The bus network does not transmit data to the ECU in one direction, but is used for data exchange between ECU nodes.
[0162] In comparison, the implementation of a PLC is more complex. The working principle of a PLC modem is to modulate the signal output from the ECU and then load it onto the power line channel, or to extract and demodulate the signal from the power line channel and then transmit it to the ECU. Alternatively, a PLC module can be integrated inside the ECU, or a compatible solution combining the ECU's CAN and other nodes with the PLC can be used to achieve power line-based communication.
[0163] The bus serves as a bridge for communication between various ECUs. ECUs typically integrate multiple transceivers to convert internal ECU information into signal formats suitable for transmission on the bus.
[0164] In addition, Figure 5 The Intelligent Network Management Unit (IMM), shown, is the core control unit in the controller. Essentially, it functions as an intelligent gateway, performing functions such as status monitoring, dynamic scheduling decisions, fault detection, and handover execution. Internally, this unit includes sub-modules such as a signal transceiver (not shown in the figure), a status monitoring module, a channel quality assessment module, a dynamic scheduling decision engine, and a handover execution controller. It further includes a security level mapping table and a real-time network status database.
[0165] The intelligent network management unit is coupled to the CAN bus, LIN bus, and power line. It should be noted that this management unit can be understood as a domain controller or area gateway, capable of directly connecting to each backbone network and uniformly monitoring and managing information in each network segment.
[0166] The transceiver is used to enable the management unit to directly access each backbone network, communicate with other ECUs in the network through the transceiver, and monitor the communication data of each network segment in real time.
[0167] The status monitoring module is used to collect and calculate status parameters such as load rate, bit error rate, and signal-to-noise ratio of each communication network in real time, so as to provide basic data for subsequent scheduling and switching decisions.
[0168] The security level mapping table stores the identifiers of each ECU and their corresponding ASIL levels (divided according to the ISO26262 standard), as well as the default communication medium configuration, providing a basis for selecting appropriate communication resources for services with different security levels.
[0169] The channel quality assessment module is used to comprehensively evaluate the real-time quality of each communication channel, generate evaluation results to characterize the communication quality, and provide the results to the dynamic scheduling decision engine.
[0170] The dynamic scheduling decision engine is used to execute a preset dynamic scheduling algorithm based on the network status information collected by the status monitoring module and the security level and media configuration data in the security level mapping table, thereby generating corresponding routing and resource allocation decisions.
[0171] The switching execution controller is used to receive decision commands issued by the dynamic scheduling decision engine and issue routing configuration change commands to the target ECU through the CAN / LIN / PLC controller to realize automatic switching and reconfiguration of communication paths.
[0172] To facilitate better implementation of the vehicle communication method provided in this application, this application also provides an apparatus based on the above-described vehicle communication method. The meanings of the terms used are the same as in the above-described vehicle communication method, and specific implementation details can be found in the descriptions within the method embodiments.
[0173] For example, such as Figure 6 As shown, the vehicle communication device may include: The channel configuration module 601 is used to configure at least one target communication channel for the target electronic control unit from at least two preset communication channels based on the security level corresponding to the target electronic control unit, wherein the at least two preset communication channels correspond to different communication capabilities.
[0174] Optionally, the preset communication channel includes a first communication channel, a second communication channel, and a third communication channel, wherein the communication capability of the first communication channel is greater than that of the second communication channel, and the communication capability of the second communication channel is greater than that of the third communication channel.
[0175] Optionally, the channel configuration module 601 includes at least one of the following: Configure a first communication channel and a second communication channel for a target electronic control unit whose safety level meets the first preset level; Configure a first communication channel and / or a third communication channel for a target electronic control unit whose safety level meets the second preset level; Configure a second and / or third communication channel for the target electronic control unit whose safety level meets the third preset level; Among them, the first preset level is greater than the second preset level, and the second preset level is greater than the third preset level.
[0176] Optionally, the target electronic control unit includes a first electronic control unit, which is configured with at least two target communication channels. The vehicle communication device may include a channel switching module, which is specifically used for: Based on the communication quality of at least two target communication channels, the first electronic control unit is controlled to switch the target communication channel of the current communication.
[0177] Optionally, the target communication channel includes a first communication channel and a second communication channel, and the channel switching module is specifically used for: When the first electronic control unit communicates through the first communication channel, if the communication quality of the first communication channel meets the first preset communication abnormality condition, and / or the communication quality of the second communication channel meets the preset communication compliance condition, then the first electronic control unit is controlled to switch to the second communication channel. And / or, if the communication quality of the first communication channel meets the first preset communication anomaly condition, and the communication quality of the second communication channel does not meet the preset communication compliance condition, then the communication parameters of the second communication channel are adjusted, so that the communication quality of the second communication channel is re-evaluated based on the adjusted parameters.
[0178] In some embodiments, the communication quality of the first communication channel includes the load rate, and the first preset communication abnormality condition includes the load rate being greater than a preset load threshold. And / or, the communication quality of the second communication channel includes signal-to-noise ratio, bit error rate and / or available bandwidth, and the preset communication compliance conditions include signal-to-noise ratio greater than a first preset quality threshold, and / or, bit error rate less than a second preset quality threshold, and / or, available bandwidth meets the communication data volume corresponding to the first electronic control unit; And / or, the communication quality of the second communication channel includes a quality score, and the preset communication compliance conditions include a quality score greater than a preset score threshold. The quality score is obtained by weighted summation of the parameter scores of at least two of the following parameters of the second communication channel: signal-to-noise ratio, bit error rate, and cumulative duration.
[0179] Optionally, the aforementioned channel switching module is specifically used for: If the first electronic control unit meets the preset unit conditions, then the first electronic control unit is controlled to switch to the second communication channel; wherein, the first electronic control unit meets the preset unit conditions, including the first electronic control unit's security level meeting the preset level, and / or, the data currently transmitted by the first electronic control unit meets the first preset data type. And / or, when there are at least two first electronic control units, based on the unit association information of at least two first electronic control units, select the electronic control unit to be switched from the at least two first electronic control units that matches the data transmission index of the second communication channel, and control the electronic control unit to be switched to switch to the second communication channel.
[0180] Optionally, the target electronic control unit includes a second electronic control unit, which is configured with a target communication channel. The vehicle communication device may include an evaluation module, which is specifically used for: If the communication quality of the target communication channel meets the second preset communication anomaly condition, based on the availability evaluation results of at least one candidate communication channel, a communication channel to be switched that matches the preset channel usage conditions is selected from at least one candidate communication channel. The second electronic control unit is switched to the communication channel to be switched.
[0181] Optionally, the vehicle communication device may include a communication module, which is specifically used for: The communication data in the second electronic control unit that matches the second preset data type is communicated through the communication channel to be switched.
[0182] Optionally, at least two communication channels may use different physical media; And / or, the communication channels include at least two of the following: CAN channel, PLC channel, and LIN channel.
[0183] The vehicle communication device proposed in this application configures at least one target communication channel for the target electronic control unit from at least two preset communication channels based on the security level corresponding to the target electronic control unit. The at least two preset communication channels correspond to different communication capabilities. By utilizing the security level corresponding to the electronic control unit, the communication resources of the electronic control unit are configured differently, i.e., the target communication channel is configured. This ensures the communication reliability of the electronic control unit in the vehicle while saving costs.
[0184] In practice, each of the above modules can be implemented as an independent entity or can be combined arbitrarily to be implemented as the same or several entities. For the specific implementation methods and corresponding beneficial effects of each of the above modules, please refer to the previous method embodiments, which will not be repeated here.
[0185] This application also provides a controller, such as... Figure 7 As shown, it illustrates a schematic diagram of the controller involved in an embodiment of this application. Specifically: The controller may include components such as a processor 701 with one or more processing cores, a memory 702 with one or more computer-readable storage media, a power supply 703, and an input unit 704. Those skilled in the art will understand that... Figure 7 The controller structure shown does not constitute a limitation on the controller and may include more or fewer components than shown, or combine certain components, or have different component arrangements. Wherein: The processor 701 is the control center of the controller, connecting various parts of the controller via various interfaces and lines. It executes various functions and processes data by running or executing computer programs and / or modules stored in the memory 702, and by calling data stored in the memory 702. Optionally, the processor 701 may include one or more processing cores; preferably, the processor 701 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 701.
[0186] The memory 702 can be used to store computer programs and modules. The processor 701 executes various functional applications and data processing by running the computer programs and modules stored in the memory 702. The memory 702 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, computer programs required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the controller, etc. In addition, the memory 702 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 702 may also include a memory controller to provide the processor 701 with access to the memory 702.
[0187] The controller also includes a power supply 703 that supplies power to the various components. Preferably, the power supply 703 can be logically connected to the processor 701 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The power supply 703 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0188] The controller may also include an input unit 704, which can be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
[0189] Although not shown, the controller may also include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 701 in the controller loads the executable files corresponding to the processes of one or more computer programs into the memory 702 according to the following instructions, and the processor 701 runs the computer programs stored in the memory 702 to realize various functions, such as: Based on the security level corresponding to the target electronic control unit, at least one target communication channel is configured for the target electronic control unit from at least two preset communication channels, wherein the at least two preset communication channels correspond to different communication capabilities.
[0190] For details on the specific implementation methods and corresponding beneficial effects of the above operations, please refer to the detailed description of the vehicle communication method above, which will not be repeated here.
[0191] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by a computer program, or by a computer program controlling related hardware. The computer program can be stored in a computer-readable storage medium and loaded and executed by a processor.
[0192] Therefore, embodiments of this application provide a computer-readable storage medium storing a computer program that can be loaded by a processor to execute the steps in any of the vehicle communication methods provided in embodiments of this application. For example, the computer program can execute the following steps: Based on the security level corresponding to the target electronic control unit, at least one target communication channel is configured for the target electronic control unit from at least two preset communication channels, wherein the at least two preset communication channels correspond to different communication capabilities.
[0193] For details on the specific implementation methods and corresponding beneficial effects of the above operations, please refer to the previous embodiments, which will not be repeated here.
[0194] The computer-readable storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.
[0195] Since the computer program stored in the computer-readable storage medium can execute the steps in any of the vehicle communication methods provided in the embodiments of this application, the beneficial effects that any of the vehicle communication methods provided in the embodiments of this application can achieve can be realized, as detailed in the preceding embodiments, and will not be repeated here.
[0196] According to one aspect of this application, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the aforementioned vehicle communication method.
[0197] According to one aspect of this application, a vehicle is provided, which includes a vehicle communication system or a controller.
[0198] The vehicle communication method, system, controller, and vehicle provided in the embodiments of this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A vehicle communication method, characterized in that, The method includes: Based on the security level corresponding to the target electronic control unit, at least one target communication channel is configured for the target electronic control unit from at least two preset communication channels, wherein the at least two preset communication channels correspond to different communication capabilities.
2. The vehicle communication method according to claim 1, characterized in that, The preset communication channels include a first communication channel, a second communication channel, and a third communication channel. The communication capability of the first communication channel is greater than that of the second communication channel, and the communication capability of the second communication channel is greater than that of the third communication channel.
3. The vehicle communication method according to claim 2, characterized in that, Configure at least one target communication channel for the target electronic control unit from at least two preset communication channels, including at least one of the following: Configure the first communication channel and the second communication channel for a target electronic control unit whose safety level meets the first preset level; Configure the first communication channel and / or the third communication channel for a target electronic control unit whose safety level meets the second preset level; Configure the second communication channel and / or the third communication channel for a target electronic control unit whose safety level meets the third preset level; Wherein, the first preset level is greater than the second preset level, and the second preset level is greater than the third preset level.
4. The vehicle communication method according to claim 1, characterized in that, The target electronic control unit includes a first electronic control unit, which is configured with at least two target communication channels, and the method further includes: Based on the communication quality of at least two of the target communication channels, the first electronic control unit is controlled to switch the target communication channel for the current communication.
5. The vehicle communication method according to claim 4, characterized in that, The target communication channel includes a first communication channel and a second communication channel. The step of controlling the first electronic control unit to switch the current target communication channel based on the communication quality of at least two of the target communication channels includes: When the first electronic control unit communicates through the first communication channel, if the communication quality of the first communication channel meets the first preset communication abnormality condition, and / or the communication quality of the second communication channel meets the preset communication compliance condition, then the first electronic control unit is controlled to switch to the second communication channel. And / or, if the communication quality of the first communication channel meets the first preset communication anomaly condition, and the communication quality of the second communication channel does not meet the preset communication compliance condition, then the communication parameters of the second communication channel are adjusted, so that the communication quality of the second communication channel is re-evaluated based on the adjusted parameters.
6. The vehicle communication method according to claim 5, characterized in that, The communication quality of the first communication channel includes the load rate, and the first preset communication abnormality condition includes the load rate being greater than a preset load threshold. And / or, the communication quality of the second communication channel includes signal-to-noise ratio, bit error rate and / or available bandwidth, and the preset communication compliance conditions include the signal-to-noise ratio being greater than a first preset quality threshold, and / or, the bit error rate being less than a second preset quality threshold, and / or, the available bandwidth meeting the communication data volume corresponding to the first electronic control unit; And / or, the communication quality of the second communication channel includes a quality score, and the preset communication compliance condition includes the quality score being greater than a preset score threshold. The quality score is obtained by weighted summation of parameter scores of at least two parameters among the signal-to-noise ratio, bit error rate, and cumulative duration of the second communication channel.
7. The vehicle communication method according to claim 5, characterized in that, The control of switching the first electronic control unit to the second communication channel includes: If the first electronic control unit meets the preset unit conditions, then the first electronic control unit is controlled to switch to the second communication channel; wherein, the first electronic control unit meeting the preset unit conditions includes the first electronic control unit's security level meeting the preset level, and / or, the data currently transmitted by the first electronic control unit meeting the first preset data type. And / or, when there are at least two first electronic control units, based on the unit association information of the at least two first electronic control units, select the electronic control unit to be switched from the at least two first electronic control units that matches the data transmission index of the second communication channel, and control the electronic control unit to be switched to switch to the second communication channel.
8. The vehicle communication method according to claim 1, characterized in that, The target electronic control unit includes a second electronic control unit, the second electronic control unit being configured with a target communication channel, and the method further includes: If the communication quality of the target communication channel meets the second preset communication anomaly condition, based on the availability evaluation results of at least one candidate communication channel, a communication channel to be switched that matches the preset channel usage conditions is selected from at least one candidate communication channel. The second electronic control unit is controlled to switch to the communication channel to be switched.
9. The vehicle communication method according to claim 8, characterized in that, The method further includes: The communication data in the second electronic control unit that matches the second preset data type is communicated through the communication channel to be switched.
10. The vehicle communication method according to any one of claims 1 to 9, characterized in that, At least two of the communication channels use different physical media; And / or, the communication channel includes at least two of the following: CAN channel, PLC channel, and LIN channel.
11. A vehicle communication system, characterized in that, include: Multiple communication network units, each of the communication network units including an execution controller and a communication channel connected to each other, the communication channel being used to connect to an electronic control unit; A central control unit, connected to a plurality of the communication network units, for performing the vehicle communication method according to any one of claims 1-10.
12. The vehicle communication system according to claim 11, characterized in that, The central control unit includes at least one of the following: a status detection module, a security level mapping table memory, a channel quality assessment module, a dynamic decision engine, and a switching execution controller. The dynamic decision engine is connected to the state detection module, the security level mapping table memory, the channel quality assessment module, and the handover execution controller, respectively. The status detection module is used to collect the communication status parameters of the communication network unit; The security level mapping table memory is used to store the security level corresponding to the electronic control unit; The channel quality assessment module is used to assess the communication quality of the communication channel; The dynamic decision engine is used to control the switching execution controller to execute the vehicle communication method of any one of claims 1-10 based on data corresponding to at least one of the state detection module, the security level mapping table, and the channel quality assessment module.
13. The vehicle communication system according to claim 12, characterized in that, The communication network unit includes at least two of the following: CAN communication network unit, LIN communication network unit, and PLC communication network unit; The execution controller of the CAN communication network unit includes a CAN controller, and the communication channel of the CAN communication network unit includes a CAN bus; The execution controller of the LIN communication network unit includes a LIN controller, and the communication channel of the LIN communication network unit includes a LIN bus; The execution controller of the PLC communication network unit includes a PLC modulator, and the communication channel of the PLC communication network unit includes a power line.
14. A controller, characterized in that, It includes one or more processors and a memory, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the vehicle communication method of any one of claims 1 to 10.
15. A vehicle, characterized in that, The vehicle includes the vehicle communication system as described in any one of claims 11 to 13, or includes the controller as described in claim 14.
