Vehicle-mounted communication link seamless switching method and device, equipment and storage medium
By initializing and collecting status information of the on-board communication link, determining priority and seamless switching using heartbeat packets, the efficiency and stability problems caused by communication abnormalities in on-board communication are solved, and dynamic adaptation and efficient and stable communication are achieved.
Patent Information
- Application Number
- CN202510659203.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-21
- Publication Date
- 2025-08-15
AI Technical Summary
The prior art is difficult to dynamically adapt to complex communication abnormal scenarios in vehicle-mounted communication, resulting in impact on communication efficiency and stability.
By initializing the communication link of the in-vehicle service service, status information is collected periodically, priority scores are determined using heartbeat packets, and seamless switching is performed based on service data type and link priority when a fault is detected.
It realizes dynamic adjustment of communication link priority, ensures the efficiency and stability of on-board communication, and adapts to the needs of different business scenarios.
Smart Images

Figure CN120499765A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle-mounted communication processing technology, and in particular to a method, device, equipment and storage medium for seamless switching of a vehicle-mounted communication link. Background Art
[0002] With the rapid adoption of automotive automation, intelligence, and the Internet of Things (IoT), in-vehicle electronic systems are expanding in scale and increasing in complexity. Assisted driving features such as lane departure warning and active collision avoidance are becoming increasingly common. These features place higher demands on the real-time performance, bandwidth, and reliability of in-vehicle networks. Therefore, providing reliable data communication mechanisms between functional modules is crucial in the field of autonomous driving.
[0003] Currently, there are two mainstream solutions for ensuring communication stability in the automotive sector: one is to configure multiple redundant backup communication links. When one communication link fails, it switches to another available backup link and retransmits data; the other is to set different Quality of Service (QoS) policies. When a communication link fails, the sender is controlled by the QoS policy to retransmit data, ensuring that no packets are lost. However, configuring multiple redundant backup communication links not only wastes a lot of bandwidth and communication resources in the vehicle's in-vehicle network, but also, when the primary link fails and the backup link is switched, the backup link is generally selected randomly or based on a pre-set priority. This results in multiple communication services using the same communication link, leading to unbalanced communication link load. Some communication links may be overloaded while others are underloaded. In severe cases, all packets may accumulate on the same communication link, seriously affecting the communication efficiency and latency of the in-vehicle network. Setting different QoS policies for different intelligent driving services ensures stability by controlling the retransmission of lost packets. However, if the in-vehicle communication link fails, the receiver will not receive any packets, resulting in persistent intelligent driving service anomalies. This solution is not suitable for some intelligent driving scenarios with high stability requirements.
[0004] Therefore, there is an urgent need for a seamless switching method for vehicle-mounted communication links that can ensure the efficiency and stability of vehicle-mounted communication. Summary of the Invention
[0005] The main purpose of the present invention is to provide a method, device, equipment and storage medium for seamless switching of vehicle-mounted communication links, aiming to solve the technical problem that the existing technology is difficult to dynamically adapt to complex communication abnormality scenarios in the vehicle network, affecting the efficiency and stability of communication.
[0006] To achieve the above object, the present invention provides a method for seamless switching of an in-vehicle communication link, the method comprising the following steps:
[0007] Initializing the communication links of each vehicle-mounted service, wherein the communication links serve as backup for each other;
[0008] Periodically collecting status information of each of the communication links by means of heartbeat packets, and determining a priority score of each of the communication links based on the status information;
[0009] When a faulty communication link is detected, the type of business data to be transmitted is determined, and the target communication link is selected for seamless switching based on the data transmission strategy corresponding to the type of business data to be transmitted and the priority scores of the communication links that do not have faults.
[0010] Optionally, the step of periodically collecting status information of each of the communication links by means of heartbeat packets, and determining a priority score of each of the communication links based on the status information, includes:
[0011] The sending end sends a heartbeat data packet at a preset interval;
[0012] Determine the status information of each communication link based on the timestamp and counting information in the heartbeat packet information collected by the receiving end, wherein the status information includes communication delay, network jitter, packet loss rate, failure rate and data packet integrity rate;
[0013] A preset priority scoring formula is used to determine the priority score of each of the communication links based on the status information.
[0014] Optionally, the preset priority scoring formula is:
[0015] Priority score = [((T1×a)+(T2×b)+(T3×c)+(T4×d)+(T5×(1-e)))×100];
[0016] Where T1, T2, T3, T4, and T5 represent the weights corresponding to communication delay, network jitter, packet loss rate, failure rate, and packet integrity rate, respectively. a represents the normalized communication delay, b represents the normalized network jitter, and c, d, and e represent the packet loss rate, failure rate, and packet integrity rate, respectively.
[0017] Optionally, after the step of periodically collecting the status information of each communication link by means of heartbeat packets, the method further includes:
[0018] Determining whether each communication link has a fault according to the status information of each communication link;
[0019] If the receiving end does not receive the heartbeat data packet sent by the sending end for M consecutive preset periods, it is determined that the corresponding communication link has a fault, where M is a preset threshold.
[0020] Optionally, when a faulty communication link is detected, determining the type of service data to be transmitted, and selecting a target communication link for seamless switching based on a data transmission policy corresponding to the type of service data to be transmitted and a priority score of each of the communication links that do not have a fault, includes:
[0021] When a faulty communication link is detected, determining a type of service data to be transmitted, the service data type including security-sensitive data, time-sensitive data, and general data;
[0022] Determining a corresponding data transmission strategy according to the type of service data to be transmitted;
[0023] A target communication link is selected for seamless switching based on the data transmission strategy and the priority scores of the communication links without failure, and data transmission is performed according to the target transmission strategy.
[0024] Optionally, the step of determining a corresponding data transmission strategy according to the type of service data to be transmitted includes:
[0025] If the type of business data to be transmitted is security-sensitive data, a multi-channel backup transmission strategy is adopted, wherein the multi-channel backup transmission strategy is to transmit the business data to be transmitted on multiple communication links simultaneously;
[0026] If the type of business data to be transmitted is time-sensitive data, a multi-channel sub-packaging and parallel transmission strategy is adopted. The multi-channel sub-packaging and parallel transmission strategy is to sub-packetize the business data to be transmitted and then divide the sub-packaging data evenly into multiple communication links for parallel transmission;
[0027] If the type of business data to be transmitted is general data, the most reliable communication link transmission strategy is adopted, and the most reliable communication link transmission strategy is to select a communication link with the highest priority from the communication links without failure for data transmission.
[0028] Optionally, if the type of the service data to be transmitted is security-sensitive data, after the step of adopting a multi-channel backup transmission strategy, the method further includes:
[0029] Selecting a first preset number of target communication links for seamless switching based on the multi-channel backup transmission strategy and the priority score of each of the communication links that do not have a fault;
[0030] Performing data transmission on the first preset number of target communication links simultaneously for transmitting the service data to be transmitted according to the multi-channel backup transmission strategy;
[0031] The receiving end is used to compare the data packets received on the first preset number of target communication links, and read the corresponding data packets according to the comparison results.
[0032] In addition, to achieve the above-mentioned purpose, the present invention also proposes a vehicle-mounted communication link seamless switching device, the device comprising:
[0033] A link configuration module, configured to initialize the communication links of each vehicle-mounted service, wherein the communication links serve as backup for each other;
[0034] A link scoring module is used to periodically collect status information of each of the communication links through heartbeat packets, and determine a priority score of each of the communication links based on the status information;
[0035] The link switching module is used to determine the type of business data to be transmitted when a faulty communication link is detected, and select the target communication link for seamless switching based on the data transmission strategy corresponding to the type of business data to be transmitted and the priority score of each communication link that is not faulty.
[0036] In addition, to achieve the above-mentioned purpose, the present invention also proposes a vehicle-mounted communication link seamless switching device, which includes: a memory, a processor, and a vehicle-mounted communication link seamless switching program stored in the memory and runnable on the processor, and the vehicle-mounted communication link seamless switching program is configured to implement the steps of the vehicle-mounted communication link seamless switching method described above.
[0037] In addition, to achieve the above-mentioned purpose, the present invention also proposes a storage medium, on which a vehicle communication link seamless switching program is stored. When the vehicle communication link seamless switching program is executed by a processor, the steps of the vehicle communication link seamless switching method described above are implemented.
[0038] The present invention discloses initializing the communication links of each vehicle-borne business service, wherein each of the communication links serves as a backup for each other; periodically collecting status information of each of the communication links through heartbeat packets, and determining the priority score of each of the communication links based on the status information; when a communication link with a fault is detected, determining the type of business data to be transmitted, and selecting a target communication link for seamless switching based on the data transmission strategy corresponding to the business data type to be transmitted and the priority score of each of the communication links without a fault. Since the present invention periodically collects status information of each of the communication links through heartbeat packets, and determines the priority score of each of the communication links based on the status information, and then when a communication link with a fault is detected, selecting a target communication link for seamless switching based on the priority score of each of the communication links without a fault and the data transmission strategy corresponding to the business data type to be transmitted, compared to the prior art, the present invention realizes dynamic adjustment of the priority of the communication link, thereby ensuring the efficiency and stability of vehicle-borne communications. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 This is a flow chart of a first embodiment of a method for seamlessly switching an in-vehicle communication link according to the present invention;
[0040] Figure 2 A schematic diagram of the data flow relationship and the logical relationship between each module in the vehicle communication link seamless switching method of the present invention;
[0041] Figure 3 Schematic diagram of the process of fault detection in the method for seamless switching of an in-vehicle communication link of the present invention;
[0042] Figure 4 Schematic diagram of the flow of priority calculation in the method for seamless switching of vehicle-mounted communication links of the present invention;
[0043] Figure 5 This is a flow chart of a second embodiment of a method for seamlessly switching an in-vehicle communication link according to the present invention;
[0044] Figure 6 Schematic diagram of the data transmission process in the method for seamless switching of an in-vehicle communication link of the present invention;
[0045] Figure 7 This is a structural block diagram of a first embodiment of a vehicle-mounted communication link seamless switching device according to the present invention;
[0046] Figure 8 It is a structural diagram of a vehicle-mounted communication link seamless switching device in a hardware operating environment involved in an embodiment of the present invention.
[0047] The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings and in conjunction with the embodiments. DETAILED DESCRIPTION
[0048] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0049] The embodiment of the present invention provides a method for seamless switching of a vehicle communication link, referring to Figure 1 , Figure 1 FIG. 1 is a flow chart of a first embodiment of a method for seamlessly switching an in-vehicle communication link according to the present invention.
[0050] In this embodiment, the vehicle communication link seamless switching method includes steps S10 to S30:
[0051] Step S10: Initializing the communication links of each vehicle-mounted service, wherein the communication links serve as backup for each other.
[0052] It should be noted that the execution subject of this embodiment can be a computer server device with data processing, network communication, and program execution functions used in an in-vehicle network communication scenario. The computer service device can be a server, a computer, or an in-vehicle mobile device installed in a vehicle, or an electronic device capable of implementing the above functions (such as an in-vehicle communication link seamless switching device). The following uses an in-vehicle communication system (hereinafter referred to as the system) that includes an in-vehicle communication link seamless switching device as an example to illustrate this embodiment and the following embodiments.
[0053] It should be understood that the communication links of the above-mentioned various in-vehicle business services may be multiple equivalent communication links configured for each in-vehicle business service.
[0054] It is easy to understand that initializing the communication links of each in-vehicle business service (including link availability verification, parameter pre-configuration and resource allocation) is the basis for the efficient operation of the in-vehicle communication system. Through link availability verification, parameter pre-configuration and resource allocation, reliable guarantees are provided for subsequent dynamic priority evaluation, seamless switching and transmission of different strategies, achieving a dual improvement in communication stability and resource utilization.
[0055] Step S20: periodically collecting status information of each of the communication links by means of heartbeat packets, and determining a priority score of each of the communication links based on the status information.
[0056] It's important to explain that a heartbeat packet is a small, periodic data packet (typically containing only essential information) used to monitor the status of a communication link or connection between devices in real time. Its core function is to confirm the viability of both communicating parties and collect performance metrics for the communication link, providing health feedback to the system.
[0057] In a specific implementation, a heartbeat data packet can be sent by the sending end at intervals of a preset period; the status information of each of the communication links is determined based on the timestamp and counting information in the heartbeat packet status information collected by the receiving end, and the status information includes communication delay, network jitter, packet loss rate, failure rate and data packet integrity rate; and a preset priority scoring formula is used to determine the priority score of each of the communication links based on the status information.
[0058] It should be added that, based on the status information of each communication link, it can be judged whether each communication link has a fault; if the receiving end does not receive the heartbeat data packet sent by the sending end for M consecutive preset periods, it is determined that the corresponding communication link has a fault, and M is a preset threshold (the following preset period is 1 second and M=10 as an example to illustrate this embodiment and subsequent embodiments).
[0059] For example, reference Figure 2 , Figure 2 The figure is a schematic diagram of the data flow relationship and the logical relationship between each module in the vehicle communication link seamless switching method of the present invention. Figure 2 The application layer of the system is responsible for various specific in-vehicle business applications, such as INS and perception. The transmission control layer includes a link detection module, a priority calculation module, a path selection module, and a data packet operation module. The transport layer, including various in-vehicle communication links such as SPI, PCIe, and in-vehicle Ethernet, is responsible for specific business data transmission.
[0060] In the transmission control layer, the link detection module at the sending end periodically sends a heartbeat data packet every 1 second. The heartbeat data packet includes a timestamp and count information. The timestamp and count information in the heartbeat packet information collected by the link detection module at the receiving end and whether the heartbeat data packet is received can be used to determine whether the current vehicle communication link is normal and the priority of each vehicle communication link.
[0061] For example, reference Figure 3 , Figure 3The figure is a flow chart of fault detection in the method for seamless switching of vehicle-mounted communication links of the present invention. In the figure, if the heartbeat data packet cannot be received for 10 consecutive cycles, it is determined that the communication link has a fault and a link abnormality message is issued. The priority calculation module determines the status information of each communication link through the timestamp and counting information included in the heartbeat data packet, and updates the communication link priority based on the status information, and notifies the path selection module to migrate the data to a new communication link based on the updated communication link priority. If the heartbeat data packet is not received for 10 consecutive cycles, the communication link is normal. The priority calculation module determines the status information of each communication link through the timestamp and counting information included in the heartbeat data packet, and updates the communication link priority based on the status information, and notifies the path selection module to migrate the data to a new communication link based on the updated communication link priority. The data packet operation module is used to perform operations such as unpacking, assembling, and verifying the data sent from the application layer.
[0062] It should be explained that the status information includes communication delay (time stamp of the heartbeat packet received by the receiver minus the time stamp of the heartbeat packet sent by the sender), network jitter (the difference between the maximum delay and the minimum delay in a period of time), packet loss rate (the number of heartbeat packets received in a period of time divided by the number of heartbeat packets that should be received), failure rate (the proportion of failure time in a period of time) and data packet integrity rate (normal data packets divided by the total number of heartbeat packets). For example, refer to Figure 4 , Figure 4 for Figure 4 It is a flow chart of priority calculation in the method for seamless switching of vehicle-mounted communication links of the present invention. In the figure, a heartbeat data packet is sent by the sending end at intervals of a preset period; based on the timestamp and counting information in the heartbeat packet information collected by the receiving end, the status information of each communication link and whether each communication link has a fault are determined. The priority score of each communication link is determined based on the status information of each communication link (communication delay, network jitter, packet loss rate, failure rate and data packet integrity rate), and the priority of the communication link is updated based on the priority score. If the heartbeat data packet cannot be received for M consecutive periods, it is determined that the communication link has a fault, and the link detection module reports the communication link abnormality.
[0063] It should be explained that the preset priority scoring formula is:
[0064] Priority score = [((T1×a)+(T2×b)+(T3×c)+(T4×d)+(T5×(1-e)))×100];
[0065] Where T1, T2, T3, T4, and T5 represent the weights corresponding to communication delay, network jitter, packet loss rate, failure rate, and packet integrity rate, respectively. a represents the normalized communication delay, b represents the normalized network jitter, and c, d, and e represent the packet loss rate, failure rate, and packet integrity rate, respectively.
[0066] It should be understood that T1, T2, T3, T4 and T5 represent the weight values corresponding to communication delay, network jitter, packet loss rate, failure rate and data packet integrity rate, respectively, and the value range is [0,1]. The normalization formula is: X normalized =(XX min ) / (X max -X min ), X max is the maximum value within the sliding window period, X min is the minimum value within the sliding window period. A smaller priority score indicates a higher priority for the communication link.
[0067] For example, T1, T2, and T3 are 25%, T4 is 15%, and T5 is 10%. The PCIE communication delay is 5 microseconds, the network jitter is 0.0002 microseconds, the packet loss rate is 0, the failure rate is 0, the packet integrity rate is 100%, the maximum jitter within the sliding window is 0.0005 microseconds, the minimum jitter is 0.0001 microseconds, the maximum delay is 15 microseconds, and the minimum delay is 1 microsecond. Then, the normalized communication delay = (5-1) ÷ (15-1) = 0.28, and the normalized network jitter = (0.0002-0.0001) ÷ (0.0005-0.0001) = 0.25. The corresponding priority scores are:
[0068] [((25% × 0.28) + (25% × 0.25) + (25% × 0) + (15% × 0) + (10% × (1 - 100%))) × 100] = [13.25] = 13, so the rounded priority score for the PCIE communication link is 13. Similarly, for example, if the SPI communication latency is 300 microseconds, the network jitter is 0.1 microseconds, the packet loss rate is 10%, the failure rate is 0%, the packet integrity rate is 100%, the maximum jitter within the sliding window is 5 microseconds, the minimum jitter is 0.05 microseconds, the maximum latency is 450 microseconds, and the minimum latency is 100 microseconds, the rounded priority score for the SPI communication link is 17. Since a lower priority score indicates a higher priority for the communication link, PCIE has higher priority than SPI.
[0069] Step S30: When a faulty communication link is detected, the type of service data to be transmitted is determined, and the target communication link is selected for seamless switching based on the data transmission strategy corresponding to the type of service data to be transmitted and the priority score of each of the communication links that do not have a fault.
[0070] It should be understood that the target communication link is the communication link with the lowest priority score (i.e., the highest priority) selected from all non-faulty communication links. For example, if an SPI communication link fails, the path selection module selects the highest-priority PCIE communication link (priority score 13) as the target communication link (i.e., the backup link) and initiates a seamless switch.
[0071] It should be noted that seamless switching means that when a communication link fails or its performance degrades, the system can automatically, quickly and imperceptibly switch to a backup link, ensuring the continuity, integrity and real-time nature of data transmission, avoiding business interruption or damage to user experience.
[0072] This embodiment discloses initializing the communication links of each vehicle-borne business service, and each of the communication links is in a backup relationship with each other; periodically collecting the status information of each of the communication links by means of heartbeat packets, and determining the priority score of each of the communication links based on the status information; when a faulty communication link is detected, determining the type of business data to be transmitted, and selecting a target communication link for seamless switching based on the data transmission strategy corresponding to the business data type to be transmitted and the priority score of each of the communication links that are not faulty. Since this embodiment periodically collects the status information of each communication link by means of heartbeat packets, and determines the priority score of each communication link based on the status information, and then when a faulty communication link is detected, selecting a target communication link for seamless switching based on the priority score of each of the communication links that are not faulty and the data transmission strategy corresponding to the business data type to be transmitted, compared to the prior art, this embodiment realizes the dynamic adjustment of the priority of the communication link, thereby ensuring the efficiency and stability of vehicle-borne communications.
[0073] refer to Figure 5 , Figure 5 FIG. 2 is a flow chart of a second embodiment of a method for seamlessly switching an in-vehicle communication link according to the present invention.
[0074] Based on the first embodiment above, in this embodiment, step S30 includes steps S301 to S303:
[0075] Step S301: When a faulty communication link is detected, the type of service data to be transmitted is determined, where the service data type includes security-sensitive data, time-sensitive data, and general data.
[0076] Step S302: Determine a corresponding data transmission strategy according to the type of service data to be transmitted.
[0077] Step S303: selecting a target communication link for seamless switching based on the data transmission strategy and the priority scores of the communication links that do not have a fault, and performing data transmission according to the target transmission strategy.
[0078] It should be noted that in order to ensure the timeliness, efficiency and stability of communication for different business scenarios and make full use of all communication links without failures, the corresponding data transmission strategy can be determined according to the type of business data to be transmitted.
[0079] It needs to be explained that business data types include security-sensitive data, time-sensitive data and general data. Security-sensitive data, time-sensitive data and general data can be transmitted using multi-channel backup transmission strategy, multi-channel subpackaging parallel transmission strategy and the most reliable communication link transmission strategy respectively, so as to flexibly adapt to the needs of different intelligent driving business scenarios.
[0080] In the specific implementation, after the application layer sends data to the transmission control layer, the path selection module selects the optimal N target communication links (where N can be individually configured according to business needs) based on the different types of data packets to be transmitted, and transmits and verifies the data through different data transmission strategies.
[0081] It should be noted that step S302 further includes steps S3021 to S3023:
[0082] Step S3021: If the type of the business data to be transmitted is security-sensitive data, a multi-channel backup transmission strategy is adopted, where the multi-channel backup transmission strategy is to transmit the business data to be transmitted on multiple communication links simultaneously.
[0083] Step S3022: If the type of business data to be transmitted is time-sensitive data, a multi-channel sub-packaging and parallel transmission strategy is adopted. The multi-channel sub-packaging and parallel transmission strategy is to sub-packetize the business data to be transmitted and then divide the sub-packaging data evenly into multiple communication links for parallel transmission.
[0084] Step S3023: If the type of the service data to be transmitted is general data, the most reliable communication link transmission strategy is adopted, and the most reliable communication link transmission strategy is to select the communication link with the highest priority from the communication links without failure for data transmission.
[0085] It should be added that if the type of business data to be transmitted is security-sensitive data, then after the step of adopting a multi-channel backup transmission strategy, the step also includes: selecting a first preset number of target communication links for seamless switching based on the multi-channel backup transmission strategy and the priority scores of each communication link that does not have a fault; transmitting the business data to be transmitted simultaneously on the first preset number of target communication links according to the multi-channel backup transmission strategy; using the receiving end to compare the data packets received on the first preset number of target communication links, and reading the corresponding data packets based on the comparison results. The first preset number can be a custom setting based on business needs, and this embodiment does not limit this.
[0086] refer to Figure 6 , Figure 6 The present invention provides a flow chart of data transmission in the method for seamless switching of vehicle-mounted communication links. First, the business data type to be transmitted is determined, and the business data types include security-sensitive data (corresponding to security-sensitive business), time-sensitive data (corresponding to time-sensitive business) and general data (corresponding to general business); if the business data type to be transmitted is security-sensitive data, the first N communication links with the highest priority are selected to send the same data at the same time, and the receiving end performs a multi-path data packet cross-comparison to determine whether there is a difference in the multi-link data verification results. If so, the data packet with the largest proportion in the verification results is selected, and then the complete data packet is read. If not, the complete data packet is directly read, thereby enabling the receiving end to receive data; if the business data type to be transmitted is time-sensitive data, the data packet to be sent is split, and then the first N communication links with the highest priority are selected to send data concurrently, and the receiving end receives all the data packets and forms a complete data packet, thereby enabling the receiving end to receive data; if the business data type to be transmitted is general data, the communication link with the highest priority is selected to send, thereby enabling the receiving end to receive data.
[0087] For example, DTC business data is security-sensitive data, so a multi-channel backup transmission strategy is adopted. The path selection module selects three different communication links with the highest priority based on the configured transmission type (concurrent full transmission) and concurrency number (depth is 3), and transmits the data packets on the three communication links simultaneously. The data packet operation module at the receiving end verifies and compares the data packets received under the three different communication links. If the verification results of the three data packets are the same, the complete data packet is directly read and passed to the application layer. If there is a difference in the verification, the data packet with the most similarities is selected and passed to the application layer, or the sending end is controlled to resend the data until it is exactly the same. This ensures the integrity of the data packet.
[0088] For example, if various sensor data is time-sensitive, a multi-channel packet-based parallel transmission strategy is employed. The path selection module selects three different communication links with the highest priority based on the configured transmission type (concurrent packet transmission) and concurrency (depth of 3). The packet transmission module on the sending end then packetizes the data packets and distributes them equally across the three communication links for concurrent transmission. The receiving end then repackets the data and, after integrity verification, passes it to the application layer. This reduces latency.
[0089] For example, if the key information service data packet is general data, the most reliable communication link transmission strategy is adopted. The path selection module selects the highest priority link among the available links for data transmission, ensuring that the communication link is the current optimal path and improving transmission efficiency.
[0090] It should be added that this embodiment is not limited to the physical hardware level, but is also applicable to inter-core communication and inter-process communication.
[0091] This embodiment discloses that when a faulty communication link is detected, the type of business data to be transmitted is determined, and the business data type includes security-sensitive data, time-sensitive data, and general data; a corresponding data transmission strategy is determined according to the type of business data to be transmitted; a target communication link is selected for seamless switching based on the data transmission strategy and the priority scores of each communication link that is not faulty, and data transmission is performed according to the target transmission strategy. Since this embodiment selects different data transmission strategies according to the type of business data to be transmitted, and then selects a target communication link for seamless switching based on the data transmission strategy and the priority scores of each communication link that is not faulty, and data transmission is performed according to the target transmission strategy, compared to the existing technology, this embodiment assigns different transmission modes to different businesses, flexibly adapts to the needs of different intelligent driving business scenarios, ensures the timeliness, efficiency, and stability of communication, and fully utilizes communication link resources.
[0092] In addition, an embodiment of the present invention further proposes a storage medium storing a vehicle communication link seamless switching program. When the vehicle communication link seamless switching program is executed by a processor, the steps of the vehicle communication link seamless switching method described above are implemented.
[0093] Reference Figure 7 , Figure 7 This is a structural block diagram of the first embodiment of the vehicle-mounted communication link seamless switching device of the present invention.
[0094] like Figure 7 As shown, the vehicle-mounted communication link seamless switching device proposed in the embodiment of the present invention includes: a link configuration module 801, a link scoring module 802 and a link switching module 803.
[0095] The link configuration module 801 is used to initialize the communication links of each vehicle-mounted service, and each of the communication links is in a backup relationship with each other.
[0096] The link scoring module 802 is configured to periodically collect status information of each communication link through heartbeat packets, and determine a priority score of each communication link based on the status information.
[0097] The link switching module 803 is used to determine the type of business data to be transmitted when a faulty communication link is detected, and select the target communication link for seamless switching based on the data transmission strategy corresponding to the type of business data to be transmitted and the priority score of each of the communication links that do not have a fault.
[0098] The link scoring module 802 is also used to send heartbeat data packets at preset intervals through the sending end; determine the status information of each communication link based on the timestamp and counting information in the heartbeat packet status information collected by the receiving end, and the status information includes communication delay, network jitter, packet loss rate, failure rate and data packet integrity rate; use a preset priority scoring formula to determine the priority score of each communication link based on the status information.
[0099] The link scoring module 802 is further used to determine whether each communication link has a fault based on the status information of each communication link; if the receiving end does not receive the heartbeat data packet sent by the sending end for M consecutive preset periods, it is determined that the corresponding communication link has a fault, where M is a preset threshold.
[0100] The embodiment of the present device discloses initializing the communication links of each vehicle-borne business service, and each of the communication links is in a backup relationship with each other; periodically collecting the status information of each of the communication links by means of heartbeat packets, and determining the priority score of each of the communication links based on the status information; when a faulty communication link is detected, determining the type of business data to be transmitted, and selecting a target communication link for seamless switching based on the data transmission strategy corresponding to the business data type to be transmitted and the priority score of each of the communication links that are not faulty. Since the embodiment of the present device periodically collects the status information of each of the communication links by means of heartbeat packets, and determines the priority score of each of the communication links based on the status information, and then when a faulty communication link is detected, selecting a target communication link for seamless switching based on the priority score of each of the communication links that are not faulty and the data transmission strategy corresponding to the business data type to be transmitted, compared to the prior art, the embodiment of the present device realizes dynamic adjustment of the priority of the communication link, thereby ensuring the efficiency and stability of the vehicle-borne communication.
[0101] Based on the first embodiment of the vehicle-mounted communication link seamless switching device of the present invention, a second embodiment of the vehicle-mounted communication link seamless switching device of the present invention is proposed.
[0102] In this embodiment, the link switching module 803 is also used to determine the type of business data to be transmitted when a faulty communication link is detected, and the business data type includes security-sensitive data, time-sensitive data, and general data; determine the corresponding data transmission strategy according to the type of business data to be transmitted; select the target communication link for seamless switching based on the data transmission strategy and the priority score of each of the communication links that do not have a fault, and perform data transmission according to the target transmission strategy.
[0103] The link switching module 803 is also used to adopt a multi-channel backup transmission strategy if the type of business data to be transmitted is security-sensitive data, and the multi-channel backup transmission strategy is to transmit the business data to be transmitted on multiple communication links at the same time; if the type of business data to be transmitted is time-sensitive data, then adopt a multi-channel sub-packaging parallel transmission strategy, and the multi-channel sub-packaging parallel transmission strategy is to sub-packetize the business data to be transmitted and then divide the sub-packaging data evenly into multiple communication links for parallel transmission; if the type of business data to be transmitted is general data, then adopt the most reliable communication link transmission strategy, and the most reliable communication link transmission strategy is to select the communication link with the highest priority from the communication links without faults for data transmission.
[0104] The link switching module 803 is also used to select a first preset number of target communication links for seamless switching based on the multi-channel backup transmission strategy and the priority scores of each communication link that is not faulty; transmit the business data to be transmitted on the first preset number of target communication links at the same time according to the multi-channel backup transmission strategy; use the receiving end to compare the data packets received on the first preset number of target communication links, and read the corresponding data packets according to the comparison results.
[0105] The embodiment of the present device discloses that when a faulty communication link is detected, the type of business data to be transmitted is determined, the business data type includes security-sensitive data, time-sensitive data, and general data; a corresponding data transmission strategy is determined according to the type of business data to be transmitted; a target communication link is selected for seamless switching based on the data transmission strategy and the priority scores of each communication link that does not have a fault, and data transmission is performed according to the target transmission strategy. Since the embodiment of the present device selects different data transmission strategies according to the type of business data to be transmitted, and then selects a target communication link for seamless switching based on the data transmission strategy and the priority scores of each communication link that does not have a fault, and data transmission is performed according to the target transmission strategy, compared to the prior art, the embodiment of the present device assigns different transmission modes to different businesses, flexibly adapts to the needs of different intelligent driving business scenarios, fully utilizes communication link resources, and ensures the timeliness, efficiency, and stability of communication.
[0106] Other embodiments or specific implementations of the vehicle-mounted communication link seamless switching device of the present invention can refer to the above-mentioned method embodiments and will not be described in detail here.
[0107] The present application provides a vehicle-mounted communication link seamless switching device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the vehicle-mounted communication link seamless switching method in the above-mentioned embodiment one.
[0108] Reference below Figure 8 , which shows a schematic diagram of the structure of a vehicle-mounted communication link seamless switching device suitable for implementing an embodiment of the present application. The vehicle-mounted communication link seamless switching device in the embodiment of the present application may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 8 The vehicle-mounted communication link seamless switching device shown is merely an example and should not impose any limitations on the functions and scope of use of the embodiments of the present application.
[0109] like Figure 8As shown, the in-vehicle communication link seamless switching device may include a processing device 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes based on programs stored in a read-only memory 1002 or programs loaded from a storage device 1003 into a random access memory 1004. The random access memory 1004 also stores various programs and data required for the operation of the in-vehicle communication link seamless switching device. The processing device 1001, the read-only memory 1002, and the random access memory 1004 are interconnected via a bus 1005. An input / output interface 1006 is also connected to the bus. Typically, the following systems can be connected to the input / output interface 1006: an input device 1007 including, for example, a touch screen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the vehicle-mounted communication link seamless switching device to communicate wirelessly or wired with other devices to exchange data. Although the figure shows the vehicle-mounted communication link seamless switching device with various systems, it should be understood that it is not required to implement or have all of the systems shown. More or fewer systems may be implemented or have alternatively.
[0110] In particular, according to the embodiments disclosed in the present application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments disclosed in the present application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program comprising program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via a communication device, or installed from a storage device 1003, or installed from a read-only memory 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are performed.
[0111] The in-vehicle communication link seamless switching device provided in this application, which utilizes the in-vehicle communication link seamless switching method described in the above-mentioned embodiment, can resolve the technical problem that the existing technology has difficulty dynamically adapting to complex communication anomaly scenarios in the in-vehicle network, thus affecting the efficiency and stability of communication. Compared with the existing technology, the beneficial effects of the in-vehicle communication link seamless switching device provided in this application are the same as those of the in-vehicle communication link seamless switching method provided in the above-mentioned embodiment. The other technical features of the in-vehicle communication link seamless switching device are the same as those disclosed in the method of the above-mentioned embodiment, and are not further described here.
[0112] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0113] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
[0114] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or system comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or system. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or system comprising the element.
[0115] The serial numbers of the above embodiments of the present invention are for description only and do not represent the advantages or disadvantages of the embodiments.
[0116] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better embodiment. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as read-only memory / random access memory, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present invention.
[0117] The above are only preferred embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention description and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for seamless switching of an in-vehicle communication link, characterized in that: The method comprises: Initializing the communication links of each vehicle-mounted service, wherein the communication links serve as backup for each other; Periodically collecting status information of each of the communication links by means of heartbeat packets, and determining a priority score of each of the communication links based on the status information; When a faulty communication link is detected, the type of business data to be transmitted is determined, and the target communication link is selected for seamless switching based on the data transmission strategy corresponding to the type of business data to be transmitted and the priority scores of the communication links that do not have faults.
2. The method for seamless switching of an in-vehicle communication link according to claim 1, wherein: The step of periodically collecting the status information of each of the communication links by means of heartbeat packets, and determining the priority score of each of the communication links based on the status information, includes: The sending end sends a heartbeat data packet at a preset interval; Determine the status information of each communication link based on the timestamp and counting information in the heartbeat packet information collected by the receiving end, wherein the status information includes communication delay, network jitter, packet loss rate, failure rate and data packet integrity rate; A preset priority scoring formula is used to determine the priority score of each of the communication links based on the status information.
3. The method for seamless switching of an in-vehicle communication link according to claim 2, wherein: The preset priority scoring formula is: Priority score = [((T1×a)+(T2×b)+(T3×c)+(T4×d)+(T5×(1-e)))×100]; Where T1, T2, T3, T4, and T5 represent the weights corresponding to communication delay, network jitter, packet loss rate, failure rate, and packet integrity rate, respectively. a represents the normalized communication delay, b represents the normalized network jitter, and c, d, and e represent the packet loss rate, failure rate, and packet integrity rate, respectively.
4. The method for seamless switching of an in-vehicle communication link according to claim 2, wherein: After the step of periodically collecting the status information of each communication link by means of heartbeat packets, the method further includes: Determining whether each communication link has a fault according to the status information of each communication link; If the receiving end does not receive the heartbeat data packet sent by the sending end for M consecutive preset periods, it is determined that the corresponding communication link has a fault, where M is a preset threshold.
5. The method for seamless switching of an in-vehicle communication link according to claim 1, wherein: The step of determining the type of service data to be transmitted when a faulty communication link is detected, and selecting a target communication link for seamless switching based on a data transmission strategy corresponding to the type of service data to be transmitted and a priority score of each of the communication links that do not have a fault, includes: When a faulty communication link is detected, determining a type of service data to be transmitted, the service data type including security-sensitive data, time-sensitive data, and general data; Determining a corresponding data transmission strategy according to the type of service data to be transmitted; A target communication link is selected for seamless switching based on the data transmission strategy and the priority scores of the communication links without failure, and data transmission is performed according to the target transmission strategy.
6. The method for seamless switching of an in-vehicle communication link according to claim 5, wherein: The step of determining a corresponding data transmission strategy according to the type of service data to be transmitted includes: If the type of business data to be transmitted is security-sensitive data, a multi-channel backup transmission strategy is adopted, wherein the multi-channel backup transmission strategy is to transmit the business data to be transmitted on multiple communication links simultaneously; If the type of business data to be transmitted is time-sensitive data, a multi-channel sub-packaging and parallel transmission strategy is adopted. The multi-channel sub-packaging and parallel transmission strategy is to sub-packetize the business data to be transmitted and then divide the sub-packaging data evenly into multiple communication links for parallel transmission; If the type of business data to be transmitted is general data, the most reliable communication link transmission strategy is adopted, and the most reliable communication link transmission strategy is to select a communication link with the highest priority from the communication links without failure for data transmission.
7. The method for seamless switching of an in-vehicle communication link according to claim 6, wherein: After the step of adopting a multi-channel backup transmission strategy if the type of the service data to be transmitted is security-sensitive data, the method further includes: Selecting a first preset number of target communication links for seamless switching based on the multi-channel backup transmission strategy and the priority score of each of the communication links that do not have a fault; Performing data transmission on the first preset number of target communication links simultaneously for transmitting the service data to be transmitted according to the multi-channel backup transmission strategy; The receiving end is used to compare the data packets received on the first preset number of target communication links, and read the corresponding data packets according to the comparison results.
8. A vehicle-mounted communication link seamless switching device, characterized in that: The device comprises: A link configuration module, configured to initialize the communication links of each vehicle-mounted service, wherein the communication links serve as backup for each other; A link scoring module is used to periodically collect status information of each of the communication links through heartbeat packets, and determine a priority score of each of the communication links based on the status information; The link switching module is used to determine the type of business data to be transmitted when a faulty communication link is detected, and select the target communication link for seamless switching based on the data transmission strategy corresponding to the type of business data to be transmitted and the priority score of each communication link that is not faulty.
9. A vehicle-mounted communication link seamless switching device, characterized in that: The device includes: a memory, a processor, and a vehicle communication link seamless switching program stored in the memory and executable on the processor, wherein the vehicle communication link seamless switching program is configured to implement the steps of the vehicle communication link seamless switching method according to any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium stores a vehicle communication link seamless switching program, and when the vehicle communication link seamless switching program is executed by the processor, the steps of the vehicle communication link seamless switching method according to any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Method, system and device for fusing multi-link communication data of equipment and medium
CN121509318A
Expressway vehicle-ground wireless intelligent monitoring method and system and readable storage medium
CN121645329A