CN111077809B - Response method and device of knob key - Google Patents
Response method and device of knob key Download PDFInfo
- Publication number
- CN111077809B CN111077809B CN202010205982.3A CN202010205982A CN111077809B CN 111077809 B CN111077809 B CN 111077809B CN 202010205982 A CN202010205982 A CN 202010205982A CN 111077809 B CN111077809 B CN 111077809B
- Authority
- CN
- China
- Prior art keywords
- knob
- input signal
- knob input
- responded
- preset
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 230000004044 response Effects 0.000 title claims abstract description 45
- 238000000034 method Methods 0.000 title claims abstract description 23
- 230000001960 triggered effect Effects 0.000 claims abstract description 18
- 238000001514 detection method Methods 0.000 claims description 34
- 230000001133 acceleration Effects 0.000 claims description 24
- 230000000903 blocking effect Effects 0.000 abstract description 2
- 230000003993 interaction Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 238000006243 chemical reaction Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
-
- H—ELECTRICITY
- H01—ELECTRIC ELEMENTS
- H01H—ELECTRIC SWITCHES; RELAYS; SELECTORS; EMERGENCY PROTECTIVE DEVICES
- H01H19/00—Switches operated by an operating part which is rotatable about a longitudinal axis thereof and which is acted upon directly by a solid body external to the switch, e.g. by a hand
- H01H19/02—Details
- H01H19/10—Movable parts; Contacts mounted thereon
- H01H19/14—Operating parts, e.g. turn knob
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Input From Keyboards Or The Like (AREA)
Abstract
The invention discloses a response method and a device of a knob key, wherein when a knob input signal triggered by the knob key is detected, if other knob input signals which are currently responded exist, the detected knob input signal is stored in a preset queue, and after the knob input signal which is currently responded finishes responding, the knob input signal which is firstly detected or the knob input signal which is finally stored in the preset queue is responded, so that the last rotated knob value can be responded when the knob key is continuously rotated, and the phenomenon of blocking can not occur.
Description
Technical Field
The invention relates to the field of information processing, in particular to a response method and a response device for a knob key.
Background
When a main control module or a user interaction module of the equipment detects and receives a knob input signal, the knob input signal is firstly configured into a corresponding configuration value, then the corresponding configuration value is output to a hardware circuit for output, an electric signal corresponding to the configuration value is output after the processing of the hardware circuit, and at the moment, the response of the knob input signal is completed.
In some cases, the user may need to continuously rotate the knob button to adjust the relevant parameter of the device output electrical signal, for example by modifying the voltage value of the signal output by the device from 1V to 10V by continuous rotation, for this situation, the existing device receives the next knob input signal after completing the response of the knob input signal, because the time interval between the plurality of knob input signals occurring in the case of continuously rotating the knob key is short, the last knob input signal is often not responded, the next knob input signal is detected, and even the device is still responding to the one knob input signal, the knob input signal is detected for many times, so that the equipment cannot respond to the knob input signal triggered by continuously rotating the knob key for many times, and the problem of jamming can occur when a user rotates the knob key at the moment.
Referring to fig. 5, fig. 5 is a flow chart of a response process of a primary knob key in the prior art, which first detects and receives a knob input signal through a user interaction module in a device, configures the knob input signal into a corresponding configuration value, outputs the corresponding configuration value to a data processing module in a hardware circuit for processing, and then sends the processed configuration value to a driving module, and outputs signal data corresponding to the configuration value through the driving module. Therefore, when the knob input signal does not complete the response once, if the next knob input signal is triggered, the next knob input signal is not received, so that a pause phenomenon appears when a user rotates a knob key, and the experience of the user on the equipment is influenced.
Disclosure of Invention
The invention mainly solves the technical problem of how to solve the problem of jamming when continuously rotating a knob key.
According to a first aspect, an embodiment provides a method for responding to a knob key, including:
step 1: when a knob input signal triggered by a knob key is detected, if other knob input signals are currently responded, the detected knob input signal is stored in a preset queue;
step 2, after the current knob input signal which is responding finishes responding, the knob input signal which is detected firstly or the knob input signal which is stored last in a preset queue is used as the knob input signal to be responded;
and 3, responding to the knob input signals to be responded, and obtaining the configuration values corresponding to the knob input signals to be responded according to the number of the knob input signals stored in the preset queue, the configuration values corresponding to the last knob input signal to be responded and the preset stepping values of the knob keys.
Further, step 2 comprises:
if the knob input signal is not detected within the preset time after the knob input signal which is currently responded finishes responding, the knob input signal which is stored last in the preset queue is used as the knob input signal to be responded;
otherwise, the knob input signal detected firstly after the knob input signal currently responding finishes responding is taken as the knob input signal to be responded.
Further, the configuration value corresponding to the knob input signal to be responded is obtained according to the following formula:
wherein,the configuration value corresponding to the last knob input signal,the step value is a preset step value of a knob key, K1 is a first acceleration coefficient, and V is a configuration value corresponding to a knob input signal to be responded;
the knob input signals to be responded are knob input signals stored in the preset queue at last, and the first acceleration coefficient K1 is the number of the knob input signals stored in the preset queue;
and if the knob input signal to be responded is the knob input signal detected firstly after the knob input signal currently responded finishes responding, the first acceleration coefficient K1 is the number of the knob input signals stored in the preset queue plus 1.
Further, the preset step value of the knob key is obtained through the following steps:
acquiring the time difference of two adjacent knob input signals in the preset queue;
if N times in successionThe interval difference is less than a preset time threshold T, wherein N is a natural number greater than 1, T is greater than 0 and less than 0.5s, and the preset step value of the knob key is(ii) a Otherwise, the step value of the preset knob key;
Further, still include:
step 4, outputting the electric signal parameters corresponding to the configuration values according to the configuration values; and emptying the preset queue.
According to a second aspect, an embodiment provides a response device of a knob key, comprising:
the detection module is used for storing the detected knob input signals in a preset queue if other knob input signals are currently responded when the knob input signals triggered by the knob keys are detected;
the response waiting module is used for taking the knob input signal detected firstly or the knob input signal stored last in the preset queue as the knob input signal to be responded after the knob input signal currently responding finishes responding;
and the configuration module is used for responding to the knob input signals to be responded, and obtaining the configuration values corresponding to the knob input signals to be responded according to the number of the knob input signals stored in the preset queue, the configuration values corresponding to the last knob input signals to be responded and the preset stepping values of the knob keys.
Further, the module to be responded comprises:
if the knob input signal is not detected within the preset time after the knob input signal which is currently responded finishes responding, the knob input signal which is stored last in the preset queue is used as the knob input signal to be responded;
otherwise, the knob input signal detected firstly after the knob input signal currently responding finishes responding is taken as the knob input signal to be responded.
Further, the configuration value corresponding to the knob input signal to be responded is obtained according to the following formula:
wherein,the configuration value corresponding to the last knob input signal,the step value is a preset step value of a knob key, K1 is a first acceleration coefficient, and V is a configuration value corresponding to a knob input signal to be responded;
the knob input signals to be responded are knob input signals stored in the preset queue at last, and the first acceleration coefficient K1 is the number of the knob input signals stored in the preset queue;
and if the knob input signal to be responded is the knob input signal detected firstly after the knob input signal currently responded finishes responding, the first acceleration coefficient K1 is the number of the knob input signals stored in the preset queue plus 1.
Further, the preset step value of the knob key is obtained through the following steps:
acquiring the time difference of two adjacent knob input signals in the preset queue;
if the time difference of N times is less than a preset time threshold value T, wherein N is a natural number greater than 1, and T is greater than 0 and less than 0.5s, the preset step value of the knob key is obtained(ii) a Otherwise, presetStep value of knob key;
Further, the device also comprises a hardware output module, which is used for outputting the electric signal parameters corresponding to the configuration values according to the configuration values; and emptying the preset queue.
According to the method and the device for responding to the knob key of the embodiment, when the knob input signal triggered by the knob key is detected, if other knob input signals which are currently responded exist, the detected knob input signal is stored in the preset queue, and after the knob input signal which is currently responded finishes responding, the knob input signal which is detected firstly or the knob input signal which is stored last in the preset queue is responded, so that the knob value which is rotated last can be responded when the knob key is continuously rotated, and the phenomenon of blocking can not occur.
Drawings
FIG. 1 is a diagram of a response assembly of a knob key according to an embodiment;
FIG. 2 is a flow chart of a method for responding to a knob key according to an embodiment;
FIG. 3 is a flow chart of a method for responding to a knob key according to another embodiment;
FIG. 4 is a flowchart illustrating a method for increasing the step value of the preset knob key according to an embodiment;
fig. 5 is a flow chart of a response process of a knob key in the prior art.
Detailed Description
The present invention will be described in further detail with reference to the following detailed description and accompanying drawings. Wherein like elements in different embodiments are numbered with like associated elements. In the following description, numerous details are set forth in order to provide a better understanding of the present application. However, those skilled in the art will readily recognize that some of the features may be omitted or replaced with other elements, materials, methods in different instances. In some instances, certain operations related to the present application have not been shown or described in detail in order to avoid obscuring the core of the present application from excessive description, and it is not necessary for those skilled in the art to describe these operations in detail, so that they may be fully understood from the description in the specification and the general knowledge in the art.
Furthermore, the features, operations, or characteristics described in the specification may be combined in any suitable manner to form various embodiments. Also, the various steps or actions in the method descriptions may be transposed or transposed in order, as will be apparent to one of ordinary skill in the art. Thus, the various sequences in the specification and drawings are for the purpose of describing certain embodiments only and are not intended to imply a required sequence unless otherwise indicated where such sequence must be followed.
The numbering of the components as such, e.g., "first", "second", etc., is used herein only to distinguish the objects as described, and does not have any sequential or technical meaning. The term "connected" and "coupled" when used in this application, unless otherwise indicated, includes both direct and indirect connections (couplings).
The knob key in the embodiment of the invention is arranged on electromechanical equipment such as an oscilloscope, a radio and the like, a user triggers a knob input signal by rotating the knob key, the knob input signal is triggered once when the knob key is rotated by a step value, the electromechanical equipment is also provided with a detection module for detecting the triggered knob input signal, after the detection module detects the knob input signal, the knob input signal is configured into a corresponding configuration value in the configuration module, a corresponding hardware output circuit outputs a corresponding electric signal according to the configuration value, and the response process from the moment that the detection module detects the knob input signal triggered by the user rotating the knob key to the moment that the hardware output circuit outputs the corresponding electric signal is finished into the knob input signal is completed.
When the oscilloscope is debugged, a preset direct current voltage signal can be displayed through the display screen, the voltage amplitude of the preset direct current voltage signal is selected through a knob key arranged on the oscilloscope, for example, when an indication mark of the knob key is rotated to a 5V parameter value, the voltage amplitude of 5V can be displayed on the display screen. The embodiment of the present invention takes a knob key on an oscilloscope for modifying a display voltage value as an example to describe in detail a response device of the knob key, please refer to fig. 1, fig. 1 is a structure diagram of the response device of the knob key of an embodiment, including: knob button 11, detection module 12, module to be responded 13, configuration module 14 and hardware output module 15.
The knob key 11 in this embodiment is used to modify the voltage amplitude of the voltage signal displayed on the display screen of the oscilloscope, and the knob key 11 may be a knob key of any structure on the existing oscilloscope.
The detection module 12 is configured to, when detecting a knob input signal triggered by a knob key, store the detected knob input signal in a preset queue if the detection module is currently responding to other knob input signals. The knob input signal refers to a signal triggered when the knob key 11 is rotated by a step value, in an embodiment, the detection module 12 may be a hardware detection circuit in an oscilloscope, and detect whether the knob input signal is triggered by the hardware detection circuit, for example, a user rotates the knob key once, at this time, the knob key sends an indication signal to the hardware detection circuit connected to the knob key, where the indication signal may be a high level signal or a low level signal, and when the hardware detection circuit detects the identification signal, the trigger signal is sent to indicate that the knob input signal is detected once. In another embodiment, a knob input signal triggered by rotating a knob key can be detected through a man-machine interaction module (UI module) embedded in the oscilloscope, the UI module is in signal connection with the knob key 11 through software, and when the knob key is rotated once, a window function corresponding to the UI module changes, that is, a new knob input signal can be detected.
When the detection module 12 detects a knob input signal triggered by the knob key 11, the detection module 12 determines whether there are other knob input signals in the configuration module 14 and the hardware output module 15 that are being configured or output, that is, whether other knob input signals are being responded to; if the other knob input signals are being responded, the detection module 12 stores the new knob input signals in a preset queue and continues to detect the new knob input signals; otherwise, the detection module 12 outputs the new knob input signal to the configuration module 14 and the hardware output module 15 for configuration and output, i.e. directly responds to the new knob input signal.
In addition, the detection module 12 needs to continuously determine whether the currently responding knob input signal completes the response while detecting the new knob input signal.
The to-be-responded module 13 is configured to, after the currently-responded knob input signal completes responding, use the knob input signal detected first or the knob input signal stored last in the preset queue as the knob input signal to be responded.
If the detection module 12 determines that the currently responding knob input signal completes the response, the to-be-responded module 13 continues to determine whether the detection module 12 detects a new knob input signal within a preset time after the currently responding knob input signal completes the response, and if the new knob input signal is detected, that is, at least one knob input signal is detected within a preset time (0-0.5 s) after the currently responding knob input signal completes the response, the knob input signal closest to the currently responding knob input signal completing response time is selected from the detected at least one knob input signal as a foremost knob input signal. If the currently responding rotary knob input does not complete the response, the detection module 12 continues to detect a new rotary knob input signal.
For example, when a user rotates the knob key 11 to modify the amplitude value of the voltage signal output by the oscilloscope, the adjustable range of the amplitude value is 0-10V, the step value of each time the knob key 11 rotates once is 1V, if the user needs to continuously rotate the knob key from 0V to 4V, when the knob key is rotated to 1V, the detection module 12 detects the knob input signal (1V), because the knob input signal which is not responded before can be directly responded to the knob input signal (1V), but the knob key rotates to 2V and 3V quickly, the detection module 12 continuously detects new knob input signals (2V and 3V), because the knob input signal (1V) which is currently responded does not complete the response, the detection module 12 stores the knob input signals (2V and 3V) into the preset queue, and when the knob key continues to rotate to 4V, when the detection module 12 detects that the knob input signal (1V) completes the response, the knob input signal (4V) is the knob input signal with the closest response time to the knob input signal (1V) which is responding, and the knob input signal (4V) is used as the knob input signal to be responded, so as to respond to the knob input signal (4V).
The configuration module 14 is configured to configure the knob input signal to be responded, and obtain the configuration value corresponding to the knob input signal to be responded according to the number of the knob input signals stored in the preset queue, the configuration value corresponding to the last knob input signal to be responded, and the preset step value of the knob key. The last knob input signal responding in this embodiment is the last knob input signal responding to the knob input signal to be responded, for example, when the knob input signal (4V) in the above embodiment is used as the knob input signal to be responded, the last knob input signal responding is the knob input signal (1V).
In this embodiment, a configuration value corresponding to a knob input signal to be responded is obtained by formula (1):
wherein,for the last soundThe corresponding configuration value of the corresponding knob input signal,the step value is a preset step value of the knob key, K1 is a first acceleration coefficient, and V is a configuration value corresponding to the knob input signal to be responded.
In this embodiment, the knob input signal to be responded is the knob input signal detected first after the knob input signal currently being responded completes the response, and the first acceleration factor is the number of knob input signals stored in the preset queue plus 1.
Also, for the above embodiment, the preset step value of the knob keyAnd 1V, the configuration value 1V corresponding to the last knob input signal to be responded, and two knob input signals (2V and 3V) are stored in the preset alignment, so that the first acceleration coefficient is 3 (2 + 1), and the configuration value corresponding to the knob input signal to be responded is 4V.
And if no new knob input signal is detected, taking the knob input signal (4V) which is finally stored in the preset queue as the knob input signal to be responded. For example, for the above embodiment, when the user needs to continuously rotate the knob key from 0V to 4V, if the detection module 12 detects that the response of the knob input signal (1V) is not completed yet when the knob input signal (4V) is detected, the knob input signal (4V) is stored in the preset queue, and after the response of the knob input signal (1V) is completed, the knob input signal (4V) stored in the preset queue finally serves as the knob input signal to be responded. In this embodiment, the knob input signals to be responded are the knob input signals stored last in the preset queue, and the first acceleration factor is the number of the knob input signals stored in the preset queue. For the above embodiment, the preset step value of the knob keyThe value is 1V, the configuration value 1V corresponding to the last knob input signal that responds is preset in the alignment, and therefore three knob input signals (2V, 3V, and 4V) are stored, so that the first acceleration factor is 3, and the configuration value 4V corresponding to the knob input signal that is to be responded is set.
The hardware output module 15 is configured to output an electrical signal parameter corresponding to the configuration value according to the configuration value of the knob input signal to be responded, for example, a digital-to-analog conversion circuit in an oscilloscope converts the configuration value (4V) into an analog voltage signal for output; and emptying the preset queue.
In the above embodiment, the configuration value is increased or decreased according to the fixed step value when the user rotates the knob key, however, in some cases, the user needs to adjust the value pointed by the knob key by a large span, for example, for an electronic device such as a radio set having the knob key for adjusting the volume, the volume is very small in the initial case, the user needs to rotate the knob key by a large range to adjust the volume, and if the user still adjusts the electronic device according to the preset step value of the knob key, the user needs to rotate the knob key by a large range to reach the required volume, so that the user can quickly rotate the knob key to the required knob input signal by increasing the step value in the case that the user needs to continuously rotate the knob key by a large range.
As shown in fig. 4, the step value (increased step value) of the preset knob key in the present embodiment is obtained through the following steps:
s211, the detecting module 12 obtains a time difference between two adjacent knob input signals in the preset queue, that is, the time difference between two adjacent knob input signals detected by the detecting module 12.
S212, the detection module 12 determines whether the time differences of N consecutive times are all smaller than a preset time threshold T, wherein N is a natural number greater than 1, and T is greater than 0 and less than 0.5S, and if all the time differences are smaller than the preset time threshold, that is, the user continuously rotates the knob key for multiple times with a short interval time, S213 is executed.
S213, increasing the step value of the knob key preset in the formula (1), wherein the step value is used for accelerating the equipment inputThe step value of the knob key preset in the formula (1) needs to be increased when the electric signal required by the user is output, and the step value of the knob key is preset(ii) a Wherein K2 is the second acceleration coefficient, K2 is more than 0,the preset fixed stepping value is a mechanical inherent stepping value of the knob key, and a configuration value corresponding to the current knob event is obtained through a formula (2):
wherein,the configuration value corresponding to the last knob input signal,the step value K1 is a first acceleration factor, K2 is a second acceleration factor, and V is a configuration value corresponding to the knob input signal to be responded.
Otherwise, the preset fixed step value is used as the preset step value of the knob key, namely the preset step value of the knob keyAnd the detection module 12 continues to obtain the time difference between the two adjacent knob input signals in the preset queue, and at this time, the configuration value corresponding to the knob input signal to be responded is calculated according to the formula (1).
Based on the above response device for the knob key, the present embodiment further provides a response method for the knob key, please refer to fig. 2, where fig. 2 is a flowchart of the response method for the knob key of the present embodiment, and the method includes the following steps:
s11, when detecting the knob input signal triggered by the knob key, if the detecting module 12 is currently responding to other knob input signals, the detecting module 12 stores the detected knob input signal in a preset queue. The specific method for detecting the knob input signal and storing the knob input signal in the preset queue by the detection module 12 in this embodiment has been described in detail in the foregoing embodiments, and is not described herein again.
S12, after the currently responding knob input signal completes the response, the to-be-responded module 13 takes the knob input signal detected first or the knob input signal stored last in the preset queue as the knob input signal to be responded.
The present embodiment selects the knob input signal to be responded to and is divided into two cases, the first case is that after the knob input signal currently being responded is responded, the detection module 12 does not detect a new knob input signal any more, at this time, the knob input signal stored last in the preset queue is selected as the knob input signal to be responded, and the knob input signal stored last is the last detected knob input signal before the knob input signal currently being responded is responded; the second case is that after the response of the currently responding knob input signal is completed, a new knob input signal can be detected within a short time (the preset time is greater than 0 and less than 0.5 s), if only one knob input signal is detected within the preset time period, the knob input signal is used as the knob input signal to be responded, and if a plurality of knob input signals are detected within the time period, the knob input signal closest to the time when the response of the currently responding knob input signal is completed, that is, the knob input signal detected first within the preset time period is used as the knob input signal to be responded.
S13, the configuration module 14 responds to the knob input signal to be responded, and obtains a configuration value corresponding to the knob input signal to be responded according to the number of the knob input signals stored in the preset queue, the configuration value corresponding to the last knob input signal to be responded, and the preset step value of the knob key. In this embodiment, the knob input signal to be responded is configured according to the formula (1) provided in the above embodiment, so as to obtain a corresponding configuration value. If the time difference of the plurality of knob input signals stored in the preset queue is smaller than the preset threshold time T (0 < T <0.5 s), the step value of the preset knob key is increased according to the formula (2), so that the knob key can be rotated to the parameter value corresponding to the required electric signal as soon as possible.
S14, according to the configuration value, the hardware output module 15 outputs the electric signal parameter corresponding to the configuration value; and emptying the preset queue. The hardware output module 15 in this embodiment may be a digital-to-analog conversion circuit, an editable logic device, or other hardware circuits, and converts the configuration value into a corresponding electrical signal and outputs the electrical signal.
Referring to fig. 3, fig. 3 is a flow chart of knob key response according to an embodiment, which includes the following steps:
s111, the detecting module 12 detects a new knob input signal triggered by the knob key 11.
S112, the detection module 12 determines whether other knob input signals are configured or output in the configuration module 14 and the hardware output module 15, that is, determines whether the oscilloscope is responding to other knob input signals, and if the oscilloscope is responding to other knob input signals, S113 is executed; otherwise, S114 is executed.
S113, the detecting module 12 stores the new knob input signal in a preset queue, and continues to detect the new knob input signal.
And S114, the detection module 12 outputs the new knob input signal to the configuration module 14 and the hardware output module 15 for configuration and output.
S115, the detecting module 12 determines whether the currently responded knob input signal completes the response, that is, determines whether the currently responded knob input signal outputs a corresponding electrical signal through the hardware output module 15, and if the response is completed, executes S116; otherwise, return to S113.
S116, if the currently responding knob input signal completes the response, the to-be-responded module 13 determines whether the detection module 12 detects a new knob input signal within a preset time after the currently responding knob input signal completes the response, and if the new knob input signal is detected, executes S117; otherwise, S118 is executed.
S117, if the detection module 12 detects a new knob input signal within the preset time, the to-be-responded module 13 uses the knob input signal detected first as the knob input signal to be responded.
S118, otherwise, the to-be-responded module 13 uses the last stored knob input signal in the preset queue as the knob input signal to be responded.
S119, configuring the configuration value corresponding to the knob input signal to be responded in the configuration module 14.
S120, the hardware output module 15 outputs an electrical signal corresponding to the configuration value.
The present invention has been described in terms of specific examples, which are provided to aid understanding of the invention and are not intended to be limiting. For a person skilled in the art to which the invention pertains, several simple deductions, modifications or substitutions may be made according to the idea of the invention.
Claims (10)
1. A method for responding to a knob key, comprising:
step 1: when a knob input signal triggered by a knob key is detected, if other knob input signals are currently responded, the detected knob input signal is stored in a preset queue;
step 2, after the current knob input signal which is responding finishes responding, the knob input signal which is detected firstly or the knob input signal which is stored last in a preset queue is used as the knob input signal to be responded;
and 3, responding to the knob input signals to be responded, and obtaining the configuration values corresponding to the knob input signals to be responded according to the number of the knob input signals stored in the preset queue, the configuration values corresponding to the last knob input signal to be responded and the preset stepping values of the knob keys.
2. The method for responding to a knob key of claim 1, wherein the step 2 comprises:
if the knob input signal is not detected within the preset time after the knob input signal which is currently responded finishes responding, the knob input signal which is stored last in the preset queue is used as the knob input signal to be responded;
otherwise, the knob input signal detected firstly after the knob input signal currently responding finishes responding is taken as the knob input signal to be responded.
3. The method for responding to a knob key according to claim 2, wherein the configuration value corresponding to the knob input signal to be responded is obtained according to the following formula:
wherein,the configuration value corresponding to the last knob input signal,the step value is a preset step value of a knob key, K1 is a first acceleration coefficient, and V is a configuration value corresponding to a knob input signal to be responded;
the knob input signals to be responded are knob input signals stored in the preset queue at last, and the first acceleration coefficient K1 is the number of the knob input signals stored in the preset queue;
and if the knob input signal to be responded is the knob input signal detected firstly after the knob input signal currently responded finishes responding, the first acceleration coefficient K1 is the number of the knob input signals stored in the preset queue plus 1.
4. The method for responding to a knob key according to claim 3, wherein the step value of the preset knob key is obtained by:
acquiring the time difference of two adjacent knob input signals in the preset queue;
if the time difference of N times is less than a preset time threshold value T, wherein N is a natural number greater than 1, and T is greater than 0 and less than 0.5s, the preset step value of the knob key is obtained(ii) a Otherwise, the step value of the preset knob key;
5. The method for responding to a knob key according to any one of claims 1 to 4, further comprising:
step 4, outputting the electric signal parameters corresponding to the configuration values according to the configuration values; and emptying the preset queue.
6. A knob button response device comprising:
the detection module is used for storing the detected knob input signals in a preset queue if other knob input signals are currently responded when the knob input signals triggered by the knob keys are detected;
the response waiting module is used for taking the knob input signal detected firstly or the knob input signal stored last in the preset queue as the knob input signal to be responded after the knob input signal currently responding finishes responding;
and the configuration module is used for responding to the knob input signals to be responded, and obtaining the configuration values corresponding to the knob input signals to be responded according to the number of the knob input signals stored in the preset queue, the configuration values corresponding to the last knob input signals to be responded and the preset stepping values of the knob keys.
7. The response device of the knob key as claimed in claim 6, wherein the module to be responded comprises:
if the knob input signal is not detected within the preset time after the knob input signal which is currently responded finishes responding, the knob input signal which is stored last in the preset queue is used as the knob input signal to be responded;
otherwise, the knob input signal detected firstly after the knob input signal currently responding finishes responding is taken as the knob input signal to be responded.
8. The response device of knob key according to claim 7, wherein the configuration value corresponding to the knob input signal to be responded is obtained according to the following formula:
wherein,the configuration value corresponding to the last knob input signal,the step value is a preset step value of a knob key, K1 is a first acceleration coefficient, and V is a configuration value corresponding to a knob input signal to be responded;
the knob input signals to be responded are knob input signals stored in the preset queue at last, and the first acceleration coefficient K1 is the number of the knob input signals stored in the preset queue;
and if the knob input signal to be responded is the knob input signal detected firstly after the knob input signal currently responded finishes responding, the first acceleration coefficient K1 is the number of the knob input signals stored in the preset queue plus 1.
9. The knob key response device according to claim 8, wherein the preset knob key step value is obtained by:
acquiring the time difference of two adjacent knob input signals in the preset queue;
if the time difference of N times is less than a preset time threshold value T, wherein N is a natural number greater than 1, and T is greater than 0 and less than 0.5s, the preset step value of the knob key is obtained(ii) a Otherwise, the step value of the preset knob key;
10. The response device of knob key according to any one of claims 6 to 9, further comprising a hardware output module for outputting an electrical signal parameter corresponding to said configuration value according to said configuration value; and emptying the preset queue.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010205982.3A CN111077809B (en) | 2020-03-23 | 2020-03-23 | Response method and device of knob key |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010205982.3A CN111077809B (en) | 2020-03-23 | 2020-03-23 | Response method and device of knob key |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111077809A CN111077809A (en) | 2020-04-28 |
| CN111077809B true CN111077809B (en) | 2020-07-21 |
Family
ID=70324635
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010205982.3A Active CN111077809B (en) | 2020-03-23 | 2020-03-23 | Response method and device of knob key |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111077809B (en) |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1661907A (en) * | 2004-02-23 | 2005-08-31 | 鸿富锦精密工业(深圳)有限公司 | Single knob control volume system and method |
| JP2011234075A (en) * | 2010-04-27 | 2011-11-17 | Fujitsu Ten Ltd | Acoustic apparatus and signal control method |
| CN106774939A (en) * | 2017-01-17 | 2017-05-31 | 深圳市景创科技电子有限公司 | A kind of earpiece volume adjusting method and earphone |
| CN108132373A (en) * | 2017-12-20 | 2018-06-08 | 福建利利普光电科技有限公司 | Oscillograph knob-operated moves the processing method of effect |
| CN109195068A (en) * | 2018-09-09 | 2019-01-11 | 昊智信息技术(深圳)有限公司 | Audio-frequency processing method, device and audio frequency apparatus |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7847792B2 (en) * | 2005-08-15 | 2010-12-07 | Tektronix, Inc. | Simple integrated control for zoom/pan functions |
-
2020
- 2020-03-23 CN CN202010205982.3A patent/CN111077809B/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1661907A (en) * | 2004-02-23 | 2005-08-31 | 鸿富锦精密工业(深圳)有限公司 | Single knob control volume system and method |
| JP2011234075A (en) * | 2010-04-27 | 2011-11-17 | Fujitsu Ten Ltd | Acoustic apparatus and signal control method |
| CN106774939A (en) * | 2017-01-17 | 2017-05-31 | 深圳市景创科技电子有限公司 | A kind of earpiece volume adjusting method and earphone |
| CN108132373A (en) * | 2017-12-20 | 2018-06-08 | 福建利利普光电科技有限公司 | Oscillograph knob-operated moves the processing method of effect |
| CN109195068A (en) * | 2018-09-09 | 2019-01-11 | 昊智信息技术(深圳)有限公司 | Audio-frequency processing method, device and audio frequency apparatus |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111077809A (en) | 2020-04-28 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110716648B (en) | Gesture control method and device | |
| US7441173B2 (en) | Systems, devices, and methods for arc fault detection | |
| JP6420330B2 (en) | Specify 3-phase or N-phase eye pattern | |
| US8471686B2 (en) | Remote control apparatus with dialing scheme providing haptic sensations | |
| JP5371305B2 (en) | Computer program | |
| CN108021228A (en) | Dynamic haptic based on the Video Events detected produces | |
| EP4203459A1 (en) | Method, apparatus, and device for determining exposure parameter of head-mounted device | |
| EP4060352A1 (en) | Automatic trigger type identification method and device, and oscilloscope | |
| TWI691168B (en) | C-PHY receiver equalization | |
| WO2008150931A2 (en) | Switch de-bouncing device and method | |
| JP2012032254A (en) | Voltage detection circuit and control method thereof | |
| EP3229229A1 (en) | Overcurrent detection circuit | |
| EP3187967A1 (en) | Terminal control method and system | |
| CN111077809B (en) | Response method and device of knob key | |
| WO2017053011A1 (en) | Secure identification information entry on a small touchscreen display | |
| CN106155969A (en) | Data transmission system and transmission method thereof | |
| US20190121296A1 (en) | Timepiece movement, timepiece, and reference position determination method of indicating hand of timepiece | |
| CN103810040A (en) | Information processing method and electronic equipment | |
| CN107450806A (en) | Shortcut menu display methods, mobile terminal and the device with store function | |
| US10082902B1 (en) | Display changes via discrete multi-touch gestures | |
| CN105991953A (en) | Video signal processing method and electronic equipment | |
| CN108039851A (en) | A kind of control method of LRA motors driving chip, apparatus and system | |
| CN105260111B (en) | Function navigation system and touch control device for touch control device | |
| US12032751B2 (en) | Key control device and key control method | |
| CN114157913B (en) | Video training method, terminal, server and system based on picture identification |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |