A range finding impedance adaptive dual mode communication module system and method of use thereof

By using a dual-mode communication module system with adaptive ranging impedance, the system can acquire the electrical line length and dynamic input impedance in real time, optimize the transmission power, and solve the energy consumption and interference problems of power line dual-mode communication modules in multi-module dense networking scenarios, thus achieving high-efficiency communication reliability and low energy consumption.

CN123185642APending Publication Date: 2026-11-27CSG SMART SCI&TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611686860.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-29
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In scenarios with dense multi-module networking, existing power line dual-mode communication modules convert redundant transmission energy of nearby nodes into board-level heat loss, increase co-frequency carrier coupling interference, and have lagging power regulation, making it difficult to meet the requirements of communication reliability and energy consumption optimization.

Method used

The dual-mode communication module system with adaptive ranging impedance is adopted. Through the closed-loop cooperation of ranging firmware, impedance sampling circuit, power consumption adaptive state machine and AFE programmable gain amplifier, the electrical line length, line attenuation rate and dynamic input impedance of the parent node are obtained in real time. The link load index is constructed, the minimum necessary transmit power is solved and converted into the gain code of AFE programmable gain amplifier.

Benefits of technology

While ensuring communication reliability, the system reduces energy consumption, ensures communication quality, adapts to link stability and reliability in complex environments, and reduces heat loss and interference.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123185642A_ABST
    Figure CN123185642A_ABST
Patent Text Reader

Abstract

The application discloses a ranging impedance adaptive dual-mode communication module system and a use method thereof, and the method comprises the following steps: the dual-mode communication module system synchronously obtains the parent node electrical line length, the line attenuation rate and the dynamic input impedance when a ranging frame is transmitted; and a power consumption adaptive state machine of the dual-mode communication module system is used for constructing a line length and impedance joint sensing link load index according to the parent node electrical line length, the line attenuation rate and the dynamic input impedance and the confidence thereof, solving the minimum necessary transmission power under the communication reliability constraint, and converting the result into the gain code of an AFE program-controlled gain amplifier. The application can intelligently identify the link state under the premise of strictly meeting the error rate constraint, automatically switches the transmission mode of the short-distance and low-impedance node from full power to micro power, and simultaneously retains the high power accessibility of the long-distance or high-impedance node, so that the communication quality is guaranteed and the system energy consumption is significantly reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of power communication control and regulation technology, specifically to a dual-mode communication module system based on ranging impedance matching and power adaptation, and its usage method. Background Technology

[0002] With the continuous advancement of the construction of new power systems, a large number of new loads such as distributed photovoltaics and electric vehicle charging piles are being connected to the low-voltage distribution side, which places higher demands on the reliability and real-time performance of communication for data acquisition, load regulation, and fault detection in distribution areas. Traditional single communication methods are difficult to balance coverage and anti-interference capabilities. Against this backdrop, a dual-mode power line communication module that integrates high-speed power line carrier and radio frequency wireless has emerged. Relying on the two communication media to back each other up and complement each other's advantages, it meets the reliable transmission needs of multiple services in the "last mile" of power distribution.

[0003] Existing power line dual-mode communication modules typically transmit at a fixed power or a small number of power levels. Even if the distance between the module and the parent node is short and the line impedance is low after the module enters the network, it may continue to use the AFE output voltage close to full amplitude. This method is convenient to ensure reachability under extreme link conditions. However, in the scenario of dense networking of multiple modules, the redundant transmission energy of the nearby nodes will be converted into board-level heat loss and increase the coupling interference of the same frequency carrier.

[0004] In addition, some solutions adjust the power only based on the received signal strength or the number of retransmissions, without simultaneously utilizing the parent node electrical line length already obtained by the module ranging firmware, and without treating the attenuation rate and dynamic input impedance when sending ranging frames as the same closed-loop control quantity, resulting in lag in power adjustment and difficulty in interpretation.

[0005] Therefore, existing technologies cannot calculate the minimum necessary transmit power to meet the bit error rate threshold from the internal hardware state of the module and the ranging results without changing the main process of the dual-mode communication protocol, and directly drive the AFE programmable gain amplifier.

[0006] To address this issue, this application proposes a ranging impedance adaptive dual-mode communication module system and its usage method. Through the closed-loop coordination of ranging firmware, impedance sampling circuit, power consumption adaptive state machine and AFE programmable gain amplifier, the carrier or dual-mode link outputs the minimum necessary transmit power while meeting communication reliability requirements, thereby solving the aforementioned technical problems. Summary of the Invention

[0007] The main objective of this invention is to provide a dual-mode communication module system with adaptive ranging impedance and its usage method. When sending ranging frames, the system synchronously obtains the electrical line length, line attenuation rate, and dynamic input impedance of the parent node. The power consumption adaptive state machine constructs link load indices based on these three types of quantities and their confidence levels, solves the minimum transmit power under reliability constraints, and converts the result into the gain code of the AFE programmable gain amplifier to solve the technical problems mentioned in the background art.

