Two-wheeled vehicle inter-domain communication control method, device, equipment and medium

By setting up multi-channel redundant communication links in two-wheeled vehicles and utilizing link quality assessment and a unified arbitration objective function, the real-time and reliability issues of inter-domain communication under vibration, electromagnetic interference, and power supply fluctuations were resolved, enabling continuous transmission of critical data and ensuring vehicle safety and stability.

CN123185053APending Publication Date: 2026-11-27CHONGQING ZHIJIE INTELLIGENT TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611101898.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-23
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In inter-domain communication of two-wheeled vehicles, existing technologies cannot effectively guarantee the real-time performance and reliability of critical data streams under conditions of vibration, electromagnetic interference, and power supply fluctuations. This can lead to interruptions, delays, or data loss in the communication link between the safety control domain and the smart cockpit domain, potentially causing safety incidents.

Method used

A multi-channel redundancy configuration is adopted, and the continuous transmission of critical risk events and control feedback is ensured through link quality assessment, unified arbitration objective function calculation, and forced degradation of the minimum safety information set. Specific measures include setting up inter-vehicle domain communication links as primary, backup, and degraded communication links; obtaining link quality assessment indicators; constructing a unified arbitration objective function for link selection and switching control; and forcibly activating the degraded communication link to transmit the minimum safety information set when neither the primary nor backup links meet the constraints.

Benefits of technology

Under complex operating conditions, it ensures the continuous transmission of critical risk events and control feedback, ensuring the vehicle's safety closed loop and avoiding safety accidents caused by communication interruptions or delays.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123185053A_ABST
    Figure CN123185053A_ABST
Patent Text Reader

Abstract

The embodiment of the application discloses a two-wheeled vehicle inter-domain communication control method, device, equipment and medium, wherein the method is configured by a multi-channel redundancy, link quality evaluation, unified arbitration target function calculation and forced degradation transmission of a minimum safety information set, so as to ensure continuous transmission of key risk events and control feedback under the conditions of two-wheeled vehicle vibration, electromagnetic interference and power supply fluctuation, and maintain a safe closed loop when the main and standby links both fail.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to, but is not limited to, the field of vehicle control technology, and in particular to a two-wheeled vehicle domain communication control method, device, equipment, and medium. Background Technology

[0002] As two-wheeled vehicles become more intelligent and their electronic and electrical architectures evolve towards domain controllers, the complexity and importance of in-vehicle communication are increasing. Traditional distributed electronic control unit architectures are gradually being replaced by functionally centralized domain controller architectures. For example, vehicle control functions are integrated into the safety control domain, and infotainment, navigation, and human-machine interaction functions are integrated into the smart cockpit domain.

[0003] In this dual-domain controller architecture, inter-domain communication between the safety control domain and the intelligent cockpit domain no longer merely undertakes simple state synchronization tasks, but must carry critical data streams with extremely high requirements for real-time performance, reliability, and safety. These data streams include, but are not limited to: collision / roll risk warnings, speed / torque limiting feedback, vehicle speed and attitude synchronization, navigation commands, log recording, and various service data. If the inter-domain communication link is interrupted, experiences excessive latency, or suffers data loss, it can lead to functional abnormalities at best, and potentially cause serious safety incidents at worst. Summary of the Invention

[0004] In view of this, embodiments of this application provide at least one method, apparatus, device, and medium for inter-domain communication control of two-wheeled vehicles.

[0005] The technical solution of this application embodiment is implemented as follows: On one hand, embodiments of this application provide a two-wheeled vehicle-to-domain communication control method, the method comprising: Configure the inter-domain communication links of vehicles as primary communication links, backup communication links, and degraded communication links; Obtain the link quality assessment index for each communication link, and calculate the link score for each communication link based on the link quality assessment index; A unified arbitration objective function is constructed based on the security priority of the data to be transmitted and the link score, and link selection and switching control is performed based on the unified arbitration objective function. When neither the primary communication link nor the backup communication link meets the constraints, the degraded communication link is forcibly activated and the minimum security information set is transmitted through the degraded communication link.

[0006] On the other hand, embodiments of this application provide a two-wheeled vehicle-to-vehicle communication control device, the method comprising: The processing module is used to set the inter-domain communication links of vehicles as primary communication links, backup communication links, and degraded communication links; Obtain the link quality assessment index for each communication link, and calculate the link score for each communication link based on the link quality assessment index; The control module is used to construct a unified arbitration objective function based on the security priority of the data to be transmitted and the link score, and to perform link selection and switching control based on the unified arbitration objective function; When neither the primary communication link nor the backup communication link meets the constraints, the degraded communication link is forcibly activated and the minimum security information set is transmitted through the degraded communication link.

[0007] In another aspect, embodiments of this application provide a computer device, including a memory and a processor. The memory stores a computer program that can run on the processor. When the processor executes the program, it implements some or all of the steps in the above-described two-wheeled vehicle inter-domain communication control method.

[0008] In another aspect, embodiments of this application provide a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements some or all of the steps in the above-described two-wheeled vehicle inter-domain communication control method.

[0009] In another aspect, embodiments of this application provide a computer program including computer-readable code. When the computer-readable code is run in a computer device, the processor in the computer device executes some or all of the steps in the above-described two-wheeled vehicle inter-domain communication control method.

[0010] In another aspect, embodiments of this application provide a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program. When the computer program is read and executed by a computer, it implements some or all of the steps in the above-described two-wheeled vehicle domain communication control method.

[0011] This application's embodiments employ multiple channel redundancy settings, link quality assessment, unified arbitration objective function calculation, and forced degradation transmission of the minimum safety information set to ensure continuous transmission of critical risk events and control feedback under conditions of two-wheeled vehicle vibration, electromagnetic interference, and power supply fluctuations, and to maintain a safe closed loop even when both primary and backup links fail.

[0012] It should be understood that the above general description and the following detailed description are merely exemplary and explanatory, and are not intended to limit the technical solutions of this application. Attached Figure Description

[0013] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with this application and, together with the specification, serve to explain the technical solutions of this application.

[0014] Figure 1 A schematic diagram illustrating the implementation process of a two-wheeled vehicle inter-domain communication control method provided in an embodiment of this application; Figure 2 A schematic diagram of the composition structure of a two-wheeled vehicle inter-domain communication control device provided in this application embodiment; Figure 3 This is a schematic diagram of the hardware entity of a computer device provided in an embodiment of this application. Detailed Implementation

[0015] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application are further described in detail below with reference to the accompanying drawings and embodiments. The described embodiments should not be regarded as limitations on this application. All other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0016] In the following description, references are made to “some embodiments,” which describe a subset of all possible embodiments. However, it is understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0017] The terms “first / second / third” are used merely to distinguish similar objects and do not represent a specific ordering of objects. It is understood that “first / second / third” may be interchanged in a specific order or sequence where permitted, so that the embodiments of this application described herein can be implemented in an order other than that illustrated or described herein.

[0018] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains. The terminology used herein is for descriptive purposes only and is not intended to limit the scope of this application.

[0019] This application provides a two-wheeled vehicle inter-domain communication control method, which can be executed by a processor of a computer device. The computer device can refer to a server, laptop computer, tablet computer, desktop computer, smart TV, set-top box, mobile device (such as a mobile phone, portable video player, personal digital assistant, dedicated messaging device, portable gaming device), or other computer equipment. Figure 1 This is a schematic diagram illustrating the implementation process of a two-wheeled vehicle inter-domain communication control method provided in an embodiment of this application, as shown below. Figure 1 As shown, the method includes: Step 101: Configure the inter-domain communication links of vehicles as a primary communication link, a backup communication link, and a degraded communication link.

