Dual-mode communication channel switching method and device based on multimode perception and weight decision

Through the dual-mode communication channel switching method of multi-mode perception and weight decision-making, the channel parameter calculation comprehensive score is obtained and the communication mode is dynamically adjusted, which solves the problem of poor communication reliability and flexibility in the smart grid, and realizes efficient channel selection and stable transmission.

CN120417094AActive Publication Date: 2025-08-01ZHEJIANG CHINT INSTR & METER

Patent Information

Application Number
CN202510907479.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-02
Publication Date
2025-08-01
Estimated Expiration
2045-07-02

AI Technical Summary

Technical Problem

In the prior art, mode switching is performed only according to the threshold in smart grid communication, resulting in poor transmission reliability and flexibility, making it difficult to ensure communication quality in complex scenarios.

Method used

Through the dual-mode communication channel switching method of multi-mode perception and weight decision, the multi-mode parameters of the channel are obtained, the channel quality index and comprehensive score are calculated, and the communication mode is dynamically adjusted to avoid frequent switching and select better channels for transmission.

Benefits of technology

It improves the reliability and success rate of communication transmission, reduces signaling overhead, improves system stability, and is suitable for high-frequency communication scenarios that interfere with complex and dynamic changes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120417094A_ABST
    Figure CN120417094A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of intelligent power grid communication, in particular to a dual-mode communication channel switching method and device based on multimode perception and weight decision. The method comprises the following steps: acquiring multimode parameters of two channels; respectively calculating two channel quality indexes, and calculating a comprehensive score based on the two channel quality indexes and the dynamic weight; and determining whether to trigger mode switching according to the relationship between the comprehensive score and the switching threshold value and the change trend of the comprehensive score. According to the method, the channel quality index and the comprehensive score are calculated through the multimode parameters of the channel, whether mode switching, dynamic threshold and hysteresis setting are triggered or not is determined according to the relation between the comprehensive score and the switching threshold and the change trend of the comprehensive score, and the problems of frequent switching, critical fluctuation and the like of the channel can be avoided. And on the basis of judging the comprehensive score and the switching threshold, the change trend of the comprehensive score is considered, so that a better channel can be selected for transmission, the success rate of communication transmission is guaranteed, and the transmission reliability is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of smart grid communication, and particularly to a dual-mode communication channel switching method and device based on multi-mode perception and weight decision-making. Background Art

[0002] At present, the two most important ways of local communication in the field of power consumption information collection of smart grids are broadband power line carrier communication and wireless communication. Broadband power line carrier communication uses power lines as the transmission medium and transmits information through the carrier mode. Power line carrier is easily affected by factors such as noise interference and signal attenuation in the power line network, and there are certain fluctuations in its communication quality and reliability; while wireless communication transmission is affected by factors such as transmission power limitation, environment, climate, and region, and cannot guarantee constant transmission performance.

[0003] In the application process of smart grids, the environment is complex, the service bearing requirements are diverse, and the requirement for transmission reliability is high. In order to avoid the problem of poor flexibility in the application of a single broadband power line carrier communication or wireless communication method, the use of multiple transmission methods for communication is proposed. However, in the prior art, when selecting the current transmission mode based on multiple transmission methods, only simple switching is performed according to the threshold, and it is difficult to ensure transmission reliability and flexibility in complex scenarios. Summary of the Invention

[0004] In view of this, the present invention provides a dual-mode communication channel switching method and device based on multi-mode perception and weight decision-making to solve the problem of poor reliability of simple mode switching according to the threshold in the prior art.

[0005] In a first aspect, the present invention provides a dual-mode communication channel switching method based on multi-mode perception and weight decision-making. The method includes: obtaining multi-mode parameters of a first channel and a second channel, where the multi-mode parameters include physical layer parameters and protocol layer parameters; calculating a first channel quality index and a second channel quality index respectively according to the multi-mode parameters, and calculating a comprehensive score based on the first channel quality index, the second channel quality index, and a dynamic weight; determining whether to trigger mode switching according to the relationship between the comprehensive score and the switching threshold and the change trend of the comprehensive score, where the switching threshold is the sum of a dynamic threshold and a hysteresis amount, and the dynamic threshold and the hysteresis amount are determined based on the service type of the data to be transmitted.

[0006] The dual-mode communication channel switching method based on multi-mode perception and weight decision provided by the embodiments of the present invention calculates the channel quality index and the comprehensive score through the multi-mode parameters of the channel, determines whether to trigger mode switching according to the relationship between the comprehensive score and the switching threshold and the change trend of the comprehensive score, and the setting of the dynamic threshold and the hysteresis amount can avoid problems such as frequent switching and critical fluctuations of the channel. Moreover, on the basis of judging the comprehensive score and the switching threshold, the change trend of the comprehensive score is further considered, so that a better channel can be selected for transmission, ensuring the success rate of communication transmission and improving the transmission reliability.

[0007] In an optional implementation manner, determining whether to trigger mode switching according to the relationship between the comprehensive score and the switching threshold and the change trend of the comprehensive score includes: when the comprehensive score is greater than or equal to the sum of the dynamic threshold and the hysteresis amount, maintaining the current channel for transmitting the data to be transmitted; when the comprehensive score is less than the dynamic threshold, triggering mode switching; when the comprehensive score is greater than or equal to the dynamic threshold and less than the sum of the dynamic threshold and the hysteresis amount, determining whether to trigger mode switching according to the change trend of the comprehensive score.

[0008] In the present invention, by setting the dynamic threshold according to the service type, the optimization of the communication mode is realized; at the same time, by setting the hysteresis amount, the critical fluctuation of the comprehensive score triggering the switching process can be avoided, that is, the frequent switching of the channel is avoided, so as to improve the system stability and reduce the signaling overhead.

[0009] In an optional implementation manner, determining whether to trigger mode switching according to the change trend of the comprehensive score includes: calculating the mean value of the historical comprehensive scores according to the sliding window; determining whether the change trend of the comprehensive score is an upward trend or a downward trend according to the relationship between the current comprehensive score and the mean value of the historical comprehensive scores; when it is in an upward trend, maintaining the current channel for transmitting the data to be transmitted; when it is in a downward trend, triggering mode switching.

