Transmission power level adjustment method, apparatus, carrier communication module, and communication device

CN123019776APending Publication Date: 2026-10-30WUHAN SAN FRAN ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611166279.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-03
Publication Date
2026-10-30

AI Technical Summary

Technical Problem

但限流保护介入后会直接压低载波信号输出幅值,削弱信号在线路中的抗衰减能力,造成通信误码、丢包、远距离节点断连等问题,大幅降低通信稳定性

Benefits of technology

本申请实施例提供了一种发送功率档位调整方法、装置、载波通信模块和通信设备,该方法包括:控制通信模块根据当前发送限制档位对当前帧的载波数据进行发送;确定通信模块在当前帧的数据发送过程中是否产生限流事件;若当前帧的数据发送过程中产生限流事件,则对通信模块的当前发送限制档位进行降低调整,得到新的发送限制档位,使得新的发送限制档位大于或等于预设最小发送档位;控制通信模块根据新的发送限制档位对下一帧的载波数据进行发送。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123019776A_ABST
    Figure CN123019776A_ABST
Patent Text Reader

Abstract

The application provides a transmission power level adjustment method and device, a carrier communication module and a communication device. The method comprises the following steps: controlling the communication module to transmit carrier data of a current frame according to a current transmission limit level; determining whether a current-limiting event occurs in the data transmission process of the current frame; if the current-limiting event occurs in the data transmission process of the current frame, reducing the current transmission limit level of the communication module to obtain a new transmission limit level, so that the new transmission limit level is greater than or equal to a preset minimum transmission level; and controlling the communication module to transmit carrier data of a next frame according to the new transmission limit level. The transmission limit level is dynamically adjusted based on whether a current-limiting event occurs in the data transmission process of each frame, the transmission limit level is reduced when the current-limiting event occurs, and the lower limit of the level is constrained, so that the transmission power can be adapted to the current line load working condition, and the frequent triggering of the hardware current-limiting protection can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of carrier data processing technology, and more specifically, to a method, apparatus, carrier communication module, and communication equipment for adjusting transmission power levels. Background Technology

[0002] Power line carrier communication relies on existing power distribution cables to achieve data transmission and is widely used in smart meters, power distribution monitoring, smart homes, and other scenarios. The carrier communication module integrates power amplifiers and coupling output circuits. Conditions such as line short circuits, high-power load switching, and concurrent transmission by multiple nodes can easily cause output overcurrent. Therefore, existing carrier modules are generally equipped with current-limiting protection circuits. Once an overcurrent is detected, the output current is quickly clamped to prevent power devices such as power amplifiers and coupling transformers from burning out. However, the intervention of current-limiting protection directly reduces the output amplitude of the carrier signal, weakening the signal's resistance to attenuation in the line, causing communication errors, packet loss, and disconnection at long-distance nodes, significantly reducing communication stability.

[0003] Existing technologies mainly use fixed transmission power levels. However, under dynamic fluctuations in power load, fixed levels are prone to frequently triggering current limiting protection, which degrades system stability and increases ineffective power consumption. Furthermore, under light load conditions, if the power level is set too high, current limiting will still be triggered. Under heavy load conditions, if the power level is set too low, the carrier signal's anti-attenuation capability is insufficient, and the quality of long-distance communication cannot be guaranteed. Summary of the Invention

[0004] The purpose of this invention is to address the shortcomings of the prior art by providing a method, apparatus, carrier communication module, and communication device for adjusting the transmission power level. This allows for dynamic adjustment of the transmission limit level based on whether a current limiting event occurs during each frame of data transmission. When a current limiting event occurs, the transmission limit level is lowered and the lower limit is constrained, enabling the transmission power to adapt to the current line load conditions, reducing frequent triggering of hardware current limiting protection, and controlling the transmission of the next frame of carrier data based on the adjusted transmission limit level.