[0008] The present invention solves the above-mentioned technical problems by adopting the following technical solutions: On one hand, this invention discloses a dual-mode communication module system with adaptive ranging impedance, featuring an adaptive transmit power control structure based on electrical line length ranging, dynamic input impedance sampling, and bit error rate constraints. It includes an embedded microcontroller, a ranging firmware storage area, an AFE analog front-end, a PGA control register, a voltage sampling ADC, a current sampling ADC, an impedance estimation unit, a link statistics SRAM, a power consumption adaptive state machine, and an HPLC / HRF dual-mode communication interface, wherein: Ranging firmware is used to trigger ranging frames during network access, parent node switching, or periodic maintenance. AFE analog front end is used to enable synchronous sampling of voltage and current in the ranging frame preamble. A microcontroller is used to write the sampling results into the link statistics SRAM; The power consumption adaptive state machine is used to read the line length, attenuation, impedance, noise and bit error rate statistics in the link statistics SRAM at fixed intervals through the ranging firmware storage area, calculate the PGA gain code and write it into the PGA control register.

[0009] On the other hand, the present invention also discloses a method of using a dual-mode communication module system with adaptive ranging impedance, implemented based on the above-mentioned dual-mode communication module system with adaptive ranging impedance, including: The dual-mode communication module system simultaneously obtains the parent node's electrical line length, line attenuation rate, and dynamic input impedance when sending ranging frames. The power consumption adaptive state machine of the dual-mode communication module system is used to construct a link load index jointly sensed by line length and impedance based on the parent node's electrical line length, line attenuation rate, dynamic input impedance and its confidence level, solve for the minimum necessary transmit power under communication reliability constraints, and convert the result into the gain code of the AFE programmable gain amplifier.

[0010] Preferably, the process for obtaining the electrical line length of the parent node includes: The ranging firmware connected to the dual-mode communication module system records the local transmission timestamp, the parent node's response timestamp, and the return frame arrival timestamp when completing the ranging frame interaction with the parent node. After removing the protocol's fixed processing delay, the round-trip propagation time is obtained. ; The equivalent propagation speed of the power line is obtained based on the empirical value, factory specification value, or field specification value of the cable medium. for: ,in, It is not a fixed, hard-coded single constant. The speed of light in a vacuum. For the propagation velocity calibration factor related to cable medium, branch topology and high-frequency load; The final calculated electrical wire length of the parent node is: ,in, The electrical line length of the parent node.

[0011] Preferably, the process for obtaining the line attenuation rate includes: Record the valid sample values ​​of the output ranging frame at the AFE transmitter. ; Record the effective value of the ranging response of the same ranging frame at the receiving end or in the echo sampling branch. ; The final calculation yielded the line attenuation rate. for:

[0012] in, To prevent hardware noise lower limit for zero-amplitude division.

[0013] Preferably, the process for obtaining the dynamic input impedance includes: The dynamic input impedance is estimated within the preamble of the ranging frame using voltage and current sampling branches. ,have:

[0014] in and The first Line terminal voltage and injection current at each sampling point For impedance estimation window length, This is the lower limit for current sampling.

[0015] Preferably, since the physical dimensions of line length, attenuation, and impedance are different, the normalized variables are constructed respectively through the state machine of the dual-mode communication module system as follows:

[0016]

[0017]

[0018] in To cover the maximum electrical wire length in the design, and The attenuation boundary calibrated for the module. For reference input impedance, A group of allowed intervals For limited clipping operators.

[0019] Preferably, the process for constructing the link load metric includes: (1) Calculate the range measurement confidence level The ranging confidence level is determined by the nearest The time variation of the round-trip time for each ranging measurement is determined by the following formula:

[0020] in, This indicates variance calculation. To obtain the round-trip propagation time after removing the fixed processing delay of the protocol, To calibrate the threshold for ranging time jitter; (2) Calculate the attenuation confidence level The attenuation confidence is determined by the stability of the transmitted amplitude and the response amplitude within the preamble window, and is calculated using the following formula:

[0021] in, The attenuation jitter threshold, Line attenuation rate; (3) Calculate the impedance confidence level The impedance confidence level is determined by the correlation between voltage and current sampling and the impedance residual, and is calculated using the following formula:

[0022] in The correlation coefficient between voltage and current sampling. For impedance fitting residuals, The impedance residual threshold; (4) According to the distance measurement confidence level Attenuation confidence and impedance confidence The dynamic weights are generated using the following formula:

[0023]

[0024]

[0025] in, To prevent extremely small positive numbers with a denominator of zero, under normal circumstances... Close to 1; (5) Final Joint Link Load Metrics The calculation formula is:

[0026] in, This is the noise compensation coefficient. To calibrate the noise variance, this index maps distance loss, measured attenuation, grid-side impedance, and noise together into a dimensionless quantity comparable to a state machine. The noise variance estimated for the idle sampling window of the ranging frame; In addition, line attenuation rate A larger value indicates a lower amplitude reaching the parent node for the same output; dynamic input impedance. The larger the value, the more limited the injectable power is at the same voltage.

[0027] Preferably, the process for solving the minimum necessary transmit power under communication reliability constraints includes: Calculate the impedance matching efficiency at the current candidate transmit power. The calculation formula is: ,in, The equivalent impedance of the AFE output. Given the dynamic input impedance obtained synchronously when sending ranging frames, the equivalent signal-to-noise ratio estimate for reaching the parent node is:

[0028] in, For the current candidate transmit power, This is a noise floor compensation term. Furthermore, the bit error rate estimation function is constructed using a calibration model corresponding to the modulation scheme:

[0029] Among them, the error amplitude calibration coefficient and signal-to-noise ratio attenuation sensitivity coefficient Obtained from module factory calibration or on-site calibration; For the target bit error rate threshold Let the objective of power calculation be: The constraints are: Finally, the minimum required transmit power can be obtained by solving the problem. .

[0030] Preferably, to avoid frequent power skipping caused by instantaneous sampling errors during the minimum necessary transmit power calculation process, a set of power change penalty terms is introduced into the state machine of the dual-mode communication module system. Therefore, the objective optimization function formula is:

[0031] in, The transmit power used in the previous communication cycle. and These are the skipping penalty coefficient and the reliability constraint coefficient, respectively. The state machine of the dual-mode communication module system in the discrete power range set Select to The minimum power level that meets the bit error rate constraint.

[0032] Preferably, the gain code conversion is used to convert the minimum necessary transmit power into an AFE programmable gain amplifier control quantity, and the specific conversion acquisition process includes: Let the programmable gain code of the AFE be: The gain lookup table function is The reference output voltage is The load reference impedance is Then the output effective voltage and transmission power The calculation formulas are as follows:

[0033]

[0034] Finally, the state machine will obtain Mapped to hardware gain code ,have:

[0035] in, and Here, represents the minimum and maximum allowed codes in the PGA register, and represents the inverse gain lookup function, used to reverse-engineer the corresponding gain code based on a known target gain. For the floor operator, A group of allowed intervals A limiting clipping operator is used to constrain the rounded gain encoding within the hardware-allowed range. This is to prevent distortion and damage caused by exceeding the operating range of the chip hardware; The final control signal is written to the AFE's PGA control register via the register bus, enabling short-distance, low-impedance nodes to enter the low-power transmission mode, and enabling long-distance, high-impedance, or strongly attenuated nodes to enter the higher transmission mode.

[0036] Preferably, during the use of the dual-mode communication module system: If the actual bit error rate is calculated after the current frame is transmitted If the value exceeds the specified threshold, the feedback correction amount of the attenuation and impedance terms will be increased through the module system, and the lower limit of the candidate power for the next cycle will be raised by one level. like Below the threshold and continuous With no retransmissions for each cycle, the module allows the state machine to search for a lower power level. This is the default value; At this point, there is a closed-loop update amount for each cycle. Defined as:

[0037] in, This is the bit error rate feedback coefficient. For retransmission feedback coefficient, This represents the retransmission rate within the current statistics window; After multiple closed-loop updates, the execution power of the final cycle is... The calculation result is:

[0038] in, A group of allowed intervals For limited clipping operators; This closed-loop control uses AFEPGA as the direct execution object, so that the power consumption adaptive logic does not depend on the upper-layer service scheduling and does not change the protocol frame format between the dual-mode communication module and the parent node.

[0039] In another aspect, the present invention also discloses a computer-readable storage medium storing a computer program, which, when executed by a processor, causes the processor to perform data calculation steps as described above.

[0040] In another aspect, the present invention also discloses a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the data calculation steps of the method described above.

[0041] As can be seen from the above technical solution, the present invention provides a dual-mode communication module system with adaptive ranging impedance and its usage method. Compared with the prior art, the present invention has the following advantages: 1. This invention can construct a set of high-precision power consumption control logic, enabling the module to intelligently identify the link status under strict bit error rate constraints, automatically switch the transmission mode of short-distance, low-impedance nodes from full power to low power, and at the same time retain the high power reachability of long-distance or high-impedance nodes, thereby significantly reducing system energy consumption while ensuring communication quality.

[0042] 2. This invention can be continuously executed in complex environments with dense multi-module networking and frequent changes in the impedance of transformer substation lines due to load, thereby effectively coping with environmental fluctuations and ensuring the long-term stability and reliability of communication links.

[0043] It should be understood that the descriptions in this section are not intended to identify key or essential features of embodiments of the invention, nor are they intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Of course, implementing any product of the invention does not necessarily require achieving all of the advantages described above simultaneously. Attached Figure Description

[0044] The accompanying drawings, which form part of this application, are used to provide a further understanding of the invention. The illustrative embodiments of the invention and their descriptions are used to explain the invention and do not constitute an undue limitation of the invention. In the drawings: Figure 1 This is an explanatory diagram of the construction of the dual-mode communication module system unit of the present invention; Figure 2 This is a schematic diagram illustrating the usage method of the dual-mode communication module system according to an embodiment of the present invention. Detailed Implementation

[0045] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of them. Unless otherwise specified, the embodiments and features in the embodiments of this application can be combined with each other. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0046] For details in the embodiments, please refer to Figures 1 to 2 .

[0047] On the one hand, such as Figure 1 As shown, the ranging impedance adaptive dual-mode communication module system proposed in this embodiment of the invention has a transmit power adaptive control structure based on electrical line length ranging, dynamic input impedance sampling, and bit error rate constraints. It includes an embedded microcontroller, a ranging firmware storage area, an AFE analog front-end, a PGA control register, a voltage sampling ADC, a current sampling ADC, an impedance estimation unit, a link statistics SRAM, a power consumption adaptive state machine, and an HPLC / HRF dual-mode communication interface. Specifically, through the closed-loop coordination of the ranging firmware, impedance sampling circuit, power consumption adaptive state machine, and AFE programmable gain amplifier, the carrier or dual-mode link outputs the minimum necessary transmit power while meeting communication reliability requirements. Ranging firmware is used to trigger ranging frames during network access, parent node switching, or periodic maintenance. AFE analog front end is used to combine voltage sampling ADC and current sampling ADC to enable synchronous sampling of voltage and current in the ranging frame preamble. A microcontroller is used to write the sampling results into the link statistics SRAM; The impedance estimation unit is used to estimate impedance data based on the sampling results; The power consumption adaptive state machine is used to read the line length, attenuation, impedance, noise and bit error rate statistics in the link statistics SRAM at fixed intervals through the ranging firmware storage area, calculate the PGA gain code and write it into the PGA control register. The HPLC / HRF dual-mode communication interface is used for communication between the above-mentioned component modules.

[0048] On the other hand, such as Figure 2 As shown, the present invention also discloses a method for using a dual-mode communication module system with adaptive ranging impedance. Based on the dual-mode communication module system disclosed in the above embodiments, specifically, when the dual-mode communication module system sends a ranging frame, it synchronously obtains the electrical line length, line attenuation rate, and dynamic input impedance of the parent node. Then, the dual-mode communication module system uses a power consumption adaptive state machine to construct a link load index jointly sensed by line length and impedance based on the electrical line length, line attenuation rate, dynamic input impedance, and their confidence level of the parent node, solves the minimum necessary transmit power under communication reliability constraints, and converts the result into the gain code of the AFE programmable gain amplifier.

[0049] In its specific implementation, this method includes the following steps: Step S1: Obtain the parent node's electrical line length and ranging frame attenuation characteristics.

[0050] The ranging firmware connected to the dual-mode communication module system records the local transmission timestamp, the parent node's response timestamp, and the return frame arrival timestamp when completing the ranging frame interaction with the parent node. After removing the protocol's fixed processing delay, the round-trip propagation time is obtained. ; The equivalent propagation speed of the power line is obtained based on the empirical values, factory specifications, or field specifications preset for the cable medium. for: ,in, It is not a fixed, hard-coded single constant. The speed of light in a vacuum. For the propagation velocity calibration factor related to cable medium, branch topology and high-frequency load; The final calculated electrical wire length of the parent node is: ,in, The electrical line length of the parent node.

[0051] At this time, for the same ranging frame, the AFE transmitter records the sampled valid values ​​of the output ranging frame. The receiver or echo sampling branch records the effective value of the ranging response. Thus, the link amplitude attenuation rate is obtained. for:

[0052] in, To prevent hardware noise lower limit for zero-amplitude division.

[0053] Furthermore, this module system also estimates the dynamic input impedance within the preamble segment of the transmitted ranging frame through voltage and current sampling branches. ,have:

[0054] in and The first Line terminal voltage and injection current at each sampling point For impedance estimation window length, This is the lower limit for current sampling.

[0055] Since the physical dimensions of line length, attenuation, and impedance are different, it is necessary to construct normalized variables using the state machine of the dual-mode communication module system as follows:

[0056]

[0057]

[0058] in To cover the maximum electrical wire length in the design, and The attenuation boundary calibrated for the module. For reference input impedance, A group of allowed intervals For limited clipping operators.

[0059] Step S2: Construct a link load metric that is jointly sensed by line length and impedance.

[0060] Specifically, it includes: (1) Calculate the range measurement confidence level The ranging confidence level is determined by the most recent The time variation of the round-trip time for each ranging measurement is determined by the following formula:

[0061] in, This indicates variance calculation. To obtain the round-trip propagation time after removing the fixed processing delay of the protocol, To calibrate the threshold for ranging time jitter; (2) Calculate the attenuation confidence level The attenuation confidence level is determined by the stability of the transmitted and responded amplitudes within the preamble window, and can be calculated using the following formula:

[0062] in, The attenuation jitter threshold, This represents the line attenuation rate.

[0063] (3) Calculate the impedance confidence level The impedance confidence level is determined by the correlation between voltage and current sampling and the impedance residual, and can be calculated using the following formula:

[0064] in The correlation coefficient between voltage and current sampling. For impedance fitting residuals, This is the impedance residual threshold.

[0065] (4) According to the distance measurement confidence level Attenuation confidence and impedance confidence The dynamic weights are generated using the following formula:

[0066]

[0067]

[0068] in, To prevent extremely small positive numbers with a denominator of zero, under normal circumstances... Close to 1; (5) Final Joint Link Load Metrics The calculation formula is:

[0069] in, This is the noise compensation coefficient. To calibrate the noise variance, this index maps distance loss, measured attenuation, grid-side impedance, and noise together into a dimensionless quantity comparable to a state machine. The noise variance estimated for the idle sampling window of the ranging frame; In addition, line attenuation rate A larger value indicates a lower amplitude reaching the parent node for the same output; dynamic input impedance. The larger the value, the more limited the injectable power is at the same voltage.

[0070] Step S3: Calculate the minimum necessary transmit power to satisfy communication reliability.

[0071] Calculate the impedance matching efficiency at the current candidate transmit power. The calculation formula is: ,in, The equivalent impedance of the AFE output. Given the dynamic input impedance obtained synchronously when sending ranging frames, the equivalent signal-to-noise ratio estimate for reaching the parent node is:

[0072] in, For the current candidate transmit power, This is a noise floor compensation term. Furthermore, the bit error rate estimation function is constructed using a calibration model corresponding to the modulation scheme:

[0073] Among them, the error amplitude calibration coefficient and signal-to-noise ratio attenuation sensitivity coefficient Obtained from module factory calibration or on-site calibration; For the target bit error rate threshold Let the objective of power calculation be: The constraints are: Finally, the minimum required transmit power can be obtained by solving the problem. .

[0074] Furthermore, to avoid frequent power jumps caused by instantaneous sampling errors during the minimum necessary transmit power calculation process, a set of power change penalty terms is introduced into the state machine of the dual-mode communication module system. Therefore, the objective optimization function formula is:

[0075] in, The transmit power used in the previous communication cycle. and These are the skipping penalty coefficient and the reliability constraint coefficient, respectively. The state machine of the dual-mode communication module system in the discrete power range set Select to The minimum power level that meets the bit error rate constraint.

[0076] Step S4: Convert the minimum necessary transmit power into the AFE programmable gain amplifier control value.

[0077] Let the programmable gain code of the AFE be: The gain lookup table function is The reference output voltage is The load reference impedance is Then the output effective voltage and transmission power The calculation formulas are as follows:

[0078]

[0079] Finally, the state machine will obtain Mapped to hardware gain code ,have:

[0080] in, and Here, represents the minimum and maximum allowed codes in the PGA register, and represents the inverse gain lookup function, used to reverse-engineer the corresponding gain code based on a known target gain. For the floor operator, A group of allowed intervals A limiting clipping operator is used to constrain the rounded gain encoding within the hardware-allowed range. This is to prevent distortion and damage caused by exceeding the operating range of the chip hardware; The final control signal is written to the AFE's PGA control register via the register bus, enabling short-distance, low-impedance nodes to enter the low-power transmission mode, and enabling long-distance, high-impedance, or strongly attenuated nodes to enter the higher transmission mode.

[0081] Step S5: Perform closed-loop correction and boundary protection.

[0082] If the actual bit error rate is calculated after the current frame is transmitted If the value exceeds the specified threshold, the feedback correction amount of the attenuation and impedance terms will be increased through the module system, and the lower limit of the candidate power for the next cycle will be raised by one level. like Below the threshold and continuous With no retransmissions for each cycle, the module allows the state machine to search for a lower power level. This is the default value; At this point, there is a closed-loop update amount for each cycle. Defined as:

[0083] in, This is the bit error rate feedback coefficient. For retransmission feedback coefficient, This represents the retransmission rate within the current statistics window; After multiple closed-loop updates, the execution power of the final cycle is... The calculation result is:

[0084] in, A group of allowed intervals For limited clipping operators; This closed-loop control uses AFEPGA as the direct execution object, so that the power consumption adaptive logic does not depend on the upper-layer service scheduling and does not change the protocol frame format between the dual-mode communication module and the parent node.

[0085] In summary, this method, through the closed-loop coordination of ranging firmware, impedance sampling circuit, power consumption adaptive state machine, and AFE programmable gain amplifier, enables the carrier or dual-mode link to output the minimum necessary transmit power while meeting communication reliability requirements. Furthermore, by combining refined strategies such as cost function, proportional-integral correction, and thermal resistance boundary model, a high-precision power consumption control mechanism is constructed. This allows the module to intelligently identify the link status and automatically switch the transmit mode of near-distance, low-impedance nodes from full power to low power, while maintaining high power reachability for long-distance or high-impedance nodes, thus significantly reducing system energy consumption while ensuring communication quality.

[0086] Based on the method execution of the aforementioned dual-mode communication module system, the specific data processing flow of this module system includes: For the Sampling period of each control cycle The number of sampling points in the preamble of the ranging frame collected is The equivalent propagation speed is then calculated using a calibration coefficient table or an on-site calibration register. The calculation formula is as follows:

[0087] in, The propagation speed calibration coefficient is read from the factory calibration table or the field calibration register and is used to correct the propagation speed deviation caused by cable medium and line parasitic parameters. Using first-order smoothing for the first time Line length estimate for each control cycle The calculation formula is as follows:

[0088] For the previous control cycle ( The estimated line length, These are the coefficients of a first-order exponential smoothing filter. The propagation time for the k-th round trip ranging (the time difference between sending the ranging frame and receiving the response frame); If recently The round-trip time for this ranging operation is The time variance of the ranging is:

[0089] For the window The arithmetic mean of round-trip times; The value of the ranging confidence score written to the link statistics SRAM is:

[0090] Calculate the amplitude of the ranging frame transmission and response in length . Root mean square value within the window and ,have:

[0091]

[0092] in, This is the time-domain sampling sequence of the ranging frame transmitter at the k-th control cycle. This is the time-domain sampling sequence of the ranging response frame receiver at the k-th control cycle; Corresponding line attenuation for:

[0093] In addition, if recently The variance of the second decay estimate is The decay confidence level is:

[0094] Then, the voltage and current samples are first subjected to amplitude limiting and filtering through the impedance estimation unit, resulting in:

[0095]

[0096] in, This is the voltage sampling sequence after amplitude limiting and filtering. The original voltage was sampled in the time domain for the impedance estimation unit. This is the voltage sampling limiting threshold. This is the current sampling sequence after amplitude limiting and filtering. For the time-domain sampling of the original current of the impedance estimation unit, This is the current sampling limiting threshold; The discrete impedance estimate is then calculated as follows:

[0097] The voltage and current sampling correlation coefficients are calculated simultaneously as follows:

[0098] The impedance fitting residual is calculated as follows:

[0099] in, This is the unsmoothed instantaneous impedance estimate obtained from the original solution for this cycle; The impedance confidence level is:

[0100] in, The correlation coefficient of the voltage-current sampling signal is used to characterize the coherence of the voltage and current signals. To suppress transient switching noise on the power line, the module performs a recursive impedance estimation, resulting in:

[0101] This is the estimated output impedance value after recursive smoothing in the k-th period. This is the first-order recursive smoothing coefficient for impedance; The state machine is based on the first The normalized value of the period and the confidence weight are used to calculate the feedforward power. The calculation formula is as follows:

[0102] and These are the minimum and maximum transmit powers allowed by the system hardware, respectively. The joint link load metric is calculated using normalized values ​​and confidence weights. , , , , , It consists of noise variance.

[0103] At this time, the dual-mode communication module system maintains a length of [length] in the link statistics SRAM. If the error rate or recalculation window is exceeded, then there is an estimated actual bit error rate. The calculation is as follows:

[0104] in, This represents the number of error bits within the window. The number of bits to send within the window; There is a bit error feedback error. for:

[0105] like If the measured bit error rate is higher than the target threshold, the link quality is insufficient, and the transmit power needs to be increased. If the measured bit error rate is better than the target threshold, the transmission power can be appropriately reduced. The state machine then performs proportional-integral correction as follows:

[0106] in The length of the integration window. This is the proportional gain coefficient. This is the integral gain coefficient; The final command power is:

[0107] Furthermore, at this point, the AFEPGA gain code is stepped according to the register. Discretization is as follows:

[0108] The gain step size corresponding to each step of the AFE-PGA register. Encoding the raw target gain without slope constraint, This is the minimum encoded value of the PGA register, i.e., the lower limit of hardware gain encoding. The reference impedance for the load at the AFE output terminal is... As the reference output effective voltage, for The corresponding minimum gain; If the gain code change in adjacent control cycles exceeds the hardware-allowed step size Then, using slope constraints, we have:

[0109] in, For slope-limited security gain encoding, The security gain code that took effect in the previous cycle; The microcontroller here will Write to the AFE's PGA control register. The register will take effect in the next transmission frame after the write is complete.

[0110] In addition, to prevent continuous loss of synchronization due to excessively low power, if continuous If a parent node fails to respond in a statistical window, the state machine enters a protection mode, where:

[0111] The power of the protection mode command in the k-th cycle. The maximum transmit power allowed by the hardware. The normal command power for PI correction output. This refers to the power boost increment in protection mode; Meanwhile, the module is based on the launch duration Estimate single-cycle emission energy ,have:

[0112] And based on the thermal resistance model, the junction temperature increment is estimated as follows:

[0113] in The equivalent thermal resistance of the module, Idle power, To control the cycle length.

[0114] This temperature value does not directly replace the bit error rate constraint; it is only used as a boundary value to limit the duration of continuous high-power transmission.

[0115] when Exceeding the thermal protection threshold and When the power level is below the threshold, the state machine prioritizes searching for the next lower power level; when the bit error rate does not meet the threshold, reliability constraints take precedence over temperature optimization.

[0116] The hardware execution process described above enables ranging, impedance estimation, confidence generation, power calculation, and PGA gain writing to all be completed in a closed loop within the module.

[0117] Furthermore, since the power control quantity directly acts on the AFEPGA register, the adjustment path is completely independent of the upper-layer business strategy, thus exhibiting extremely high response speed and execution efficiency.

[0118] This underlying closed-loop control method enables the dual-mode communication module system to operate continuously in complex environments with dense multi-module networks and frequent changes in the impedance of transformer substation lines due to load. This effectively copes with environmental fluctuations and ensures the long-term stability and reliability of the communication link.

[0119] The following is an example of incorporating actual data during the implementation process: The application scenario is based on 64 dual-mode communication modules connected to the same low-voltage distribution area, with the parent node being a concentrator or edge gateway.

[0120] Simulation settings: electrical wire length Dynamic input impedance distributed from 15m to 420m Distributed in 12 Up to 220 The ranging frame sampling rate is 2 MS / s, and the impedance estimation window is... Confidence statistics window noise variance Target bit error rate threshold Module maximum power minimum power The control cycle is 1 second, and the effective transmission time of each cycle is 40 ms.

[0121] In the fixed power scheme, all 64 modules are designed according to... Launch, the total launch energy per control cycle is:

[0122] When this scheme is adopted, nodes are divided into three categories based on ranging and impedance conditions: The average command power of 20 short-distance low-impedance nodes is The average command power of the 28 medium-distance, medium-impedance nodes is The average command power of 16 long-distance or high-impedance nodes is .

[0123] The total emission energy per control cycle is:

[0124] Compared to the fixed power scheme, the reduction in transmit energy is as follows:

[0125] Under the same noise and node distribution, the maximum estimated bit error rate for the fixed power scheme is The maximum estimated bit error rate of this scheme is Still lower than The target threshold. Average transmit power is determined by... Down to:

[0126] Based on the equivalent same-frequency injected power, the average interference power ratio is estimated to be:

[0127] If the equivalent thermal resistance of the module is taken If the effective launch duty cycle is 4%, then the average temperature rise contribution of fixed power relative to idle is approximately The adaptive scheme contributes approximately [amount] to the average temperature rise. .

[0128] In the propagation speed coefficient exist Calibration disturbance and , , When participating in weight updates, the average power level of short-distance nodes changes by no more than 1 level, while long-distance or high-impedance nodes still maintain the power upper limit search that meets the bit error rate threshold.

[0129] The above comparison demonstrates that, without relaxing the bit error rate constraint, this dual-mode communication module system can switch short-range, low-impedance nodes from full-power transmission to low-power transmission while maintaining high-power reachability for long-range or high-impedance nodes. Since the power control quantity directly affects the AFEPGA register, the adjustment path does not depend on upper-layer service strategies, making it suitable for continuous execution in scenarios with dense multi-module networks and varying line impedances in transformer substations due to load changes.

[0130] In another embodiment provided in this application, a computer program product containing instructions is also provided, which, when run on a computer, causes the computer to execute any of the ranging impedance adaptive dual-mode communication module systems and their usage methods described in the above embodiments.

[0131] It is understood that the system provided in the embodiments of the present invention corresponds to the method provided in the embodiments of the present invention, and the explanation, examples and beneficial effects of the relevant content can be referred to the corresponding parts of the above method.

[0132] This application also provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, communication interface, and memory communicate with each other via the communication bus. Memory, used to store computer programs; The processor, when executing the program stored in the memory, implements the above-mentioned dual-mode communication module system with adaptive ranging impedance and its usage method.

[0133] The communication bus mentioned in the above-mentioned electronic devices can be a standard bus for interconnecting peripheral components or an extended industrial standard structure bus, etc. This communication bus can be divided into address bus, data bus, control bus, etc.

[0134] The communication interface is used for communication between the aforementioned electronic devices and other devices.

[0135] The memory may include random access memory or non-volatile memory, such as at least one disk storage device. Optionally, the memory may also be at least one storage device located remotely from the aforementioned processor.

[0136] The processors mentioned above can be general-purpose processors, including central processing units, network processors, etc.; they can also be digital signal processors, application-specific integrated circuits, field-programmable gate arrays or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0137] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired or wireless means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium, an optical medium, or a semiconductor medium, etc.

