Parameter adjusting method and system based on knob encoder

By obtaining the actual idle time and preset idle time of the knob encoder and determining unit adjustment parameters, the problem that the knob encoder cannot take into account both adjustment accuracy and speed, and the adjustment of accuracy and speed is achieved.

CN119847281APending Publication Date: 2025-04-18GUANGDONG WANHE THERMAL ENERGY TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411994746.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-04-18

AI Technical Summary

Technical Problem

The knob encoder cannot take into account both the improvement of target parameter adjustment accuracy and rapid adjustment.

Method used

By obtaining the actual idle time of the two adjacent rotations of the knob encoder, the unit adjustment parameters are determined based on the actual idle time of the preset number of continuous rotations and the preset idle time, so as to achieve adjustable adjustment accuracy and speed.

Benefits of technology

The adjustment accuracy of the knob encoder is realized, which improves the adjustment accuracy when the rotation is slow, and quickly adjusts the target parameters when the rotation is fast, taking into account both accuracy and speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119847281A_ABST
    Figure CN119847281A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of parameter adjustment, and discloses a parameter adjustment method and system based on a knob encoder, and the method comprises the steps: obtaining the actual idle time of two adjacent rotation of the knob encoder; on the basis of the actual idle time length of the preset continuous rotation times and the preset idle time length, determining a unit adjustment parameter corresponding to each rotation grid of the knob encoder; adjusting a target parameter based on the unit adjustment parameter; when the knob encoder is used, different unit adjusting parameters can be set according to the speed of rotating the knob encoder by a user, so that the adjusting precision of the knob encoder is adjustable, namely, the unit adjusting parameters of the knob encoder can be directly determined according to the adjusting action of the user; the target parameter adjustment precision of the knob encoder is improved, and rapid adjustment of the knob encoder on the target parameter is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of parameter adjustment, and in particular to a parameter adjustment method and system based on a knob encoder. Background Art

[0002] The knob encoder is a widely used device in household appliances, which is used to adjust target parameters, such as working temperature, working time, etc. The knob encoder generally includes two signal output ports, and the signals output by the two signal output ports are used to judge the user's rotation action state. Each grid of the knob encoder corresponds to a fixed adjustment value. The size of the adjustment value is related to the accuracy of the adjustment parameter. The larger the adjustment value, the lower the accuracy of the knob encoder adjustment parameter, and the smaller the adjustment value, the higher the accuracy of the knob encoder adjustment parameter. When the number of grids divided by one circle of the knob encoder is constant, if the adjustment value corresponding to each grid of the knob encoder is set too small, when the adjustment range of the target parameter is large, the knob encoder needs to be rotated more times, which is not conducive to rapid parameter adjustment. If the adjustment value corresponding to each grid of the knob encoder is set too large, when the adjustment range of the target parameter is small, the final adjusted target parameter value will deviate from the expected parameter value, and the accuracy of the target parameter value adjustment is low. Therefore, a parameter adjustment method is needed to ensure that the target parameter adjustment accuracy is improved while achieving rapid parameter adjustment. Summary of the invention

[0003] The first technical problem solved by the present invention is to provide a parameter adjustment method based on a knob encoder, which effectively solves the problem that the knob encoder cannot take into account both improving the adjustment accuracy and rapid adjustment of the target parameter.

[0004] The second technical problem solved by the present invention is to provide a parameter adjustment system based on a knob encoder, which effectively solves the problem that the knob encoder cannot take into account both improving the adjustment accuracy and rapid adjustment of the target parameter.

[0005] The first technical problem mentioned above is solved by the following technical solution:

[0006] A parameter adjustment method based on a knob encoder, the method comprising:

[0007] Obtaining the actual idle time between two consecutive rotations of the knob encoder;

[0008] If the actual idle time of the preset number of continuous rotations is greater than the first preset idle time, the unit adjustment parameter corresponding to the next rotation is determined to be the first preset value; if the actual idle time of the preset number of continuous rotations is less than the second preset idle time, the unit adjustment parameter corresponding to the next rotation is determined to be the second preset value; wherein the second preset value is greater than the first preset value, and the first preset idle time is greater than or equal to the second preset idle time;