[0005] To achieve the above objectives, the technical solutions adopted in the embodiments of this application are as follows: In a first aspect, embodiments of this application provide a method for adjusting transmission power levels, the method comprising: The control communication module transmits carrier data for the current frame according to the current transmission limit level; Determine whether the communication module generates a rate limiting event during the transmission of carrier data in the current frame; If a rate limiting event occurs during the transmission of carrier data in the current frame, the current transmission limit level of the communication module is adjusted to a lower level to obtain a new transmission limit level, such that the new transmission limit level is greater than or equal to the preset minimum transmission level. The communication module is controlled to send carrier data for the next frame according to the new transmission limit level.

[0006] In an optional implementation, determining whether the communication module generates a rate-limiting event during the transmission of carrier data in the current frame includes: If a rate limiting indication signal for the current frame is received from the communication module, the width of the rate limiting indication pulse is determined based on the rate limiting indication signal. Whether a current limiting event occurs is determined based on the width of the current limiting indication pulse.

[0007] In an optional implementation, determining the width of the current limiting indication pulse based on the current limiting indication signal includes: If the current limiting indication signal has a rising edge, a rising edge interrupt is triggered and a preset timer is started; If the current limiting indication signal has a falling edge, a falling edge interrupt is triggered and the value of the preset timer is read as the width of the current limiting indication pulse.

[0008] In an optional implementation, determining whether the current limiting event occurs based on the width of the current limiting indication pulse includes: If the width of the current limiting indication pulse is greater than or equal to the preset pulse width, then a current limiting event is determined to occur; If the width of the current limiting indication pulse is less than the preset pulse width, it is determined that no current limiting event has occurred.

[0009] In an optional implementation, the method further includes: If no rate limiting event occurs during the transmission of carrier data in the current frame, the communication module is controlled to continue maintaining the current transmission limit level.

[0010] In an optional implementation, the method further includes: If no rate limiting event occurs during the data transmission of the current frame, a preset counter is started to count the number of consecutive times no rate limiting event occurs. If the number of consecutive times without a rate limiting event reaches a preset threshold, the current sending limit level of the communication module is increased to obtain a new sending limit level, such that the new sending limit level is less than or equal to the preset maximum sending level. The count value of the preset counter is cleared.

[0011] In an optional implementation, before the control communication module transmits the carrier data of the current frame according to the current transmission limit level, the method further includes: The transmission limit of the communication module is initialized to the preset maximum transmission limit.

[0012] Secondly, embodiments of this application also provide a transmission power level adjustment device, the device comprising: The control module is used to control the communication module to send carrier data of the current frame according to the current transmission limit level; A determining module is used to determine whether the communication module generates a rate limiting event during the transmission of carrier data in the current frame; An adjustment module is used to reduce the current transmission limit level of the communication module if a rate limiting event occurs during the transmission of carrier data of the current frame, so as to obtain a new transmission limit level, and the new transmission limit level is greater than or equal to the preset minimum transmission level. The control module is also used to control the communication module to send carrier data for the next frame according to the new transmission limit level.

[0013] Thirdly, embodiments of this application also provide a carrier communication module, the carrier communication module comprising: a controller and a communication module, the controller being used to execute the steps of any of the transmission power level adjustment methods described in the first aspect above.

[0014] Fourthly, embodiments of this application also provide a communication device, the communication device comprising: a carrier communication module, wherein a controller in the carrier communication module is used to execute the steps of the transmission power level adjustment method described in any of the first aspects above.

[0015] Fifthly, embodiments of this application also provide a controller, including: a processor, a storage medium, and a bus, wherein the storage medium stores program instructions executable by the processor, and when the controller is running, the processor communicates with the storage medium via the bus, and the processor executes the program instructions to perform the steps of the transmission power level adjustment method as described in any of the first aspects.

[0016] The beneficial effects of this application are: This application provides a method, apparatus, carrier communication module, and communication device for adjusting transmission power levels. The method includes: controlling the communication module to transmit carrier data of the current frame according to the current transmission limit level; determining whether a rate limiting event occurs during the data transmission of the current frame by the communication module; if a rate limiting event occurs during the data transmission of the current frame, adjusting the current transmission limit level of the communication module to a lower level to obtain a new transmission limit level, such that the new transmission limit level is greater than or equal to a preset minimum transmission level; and controlling the communication module to transmit carrier data of the next frame according to the new transmission limit level.

