Signal control method and device, equipment, storage medium and product

By introducing fuzzy algorithms into the PID control system and dynamically adjusting PID parameters, the problem of PID parameter adjustment in complex, nonlinear or time-varying systems is solved, and better signal control automation and system stability are achieved.

CN120010222APending Publication Date: 2025-05-16SHENZHEN HUAPTEC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510016899.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-06
Publication Date
2025-05-16

AI Technical Summary

Technical Problem

When facing complex, nonlinear or time-varying systems, appropriate PID parameters are difficult to automatically adjust and adapt to the dynamic changes of the system. They usually rely on experience and trial and error in debugging control.

Method used

By responding to the preset trigger condition, the error value and error change rate of the current output signal level are calculated and inputted to the fuzzy algorithm, the fuzzy coefficient adjustment amount is determined, the parameters in the PID algorithm are updated, and the gain value is dynamically adjusted to achieve signal control.

Benefits of technology

Effectively adapt to the dynamic changes of complex, nonlinear or time-varying systems, reduces dependence on debugging experience, improves the automation level of signal control and the stability and robustness of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120010222A_ABST
    Figure CN120010222A_ABST
Patent Text Reader

Abstract

The invention discloses a signal control method and device, equipment, a storage medium and a product, and relates to the technical field of signal control, and the signal control method comprises the steps: responding to a preset triggering condition, and calculating an error value and an error change rate between a detection value of a current output signal level and a preset detection value; inputting the error value and the error change rate into a preset fuzzy algorithm, and determining a fuzzy coefficient adjustment amount corresponding to the error value and the error change rate; and on the basis of the fuzzy coefficient adjustment amount, parameters of coefficients in a PID algorithm are updated, and a gain value is adjusted on the basis of the updated PID algorithm, so that signal control is realized. According to the method, the device and the system, the problems that appropriate PID parameters usually need to be adjusted by depending on experience of debugging control and continuous trial and error and are still difficult to adapt to dynamic change of the system when facing a complex, nonlinear change or time-varying system can be avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of signal control technology, and in particular to a signal control method, device, equipment, storage medium and product. Background Art

[0002] Automatic Gain Control (AGC) is a common and widely used method to adjust the gain of repeaters and receivers in communications, radar, broadcasting, etc. to ensure that the received signal under various signal strengths can be maintained at an appropriate level when output, thereby improving the dynamic range of the receiver.

[0003] In the related art, a simple positive and negative feedback mechanism is usually relied on to dynamically adjust the gain of the amplifier to maintain the stability of the output signal. A simple positive and negative feedback mechanism is usually relied on to dynamically adjust the gain of the amplifier to maintain the stability of the output signal. However, when faced with complex, nonlinear or time-varying systems, the appropriate PID parameters usually also need to rely on the experience of debugging control and continuous trial and error to adjust, and it is still difficult to adapt to the dynamic changes of the system. Summary of the invention

[0004] The main purpose of this application is to provide a signal control method, device, equipment, storage medium and product, which aims to solve the technical problem that when facing complex, nonlinear or time-varying systems, suitable PID parameters usually need to rely on debugging control experience and continuous trial and error to adjust, and are still difficult to adapt to the dynamic changes of the system.

[0005] To achieve the above object, the present application proposes a signal control method, which includes:

[0006] In response to a preset trigger condition, calculating an error value and an error change rate between a detection value of a current output signal level and a preset detection value;

[0007] Inputting the error value and the error change rate into a preset fuzzy algorithm to determine a fuzzy coefficient adjustment amount corresponding to the error value and the error change rate;

[0008] Based on the fuzzy coefficient adjustment amount, the parameters of the coefficients in the PID algorithm are updated, and the gain value is adjusted based on the updated PID algorithm to achieve signal control.

[0009] In one embodiment, the step of inputting the error value and the error change rate into a preset fuzzy algorithm and determining the fuzzy coefficient adjustment amount corresponding to the error value and the error change rate comprises:

[0010] Inputting the error value and the error change rate into a preset fuzzy algorithm to obtain membership values ​​corresponding to the error value and the error change rate respectively;

[0011] Based on the membership value, determining the fuzzy set to which the error value and the error change rate belong;

[0012] Based on the fuzzy set and a preset fuzzy rule table, a fuzzy coefficient adjustment amount corresponding to the error value and the error change rate is determined.

[0013] In one embodiment, the fuzzy coefficient adjustment amount represents a change range of the gain value.

[0014] In one embodiment, the step of updating the parameters of the coefficients in the PID algorithm based on the fuzzy coefficient adjustment amount includes:

[0015] Based on the fuzzy set and a preset fuzzy rule table, determining a fuzzy coefficient adjustment amount corresponding to the fuzzy set and a degree of membership belonging to the fuzzy coefficient adjustment amount;

[0016] Based on the membership degree and the fuzzy coefficient adjustment amount, the defuzzified fuzzy coefficient adjustment amount is determined, and based on the defuzzified fuzzy coefficient adjustment amount, the parameters of the coefficients in the PID algorithm are updated.

[0017] In one embodiment, the step of calculating the error value and the error change rate between the detection value of the current output signal level and the preset detection value in response to the preset trigger condition comprises:

[0018] Define fuzzy sets of error values ​​and error change rates;

[0019] Determining the number of the fuzzy rules based on the number of the fuzzy sets;

[0020] Determining the type of the fuzzy coefficient adjustment amount based on the number of the fuzzy rules;

[0021] Based on the types of the fuzzy set and the fuzzy coefficient adjustment amount, a preset fuzzy rule table is established.

[0022] In one embodiment, the step of calculating the error value and the error change rate between the detection value of the current output signal level and the preset detection value in response to the preset trigger condition comprises:

[0023] In response to the detection value of the current output signal level being greater than a preset detection value or in response to the detection value of the current output signal level being less than the preset detection value, and the attenuation value of the adjusted gain being greater than a preset threshold, calculating an error value between the detection value and the preset detection value;

[0024] Based on the error value, the error change rate is determined.

[0025] In addition, to achieve the above-mentioned purpose, the present application also proposes a signal control device, the signal control device comprising:

[0026] A response module, used for calculating the error value and error change rate between the detection value of the current output signal level and the preset detection value in response to a preset trigger condition;

[0027] A determination module, used for inputting the error value and the error change rate into a preset fuzzy algorithm to determine a fuzzy coefficient adjustment amount corresponding to the error value and the error change rate;

[0028] The updating module is used to update the parameters of the coefficients in the PID algorithm based on the fuzzy coefficient adjustment amount, and adjust the gain value based on the updated PID algorithm to achieve signal control.

[0029] In addition, to achieve the above objectives, the present application also proposes a signal control device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the signal control method described above.

[0030] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the signal control method described above are implemented.

[0031] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the signal control method described above are implemented.

[0032] One or more technical solutions proposed in this application have at least the following technical effects:

[0033] Compared with the related art, which usually relies on a simple positive and negative feedback mechanism to dynamically adjust the gain of the amplifier to maintain the stability of the output signal, and usually relies on a simple positive and negative feedback mechanism to dynamically adjust the gain of the amplifier to maintain the stability of the output signal, but when facing complex, nonlinear changes or time-varying systems, suitable PID parameters usually also need to rely on the experience of debugging control and continuous trial and error to adjust, and it is still difficult to adapt to the dynamic changes of the system, the present application responds to a preset trigger condition, calculates the error value and the error change rate between the detection value of the current output signal level and the preset detection value; inputs the error value and the error change rate into a preset fuzzy algorithm, and determines the fuzzy coefficient adjustment amount corresponding to the error value and the error change rate ; Based on the fuzzy coefficient adjustment amount, the parameters of the coefficients in the PID algorithm are updated, and the gain value is adjusted based on the updated PID algorithm to achieve signal control. It can be understood that after the error value and the error change rate are calculated in response to the preset trigger condition, the present application inputs the error value and the error change rate into the preset fuzzy algorithm, and updates the PID algorithm based on the obtained fuzzy coefficient adjustment amount, and adjusts the gain value based on the updated PID algorithm to achieve signal control. By introducing the fuzzy coefficient adjustment amount, the dynamic changes of the system can be adapted, and the problem that the appropriate PID parameters usually also need to rely on the experience of debugging control and continuous trial and error to adjust, and it is still difficult to adapt to the dynamic changes of the system can be avoided. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0035] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0036] Figure 1 A schematic diagram of a flow chart provided for the first embodiment of the signal control method of the present application;