[0010] In the present invention, determining whether to trigger mode switching according to the change trend of the comprehensive score, wherein when it is in an upward trend, maintaining the current channel; when it is in a downward trend, switching the channel, thereby avoiding the further deterioration of the channel quality.

[0011] In an optional implementation manner, after determining to trigger mode switching, the method further includes: if it is determined that the channel qualities of the two channels are medium according to the first channel quality index and the second channel quality index, switching to the fragment mode for transmission, where the fragment mode is to fragment the data to be transmitted and then transmit them respectively using the first channel and the second channel; if it is determined that the channel qualities of the two channels are not both medium and there is no unavailable channel according to the first channel quality index and the second channel quality index, switching the transmission mode to another channel for transmission.

[0012] In an alternative embodiment, the protocol layer parameters include service priorities; before determining whether to trigger mode switching according to the relationship between the comprehensive score and the handover threshold and the change trend of the comprehensive score, the method further includes: if it is determined that there is an unavailable channel and a better channel according to the first channel quality index and the second channel quality index, switch to the better channel for transmission; if the current data to be transmitted is the highest priority of the service priority, fragment the data to be transmitted and then transmit it using the first channel and the second channel respectively.

[0013] In the present invention, when the service priority is the highest priority, the fragment transmission method is directly adopted, thereby ensuring the timeliness of the highest priority such as emergency data transmission and reducing the probability of data communication failure.

[0014] In an alternative embodiment, the first channel quality index and the second channel quality index are respectively calculated according to the multi-mode parameters, and the comprehensive score is calculated based on the first channel quality index, the second channel quality index and the dynamic weight, including: calculating the first channel quality index according to the number of available subcarriers and the signal-to-noise ratio; calculating the second channel quality index according to the signal strength, the bit error rate and the average interference power; determining the dynamic weight according to the service type of the data to be transmitted, and determining the data priority according to the service priority of the protocol layer parameters; calculating the comprehensive score according to the first channel quality index, the second channel quality index, the dynamic weight and the data priority.

[0015] In the present invention, the first channel quality index is calculated using the number of available subcarriers and the signal-to-noise ratio, which can accurately measure the reliability and stability of the channel; the second channel quality index is calculated using the signal strength, the bit error rate and the average interference power, etc., thereby comprehensively evaluating the channel quality and being applicable to high-frequency communication scenarios with complex and dynamically changing interference.

[0016] In an alternative embodiment, if it is determined that the quality of both channels is medium according to the first channel quality index and the second channel quality index, switch to the fragment mode for transmission, including: if it is determined that the quality of both channels is medium according to the first channel quality index and the second channel quality index, fragment the data to be transmitted according to the ratio of the first signal quality index and the second channel quality index; transmit the fragmented data to be transmitted using the first channel and the second channel respectively; recombine the data transmitted using the first channel and the second channel at the receiving end based on hash check.

[0017] In the present invention, the data to be transmitted is fragmented and transmitted according to the ratio of the channel quality index, thereby ensuring synchronous transmission during the transmission of both channels.

[0018] In an alternative embodiment, the first channel quality index is calculated using the following formula:

[0019] In the formula, represents the first channel quality index, represents the total number of subcarriers of the HPLC channel, SNR represents the signal-to-noise ratio, and K represents the adjustment constant; The second channel quality index is calculated using the following formula:

[0020] In the formula, represents the second channel quality index, represents the signal strength, represents the signal threshold, BER represents the bit error rate, represents the average interference power, represents the interference tolerance threshold; The comprehensive score is calculated using the following formula:

[0021] In the formula, S represents the comprehensive score, represents the service priority, , , and respectively represent the corresponding weights.

[0022] In the present invention, calculating the two channel quality indices using the above formulas not only realizes the quantization of the channel quality index, but also realizes the normalization of the channel quality index.

[0023] In a second aspect, the present invention provides a dual-mode communication channel switching device based on multi-mode perception and weight decision. The device includes: a parameter acquisition module for acquiring the multi-mode parameters of the first channel and the second channel, where the multi-mode parameters include physical layer parameters and protocol layer parameters; an index and score calculation module for calculating the first channel quality index and the second channel quality index respectively according to the multi-mode parameters, and calculating the comprehensive score based on the first channel quality index, the second channel quality index, and the dynamic weight; a switching judgment module for determining whether to trigger mode switching according to the relationship between the comprehensive score and the switching threshold and the change trend of the comprehensive score, where the switching threshold is the sum of the dynamic threshold and the hysteresis amount, and the dynamic threshold and the hysteresis amount are determined based on the service type of the data to be transmitted.

[0024] In a third aspect, the present invention provides a computer device, including: a memory and a processor, which are communicatively connected to each other. The memory stores computer instructions, and the processor executes the computer instructions to execute the dual-mode communication channel switching method based on multi-mode perception and weight decision in the first aspect or any corresponding embodiment thereof.

[0025] Fourthly, the present invention provides a computer-readable storage medium, on which computer instructions are stored, and the computer instructions are used to cause a computer to execute the dual-mode communication channel switching method based on multi-mode perception and weight decision in the first aspect or any corresponding embodiment thereof as described above.

[0026] Fifthly, the present invention provides a computer program product, including computer instructions, and the computer instructions are used to cause a computer to execute the dual-mode communication channel switching method based on multi-mode perception and weight decision in the first aspect or any corresponding embodiment thereof as described above. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings required for use in the description of the specific embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0028] Figure 1 is a schematic flowchart of a dual-mode communication channel switching method based on multi-mode perception and weight decision according to an embodiment of the present invention; Figure 2 is a schematic diagram of a dual-mode shard transmission mode according to an embodiment of the present invention; Figure 3 is a schematic flowchart of another dual-mode communication channel switching method based on multi-mode perception and weight decision according to an embodiment of the present invention; Figure 4 is a structural block diagram of a dual-mode communication channel switching device based on multi-mode perception and weight decision according to an embodiment of the present invention; Figure 5 is a schematic hardware structure diagram of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0029] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0030] According to an embodiment of the present invention, there is provided an embodiment of a dual-mode communication channel switching method based on multi-mode perception and weight decision. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. And although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than here.