[0138] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

[0139] Furthermore, it should be noted that if any directional indication (such as up, down, left, right, front, back, etc.) is involved in the embodiments of the present invention, the directional indication is only used to explain the relative positional relationship and movement of each component in a specific posture. If the specific posture changes, the directional indication will also change accordingly.

[0140] Furthermore, those skilled in the art should understand that in the actual use of the embodiments of this application, there may be preset thresholds used as the basis for judging the corresponding technical solutions. These thresholds are conventional technical means commonly used in the field to implement functions such as state judgment, condition recognition, and control logic switching. The specific values, setting basis, value selection methods, determination methods, and adjustment rules of the thresholds involved in this technical solution are all conventional technical choices that can be reasonably determined by those skilled in the art based on conventional technical factors such as actual application scenarios, system working states, characteristics of the detection object, hardware performance parameters, and functional requirements, through conventional experiments, calibrations, and debugging. The specific setting and adjustment of the aforementioned thresholds will not cause this technical solution to be unimplementable as a whole, nor will it affect the realization of the core concept and the achievement of the technical effects of this technical solution.

[0141] Furthermore, if the embodiments of this invention involve descriptions such as "first" or "second," these descriptions are for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined with "first" or "second" may explicitly or implicitly include at least one of those features. Additionally, the meaning of "and / or" throughout the text includes three parallel solutions; for example, "A and / or B" includes solution A, solution B, or a solution where both A and B are satisfied simultaneously. Furthermore, in the embodiments of this invention, "multiple" refers to two or more. Moreover, the technical solutions of the various embodiments can be combined with each other, but this must be based on the ability of those skilled in the art to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection claimed by this invention.

Claims

1. A dual-mode communication module system with adaptive ranging impedance, characterized by an adaptive transmit power control structure based on electrical line length ranging, dynamic input impedance sampling, and bit error rate constraints, wherein... include: Ranging firmware is used to trigger ranging frames during network access, parent node switching, or periodic maintenance. AFE analog front end is used to enable synchronous sampling of voltage and current in the ranging frame preamble. A microcontroller is used to write the sampling results into the link statistics SRAM; The power consumption adaptive state machine is used to read the line length, attenuation, impedance, noise and bit error rate statistics in the link statistics SRAM at fixed intervals through the ranging firmware storage area, calculate the PGA gain code and write it into the control register.

2. A method of using a dual-mode communication module system with adaptive ranging impedance, characterized in that, The system is implemented based on the ranging impedance adaptive dual-mode communication module system as described in claim 1, including: The dual-mode communication module system simultaneously obtains the parent node's electrical line length, line attenuation rate, and dynamic input impedance when sending ranging frames. The power consumption adaptive state machine of the dual-mode communication module system is used to construct a link load index jointly sensed by line length and impedance based on the parent node's electrical line length, line attenuation rate, dynamic input impedance and its confidence level, solve for the minimum necessary transmit power under communication reliability constraints, and convert the result into the gain code of the AFE programmable gain amplifier.