[0009] The target parameter is adjusted based on the unit adjustment parameter.

[0010] Compared with the background technology, the parameter adjustment method based on the knob encoder of the present invention has the following beneficial effects: obtaining the actual idle time of the knob encoder when it is rotated one grid, determining the unit adjustment parameter corresponding to the knob encoder rotating one grid based on the actual idle time of a preset number of continuous rotations, the first preset idle time, and the second preset idle time; when the knob encoder is used, different unit adjustment parameters can be set according to the speed at which the user rotates the knob encoder, so that the adjustment accuracy of the knob encoder can be adjusted; when the knob encoder rotates slowly, the unit adjustment parameter can be set to a smaller value, thereby improving the adjustment accuracy of the target parameter value and satisfying the user's target parameter requirements. The demand for precise adjustment of the target parameter is met; when the knob encoder rotates faster, the unit adjustment parameter can be set to a larger value, so the number of turns of the knob encoder actually turned to adjust the target parameter is less, which meets the user's demand for quick adjustment of the target parameter, that is, the unit adjustment parameter of the knob encoder can be directly determined according to the user's adjustment action, taking into account both improving the adjustment accuracy of the target parameter of the knob encoder and realizing the quick adjustment of the target parameter by the knob encoder; in addition, based on the comparison of the idle time of the preset number of continuous rotations with the preset idle time, the user's adjustment needs are determined more accurately, eliminating the influence of the user's fast and slow adjustment on the determination of the unit adjustment parameter.

[0011] In one embodiment, obtaining the actual idle time of each rotation of the knob encoder comprises:

[0012] Detecting the first signal output terminal and the second signal output terminal of the knob encoder at preset time intervals to obtain a first signal from the first signal output terminal and a second signal from the second signal output terminal; the first signal and the second signal are used to represent the adjustment state of the knob encoder;

[0013] Based on the signal value relationship between the first signal and the second signal, the actual idle time length between two adjacent rotations of the knob encoder is determined.

[0014] In one embodiment, determining the actual idle time of two adjacent rotations of the knob encoder based on the signal value relationship between the first signal and the second signal includes:

[0015] If the relationship between the signal values ​​of the first signal and the second signal changes from being different to being the same, then counting the time when the signal values ​​are the same from zero;

[0016] If the relationship between the signal values ​​of the first signal and the second signal changes from being the same to being different, the timing is stopped, and the duration obtained by timing is determined as the actual idle duration.

[0017] In one embodiment, after obtaining the actual idle time of two consecutive rotations of the knob encoder, the method further includes:

[0018] Determine the rotation direction and rotation times of the knob encoder based on the changes of the first signal and the second signal relative to the initial signal value of the knob encoder; the initial signal value is the signal value of the first signal and the second signal when the knob encoder is not adjusted;

[0019] Based on the rotation direction, the rotation times and the unit adjustment parameter corresponding to each rotation, an adjustment value of the knob encoder is determined, and the target parameter is adjusted based on the adjustment value.

[0020] In one embodiment, determining the rotation direction and rotation times of the knob encoder based on the changes of the first signal and the second signal relative to the initial signal value includes:

[0021] determining the rotation direction based on a sequence of changes of the first signal and the second signal relative to the initial signal value;

[0022] In one embodiment, determining the rotation direction based on the change sequence of the first signal and the second signal relative to the initial signal value includes:

[0023] If the change sequence is that the change of the first signal relative to the initial signal value precedes the change of the second signal relative to the initial signal value, then determining that the rotation direction is clockwise;

[0024] If the change sequence is that the change of the second signal relative to the initial signal value precedes the change of the first signal relative to the initial signal value, it is determined that the rotation direction is counterclockwise.

[0025] In one embodiment, determining the rotation direction and rotation times of the knob encoder based on the changes of the first signal and the second signal relative to the initial signal value includes:

[0026] The number of changes of the first signal or the second signal relative to the initial signal value is used as the number of rotations.

[0027] In one embodiment, the detecting the first signal output terminal and the second signal output terminal of the knob encoder at preset time intervals to obtain the first signal of the first signal output terminal and the second signal of the second signal output terminal includes:

[0028] At every preset time, the controller detects the first signal output end through the input and output ports to obtain the first signal, and detects the second signal output end to obtain the second signal; the preset time is consistent with the system clock cycle of the controller.

[0029] In one embodiment, the detecting the first signal output terminal and the second signal output terminal of the knob encoder at preset time intervals to obtain the first signal of the first signal output terminal and the second signal of the second signal output terminal also includes:

[0030] filtering the signal detected from the first signal output terminal to obtain the first signal;

[0031] The signal detected from the second signal output terminal is filtered to obtain the second signal.

[0032] The above second technical problem is solved by the following technical solution:

[0033] A parameter adjustment system based on a knob encoder comprises a knob encoder and a controller, wherein the controller is used to execute the parameter adjustment method based on the knob encoder as described above. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0035] Figure 1 It is a flowchart of a parameter adjustment method based on a knob encoder according to an embodiment of the present invention;

[0036] Figure 2 It is a flowchart of determining the actual idle time in a parameter adjustment method based on a knob encoder according to an embodiment of the present invention;

[0037] Figure 3 It is a schematic diagram of a first signal and a second signal in a parameter adjustment method based on a knob encoder according to an embodiment of the present invention. DETAILED DESCRIPTION

[0038] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0039] In the description of this application, it should be understood that the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the feature. In the description of this application, unless otherwise specified, "plurality" means two or more.

[0040] As described in the background technology above, the current parameter adjustment of the knob encoder has the problem that both adjustment accuracy and adjustment speed cannot be achieved at the same time. In order to solve the above problem, the present invention provides a parameter adjustment method based on a knob encoder, which obtains the actual idle time when the knob encoder rotates one grid, and determines the unit adjustment parameter corresponding to the knob encoder rotating one grid based on the actual idle time of a preset number of continuous rotations and the preset idle time. When using the knob encoder, different unit adjustment parameters can be set according to the speed at which the user rotates the knob encoder, thereby achieving adjustable adjustment accuracy of the knob encoder. When the knob encoder rotates slowly, the unit adjustment parameter can be set to a smaller value, thereby improving the adjustment accuracy of the target parameter value and satisfying the user's need for precise adjustment of the target parameter. demand; when the knob encoder rotates faster, the unit adjustment parameter can be set to a larger value, so the number of turns of the knob encoder actually required to adjust to the target parameter is less, which meets the user's demand for quick adjustment of the target parameter, that is, the unit adjustment parameter of the knob encoder can be directly determined according to the user's adjustment action, taking into account both improving the adjustment accuracy of the target parameter of the knob encoder and realizing the quick adjustment of the target parameter by the knob encoder; in addition, based on the comparison of the actual idle time with the preset number of continuous rotations, the user's adjustment demand is determined more accurately, eliminating the influence of the user's fast and slow adjustment on the determination of the unit adjustment parameter.

[0041] Combine the following Figures 1 to 3 , describing an embodiment of the present invention.

[0042] According to an embodiment of the present invention, on the one hand, a parameter adjustment method based on a knob encoder is provided. Figure 1 FIG. 1 is a flow chart of a parameter adjustment method based on a knob encoder according to an embodiment of the present invention. Figure 1 As shown, the method includes:

[0043] Step 110: Obtain the actual idle time between two consecutive rotations of the knob encoder.

[0044] In an embodiment of the present invention, the first signal output terminal and the second signal output terminal of the knob encoder are detected at preset time intervals to obtain a first signal from the first signal output terminal and a second signal from the second signal output terminal, and based on the signal value relationship between the first signal and the second signal, the actual idle time of two adjacent rotations of the knob encoder is determined; since the internal circuit of the knob encoder is provided with two mechanical contacts, the two mechanical contacts correspond to the signal outputs of the first signal output terminal and the second signal terminal respectively, during the rotation of the knob encoder, there will be a sequence in the closing or opening of the two mechanical contacts, so there is a phase difference between the first signal of the first signal output terminal and the second signal of the second signal output terminal; specifically, in two adjacent rotations of the knob encoder, before one rotation action, assuming that the two mechanical contacts are closed, the first signal and the second signal are both low-level signals, and at this time, when the knob encoder is rotated, the mechanical contact corresponding to the first signal output terminal is disconnected first, and the mechanical contact corresponding to the second signal output terminal is disconnected first. Similarly, before a rotation action, assuming that both mechanical contacts are disconnected, the first signal and the second signal are both high-level signals. At this time, when the knob encoder is rotated, the mechanical contact corresponding to the first signal output end is closed first, and the mechanical contact corresponding to the second signal output end is closed later. Then, the first signal first changes from a high-level signal to a low-level signal, and the second signal changes from a high-level signal to a low-level signal later. That is, when the first signal changes, the second signal has not changed yet. The first signal and the second signal have different signal values ​​for a period of time at the beginning of the signal change, and then have the same signal values ​​for a period of time until the second rotation action occurs. The duration corresponding to this period of time with the same signal value corresponds to the actual idle time between the completion of the first rotation action and the occurrence of the second rotation action.