[0031] In this embodiment, a dual-mode communication channel switching method based on multi-mode perception and weight decision is provided, which can be used in electronic devices such as computers, mobile phones, and tablet computers. Figure 1 It is a flowchart of the dual-mode communication channel switching method based on multi-mode perception and weight decision according to an embodiment of the present invention, as Figure 1 shown, the process includes the following steps: Step S101, obtain multi-mode parameters of the first channel and the second channel. The multi-mode parameters include physical layer parameters and protocol layer parameters. Among them, the first channel and the second channel respectively refer to a channel based on broadband power line carrier communication and a channel based on wireless communication. For example, the first channel and the second channel are an HPLC (High-speed Power Line Communications, high-speed power line carrier) channel and an HRF (High - Speed Radio Frequency, high-speed radio frequency) channel respectively. In practical applications, the first channel and the second channel can also be other types of channels. [[ID=X]] [[ID=X]]

[0032] The multi-mode parameters obtained in this embodiment include physical layer parameters and protocol layer parameters. Among them, the physical layer parameters can be parameters for evaluating the channel quality of the two channels collected from the physical layer of the communication chip. For example, for the HPLC channel, parameters such as the power spectral density (PSD, power spectral density) in the 0.7MHz - 12MHz frequency band and the available subcarrier ratio can be monitored; for the HRF channel, the multipath delay spread (≤5μs is a high-quality channel) and interference energy in the 470MHz - 510MHz frequency band can be monitored. Specifically, the power spectral density can provide analysis data for the signal-to-noise ratio characteristics of the channel, the interference energy can provide analysis data for the interference power characteristics of the channel, and the multipath delay spread is positively correlated with the bit error rate and can be used to correct the bit error rate. Further, the channel quality can be evaluated through parameters such as the signal-to-noise ratio, available subcarrier ratio, bit error rate, and interference power.

[0033] The protocol layer parameters include the MAC layer retransmission times and the application layer service priorities. Among them, in this embodiment, the retransmission times of the HPLC channel are less than or equal to three times, and the retransmission times of the HRF channel are less than or equal to five times. Specifically, when the data is in error during the transmission process due to interference, noise, etc., the MAC layer will automatically trigger the retransmission mechanism and perform retransmission within the set retransmission times. Different service type data priorities are set in the application layer. For example, in the service priorities of this embodiment, emergency instructions > real-time data > historical data.

[0034] Step S102, calculate the first channel quality index and the second channel quality index respectively according to the multi-mode parameters, and calculate the comprehensive score based on the first channel quality index, the second channel quality index and the dynamic weight. Specifically, when calculating the channel quality index, this embodiment uses the physical layer parameters in the above multi-mode parameters as the indicators for evaluating the channel quality index calculation. When calculating the comprehensive score, this embodiment first allocates dynamic weights for different service type data based on the service priorities in the protocol layer parameters. Then, based on this dynamic weight and combined with the calculated channel quality index, weighted calculation is performed to obtain the comprehensive score. In addition, when calculating the comprehensive score, this embodiment further determines the service priority of the data to be transmitted according to the service priority in the protocol layer parameters, and performs weighted calculation in combination with the service priority of the data to be transmitted.

[0035] Step S103, determine whether to trigger mode switching according to the relationship between the comprehensive score and the switching threshold and the change trend of the comprehensive score. The switching threshold is the sum of the dynamic threshold and the hysteresis amount, and the dynamic threshold and the hysteresis amount are determined based on the service type of the data to be transmitted.

[0036] Specifically, to optimize the selection of the communication mode, i.e., the channel, in this embodiment, different dynamic thresholds are set for different service types. Specifically, the setting of the dynamic threshold can correspond to the service requirements of the service type. For example, for service types with high real-time requirements, a larger dynamic threshold is set, and for service types that can tolerate high latency, a smaller dynamic threshold is set. In addition, to avoid frequent switching of the channel, a hysteresis is set on the basis of the dynamic threshold to avoid frequent triggering of switching when comparing the comprehensive score and the dynamic threshold. Moreover, in addition to comparing the relationship between the comprehensive score and the switching threshold, when determining whether to trigger a mode switch, this embodiment further considers the change trend of the comprehensive score, which can be understood as the change of the current comprehensive score compared with the historical score. Thus, by considering multiple aspects to determine whether to trigger a mode switch, the selected transmission mode can better meet the requirements of transmitting data. The dual-mode communication channel switching method based on multi-mode perception and weight decision provided by the embodiment of the present invention calculates the channel quality index and the comprehensive score through the multi-mode parameters of the channel, and determines whether to trigger a mode switch according to the relationship between the comprehensive score and the switching threshold and the change trend of the comprehensive score. Thus, a better channel can be selected for transmission, ensuring the success rate of communication transmission and improving the reliability of transmission.

[0037] In this embodiment, a dual-mode communication channel switching method based on multi-mode perception and weight decision is provided, and the process includes the following steps: Step S201, obtain the multi-mode parameters of the first channel and the second channel, where the multi-mode parameters include physical layer parameters and protocol layer parameters. For details, please refer to Figure 1 Step S101 of the illustrated embodiment, which will not be elaborated here.

[0038] Step S202, calculate the first channel quality index and the second channel quality index respectively according to the multi-mode parameters, and calculate the comprehensive score based on the first channel quality index, the second channel quality index, and the dynamic weight.

