A high-speed carrier and wireless-based channel signal switching method
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- HANGZHOU CYLAN ELECTRONICS TECH
- Filing Date
- 2026-07-10
- Publication Date
- 2026-08-07
AI Technical Summary
[0004]本申请提供了一种基于高速载波和无线的通道信号切换方法,以至少解决切换过程中缺乏对源通道与目标通道之间数据包序列号的同步处理机制,容易导致数据帧丢失、乱序或重复传输,影响上层业务的连续性的问题
本申请通过获取高速载波通道的第一多维度通信质量参数和无线通道的第二多维度通信质量参数,并分别计算载波通道质量指数和无线通道质量指数,实现了对通道质量的多维度综合评估,克服了现有技术中单一维度评估的局限性,提高了通道质量评估的全面性和准确性。
Smart Images

Figure CN122534016A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a channel signal switching method based on high-speed carrier and wireless communication. Background Technology
[0002] In modern industrial IoT, smart home, and remote monitoring fields, the reliability and real-time performance of data transmission are core requirements for ensuring stable system operation. To meet the communication requirements of different application scenarios, two complementary communication methods are currently widely used: high-speed carrier communication (such as power line carrier, PLC) and wireless communication (such as Wi-Fi, ZigBee, LoRa, etc.).
[0003] Existing channel switching schemes typically employ a trigger mechanism based on a fixed threshold: when a certain quality indicator of the source channel (such as signal-to-noise ratio, bit error rate, received signal strength, etc.) falls below a preset threshold, a channel switching operation is triggered. This approach has the following drawbacks: a single-dimensional quality indicator cannot comprehensively reflect the true transmission status of the channel, easily leading to erroneous or missed switching due to the one-sidedness of the indicator; fixed thresholds cannot adapt to dynamic changes in channel quality, potentially causing frequent ping-pong switching or switching lag issues when the environment changes rapidly; and the lack of a mechanism for synchronizing data packet sequence numbers between the source and target channels during the switching process can easily lead to data frame loss, out-of-order transmission, or duplicate transmission, affecting the continuity of upper-layer services. Summary of the Invention
[0004] This application provides a channel signal switching method based on high-speed carrier and wireless technology to at least solve the problem that the lack of a synchronization mechanism for the sequence number of data packets between the source channel and the target channel during the switching process can easily lead to data frame loss, out-of-order transmission or duplicate transmission, affecting the continuity of upper-layer services.
[0005] In a first aspect, this application provides a channel signal switching method based on high-speed carrier and wireless technology, applied to data transmission, wherein the channel currently transmitting data is designated as the source channel, and the channel to which the data is to be switched is designated as the target channel. The method includes: Obtain the first multi-dimensional communication quality parameters of the high-speed carrier channel and the second multi-dimensional communication quality parameters of the wireless channel; The carrier channel quality index is obtained based on the first multi-dimensional communication quality parameter, and the wireless channel quality index is obtained based on the second multi-dimensional communication quality parameter. Based on the carrier channel quality index and the radio channel quality index, a channel quality change trend is generated, and handover information is generated based on the channel quality change trend; Based on the switching information, a channel switch is performed between the source channel and the target channel. During the switch, data frames that have not received an acknowledgment response in the source channel buffer are forwarded to the target channel, and the data packet sequence numbers of the source channel and the target channel are synchronized. After the switch is completed, a probe frame is sent to the target channel and a response frame is received; after confirming that the link quality of the target channel meets the preset requirements based on the response frame, the current communication parameters of the source channel are synchronized to the target channel.
[0006] Optionally, the step of generating a channel quality change trend based on the carrier channel quality index and the radio channel quality index includes: Within a preset time window, the carrier channel quality index and the radio channel quality index are obtained at equally spaced sampling points, which constitute the carrier time series and the radio time series, respectively. A first rate of change of the carrier channel quality index is obtained by performing linear regression fitting on the carrier time series; a second rate of change of the wireless channel quality index is obtained by performing linear regression fitting on the wireless time series. Based on the type of the source channel, a target rate of change corresponding to the source channel is determined from the first rate of change and the second rate of change: if the source channel is a high-speed carrier channel, the target rate of change is the first rate of change; if the source channel is a wireless channel, the target rate of change is the second rate of change. The target rate of change is compared with a preset rate of change threshold: when the target rate of change is negative and its absolute value is greater than the preset rate of change threshold, the source channel quality is determined to be declining; the difference between the target rate of change and adjacent time windows is further calculated as the acceleration of change, and when the acceleration of change is negative, the source channel quality is determined to be accelerating deterioration; based on the determination results of the declining trend and the acceleration of deterioration, a channel quality change trend is generated.
[0007] Optionally, the step of generating switching information based on the channel quality change trend includes: Obtain the channel quality difference between the carrier channel quality index and the radio channel quality index at the current moment; Based on the channel quality change trend, determine whether the source channel quality is declining and identify signs of accelerated deterioration; The channel quality difference is compared with a preset adaptive switching threshold, and a preliminary decision is generated based on the determination result of the downward trend: if the channel quality difference exceeds the adaptive switching threshold and the determination result of the downward trend is true, then it is determined that switching is required; otherwise, the delayed re-evaluation process is initiated. Based on the preliminary decision and the accelerated deterioration flag, the switching information is generated, wherein when a switch is required and the accelerated deterioration flag is valid, immediate switching information with high priority is generated; when a switch is required but the accelerated deterioration flag is invalid, normal switching information is generated; and when no switch is required, hold information is generated.
[0008] Optionally, the step of performing channel switching between the source channel and the target channel based on the switching information includes: The communication address and priority level of the target channel are extracted based on the switching information, and a connection to the target channel is established based on the communication address. After the target channel connection is established and before the source channel is disconnected, the data transmission mode is switched from full-rate transmission to transmission slope control mode, and the initial transmission rate slope corresponding to the priority level is obtained. In the transmission slope control mode, a data stream is injected into the target channel at the initial transmission rate slope, and the instantaneous response state returned by the target channel is periodically measured to obtain the instantaneous response parameter set; The transient transmission impedance and its rate of change of the target channel are obtained based on the transient response parameter set; the predicted transmission quality trend is obtained based on the transient transmission impedance and its rate of change; when the predicted transmission quality trend exceeds a preset safety threshold, the current injection rate is reduced to a safe injection rate, and the output rate is adjusted to track the safe injection rate until the source channel is disconnected, thereby completing the channel switching.
[0009] Optionally, the step of periodically measuring the instantaneous response state returned by the target channel includes: In the transmission slope control mode, weak data packets with preset frequency characteristics are generated at a preset period, and the length of the weak data packets is less than the length of a regular data frame. The weak data packet is injected into the target channel, and the response signal returned by the target channel in response to the weak data packet is collected simultaneously to obtain the time domain response signal; The time-domain response signal is subjected to a fast Fourier transform to obtain the frequency-domain response spectrum, and the voltage response component and current response component corresponding to the preset frequency characteristics of the weak data packet are extracted from the frequency-domain response spectrum. Based on the ratio of the voltage response component to the current response component, the transient transmission impedance of the target channel at the current frequency point is calculated, and this transient transmission impedance is used as an item in the instantaneous response parameter set to complete the measurement of the instantaneous response state.
[0010] Optionally, the step of obtaining the transient transmission impedance of the target channel and its rate of change based on the transient response parameter set includes: The currently injected weak data packet is decomposed into the fundamental component and multiple harmonic components to obtain the frequency and amplitude information of each component. Based on the frequency and amplitude information, the transient transmission impedance of the target channel at that frequency component is obtained, and a frequency domain impedance sequence is formed. Perform an inverse Fourier transform on the frequency domain impedance sequence to construct the time domain transient response function of the target channel, and use the time domain transient response function as the estimated value of the transient transmission impedance at the current moment; Obtain the estimated value of the transient transmission impedance at the previous moment, calculate the difference between the estimated value at the current moment and the estimated value at the previous moment, divide by the time interval, and obtain the rate of change of the transient transmission impedance.
[0011] Optionally, the step of obtaining the predicted transmission quality trend based on the transient transmission impedance and its rate of change includes: The instantaneous quality assessment value at the current moment is obtained based on the transient transmission impedance; The instantaneous quality assessment value at the current moment is combined with the instantaneous quality assessment values at historical moments to form a time series of assessment values; Identify all instantaneous mass peaks in the time series of the evaluation values, and calculate the product of the amplitude and duration for each instantaneous mass peak to obtain the stress contribution value of a single peak; The stress contribution values of all instantaneous quality peaks within a preset time window are summed to obtain a cumulative stress evaluation value. The cumulative stress evaluation value is compared with a preset cumulative stress threshold. If the cumulative stress evaluation value exceeds the preset cumulative stress threshold, it is determined that the transmission quality trend exceeds a preset safety threshold, thereby completing the prediction of the transmission quality trend.
[0012] Optionally, the step of forwarding data frames in the source channel buffer that have not received an acknowledgment response to the target channel, and synchronizing the data packet sequence numbers of the source channel and the target channel, includes: Within the time window after the target channel connection is established and before the source channel is disconnected, obtain the source channel's transmission buffer, identify all data frames that have been sent but have not received an acknowledgment response, and obtain a list of data frames to be forwarded; The data frames in the list of data frames to be forwarded are copied to the transmission queue of the target channel, and before the target channel sends the first data frame to be forwarded, a sequence number alignment mark is inserted into the data stream. The alignment mark contains the offset between the current sequence number of the source channel and the starting sequence number of the target channel. The receiving end parses the sequence number alignment mark, reorders the sequence numbers of subsequently received data packets according to the offset, and delivers the reordered data packets to the upper-layer protocol stack in order. At the end of the time window, check whether an acknowledgment response for the sequence number alignment mark has been received from the target channel: if no acknowledgment response has been received, the handover is determined to have failed, the data transmission of the source channel is immediately restored, and all data frames in the target channel's transmission queue that have not received an acknowledgment response are retransmitted through the source channel; if an acknowledgment response has been received, the source channel is disconnected normally, thereby completing the data frame forwarding and sequence number synchronization process.
[0013] Optionally, the step of acquiring the source channel's transmit buffer within the time window after the target channel connection is established and before the source channel is disconnected includes... At the beginning of the time window, a pause command is sent to the data link layer of the source channel to cause the source channel to pause the transmission of new data frames. Scan the source channel's transmit buffer, traverse the acknowledgment status field of all data frames in the buffer, extract the data frames whose acknowledgment status field indicates that no acknowledgment response has been received, and obtain the original set of data frames to be forwarded; Obtain the original sequence number of each data frame in the original set of data frames to be forwarded, and sort the original set of data frames to be forwarded in ascending order of the original sequence number to generate an ordered list of data frames to be forwarded. The ordered list of data frames to be forwarded is used as the result of obtaining the source channel's transmission buffer, output to the target channel's transmission queue, and the pause command of the source channel is released.
[0014] Secondly, this application provides a computer-readable storage medium having a program stored thereon, which, when executed by a processor, implements the channel signal switching method based on high-speed carrier and wireless provided in the first aspect above.
[0015] Compared with related technologies, this application has at least the following technical effects: This application achieves a multi-dimensional comprehensive evaluation of channel quality by obtaining the first multi-dimensional communication quality parameters of the high-speed carrier channel and the second multi-dimensional communication quality parameters of the wireless channel, and calculating the carrier channel quality index and the wireless channel quality index respectively. This overcomes the limitations of the single-dimensional evaluation in the prior art and improves the comprehensiveness and accuracy of the channel quality evaluation.
[0016] Secondly, this application obtains the channel quality index time series by sampling at equal intervals within a preset time window, and performs linear regression fitting on the time series to obtain the rate of change. Further calculation of the acceleration of change generates the channel quality change trend, achieving accurate perception of the dynamic change trend of channel quality. This mechanism can predict the direction and speed of channel quality deterioration, providing a forward-looking basis for handover decisions and effectively avoiding the problems of handover lag and frequent ping-pong handovers.
[0017] This application generates handover information with different priorities, such as immediate handover, normal handover, and hold, based on channel quality change trends. This enables adaptive handover decision-making based on channel quality changes, improving the accuracy of handover triggering and the timeliness of response. During channel handover, data frames that have not received acknowledgment responses in the source channel buffer are forwarded to the target channel, and sequence number alignment markers are inserted into the data stream for sequence number synchronization. This ensures the continuity of data transmission during handover, effectively avoiding data frame loss, out-of-order transmission, or duplicate transmission, and guaranteeing the continuity and reliability of upper-layer services. A transmission slope control mode is introduced during handover. By injecting data streams into the target channel at an initial transmission rate slope and dynamically adjusting the injection rate according to the instantaneous response status of the target channel, a smooth and gradual channel handover is achieved, avoiding data stream interruption or target channel overload at the moment of handover. After handover, a probe frame is sent to the target channel and a response frame is received. The communication parameters of the source channel are synchronized to the target channel only after the link quality of the target channel is confirmed to meet preset requirements based on the response frame. This achieves proactive confirmation of the target channel link quality, ensuring the reliability of the handover target. By periodically injecting weak data packets into the target channel and collecting response signals, the frequency domain response spectrum is obtained by performing a fast Fourier transform on the time domain response signal, and then the transient transmission impedance and its rate of change are calculated. This provides an accurate quantitative means for evaluating the transient transmission quality of the target channel, further improving the scientificity and reliability of switching decisions.
[0018] In summary, the technical solution of this application comprehensively solves the key technical problems in existing channel switching technologies, such as one-sided quality assessment, inaccurate switching timing, insufficient data continuity, and lack of confirmation of target channel quality, by organically combining multiple technical means such as multi-dimensional channel quality assessment, dynamic perception of changing trends, adaptive switching decision, data frame forwarding and sequence number synchronization, transmission slope control, active detection of target channels, and transient transmission impedance assessment. It significantly improves the switching reliability, data transmission continuity, and overall communication quality of high-speed carrier and wireless dual-channel communication systems.
[0019] Details of one or more embodiments of this application are set forth in the following drawings and description to make other features, objects and advantages of this application more readily apparent. Attached Figure Description
[0020] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings: Figure 1 This is a flowchart illustrating channel signal switching based on high-speed carrier and wireless according to an exemplary embodiment; Figure 2This is a flowchart illustrating step S3 according to an exemplary embodiment; Figure 3 This is a flowchart illustrating steps S306-S309 according to an exemplary embodiment; Figure 4 This is a flowchart illustrating some of the steps in steps S401-S404 according to an exemplary embodiment; Figure 5 This is a flowchart illustrating steps S4031-S4034 according to an exemplary embodiment; Figure 6 This is a flowchart illustrating steps S4041-S4044 according to an exemplary embodiment; Figure 7 This is a flowchart illustrating steps S4045-S4047 according to an exemplary embodiment. Figure 8 This is a flowchart illustrating steps S405-S408 according to an exemplary embodiment. Figure 9 This is a flowchart illustrating steps S4051-S4054 according to an exemplary embodiment. Detailed Implementation
[0021] To make the objectives, technical solutions, and advantages of this application clearer, the application is described and illustrated below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application. All other embodiments obtained by those skilled in the art based on the embodiments provided in this application without inventive effort are within the scope of protection of this application.
[0022] Obviously, the accompanying drawings described below are merely some examples or embodiments of this application. Those skilled in the art can apply this application to other similar scenarios based on these drawings without any inventive effort. Furthermore, it is understood that although the efforts made in this development process may be complex and lengthy, for those skilled in the art related to the content disclosed in this application, any changes to design, manufacturing, or production based on the technical content disclosed in this application are merely conventional technical means and should not be construed as insufficient disclosure of the content of this application.
[0023] In this application, the reference to "embodiment" means that a specific feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment that is mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described in this application may be combined with other embodiments without conflict.
[0024] Unless otherwise defined, the technical or scientific terms used in this application shall have the ordinary meaning understood by one of ordinary skill in the art to which this application pertains. The terms “a,” “an,” “an,” “the,” and similar words used in this application do not indicate quantity limitation and may indicate singular or plural. The terms “comprising,” “including,” “having,” and any variations thereof used in this application are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or device that includes a series of steps or modules (units) is not limited to the listed steps or units, but may also include steps or units not listed, or may include other steps or units inherent to these processes, methods, products, or devices. The terms “connected,” “linked,” “coupled,” and similar words used in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. “Multiple” used in this application refers to two or more. “And / or” describes the relationship between related objects, indicating that three relationships may exist; for example, “A and / or B” can represent: A alone, A and B simultaneously, and B alone. The character " / " generally indicates that the preceding and following objects are in an "or" relationship. The terms "first," "second," and "third" used in this application are merely to distinguish similar objects and do not represent a specific ordering of the objects.
[0025] Example 1 This invention provides a channel signal switching method based on high-speed carrier and wireless communication. Figure 1 This is a flowchart illustrating a channel signal switching method based on high-speed carrier and wireless communication, according to an exemplary embodiment. Figure 1 As shown, this method is applied to data transmission, and the channel currently transmitting data is designated as the source channel, while the channel to which the data is to be switched is designated as the target channel. The method includes: S1. Obtain the first multi-dimensional communication quality parameters of the high-speed carrier channel and the second multi-dimensional communication quality parameters of the wireless channel; In this embodiment, the communication terminal performs real-time quality monitoring of the high-speed carrier channel and the wireless channel through its built-in channel monitoring module. For the high-speed carrier channel, the first multi-dimensional communication quality parameters collected by the terminal include, but are not limited to, signal-to-noise ratio, bit error rate, signal strength, transmission delay, jitter, and packet loss rate. These parameters are periodically obtained from the physical layer and link layer of the high-speed carrier channel by the carrier signal analysis unit on the terminal. For example, the terminal performs a complete quality parameter collection of the carrier channel every preset sampling period to obtain the real-time quality status of the high-speed carrier channel. For the wireless channel, the second multi-dimensional communication quality parameters collected by the terminal include, but are not limited to, received signal strength indication, channel quality indication, reference signal received power, reference signal received quality, signal-to-interference-plus-noise ratio, and downlink and uplink throughput.
[0026] S2. Obtain the carrier channel quality index based on the first multi-dimensional communication quality parameter, and obtain the wireless channel quality index based on the second multi-dimensional communication quality parameter. In this embodiment, the terminal normalizes the collected first multi-dimensional communication quality parameters and performs weighted calculations on each parameter according to a preset weight allocation strategy to obtain a carrier channel quality index that comprehensively reflects the current communication quality of the high-speed carrier channel. The weight allocation strategy is preset according to the service type and communication scenario. For example, for real-time audio and video services, the weights of transmission latency and jitter are increased; for file transfer services, the weights of bit error rate and throughput are given priority. Similarly, the terminal uses the same processing method for the second multi-dimensional communication quality parameters, obtaining the wireless channel quality index through normalization and weighted calculation. In this embodiment, both the carrier channel quality index and the wireless channel quality index are comprehensive scores within a preset range. This score intuitively reflects the current communication quality status of the corresponding channel; the higher the value, the better the channel quality.
[0027] S3. Generate a channel quality change trend based on the carrier channel quality index and the wireless channel quality index, and generate handover information based on the channel quality change trend; In this embodiment, the terminal stores and analyzes the historically collected carrier channel quality index and wireless channel quality index according to a time series. By performing trend analysis on the quality index data of multiple consecutive sampling periods, the terminal determines whether the quality of each channel is improving, remaining stable, or continuously deteriorating. Specifically, if the carrier channel quality index continuously decreases within a preset number of consecutive sampling periods, and the rate of decrease exceeds a preset threshold, the terminal calculates the acceleration of the rate of decrease between adjacent time windows. When the acceleration is negative, it is determined to be accelerated deterioration, and the terminal determines that communication needs to be switched from the high-speed carrier channel to the wireless channel. Based on the analysis results of the channel quality change trend, the terminal generates handover information. The handover information includes: source channel identifier, target channel identifier, handover priority, handover reason code, and suggested handover execution time window. In this embodiment, the handover information also determines the handover priority according to the type and priority of the current service, ensuring that high-priority services receive a faster channel handover response.
[0028] S4. Based on the switching information, perform channel switching between the source channel and the target channel. During the switching process, forward the data frames in the source channel buffer that have not received an acknowledgment response to the target channel, and synchronize the data packet sequence numbers of the source channel and the target channel. In this embodiment, the terminal performs a channel handover operation based on the source and target channels specified in the handover information. The handover process employs a "build-then-disconnect" strategy: the terminal first establishes a communication link on the target channel, confirms its availability, and then disconnects the source channel, thereby reducing data loss during the handover process. During handover, the terminal extracts all data frames from the source channel's transmit buffer that have not yet received an acknowledgment response from the peer, and retransmits them to the peer through the target channel. These data frames retain their original sequence numbers during forwarding to ensure the peer can correctly sort and reassemble the data frames. Simultaneously, the terminal passes the currently used transmit and receive sequence numbers of the source channel to the target channel's protocol stack, enabling the target channel to continue data transmission from the correct sequence number position. The handover process in this embodiment is completed within a preset time window. If the handover times out, the terminal reverts to the source channel to continue communication and reassesses the handover timing.
[0029] S5. After the handover is completed, send a probe frame to the target channel and receive a response frame; after confirming that the link quality of the target channel meets the preset requirements based on the response frame, synchronize the current communication parameters of the source channel to the target channel. In this embodiment, after channel switching is completed, the terminal sends a probe frame to the target channel. The probe frame contains the terminal's identification information, a transmission timestamp, and test data payload. Upon receiving the probe frame, the peer device parses its contents and generates a response frame containing a reception timestamp, signal quality measurement results, and test data confirmation information, which is then sent back to the terminal via the target channel. Upon receiving the response frame, the terminal extracts the signal quality measurement results and compares them with preset link quality requirements. These preset link quality requirements include minimum signal strength, maximum acceptable delay, and minimum signal-to-noise ratio. If all indicators in the response frame meet the preset requirements, the terminal confirms that the target channel's link quality is qualified and then synchronizes the current communication parameters of the source channel to the target channel. The synchronized communication parameters include: modulation and coding scheme, power control parameters, automatic repeat request configuration, encryption key, and quality of service parameters. Through this synchronization operation, the target channel inherits the communication configuration of the source channel, thereby achieving seamless switching while ensuring communication quality. If the indicators in the response frame do not meet the preset requirements, the terminal initiates a retry mechanism and resends the probe frame within a preset number of times. If the requirements are still not met after the retry, an alarm is triggered and an attempt is made to fall back to the source channel.
[0030] In the technical solution of the above embodiments, a highly efficient and reliable channel switching mechanism is constructed by real-time acquisition of multi-dimensional communication quality parameters of high-speed carrier channels and wireless channels, and intelligent decision-making on channel switching timing based on comprehensive quality index and changing trends. During the switching process, unacknowledged data frames in the source channel buffer are forwarded to the target channel, and the data packet sequence number is synchronized, ensuring data integrity and transmission continuity during the switching process. After the switching is completed, the link quality of the target channel is verified by sending probe frames, and the communication parameters of the source channel are synchronized to the target channel, further ensuring the stability of communication quality after the switching. This mechanism enables the terminal to proactively make switching decisions based on the real-time changing trend of channel quality, rather than passively waiting for the link to be interrupted before switching. At the same time, the data frame forwarding and sequence number synchronization processing during the switching process ensures the transparency of the transport layer and above, and upper-layer applications do not need to be aware of the switching behavior of the underlying channels. The probe frame verification mechanism provides additional protection for the communication quality after the switching, avoiding blind switching when the target channel quality is poor, which would lead to further deterioration of communication quality. Therefore, this application effectively solves the problems of data loss, large switching delay, and unstable communication quality after switching during channel switching in traditional communication systems, significantly improving the reliability of the communication system and user experience. In one possible design, refer to Appendix Figure 2 , Figure 2 This is a flowchart illustrating the process after step S3 according to an exemplary embodiment. After step S3, the process further includes: S301. Within a preset time window, the carrier channel quality index and the radio channel quality index are obtained at equally spaced sampling points, which constitute the carrier time series and the radio time series, respectively. In this embodiment, the carrier channel quality index and the wireless channel quality index are scalar values obtained through weighted fusion of multi-dimensional parameters, used to quantify the current communication quality of the corresponding channels. The length of the preset time window is determined according to the application scenario, for example, set to 5 seconds, 10 seconds, or 30 seconds. Within this time window, the system collects the carrier channel quality index and the wireless channel quality index at equally spaced sampling points (e.g., every 0.5 seconds). Assuming the number of sampling points is n, the carrier channel quality indices arranged in chronological order are combined to form a carrier time sequence. The wireless channel quality index is used to compose a wireless time series. .
[0031] S302. Perform linear regression fitting on the carrier time series to obtain the first rate of change of the carrier channel quality index; perform linear regression fitting on the wireless time series to obtain the second rate of change of the wireless channel quality index. In this embodiment, the least squares method is used to perform linear regression fitting on the time series. The sampling point number is used as the independent variable. Using the corresponding quality index as the dependent variable The fitting equation is The slope This is the desired rate of change. The first rate of change is obtained by fitting the carrier time series. The second rate of change was obtained by fitting the wireless time series. A positive rate of change indicates an improvement in channel quality, a negative rate indicates a decrease, and an absolute value indicates the degree of drastic change.
[0032] S303. Based on the type of the source channel, determine the target change rate corresponding to the source channel from the first change rate and the second change rate: if the source channel is a high-speed carrier channel, the target change rate is the first change rate; if the source channel is a wireless channel, the target change rate is the second change rate. In this embodiment, the source channel is the channel currently carrying data transmission. The system determines the source channel type: if the source channel is a high-speed carrier channel, then the first rate of change is selected. As the target rate of change If the source channel is a wireless channel, then the second rate of change is selected. As the target rate of change The target rate of change is used to subsequently determine the trend of channel quality changes.
[0033] S304. Compare the target rate of change with a preset rate of change threshold: when the target rate of change is negative and its absolute value is greater than the preset rate of change threshold, it is determined that the source channel quality is declining; further calculate the difference between the target rate of change and adjacent time windows as the acceleration of change; when the acceleration of change is negative, it is determined that the source channel quality is deteriorating at an accelerated rate; generate a channel quality change trend based on the determination results of the declining trend and the determination results of the accelerated deterioration trend.
[0034] In this embodiment, a preset rate of change threshold is used. It is a positive threshold value (e.g., 0.5). Judgment rule: If... and If the source channel quality shows a downward trend, it is determined that the quality is not declining; otherwise, it is determined that there is no downward trend. Based on the determination that there is a downward trend, the acceleration of change is calculated. Let the target rate of change for the current time window be... The rate of change of the target in the previous adjacent time window Since the time interval between adjacent windows is fixed, the changing acceleration 'a' is defined as the difference value: .like If so, it is determined that the quality of the source channel is deteriorating at an accelerated rate; if If the trend is true, the rate of deterioration is determined not to have accelerated. The channel quality change trend is generated by combining the results of the downward trend and the accelerating deterioration trend assessments. For example, when both are true, the trend is marked as "accelerated deterioration"; when only the downward trend is true, it is marked as "slow decline"; otherwise, it is marked as "stable". This channel quality change trend serves as the basis for subsequent switching decisions.
[0035] Continue to refer to Figure 3 Execute step S306, as follows: S306. Obtain the channel quality difference between the carrier channel quality index and the radio channel quality index at the current moment; In this embodiment, the channel quality difference is used to quantify the quality difference between the carrier channel and the wireless channel. The system collects the carrier channel quality index at the current time. and wireless channel quality index Calculate the difference When ΔQ > 0, the carrier channel quality is better than the wireless channel; when At that time, the quality of the wireless channel is better than that of the carrier channel; when At that time, the two were of comparable quality.
[0036] S307. Based on the channel quality change trend, obtain the determination result of whether the source channel quality is showing a downward trend and the indicator of accelerated deterioration; In this embodiment, the system extracts two Boolean-type information from the channel quality change trend: a downward trend determination result (true indicates that the source channel quality is declining) and an accelerated deterioration flag (valid indicates that the source channel quality is accelerating deterioration). For example, if the trend is marked as "accelerated deterioration", then the downward trend is true and the accelerated deterioration flag is valid; if it is marked as "slow decline", then the downward trend is true but the accelerated deterioration flag is invalid; if it is marked as "stable", then both are false.
[0037] S308. Compare the channel quality difference with a preset adaptive switching threshold, and generate a preliminary decision based on the determination result of the downward trend: if the channel quality difference exceeds the adaptive switching threshold and the determination result of the downward trend is true, then it is determined that switching is required; otherwise, proceed to the delayed re-evaluation process. In this embodiment, a preset adaptive switching threshold is used. A positive number is used to determine whether the channel quality difference meets the switching conditions. The comparison direction needs to be determined based on the source channel type: if the source channel is a high-speed carrier channel, then the comparison... (That is, the wireless channel is significantly better than the carrier channel); if the source channel is a wireless channel, then compare (That is, the carrier channel is significantly better than the wireless channel). For consistency, let's define "channel quality difference exceeds adaptive handover threshold" as: when the source channel is a carrier channel, When the source channel is wireless, If the condition is met and the downward trend determination result is true, then it is determined that a switch is needed, and a preliminary decision of "switching is needed" is generated; otherwise, the delayed reassessment process is entered, that is, after waiting for a preset delay time (such as 1 to 5 seconds), S306 and S307 are re-executed.
[0038] S309. Based on the preliminary decision and the accelerated deterioration flag, generate the switching information, wherein when a switch is required and the accelerated deterioration flag is valid, generate immediate switching information with high priority; when a switch is required but the accelerated deterioration flag is invalid, generate normal switching information; when a switch is not required, generate hold information.
[0039] In this embodiment, the switching information is used to guide the communication module to perform corresponding operations. The generation rules are as follows: when the preliminary decision is "switching is required" and the accelerated deterioration flag is valid, an immediate switching message is generated with high priority, and the communication module performs the switching first; when the preliminary decision is "switching is required" but the accelerated deterioration flag is invalid, a normal switching message is generated, and the communication module completes the switching according to the normal process; when the preliminary decision is "switching is not required", a hold message is generated, and the communication module maintains the current channel transmission.
[0040] In one possible design, refer to Appendix Figure 4 , Figure 4This is a flowchart illustrating the process after step S4 according to an exemplary embodiment. After step S4, the process further includes: S401. Extract the communication address and priority level of the target channel according to the switching information, and establish a connection of the target channel according to the communication address; In this embodiment, the system parses the communication address and priority level of the target channel from the handover information. The communication address is used to identify the access point of the target channel, such as a frequency number, time slot identifier, or IP address. Based on this address, the system initiates a connection establishment request to the target channel through the communication module, including channel scanning, handshake negotiation, and link authentication. The connection is established after the target channel returns confirmation.
[0041] S402. After the target channel connection is established and before the source channel is disconnected, switch the data transmission mode from full-rate transmission to transmission slope control mode, and obtain the initial transmission rate slope corresponding to the priority level. In this embodiment, the full-rate transmission mode is the operating mode that transmits data at the maximum supported rate of the source channel under normal communication conditions. The transmission slope control mode is the operating mode that controls the slope of the data injection rate change during the switching transition period. After the target channel connection is successfully established, but before the source channel is disconnected, the system switches the data transmission mode to the transmission slope control mode and determines the initial transmission rate slope according to the priority level: higher priority corresponds to a larger slope to accelerate data migration; medium priority corresponds to a moderate slope to balance switching speed and target channel carrying stability. The initial transmission rate slope is obtained through a preset priority-slope mapping table.
[0042] S403. In the transmission slope control mode, a data stream is injected into the target channel at the initial transmission rate slope, and the instantaneous response state returned by the target channel is periodically measured to obtain the instantaneous response parameter set. In this embodiment, the system controls the rate at which data streams are injected into the target channel according to the initial transmission rate slope, meaning the data injection rate increases linearly with time. Simultaneously, the system measures the instantaneous response status returned by the target channel at preset intervals (e.g., 10 to 100 milliseconds). The collected instantaneous response parameter set includes: round-trip time, instantaneous throughput, packet loss rate, buffer occupancy rate, and jitter of the acknowledgment interval. For example, at the end of each measurement period, the number of data packets sent and the number of successfully acknowledged data packets within that period are counted, the packet loss rate is calculated, and the average round-trip time is recorded, thus forming the instantaneous response parameter set.
[0043] S404. Obtain the transient transmission impedance and its rate of change of the target channel according to the transient response parameter set; obtain the predicted transmission quality trend according to the transient transmission impedance and its rate of change; when the predicted transmission quality trend exceeds a preset safety threshold, reduce the current injection rate to a safe injection rate and adjust the output rate to track the safe injection rate until the source channel is disconnected, thereby completing the channel switching.
[0044] In this embodiment, the system calculates the transient transmission impedance using a preset comprehensive evaluation function based on the transient response parameter set. This impedance value comprehensively characterizes the current data carrying capacity of the target channel. The rate of change of the transient transmission impedance is obtained by dividing the impedance difference between adjacent measurement periods by the time interval. Based on the current transient transmission impedance and its rate of change, the system uses a linear extrapolation model to predict the transmission quality trend one time window later. When the predicted transmission quality trend is lower than a preset safety threshold, it indicates that if data continues to be injected at the current rate, the transmission quality of the target channel will deteriorate below the safety level. At this time, the system reduces the current injection rate to a safe injection rate, which is determined based on the ratio between the current transient transmission impedance and the preset safe transmission impedance. The system adjusts the output rate to track the safe injection rate, maintaining data transmission at this rate until the source channel is disconnected, completing the channel switching. Through the above mechanism, the system can perceive the target channel carrying status in real time during the switching transition period and dynamically adjust the injection rate to achieve smooth and safe channel switching.
[0045] In one possible design, such as Figure 5 As shown, step S403, the step of periodically measuring the instantaneous response state returned by the target channel, includes: S4031. In the transmission slope control mode, weak data packets with preset frequency characteristics are generated at a preset period, and the length of the weak data packets is less than the length of the regular data frames. In this embodiment, the weak data packet is a data packet specifically designed to probe the transmission characteristics of the target channel. Its length is shorter than that of a regular data frame to reduce interference with normal data transmission. A preset period is used to control the probe frequency, balancing real-time performance and resource consumption. At the end of each preset period, the system generates a weak data packet with preset frequency characteristics (e.g., a specific modulation frequency or spectral envelope) and submits it to the transmission queue of the target channel.
[0046] S4032. Inject the weak data packet into the target channel and simultaneously collect the response signal returned by the target channel in response to the weak data packet to obtain the time domain response signal; In this embodiment, the system injects weak data packets into the target channel and simultaneously activates the signal acquisition module to synchronously acquire the response signal returned from the target channel at a preset sampling rate, thereby obtaining the time-domain response signal. The acquisition duration is a preset observation window, the length of which covers the complete round-trip time from the transmission of the weak data packet to the return of the response. The acquisition module and the weak data packet generation module share the same clock reference to ensure time alignment accuracy.
[0047] S4033. Perform a fast Fourier transform on the time-domain response signal to obtain the frequency-domain response spectrum, and extract the voltage response component and current response component corresponding to the preset frequency characteristics of the weak data packet from the frequency-domain response spectrum. In this embodiment, the system performs a Fast Fourier Transform on the time-domain response signal to obtain the frequency-domain response spectrum. Based on the preset frequency characteristics of the weak data packet, the corresponding frequency point is determined, and the response amplitude and phase information at that frequency point are extracted from the frequency-domain response spectrum, and further decomposed into voltage response components and current response components.
[0048] S4034. Based on the ratio of the voltage response component to the current response component, calculate the transient transmission impedance of the target channel at the current frequency point, and use the transient transmission impedance as an item in the instantaneous response parameter set to complete the measurement of the instantaneous response state. In this embodiment, the system calculates the transient transmission impedance at the current frequency point based on the ratio of the voltage response component to the current response component. This impedance value reflects the degree to which the target channel impedes signal transmission at that frequency point: a larger impedance value indicates greater transmission attenuation, while a smaller impedance value indicates smoother transmission. The system can calculate the transient transmission impedance separately for multiple frequency points to construct a transient transmission impedance spectrum. The calculated transient transmission impedance is used as one item in the transient response parameter set for subsequent steps to predict transmission quality trends and adjust the rate.
[0049] In one possible design, such as Figure 6 As shown, step S404, the step of obtaining the transient transmission impedance of the target channel and its rate of change based on the instantaneous response parameter set, includes: S4041. Decompose the currently injected weak data packet into the fundamental component and multiple harmonic components to obtain the frequency and amplitude information of each component. In this embodiment, the system performs spectral decomposition on the time-domain signal of the currently injected weak data packet, representing it as a linear combination of the fundamental component and multiple harmonic components. The fundamental component corresponds to the main modulation frequency of the weak data packet, and the harmonic components correspond to integer multiples of the fundamental frequency.
[0050] S4042. Obtain the transient transmission impedance of the target channel at the frequency component based on the frequency and amplitude information, and form a frequency domain impedance sequence. In this embodiment, for each frequency component, the system extracts the response amplitude and phase corresponding to that frequency component from the response signal returned by the target channel. Based on the ratio of the excitation amplitude to the response amplitude and phase, the transient transmission impedance of the target channel at each frequency component is obtained. The above calculation is performed sequentially for all frequency components to form a frequency domain impedance sequence.
[0051] S4043. Perform an inverse Fourier transform on the frequency domain impedance sequence to construct the time domain transient response function of the target channel, and use the time domain transient response function as the estimated value of the transient transmission impedance at the current moment. In this embodiment, the system performs an inverse Fourier transform on the frequency domain impedance sequence, converting the frequency domain representation into a time domain representation, thereby constructing the time-domain transient response function of the target channel. This time-domain transient response function comprehensively reflects the transmission characteristics of the target channel across multiple frequency dimensions and is used as the estimated value of the transient transmission impedance at the current moment.
[0052] S4044. Obtain the estimated value of the transient transmission impedance at the previous moment, calculate the difference between the estimated value at the current moment and the estimated value at the previous moment, divide by the time interval, and obtain the rate of change of the transient transmission impedance.
[0053] In this embodiment, the system retrieves the estimated transient transmission impedance value from the storage module at the previous measurement moment, calculates the difference between the current estimated value and the previous estimated value, divides it by the time interval between the two measurements, and obtains the rate of change of the transient transmission impedance. This rate of change characterizes the speed and direction of the target channel transmission impedance change over time, and is used to predict subsequent transmission quality trends.
[0054] In one possible design, such as Figure 7 As shown, the step of obtaining the predicted transmission quality trend based on the transient transmission impedance and its rate of change includes: S4045. Obtain the instantaneous quality assessment value at the current moment based on the transient transmission impedance; In this embodiment, within the time window after the target channel connection is established but before the source channel is disconnected, the system acquires the source channel's transmission buffer, traverses the data frames in the buffer, and checks the acknowledgment status of each frame. Data frames with an acknowledgment status of "no acknowledgment response received" are filtered out, generating a list of data frames to be forwarded. The frames in the list are arranged in their original transmission order, and information such as frame sequence number and data payload are recorded, serving as the data source for subsequent forwarding.
[0055] S4046. Merge the instantaneous quality assessment value at the current moment with the instantaneous quality assessment values at historical moments to form a time series of assessment values; In this embodiment, the system copies the data frames in the list of data frames to be forwarded sequentially to the transmission queue of the target channel, maintaining the frame structure and data payload unchanged. Since the source channel and the target channel may use independent sequence number spaces, the system inserts a sequence number alignment marker into the data stream before sending the first data frame to be forwarded. This marker is a special control frame that contains the offset between the current sequence number of the source channel and the starting sequence number of the target channel.
[0056] S4047. Identify all instantaneous mass peaks in the time series of the evaluation values, and calculate the product of the amplitude and duration for each instantaneous mass peak to obtain the stress contribution value of a single peak. In this embodiment, after receiving the sequence number alignment marker, the receiving end parses out the offset and records it. For each data packet subsequently received from the target channel, the receiving end calculates its equivalent sequence number in the global sequence space based on the target channel sequence number of the data packet and the recorded offset. The receiving end maintains a reordering buffer, filling data packets into the buffer in the order of their equivalent sequence numbers. When data packets with consecutive sequence numbers are all ready, they are delivered to the upper-layer protocol stack in sequence.
[0057] S4048. The stress contribution values of all instantaneous quality peaks within a preset time window are summed to obtain a cumulative stress evaluation value; the cumulative stress evaluation value is compared with a preset cumulative stress threshold: if the cumulative stress evaluation value exceeds the preset cumulative stress threshold, it is determined that the transmission quality trend exceeds a preset safety threshold, thereby completing the prediction of the transmission quality trend.
[0058] In this embodiment, the length of the time window is determined based on the system's preset handover timeout. At the end of the time window, the system checks whether it has received an acknowledgment response from the receiver regarding the sequence number alignment marker. If not received, the handover is deemed a failure, and data transmission on the source channel is immediately resumed. All data frames in the target channel's transmission queue that have not received an acknowledgment response are rolled back to the source channel and retransmitted, while simultaneously releasing the target channel resources. If an acknowledgment has been received, the source channel is normally disconnected, and data transmission is completely migrated to the target channel, completing data frame forwarding and sequence number synchronization.
[0059] like Figure 8 As shown, step S405, which involves forwarding data frames in the source channel buffer that have not received an acknowledgment response to the target channel and synchronizing the data packet sequence numbers of the source channel and the target channel, includes: S405. Within the time window after the target channel connection is established and before the source channel is disconnected, obtain the source channel's transmission buffer, identify all data frames that have been sent but have not received an acknowledgment response, and obtain a list of data frames to be forwarded. In this embodiment, the system calculates the instantaneous quality assessment value at the current moment based on the estimated transient transmission impedance and its rate of change using a preset quality assessment function. This assessment value is then normalized and mapped to a preset range; a higher value indicates better current transmission quality of the target channel.
[0060] S406. Copy the data frames in the list of data frames to be forwarded to the transmission queue of the target channel, and before the target channel sends the first data frame to be forwarded, insert a sequence number alignment mark in the data stream. The alignment mark contains the offset between the current sequence number of the source channel and the starting sequence number of the target channel. In this embodiment, the system obtains an instantaneous quality assessment value in each measurement cycle. The system maintains a sliding window, merging the current assessment value with the assessment values from historical moments within the window to form a time series of assessment values. This time series covers quality assessment data within a preset time range and is used for subsequent peak identification and cumulative stress calculation.
[0061] S407. The receiving end parses the sequence number alignment mark, reorders the sequence numbers of the subsequently received data packets according to the offset, and delivers the reordered data packets to the upper-layer protocol stack in order. In this embodiment, the system uses a peak detection algorithm to identify local maxima in the evaluation value time series as instantaneous quality peaks, with each peak corresponding to an amplitude. The system further determines the duration of each peak (e.g., the time interval from a local minimum to the left of the peak to a local minimum to the right of the peak). The stress contribution value of the peak is obtained by multiplying its amplitude by its duration.
[0062] S408. When the time window ends, check whether an acknowledgment response for the sequence number alignment mark has been received from the target channel: if not received, the handover is determined to have failed, the data transmission of the source channel is immediately restored, and all data frames in the target channel's sending queue that have not received an acknowledgment response are retransmitted through the source channel; if received, the source channel is disconnected normally, thereby completing the data frame forwarding and sequence number synchronization process. In this embodiment, the system sums the stress contribution values of all instantaneous quality peaks within a preset time window to obtain a cumulative stress assessment value. This cumulative stress assessment value comprehensively reflects the cumulative impact degree experienced by the target channel within the time window. The system compares the cumulative stress assessment value with a preset cumulative stress threshold: if the cumulative stress assessment value does not exceed the threshold, it is determined that the transmission quality trend is within a safe range; if the cumulative stress assessment value exceeds the threshold, it is determined that the transmission quality trend exceeds the preset safety threshold, triggering a speed reduction protection mechanism.
[0063] In one possible design, such as Figure 9As shown, step S405, the step of acquiring the source channel's transmission buffer within the time window after the target channel connection is established and before the source channel is disconnected, includes: S4051. At the beginning of the time window, a pause command is sent to the data link layer of the source channel to cause the source channel to pause the transmission of new data frames. In this embodiment, at the beginning of the time window, the system sends a pause command to the data link layer of the source channel. This command causes the data link layer of the source channel to enter a paused transmission state, stopping the reception of new data frames from the upper-layer protocol stack and pausing the retrieval of data frames from the transmission buffer for transmission, thereby providing a stable data environment for subsequent buffer scanning.
[0064] S4052. Scan the source channel's transmission buffer, traverse the acknowledgment status field of all data frames in the buffer, extract the data frames whose acknowledgment status field indicates that no acknowledgment response has been received, and obtain the original set of data frames to be forwarded. In this embodiment, the system scans the transmission buffer of the source channel and reads the acknowledgment status field of each data frame frame by frame. Data frames marked as "no acknowledgment response received" are extracted, and their storage address, frame number, and data payload information are recorded to obtain the original set of data frames to be forwarded.
[0065] S4053. Obtain the original sequence number of each data frame in the original set of data frames to be forwarded, and sort the original set of data frames to be forwarded in ascending order of the original sequence number to generate an ordered list of data frames to be forwarded. In this embodiment, the system extracts the original sequence number of each data frame from the original set of data frames to be forwarded, and sorts the set in ascending order of sequence number to generate an ordered list of data frames to be forwarded. The frames in this list are arranged in ascending order of sequence number to ensure that they can be sent in the correct logical order after being migrated to the target channel.
[0066] S4054. The ordered list of data frames to be forwarded is used as the acquisition result of the source channel transmission buffer, and output to the transmission queue of the target channel, and the pause command of the source channel is released.
[0067] In this embodiment, the system sequentially copies data frames from the ordered list of data frames to be forwarded to the transmission queue of the target channel. After copying is complete, a release-pause command is sent to the data link layer of the source channel to restore the normal transmission state of the source channel. At this time, the source channel only serves as a backup channel to maintain the connection, and the main data transmission is taken over by the target channel.
[0068] Example 2 Embodiment 2 of the present invention provides a computer-readable storage medium having a program stored thereon. When the program is executed by a processor, it implements the construction method for channel signal switching based on high-speed carrier and wireless provided in Embodiment 1.
[0069] The readable storage medium may be more specifically adopted, including but not limited to: portable disk, hard disk, random access memory, read-only memory, erasable programmable read-only memory, optical storage device, magnetic storage device, or any suitable combination thereof.
[0070] In a possible implementation, the present invention can also be implemented as a program product comprising program code, which, when the program product is run on a terminal device, causes the terminal device to perform the steps of implementing the channel signal switching method based on high-speed carrier and wireless in Embodiment 1.
[0071] The program code for executing the present invention can be written in any combination of one or more programming languages. The program code can be executed entirely on the user device, partially on the user device, as a standalone software package, partially on the user device and partially on a remote device, or entirely on a remote device.
[0072] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0073] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.
Claims
1. A channel signal switching method based on high-speed carrier and wireless communication, applied to data transmission, wherein the channel currently transmitting data is designated as the source channel, and the channel to be switched to is designated as the target channel, characterized in that, The method includes: Obtain the first multi-dimensional communication quality parameters of the high-speed carrier channel and the second multi-dimensional communication quality parameters of the wireless channel; The carrier channel quality index is obtained based on the first multi-dimensional communication quality parameter, and the wireless channel quality index is obtained based on the second multi-dimensional communication quality parameter. Based on the carrier channel quality index and the radio channel quality index, a channel quality change trend is generated, and handover information is generated based on the channel quality change trend; Based on the switching information, a channel switch is performed between the source channel and the target channel. During the switch, data frames that have not received an acknowledgment response in the source channel buffer are forwarded to the target channel, and the data packet sequence numbers of the source channel and the target channel are synchronized. After the switch is completed, a probe frame is sent to the target channel and a response frame is received; after confirming that the link quality of the target channel meets the preset requirements based on the response frame, the current communication parameters of the source channel are synchronized to the target channel.
2. The channel signal switching method based on high-speed carrier and wireless communication according to claim 1, characterized in that, The step of generating a channel quality change trend based on the carrier channel quality index and the radio channel quality index includes: Within a preset time window, the carrier channel quality index and the radio channel quality index are obtained at equally spaced sampling points, which constitute the carrier time series and the radio time series, respectively. A first rate of change of the carrier channel quality index is obtained by performing linear regression fitting on the carrier time series; a second rate of change of the wireless channel quality index is obtained by performing linear regression fitting on the wireless time series. Based on the type of the source channel, a target rate of change corresponding to the source channel is determined from the first rate of change and the second rate of change: if the source channel is a high-speed carrier channel, the target rate of change is the first rate of change; if the source channel is a wireless channel, the target rate of change is the second rate of change. The target rate of change is compared with a preset rate of change threshold: when the target rate of change is negative and its absolute value is greater than the preset rate of change threshold, the source channel quality is determined to be declining; the difference between the target rate of change and adjacent time windows is further calculated as the acceleration of change, and when the acceleration of change is negative, the source channel quality is determined to be accelerating deterioration; based on the determination results of the declining trend and the acceleration of deterioration, a channel quality change trend is generated.
3. The channel signal switching method based on high-speed carrier and wireless communication according to claim 1, characterized in that, The step of generating switching information based on the channel quality change trend includes: Obtain the channel quality difference between the carrier channel quality index and the radio channel quality index at the current moment; Based on the channel quality change trend, determine whether the source channel quality is declining and identify signs of accelerated deterioration; The channel quality difference is compared with a preset adaptive switching threshold, and a preliminary decision is generated based on the determination result of the downward trend: if the channel quality difference exceeds the adaptive switching threshold and the determination result of the downward trend is true, then it is determined that switching is required; otherwise, the delayed re-evaluation process is initiated. Based on the preliminary decision and the accelerated deterioration flag, the switching information is generated, wherein when a switch is required and the accelerated deterioration flag is valid, immediate switching information with high priority is generated; when a switch is required but the accelerated deterioration flag is invalid, normal switching information is generated; and when no switch is required, hold information is generated.
4. The channel signal switching method based on high-speed carrier and wireless communication according to claim 1, characterized in that, The step of performing channel switching between the source channel and the target channel based on the switching information includes: The communication address and priority level of the target channel are extracted based on the switching information, and a connection to the target channel is established based on the communication address. After the target channel connection is established and before the source channel is disconnected, the data transmission mode is switched from full-rate transmission to transmission slope control mode, and the initial transmission rate slope corresponding to the priority level is obtained. In the transmission slope control mode, a data stream is injected into the target channel at the initial transmission rate slope, and the instantaneous response state returned by the target channel is periodically measured to obtain the instantaneous response parameter set; The transient transmission impedance and its rate of change of the target channel are obtained based on the transient response parameter set; the predicted transmission quality trend is obtained based on the transient transmission impedance and its rate of change; when the predicted transmission quality trend exceeds a preset safety threshold, the current injection rate is reduced to a safe injection rate, and the output rate is adjusted to track the safe injection rate until the source channel is disconnected, thereby completing the channel switching.
5. The channel signal switching method based on high-speed carrier and wireless communication according to claim 4, characterized in that, The step of periodically measuring the instantaneous response state returned by the target channel includes: In the transmission slope control mode, weak data packets with preset frequency characteristics are generated at a preset period, and the length of the weak data packets is less than the length of a regular data frame. The weak data packet is injected into the target channel, and the response signal returned by the target channel in response to the weak data packet is collected simultaneously to obtain the time domain response signal; The time-domain response signal is subjected to a fast Fourier transform to obtain the frequency-domain response spectrum, and the voltage response component and current response component corresponding to the preset frequency characteristics of the weak data packet are extracted from the frequency-domain response spectrum. Based on the ratio of the voltage response component to the current response component, the transient transmission impedance of the target channel at the current frequency point is calculated, and this transient transmission impedance is used as an item in the instantaneous response parameter set to complete the measurement of the instantaneous response state.
6. The channel signal switching method based on high-speed carrier and wireless communication according to claim 4, characterized in that, The step of obtaining the transient transmission impedance and its rate of change of the target channel based on the instantaneous response parameter set includes: The currently injected weak data packet is decomposed into the fundamental component and multiple harmonic components to obtain the frequency and amplitude information of each component. Based on the frequency and amplitude information, the transient transmission impedance of the target channel at that frequency component is obtained, and a frequency domain impedance sequence is formed. Perform an inverse Fourier transform on the frequency domain impedance sequence to construct the time domain transient response function of the target channel, and use the time domain transient response function as the estimated value of the transient transmission impedance at the current moment; Obtain the estimated value of the transient transmission impedance at the previous moment, calculate the difference between the estimated value at the current moment and the estimated value at the previous moment, divide by the time interval, and obtain the rate of change of the transient transmission impedance.
7. The channel signal switching method based on high-speed carrier and wireless communication according to claim 4, characterized in that, The step of obtaining the predicted transmission quality trend based on the transient transmission impedance and its rate of change includes: The instantaneous quality assessment value at the current moment is obtained based on the transient transmission impedance; The instantaneous quality assessment value at the current moment is combined with the instantaneous quality assessment values at historical moments to form a time series of assessment values; Identify all instantaneous mass peaks in the time series of the evaluation values, and calculate the product of the amplitude and duration for each instantaneous mass peak to obtain the stress contribution value of a single peak; The stress contribution values of all instantaneous quality peaks within a preset time window are summed to obtain a cumulative stress evaluation value. The cumulative stress evaluation value is compared with a preset cumulative stress threshold. If the cumulative stress evaluation value exceeds the preset cumulative stress threshold, it is determined that the transmission quality trend exceeds a preset safety threshold, thereby completing the prediction of the transmission quality trend.
8. The channel signal switching method based on high-speed carrier and wireless communication according to claim 1, characterized in that, The steps of forwarding data frames that have not received an acknowledgment response in the source channel buffer to the target channel and synchronizing the data packet sequence numbers of the source channel and the target channel include: Within the time window after the target channel connection is established and before the source channel is disconnected, obtain the source channel's transmission buffer, identify all data frames that have been sent but have not received an acknowledgment response, and obtain a list of data frames to be forwarded; The data frames in the list of data frames to be forwarded are copied to the transmission queue of the target channel, and before the target channel sends the first data frame to be forwarded, a sequence number alignment mark is inserted into the data stream. The alignment mark contains the offset between the current sequence number of the source channel and the starting sequence number of the target channel. The receiving end parses the sequence number alignment mark, reorders the sequence numbers of subsequently received data packets according to the offset, and delivers the reordered data packets to the upper-layer protocol stack in order. At the end of the time window, check whether an acknowledgment response for the sequence number alignment mark has been received from the target channel: if no acknowledgment response has been received, the handover is determined to have failed, the data transmission of the source channel is immediately restored, and all data frames in the target channel's sending queue that have not received an acknowledgment response are retransmitted through the source channel; if an acknowledgment response has been received, the source channel is disconnected normally, thereby completing the data frame forwarding and sequence number synchronization process.
9. The channel signal switching method based on high-speed carrier and wireless communication according to claim 8, characterized in that, The step of acquiring the source channel's transmit buffer within the time window after the target channel connection is established and before the source channel is disconnected includes: At the beginning of the time window, a pause command is sent to the data link layer of the source channel to cause the source channel to pause the transmission of new data frames; Scan the source channel's transmit buffer, traverse the acknowledgment status field of all data frames in the buffer, extract the data frames whose acknowledgment status field indicates that no acknowledgment response has been received, and obtain the original set of data frames to be forwarded; Obtain the original sequence number of each data frame in the original set of data frames to be forwarded, and sort the original set of data frames to be forwarded in ascending order of the original sequence number to generate an ordered list of data frames to be forwarded. The ordered list of data frames to be forwarded is used as the result of obtaining the source channel's transmission buffer, output to the target channel's transmission queue, and the pause command of the source channel is released.
10. A computer-readable storage medium, characterized in that, It stores a program that, when executed by a processor, implements the channel signal switching method based on high-speed carrier and wireless as described in any one of claims 1-9.