[0020] In this embodiment, the inter-domain communication link is the communication path for data exchange between different domain controllers in a two-wheeled vehicle; the primary communication link is the communication path that is preferentially used to transmit critical data; the backup communication link is the communication path used to back up the primary communication link and maintain synchronization; and the degraded communication link is the minimum communication path that is activated when both the primary and backup links fail.

[0021] The communication path between the domain controllers in two-wheeled vehicles is divided into three links with different priorities and functions. The primary communication link is configured to prioritize carrying critical data such as risk events and control feedback. The backup communication link is configured to maintain synchronous hot standby with the primary link so as to take over communication when the primary link degrades. The degraded communication link is configured to be activated only when neither the primary nor the backup link can meet the communication requirements. This degraded link is only used to transmit the minimum safety information.

[0022] Step 102: Obtain the link quality assessment index for each communication link, and calculate the link score for each communication link based on the link quality assessment index.

[0023] In this embodiment of the application, the link quality assessment index is a parameter used to quantify the current performance of the communication link; the link score is a value calculated based on the assessment index to reflect the health of the link.

[0024] The link quality assessment metrics are obtained from the primary communication link, backup communication link, and degraded communication link, including latency, jitter, packet loss rate, verification failure rate, and heartbeat out-of-sync count. Then, based on these metrics, a link score is calculated for each link using a link decision function. This score is used for subsequent link status judgment and handover decisions.

[0025] Step 103: Construct a unified arbitration objective function based on the security priority of the data to be transmitted and the link score, and perform link selection and switching control based on the unified arbitration objective function.

[0026] In this embodiment, the security priority of the data to be transmitted is a level used to identify the importance of the data to vehicle safety; the unified arbitration objective function is a computational model used to comprehensively evaluate link status and data priority to select the optimal communication channel.

[0027] Based on the safety priority (SafetyPriority) and link score (Q) of the data to be transmitted, a unified arbitration objective function is constructed: Score_total = w1·Q + w2·SafetyPriority - w3·LatencyRisk, where LatencyRisk is the risk value caused by link latency and jitter, and w1, w2, and w3 are weighting coefficients. Based on the calculation result of this objective function, link selection and switching control are performed, selecting the link with the highest score as the current data transmission channel, and triggering primary / backup switching when the link degrades.

[0028] Step 104: When neither the primary communication link nor the backup communication link meets the constraints, the degraded communication link is forcibly enabled and the minimum security information set is transmitted through the degraded communication link.

[0029] In this application embodiment, the constraint is a set of thresholds or rules used to determine whether the link is available; the minimum safety information set is the most concise data set necessary to maintain the safe operation of the vehicle.

[0030] The link scores of the primary and backup communication links are continuously monitored. When it is determined that both the primary and backup communication links are below the preset constraints, such as the link score being below the switching threshold or a high packet loss rate and heartbeat asynchrony, the degraded communication link is forcibly activated. Only a minimum set of security information is transmitted through the degraded link. This set of information includes risk alarms, control feedback, speed summary and key fault codes. At the same time, the transmission of service data and media or log data is suspended or reduced in frequency.

[0031] This application embodiment ensures continuous transmission of critical risk events and control feedback under conditions of two-wheeled vehicle vibration, electromagnetic interference, and power supply fluctuations by using multi-channel redundancy settings, link quality assessment, unified arbitration objective function calculation, and forced degradation transmission of the minimum safety information set, and can still maintain a safe closed loop when both the primary and backup links fail.

[0032] Optionally, step 102 includes: Step 1021: For each communication link, measure the data transmission delay, transmission jitter, packet loss rate, cyclic redundancy check failure rate, and heartbeat synchronization failure count. Use the data transmission delay, transmission jitter, packet loss rate, cyclic redundancy check failure rate, and heartbeat synchronization failure count as the link quality evaluation index.

[0033] In this embodiment, a communication link is a physical or logical channel used to transmit data between two-wheeled vehicle domain controllers, such as a primary communication link, a backup communication link, or a degraded communication link. Data transmission latency is the time delay experienced by data from the sending end to the receiving end. Transmission jitter is the magnitude of the latency change over time. Packet loss rate is the proportion of data packets lost during transmission out of the total number of transmitted data packets. Cyclic redundancy check failure rate is the proportion of data frames with errors detected by the receiving end through cyclic redundancy check out of the total number of received data frames. Heartbeat synchronization failure count is the number of times the synchronization heartbeat signals at both ends of the communication link are lost or out of sync. Link quality evaluation metrics are a set of quantitative parameters used to comprehensively measure the current transmission performance of the communication link.

[0034] For each established communication link, such as the primary link, backup link, and degraded link, five key performance parameters are measured independently: data transmission latency, transmission jitter, packet loss rate, cyclic redundancy check failure rate, and heartbeat out-of-step count. These measured values ​​are used together as the link quality evaluation index for subsequent evaluation of the link quality, thereby establishing a multi-dimensional performance profile for each link.

[0035] Step 1022: Obtain the operating condition correction factor and hardware health correction factor corresponding to the current communication link. The operating condition correction factor is used to characterize the degree of interference of the current operating environment of the vehicle on the communication link, and the hardware health correction factor is used to characterize the aging or failure degree of the physical devices on which the communication link depends.

[0036] In this embodiment, the current communication link is the specific communication link being evaluated. The operating condition correction factor is a numerical coefficient used to quantify the degree of additional interference caused to the communication link performance by the vehicle's current operating environment, such as vibration intensity, electromagnetic interference level, or power supply fluctuation amplitude. The hardware health correction factor is a numerical coefficient used to quantify the degree of performance degradation caused by aging or failure of the physical components on which the communication link depends, such as transceivers, wiring harnesses, or connectors.

[0037] Obtain the operating condition correction factor and hardware health correction factor corresponding to the communication link currently being evaluated. The operating condition correction factor reflects the degree of interference of the current vehicle operating environment on the communication link, and the hardware health correction factor reflects the aging or failure degree of the physical components on which the communication link depends. Use these factors as dynamic adjustment factors to correct the link score calculated based on static indicators.

[0038] Step 1023: Input the data transmission delay, transmission jitter, packet loss rate, cyclic redundancy check failure rate, heartbeat out-of-step count, operating condition correction factor, and hardware health correction factor into a link scoring function specified by a preset standard to calculate the link score of the communication link. The link scoring function is a weighted summation function of the data transmission delay, transmission jitter, packet loss rate, cyclic redundancy check failure rate, heartbeat out-of-step count, operating condition correction factor, and hardware health correction factor. The numerical range of the link score is divided into a healthy value range, a degraded value range, an abnormal value range, and a failed value range.

[0039] In this embodiment, the link scoring function is a mathematical formula defined in a preset standard, used to calculate a single link score value from multiple input parameters. The link score is a numerical value used to quantify the overall quality or health status of the communication link. The weighted summation function is a calculation method that multiplies each input parameter by a preset weighting coefficient and then sums the results. The healthy value range, the degraded value range, the abnormal value range, and the failed value range are preset ranges for the link score values, corresponding to four different quality states of the communication link: healthy, degraded, abnormal, and failed, respectively.

[0040] The seven parameters—data transmission latency, jitter, packet loss rate, cyclic redundancy check failure rate, heartbeat out-of-step count, and the obtained operating condition correction factor and hardware health correction factor—are input into a link scoring function defined by a preset standard. This link scoring function is a weighted summation function that calculates a single link score value. Based on the magnitude of this link score, it is divided into a preset healthy value range, a degraded value range, an abnormal value range, or a failed value range, thereby determining the current quality level of the communication link.

[0041] This application embodiment establishes a multi-dimensional weighted summation link scoring model based on latency, jitter, packet loss rate, verification failure rate, heartbeat out-of-step count, and correction factors for operating conditions and hardware health. Based on the score, the link status is divided into four numerical intervals: healthy, degraded, abnormal, and failed. This achieves an accurate, dynamic, and quantifiable evaluation of communication link quality, providing a reliable basis for subsequent link arbitration and handover decisions.