[0039] Specifically, the above step S202 includes: Step S2021, calculate the first channel quality index according to the number of available subcarriers and the signal-to-noise ratio; specifically, the signal-to-noise ratio is expressed as the ratio of the signal power to the noise power. Among the above-obtained physical layer parameters, the power spectral density of the HPLC channel is monitored, so the signal power spectral density and the noise power spectral density can be separated according to the power spectral density, and then the signal power and the noise power are calculated respectively according to the signal power spectral density and the noise power spectral density, and finally the signal-to-noise ratio is calculated according to the signal power and the noise power. In addition, the number of available subcarriers characterizes the bandwidth of the HPLC channel for transmitting data, and the signal-to-noise ratio affects the transmission error rate. Therefore, using the number of available subcarriers and the signal-to-noise ratio to calculate the first channel quality index can accurately measure the reliability and stability of the channel.

[0040] Among them, when calculating the first channel quality index in this embodiment, not only the number of available subcarriers and the signal-to-noise ratio are considered, but also the first channel quality index is constrained to the range of 0 to 1 according to the following calculation formula, that is, the normalization of the channel quality index is realized.

[0041]

[0042] In the formula, represents the first channel quality index, represents the total number of subcarriers of the HPLC channel, and this total number of subcarriers will also change according to the selected frequency band. For example, when frequency band 1 is selected, the total number of subcarriers is 131. SNR represents the signal-to-noise ratio, where when SNR approaches 0, it indicates extremely poor signal, and when SNR approaches 1, it indicates extremely good signal. K represents an adjustment constant (usually 1 - 10), which is used to control the saturation characteristic of SNR.

[0043] Step S2022, calculate the second channel quality index according to the signal strength, bit error rate, and average interference power; among them, the signal strength can be directly monitored, and the average interference power can be obtained from the interference energy in the physical layer parameters. For the bit error rate of the channel, the multipath delay spread in the physical layer parameters can be used for correction, and this correction process can be expressed by the following formula:

[0044] In the formula, represents the corrected bit error rate, represents the theoretical bit error rate before correction, represents the multipath delay spread, represents a preset reference delay threshold.

[0045] In this embodiment, by using the signal strength, bit error rate, and average interference power, etc. to calculate the second channel quality index, the channel quality can be comprehensively evaluated, which is applicable to high-frequency communication scenarios with complex and dynamically changing interference. In addition, the second channel quality index is also constrained to the range of 0 to 1 according to the following calculation formula, that is, the normalization of the channel quality index is realized.

[0046]

[0047] In the formula, represents the second channel quality index, represents the signal strength, represents the signal threshold, which is -90dBm in this embodiment, BER represents the bit error rate, represents the average interference power, represents the interference tolerance threshold, which is -95dBm in this embodiment.

[0048] Step S2023: Determine the dynamic weight according to the service type of the data to be transmitted, and determine the data priority according to the service priority of the protocol layer parameters. Specifically, the corresponding weight can be determined in advance for different service types. Thus, after determining the service type of the data to be transmitted, its weight can be determined based on the corresponding relationship. In addition, this embodiment also considers the service priority when calculating the comprehensive score. Based on this, when transmitting different data, the data priority can be determined according to the service priority in the protocol layer parameters. For example, the service priority includes that the service priority of emergency data is equal to 1, and the service priorities of real-time data and historical data are equal to 0. The service priority of real-time data and historical data is equal to 0.3. If the data to be transmitted is emergency data, its data priority is 1.

[0049] Step S2024: Calculate the comprehensive score according to the first channel quality index, the second channel quality index, the dynamic weight, and the data priority. Specifically, the comprehensive score is calculated using the following formula:

[0050] In the formula, represents the service priority, , , and respectively represent the corresponding weights

[0051] Among them, based on the above step S2023, the weights corresponding to different service types are shown in Table 1 below: Table 1

[0052] For example, if the data to be transmitted is emergency data, such as fault recording data, then , , , .

[0053] Step S203: If it is determined according to the first channel quality index and the second channel quality index that there are unavailable channels and better channels, switch to the better channel for transmission. Specifically, after calculating the channel quality index and the comprehensive score, first judge whether there are unavailable channels and better channels according to the two channel quality indices. For example, the judgment can be made by setting thresholds. For the judgment of unavailable channels, the threshold is set to 0.1, that is, when the channel quality index is less than or equal to 0.1, the channel is judged to be unavailable. For the judgment of better channels, the threshold is set to 0.5, that is, when the channel quality index is greater than 0.5, the channel is judged to be a better channel.

[0054] Specifically, when the first channel quality index is less than or equal to 0.1 (i.e., the first channel is unavailable), and the second channel quality index is greater than 0.5 (i.e., the second channel is a better channel), a forced handover to the second channel is performed; when the second channel quality index is less than or equal to 0.1 (i.e., the second channel is unavailable), and the first channel quality index is greater than 0.5 (i.e., the first channel is a better channel), a forced handover to the first channel is performed.

[0055] It should be noted that the channel handover determination in this embodiment is performed after the device accesses the network and selects a channel for transmission. For example, after a device accesses the network, it first attempts to access the network using the HPLC channel. After the HPLC channel access fails, it attempts to access the network using the HRF channel. After the device completes network access and determines the relay device, the above processes of obtaining channel parameters, calculating channel indices, and performing channel handover are executed.

[0056] In addition, after calculating the two channel quality indices, if it is determined that both channel quality indices are less than or equal to 0.1, it indicates that both channels are unavailable. At this time, a communication exception alarm indication needs to be output to inform relevant personnel to perform channel checks to avoid affecting data transmission.

[0057] Step S204, when the currently to-be-transmitted data is of the highest priority in terms of service priority, the to-be-transmitted data is fragmented and then transmitted using the first channel and the second channel respectively. Specifically, the service priority is included in the above protocol layer parameters, such as emergency data > real-time data > historical data. When the currently to-be-transmitted data is of the highest service priority level, i.e., emergency data, at this time, it is not necessary to consider whether the two channel quality indices are in the medium channel quality situation, nor to consider the size of the comprehensive score. The to-be-transmitted data can be directly fragmented and transmitted. The specific method of fragmented transmission can be implemented with reference to the process of the above step S204 and will not be elaborated here. In addition, it should be noted that if there is an unavailable channel, even if the currently to-be-transmitted data is of the highest service priority level, it is necessary to use the available channel for transmission.

[0058] Step S205, determine whether to trigger a mode handover according to the relationship between the comprehensive score and the handover threshold, where the handover threshold is the sum of the dynamic threshold and the hysteresis amount, and the dynamic threshold and the hysteresis amount are determined based on the service type of the to-be-transmitted data.

[0059] Specifically, the above step S205 includes: Step S2051, when the comprehensive score is greater than or equal to the sum of the dynamic threshold and the hysteresis amount, maintain the current channel for transmitting the to-be-transmitted data.

[0060] Step S2052, when the comprehensive score is less than the dynamic threshold, trigger a mode handover.

[0061] Step S2053: When the comprehensive score is greater than or equal to the dynamic threshold and less than the sum of the dynamic threshold and the hysteresis, it is determined whether to trigger mode switching according to the change trend of the comprehensive score.

[0062] In this embodiment, the dynamic threshold settings are shown in Table 2 below: Table 2

[0063] When determining whether to trigger a mode switch based on the dynamic threshold and hysteresis, the comprehensive score is first compared with the sum of the dynamic threshold and hysteresis. When the comprehensive score is greater than or equal to the sum of the dynamic threshold and hysteresis, the switching process is not triggered; however, when the comprehensive score is less than the dynamic threshold, channel switching is initiated. When the comprehensive score is between the dynamic threshold and the sum of the dynamic threshold and hysteresis, the decision is made based on the trend of the comprehensive score. Thus, by setting this hysteresis, critical fluctuations in the comprehensive score can be avoided from triggering the switching process. For example, if hysteresis is not set and the current threshold is 0.8, then small fluctuations in the comprehensive score near the threshold (such as 0.79 and 0.81) will result in frequent channel switching. Therefore, by setting hysteresis, this embodiment can improve system stability and reduce signaling overhead.

[0064] Similar to dynamic thresholds, dynamic hysteresis can also be set based on service type. For example, for real-time services, the hysteresis can be set between 0.05 and 0.1, ensuring strict anti-jitter protection; for non-real-time services, the hysteresis can be set between 0.02 and 0.05, achieving a moderate tolerance for latency.

[0065] In an optional embodiment, whether to trigger mode switching is determined based on the changing trend of the comprehensive score, including: calculating the average of historical comprehensive scores based on a sliding window; determining whether the changing trend of the comprehensive score is an upward trend or a downward trend based on the relationship between the current comprehensive score and the average of the historical comprehensive scores; when in an upward trend, maintaining the current channel to transmit the data to be transmitted; when in a downward trend, triggering mode switching.

[0066] Specifically, the following formula can be used to calculate the average of the historical comprehensive score:

[0067] Where, Represents the mean of the historical comprehensive scores, and N represents the size of the sliding window. For example, N=5, which implements the calculation of the mean of the past five comprehensive scores; Represents the previous i ratings.

[0068] In the calculation , the current comprehensive score Compared with it, if , it is regarded as an upward trend and the handover is delayed; if , it is regarded as a downward trend and the handover is performed immediately. Specifically, when it is determined that the comprehensive score is in an upward trend and it is expected that the future score may recover, the current channel is maintained for data transmission, that is, the channel handover is not performed temporarily; when it is determined that the comprehensive score is in a downward trend, the handover is performed immediately to avoid further deterioration of the current channel quality.

[0069] Specifically, the scenarios shown in Table 3 below represent the process of determining whether to trigger a mode handover according to the relationship between the comprehensive score S and the dynamic threshold S th and the hysteresis amount △S hysteresis .

[0070] Table 3

[0071] Step S206, if it is determined that the channel qualities of both channels are medium according to the first channel quality index and the second channel quality index, switch to the fragmentation mode for transmission. The fragmentation mode is to fragment the data to be transmitted and then transmit them using the first channel and the second channel respectively. Specifically, after it is determined to trigger a mode handover according to the comprehensive score, it is possible to further determine which mode to switch to for transmission according to the channel quality index. Among them, if both channel quality indexes are medium, switch to the fragmentation mode for transmission.

[0072] Specifically, the above step S206 includes: Step S2061, if it is determined that the channel qualities of both channels are medium according to the first channel quality index and the second channel quality index, fragment the data to be transmitted according to the ratio of the first signal quality index and the second channel quality index; among them, the threshold for determining medium channel quality can be determined according to the actual situation. In this embodiment, the threshold is set to [0.4, 0.7]. That is, when both channel quality indexes are within the range of 0.4 to 0.7, the fragmentation transmission is started. Specifically, the specific splitting method of the data for fragmentation transmission can be determined by the following formula:

[0073] In the formula, represents the ratio of the data lengths allocated to the HPLC signal and the HRF channel.

[0074] After the data splitting method is determined, the data to be transmitted is split according to this splitting method.

[0075] Step S2062, transmit the fragmented data to be transmitted using the first channel and the second channel respectively. Specifically, after the data to be transmitted is split, the data is transmitted according to the data length corresponding to each channel. In addition, as Figure 2As shown in the figure, in order to facilitate subsequent verification of the integrity of the received data, after the data to be transmitted is fragmented, two data, Data1 and Data2, are obtained. First, the hash values Hash of each data, Data1 and Data2, are calculated, and then the hash values and the data are transmitted together. At the same time, during the transmission process, the retransmission count limit in the above protocol layer parameters is followed.

[0076] Step S2063: Recombine the data transmitted using the first channel and the second channel at the receiving end based on hash verification. Specifically, after the data transmitted through the two channels is received, first calculate the hash value of the received data using the same hash algorithm, and then compare it with the hash value included in the transmitted data. When the two are consistent, it indicates that the data is complete, and at this time, the received data can be recombined. When the two are inconsistent, it indicates that the fragment is damaged, and the transmission of the fragmented data needs to be restarted.