[0045] Step 120: If the actual idle time of the preset number of continuous rotations is greater than the first preset idle time, the unit adjustment parameter corresponding to the next rotation is determined to be the first preset value; if the idle time of the preset number of continuous rotations is less than the second preset idle time, the unit adjustment parameter corresponding to the next rotation is determined to be the second preset value; the second preset value is greater than the first preset value, and the first preset idle time is greater than or equal to the second preset idle time.

[0046] In an embodiment of the present invention, different unit adjustment parameters are set according to the speed at which the user rotates the knob encoder, so that the adjustment accuracy of the knob encoder can be adjusted. By way of example, the rotation speed is positively correlated with the unit adjustment parameter. When the knob encoder rotates slowly, the corresponding unit adjustment parameter can be set to a smaller value, thereby improving the adjustment accuracy of the target parameter value. When the knob encoder rotates quickly, the corresponding unit adjustment parameter can be set to a larger value. Then, the number of turns of the knob encoder required to adjust to the target parameter is reduced, thereby improving the adjustment speed of the target parameter value.

[0047] In addition, based on the comparison between the actual idle time and the preset idle time for the preset number of continuous rotations, the user's adjustment needs can be determined more accurately, eliminating the influence of the user's fast and slow adjustments on the determination of the unit adjustment parameters. Exemplarily, when the first preset idle time and the second preset idle time are both set equal to 100ms, that is, the first preset idle time is equal to the second preset idle time, the knob encoder is rotated five grids. If the idle time for each rotation of one grid is greater than 100ms, the unit adjustment parameter can be set to the first preset value (minimum value), thereby improving the adjustment accuracy of the target parameter value. If the idle time for each rotation of one grid is less than 100ms, the unit adjustment parameter can be set to the second preset value (maximum value), then the fewer turns of the knob encoder are required to adjust to the target parameter; if only a portion of the rotations are performed for each grid, the unit adjustment parameter can be set to the second preset value (maximum value). If the idle time is greater than 100ms, and the idle time of each grid rotation of the other part of the rotation times is less than 100ms, the unit adjustment parameter is not adjusted, and the unit adjustment parameter is maintained at the initial preset value, which may be the first preset value, the second preset value, or a value that is not equal to the first preset value or the second preset value in this embodiment; that is, if the idle time that satisfies the preset number of continuous rotations is greater than the first preset idle time or the idle time that satisfies the preset number of continuous rotations is less than the second preset idle time, then the corresponding unit adjustment parameter can be adjusted to only the first preset value or the second preset value at the next rotation.

[0048] When the first preset idle time is set to 100ms and the second preset idle time is set to 50ms, that is, the first preset idle time is greater than or equal to the second preset idle time, if the idle time of each rotation of one grid is greater than 100ms, the unit adjustment parameter can be set to the first preset value (minimum value), thereby improving the adjustment accuracy of the target parameter value; if the idle time of each rotation of one grid is less than 50ms, the unit adjustment parameter can be set to the second preset value (maximum value), and then the number of turns of the knob encoder required to adjust to the target parameter is less; if the idle time of each grid rotation of only some of the rotation times is greater than 100ms, and the idle time of each grid rotation of the other part of the rotation times is less than 50ms, the unit adjustment parameter is not adjusted, and the unit adjustment parameter is maintained at the initial preset value, which can be the first preset value, the second preset value, or a value that is not equal to the first preset value or the second preset value in this embodiment;

[0049] It is worth mentioning that different preset idle time segments can be set within the range between the two endpoint values ​​of 50ms and 100ms, and corresponding unit adjustment parameters can be set according to different preset idle time segments. For example, the unit adjustment parameter corresponding to the 50ms-70ms preset idle time segment is the third preset value, and the unit adjustment parameter corresponding to the 71ms-100ms preset idle time segment is the fourth preset value. Correspondingly, the third preset value is greater than the fourth preset value, and the third preset value and the fourth preset value are both between the second preset value (maximum value) and the first preset value (minimum value), that is, the value that can be adjusted by the corresponding unit adjustment parameter for the next rotation is not limited to the first preset value or the second preset value, but can also be other values ​​within the range between the first preset value and the second preset value.

[0050] Step 130: Adjust the target parameter based on the unit adjustment parameter.

[0051] In the embodiment of the present invention, the rotation speed of the knob encoder is determined based on the comparison between the preset idle time and the actual idle time of the preset number of continuous rotations. If the rotation speed of the knob encoder is slow, it means that the current parameter value of the knob encoder is close to the value required by the user's target parameter, and the target parameter needs to be precisely adjusted at this time. Then, the unit adjustment parameter of each subsequent rotation of the knob encoder can be determined as a relatively small value, thereby achieving precise adjustment; if the rotation speed of the knob encoder is fast, it means that the current parameter value of the knob encoder is far from the value required by the user's target parameter, and the parameter range that needs to be adjusted is large at this time. Then, the unit adjustment parameter of each subsequent rotation of the knob encoder can be determined as a large value, so that the number of turns required to rotate the knob encoder to the target parameter is less, thereby achieving rapid adjustment.

[0052] In one embodiment, in the above step 130, a threshold of the idle time, i.e., a preset idle time, can be set, and the idle time can be compared with the preset idle time to determine the rotation speed of the knob encoder, thereby determining the unit adjustment parameter corresponding to each rotation.

[0053] Specifically, if before the first rotation, the actual idle time of the first preset continuous rotation times is greater than the preset idle time, it means that before the first rotation, the rotation speed of the knob encoder is relatively slow, and the knob encoder is in the process of precise adjustment of the adjustment value at this time, so the unit adjustment parameter corresponding to the first rotation is determined to be the first preset value; if before the second rotation, the actual idle time of the second preset continuous rotation times is less than the preset idle time, it means that before the second rotation, the rotation speed of the knob encoder is relatively fast, and the knob encoder is in the process of rapid adjustment at this time, so the unit adjustment parameter corresponding to the second adjustment is determined to be the second preset value. The second preset value is greater than the first preset value.

[0054] In one embodiment, a corresponding relationship may be established between the idle time and the unit adjustment parameter, for example, in the form of a table, a fitting curve, a mathematical function, etc., and the unit adjustment parameter corresponding to each rotation may be determined through the corresponding relationship between the idle time and the unit adjustment parameter. Specifically, after obtaining the idle time between two adjacent rotations, based on the idle time between the two adjacent rotations, the corresponding relationship between the idle time and the unit adjustment parameter is searched to obtain the unit adjustment parameter corresponding to each rotation.

[0055] In one embodiment, Figure 2 FIG. 1 is a flow chart of determining the actual idle time in a parameter adjustment method of a knob encoder according to an embodiment of the present invention. Figure 2 As shown, the above step 110 includes:

[0056] Step 210: Detect the first signal output terminal and the second signal output terminal of the knob encoder at preset time intervals to obtain a first signal from the first signal output terminal and a second signal from the second signal output terminal.

[0057] In this embodiment, the first signal and the second signal are used to characterize the adjustment state of the knob encoder. At preset time intervals, the controller detects the first signal output terminal through the input and output ports to obtain the first signal, and detects the second signal output terminal through the input and output ports to obtain the second signal; the preset time is consistent with the system clock cycle of the controller; the input and output ports of the controller are connected to the first port and the second port of the knob encoder respectively. That is, the controller can obtain the first signal and the second signal of the knob encoder according to the input and output ports of its system clock timing detector, without the need to use additional external interrupts and timing counters, thereby achieving structural simplification.