[0042] Optionally, step 103 includes: Step 1031: Obtain the security priority value corresponding to the data to be transmitted. The security priority value is pre-assigned according to the type of data to be transmitted. Risk event data and control feedback data are assigned high security priority values, state synchronization data are assigned medium security priority values, and service data and media data or log data are assigned low security priority values.

[0043] In this embodiment, the security priority value is a pre-set value for different types of data to be transmitted, used to indicate the importance and urgency of the data during communication. Risk event data refers to information involving safety risks such as vehicle collisions and rollovers. Control feedback data refers to the response signals of the vehicle control system. State synchronization data refers to information used to maintain state consistency between the two domain controllers, such as speed and attitude. Service data refers to information related to vehicle function services. Media data or log data refers to non-critical entertainment or recording information.

[0044] Retrieve all data ready to be sent at the current moment. For each piece of data to be transmitted, retrieve the pre-stored security priority value mapping table based on its type. This mapping table explicitly assigns high security priority values ​​to risk event data and control feedback data; medium security priority values ​​to state synchronization data; and low security priority values ​​to service data, media data, or log data.

[0045] Step 1032: Obtain the link score of the current communication link at the current moment and the delay risk value caused by the transmission delay and transmission jitter of the communication link. The delay risk value is positively correlated with the data transmission delay and the transmission jitter. The delay risk value is set to a low value when the data transmission delay and the transmission jitter are respectively lower than the corresponding first threshold, and is set to a high value when the data transmission delay and the transmission jitter are respectively higher than the corresponding second threshold. The value of the second threshold is greater than the value of the first threshold.

[0046] In this embodiment, the link score is a value calculated based on multiple quality indicators of the communication link, used to quantify the current communication quality of the link. Transmission latency refers to the time it takes for data to travel from the sender to the receiver. Transmission jitter refers to the degree of fluctuation in transmission latency. The latency risk value is a value calculated based on the current link's transmission latency and jitter, used to assess the risk of data not arriving on time due to link latency. The first threshold is a preset low latency and jitter value; values ​​below this value are considered to indicate a very low link latency risk. The second threshold is a preset high latency and jitter value; values ​​above this value are considered to indicate a very high link latency risk.

[0047] The system obtains the link score of the current communication link at the current moment from the link quality assessment module. Simultaneously, the system acquires the current transmission latency and jitter data for this communication link. Based on this data, the system calculates a latency risk value. This latency risk value is positively correlated with both transmission latency and jitter; that is, the higher the latency and jitter, the higher the latency risk value. The calculation rule is as follows: when both transmission latency and jitter are below the corresponding first threshold, the latency risk value is set to a low value; when both transmission latency and jitter are above the corresponding second threshold, the latency risk value is set to a high value. The second threshold is greater than the first threshold.

[0048] Step 1033: Multiply the link score by the first weight coefficient to obtain the first product, multiply the security priority value by the second weight coefficient to obtain the second product, multiply the latency risk value by the third weight coefficient to obtain the third product, add the first product and the second product and then subtract the third product to obtain the unified arbitration objective function value, wherein the first weight coefficient, the second weight coefficient and the third weight coefficient are all preset positive numbers.

[0049] In this embodiment, the first weighting coefficient is a preset positive number used to adjust the influence weight of the link score in the unified arbitration objective function. The second weighting coefficient is a preset positive number used to adjust the influence weight of the security priority value in the unified arbitration objective function. The third weighting coefficient is a preset positive number used to adjust the influence weight of the latency risk value in the unified arbitration objective function. The first product is the result of multiplying the link score by the first weighting coefficient. The second product is the result of multiplying the security priority value by the second weighting coefficient. The third product is the result of multiplying the latency risk value by the third weighting coefficient. The unified arbitration objective function value is a comprehensive quantitative score used to evaluate and select the best communication link.

[0050] The obtained security priority value is multiplied by a preset second weighting coefficient to calculate the second product. The obtained link score is multiplied by a preset first weighting coefficient to calculate the first product. The obtained latency risk value is multiplied by a preset third weighting coefficient to calculate the third product. The first and second products are added together, and the third product is subtracted to obtain the unified arbitration objective function value for the communication link. This calculation process integrates the three key factors of link quality, data security priority, and latency risk into a single, comparable value. The first, second, and third weighting coefficients are all preset positive numbers used to balance the importance of these three factors in the decision-making process.

[0051] Step 1034: Compare the unified arbitration objective function values ​​of each communication link, and select the communication link with the largest unified arbitration objective function value as the transmission channel at the current moment.

[0052] In this embodiment, steps 1031 to 1033 are performed on all currently available communication links to generate a corresponding unified arbitration objective function value for each link. Then, these unified arbitration objective function values ​​are compared. The communication link with the largest value is selected as the transmission channel for data transmission at the current moment. In this way, the optimal communication path can be dynamically selected after comprehensively considering link quality, data security, and latency risks, ensuring that critical data can be transmitted through the most suitable link.

[0053] This application embodiment constructs and compares a unified arbitration objective function value that includes link quality, security priority, and latency risk. The system realizes intelligent dynamic selection of multi-channel redundant communication links, achieving the effect of prioritizing the transmission of high-risk security data through high-quality links under complex working conditions, while taking into account link quality and latency risk, thereby improving the reliability and real-time performance of dual-domain communication.

[0054] Optionally, step 103 further includes: Step 1035: Establish a switching state machine model that includes normal state, early warning state, backup link takeover state, minimum operating state of degraded link, and recovery verification state, and set corresponding link scoring threshold conditions and state transition conditions for each state.

[0055] In this embodiment, the switching state machine model is a logical model used to manage and control the transitions between different working states of the communication link; the normal state is the state in which the main communication link is working normally and undertaking all data transmission tasks; the warning state is the state in which the performance of the main communication link begins to decline and the backup link is ready to be activated; the backup link takeover state is the state in which the backup communication link has taken over the data transmission tasks; the degraded link minimum operating state is the state in which both the main and backup links fail and only the minimum link is used to transmit the most critical information; the recovery and verification state is the state in which the data is corrected and verified after the link recovers from the abnormal state to ensure data consistency; the link scoring threshold condition is a pre-set numerical standard used to judge the link quality level; and the state transition condition is the logical rule that must be satisfied to trigger the switching state machine model to transition from one state to another.

[0056] A switching state machine model is established, comprising five ordered states: normal state, warning state, backup link takeover state, degraded link minimum operating state, and recovery verification state. For each state, corresponding link scoring threshold conditions and state transition conditions are set. For example, a higher scoring threshold is set for the normal state, and a lower scoring threshold is set for the warning state. Specific conditions for transitioning from the normal state to the warning state are defined, thus forming a complete state transition rule base.

[0057] Step 1036: When the link score of the main communication link is greater than or equal to the first score threshold, the switching state machine model is maintained in the normal state, and the main communication link carries the transmission of all data to be transmitted.

[0058] In this embodiment, the main communication link is the highest priority communication channel responsible for transmitting all data; the link score is a value obtained by comprehensively evaluating the quality of the communication link through a specific algorithm; the first score threshold is a pre-set high value used to determine whether the main communication link is in a healthy state; the switching state machine model is a logical model used to manage and control the transition between different working states of the communication link; the normal state is the state in which the main communication link is working normally and undertaking all data transmission tasks; all data to be transmitted refers to all data that needs to be sent, including risk event data, control feedback data, state synchronization data, etc.

[0059] When the calculated link score of the main communication link is greater than or equal to the first score threshold, the main communication link is determined to be in a healthy state. At this time, the switching state machine model is maintained in a normal state, and no state transition action is triggered. Simultaneously, the main communication link continues to carry the transmission of all data to be transmitted, ensuring that all data is sent through this highest-quality link.