[0077] Step S207: If it is determined according to the first channel quality index and the second channel quality index that the qualities of both channels are not medium and there is no unavailable channel, switch the transmission mode to another channel for transmission. Specifically, when it is determined to trigger the mode switch according to the comprehensive score, if it is determined according to the channel quality index that the qualities of both channels are not medium and there is no unavailable channel, then switch to another channel for transmission. Among them, if the current transmission mode is to use the first channel for transmission, then after the trigger is determined, switch to the second channel for transmission; if the current transmission mode is to use the second channel for transmission, then after the trigger is determined, switch to the first channel for transmission.

[0078] As a specific application embodiment of the embodiment of the present invention, as Figure 3 shown, the dual-mode communication channel switching method based on multi-mode perception and weight decision is implemented by the following process: 1. Construct a multi-modal channel perception model. This model is specifically used to obtain the multi-mode parameters of the two channels.

[0079] 1.1. Collect and obtain parameters from the physical layer of the communication chip.

[0080] For the HPLC channel, the power spectral density (PSD) in the frequency band of 0.7 MHz - 12 MHz is monitored in real time, and the proportion of available subcarriers (≥80% is a healthy state); for the HRF channel, the multipath delay spread (≤5 μs is a high-quality channel) and interference energy (≤ -95 dBm) in the frequency band of 470 - 510 MHz are detected.

[0081] 1.2. Obtain protocol layer parameters. Synchronously obtain the MAC layer retransmission count (HPLC ≤ 3 times, HRF ≤ 5 times), and the application layer service priority (emergency instruction > real-time data > historical data).

[0082] 2. Dynamic weight decision algorithm.

[0083] ‌2.1, Input.

[0084] Real-time collect HPLC channel parameters, HRF channel parameters, and the service type label of the data to be transmitted.

[0085] Preset parameters: Weight dynamic rule table (service type → weight allocation), dynamic threshold S th , hysteresis amount △S hysteresis and the sharding transmission trigger condition, etc.

[0086] 2.2, Output.

[0087] Communication mode selection: HPLC primary / HRF primary / double-mode sharding transmission.

[0088] Interference suppression strategy: Complete channel evaluation through the dynamic weight decision algorithm, select the appropriate communication mode, and realize the data transmission time slot allocation under different communication modes.

[0089] 2.3, Core switching logic steps.

[0090] Step 1, Channel quality evaluation and normalization. Calculate and constrain the index range in real time through channel parameters using the following formula:

[0091]

[0092] Among them, if CQIHPLC ≤ 0.1 (excessive power line noise) or CQIHRF ≤ 0.1 (extremely weak radio frequency signal), mark it as "channel unavailable".

[0093] Step 2, Service type matching and weight allocation. Specifically, the above Table 1 can be used for weight allocation.

[0094] Step 3, Calculate the comprehensive score using the following formula.

[0095]

[0096] Step 4, Determine whether to perform channel switching using the following switching decision rules.

[0097] Rule 1: Forced switching (when the channel is unavailable).

[0098] If CQIHPLC ≤ 0.1 and CQIHRF > 0.5 → Force switch to HRF; If CQIHRF ≤ 0.1 and CQIHPLC > 0.5 → Force switch to HPLC.

[0099] Rule 2: Scoring threshold trigger.

[0100] If S ≥ S th + △S hysteresis → Maintain the current mode; If S < S th → Trigger mode switching; If S th ≤ S < S th + △S hysteresis , → Combine with the historical score trend for judgment. Among them, when the historical score trend is an upward trend, do not switch temporarily, and it is expected that the future score may recover; when it is a downward trend, switch in advance to avoid further deterioration of quality.

[0101] Rule 3: Dual-mode collaborative fragment transmission. If CQIHPLC ∈ [0.4, 0.7] and CQIHRF ∈ [0.4, 0.7] → Start fragment transmission.

[0102] Split the data packet into two pieces, and the length allocation is expressed by the following formula:

[0103] The receiving end recombines the data through hash verification. When the channel quality of both HPLC and HRF is medium, dual-mode collaborative fragment transmission can effectively reduce the probability of data communication failure, improve the transmission rate, and thus improve the communication performance.

[0104] Rule 4: Service priority preemption.

[0105] If P business = 1 (such as a fault event) → Ignore the score and force the dual-mode parallel transmission to be enabled. Step 5, send data.

[0106] Select the corresponding sending channel according to the communication mode: When HPLC is the primary mode, send data through the HPLC channel; When HRF is the primary mode, send data through the HRF channel; In the dual-mode fragment transmission mode, after fragmenting the data according to Rule 3, send the data through the HPLC channel and the HRF channel respectively, and the receiving end recombines the data from the two channels after receiving all the data.

[0107] In an alternative implementation, the following transmission scenarios are used to illustrate the channel switching method: Scenario 1: Normal electricity consumption data collection.

[0108] Input: CQIHPLC = 0.8, CQIHRF = 0.6; Service type = electricity consumption statistics (w1 = 0.3, w2 = 0.6, w3 = 0.1), P business=0.3。

[0109] Calculate: S = 0.3×0.8 + 0.6×0.6 + 0.1×0.3 = 0.24 + 0.36 + 0.03 = 0.63.

[0110] Decision: S = 0.63 ≥ S th =0.6 → Maintain the HPLC primary mode.

[0111] Scenario 2: Fault reporting in a noisy environment.

[0112] Input: CQIHPLC = 0.2 (noise interference), CQIHRF = 0.7; Service type = fault recording (w1 = 0.4, w2 = 0.4, w3 = 0.2), P business =1.

[0113] Calculate: S = 0.4×0.2 + 0.4×0.7 + 0.2×1 = 0.08 + 0.28 + 0.2 = 0.56.

[0114] Decision: Rule 4 is triggered (P business =1) → Ignore S = 0.56 and force the start of dual-mode parallel transmission to ensure zero data loss.

[0115] Scenario 3: Dual-mode fragmentation transmission.

[0116] Input: Assume that the current number of available subcarriers collected is 200, SNR = 5dB, and the adjustment constant is set to K = 1.