[0017] The method of this application dynamically adjusts the transmission limit level based on whether a current limiting event occurs during the data transmission of each frame. When a current limiting event occurs, the transmission limit level is reduced and the lower limit of the level is constrained, which enables the transmission power to adapt to the current line load conditions and reduces the frequent triggering of hardware current limiting protection. At the same time, the transmission of the next frame of carrier data is controlled based on the adjusted transmission limit level, realizing frame-by-frame adaptive adjustment of power, taking into account both the safety of power output and the basic transmission capability of carrier signals, and effectively improving the operational stability of power line carrier communication. Attached Figure Description

[0018] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1 One of the flowcharts for a method to adjust the transmission power level provided in this application embodiment; Figure 2 A second schematic flowchart illustrating a method for adjusting transmission power levels provided in an embodiment of this application; Figure 3 A schematic diagram illustrating the capture of rate limiting events provided in an embodiment of this application; Figure 4 A third schematic flowchart illustrating a method for adjusting transmission power levels provided in this application embodiment; Figure 5 A fourth schematic flowchart illustrating a method for adjusting transmission power levels provided in this application embodiment; Figure 6 This is a functional module diagram of a transmission power level adjustment device provided in an embodiment of this application; Figure 7 This is a schematic diagram of a controller provided in an embodiment of this application. Detailed Implementation

[0020] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, 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 some embodiments of the present invention, but not all embodiments.

[0021] Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of the application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.

[0022] In the description of this application, it should be noted that if the terms "upper", "lower", etc. appear to indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings, or the orientation or positional relationship that the product of this application is usually placed in, it is only for the convenience of describing this application and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of this application.

[0023] Furthermore, the terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Additionally, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0024] It should be noted that, where there is no conflict, the features in the embodiments of this application can be combined with each other.

[0025] To reduce the frequency of current limiting events during carrier communication and improve the stability and reliability of carrier communication, this application provides a carrier communication module, which includes a controller and a communication module. This application also provides a method for adjusting the transmission power level. The controller is used to execute the method for adjusting the transmission power level, thereby realizing the dynamic adjustment of the transmission power level. This allows the communication module to transmit carrier data according to the adjusted transmission power level, thereby improving the stability and reliability of carrier communication.

[0026] The following detailed explanation, in conjunction with the accompanying drawings and specific examples, illustrates the method for adjusting the transmission power level provided in the embodiments of this application. Figure 1 This is one of the flowcharts illustrating a method for adjusting transmission power levels according to an embodiment of this application. Figure 1 As shown, the method includes: S101, The control communication module transmits the carrier data of the current frame according to the current transmission limit level.

[0027] In this embodiment, a variable tx_level_limit is pre-set for the communication module and stored locally to record the current transmission limit level. When the controller receives the carrier signal of the current frame, it controls the communication module to read the current transmission limit level stored locally and match the corresponding transmission power level according to the current transmission limit level, and use the transmission power level to complete the output of the carrier data of the current frame.

[0028] Optionally, the initialization limit of the communication module is set to the preset maximum transmission limit.

[0029] Specifically, after the communication module is powered on, it first performs a gear initialization operation, assigning the transmission limit gear to the preset maximum transmission gear supported by the carrier communication hardware. If the current frame is the first transmission frame, then the current transmission limit gear is the preset maximum transmission gear.

[0030] S102. Determine whether the communication module generates a rate limiting event during the transmission of carrier data in the current frame.

[0031] S103. If a flow limiting event occurs during the transmission of carrier data in the current frame, the current transmission limit level of the communication module is lowered to obtain a new transmission limit level, such that the new transmission limit level is greater than or equal to the preset minimum transmission level.

[0032] Specifically, while the communication module is outputting the current frame carrier data, the controller continuously monitors the current limiting indication signal generated by the hardware output loop to determine whether a current limiting event has occurred during the transmission process.

[0033] If a valid current limiting event is determined to occur within the transmission window of the current frame, it means that the transmission power corresponding to the current transmission power level exceeds the line hardware carrying capacity. Continuing to operate at this level will frequently trigger hardware current limiting protection.

[0034] The current transmission limit level will be lowered, for example, by one level. Simultaneously, boundary judgment logic will be added to verify whether the adjusted level is lower than the preset minimum transmission level. If the adjusted level is lower than the minimum transmission level, it will remain at the preset minimum transmission level and will not be lowered further to avoid excessively low transmission power leading to severe carrier signal attenuation and packet loss.

[0035] After the adjustment is completed, update the global variable tx_level_limit of the communication module and save the updated transmission limit level as the reference level for subsequent frame transmission.

[0036] S104. The control communication module transmits the carrier data of the next frame according to the new transmission limit level.

[0037] Specifically, after adjusting the transmission limit level and updating the tx_level_limit parameter, it waits for the transmission scheduling instruction for the next frame of carrier data.

[0038] When the next frame of carrier data is ready and enters the transmission process, the control communication module reads the newly adjusted transmission limit level, determines the corresponding transmission power level, and completes the transmission of the next frame of carrier data based on the new transmission power level. By converging the transmission power level, the phenomenon of frequent triggering of current limiting protection during the transmission of the next frame can be reduced.

[0039] Similarly, it continues to determine whether the communication module generates a rate limiting event during the transmission of carrier data in the next frame. If a rate limiting event also occurs during the transmission of carrier data in the next frame, the new transmission limit level is adjusted to a lower level to obtain a new adjusted transmission limit level, so as to continue transmitting carrier data for subsequent frames until the transmission of carrier data for all frames is completed.

[0040] In summary, this application provides a method for adjusting the transmission power level. The method includes: controlling the communication module to transmit carrier data of the current frame according to the current transmission limit level; determining whether a rate limiting event occurs during the data transmission of the current frame by the communication module; if a rate limiting event occurs during the data transmission of the current frame, adjusting the current transmission limit level of the communication module to a lower level to obtain a new transmission limit level, such that the new transmission limit level is greater than or equal to a preset minimum transmission level; and controlling the communication module to transmit carrier data of the next frame according to the new transmission limit level.

[0041] The method of this application dynamically adjusts the transmission limit level based on whether a current limiting event occurs during the data transmission of each frame. When a current limiting event occurs, the transmission limit level is reduced and the lower limit of the level is constrained, which enables the transmission power to adapt to the current line load conditions and reduces the frequent triggering of hardware current limiting protection. At the same time, the transmission of the next frame of carrier data is controlled based on the adjusted transmission limit level, realizing frame-by-frame adaptive adjustment of power, taking into account both the safety of power output and the basic transmission capability of carrier signals, and effectively improving the operational stability of power line carrier communication.

[0042] Based on the above embodiments, this application also provides another possible implementation of the transmission power level adjustment method. Figure 2 This is a second schematic flowchart illustrating a method for adjusting transmission power levels according to an embodiment of this application. Figure 3 This is a schematic diagram illustrating the capture of rate-limiting events provided in an embodiment of this application. Figure 2As shown, determining whether the communication module generates a rate-limiting event during the transmission of carrier data in the current frame includes: S201. If a current limiting indication signal for the current frame is received from the communication module, the width of the current limiting indication pulse is determined based on the current limiting indication signal.

[0043] In this embodiment, the carrier data is divided into a preamble segment and a payload data segment (PLD). The preamble is mainly used for signal synchronization at the receiving end and has a low impact on the reliability of the communication link transmission. Therefore, the current limiting indicator signal capture logic is turned off during the preamble transmission stage. When the transmission process switches to the PLD payload data transmission time, the current limiting indicator signal capture is turned on until all PLD data in the current frame is transmitted and then the capture stops.