[0060] Step 1037: When the link score of the main communication link is less than the first score threshold and greater than or equal to the second score threshold, the switching state machine model is migrated from the normal state to the warning state, and the hot standby synchronization frequency of the backup communication link is increased in the warning state, wherein the value of the second score threshold is less than the value of the first score threshold.

[0061] In this embodiment, the second scoring threshold is a pre-set low value used to determine whether the main communication link has degraded to the point where switching is required; the switching state machine model is a logical model used to manage and control the transition of the communication link between different working states; the normal state is the state in which the main communication link is working normally and undertaking all data transmission tasks; the warning state is the state in which the performance of the main communication link begins to decline and the system is preparing to activate the backup link; the backup communication link is the communication channel in the system that serves as a backup for the main communication link; the hot standby synchronization frequency refers to the update rate at which the backup link keeps data synchronized with the main link.

[0062] When the calculated link score of the primary communication link is less than the first score threshold but greater than or equal to the second score threshold, it is determined that the primary communication link has degraded but has not yet reached the point where immediate switching is necessary. At this time, the switching state machine model is transitioned from the normal state to the warning state. In the warning state, the hot standby synchronization frequency of the backup communication link is increased; for example, the state data is synchronized once per second instead of once per millisecond, to ensure that the backup link can take over the work of the primary link more quickly.

[0063] Step 1038: When the link score of the primary communication link is less than the second score threshold, determine whether to perform primary / backup switch based on the hysteresis threshold condition and the recovery stability window condition. If the link score of the primary communication link is less than the second score threshold for multiple consecutive evaluation periods and the link score of the backup communication link is greater than or equal to the second score threshold, then the switchover state machine model is migrated from the warning state to the backup link takeover state, and the backup communication link takes over the data transmission task.

[0064] In this embodiment, the hysteresis threshold condition is a delay mechanism to avoid frequent switching when the quality of the primary and backup links are similar; the recovery stability window condition is an observation period to ensure that the link operates stably for a period of time after switching before subsequent operations can be performed; primary / backup switching refers to the process of switching data transmission tasks from the primary communication link to the backup communication link; the backup communication link is a communication channel that serves as a backup for the primary communication link; the switching state machine model is a logical model used to manage and control the transitions between different working states of the communication link; the warning state is the state where the performance of the primary communication link begins to decline and the backup link is ready to be activated; the backup link takeover state is the state where the backup communication link has taken over the data transmission task; and the data transmission task refers to the process of sending data through the communication link.

[0065] When the calculated link score of the primary communication link is less than the second score threshold, a switchover is not immediately executed. Instead, a comprehensive judgment is made based on the hysteresis threshold and the recovery stability window condition. Specifically, it checks whether the link score of the primary communication link has been less than the second score threshold for multiple consecutive evaluation periods, and simultaneously checks whether the link score of the backup communication link is greater than or equal to the second score threshold. Only when both conditions are met is a switchover deemed necessary and the backup link deemed capable of taking over. At this point, the switchover state machine model is transitioned from the warning state to the backup link takeover state, and the backup communication link takes over the data transmission task, thereby ensuring communication continuity.

[0066] This application embodiment establishes a switching state machine model containing multiple states and sets corresponding link scoring thresholds and migration conditions, thereby achieving refined and logical state management of the main communication link, backup communication link, and degraded communication link, and performing smooth, stable, and infrequent switching control when link quality changes.

[0067] Optionally, step 104 further includes: Step 1041: Obtain the first link score of the main communication link and the second link score of the backup communication link, and determine whether the first link score and the second link score are lower than the preset downgrade activation threshold.

[0068] In this embodiment, the primary communication link is a pre-established communication path used to carry major communication services, such as transmitting critical data like risk events and control feedback. The backup communication link is another pre-established communication path used as a backup when the primary communication link's performance degrades or fails, for example, via a CAN-FD bus. The first link score is a quantified value calculated by the link quality assessment module based on the current state of the primary communication link, such as a score calculated based on indicators like latency, jitter, and packet loss rate. The second link score is a quantified value calculated based on the current state of the backup communication link. The degradation activation threshold is a pre-set critical value for the link score, used to determine whether the link has deteriorated to the point where normal communication cannot be maintained, for example, a lower limit of 30.

[0069] The link quality assessment module calculates the first link score for the primary communication link and the second link score for the backup communication link. The first link score is compared to a preset degradation activation threshold, and the second link score is also compared to this threshold to determine whether the communication quality of both links has severely deteriorated to the point where basic communication requirements cannot be met.

[0070] Step 1042: When both the first link score and the second link score are lower than the degradation activation threshold, it is determined that neither the primary communication link nor the backup communication link meets the constraint condition, and the degradation control function is forcibly invoked to enable the degradation communication link.

[0071] In this embodiment, constraints refer to the minimum standards set for normal link operation, such as a link score that must be higher than the degradation activation threshold. The degradation control function is an internal program module used to forcibly activate a limited communication mode when both primary and backup links fail. The degraded communication link is a pre-established third communication path whose bandwidth and functionality are limited, and it is only used to transmit critical security information in extreme cases.

[0072] When both the first link score and the second link score are determined to be below the degradation activation threshold, it is confirmed that neither the primary communication link nor the backup communication link can meet normal communication constraints. At this point, a predefined degradation control function is forcibly invoked. By executing the logic within this function, the degradation communication link is immediately activated to ensure that the most basic data transmission channel can still be maintained even in the worst communication environment.

[0073] Step 1043: After enabling the degraded communication link, perform security priority filtering on the data to be transmitted, allowing only the risk event data, control feedback data, and status summary data to be transmitted through the degraded communication link. At the same time, suspend the transmission of service data and media data or log data, reduce the transmission frequency, or convert them to summary form before transmission. The minimum safety information set includes at least the collision alarm and roll alarm in the risk event data, the speed limit command and torque limit command in the control feedback data, and the vehicle speed summary and key fault codes in the status summary data. The data field length of the minimum safety information set is limited to a preset proportion lower than the data field length when the main communication link is working normally.

[0074] In this embodiment, the data to be transmitted is the set of all data waiting to be sent when the degraded communication link is enabled. Security priority filtering is a process of filtering data based on its security importance. Risk event data refers to alarm information that can directly lead to vehicle safety risks, such as collision warnings and roll warnings. Control feedback data consists of commands issued by vehicle actuators to change the vehicle's state, such as speed limit commands and torque limit commands. Status summary data is concise information about the vehicle's key operating states, such as a vehicle speed summary. Service data is information used for vehicle function services, such as navigation updates or software upgrade packages. Media data or log data is information used for entertainment or recording, such as video streams or diagnostic logs. The minimum security information set is the core data set allowed to be transmitted in degraded mode, and its data field length is limited to a preset proportion lower than the data field length when the main communication link is working normally, for example, limited to 30% of the normal working length.

[0075] Upon activating the degraded communication link, security priority filtering is immediately applied to the data to be transmitted. Only risk event data, control feedback data, and status summary data are allowed to be transmitted through the degraded communication link. These data collectively constitute a minimum safety information set, specifically including collision warnings, roll warnings, speed limit commands, torque limit commands, vehicle speed summaries, and critical fault codes. Simultaneously, service data and media data or log data are suspended from transmission, their transmission frequency is reduced, or they are converted to summary form before transmission to conserve valuable degraded link bandwidth. The data field length of this minimum safety information set is limited to a preset proportion lower than the data field length during normal operation of the main communication link, thereby ensuring that the most critical vehicle safety information is delivered preferentially and continuously under extremely limited communication conditions.