[0037] Figure 2 This is a parameter update flow chart of the signal control method of this application;

[0038] Figure 3 A schematic diagram of a flow chart provided for the second embodiment of the signal control method of the present application;

[0039] Figure 4 This is a trigger flow chart of the signal control method of this application;

[0040] Figure 5 This is a schematic diagram of the module structure of the signal control device according to an embodiment of the present application;

[0041] Figure 6 Schematic diagram of the device structure of the hardware operating environment involved in the signal control method in the embodiment of the present application.

[0042] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0043] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0044] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0045] The main solution of the embodiment of the present application is: in response to a preset trigger condition, calculate the error value and the error change rate between the detection value of the current output signal level and the preset detection value; input the error value and the error change rate into a preset fuzzy algorithm to determine the fuzzy coefficient adjustment amount corresponding to the error value and the error change rate; based on the fuzzy coefficient adjustment amount, update the parameters of the coefficient in the PID algorithm, and adjust the gain value based on the updated PID algorithm to achieve signal control.

[0046] In the related art, a simple positive and negative feedback mechanism is usually relied on to dynamically adjust the gain of the amplifier to maintain the stability of the output signal. A simple positive and negative feedback mechanism is usually relied on to dynamically adjust the gain of the amplifier to maintain the stability of the output signal. However, when faced with complex, nonlinear or time-varying systems, the appropriate PID parameters usually also need to rely on the experience of debugging control and continuous trial and error to adjust, and it is still difficult to adapt to the dynamic changes of the system.

[0047] In response to a preset trigger condition, the present application calculates the error value and the error change rate between the detection value of the current output signal level and the preset detection value; inputs the error value and the error change rate into a preset fuzzy algorithm to determine the fuzzy coefficient adjustment amount corresponding to the error value and the error change rate; based on the fuzzy coefficient adjustment amount, updates the parameters of the coefficients in the PID algorithm, and adjusts the gain value based on the updated PID algorithm to achieve signal control. It can be understood that after the present application calculates the error value and the error change rate in response to a preset trigger condition, the error value and the error change rate are input into a preset fuzzy algorithm, and the PID algorithm is updated based on the obtained fuzzy coefficient adjustment amount, and the gain value is adjusted based on the updated PID algorithm to achieve signal control. By introducing the fuzzy coefficient adjustment amount to adapt to the dynamic changes of the system, it can be avoided that when facing complex, nonlinear changes or time-varying systems, the appropriate PID parameters usually also need to rely on the experience of debugging control and continuous trial and error to adjust, and it is still difficult to adapt to the dynamic changes of the system.

[0048] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, etc. The following takes the signal control device as an example to illustrate this embodiment and the following embodiments.

[0049] Based on this, the present application embodiment provides a signal control method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the signal control method of the present application.

[0050] In this embodiment, the signal control method includes steps S100 to S300:

[0051] Step S100, in response to a preset trigger condition, calculating an error value and an error change rate between a detection value of a current output signal level and a preset detection value;

[0052] It should be noted that the executor of this embodiment is a signal control device, which can be an MCU microcontroller unit. The error value (e) is the difference between the current coefficient and the actual coefficient. The error change rate (de / dt) represents the rate of change of the error. The signal control device predefines a trigger condition, and when the condition is met, the signal control device starts to calculate the error value (e) between the current output signal level and the preset detection value and the error change rate (de / dt).

[0053] Step S200, inputting the error value and the error change rate into a preset fuzzy algorithm to determine a fuzzy coefficient adjustment amount corresponding to the error value and the error change rate;