[0044] During the current frame PLD payload transmission period, once the communication module's power output circuit triggers current limiting protection, the hardware circuit will output a current limiting indication signal to the GPIO pin of the main control chip where the carrier communication module is located. The controller continuously polls or monitors the GPIO status via interrupts. Once a valid current limiting indication signal is captured, the width of the current limiting indication pulse is determined based on the current limiting indication signal.

[0045] S202. Determine whether a current limiting event has occurred based on the width of the current limiting indication pulse.

[0046] Specifically, the current limiting event is determined based on the width of the current limiting indicator pulse and the preset pulse width.

[0047] Optionally, if the width of the current limiting indication pulse is greater than or equal to the preset pulse width, a current limiting event is determined to occur.

[0048] If the width of the current limiting indicator pulse is less than the preset pulse width, it is determined that no current limiting event has occurred.

[0049] If the preset pulse width is set to 1ms, after obtaining the current limiting indicator pulse width, the current limiting indicator pulse width is compared with the preset pulse width threshold. When the measured current limiting indicator pulse width is greater than or equal to 1ms, the pulse is determined to be a valid current limiting event caused by hardware overload, and a current limiting event is confirmed.

[0050] If the current limiting indication pulse width is less than 1ms, the pulse is determined to be a glitch signal caused by electromagnetic interference from the power line environment or noise in the hardware circuit, and is not a real current limiting event. Therefore, the pulse record is discarded, and no transmission gear adjustment operation is triggered. This pulse width threshold filtering mechanism filters out interference glitches, preventing noise-induced gear misadjustment.

[0051] like Figure 3As shown, the correspondence between the current frame carrier signal, current limiting signal, current limiting event capture interval, and valid current limiting event is illustrated. The carrier signal is divided into a preamble segment and a payload data segment (PLD). The current limiting event capture interval is only enabled during the PLD transmission phase. The current limiting signal generated by the preamble segment is not included in the detection. If two current limiting signals appear within the PLD interval, one of them is determined to be an interference glitch due to insufficient pulse width, while the other has a pulse width that meets the threshold requirement and is identified as a valid signal, and a corresponding current limiting event is generated.

[0052] The method provided in this application collects current limiting indication signals and identifies pulse widths. By using pulse width thresholds to distinguish between real current limiting events and interference spikes, it can filter false current limiting signals caused by electromagnetic noise in the power line environment, avoid incorrectly adjusting the transmission level based on false detection results, improve the accuracy of current limiting event identification, and ensure the reliable operation of the power level adaptive strategy.

[0053] This application also provides another possible implementation of the transmission power level adjustment method. Figure 4 This is the third flowchart illustrating a method for adjusting transmission power levels according to an embodiment of this application. Figure 4 As shown, the width of the current limiting indication pulse is determined based on the current limiting indication signal, including: S301. If the current limiting indicator signal has a rising edge, trigger the rising edge interrupt and start the preset timer.

[0054] In this embodiment, the GPIO pin connected to the current limiting indicator signal is initially configured to rise-edge interrupt trigger mode. During PLD transmission, if the GPIO pin detects a rising edge transition of the current limiting indicator signal, a hardware interrupt is triggered. After the interrupt response, a preset timer is started. The preset timer is a built-in microsecond-level high-precision timer used to record the pulse start time. At the same time, the GPIO interrupt trigger mode is dynamically switched, and the pin is reconfigured to fall-edge trigger mode, continuously waiting for the current limiting indicator signal level to fall back.

[0055] S302. If a falling edge occurs in the current limiting indicator signal, a falling edge interrupt is triggered and the value of the preset timer is read as the width of the current limiting indicator pulse.

[0056] Specifically, when the current limiting indicator signal continues for a period of time and generates a falling edge, the GPIO pin triggers a falling edge interrupt and immediately reads the current count value of the preset timer. This time reading value is used as the duration of the current limiting indicator pulse.

[0057] After the reading is complete, the preset timer can be paused or reset, and the system can wait for the next current limiting indicator signal to arrive. At the same time, the GPIO pin can be restored to the rising edge trigger configuration, and the system can continue to wait for the next pulse rising edge to realize the automatic measurement of continuous pulses.

[0058] The method provided in this application embodiment uses a hardware pulse width acquisition method that starts the timer with a rising edge interrupt and reads the timing value with a falling edge interrupt. It relies on the GPIO interrupt mechanism to accurately capture the start and end times of the current limiting pulse. It can complete the pulse width measurement with microsecond-level accuracy. Compared with software polling detection, it has lower latency and less resource consumption. It can quickly and accurately obtain the duration of the current limiting indication pulse, providing hardware timing support for reliable determination of current limiting events.

[0059] This application also provides another possible implementation of the transmission power level adjustment method. The method further includes: If no rate limiting event occurs during the transmission of carrier data in the current frame, the control communication module will continue to maintain the current transmission limit level.

[0060] In this embodiment, if no current limiting event matching the pulse width condition is captured within the complete transmission window of the current frame PLD, it indicates that the transmit power at the current transmission limit level has not triggered hardware current limiting protection. Therefore, the current transmission limit level value remains unchanged, and no level reduction operation is performed. This allows the communication module to continue transmitting carrier data for the next frame according to the current transmission limit level.

[0061] In the method provided in this application embodiment, when no rate limiting event is detected during the transmission of carrier data of the current frame, the current transmission limit level is maintained unchanged, the transmission power is not blindly reduced, the signal transmission gain corresponding to the current level is continuously preserved, the carrier signal anti-attenuation capability is maintained as much as possible, and unnecessary power reduction is avoided to prevent the signal-to-noise ratio of remote communication from decreasing and communication failure.

[0062] This application also provides another possible implementation of the transmission power level adjustment method. Figure 5 This is the fourth flowchart illustrating a method for adjusting transmission power levels according to an embodiment of this application. Figure 5 As shown, the method also includes: S401. If no rate limiting event occurs during the data transmission of the current frame, start a preset counter to count the number of consecutive times no rate limiting event occurs.

[0063] In this embodiment, for the determination result after each frame is sent, if it is determined that there is no valid rate limiting event in the current frame, a preset counter is driven to perform a counting operation to count the number of consecutive frames without valid rate limiting events; if any frame has a valid rate limiting event, the preset counter is directly cleared to zero, and the consecutive counting starts accumulating from zero again. The preset counter only counts the valid results after the PLD sending window period determination and is not affected by noise interference in the preamble stage.

[0064] S402. If the number of consecutive times without a rate limiting event reaches a preset threshold, the current sending limit level of the communication module is increased to obtain a new sending limit level, such that the new sending limit level is less than or equal to the preset maximum sending level.

[0065] Specifically, the preset counter value is read in real time and compared with a preset threshold number N. When the cumulative number of consecutive transmissions without a current limiting event reaches the preset threshold number N, it means that the current limiting protection has not been triggered for a long time while operating at the current level, and the hardware has the margin to withstand higher transmission power. In this case, the current transmission limit level of the communication module is increased, for example, by incrementing the value of the current transmission limit level by 1. At the same time, an upper limit check is performed. If the level exceeds the preset maximum transmission level after the adjustment, it is locked at the maximum transmission level and no further adjustment is made to prevent power over-limit.

[0066] Increasing the transmission limit enhances the carrier signal transmission power and optimizes the signal attenuation resistance in long-distance transmission scenarios, enabling the communication module to transmit carrier data for subsequent frames based on the increased transmission limit.

[0067] S403. Clear the count value of the preset counter.

[0068] Specifically, after increasing the current transmission limit level of the communication module and updating the global `tx_level_limit` variable, the internal count value of the preset counter is cleared, and the continuous infinite flow event statistics start from zero again. The clearing operation can avoid the continuous accumulation of counts causing the level to be repeatedly increased; after the clearing is completed, the preset counter restarts a new round of count statistics, continuously monitoring whether subsequent frames have continuous infinite flow events, and realizing a periodic and gradual increase in the power level.