[0076] This application embodiment establishes a multi-layered redundancy architecture of primary link, backup link, and degraded link, and combines link scoring judgment, forced activation of degrade control function, and security priority data filtering mechanism to ensure that the minimum security information set is continuously and reliably transmitted even under extreme conditions where both primary and backup communication links of the dual domain controllers fail.

[0077] Optionally, step 104 includes: Step 1044: During the period when the degraded communication link is enabled, continuously monitor the link scores of the primary communication link and the backup communication link.

[0078] In this embodiment, after the degraded communication link is forcibly enabled, the link quality assessment module is continuously invoked to periodically calculate and monitor the current link scores of the primary and backup communication links. The assessment of the primary and backup links does not cease simply because the degraded link has been enabled; instead, it is used as a basis for determining whether the communication environment has improved. By continuously acquiring the real-time link scores of the primary and backup communication links, data support is provided for subsequent determinations of whether conditions for recovery from the degraded state are met.

[0079] Step 1045: When the link score of at least one of the main communication link or the backup communication link recovers to a value greater than or equal to the degradation activation threshold, a recovery stabilization window timer is started. Before the time counted by the recovery stabilization window timer reaches the preset stabilization window duration, the transmission state of the degradation communication link is maintained, and direct migration from the minimum operating state of the degradation link to the normal state is prohibited.

[0080] In this embodiment, the degradation activation threshold is a preset link score threshold. When the link scores of both the primary and backup communication links are lower than this value, the degradation communication link is activated. The recovery stabilization window timer is an internal timing tool used to record and measure a preset stabilization window duration, which is used to verify whether the recovered communication link can maintain stability. The minimum operating state of the degradation link is a state in the switching state machine model, indicating that communication is currently being conducted through the degradation communication link. The normal state is a state in the switching state machine model, indicating that the primary communication link is in a healthy state and undertakes the main communication tasks.

[0081] When the link score of at least one of the primary or backup communication links recovers to a level greater than or equal to the degradation activation threshold, link switching will not occur immediately. Instead, a recovery stabilization window timer will be started immediately, with a preset stabilization window duration. Until the preset stabilization window duration is reached, the transmission state of the degraded communication link will be forcibly maintained, and the state machine model will be strictly prohibited from directly transitioning from the minimum operating state of the degraded link to the normal state. This mechanism is designed to avoid frequent and unnecessary switching due to a temporary recovery in link quality, thus ensuring communication stability.

[0082] Step 1046: After the recovery stabilization window timer reaches the stabilization window duration, if the link score of the recovered communication link remains higher than the degradation activation threshold throughout the stabilization window duration, then the switching state machine model is migrated from the minimum operating state of the degraded link to the recovery verification state, and the sending side is notified to resend the service data and media data or log data that were suspended or down-frequency during the degraded link activation period.

[0083] In this embodiment, the recovery stabilization window timer is an internal timing tool used to record and measure a preset stabilization window duration. This duration is used to verify whether the recovered communication link can maintain stability. The stabilization window duration is a preset time length required for the link score of the recovered communication link to remain stable within this time period. The recovery verification state is a state in the switching state machine model, indicating that consistency verification and data recovery are being performed on the recovered communication link. The sending side is the end responsible for sending data, such as the safety control domain. Service data is data used to provide various service functions in inter-domain communication between two-wheeled vehicles. Media data or log data is multimedia or operational log data used for recording and display in inter-domain communication between two-wheeled vehicles.

[0084] Once the recovery stabilization window timer reaches the preset stabilization window duration, it checks whether the link score of the recovered communication link has consistently remained above the degrade activation threshold within the stabilization window duration. If this condition is met, the communication link is determined to have been stably restored. At this point, the switching state machine model is transitioned from the minimum operating state of the degraded link to the recovery verification state. Simultaneously, a notification is sent to the sending side, instructing it to begin retransmitting service data, media data, or log data that was suspended or down-frequency transmitted due to bandwidth limitations during the degraded link activation period, to ensure data integrity and continuity.

[0085] This application embodiment avoids frequent switching due to link quality fluctuations during link recovery by continuously monitoring the primary and backup link scores, introducing a recovery stability window timer and setting logic to prohibit direct switching, and triggering a data retransmission mechanism, thereby ensuring the stability of switching decisions and protecting data integrity.

[0086] Optionally, the method further includes: Step 201: On the receiving side, extract the original timestamp, sequence number, link priority identifier and recovery window identifier carried in each received data frame. The original timestamp is generated by the sending side at the time of transmission according to the time synchronization protocol specified by the preset standard, and the sequence number is allocated by the sending side in increments according to the transmission order.

[0087] In this embodiment, the receiving side is the system end that receives data frames; the original timestamp is a timestamp generated by the sending side at the time of transmission; the sequence number is an incrementing sequence number assigned by the sending side to each data frame; the link priority identifier is a flag used to mark the importance of the communication link to which the data frame belongs; and the recovery window identifier is a time range flag used to instruct the receiving side to perform data recovery processing.

[0088] On the receiving side, for each received data frame, the original timestamp, sequence number, link priority identifier, and recovery window identifier are extracted. The original timestamp is generated by the sending side at the time of transmission according to a time synchronization protocol specified by a preset standard, and the sequence number is assigned by the sending side in ascending order of transmission.

[0089] Step 202: Based on the original timestamp, perform time correction on the data frames from different communication links according to their chronological order, and rearrange the time-corrected data frames according to the ascending order of the sequence number to obtain the rearranged data frame sequence.

[0090] In the embodiments of this application, time correction refers to the process of adjusting data frames from different communication links according to their chronological order based on the original timestamp; sequence rearrangement refers to rearranging the data frames according to the ascending order of their sequence numbers after time correction in order to restore the correct transmission order of the data frames.

[0091] Based on the original timestamps, data frames from different communication links are time-corrected according to their chronological order. Time calibration resolves the issue of asynchronous data arrival times caused by differences in transmission delays across different links. The time-corrected data frames are then rearranged in ascending order of their sequence numbers to obtain the rearranged data frame sequence. This method eliminates out-of-order issues caused by link switching or parallel transmission, reconstructing a data frame order consistent with the sending side, and providing an ordered data stream for subsequent data integrity verification and output.

[0092] Step 203: For the missing sequence number in the rearranged data frame sequence, send a retransmission request to the sending side and wait to receive the retransmitted data frame.

[0093] In the embodiments of this application, a missing sequence number refers to a sequence number that should have been present but did not appear in the rearranged data frame sequence; a retransmission request is an instruction sent by the system to the sending side to request the retransmission of the missing data frame.

[0094] For any missing sequence numbers in the rearranged data frame sequence, a retransmission request is sent to the sending side, and the system waits to receive the retransmitted data frames. This step is crucial for data integrity recovery. By identifying sequence number interruptions, a proactive data retransmission request is initiated to compensate for data loss caused by link packet loss or failure. In this way, the final data frame sequence is ensured to be complete, guaranteeing a reliable data stream for subsequent output.

[0095] Step 204: After receiving the resent data frame, insert the resent data frame into the corresponding position in the rearranged data frame sequence to form a complete data frame sequence.

[0096] In this embodiment, the resent data frame is a data frame resent by the sending side after the system receives a resentment request, used to fill the missing sequence number; the complete data frame sequence is a set of data frames containing all expected sequence numbers formed by the system after inserting all resent data frames.

[0097] Upon receiving the resent data frame, it is inserted into the corresponding position in the rearranged data frame sequence to form a complete data frame sequence. Based on the sequence number of the resent data frame, it is precisely inserted into the missing position in the sequence, thus filling the gap in the data stream. This ultimately yields a complete data frame sequence with consecutive sequence numbers and correct order, providing a complete data foundation for subsequent consistency checks and final output.