[0117] Calculated: CQIHPL = 0.593; Input: Assume the current wireless signal strength collected , the bit error rate is , when, and the reference signal strength is set to , the reference interference threshold is set to .

[0118] Calculated: CQIHRF = 0.683.

[0119] CQIHPL = 0.5 ∈ [0.4, 0.7], CQIHRF = 0.642 ∈ [0.4, 0.7], so the fragmentation transmission mode is enabled.

[0120]

[0121] In the case where the channel qualities of both HPLC and HRF are medium, the data packet to be transmitted is split into two data according to the ratio of 0.77:1, and the data is fragmented and transmitted using HPLC and HRF to improve the communication success rate.

[0122] The channel switching method of the present invention has the characteristics of fuzzy sharding trigger, dynamic threshold design, and strong adaptability. At the same time, through dynamic scoring and weight allocation, it maintains the optimal communication mode during power grid noise fluctuations, ensuring the success rate of communication transmission. In addition, this method also has the characteristic of low latency. For example, for real-time services with a weight bias towards HPLC, the latency is reduced by 35% compared to the pure HRF scheme. In this embodiment, a dual-mode communication channel switching device based on multi-mode perception and weight decision is also provided. This device is used to implement the above embodiments and preferred implementation manners, and those that have been described will not be repeated. As used hereinafter, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware is also possible and contemplated.

[0123] This embodiment provides a dual-mode communication channel switching device based on multi-mode perception and weight decision, such as Figure 4 shown, including: A parameter acquisition module 41, configured to acquire multi-mode parameters of a first channel and a second channel, where the multi-mode parameters include physical layer parameters and protocol layer parameters; An exponential and scoring calculation module 42, configured to calculate a first channel quality index and a second channel quality index respectively according to the multi-mode parameters, and calculate a comprehensive score based on the first channel quality index, the second channel quality index, and a dynamic weight; A switching judgment module 43, configured to determine whether to trigger mode switching according to the relationship between the comprehensive score and a switching threshold and the change trend of the comprehensive score, where the switching threshold is the sum of a dynamic threshold and a hysteresis amount, and the dynamic threshold and the hysteresis amount are determined based on the service type of the data to be transmitted.

[0124] The further function descriptions of the above respective modules are the same as those in the corresponding embodiments above, and will not be repeated here.

[0125] In addition, this device can be embedded in the firmware of the HPLC and HRF dual-mode communication module, and is implemented through a lightweight state machine, and is applicable to the power consumption information acquisition scenario with high density and high interference.

[0126] The embodiment of the present invention also provides a computer device having the above Figure 4 shown dual-mode communication channel switching device based on multi-mode perception and weight decision.

[0127] Please refer to Figure 5 , Figure 5 which is a schematic structural diagram of a computer device provided by an optional embodiment of the present invention, such as Figure 5As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting the components, including a high-speed interface and a low-speed interface. Each component communicates with each other using different buses and can be installed on a common motherboard or installed in other ways as needed. The processor can process instructions executed within the computer device, including instructions stored in the memory or on the memory to display graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In some alternative embodiments, if needed, multiple processors and / or multiple buses can be used together with multiple memories. Similarly, multiple computer devices can be connected, and each device provides part of the necessary operations (such as an array of servers, a set of blade servers, or a multi-processor system). Figure 5 Taking one processor 10 as an example in

[0128] The processor 10 can be a central processing unit, a network processor, or a combination thereof. Among them, the processor 10 can further include a hardware chip. The above hardware chip can be an application-specific integrated circuit, a programmable logic device, or a combination thereof. The above programmable logic device can be a complex programmable logic device, a field-programmable gate array, a generic array logic, or any combination thereof.

[0129] Among them, the memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiments.

[0130] The memory 20 can include a program storage area and a data storage area. Among them, the program storage area can store an operating system and application programs required for at least one function; the data storage area can store data created according to the use of the computer device presented by a kind of landing page of a small program, etc. In addition, the memory 20 can include a high-speed random access memory, and can also include a non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state storage devices. In some alternative embodiments, the memory 20 can optionally include a memory remotely set relative to the processor 10, and these remote memories can be connected to the computer device through a network. Examples of the above network include but are not limited to the Internet, an enterprise intranet, a local area network, a mobile communication network, and combinations thereof.

[0131] The memory 20 can include a volatile memory, such as a random access memory; the memory can also include a non-volatile memory, such as a flash memory, a hard disk, or a solid-state drive; the memory 20 can also include a combination of the above types of memories.

[0132] The computer device further includes a communication interface 30 for the computer device to communicate with other devices or communication networks.

[0133] Embodiments of the present invention also provide a computer-readable storage medium. The method according to the embodiments of the present invention can be implemented in hardware, firmware, or be implemented as computer code that can be recorded on a storage medium, or be implemented as computer code that is originally stored in a remote storage medium or a non-transitory machine-readable storage medium and downloaded through a network and will be stored in a local storage medium, so that the method described herein can be stored as such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only memory, a random access memory, a flash memory, a hard disk, or a solid-state drive, etc.; further, the storage medium can also include a combination of the above-mentioned types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by the computer, the processor, or the hardware, the method shown in the above embodiments is implemented.

[0134] A part of the present invention can be applied as a computer program product, such as computer program instructions. When executed by a computer, through the operation of the computer, the method and / or technical solution according to the present invention can be called or provided. Those skilled in the art should be able to understand that the forms in which computer program instructions exist in a computer-readable medium include, but are not limited to, source files, executable files, installation package files, etc. Correspondingly, the ways in which computer program instructions are executed by a computer include, but are not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Herein, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to the computer.

[0135] Although the embodiments of the present invention are described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations all fall within the scope defined by the appended claims.

Claims

1. A dual-mode communication channel switching method based on multi-mode perception and weight decision, characterized in that The method includes: Obtaining multimode parameters of a first channel and a second channel, where the multimode parameters include physical layer parameters and protocol layer parameters; Calculating a first channel quality index and a second channel quality index respectively according to the multimode parameters, and calculating a comprehensive score based on the first channel quality index, the second channel quality index, and a dynamic weight; Determining whether to trigger a mode switch according to the relationship between the comprehensive score and a handover threshold, and the change trend of the comprehensive score, where the handover threshold is the sum of a dynamic threshold and a hysteresis amount, and the dynamic threshold and the hysteresis amount are determined based on the service type of the data to be transmitted.

2. The method according to claim 1, wherein Determining whether to trigger a mode switch according to the relationship between the comprehensive score and the handover threshold, and the change trend of the comprehensive score includes: When the comprehensive score is greater than or equal to the sum of the dynamic threshold and the hysteresis amount, maintaining the current channel for transmitting the data to be transmitted; When the comprehensive score is less than the dynamic threshold, triggering a mode switch; When the comprehensive score is greater than or equal to the dynamic threshold and less than the sum of the dynamic threshold and the hysteresis amount, determining whether to trigger a mode switch according to the change trend of the comprehensive score.

3. The method according to claim 2, characterized in that Determining whether to trigger a mode switch according to the change trend of the comprehensive score includes: Calculating the mean value of historical comprehensive scores according to a sliding window; Determining whether the change trend of the comprehensive score is an upward trend or a downward trend according to the relationship between the current comprehensive score and the mean value of the historical comprehensive scores; When in an upward trend, maintaining the current channel for transmitting the data to be transmitted; When in a downward trend, triggering a mode switch.

4. The method according to claim 1, wherein After determining to trigger a mode switch, the method further includes: If it is determined that the quality of both channels is medium according to the first channel quality index and the second channel quality index, switching to a fragmentation mode for transmission, where the fragmentation mode is to fragment the data to be transmitted and then transmit them using the first channel and the second channel respectively; If it is determined according to the first channel quality index and the second channel quality index that the quality of neither of the two channels is medium and there is no unavailable channel, switching the transmission mode to another channel for transmission.

5. The method according to claim 1, characterized in that, The protocol layer parameters include service priorities; before determining whether to trigger a mode switch according to the relationship between the comprehensive score and the handover threshold, and the change trend of the comprehensive score, the method further includes: If it is determined according to the first channel quality index and the second channel quality index that there is an unavailable channel and a better channel, switching to the better channel for transmission; If the current data to be transmitted is of the highest priority of the service priorities, fragmenting the data to be transmitted and then transmitting them using the first channel and the second channel respectively.

6. The method according to claim 1, characterized in that, Calculating a first channel quality index and a second channel quality index respectively according to the multimode parameters, and calculating a comprehensive score based on the first channel quality index, the second channel quality index, and a dynamic weight includes: Calculating the first channel quality index according to the number of available subcarriers and the signal-to-noise ratio; Calculating the second channel quality index according to the signal strength, the bit error rate, and the average interference power; Determining a dynamic weight according to the service type of the data to be transmitted, and determining a data priority according to the service priority of the protocol layer parameters; Calculating a comprehensive score according to the first channel quality index, the second channel quality index, the dynamic weight, and the data priority.

7. The method according to claim 4, wherein If it is determined that the channel qualities of both channels are medium according to the first channel quality index and the second channel quality index, switching to the fragment mode for transmission includes: If it is determined that the channel qualities of both channels are medium according to the first channel quality index and the second channel quality index, fragmenting the data to be transmitted according to the ratio of the first signal quality index and the second channel quality index; Transmitting the fragmented data to be transmitted through the first channel and the second channel respectively; Recombining the data transmitted through the first channel and the second channel at the receiving end based on hash verification.

8. The method according to claim 1, wherein The first channel quality index is calculated using the following formula: Wherein, represents the first channel quality index, represents the total number of subcarriers of the HPLC channel, SNR represents the signal-to-noise ratio, and K represents the adjustment constant; The second channel quality index is calculated using the following formula: In the formula, represents the second channel quality index, represents the signal strength, represents the signal threshold, and BER represents the bit error rate, represents the average interference power, represents the interference tolerance threshold; The comprehensive score is calculated using the following formula: Wherein, S represents the comprehensive score, represents the service priority, , , and respectively represent the corresponding weights.

9. A dual-mode communication channel switching device based on multi-mode perception and weight decision, characterized in that, The device includes: A parameter acquisition module, configured to acquire multi-mode parameters of the first channel and the second channel, where the multi-mode parameters include physical layer parameters and protocol layer parameters; An index and score calculation module, configured to calculate a first channel quality index and a second channel quality index respectively according to the multi-mode parameters, and calculate a comprehensive score based on the first channel quality index, the second channel quality index, and a dynamic weight; A switching determination module, configured to determine whether to trigger a mode switch according to the relationship between the comprehensive score and the switching threshold and the change trend of the comprehensive score, where the switching threshold is the sum of a dynamic threshold and a hysteresis amount, and the dynamic threshold and the hysteresis amount are determined based on the service type of the data to be transmitted.

10. A computer-readable storage medium, characterized in that, A computer instruction is stored on the computer-readable storage medium, and the computer instruction is used to cause a computer to execute the dual-mode communication channel switching method based on multi-mode perception and weight decision according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Adaptive selection method of data transmission channel based on dual-mode communication

    CN117834529A

  • Data transmission method and system based on power line carrier

    CN118740200A

  • Unmanned aerial vehicle vertical switching method and system in power grid multi-system communication

    CN118972913A

  • Multimode Handover Method and Multimode Terminal

    US20140011499A1

  • Switching parameter control method and apparatus

    WO2024078075A1

Cited By

  • Intelligent electric meter collecting system based on high-speed carrier and multimode communication

    CN120751449A

  • Intelligent selection and switching method and system for power line broadband carrier communication channels

    CN120811430A

  • Dual-mode communication link transmission method based on dynamic channel perception

    CN121078471A

  • A dual-mode communication link transmission method based on dynamic channel sensing

    CN121078471B

  • HPLC and HRF switching method based on dual-mode channel difference perception

    CN121126473A