[0054] It is understandable that the fuzzy coefficient adjustment amount is used to adjust the increment or decrement of the proportional (Kp), integral (Ki) and differential (Kd) coefficients of the PID controller. The signal control device feeds the error value (Error) and the error change rate (ΔError) as input variables into the pre-designed fuzzy algorithm to obtain the fuzzy coefficient adjustment amount used to adjust the increment or decrement of the proportional (Kp), integral (Ki) and differential (Kd) coefficients of the PID controller.

[0055] It should be noted that, since fuzzy logic can handle nonlinear and complex system behaviors and can simulate the knowledge and decision-making process of human experts, the fuzzy PID controller is more flexible and effective than the traditional PID controller when facing nonlinear, time-varying or uncertain systems. Therefore, step S200 can avoid the problem that when facing complex, nonlinear or time-varying systems, the appropriate PID parameters usually need to rely on the experience of debugging control and continuous trial and error to adjust, and it is still difficult to adapt to the dynamic changes of the system.

[0056] Step S300, based on the fuzzy coefficient adjustment amount, the parameters of the coefficients in the PID algorithm are updated, and the gain value is adjusted based on the updated PID algorithm to achieve signal control.

[0057] It is understandable that the signal control device adjusts the proportional, integral and differential coefficients of the PID controller accordingly according to the output of the fuzzy algorithm, that is, the fuzzy coefficient adjustment amount. The updated PID parameters should be able to respond to the current system state more effectively, thereby better controlling the output signal. The control signal is recalculated using the updated PID parameters, and the adjusted control signal is sent to the actuator or control system to adjust the actual output of the system.

[0058] Specifically, the PID algorithm defines three control strategies: proportional control (P), integral control (I) and differential control (D). It handles errors by combining the three control strategies of proportional, integral and differential and their corresponding gain coefficients, thereby achieving precise control of the output signal.

[0059] Furthermore, the signal control device is also provided with a digitally controlled attenuator, which is an electronic device used to accurately control the signal strength, and adjusts its internal attenuation value through a digital input signal, thereby achieving linear or nonlinear attenuation of the input signal. The signal control device calculates the error value between the current signal level detection value and the ideal target signal level detection value. The proportional controller adjusts the gain value according to the error value to control the current output signal level, and responds quickly to eliminate the current deviation. The proportional controller can handle transient deviations, but cannot handle long-term deviations. Therefore, after the proportional controller completes the processing, it enters the integral controller. The integral controller accumulates the cumulative amount of deviations, so that the long-term deviation is gradually reduced to zero, ensuring that the system output can accurately approach the set value and maintain accuracy during long-term operation. Especially when affected by external disturbances or changes in system parameters, the error is quickly compensated to maintain a stable output signal level. The integral gain coefficient adjustment of the integral controller may cause slight system oscillation, so it is necessary to enter the differential controller to solve this problem. The following formula is used. The differential controller performs feedback adjustment on the rate of change of the error to prevent the system from overreacting to the ideal target point, and can respond immediately to rapid changes to reduce overshoot and oscillation, so as to perfectly improve the dynamic response characteristics of the system. The three controllers reasonably adjust the gain coefficients to balance the steady-state performance and dynamic performance. After the three controllers complete the calculation, the current system gain is adjusted by the MCU to control the digital attenuator, thereby realizing linear or nonlinear attenuation of the input signal.

[0060] In a feasible implementation manner, step S200 may include the following steps:

[0061] Inputting the error value and the error change rate into a preset fuzzy algorithm to obtain membership values ​​corresponding to the error value and the error change rate respectively;

[0062] It should be noted that the membership value indicates the degree to which the input variable belongs to a specific fuzzy set. The signal control device calculates the membership value of each input variable to each fuzzy set. This value is a number between 0 and 1, indicating the degree to which the input variable belongs to a specific fuzzy set. For example, if the error value is -5, it may have a membership value of 0.8 for "negative large", a membership value of 0.2 for "negative small", and a membership value close to 0 for other sets.