3. The method of using the ranging impedance adaptive dual-mode communication module system as described in claim 2, characterized in that, The process for obtaining the electrical wire length of the parent node includes: The ranging firmware connected to the dual-mode communication module system records the local transmission timestamp, the parent node's response timestamp, and the return frame arrival timestamp when completing the ranging frame interaction with the parent node. After removing the protocol's fixed processing delay, the round-trip propagation time is obtained. ; The equivalent propagation speed of the power line is obtained based on the empirical value, factory specification value, or field specification value of the cable medium. for: ,in, The speed of light in a vacuum. For the propagation velocity calibration factor related to cable medium, branch topology and high-frequency load; The final calculated electrical wire length of the parent node is: ,in, The electrical line length of the parent node.

4. The method of using the ranging impedance adaptive dual-mode communication module system as described in claim 2, characterized in that, The process for obtaining the line attenuation rate includes: Record the valid sample values ​​of the output ranging frame at the AFE transmitter. ; Record the effective value of the ranging response of the same ranging frame at the receiving end or in the echo sampling branch. ; The final calculation yielded the line attenuation rate. for: in, To prevent hardware noise lower limit for zero-amplitude division.

5. The method of using the ranging impedance adaptive dual-mode communication module system as described in claim 2, characterized in that, The process for obtaining the dynamic input impedance includes: The dynamic input impedance is estimated within the preamble of the ranging frame using voltage and current sampling branches. ,have: in and The first Line terminal voltage and injection current at each sampling point For impedance estimation window length, This is the lower limit for current sampling.

6. The method of using the ranging impedance adaptive dual-mode communication module system as described in claim 2, characterized in that, The process for constructing the link load metric includes: (1) Calculate the range measurement confidence level The calculation formula is as follows: in, This indicates variance calculation. To obtain the round-trip propagation time after removing the fixed processing delay of the protocol, To calibrate the threshold for ranging time jitter; (2) Calculate the attenuation confidence level The calculation formula is as follows: in, The attenuation jitter threshold, Line attenuation rate; (3) Calculate the impedance confidence level The calculation formula is as follows: in The correlation coefficient between voltage and current sampling. For impedance fitting residuals, The impedance residual threshold; (4) According to the distance measurement confidence level Attenuation confidence and impedance confidence The dynamic weights are generated using the following formula: in, To prevent extremely small positive numbers with a denominator of zero; (5) Final Joint Link Load Metrics The calculation formula is: in, This is the noise compensation coefficient. To calibrate the noise variance, The noise variance estimated for the idle sampling window of the ranging frame.

7. The method of using the ranging impedance adaptive dual-mode communication module system as described in claim 6, characterized in that, The process for solving the minimum necessary transmit power under communication reliability constraints includes: The equivalent signal-to-noise ratio estimate for reaching the parent node under the current candidate transmit power is calculated as follows: in, For the current candidate transmit power, This is a noise floor compensation term. The bit error rate estimation function is constructed using a calibration model corresponding to the modulation scheme: Among them, the error amplitude calibration coefficient and signal-to-noise ratio attenuation sensitivity coefficient Obtained from module factory calibration or on-site calibration; For the target bit error rate threshold Let the objective of power calculation be: The constraints are: Finally, the minimum required transmit power can be obtained by solving the problem. .

8. The method of using the ranging impedance adaptive dual-mode communication module system as described in claim 7, characterized in that, In the process of solving for the minimum necessary transmit power, the state machine introduces a set of power change penalty terms, and the objective optimization function formula is as follows: in, The transmit power used in the previous communication cycle. and These are the skipping penalty coefficient and the reliability constraint coefficient, respectively. State machine in discrete power range set Select to make The minimum power level that meets the bit error rate constraint.

9. The method of using the ranging impedance adaptive dual-mode communication module system as described in claim 7, characterized in that, The gain code conversion is used to convert the minimum necessary transmit power into an AFE programmable gain amplifier control quantity. The specific conversion acquisition process includes: Let the programmable gain code of the AFE be: The gain lookup table function is The reference output voltage is The load reference impedance is Then, at this time, the obtained state machine will be used to... Mapped to hardware gain code ,have: in, and Here, represents the minimum and maximum allowed codes in the PGA register, and represents the inverse gain lookup function, used to reverse-engineer the corresponding gain code based on a known target gain. For the floor operator, A group of allowed intervals For limited clipping operators.

10. The method of using the ranging impedance adaptive dual-mode communication module system as described in claim 7, characterized in that, During the use of the dual-mode communication module system: If the actual bit error rate is calculated after the current frame is transmitted If the value exceeds the specified threshold, the feedback correction amount of the attenuation and impedance terms will be increased through the module system, and the lower limit of the candidate power for the next cycle will be raised by one level. like Below the threshold and continuous With no retransmissions for each cycle, the module allows the state machine to search for a lower power level. This is the default value; There is a closed-loop update amount for each cycle. Defined as: in, This is the bit error rate feedback coefficient. For retransmission feedback coefficient, This represents the retransmission rate within the current statistics window; After multiple closed-loop updates, the execution power of the final cycle is... The calculation result is: in, A group of allowed intervals For limited clipping operators.