[0069] In the method provided in this application embodiment, the number of transmitted frames that have not generated a rate limiting event is counted by a counter. After the preset number threshold is met, the transmission limit level is increased. After the transmission limit level is increased, the preset counter is reset. When there is no risk of rate limiting for a long time, the transmission power is gradually restored, making full use of the hardware power margin to enhance the signal anti-attenuation performance. At the same time, it prevents the level from being continuously increased beyond the limit, realizing a gradual increase in the power level and balancing the communication transmission distance requirements and hardware output safety.

[0070] The following will continue to explain the transmission power level adjustment device and electronic device provided in any of the above embodiments of this application. The specific implementation process and the resulting technical effects are the same as those in the corresponding method embodiments. For the sake of brevity, the parts not mentioned in this embodiment can be referred to the corresponding content in the method embodiment.

[0071] Figure 6 This is a functional module diagram of a transmission power level adjustment device provided in an embodiment of this application. Figure 6 As shown, the transmission power level adjustment device 100 includes: The control module 110 is used to control the communication module to send the carrier data of the current frame according to the current transmission limit level; The determination module 120 is used to determine whether the communication module generates a rate limiting event during the transmission of carrier data in the current frame; The adjustment module 130 is used to reduce the current transmission limit level of the communication module if a flow limiting event occurs during the transmission of carrier data of the current frame, so as to obtain a new transmission limit level, and the new transmission limit level is greater than or equal to the preset minimum transmission level. The control module 110 is also used to control the communication module to send the carrier data of the next frame according to the new transmission limit level.

[0072] Optionally, the determining module 120 is further configured to, if it receives a current limiting indication signal for the current frame sent by the communication module, determine the width of the current limiting indication pulse based on the current limiting indication signal; and determine whether a current limiting event is generated based on the width of the current limiting indication pulse.

[0073] Optionally, the determining module 120 is further configured to trigger a rising edge interrupt and start a preset timer when the current limiting indication signal has a rising edge; and to trigger a falling edge interrupt and read the value of the preset timer when the current limiting indication signal has a falling edge, as the width of the current limiting indication pulse.

[0074] Optionally, the determining module 120 is further configured to determine that a current limiting event has been generated if the width of the current limiting indicator pulse is greater than or equal to a preset pulse width; and to determine that no current limiting event has been generated if the width of the current limiting indicator pulse is less than the preset pulse width.

[0075] Optionally, the control module 110 is also configured to control the communication module to continue maintaining the current transmission limit level if no flow limiting event occurs during the transmission of carrier data of the current frame.

[0076] Optionally, the apparatus method further includes: The counting module is used to start a preset counter to count the number of consecutive times no rate limiting event occurs if no rate limiting event occurs during the data transmission of the current frame. The adjustment module 130 is also used to increase the current sending limit level of the communication module if the number of consecutive times without the occurrence of a flow limiting event reaches a preset number threshold, so as to obtain a new sending limit level, and the new sending limit level is less than or equal to the preset maximum sending level. The clear module is used to clear the count value of the preset counter.

[0077] Optionally, the device further includes: The initialization module is used to initialize the transmission limit level of the communication module to the preset maximum transmission level.

[0078] The above-described device is used to execute the method provided in the foregoing embodiments, and its implementation principle and technical effect are similar, so they will not be described again here.

[0079] These modules can be one or more integrated circuits configured to implement the above methods, such as one or more Application Specific Integrated Circuits (ASICs), one or more microprocessors, or one or more Field Programmable Gate Arrays (FPGAs). Alternatively, when a module is implemented using processing element scheduler code, the processing element can be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. Furthermore, these modules can be integrated together as a system-on-a-chip (SOC).

[0080] Figure 7 This is a schematic diagram of a controller provided in an embodiment of this application. The controller can be used for adjusting the transmission power level. Figure 7 As shown, the controller includes: a processor 210, a storage medium 220, and a bus 230.

[0081] Storage medium 220 stores machine-readable instructions executable by processor 210. When the controller is running, processor 210 communicates with storage medium 220 via bus 230, and processor 210 executes the machine-readable instructions to perform the steps of the above method embodiment. The specific implementation and technical effects are similar, and will not be described again here.