[0063] Based on the membership value, determining the fuzzy set to which the error value and the error change rate belong;

[0064] It is understandable that the signal control device can determine the fuzzy set to which the error value and the error change rate most likely belong based on the calculated membership value, and usually, the set with the largest membership value is selected as the representative of the input variable.

[0065] Based on the fuzzy set and a preset fuzzy rule table, a fuzzy coefficient adjustment amount corresponding to the error value and the error change rate is determined.

[0066] It should be noted that the preset fuzzy rule table is a predefined table that lists all possible input combinations (fuzzy sets of error values ​​and error change rates) and corresponding outputs (i.e., the adjustment amount of PID parameters), and it is necessary to ensure that the rule base can fully cover these combinations to better provide controllability and stability, making the defuzzification stage more accurate. The signal control device searches for the corresponding rules in the fuzzy rule table according to the fuzzy sets to which the determined error values ​​and error change rates belong. Each rule will generate one or more fuzzy outputs, which are also expressed in the form of membership functions. For example, for the proportional gain Kp, the rules may suggest "slightly increase", "substantially increase" or "remain unchanged".

[0067] In a feasible implementation manner, the fuzzy coefficient adjustment amount represents a change range of the gain value.

[0068] It is understandable that the fuzzy coefficient adjustment amount is used to characterize the gain value in the fuzzy PID control system. These adjustment amounts are determined through the fuzzy reasoning process and reflect the deviation between the current state of the system and the expected state and the changing trend of this deviation.

[0069] In a feasible implementation manner, based on the fuzzy coefficient adjustment amount, the step of updating the parameters of the coefficients in the PID algorithm includes:

[0070] Based on the fuzzy set and a preset fuzzy rule table, determining a fuzzy coefficient adjustment amount corresponding to the fuzzy set and a degree of membership belonging to the fuzzy coefficient adjustment amount;

[0071] It should be noted that the signal control device determines the fuzzy set to which each input variable belongs based on the membership values ​​of the error value and the error change rate, as well as the preset fuzzy rule table. For each fuzzy rule, it will specify a fuzzy output, which represents the degree to which the PID gain should be increased, decreased, or maintained unchanged. At the same time, the membership value of each fuzzy output is calculated, which represents the degree of influence of the rule on the final output.

[0072] Based on the membership degree and the fuzzy coefficient adjustment amount, the defuzzified fuzzy coefficient adjustment amount is determined, and based on the defuzzified fuzzy coefficient adjustment amount, the parameters of the coefficients in the PID algorithm are updated.

[0073] It can be understood that the signal control device converts the fuzzy set into a specific numerical value, that is, the defuzzified fuzzy coefficient adjustment amount, calculates the geometric center of the fuzzy output as the final numerical output, and uses the defuzzified fuzzy coefficient adjustment amount to update the current PID parameters, and applies the updated PID parameters to the control system to adjust the behavior of the controller, referring to Figure 2 , Figure 2 A parameter update flow chart is provided.

[0074] In particular, the goal of defuzzification of a signal control device is to extract a specific control value from the fuzzy reasoning result for practical application, convert the fuzzy output generated by the fuzzy rule base (such as "increase a medium amount" and "decrease a small amount") into an actual numerical value, calculate the final output value based on the centroid of the fuzzy set using the centroid method, take the calculated centroid (i.e., centroid) of the fuzzy set as the result of defuzzification, and update the proportional, integral, and differential gains of the PID controller according to the defuzzification result.

[0075] Specifically, the updated PID formula is as follows:

[0076] Proportional controller:

[0077] P(t)=Kp*e(t), where P(t) is the proportional output part, Kp is the proportional gain coefficient, and e(t) is the time error;

[0078] Integral controller:

[0079] I(t)=Ki*∫e(t)dt, where I(t) is the integral output part, Ki is the integral gain coefficient, and e(γ) is the time error;

[0080] Derivative controller:

[0081] D(t)=Kd*de(t) / dt, where D(t) is the differential output part, Kd is the differential gain coefficient, e(t) is the time error, dt is the time interval, and de(t) represents the error change;

[0082] In particular, the dt of the PID formula needs to be configured as the MCU operating rate to ensure that the signal control device responds faster. Compared with the traditional automatic gain control method, the feedback strategy is single. When dealing with rapidly changing signal environments, some respond very slowly and cannot adjust the gain in time, resulting in equipment damage. The automatic gain control method of the three controllers after configuration can solve this problem well, with multi-dimensional feedback strategies and fast response speed.

[0083] In this embodiment, the signal control device introduces a fuzzy coefficient adjustment amount based on the original PID parameters, which solves the problem that when facing complex, nonlinear or time-varying systems, the appropriate PID parameters usually need to rely on the experience of debugging control and continuous trial and error to adjust, and it is still difficult to adapt to the dynamic changes of the system.

[0084] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 3 Before step S100, the signal control method further includes steps A100 to A400:

[0085] Step A100, defining a fuzzy set of error values ​​and error change rates;

[0086] It should be noted that, before performing signal control, the signal control device defines appropriate fuzzy sets for the error value and the error change rate. These sets should be able to fully cover the possible input range and have sufficient resolution to capture subtle changes in the system.

[0087] Specifically, the error value and the error change rate have corresponding fuzzy sets, as shown below:

[0088] Error value:

[0089] Small: The error is small;

[0090] Medium: The error is moderate;

[0091] Large: The error is large;

[0092] Error change rate:

[0093] Increasing: The error rate of change is increasing.

[0094] Decreasing: The rate of change of the error is decreasing.

[0095] Constant: The error rate of change is stable.

[0096] Step A200, determining the number of the fuzzy rules based on the number of the fuzzy sets;

[0097] It is understandable that the signal control device determines the number of fuzzy rules required based on the complexity of the system and the control target. The number of fuzzy rules directly affects the flexibility and response speed of the system. Generally, the more rules there are, the more adaptable the system is, but the greater the computational burden is. The number of rules depends on the number of combinations of input variables and fuzzy sets. For example, if there are 3 fuzzy sets of control errors and 3 error change rate sets, there may be 3×3=9 rules.

[0098] Step A300, determining the type of the fuzzy coefficient adjustment amount based on the number of the fuzzy rules;

[0099] It should be noted that the signal control device defines a specific adjustment range for each gain, which is achieved by defining a group of fuzzy outputs.

[0100] Specifically, the set of fuzzy coefficient adjustment amounts is as follows:

[0101] Increase Slightly: Slightly increase the coefficient;

[0102] Increase Moderately: Moderate increase coefficient;

[0103] Increase Significantly: Increase the coefficient significantly;

[0104] Decrease Slightly: Slightly reduce the coefficient;

[0105] Decrease Moderately: Moderate reduction coefficient;

[0106] Decrease Significantly: Significantly reduce the coefficient.

[0107] Step A400: establishing a preset fuzzy rule table based on the fuzzy set and the type of the fuzzy coefficient adjustment amount.

[0108] It is understandable that the signal control device constructs a fuzzy rule table according to the previously determined fuzzy set, number of rules and adjustment method.

[0109] Specifically, the preset fuzzy rule table is shown in Table 1:

[0110] Table 1

[0111] Error (e) Error change rate (de / dt) Coefficient adjustment (ΔK) Small Increase Add a small amount Small constant Increase the amount Small Reduce Increase the amount middle Increase Increase the amount middle constant Increase the amount middle Reduce Reduce a small amount big Increase Increase a lot big constant Reduce the amount big Reduce Reduce a lot

[0112] Specifically, since the signal control device can be applied to a repeater, the preset fuzzy rule table is not fixed, and it is necessary to redesign or adjust the details of the preset fuzzy rule table according to the characteristics, control sensitivity and control requirements of different controlled products.

[0113] In a feasible implementation manner, in response to a preset trigger condition, the step of calculating the error value and the error change rate between the detection value of the current output signal level and the preset detection value includes the following steps:

[0114] In response to the detection value of the current output signal level being greater than a preset detection value or in response to the detection value of the current output signal level being less than the preset detection value, and the attenuation value of the adjusted gain being greater than a preset threshold, calculating an error value between the detection value and the preset detection value;

[0115] It should be noted that the error value is the difference between the detection value of the current output signal level and the detection value of the ideal output signal level. The signal control device monitors the detection value of the current output signal level and compares it with the preset detection value. Figure 4 , Figure 4 A trigger flow chart is provided. The trigger conditions include two situations:

[0116] The detection value of the current output signal level is greater than the preset detection value;

[0117] The detection value of the current output signal level is less than the preset detection value.

[0118] In addition, there is an additional condition: the attenuation value of the adjusted gain must be greater than a preset threshold, which means that the signal control device not only pays attention to the deviation of the output signal, but also pays attention to the effect of the gain adjustment.

[0119] Further, specifically, before performing signal control, the signal control device first determines the ideal target output signal level of the repeater, and the function of the automatic gain control is to control the output signal to the ideal target output signal level by automatically adjusting the gain.

[0120] In particular, if the signal control device detects that the detection value of the current output signal level is less than the detection value of the ideal output signal level, and the attenuation value of the adjusted gain is 0, it enters the next round of re-detection to obtain the detection value for judgment.

[0121] Based on the error value, the error change rate is determined.

[0122] It is understandable that the signal control device calculates the error change rate based on the error value.

[0123] In this embodiment, the signal control device calculates the error value and the error change rate, and the fuzzy PID controller can understand the state of the system more comprehensively and dynamically adjust the control parameters according to this information. The introduction of the error change rate not only improves the response speed of the system, but also enhances the stability and robustness of the system, ensuring that the system can quickly and accurately reach the ideal output level.

[0124] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the signal control method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0125] This application also provides a signal control device, please refer to Figure 5 , the signal control device comprises:

[0126] A response module 10, for calculating an error value and an error change rate between a detection value of a current output signal level and a preset detection value in response to a preset trigger condition;

[0127] A determination module 20, configured to input the error value and the error change rate into a preset fuzzy algorithm to determine a fuzzy coefficient adjustment amount corresponding to the error value and the error change rate;

[0128] The updating module 30 is used to update the parameters of the coefficients in the PID algorithm based on the fuzzy coefficient adjustment amount, and adjust the gain value based on the updated PID algorithm to achieve signal control.

[0129] The signal control device provided by the present application adopts the signal control method in the above embodiment to solve the technical problem of signal control. Compared with the prior art, the beneficial effects of the signal control device provided by the present application are the same as the beneficial effects of the signal control method provided by the above embodiment, and other technical features in the signal control device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0130] The present application provides a signal control device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the signal control method in the above-mentioned embodiment one.

[0131] Reference below Figure 6, which shows a schematic diagram of the structure of a signal control device suitable for implementing the embodiment of the present application. The signal control device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptops, tablet computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The signal control device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0132] like Figure 6 As shown, the signal control device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the signal control device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the signal control device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a signal control device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.

[0133] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0134] The signal control device provided by the present application adopts the signal control method in the above embodiment to solve the technical problem of signal control. Compared with the prior art, the beneficial effects of the signal control device provided by the present application are the same as the beneficial effects of the signal control method provided by the above embodiment, and other technical features in the signal control device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0135] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0136] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0137] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, wherein the computer-readable program instructions are used to execute the signal control method in the above-mentioned embodiment.

[0138] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0139] The computer-readable storage medium may be included in the signal control device; or may exist independently without being assembled into the signal control device.

[0140] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the signal control device, the signal control device: in response to a preset trigger condition, calculates the error value and the error change rate between the detection value of the current output signal level and the preset detection value; inputs the error value and the error change rate into a preset fuzzy algorithm, and determines the fuzzy coefficient adjustment amount corresponding to the error value and the error change rate; based on the fuzzy coefficient adjustment amount, updates the parameters of the coefficients in the PID algorithm, and adjusts the gain value based on the updated PID algorithm to achieve signal control.

