Signal processing method, electronic equipment and storage medium
By designing a combination of rotating crown and processor in electronic devices, and using the encoder to output pulse signals to control the rotation operation of the user interface, the problem of difficulty in achieving accurate and efficient control of rotating page operations in the prior art is solved, and the accuracy is achieved and efficient user interface rotation operation.
Patent Information
- Application Number
- CN202311009411.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-10
- Publication Date
- 2025-02-18
AI Technical Summary
It is difficult for existing electronic devices to achieve accurate and efficient control in user interface adjustment operations such as rotating pages.
Design an electronic device, including a rotary crown and a processor, which contains an encoder and a key. The encoder is electrically connected to the processor. The encoder outputs a pulse signal when the key is manipulated. The processor performs the target operation according to the pulse signal. .
Accurate control of user interface rotation operation is achieved, control methods are simplified, and operation accuracy and efficiency are improved.
Smart Images

Figure CN119483609A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of control technology, and in particular to a signal processing method, an electronic device, and a storage medium. Background Art
[0002] As electronic devices are widely used, their user interfaces are adjusted more and more frequently, such as rotating pages. In related technologies, electronic devices usually use a photoelectric crown to determine the rotation angle according to the light deflection angle, and then perform operations according to the rotation angle, such as flipping the user interface. Summary of the invention
[0003] The present disclosure provides a signal processing method, an electronic device and a storage medium to solve the above technical problems.
[0004] According to a first aspect of the present disclosure, there is provided an electronic device, comprising a rotating crown and a processor; the rotating crown comprises an encoder and a button; the encoder is electrically connected to the processor;
[0005] The encoder is configured to output at least one pulse signal according to a contact position with the key when the key is manipulated;
[0006] The processor is configured to perform a target operation according to the at least one pulse signal.
[0007] Optionally, the key being manipulated includes at least one of: being rotated, or being pressed at least once and being rotated.
[0008] Optionally, the equivalent circuit of the encoder includes a first detection circuit; the first detection circuit is used to detect whether there is a current path between the first terminal and the third terminal, so as to detect at least one pulse signal output when the key is rotated.
[0009] Optionally, the first detection circuit includes a first equivalent resistor, a first equivalent switch and a first capacitor; the first end of the first equivalent resistor is electrically connected to a power supply, the second end of the first equivalent resistor is electrically connected to the first end of the first equivalent switch and the first terminal, respectively, and the second end of the first equivalent switch is grounded; the first end of the first capacitor is electrically connected to the first end of the first equivalent switch, the second end of the first capacitor is electrically connected to the second end of the first equivalent switch and the third terminal, respectively, for outputting at least one pulse signal through the first terminal and the third terminal when the key is rotated to turn on the first equivalent switch.
[0010] Optionally, a capacitance value of the first capacitor is 1-1000 nF.
[0011] Optionally, the equivalent circuit of the encoder includes a second detection circuit; the second detection circuit is used to detect whether there is a current path between the second terminal and the third terminal, so as to detect at least one pulse signal output when the key is rotated.
[0012] Optionally, the second detection circuit includes a second equivalent resistor, a second equivalent switch and a second capacitor; the first end of the second equivalent resistor is electrically connected to the power supply, the second end of the second equivalent resistor is electrically connected to the first end of the second equivalent switch and the second terminal, respectively, and the second end of the second equivalent switch is grounded; the first end of the second capacitor is electrically connected to the first end of the second equivalent switch, the second end of the second capacitor is electrically connected to the second end of the second equivalent switch and the third terminal, respectively, for outputting at least one pulse signal through the second terminal and the third terminal when the key is rotated to turn on the first equivalent switch.
[0013] Optionally, a capacitance value of the first capacitor is 1-1000 nF.
[0014] Optionally, the equivalent circuit of the encoder includes a third detection circuit; the third detection circuit is used to detect whether there is a current path between the fourth terminal and the fifth terminal, so as to detect the level signal output each time the key is pressed to connect the fourth terminal and the fifth terminal.
[0015] Optionally, a motor is further included; the motor is electrically connected to the processor; and the processor is further configured to output a control signal to make the motor vibrate when each pulse signal is detected.
[0016] Optionally, the encoder includes a first terminal, a second terminal, a third terminal, a fourth terminal and a fifth terminal; the processor is electrically connected to the first terminal, the second terminal, the third terminal, the fourth terminal and the fifth terminal, respectively, and is configured to perform the following steps:
[0017] Acquire the level signal output by the fifth terminal to determine whether there is a current path between the fourth terminal and the fifth terminal, so as to detect the level signal output each time the key is pressed;
[0018] When the level signal output by the fifth terminal is at least one preset level signal, obtaining the level signal output by the first terminal and / or the second receiving line to determine whether there is a current path between the first terminal and the third terminal or whether there is a current path between the second terminal and the third terminal, so as to detect at least one pulse signal output when the key is rotated;
[0019] When the level signal output by the first terminal is maintained for a period longer than a preset period, at least one pulse signal is determined to exist between the first terminal and the third terminal, and / or when the level signal output by the second terminal is maintained for a period longer than a preset period, at least one pulse signal is determined to exist between the second terminal and the third terminal.
[0020] Optionally, the rotating crown includes a button rod, a button cap and a bar tube;
[0021] The clearance between the button rod and the bar tube at the first preset position is less than 0.03mm, and the material matching tolerance is controlled at ±0.01mm;
[0022] The clearance between the bar tube and the button cap at the second preset position is less than 0.03mm, and the material matching tolerance is controlled at ±0.01mm.
[0023] Optionally, the target operation includes at least one of the following: a user interface page turning operation, a volume adjustment operation, a brightness adjustment operation, and a cursor position adjustment operation.
[0024] According to a second aspect of the present disclosure, a signal processing method is provided, which is applicable to an electronic device, wherein the electronic device includes a processor, an encoder and a button, wherein the encoder includes a first terminal, a second terminal, a third terminal, a fourth terminal and a fifth terminal; the processor is electrically connected to the first terminal, the second terminal, the third terminal, the fourth terminal and the fifth terminal respectively, and the processor is configured to execute:
[0025] Acquire the level signal output by the fifth terminal to determine whether there is a current path between the fourth terminal and the fifth terminal, so as to detect the level signal output each time the key is pressed;
[0026] When the level signal output by the fifth terminal is at least one preset level signal, obtaining the level signal output by the first terminal and / or the second receiving line to determine whether there is a current path between the first terminal and the third terminal or whether there is a current path between the second terminal and the third terminal, so as to detect at least one pulse signal output when the key is rotated;
[0027] When the level signal output by the first terminal is maintained for a period longer than a preset period, at least one pulse signal is determined to exist between the first terminal and the third terminal, and / or, when the level signal output by the second terminal is maintained for a period longer than a preset period, at least one pulse signal is determined to exist between the second terminal and the third terminal;
[0028] A target operation is performed according to the at least one pulse signal.
[0029] Optionally, the target operation includes at least one of the following: a user interface page turning operation, a volume adjustment operation, a brightness adjustment operation, and a cursor position adjustment operation.
[0030] According to a third aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, and when an executable computer program in the storage medium is executed by a processor, the method described in the second aspect can be implemented.
[0031] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0032] The electronic device provided by the solution of this embodiment includes a rotating crown and a processor; the rotating crown includes an encoder and a button; the encoder is electrically connected to the processor; the encoder is configured to output at least one pulse signal according to the contact position with the button when the button is manipulated; the processor is configured to perform a target operation according to the at least one pulse signal. In this way, this embodiment can perform a target operation by adopting the method of outputting a pulse signal by the encoder, and the control method is simple and accurate.
[0033] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 The present invention is a block diagram of an electronic device according to an embodiment of the present invention.
[0035] Figure 2 The figure is a schematic diagram of a connection terminal of an encoder according to an embodiment of the present disclosure.
[0036] Figure 3 It is a schematic diagram of an equivalent detection circuit according to an embodiment of the present disclosure.
[0037] Figure 4 This is a circuit diagram of a first detection circuit according to an embodiment of the present disclosure.
[0038] Figure 5 A schematic diagram of a jitter signal according to an embodiment of the present disclosure.
[0039] Figure 6 This is a circuit diagram of a second detection circuit according to an embodiment of the present disclosure.
[0040] Figure 7 The present invention is a circuit diagram of a detection circuit according to an embodiment of the present invention.
[0041] Figure 8The figure is a waveform diagram of a first connection terminal and a second receiving terminal according to an embodiment of the present disclosure.
[0042] Fig. 9 The figure is a schematic structural diagram of a rotating crown according to an embodiment of the present disclosure.
[0043] Fig.10 The present invention is a flowchart of a signal processing method according to an embodiment of the present invention.
[0044] Fig.11 The present invention is a block diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0045] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices consistent with some aspects of the present disclosure as detailed in the appended claims.
[0046] The present disclosure provides a signal processing method, an electronic device and a storage medium. The signal processing method is applicable to an electronic device. Figure 1 , the electronic device includes a processor 11 and a rotating crown 12. The rotating crown 12 includes an encoder 121 and a button 122. The encoder 121 is electrically connected to the processor 11; the encoder 121 is configured to output at least one pulse signal according to the contact position with the button when the button 122 is manipulated; the processor 11 is configured to perform a target operation according to the at least one pulse signal. In one example, the target operation includes at least one of the following: a user interface page turning operation, a volume adjustment operation, a brightness adjustment operation, and a cursor position adjustment operation.
[0047] It should be noted that the button 122 being manipulated may include at least one of the following: being rotated, or being pressed at least once and being rotated.
[0048] See also Figure 2 The encoder 121 includes a first terminal A, a second terminal B, a third terminal C, a fourth terminal D and a fifth terminal E. The processor 11 is electrically connected to the first terminal A, the second terminal B, the third terminal C, the fourth terminal D and the fifth terminal E respectively.
[0049] The fourth terminal and the fifth terminal are used to detect whether the button 122 is pressed. The equivalent detection circuit is as follows: Figure 3As shown. For example, when the button 122 is pressed once, it can indicate that the target operation is to flip the user interface; when the button 122 is pressed twice in succession, it can indicate that the target operation is to adjust the brightness; when the button 122 is pressed three times in succession, it can indicate that the target operation is to adjust the volume, etc., which can be pre-configured according to specific scenarios. For the convenience of describing the scheme, the subsequent embodiments describe the scheme by taking the button 122 being pressed once and rotated and the target operation being the user interface page turning operation as an example, and other target operations can refer to the user interface page turning operation.
[0050] See also Figure 3 , the equivalent circuit of the encoder 121 includes a third detection circuit, which includes a switch device K0 and a resistor R. The first end of the switch device K0 is connected to the power supply VDD via the resistor R, and the second end of the switch device K0 is grounded GND. In addition, the fifth terminal is electrically connected to the first end of the switch device K0, and the fourth terminal is electrically connected to the second end of the switch device K0. When the switch device K0 is disconnected, the power supply VDD provides a high-level signal to the fifth terminal E via the resistor R. When the switch device K0 is turned on, the fifth terminal E is pulled down to a low-level signal by the fourth terminal D, so that a preset level signal can be received when the level signal at the fifth terminal E is detected. It can be understood that a preset level signal can be output each time the key is pressed, so when the key is pressed continuously for multiple times, the processor can receive multiple preset level signals. At this time, the processor can determine the type of target operation according to the number of preset level signals, wherein the type of target operation can refer to the above-mentioned user interface page turning operation, volume adjustment operation, brightness adjustment operation or cursor position adjustment operation, etc. Considering that the page turning operation is taken as an example, other operations are not repeated.
[0051] In one example, the button 122 can be equivalent to the switch device K0. When the button 122 is pressed, the switch device K0 is in the on state; when the button 122 is lifted, the switch device K0 is in the off state. In other words, in this example, the processor can determine whether the button 122 is pressed by detecting the voltage difference between the fourth terminal D and the fifth terminal E. Considering that the fourth terminal D is grounded, the processor can determine whether the button 122 is pressed according to the level signal at the fifth terminal E.
[0052] When the key 122 is pressed, the electronic device needs to perform a target operation, for example, to flip the user interface. At this time, the processor can detect the level signal at the first terminal A and / or the second terminal B to obtain the number of pulses.
[0053] In one example, the equivalent circuit of the encoder includes a first detection circuit; the first detection circuit is used to detect whether there is a current path between the first terminal and the third terminal, so as to detect at least one pulse signal output when the key 122 is rotated. Figure 4 The first detection circuit includes: a first equivalent resistor R1 and a first equivalent switch K1; a first end of the first equivalent resistor R1 is electrically connected to a power supply VDD, a second end of the first equivalent resistor R1 is electrically connected to a first end of the first equivalent switch K1 and a first terminal A respectively, and a second end of the first equivalent switch K1 is grounded GND; a second end of the first equivalent switch K1 is electrically connected to a third terminal C, and a first end of the first equivalent switch K1 is electrically connected to the first terminal A, for outputting at least one pulse signal through the first terminal A and the third terminal C when the button 122 is rotated to turn on the first equivalent switch K1.
[0054] The working principle of the first detection circuit is: when the first equivalent switch K1 is disconnected, a high level signal is output at the first terminal A; when the first equivalent switch K1 is turned on, a low level signal is output at the first terminal A. In this way, the processor 11 can determine whether the first equivalent switch K1 is turned on, that is, whether the key is rotated, based on the voltage difference between the first terminal A and the third terminal C. Considering that the third terminal C is grounded GND, the processor 11 can determine whether the first terminal A and the third terminal C are electrically connected by detecting the level signal at the first terminal A, thereby determining whether the key is rotated.
[0055] In one example, the third terminal C can be electrically connected to the rotating slide located on the key rod in the encoder 121. When the key cap is rotated by an external force, the key rod can be driven to rotate, thereby driving the rotating slide to rotate. When the rotating slide contacts the fixed first terminal A, the first equivalent switch K1 is turned on, and the first equivalent switch K1 can output a low-level signal; when the rotating slide is not in contact with the first terminal A, the first equivalent switch K1 is turned off, and the first terminal A can output a high-level signal. It is understandable that the sum of the resistances of the metal and the wire in the contact area between the rotating slide and the first terminal A can be used as the first equivalent resistor R1.
[0056] In practical applications, considering mechanical contact and other reasons, the first terminal A may output a jitter signal. Figure 5 , the jitter signal in the box may cause the detection result to be incorrect. Therefore, in this example, the first detection circuit also includes a first capacitor C1. Figure 4, the first end of the first capacitor C1 is electrically connected to the first end of the first equivalent switch K1, and the second end of the first capacitor C1 is electrically connected to the second end of the first equivalent switch K1 and the third terminal C, respectively. In other words, the first capacitor C1 is connected in parallel between the first terminal A and the third terminal C of the encoder, and the value range of the first capacitor C1 is 1 to 1000nF. In one example, the value of the first capacitor C1 is 100nF. In this way, in this example, the jitter signal can be eliminated by setting the first capacitor C1, thereby ensuring the accuracy of the detection result.
[0057] In one example, the equivalent circuit of the encoder includes a second detection circuit; the second detection circuit is used to detect whether there is a current path between the second terminal and the third terminal, so as to detect at least one pulse signal output when the key is rotated. Figure 6 The second detection circuit includes a second equivalent resistor R2 and a second equivalent switch K2; a first end of the second equivalent resistor R2 is electrically connected to a power supply VDD, a second end of the second equivalent resistor R2 is electrically connected to a first end of the second equivalent switch K2 and a second terminal B respectively, and a second end of the second equivalent switch K2 is grounded GND; a second end of the second equivalent switch K2 is electrically connected to a third terminal C, and is used to output at least one pulse signal through the second terminal and the third terminal when the key is rotated to turn on the first equivalent switch.
[0058] The working principle of the second detection circuit is: when the second equivalent switch K2 is disconnected, a high level signal is output at the second terminal B; when the second equivalent switch K2 is turned on, a low level signal is output at the second terminal B. In this way, the processor 11 can determine whether the second equivalent switch K2 is turned on, that is, whether the key is rotated, based on the voltage difference between the second terminal B and the third terminal C. Considering that the third terminal C is grounded GND, the processor 11 can determine whether the second terminal B and the third terminal C are electrically connected by detecting the level signal at the second terminal B, thereby determining whether the key is rotated.
[0059] In one example, the third terminal C can be electrically connected to a rotating slide located on the key rod in the encoder 121. When the key cap is rotated by an external force, the key rod can be driven to rotate, thereby driving the rotating slide to rotate. When the rotating slide contacts the fixed second terminal B, the second equivalent switch K2 is turned on, and the second equivalent switch K2 can output a low-level signal; when the rotating slide is not in contact with the second terminal B, the second equivalent switch K2 is turned off, and the second terminal B can output a high-level signal. It is understandable that the sum of the resistances of the metal and the wire in the contact area between the rotating slide and the second terminal B can be used as the second equivalent resistor R2.
[0060] In practical applications, considering mechanical contact and other reasons, the second terminal B may output a jitter signal, which may cause incorrect detection results compared to the jitter signal at the first terminal A. Therefore, in this example, the second detection circuit also includes a second capacitor C2. Figure 6 , the first end of the second capacitor C2 is electrically connected to the first end of the second equivalent switch K2, and the second end of the second capacitor C2 is electrically connected to the second end of the second equivalent switch K2 and the third terminal C, respectively. In other words, the second capacitor C2 is connected in parallel between the second terminal B and the third terminal C of the encoder, and the value range of the second capacitor is 1 to 1000nF. In one example, the value of the second capacitor C2 is 22nF. In this way, the jitter signal can be eliminated by setting the second capacitor C2 in this example, thereby ensuring the accuracy of the detection result.
[0061] Based on the first detection circuit and the second detection circuit, the following can be obtained: Figure 7 The detection circuit shown is an example. Figure 7 When the button is pressed and rotated, the first terminal A and the second terminal B are in contact with or disconnected from the third terminal C. When the first terminal A and the second terminal B are in contact with the third terminal C, the first terminal A and the second terminal B output low-level signals; when the first terminal A and the second terminal B are disconnected from the third terminal C, the first terminal A and the second terminal B output high-level signals. Based on the above principle, the processor can detect the following: Figure 8 Example waveform.
[0062] In this example, the signal periods of the first terminal A and the second terminal B are the same and the phase difference is 1 / 4 period. The rotation direction and rotation angle of the key can be determined by combining the signals of the first terminal A and the second terminal B.
[0063] For example, when the level signal of the second terminal B and the level signal of the first terminal A are first high level signals (1, 1); then, the level signal of the second terminal B is a high level signal and the level signal of the first terminal A is a low level signal, the key is rotated clockwise;
[0064] When the level signal of the second terminal B and the level signal of the first terminal A are first low level signals (00); then, the level signal of the second terminal B is a high level signal and the level signal of the first terminal A is a low level signal, the key is rotated counterclockwise.
[0065] In this example, when the button of the encoder rotates one circle (i.e., 360 degrees), the waveform of the second terminal B of the first terminal A may include 24 rising edges and falling edges, i.e., a total of 48 trigger signals. Thus, each trigger signal may indicate that the button rotates 360 / 48=7.5 degrees, i.e., in this example, a trigger signal may be generated for every 7.5 degrees of rotation.
[0066] Considering mechanical contact and other reasons, the first terminal A or the second terminal B may output a jitter signal, resulting in incorrect detection results. Fig. 9 , the rotating crown includes a button rod 91, a button cap 92 and a bar tube 93. The button cap 92 is fixed on the button rod 91, and the button rod 91 is embedded in the bar tube 93. When the button cap 92 is rotated, the button rod 91 can be driven to rotate in the bar tube 93. At the first preset position, the matching interval between the button rod 91 and the bar tube 93 is less than or equal to 0.03m, and the material matching tolerance is controlled according to ±0.01mm. At the second preset position, the matching clearance between the bar tube 93 and the button cap 92 is less than 0.03mm, and the material matching tolerance is controlled according to ±0.01mm. In this way, this embodiment can avoid the occurrence of noise caused by displacement during the button rotation process, thereby improving the accuracy of the detection result.
[0067] Taking into account mechanical contact and other reasons, a jitter signal may be output at the first terminal A or the second terminal B, resulting in incorrect detection results. In view of the fact that the jitter signal is held for a short time, in one example, the processor obtains the level signal of the first terminal A and the second terminal B; then determines the holding time of the level signal. When the holding time exceeds the preset time, the processor can determine a pulse signal that there is a current path between the first terminal A and the third terminal C, or determine a pulse signal that there is a current path between the second terminal B and the third terminal C. In this way, in this example, the effect of eliminating jitter is achieved by focusing on the low-frequency changes of high and low levels (i.e., stable level signals) and ignoring the frequency modulation signal (vibration signal).
[0068] It should be noted that, considering that the shortest time for the key of the electronic device to rotate one circle is 0.93s, the holding time of the level signal output by the first terminal A and the second terminal B is about 930ms / 24=38.75ms. Considering that the shortest time for the key to rotate one circle during the acceptance of the electronic device is 0.2s, the holding time of each level signal is 200 / 48=4.17ms. Therefore, in this example, the value range of the above-mentioned preset time length can be 3.5ms~4.1ms. In one example, the preset time length can be 4ms.
[0069] It should also be noted that when the processor determines whether the level signal is a valid signal, it can generate a separate thread, which reads the level signal at the first terminal A and the second terminal B; it can also be an interrupt mode, that is, the processor reads the level signal at the first terminal A and the second terminal B when it detects that the key is pressed, so as to achieve the purpose of determining the number of pulse signals.
[0070] In one embodiment, the electronic device further includes a motor (not shown in the figure). The motor is electrically connected to the processor, and the processor is configured to output a control signal to vibrate the motor when each pulse signal is detected. In this way, in this example, the vibration of the motor can give the user a better sense of touch, which is conducive to improving the user experience.
[0071] In one embodiment, after determining the pulse signal, the processor may determine the number of pages of the user interface. For example, when the key is rotated clockwise, the user interface may turn pages upward, and each rising edge signal turns a page and each falling edge turns a page; when the key is rotated counterclockwise, the user interface may turn pages downward, and each rising edge signal turns a page and each falling edge turns a page.
[0072] The embodiment of the present disclosure also provides a signal processing method, which is applicable to the above electronic device, wherein the electronic device includes a processor, an encoder and a button, wherein the encoder includes a first terminal, a second terminal, a third terminal, a fourth terminal and a fifth terminal; the processor is electrically connected to the first terminal, the second terminal, the third terminal, the fourth terminal and the fifth terminal, respectively. Fig.10 , the processor is configured to execute steps 101 to 104:
[0073] In step 101, a level signal outputted by the fifth terminal is obtained to determine whether there is a current path between the fourth terminal and the fifth terminal, so as to detect the level signal outputted each time the key is pressed;
[0074] In step 102, when the level signal output by the fifth terminal is at least one preset level signal, the level signal output by the first terminal and / or the second receiving line is obtained to determine whether there is a current path between the first terminal and the third terminal or whether there is a current path between the second terminal and the third terminal, so as to detect at least one pulse signal output when the key is rotated;
[0075] In step 103, when the level signal output by the first terminal is maintained for a time period exceeding a preset time period, at least one pulse signal is determined to exist between the first terminal and the third terminal in a current path, and / or, when the level signal output by the second terminal is maintained for a time period exceeding a preset time period, at least one pulse signal is determined to exist between the second terminal and the third terminal in a current path;
[0076] In step 104, a target operation is performed according to the at least one pulse signal.
[0077] In one embodiment, the target operation includes at least one of the following: a user interface page turning operation, a volume adjustment operation, a brightness adjustment operation, and a cursor position adjustment operation.
[0078] It should be noted that, considering that the signal processing process has been described when describing the electronic device solution, the details can be referred to the contents of the electronic device embodiment, and will not be repeated here.
[0079] Fig.11 1 is a block diagram of an electronic device according to an exemplary embodiment. For example, the electronic device 1100 may be a smart watch, a smart phone, a computer, a digital broadcast terminal, a tablet device, a medical device, a fitness device, a personal digital assistant, etc. Figures 1 to 10 Device with shown structure and information processing method.
[0080] Reference Fig.11 The electronic device 1100 may include one or more of the following components: a processing component 1102 , a memory 1104 , a power component 1106 , a multimedia component 1108 , an audio component 1110 , an input / output (I / O) interface 1112 , a sensor component 1114 , a communication component 1116 , and an image acquisition component 1118 .
[0081] The processing component 1102 generally controls the overall operation of the electronic device 1100, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 1102 may include one or more processors 1120 to execute computer programs. In addition, the processing component 1102 may include one or more modules to facilitate interaction between the processing component 1102 and other components. For example, the processing component 1102 may include a multimedia module to facilitate interaction between the multimedia component 1108 and the processing component 1102. In an example, the processor 1120 may implement the scheme of the above-mentioned signal processing method.
[0082] The memory 1104 is configured to store various types of data to support operations on the electronic device 1100. Examples of such data include computer programs for any application or method operating on the electronic device 1100, contact data, phone book data, messages, pictures, videos, etc. The memory 1104 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.
[0083] The power supply component 1106 provides power to various components of the electronic device 1100. The power supply component 1106 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 1100. The power supply component 1106 may include a power supply chip, and the controller may communicate with the power supply chip to control the power supply chip to turn on or off the first switching device, so that the battery supplies power to the mainboard circuit or does not supply power.
[0084] The multimedia component 1108 includes a screen that provides an output interface between the electronic device 1100 and the target object. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input information from the target object. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
[0085] The audio component 1110 is configured to output and / or input audio file information. For example, the audio component 1110 includes a microphone (MIC), and when the electronic device 1100 is in an operation mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive external audio file information. The received audio file information can be further stored in the memory 1104 or sent via the communication component 1116. In some embodiments, the audio component 1110 also includes a speaker for outputting audio file information.
[0086] The I / O interface 1112 provides an interface between the processing component 1102 and the peripheral interface module, which may be a keyboard, a click wheel, a button, etc. In one embodiment, the I / O interface 1112 includes the above-mentioned rotating crown and a processor to control the user interface to perform page turning operations.
[0087] The sensor component 1114 includes one or more sensors for providing various aspects of status assessment for the electronic device 1100. For example, the sensor component 1114 can detect the open / closed state of the electronic device 1100, the relative positioning of the components, such as the display screen and the keypad of the electronic device 1100, and the sensor component 1114 can also detect the position change of the electronic device 1100 or a component, the presence or absence of contact between the target object and the electronic device 1100, the orientation or acceleration / deceleration of the electronic device 1100, and the temperature change of the electronic device 1100. In this example, the sensor component 1114 can include a magnetic sensor, a gyroscope, and a magnetic field sensor, and can also include an inertial sensor, an image sensor, etc., wherein the magnetic field sensor includes at least one of the following: a Hall sensor, a thin film magnetoresistive sensor, and a magnetic liquid acceleration sensor.
[0088] The communication component 1116 is configured to facilitate wired or wireless communication between the electronic device 1100 and other devices. The electronic device 1100 can access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G, 5G, or a combination thereof. In an exemplary embodiment, the communication component 1116 receives broadcast information or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1116 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0089] In an exemplary embodiment, the electronic device 1100 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components.
[0090] In an exemplary embodiment, the present disclosure also provides a non-transitory computer-readable storage medium, and when an executable computer program in the storage medium is executed by a processor, the above-mentioned method can be implemented.
[0091] In an exemplary embodiment, a chip is also provided, the chip including a processor and an interface for reading a computer program through the interface to implement the above method. The chip may be a conventional CPU (central processing unit) chip, a GPU (graphics processing unit) chip, etc., or an acceleration chip dedicated to artificial intelligence technology, such as an AI (Artificial Intelligence) accelerator, etc.
[0092] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the disclosure disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0093] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. An electronic device, characterized in that: It includes a rotating crown and a processor; the rotating crown includes an encoder and a button; the encoder is electrically connected to the processor; The encoder is configured to output at least one pulse signal according to a contact position with the key when the key is manipulated; The processor is configured to perform a target operation according to the at least one pulse signal.
2. The electronic device according to claim 1, characterized in that: The key being manipulated includes at least one of the following: being rotated, or being pressed at least once and being rotated.
3. The electronic device according to claim 2, characterized in that: The equivalent circuit of the encoder includes a first detection circuit; the first detection circuit is used to detect whether there is a current path between the first terminal and the third terminal, so as to detect at least one pulse signal output when the key is rotated.
4. The electronic device according to claim 3, characterized in that: The first detection circuit includes a first equivalent resistor, a first equivalent switch and a first capacitor; the first end of the first equivalent resistor is electrically connected to a power supply, the second end of the first equivalent resistor is electrically connected to the first end of the first equivalent switch and the first wiring terminal respectively, and the second end of the first equivalent switch is grounded; the first end of the first capacitor is electrically connected to the first end of the first equivalent switch, the second end of the first capacitor is electrically connected to the second end of the first equivalent switch and the third wiring terminal respectively, and is used to output at least one pulse signal through the first wiring terminal and the third wiring terminal when the key is rotated to turn on the first equivalent switch.
5. The electronic device according to claim 4, characterized in that: The capacitance value of the first capacitor is 1-1000 nF.
6. The electronic device according to claim 2, characterized in that: The equivalent circuit of the encoder includes a second detection circuit; the second detection circuit is used to detect whether there is a current path between the second terminal and the third terminal, so as to detect at least one pulse signal output when the key is rotated.
7. The electronic device according to claim 6, characterized in that: The second detection circuit includes a second equivalent resistor, a second equivalent switch and a second capacitor; the first end of the second equivalent resistor is electrically connected to the power supply, the second end of the second equivalent resistor is electrically connected to the first end of the second equivalent switch and the second terminal, respectively, and the second end of the second equivalent switch is grounded; the first end of the second capacitor is electrically connected to the first end of the second equivalent switch, the second end of the second capacitor is electrically connected to the second end of the second equivalent switch and the third terminal, respectively, for outputting at least one pulse signal through the second terminal and the third terminal when the key is rotated to turn on the first equivalent switch.
8. The electronic device according to claim 7, characterized in that: The capacitance value of the first capacitor is 1-1000 nF.
9. The electronic device according to claim 2, characterized in that: The equivalent circuit of the encoder includes a third detection circuit; the third detection circuit is used to detect whether there is a current path between the fourth terminal and the fifth terminal, so as to detect the level signal output each time the key is pressed to connect the fourth terminal and the fifth terminal.
10. The electronic device according to claim 1, characterized in that: It also includes a motor; the motor is electrically connected to the processor; and the processor is further configured to output a control signal to make the motor vibrate when each pulse signal is detected.
11. The electronic device according to claim 1, characterized in that: The encoder includes a first terminal, a second terminal, a third terminal, a fourth terminal, and a fifth terminal; the processor is electrically connected to the first terminal, the second terminal, the third terminal, the fourth terminal, and the fifth terminal, respectively, and is configured to perform the following steps: Acquire the level signal output by the fifth terminal to determine whether there is a current path between the fourth terminal and the fifth terminal, so as to detect the level signal output each time the key is pressed; When the level signal output by the fifth terminal is at least one preset level signal, obtaining the level signal output by the first terminal and / or the second receiving line to determine whether there is a current path between the first terminal and the third terminal or whether there is a current path between the second terminal and the third terminal, so as to detect at least one pulse signal output when the key is rotated; When the level signal output by the first terminal is maintained for a period longer than a preset period, at least one pulse signal is determined to exist between the first terminal and the third terminal, and / or when the level signal output by the second terminal is maintained for a period longer than a preset period, at least one pulse signal is determined to exist between the second terminal and the third terminal.
12. The electronic device according to claim 1, characterized in that: The rotating crown includes a button rod, a button cap and a bar tube; The clearance between the button rod and the bar tube at the first preset position is less than 0.03mm, and the material matching tolerance is controlled at ±0.01mm; The clearance between the bar tube and the button cap at the second preset position is less than 0.03mm, and the material matching tolerance is controlled at ±0.01mm.
13. The electronic device according to claim 1, characterized in that: The target operation includes at least one of the following: a user interface page turning operation, a volume adjustment operation, a brightness adjustment operation, and a cursor position adjustment operation.
14. A signal processing method, characterized in that: Applicable to an electronic device, the electronic device comprising a processor, an encoder and a button, the encoder comprising a first terminal, a second terminal, a third terminal, a fourth terminal and a fifth terminal; the processor is electrically connected to the first terminal, the second terminal, the third terminal, the fourth terminal and the fifth terminal respectively, and the processor is configured to execute: Acquire the level signal output by the fifth terminal to determine whether there is a current path between the fourth terminal and the fifth terminal, so as to detect the level signal output each time the key is pressed; When the level signal output by the fifth terminal is at least one preset level signal, obtaining the level signal output by the first terminal and / or the second receiving line to determine whether there is a current path between the first terminal and the third terminal or whether there is a current path between the second terminal and the third terminal, so as to detect at least one pulse signal output when the key is rotated; When the level signal output by the first terminal is maintained for a period longer than a preset period, at least one pulse signal is determined to exist between the first terminal and the third terminal, and / or, when the level signal output by the second terminal is maintained for a period longer than a preset period, at least one pulse signal is determined to exist between the second terminal and the third terminal; A target operation is performed according to the at least one pulse signal.
15. The method according to claim 14, characterized in that The target operation includes at least one of the following: a user interface page turning operation, a volume adjustment operation, a brightness adjustment operation, and a cursor position adjustment operation.
16. A non-transitory computer-readable storage medium, characterized in that: When the executable computer program in the storage medium is executed by a processor, the method according to claim 14 or 15 can be implemented.