[0082] Optionally, this application also provides a storage medium 220, on which a computer program is stored. When the computer program is run by a processor, it executes the steps of the above-described method embodiments. The specific implementation and technical effects are similar, and will not be repeated here.

[0083] This application also provides a communication device, which includes a carrier communication module and a controller in the carrier communication module for executing the steps of the above method embodiments. The specific implementation and technical effects are similar and will not be repeated here.

[0084] In the several embodiments provided by this invention, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0085] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0086] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or in the form of hardware plus software functional units.

[0087] The integrated units implemented as software functional units described above can be stored in a computer-readable storage medium. These software functional units, stored in a storage medium, include several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute some steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0088] The above are merely specific embodiments of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A method for adjusting transmission power levels, characterized in that, The method includes: The control communication module transmits carrier data for the current frame according to the current transmission limit level; Determine whether the communication module generates a rate limiting event during the transmission of carrier data in the current frame; If a rate limiting event occurs during the transmission of carrier data in the current frame, the current transmission limit level of the communication module is adjusted to a lower level to obtain a new transmission limit level, such that the new transmission limit level is greater than or equal to the preset minimum transmission level. The communication module is controlled to send carrier data for the next frame according to the new transmission limit level.

2. The method according to claim 1, characterized in that, Determining whether the communication module generates a rate-limiting event during the transmission of carrier data in the current frame includes: If a rate limiting indication signal for the current frame is received from the communication module, the width of the rate limiting indication pulse is determined based on the rate limiting indication signal. Whether a current limiting event has occurred is determined based on the width of the current limiting indication pulse.

3. The method according to claim 2, characterized in that, Determining the width of the current limiting indication pulse based on the current limiting indication signal includes: If the current limiting indication signal has a rising edge, a rising edge interrupt is triggered and a preset timer is started; If the current limiting indication signal has a falling edge, a falling edge interrupt is triggered and the value of the preset timer is read as the width of the current limiting indication pulse.

4. The method according to claim 2, characterized in that, Determining whether the current limiting event occurs based on the width of the current limiting indication pulse includes: If the width of the current limiting indication pulse is greater than or equal to the preset pulse width, then a current limiting event is determined to occur; If the width of the current limiting indication pulse is less than the preset pulse width, it is determined that no current limiting event has occurred.

5. The method according to claim 1, characterized in that, The method further includes: If no rate limiting event occurs during the transmission of carrier data in the current frame, the communication module is controlled to continue maintaining the current transmission limit level.

6. The method according to claim 5, characterized in that, The method further includes: If no rate limiting event occurs during the data transmission of the current frame, a preset counter is started to count the number of consecutive times no rate limiting event occurs. If the number of consecutive times without a rate limiting event reaches a preset threshold, the current sending limit level of the communication module is increased to obtain a new sending limit level, such that the new sending limit level is less than or equal to the preset maximum sending level. The count value of the preset counter is cleared.

7. The method according to claim 1, characterized in that, Before the control communication module transmits the carrier data of the current frame according to the current transmission limit level, the method further includes: The transmission limit of the communication module is initialized to the preset maximum transmission limit.

8. A power transmission level adjustment device, characterized in that, The device includes: The control module is used to control the communication module to send carrier data of the current frame according to the current transmission limit level; A determining module is used to determine whether the communication module generates a rate limiting event during the transmission of carrier data in the current frame; An adjustment module is used to reduce the current transmission limit level of the communication module if a rate limiting event occurs during the transmission of carrier data of the current frame, so as to obtain a new transmission limit level, and the new transmission limit level is greater than or equal to the preset minimum transmission level. The control module is also used to control the communication module to send carrier data for the next frame according to the new transmission limit level.

9. A carrier communication module, characterized in that, The carrier communication module includes a controller and a communication module, wherein the controller is used to execute the steps of the transmission power level adjustment method according to any one of claims 1-7.

10. A communication device, characterized in that, The communication device includes a carrier communication module, wherein the controller in the carrier communication module is used to execute the steps of the transmission power level adjustment method according to any one of claims 1-7.