[0141] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0142] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0143] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0144] The readable storage medium provided in the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned signal control method, and can solve the technical problems of signal control. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the present application are the same as the beneficial effects of the signal control method provided in the above-mentioned embodiment, and will not be described in detail here.

[0145] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned signal control method when executed by a processor.

[0146] The computer program product provided by the present application can solve the technical problem of signal control. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the signal control method provided by the above embodiment, which will not be repeated here.

[0147] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A signal control method, characterized in that: The signal control method comprises: In response to a preset trigger condition, calculating an error value and an error change rate between a detection value of a current output signal level and a preset detection value; Inputting the error value and the error change rate into a preset fuzzy algorithm to determine a fuzzy coefficient adjustment amount corresponding to the error value and the error change rate; Based on the fuzzy coefficient adjustment amount, the parameters of the coefficients in the PID algorithm are updated, and the gain value is adjusted based on the updated PID algorithm to achieve signal control.

2. The signal control method according to claim 1, characterized in that: The step of inputting the error value and the error change rate into a preset fuzzy algorithm to determine the fuzzy coefficient adjustment amount corresponding to the error value and the error change rate comprises: Inputting the error value and the error change rate into a preset fuzzy algorithm to obtain membership values ​​corresponding to the error value and the error change rate respectively; Based on the membership value, determining the fuzzy set to which the error value and the error change rate belong; Based on the fuzzy set and a preset fuzzy rule table, a fuzzy coefficient adjustment amount corresponding to the error value and the error change rate is determined.

3. The signal control method according to claim 2, characterized in that: The fuzzy coefficient adjustment amount represents the change range of the gain value.

4. The signal control method according to claim 2, characterized in that: The step of updating the parameters of the coefficients in the PID algorithm based on the fuzzy coefficient adjustment amount includes: Based on the fuzzy set and a preset fuzzy rule table, determining a fuzzy coefficient adjustment amount corresponding to the fuzzy set and a degree of membership belonging to the fuzzy coefficient adjustment amount; Based on the membership degree and the fuzzy coefficient adjustment amount, the defuzzified fuzzy coefficient adjustment amount is determined, and based on the defuzzified fuzzy coefficient adjustment amount, the parameters of the coefficients in the PID algorithm are updated.

5. The signal control method according to claim 1, characterized in that: The step of calculating the error value and the error change rate between the detection value of the current output signal level and the preset detection value in response to the preset trigger condition includes: Define fuzzy sets of error values ​​and error change rates; Determining the number of the fuzzy rules based on the number of the fuzzy sets; Determining the type of the fuzzy coefficient adjustment amount based on the number of the fuzzy rules; Based on the types of the fuzzy set and the fuzzy coefficient adjustment amount, a preset fuzzy rule table is established.

6. The signal control method according to claim 1, characterized in that: The step of calculating the error value and the error change rate between the detection value of the current output signal level and the preset detection value in response to the preset trigger condition comprises: In response to the detection value of the current output signal level being greater than a preset detection value or in response to the detection value of the current output signal level being less than the preset detection value, and the attenuation value of the adjusted gain being greater than a preset threshold, calculating an error value between the detection value and the preset detection value; Based on the error value, the error change rate is determined.

7. A signal control device, characterized in that: The device comprises: A response module, used for calculating the error value and error change rate between the detection value of the current output signal level and the preset detection value in response to a preset trigger condition; A determination module, used for inputting the error value and the error change rate into a preset fuzzy algorithm to determine a fuzzy coefficient adjustment amount corresponding to the error value and the error change rate; The updating module is used to update the parameters of the coefficients in the PID algorithm based on the fuzzy coefficient adjustment amount, and adjust the gain value based on the updated PID algorithm to achieve signal control.

8. A signal control device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the signal control method according to any one of claims 1 to 6.

9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the signal control method according to any one of claims 1 to 6 are implemented.

10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the signal control method according to any one of claims 1 to 6 are implemented.