[0098] Step 205: Perform cyclic redundancy check on each data frame in the complete data frame sequence, and check whether the timestamp interval between adjacent data frames is within the preset reasonable time interval range. If the cyclic redundancy check of all data frames passes and the timestamp interval is within the reasonable time interval range, then the consistency check is determined to be successful, and the complete data frame sequence is output.

[0099] In this embodiment, cyclic redundancy check is a verification method used to detect whether errors occur in data during transmission; the timestamp interval is the difference between the original timestamps of two adjacent data frames; the reasonable time interval range is a preset threshold range used to determine whether the data frame reception time is normal; the consistency check is the final verification of the complete data frame sequence to ensure that the data is correct in both time and content.

[0100] Cyclic redundancy check (CRBC) is performed on each data frame in the complete data frame sequence, and the timestamp interval between adjacent data frames is checked to ensure it falls within a preset reasonable time interval range. If the CRBC of all data frames passes and the timestamp intervals are all within the reasonable time interval range, the consistency check is considered successful, and the complete data frame sequence is output. CRBC can detect and eliminate data content corruption caused by transmission errors; checking the timestamp intervals can identify time anomalies caused by abnormal link delays or data frame insertion errors.

[0101] This application embodiment uses time correction, sequence rearrangement, retransmission requests, data insertion, and consistency verification to ensure that the receiving side can recover an accurate, timely, and complete data frame sequence after a link switch or anomaly, thus guaranteeing the reliability and recoverability of inter-domain communication.

[0102] Based on the foregoing embodiments, this application provides a two-wheeled vehicle inter-domain communication control device. The device includes various units and modules included in each unit, which can be implemented by a processor in a computer device; of course, it can also be implemented by specific logic circuits. In the implementation process, the processor can be a central processing unit (CPU), a microprocessor unit (MPU), a digital signal processor (DSP), or a field programmable gate array (FPGA), etc.

[0103] Figure 2 A schematic diagram of the composition structure of a two-wheeled vehicle inter-domain communication control device provided in this application embodiment is shown below. Figure 2 As shown, the two-wheeled vehicle inter-domain communication control device 30 includes: Processing module 301 is used to set the inter-domain communication link of vehicles as a primary communication link, a backup communication link, and a degraded communication link; Obtain the link quality assessment index for each communication link, and calculate the link score for each communication link based on the link quality assessment index; Control module 302 is used to construct a unified arbitration objective function based on the security priority of the data to be transmitted and the link score, and to perform link selection and switching control based on the unified arbitration objective function; When neither the primary communication link nor the backup communication link meets the constraints, the degraded communication link is forcibly activated and the minimum security information set is transmitted through the degraded communication link.

[0104] Optionally, the processing module 301 is further configured to: For each communication link, the data transmission delay, transmission jitter, packet loss rate, cyclic redundancy check failure rate, and heartbeat synchronization failure count are measured separately. The data transmission delay, transmission jitter, packet loss rate, cyclic redundancy check failure rate, and heartbeat synchronization failure count are used together as the link quality evaluation index. Obtain the operating condition correction factor and hardware health correction factor corresponding to the current communication link. The operating condition correction factor is used to characterize the degree of interference of the current operating environment of the vehicle on the communication link, and the hardware health correction factor is used to characterize the degree of aging or failure of the physical devices on which the communication link depends. The data transmission delay, transmission jitter, packet loss rate, cyclic redundancy check failure rate, heartbeat out-of-step count, operating condition correction factor, and hardware health correction factor are input into a link scoring function specified by a preset standard to calculate the link score of the communication link. The link scoring function is a weighted summation function of the data transmission delay, transmission jitter, packet loss rate, cyclic redundancy check failure rate, heartbeat out-of-step count, operating condition correction factor, and hardware health correction factor. The numerical range of the link score is divided into a healthy value range, a degraded value range, an abnormal value range, and a failed value range.

[0105] Optionally, the control module 302 is further configured to: Obtain the security priority value corresponding to the data to be transmitted. The security priority value is pre-assigned according to the type of data to be transmitted. Risk event data and control feedback data are assigned high security priority values, state synchronization data are assigned medium security priority values, and service data and media data or log data are assigned low security priority values. The link score of the current communication link at the current moment and the delay risk value caused by the transmission delay and transmission jitter of the communication link are obtained. The delay risk value is positively correlated with the data transmission delay and the transmission jitter. The delay risk value is set to a low value when the data transmission delay and the transmission jitter are respectively lower than the corresponding first threshold, and is set to a high value when the data transmission delay and the transmission jitter are respectively higher than the corresponding second threshold. The value of the second threshold is greater than the value of the first threshold. The link score is multiplied by a first weighting coefficient to obtain a first product, the security priority value is multiplied by a second weighting coefficient to obtain a second product, the latency risk value is multiplied by a third weighting coefficient to obtain a third product, the first product and the second product are added together and then the third product is subtracted to obtain the unified arbitration objective function value, wherein the first weighting coefficient, the second weighting coefficient and the third weighting coefficient are all preset positive numbers; The unified arbitration objective function values ​​of each communication link are compared, and the communication link with the largest unified arbitration objective function value is selected as the transmission channel at the current moment.

[0106] Optionally, the control module 302 is further configured to: Establish a switching state machine model that includes normal state, early warning state, backup link takeover state, minimum operating state of degraded link, and recovery verification state, and set corresponding link scoring threshold conditions and state transition conditions for each state. When the link score of the main communication link is greater than or equal to the first score threshold, the switching state machine model is maintained in the normal state, and the main communication link carries the transmission of all data to be transmitted. When the link score of the main communication link is less than the first score threshold and greater than or equal to the second score threshold, the switching state machine model is migrated from the normal state to the warning state, and the hot standby synchronization frequency of the backup communication link is increased in the warning state, wherein the value of the second score threshold is less than the value of the first score threshold. When the link score of the primary communication link is less than the second score threshold, a decision is made on whether to perform a primary / backup switch based on the hysteresis threshold condition and the recovery stability window condition. If the link score of the primary communication link is less than the second score threshold for multiple consecutive evaluation periods and the link score of the backup communication link is greater than or equal to the second score threshold, the switchover state machine model is migrated from the warning state to the backup link takeover state, and the backup communication link takes over the data transmission task.

[0107] Optionally, the control module 302 is further configured to: Obtain the first link score of the primary communication link and the second link score of the backup communication link, and determine whether the first link score and the second link score are lower than the preset downgrade activation threshold; When both the first link score and the second link score are lower than the degradation activation threshold, it is determined that neither the primary communication link nor the backup communication link meets the constraint condition, and the degradation control function is forcibly invoked to enable the degradation communication link. After enabling the degraded communication link, the data to be transmitted is filtered for security priority, allowing only the risk event data, control feedback data, and status summary data to be transmitted through the degraded communication link. At the same time, the service data and the media data or log data are suspended from transmission, the transmission frequency is reduced, or they are converted to summary form before being transmitted. The minimum safety information set includes at least the collision alarm and roll alarm in the risk event data, the speed limit command and torque limit command in the control feedback data, and the vehicle speed summary and key fault codes in the status summary data. The data field length of the minimum safety information set is limited to a preset proportion lower than the data field length when the main communication link is working normally.

[0108] Optionally, the control module 302 is further configured to: During the period when the degraded communication link is enabled, the link scores of the primary communication link and the backup communication link are continuously monitored; When the link score of at least one of the main communication link or the backup communication link recovers to a level greater than or equal to the degradation activation threshold, a recovery stabilization window timer is started. Before the time counted by the recovery stabilization window timer reaches the preset stabilization window duration, the transmission state of the degradation communication link is maintained, and direct migration from the minimum operating state of the degradation link to the normal state is prohibited. After the recovery stabilization window timer reaches the stabilization window duration, if the link score of the recovered communication link remains higher than the degradation activation threshold throughout the stabilization window duration, the switching state machine model is migrated from the minimum operating state of the degraded link to the recovery verification state, and the sending side is notified to resend the service data and media data or log data that were suspended or down-frequency during the degraded link activation period.

[0109] Optionally, the control module 302 is further configured to: On the receiving side, the original timestamp, sequence number, link priority identifier, and recovery window identifier carried in each received data frame are extracted. The original timestamp is generated by the sending side at the time of transmission according to the time synchronization protocol specified by the preset standard, and the sequence number is allocated by the sending side in increments according to the transmission order. Based on the original timestamp, the data frames from different communication links are time-corrected according to their chronological order. The time-corrected data frames are then rearranged in ascending order of their sequence numbers to obtain the rearranged data frame sequence. For any missing sequence numbers in the rearranged data frame sequence, a retransmission request is sent to the sending side, and the system waits to receive the retransmitted data frames. After receiving the resent data frame, the resent data frame is inserted into the corresponding position in the rearranged data frame sequence to form a complete data frame sequence; Cyclic redundancy check is performed on each data frame in the complete data frame sequence, and the timestamp interval between adjacent data frames is checked to see if it is within the preset reasonable time interval range. If the cyclic redundancy check of all data frames passes and the timestamp interval is within the reasonable time interval range, the consistency check is determined to be successful, and the complete data frame sequence is output.

[0110] This application's embodiments employ multiple channel redundancy settings, link quality assessment, unified arbitration objective function calculation, and forced degradation transmission of the minimum safety information set to ensure continuous transmission of critical risk events and control feedback under conditions of two-wheeled vehicle vibration, electromagnetic interference, and power supply fluctuations, and to maintain a safe closed loop even when both primary and backup links fail.

[0111] The descriptions of the apparatus embodiments above are similar to those of the method embodiments above, and have similar beneficial effects. In some embodiments, the functions or modules included in the apparatus provided in this application can be used to perform the methods described in the method embodiments above. For technical details not disclosed in the apparatus embodiments of this application, please refer to the descriptions of the method embodiments of this application for understanding.

[0112] It should be noted that, in the embodiments of this application, if the above-described two-wheeled vehicle inter-domain communication control method is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiments of this application, or the part that contributes to the related technology, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, mobile hard drives, read-only memory (ROM), magnetic disks, or optical disks. Thus, the embodiments of this application are not limited to any specific hardware, software, or firmware, or any combination of hardware, software, and firmware.

[0113] This application provides a computer device including a memory and a processor. The memory stores a computer program that can run on the processor. When the processor executes the program, it implements some or all of the steps in the above-described method.

[0114] This application provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements some or all of the steps in the above-described method. The computer-readable storage medium can be transient or non-transient.

[0115] This application provides a computer program including computer-readable code, wherein when the computer-readable code is executed in a computer device, a processor in the computer device performs some or all of the steps in the above-described method.

[0116] This application provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program. When the computer program is read and executed by a computer, it implements some or all of the steps in the above-described method. This computer program product can be implemented specifically through hardware, software, or a combination thereof. In some embodiments, the computer program product is specifically embodied as a computer storage medium; in other embodiments, the computer program product is specifically embodied as a software product, such as a software development kit (SDK), etc.

[0117] It should be noted that the descriptions of the various embodiments above tend to emphasize the differences between them, while their similarities or commonalities can be referred to interchangeably. The descriptions of the above embodiments of the device, storage medium, computer program, and computer program product are similar to the descriptions of the above method embodiments and have similar beneficial effects. For technical details not disclosed in the embodiments of the device, storage medium, computer program, and computer program product of this application, please refer to the descriptions of the method embodiments of this application for understanding.

[0118] It should be noted that, Figure 3 This is a schematic diagram of a hardware entity of a computer device in an embodiment of this application, such as... Figure 3 As shown, the hardware entity of the computer device 700 includes: one or more processors 701, a communication interface 702, and a memory 703, wherein: Processor 701 typically controls the overall operation of computer device 700.

[0119] Communication interface 702 enables computer devices to communicate with other terminals or servers over a network.

[0120] The memory 703 is configured to store instructions and applications executable by the processor 701, and can also cache data to be processed or already processed (e.g., image data, audio data, voice communication data, and video communication data) in the processor 701 and various modules in the computer device 700. It can be implemented using flash memory or random access memory (RAM). Data transfer between the processor 701, the communication interface 702, and the memory 703 can be performed via bus 704. Only one processor is shown in the figure; each processor 700 includes one or more cores.

[0121] It should be noted that the computer device may include multiple processors 701, and each processor 701 can interact with each other through aggregated communication methods such as all-to-all, all-gather, or all-reduce. The processors 701 may be central processing units (CPUs), graphics processing units (GPUs), embedded neural network processing units (NPUs), tensor processing units (TPUs), data processing units (DPUs), accelerated processing units (APUs), floating-point processing units (FPUs), or application-specific integrated circuits (ASICs). The processors may also be single-core or multi-core processors. The processor may consist of a CPU and hardware chips. The hardware chips may be ASICs, PLDs, or combinations thereof. The PLDs may be complex programmable logic devices (CPLDs), FPGAs, generic array logic (GALs), or any combination thereof. The processor can also be implemented using logic devices with built-in processing logic, such as FPGAs or digital signal processors (DSPs).

[0122] The communication interface 702 can be a wired interface or a wireless interface, used to communicate with other modules or devices. The wired interface can be an Ethernet interface, a local interconnect network (LIN), etc., and the wireless interface can be a cellular network interface or a wireless LAN interface, etc.

[0123] Memory 703 can be non-volatile memory, such as read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Memory 703 can also be volatile memory, which can be random access memory (RAM) used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synclink dynamic random access memory (SLDRAM), and direct rambus RAM (DRRAM), direct rambus DRAM (DRDRAM), and rambus DRAM.

[0124] The 704 bus can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus can be divided into address bus, data bus, control bus, etc.

[0125] It should be understood that the phrase "one embodiment" or "an embodiment" throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of this application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It should be understood that in the various embodiments of this application, the sequence numbers of the above steps / processes do not imply a sequential order of execution; the execution order of each step / process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application. The sequence numbers of the above embodiments of this application are merely descriptive and do not represent the superiority or inferiority of the embodiments.

[0126] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0127] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple units or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed can be through some interfaces, and the indirect coupling or communication connection between devices or units can be electrical, mechanical, or other forms.

[0128] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units. They may be located in one place or distributed across multiple network units. Some or all of the units may be selected to achieve the purpose of this embodiment according to actual needs.

[0129] In addition, each functional unit in the various embodiments of this application can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit; the integrated unit can be implemented in hardware or in the form of hardware plus software functional units.

[0130] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the above method embodiments. The aforementioned storage medium includes various media that can store program code, such as mobile storage devices, read-only memory (ROM), magnetic disks, or optical disks.

[0131] Alternatively, if the integrated units described above are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, or the part that contributes to related technologies, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROM, magnetic disks, or optical disks.

[0132] The above description is merely an embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application.

Claims

1. A two-wheeled vehicle inter-domain communication control method, characterized in that, The method includes: Configure the inter-domain communication links of vehicles as primary communication links, backup communication links, and degraded communication links; Obtain the link quality assessment index for each communication link, and calculate the link score for each communication link based on the link quality assessment index; A unified arbitration objective function is constructed based on the security priority of the data to be transmitted and the link score, and link selection and switching control is performed based on the unified arbitration objective function. When neither the primary communication link nor the backup communication link meets the constraints, the degraded communication link is forcibly activated and the minimum security information set is transmitted through the degraded communication link.