[0058] In one embodiment, in the above step 210, after the controller detects the first signal output terminal and the second signal output terminal respectively through the input and output ports, it filters the signal detected from the first signal output terminal to obtain the first signal, and filters the signal detected from the second signal output terminal to obtain the second signal, thereby synchronously implementing software filtering processing during signal detection to improve the reliability of the acquired first signal and second signal.

[0059] Step 220: Based on the relationship between the signal values ​​of the first signal and the second signal, determine the actual idle time between two adjacent rotations of the knob encoder.

[0060] In this embodiment, the actual idle time when the knob encoder rotates one grid is the time when the signal value relationship between the first signal and the second signal is the same between two adjacent rotations; wherein the signal value relationship between the first signal and the second signal includes the same and different. Then, if the signal value relationship between the first signal and the second signal changes from different to the same, the time when the signal values ​​are the same is counted from zero; if the signal value relationship between the first signal and the second signal changes from the same to different, the timing is stopped, and the time obtained by timing is determined as the actual idle time.

[0061] In one embodiment, since the signal changes in two forms, namely, from low level to high level and from high level to low level, when the first signal and the second signal change from low level to high level, that is, the signal value changes from 0 to 1, the idle time is the time when both the first signal and the second signal are at high level, and when the first signal and the second signal change from high level to low level, that is, the signal value changes from 1 to 0, the actual idle time is the time when both the first signal and the second signal are at low level. In other words, the actual idle time is the time when the first signal and the second signal are at high level or low level at the same time.

[0062] In one embodiment, after the above step 210, the step of determining the rotation direction and number of rotations of the knob encoder is also included, so as to determine the target parameter according to the rotation direction, number of rotations and the unit adjustment parameter corresponding to the actual idle time of each rotation of the knob encoder. Specifically, the rotation direction and number of rotations of the knob encoder are determined based on the change of the first signal and the second signal relative to the initial signal value of the knob encoder; the initial signal value is the signal value of the first signal and the second signal when the knob encoder is not adjusted. Based on the rotation direction, number of rotations and the unit adjustment parameter corresponding to each rotation, the adjustment value of the knob encoder is determined, and the target parameter is adjusted based on the adjustment value.

[0063] In this embodiment, the initial signal value is the signal value of the first signal and the second signal when the knob encoder is not adjusted, and is generally a signal value corresponding to a low level, that is, 0.

[0064] In this embodiment, it is assumed that the level signal output by the first signal output terminal is determined to be the knob encoder rotating to the right before the level signal output by the second signal output terminal, that is, when rotating clockwise, the first signal will switch from a low level to a high level before the second signal, that is, the change of the first signal relative to the initial signal value precedes the change of the second signal relative to the initial signal value; and the level signal output by the second signal output terminal is determined to be the knob encoder rotating to the left before the level signal output by the first signal output terminal, that is, when rotating counterclockwise, the second signal will switch from a low level to a high level before the first signal, that is, the change of the second signal relative to the initial signal value precedes the change of the first signal relative to the initial signal value.

[0065] In one embodiment, the rotation direction is determined based on the change sequence of the first signal and the second signal relative to the initial signal value. Specifically, if the change sequence is that the change of the first signal relative to the initial signal value precedes the change of the second signal relative to the initial signal value, the rotation direction is determined to be clockwise; if the change sequence is that the change of the second signal relative to the initial signal value precedes the change of the first signal relative to the initial signal value, the rotation direction is determined to be counterclockwise.

[0066] In one embodiment, the above-mentioned method for determining the adjustment direction is based on the fact that the level signal output by the first signal output terminal precedes the level signal output by the second signal output terminal, which is determined as the knob encoder is rotated to the right; if it is assumed that the level signal output by the first signal output terminal precedes the level signal output by the second signal output terminal, which is determined as the knob encoder is rotated to the left, then accordingly, if the change sequence is that the change of the first signal relative to the initial signal value precedes the change of the second signal relative to the initial signal value, the rotation direction is determined to be counterclockwise; if the change sequence is that the change of the second signal relative to the initial signal value precedes the change of the first signal relative to the initial signal value, the rotation direction is determined to be clockwise.