2. The method according to claim 1, characterized in that, The process of obtaining the link quality assessment index for each communication link and calculating the link score for each communication link based on the link quality assessment index includes: For each communication link, the data transmission delay, transmission jitter, packet loss rate, cyclic redundancy check failure rate, and heartbeat synchronization failure count are measured separately. The data transmission delay, transmission jitter, packet loss rate, cyclic redundancy check failure rate, and heartbeat synchronization failure count are used together as the link quality evaluation index. Obtain the operating condition correction factor and hardware health correction factor corresponding to the current communication link. The operating condition correction factor is used to characterize the degree of interference of the current operating environment of the vehicle on the communication link, and the hardware health correction factor is used to characterize the degree of aging or failure of the physical devices on which the communication link depends. The data transmission delay, transmission jitter, packet loss rate, cyclic redundancy check failure rate, heartbeat out-of-step count, operating condition correction factor, and hardware health correction factor are input into a link scoring function specified by a preset standard to calculate the link score of the communication link. The link scoring function is a weighted summation function of the data transmission delay, transmission jitter, packet loss rate, cyclic redundancy check failure rate, heartbeat out-of-step count, operating condition correction factor, and hardware health correction factor. The numerical range of the link score is divided into a healthy value range, a degraded value range, an abnormal value range, and a failed value range.

3. The method according to claim 1, characterized in that, The step of constructing a unified arbitration objective function based on the security priority of the data to be transmitted and the link score, and performing link selection and switching control based on the unified arbitration objective function, includes: Obtain the security priority value corresponding to the data to be transmitted. The security priority value is pre-assigned according to the type of data to be transmitted. Risk event data and control feedback data are assigned high security priority values, state synchronization data are assigned medium security priority values, and service data and media data or log data are assigned low security priority values. The link score of the current communication link at the current moment and the delay risk value caused by the transmission delay and transmission jitter of the communication link are obtained. The delay risk value is positively correlated with the data transmission delay and the transmission jitter. The delay risk value is set to a low value when the data transmission delay and the transmission jitter are respectively lower than the corresponding first threshold, and is set to a high value when the data transmission delay and the transmission jitter are respectively higher than the corresponding second threshold. The value of the second threshold is greater than the value of the first threshold. The link score is multiplied by a first weighting coefficient to obtain a first product, the security priority value is multiplied by a second weighting coefficient to obtain a second product, the latency risk value is multiplied by a third weighting coefficient to obtain a third product, the first product and the second product are added together and then the third product is subtracted to obtain the unified arbitration objective function value, wherein the first weighting coefficient, the second weighting coefficient and the third weighting coefficient are all preset positive numbers; The unified arbitration objective function values ​​of each communication link are compared, and the communication link with the largest unified arbitration objective function value is selected as the transmission channel at the current moment.

4. The method according to claim 3, characterized in that, The link selection and switching control based on the unified arbitration objective function includes: Establish a switching state machine model that includes normal state, early warning state, backup link takeover state, minimum operating state of degraded link, and recovery verification state, and set corresponding link scoring threshold conditions and state transition conditions for each state. When the link score of the main communication link is greater than or equal to the first score threshold, the switching state machine model is maintained in the normal state, and the main communication link carries the transmission of all data to be transmitted. When the link score of the main communication link is less than the first score threshold and greater than or equal to the second score threshold, the switching state machine model is migrated from the normal state to the warning state, and the hot standby synchronization frequency of the backup communication link is increased in the warning state, wherein the value of the second score threshold is less than the value of the first score threshold. When the link score of the primary communication link is less than the second score threshold, a decision is made on whether to perform a primary / backup switch based on the hysteresis threshold condition and the recovery stability window condition. If the link score of the primary communication link is less than the second score threshold for multiple consecutive evaluation periods and the link score of the backup communication link is greater than or equal to the second score threshold, the switchover state machine model is migrated from the warning state to the backup link takeover state, and the backup communication link takes over the data transmission task.

5. The method according to claim 1, characterized in that, When neither the primary communication link nor the backup communication link meets the constraints, the degraded communication link is forcibly activated and the minimum security information set is transmitted through the degraded communication link, including: Obtain the first link score of the primary communication link and the second link score of the backup communication link, and determine whether the first link score and the second link score are lower than the preset downgrade activation threshold; When both the first link score and the second link score are lower than the degradation activation threshold, it is determined that neither the primary communication link nor the backup communication link meets the constraint condition, and the degradation control function is forcibly invoked to enable the degradation communication link. After enabling the degraded communication link, the data to be transmitted is filtered for security priority, allowing only the risk event data, control feedback data, and status summary data to be transmitted through the degraded communication link. At the same time, the service data and the media data or log data are suspended from transmission, the transmission frequency is reduced, or they are converted to summary form before being transmitted. The minimum safety information set includes at least the collision alarm and roll alarm in the risk event data, the speed limit command and torque limit command in the control feedback data, and the vehicle speed summary and key fault codes in the status summary data. The data field length of the minimum safety information set is limited to a preset proportion lower than the data field length when the main communication link is working normally.

6. The method according to claim 5, characterized in that, The transmission of the minimum security information set through the downgraded communication link includes: During the period when the degraded communication link is enabled, the link scores of the primary communication link and the backup communication link are continuously monitored; When the link score of at least one of the main communication link or the backup communication link recovers to a level greater than or equal to the degradation activation threshold, a recovery stabilization window timer is started. Before the time counted by the recovery stabilization window timer reaches the preset stabilization window duration, the transmission state of the degradation communication link is maintained, and direct migration from the minimum operating state of the degradation link to the normal state is prohibited. After the recovery stabilization window timer reaches the stabilization window duration, if the link score of the recovered communication link remains higher than the degradation activation threshold throughout the stabilization window duration, the switching state machine model is migrated from the minimum operating state of the degraded link to the recovery verification state, and the sending side is notified to resend the service data and media data or log data that were suspended or down-frequency during the degraded link activation period.

7. The method according to claim 1, characterized in that, The method further includes: On the receiving side, the original timestamp, sequence number, link priority identifier, and recovery window identifier carried in each received data frame are extracted. The original timestamp is generated by the sending side at the time of transmission according to the time synchronization protocol specified by the preset standard, and the sequence number is allocated by the sending side in increments according to the transmission order. Based on the original timestamp, the data frames from different communication links are time-corrected according to their chronological order. The time-corrected data frames are then rearranged in ascending order of their sequence numbers to obtain the rearranged data frame sequence. For any missing sequence numbers in the rearranged data frame sequence, a retransmission request is sent to the sending side, and the system waits to receive the retransmitted data frames. After receiving the resent data frame, the resent data frame is inserted into the corresponding position in the rearranged data frame sequence to form a complete data frame sequence; Cyclic redundancy check is performed on each data frame in the complete data frame sequence, and the timestamp interval between adjacent data frames is checked to see if it is within the preset reasonable time interval range. If the cyclic redundancy check of all data frames passes and the timestamp interval is within the reasonable time interval range, the consistency check is determined to be successful, and the complete data frame sequence is output.

8. A two-wheeled vehicle inter-domain communication control device, characterized in that, The device includes: The processing module is used to set the inter-domain communication links of vehicles as primary communication links, backup communication links, and degraded communication links; Obtain the link quality assessment index for each communication link, and calculate the link score for each communication link based on the link quality assessment index; The control module is used to construct a unified arbitration objective function based on the security priority of the data to be transmitted and the link score, and to perform link selection and switching control based on the unified arbitration objective function; When neither the primary communication link nor the backup communication link meets the constraints, the degraded communication link is forcibly activated and the minimum security information set is transmitted through the degraded communication link.

9. A computer device comprising a memory and a processor, the memory storing a computer program executable on the processor, characterized in that, When the processor executes the program, it implements the steps in the two-wheeled vehicle domain communication control method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the two-wheeled vehicle domain communication control method according to any one of claims 1 to 7.