[0067] In one embodiment, the number of times the first signal or the second signal changes relative to the initial signal value is taken as the number of rotations; that is, the number of times the first signal or the second signal changes is taken as the number of adjustments. Specifically, the following two situations are included: in the first situation, the first signal or the second signal changes from the initial signal value to another level signal value, and an adjustment occurs at this time; in the second situation, the first signal or the second signal changes from another level signal value to the initial signal value, and an adjustment occurs at this time. For example, if the initial signal value is 0, then the other level signal value is 1, and the first signal or the second signal changes from 0 to 1, then an adjustment occurs, and the first signal or the second signal changes from 1 to 0 again, then another adjustment occurs, that is, the number of adjustments is 2 at this time.

[0068] In one embodiment, in order to improve the accuracy and reliability of the signal value relationship determination, the signal value relationship is determined according to the detection results of a preset number of consecutive times. Specifically, if the signal values ​​of the first signal and the second signal are different in the third preset number of consecutive detections, then the signal value relationship between the first signal and the second signal is determined to be different; if the signal values ​​of the first signal and the second signal are the same in the fourth preset number of consecutive detections, then the signal value relationship between the first signal and the second signal is determined to be the same.

[0069] In a specific embodiment, Figure 3 is a schematic diagram of a first signal and a second signal in a parameter adjustment method based on a knob encoder according to an embodiment of the present invention. Figure 3 For example, assuming that the user rotates one grid at the same speed each time during the rotation process, the above method for determining the rotation direction, number of rotations and idle time is further explained, wherein it is assumed that the level signal output by the first signal output terminal is earlier than the level signal output by the second signal output terminal, which determines that the knob encoder is rotating to the right, that is, clockwise.

[0070] like Figure 3 As shown, the signal change of the first signal precedes the signal change of the second signal, so it can be determined that the rotation direction is clockwise. The first signal and the second signal have undergone ten signal changes respectively, so it can be determined that the number of adjustments is ten times. T1 is the moment when the signal value relationship of the first signal and the second signal switches from different to the same, and both switch to a high level, and T2 is the moment when the signal value relationship of the first signal and the second signal switches from the same to different in the case of a high level; the duration between T1 and T2 is calculated to obtain the idle duration. T3 is the moment when the signal value relationship of the first signal and the second signal switches from different to the same, and both switch to a low level, and T4 is the moment when the signal value relationship of the first signal and the second signal switches from the same to different in the case of a low level; the duration between T3 and T4 is calculated to obtain the idle duration.

[0071] The parameter adjustment method based on the knob encoder provided by the embodiment of the present invention determines the rotation direction, the number of rotations and the idle time between two adjacent rotations of the knob encoder based on the signal values ​​of the first signal and the second signal of the knob encoder, and determines the unit adjustment parameter corresponding to each rotation based on the preset idle time and the idle time of the preset number of continuous rotations. When the knob encoder is used, different unit adjustment parameters can be set according to the speed at which the user rotates the knob encoder, so that the adjustment accuracy of the knob encoder can be adjusted. When the knob encoder rotates slowly, the unit adjustment parameter can be set to a smaller value, thereby improving the adjustment accuracy of the target parameter value. When the knob encoder rotates quickly, the unit adjustment parameter can be set to a larger value. Then, the fewer the number of turns of the knob encoder required to adjust to the target parameter, the higher the adjustment speed of the target parameter value. That is, the adjustment value of the knob encoder is determined based on the rotation direction, the number of rotations and the unit adjustment parameter corresponding to each rotation, so that the size of the adjustment value required when the knob encoder is adjusted to the target parameter value can be directly determined according to the user's adjustment action, taking into account both improving the adjustment accuracy of the target parameter of the knob encoder and realizing the rapid adjustment of the target parameter by the knob encoder.

[0072] According to an embodiment of the present invention, on the other hand, a parameter adjustment system based on a knob encoder is provided, comprising a knob encoder and a controller, wherein the controller is used to execute the parameter adjustment method based on the knob encoder as described above.

[0073] In the specific contents of the above-mentioned specific implementation methods, the various technical features can be combined in any non-contradictory manner. In order to make the description concise, not all possible combinations of the above-mentioned technical features are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0074] The specific contents of the above specific implementations only express several implementations of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention.

Claims

1. A parameter adjustment method based on a knob encoder, characterized in that: The method comprises: Obtaining the actual idle time between two consecutive rotations of the knob encoder; If the actual idle time of the preset number of continuous rotations is greater than the first preset idle time, the unit adjustment parameter corresponding to the next rotation is determined to be the first preset value; if the actual idle time of the preset number of continuous rotations is less than the second preset idle time, the unit adjustment parameter corresponding to the next rotation is determined to be the second preset value; wherein the second preset value is greater than the first preset value, and the first preset idle time is greater than or equal to the second preset idle time; The target parameter is adjusted based on the unit adjustment parameter.

2. The method according to claim 1, characterized in that The step of obtaining the actual idle time duration of two adjacent rotations of the knob encoder includes: Detecting the first signal output terminal and the second signal output terminal of the knob encoder at preset time intervals to obtain a first signal from the first signal output terminal and a second signal from the second signal output terminal; the first signal and the second signal are used to represent the adjustment state of the knob encoder; Based on the signal value relationship between the first signal and the second signal, the actual idle time length between two adjacent rotations of the knob encoder is determined.

3. The method according to claim 2, characterized in that The determining, based on the signal value relationship between the first signal and the second signal, the actual idle time between two adjacent rotations of the knob encoder comprises: If the relationship between the signal values ​​of the first signal and the second signal changes from being different to being the same, then counting the time when the signal values ​​are the same from zero; If the relationship between the signal values ​​of the first signal and the second signal changes from being the same to being different, the timing is stopped, and the duration obtained by timing is determined as the actual idle duration.

4. The method according to claim 2, characterized in that: After detecting the first signal output terminal and the second signal output terminal of the knob encoder at preset time intervals and acquiring the first signal of the first signal output terminal and the second signal of the second signal output terminal, the method further includes: Determine the rotation direction and rotation times of the knob encoder based on the changes of the first signal and the second signal relative to the initial signal value of the knob encoder; the initial signal value is the signal value of the first signal and the second signal when the knob encoder is not adjusted; Based on the rotation direction, the rotation times and the unit adjustment parameter corresponding to each rotation, an adjustment value of the knob encoder is determined, and the target parameter is adjusted based on the adjustment value.

5. The method according to claim 4, characterized in that The step of determining the rotation direction and the number of rotations of the knob encoder based on the changes of the first signal and the second signal relative to the initial signal value comprises: The rotation direction is determined based on a sequence of changes of the first signal and the second signal relative to the initial signal value.

6. The method according to claim 5, characterized in that The determining the rotation direction based on the change sequence of the first signal and the second signal relative to the initial signal value comprises: If the change sequence is that the change of the first signal relative to the initial signal value precedes the change of the second signal relative to the initial signal value, then determining that the rotation direction is clockwise; If the change sequence is that the change of the second signal relative to the initial signal value precedes the change of the first signal relative to the initial signal value, it is determined that the rotation direction is counterclockwise.

7. The method according to claim 4, characterized in that The step of determining the rotation direction and the number of rotations of the knob encoder based on the changes of the first signal and the second signal relative to the initial signal value comprises: The number of changes of the first signal or the second signal relative to the initial signal value is used as the number of rotations.

8. The method according to claim 2, characterized in that: The detecting the first signal output terminal and the second signal output terminal of the knob encoder at preset time intervals to obtain a first signal from the first signal output terminal and a second signal from the second signal output terminal includes: At every preset time, the controller detects the first signal output end through the input and output ports to obtain the first signal, and detects the second signal output end to obtain the second signal; the preset time is consistent with the system clock cycle of the controller.

9. The method according to claim 8, characterized in that The detecting the first signal output terminal and the second signal output terminal of the knob encoder at preset time intervals to obtain a first signal from the first signal output terminal and a second signal from the second signal output terminal also includes: filtering the signal detected from the first signal output terminal to obtain the first signal; The signal detected from the second signal output terminal is filtered to obtain the second signal.

10. A parameter adjustment system based on a knob encoder, characterized in that: It comprises a knob encoder and a controller, wherein the controller is used to execute the parameter adjustment method based on the knob encoder as described in any one of claims 1-9.