Key module, key signal identification method and electronic equipment
By using buffer components in the key module and utilizing the deformation characteristics of the expandable fluid and conductive shrapnel, the problem of high error contact rate of the key module in the prior art is solved, and higher operation accuracy and reliability of equipment response are achieved.
Patent Information
- Application Number
- CN202510303050.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-13
- Publication Date
- 2025-06-13
- Estimated Expiration
- 2045-03-13
AI Technical Summary
In the prior art, the error rate of the key module is high, causing the electronic device to perform operations that are not required by the user.
A key module is designed, which adopts a buffer assembly, including a buffer layer and an expanded fluid. The buffer layer is arranged on the side of the circuit board facing away from the button, and the expansion fluid and the conductive shrapnel are arranged at intervals. By adjusting the viscosity and deformation characteristics of the expandable fluid, the conductive shrapnel contacts the circuit board during rapid pressing and outputs electrical signals; when the conductive shrapnel is slowly pressed or the object is squeezed, the distance between the conductive shrapnel and the circuit board is not conducted, reducing the error contact rate.
It effectively reduces the error touch rate of the key module, ensures that the electronic device only performs the operations that the user intends, and improves the equipment's response accuracy.
Smart Images

Figure CN120149092A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of electronic equipment, and specifically relates to a key module, a key signal recognition method and an electronic equipment. Background Art
[0002] In order to improve the utilization rate of buttons in electronic devices, set different times of pressing the same button to trigger different responses of the electronic device. For example: pressing the power button once triggers the electronic device to lock the screen. Pressing the power button five times in a row triggers the emergency contact to make an emergency call.
[0003] In the related art, a button, a conductive spring sheet and a circuit board are arranged in sequence, and the button is pressed so that the button pushes the conductive spring sheet to contact the circuit board, so that the button module sends an electrical signal. When a user holds an electronic device or an object presses the electronic device, the button may be pressed multiple times, causing the conductive spring sheet and the circuit board to be accidentally touched, resulting in a high accidental touch rate of the button module in the related art, and the electronic device performs an operation not required by the user. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a key module, a key signal recognition method and an electronic device, which can solve the technical problem of high false touch rate of the key module.
[0005] In a first aspect, an embodiment of the present application provides a key module, including:
[0006] A key, a conductive spring and a circuit board are sequentially arranged along a first direction;
[0007] A buffer component, comprising a buffer layer and an expansive fluid, wherein the buffer layer is arranged on a side of the circuit board away from the button, the buffer layer has a sealed accommodating cavity, the expansive fluid is filled into the accommodating cavity, and the expansive fluid and the conductive spring are arranged at intervals along a first direction;
[0008] When the key module is in the first state, the conductive spring sheet is not subjected to key pressing, and the conductive spring sheet is spaced apart from the conductive circuit board;
[0009] When the key module is in the second state, the conductive spring piece is subjected to key pressing and generates a shear rate greater than or equal to the first rate, the viscosity of the dilatant fluid is greater than or equal to the first viscosity, and the conductive spring piece is deformed in a direction away from the key and is in contact with the conductive circuit of the circuit board to be connected;
[0010] When the key module is in the third state, the conductive spring piece is subjected to key pressing and generates a shear rate less than the first rate, the viscosity of the expansive fluid is less than the first viscosity, the conductive spring piece is spaced from the conductive circuit of the circuit board, and the conductive spring piece and the circuit board deform together in a direction away from the key.
[0011] Second aspect, an embodiment of the present application provides a method for identifying a key signal, which is applied to an electronic device. The electronic device has a key module provided as in the first aspect. The method includes:
[0012] When it is detected that the key module outputs n first pressing signals within a first preset duration, calculate the interval duration between the first pressing signals with adjacent output times, where n≥2;
[0013] Determine whether to respond to the n first pressing signals according to the duration of the first pressing signals and the interval duration.
[0014] Third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a key module provided as in the first aspect. The memory stores a program or instruction that can run on the processor. When the program or instruction is executed by the processor, the steps of the method as in the first aspect are implemented.
[0015] Fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by the processor, the steps of the method as in the second aspect are implemented.
[0016] Fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method as in the second aspect.
[0017] Sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method as in the second aspect.
[0018] In the embodiment of the present application, by arranging the dilatant fluid and the conductive elastic sheet at intervals in the first direction, the dilatant fluid can exhibit a solid-like state at a shear rate greater than or equal to the first rate. The dilatant fluid supports the fixing of the circuit board, so that the conductive elastic sheet deforms in the direction away from the key and contacts and conducts with the conductive circuit of the circuit board, so as to output an electrical signal for the operation of the user quickly pressing the key; the dilatant fluid can exhibit a liquid-like state at a shear rate less than the first rate. The dilatant fluid, the buffer layer, the circuit board, and the conductive elastic sheet deform together, so that the conductive elastic sheet is spaced from the conductive circuit of the circuit board and does not conduct, so that the signal output of the key module is not affected by the accidental touch of the user slowly pressing the key or the continuous extrusion of the key by an object, reducing the accidental touch rate of the key module. Description of the Drawings
[0019] Figure 1 is a schematic cross-sectional structure diagram of a key module in a first state provided in an embodiment of the present application;
[0020] Figure 2 It is a schematic cross-sectional structure diagram of a key module in the second state provided in an embodiment of the present application;
[0021] Figure 3 It is a schematic cross-sectional structure diagram of a key module in the third state provided in an embodiment of the present application;
[0022] Figure 4 It is a schematic flowchart of a method for identifying key signals provided in an embodiment of the present application;
[0023] Figure 5 It is a schematic structural diagram of a device for identifying key signals provided in another embodiment of the present application;
[0024] Figure 6 It is a schematic structural diagram of an electronic device provided in another embodiment of the present application;
[0025] Figure 7 It is a schematic hardware structure diagram of an electronic device provided in an embodiment of the present application. Description of the drawings:
[0027] 1. Key; 11. Finger pressure part; 12. Conduction part; 13. Engagement part; 2. Conductive elastic sheet; 3. Circuit board; 4. Buffer assembly; 41. Buffer layer; 411. First buffer sub-layer; 4111. First buffer part; 4112. Second buffer part; 412. Second buffer sub-layer;
[0028] 42. Accommodation cavity; 43. Expansive fluid; 44. Buckle;
[0029] X. First direction. Detailed implementation manners
[0030] Next, the technical solutions in the embodiments of the present application will be clearly described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art belong to the scope of protection of the present application.
[0031] Terms such as "first" and "second" in the description and claims of the present application are used to distinguish similar objects, rather than to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are usually of the same type, and the number of objects is not limited. For example, the first object can be one or multiple. In addition, "and / or" in the description and claims means at least one of the connected objects, and the character " / ", generally represents an "or" relationship between the associated objects before and after.
[0032] The key module, key signal recognition method and electronic device provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.
[0033] See also Figure 1 , Figure 2 and Figure 3 , the embodiment of the present application provides a key module, the key module includes a key 1, a conductive spring 2 and a circuit board 3 arranged in sequence along a first direction X, and a buffer component 4, the buffer component 4 includes a buffer layer 41 and an expansive fluid 43, the buffer layer 41 is arranged on a side of the circuit board 3 away from the key 1, the buffer layer 41 has a closed accommodating cavity 42, the expansive fluid 43 is filled into the accommodating cavity 42, and the expansive fluid 43 and the conductive spring 2 are arranged at intervals along the first direction X;
[0034] When the key module is in the first state, the conductive spring sheet 2 is not pressed by the key 1, and the conductive spring sheet 2 and the conductive circuit of the circuit board 3 are spaced apart;
[0035] When the key module is in the second state, the conductive spring sheet 2 is pressed by the key 1 and generates a shear rate greater than or equal to the first rate, the viscosity of the dilatant fluid 43 is greater than or equal to the first viscosity, and the conductive spring sheet 2 is deformed in a direction away from the key 1 and is in contact with the circuit board 3 for conduction;
[0036] When the button module is in the third state, the conductive spring 2 is pressed by the button 1 and generates a shear rate less than the first rate, the viscosity of the expansive fluid 43 is less than the first viscosity, the conductive spring 2 is spaced from the conductive circuit of the circuit board 3, and the conductive spring 2 and the circuit board 3 are deformed together in a direction away from the button 1.
[0037] The key module can be installed in electronic devices such as mobile phones, tablet computers, laptops, PDAs, and vehicle-mounted devices, and the embodiments of the present application are not specifically limited. The key module can be used as an input module for the entire machine, or as one of multiple input units in an input module. The input module can be a keyboard, a screen-off control button, a volume adjustment button, a brightness adjustment button, etc. The multiple input units can be multiple buttons set in a keyboard. The following is an example of a key module being installed in a mobile phone, and the key module being a power button.
[0038] The button 1 is a component for the user to interact with the button module. The user can operate the button module through the button 1 to realize the operation of the electronic device.
[0039] Part or all of the conductive elastic sheet 2 is made of a conductive material, and the conductive elastic sheet 2 is disposed opposite to the conductive circuit in the circuit board 3. Under an external force, the conductive elastic sheet 2 undergoes a certain deformation, and the deformed conductive elastic sheet 2 contacts the conductive circuit on the circuit board 3 to form a loop, and the circuit board 3 outputs a changing electrical signal. A processor connected to the circuit board 3 analyzes the electrical signal to perform an operation corresponding to the electrical signal. The conductive elastic sheet 2 can be a circular metal elastic sheet, a cross-shaped metal elastic sheet, a triangular metal elastic sheet, an oval metal elastic sheet, etc.
[0040] The buffer layer 41 is made of a material with good deformation ability and elasticity, such as: polyurethane, silica gel, etc. The buffer layer 41 has a closed receiving cavity 42, so that the expansible fluid 43 can be filled into the receiving cavity 42 without leakage.
[0041] The expansible fluid 43 is a non-Newtonian fluid. The viscosity of the expansible fluid 43 increases with the increase of the shear rate. When the shear rate applied to the expansible fluid 43 increases, its viscosity will increase significantly. When the shear rate is fixed, the viscosity of the expansible fluid 43 will not change with time.
[0042] Please refer to Figure 1 , when the user does not press the button 1 or there is no object pressing the button 1, the button module is in the first state. The conductive elastic sheet 2 does not bear the pressing of the button 1, and the conductive elastic sheet 2 is spaced from the circuit board 3, so that the conductive elastic sheet 2 is not conductive to the circuit board 3.
[0043] Please refer to Figure 2 , when the user quickly presses the button 1, the button module is in the second state. The conductive elastic sheet 2 bears the pressing of the button 1 and generates a shear rate greater than or equal to the first rate, and the viscosity of the expansible fluid 43 is greater than or equal to the first viscosity, so that the expansible fluid 43 exhibits a solid-like state. The expansible fluid 43 and the buffer layer 41 can effectively support the circuit board 3 to remain unchanged, so that the conductive elastic sheet 2 deforms in the direction away from the button 1 and contacts the conductive circuit of the circuit board 3.
[0044] Please refer to Figure 3 , when the user slowly presses the button 1 or an object slowly presses the button 1, the button module is in the third state. The conductive elastic sheet 2 bears the pressing of the button 1 and generates a shear rate less than the first rate, and the viscosity of the expansible fluid 43 is less than the first viscosity, so that the expansible fluid 43 exhibits a liquid-like state. The expansible fluid 43 and the buffer layer 41 are deformed together under the action of the force transmitted from the button 1. The circuit board 3 loses the support of the expansible fluid 43, and the conductive elastic sheet 2 and the circuit board 3 deform in the direction away from the button 1 together, so that the conductive elastic sheet 2 does not contact the conductive circuit of the circuit board 3 and the conductive elastic sheet 2 is not conductive to the circuit board 3.
[0045] The viscosity of the dilatant fluid 43 can be adjusted by adjusting the components of the dilatant fluid 43, so that the dilatant fluid 43 can exhibit a solid-like state at a shear rate greater than or equal to the first rate; and exhibit a liquid-like state at a shear rate less than the first rate.
[0046] In the solution of the present application, by arranging the dilatant fluid 43 and the conductive elastic sheet 2 at an interval along the first direction X, the dilatant fluid 43 can exhibit a solid-like state at a shear rate greater than or equal to the first rate. The dilatant fluid 43 supports the fixing of the circuit board 3, so that the conductive elastic sheet 2 deforms in a direction away from the key 1 and contacts and conducts with the conductive circuit of the circuit board 3, so that an electrical signal can be output for the operation of the user quickly pressing the key 1; so that the dilatant fluid 43 can exhibit a liquid-like state at a shear rate less than the first rate. The dilatant fluid 43, the buffer layer 41, the circuit board 3 and the conductive elastic sheet 2 deform together, so that the conductive elastic sheet 2 is spaced apart from the conductive circuit of the circuit board 3 and does not conduct, so that the signal output of the key module is not affected by the accidental touch of the user slowly pressing the key 1 or the continuous extrusion of the key 1 by an object, reducing the accidental touch rate of the key module.
[0047] In a possible implementation manner, the key 1 includes a finger pressure part 11 and a conduction part 12 connected to each other. The conduction part 12 is arranged between the finger pressure part 11 and the conductive elastic sheet 2. The orthographic projection of the conduction part 12 along the first direction X on the buffer layer 41 and the orthographic projection of the dilatant fluid 43 along the first direction X on the buffer layer 41 at least partially overlap.
[0048] The finger pressure part 11 has a surface for contacting the user, and the user applies a force to the key 1 by contacting this surface. The finger pressure part 11 can be plate-shaped.
[0049] The conduction part 12 can be integrally formed with the finger pressure part 11, or the conduction part 12 can be prepared in advance and then assembled to the finger pressure part 11. The conduction part 12 is used to conduct the force received by the finger pressure part 11 to the conductive elastic sheet 2. The orthographic projection of the conduction part 12 along the first direction X on the buffer layer 41 and the orthographic projection of the dilatant fluid 43 along the first direction X on the buffer layer 41 at least partially overlap, so that when the conduction part 12 quickly presses the conductive elastic sheet 2, the conductive elastic sheet 2 can stably contact with a part of the circuit board 3 effectively supported by the dilatant fluid 43.
[0050] Optionally, the orthographic projection of the conduction part 12 along the first direction X on the buffer layer 41 is located within the orthographic projection of the dilatant fluid 43 along the first direction X on the buffer layer 41, so that all of the deformed conductive elastic sheet 2 stably contacts with a part of the circuit board 3 effectively supported by the dilatant fluid 43.
[0051] The button 1 may include a plurality of conductive portions 12. The plurality of conductive portions 12 are connected to a pressing portion 11. The plurality of conductive portions 12 respectively correspond to different conductive elastic sheets 2, and the different conductive elastic sheets 2 respectively correspond to different conductive lines of the circuit board 3. Thus, when the entire button 1 is quickly pressed, the plurality of conductive portions 12 can respectively push the respective conductive elastic sheets 2 to deform, so as to realize that the different conductive elastic sheets 2 respectively contact the different conductive lines of the circuit board 3. When a part of the button 1 is quickly pressed, a single conductive portion 12 can push the corresponding conductive elastic sheet 2 to deform, so as to realize that a single conductive elastic sheet 2 contacts the corresponding conductive line.
[0052] In a possible implementation manner, the buffer layer 41 includes at least two buffer sub-layers stacked along the first direction X, and one or more of the at least two buffer sub-layers form a receiving cavity 42.
[0053] The buffer layer 41 may have a plurality of buffer sub-layers, and different buffer sub-layers may be prepared from different materials, so that the buffer layer 41 has different physical and chemical characteristics. The receiving cavity 42 may be formed by hollowing out a single buffer sub-layer, or may be formed by hollowing out a plurality of buffer sub-layers together.
[0054] In a possible implementation manner, the at least two buffer sub-layers include a first buffer sub-layer 411 and a second buffer sub-layer 412. The first buffer sub-layer 411 includes a first buffer portion 4111 and a second buffer portion 4112 connected to each other. The receiving cavity 42 is formed in the first buffer portion 4111, and the second buffer sub-layer 412 is stacked on one side of the second buffer portion 4112 close to the button 1.
[0055] The materials of the first buffer sub-layer 411 and the second buffer sub-layer 412 may be polyurethanes prepared by different processes. Optionally, the rebound rate of the first buffer sub-layer 411 is less than the rebound rate of the second buffer sub-layer 412, so that the first buffer sub-layer 411 can be adapted to deform together with the expansible fluid 43 in a quasi-liquid state, and after the pressure applied to the button 1 is removed, the first buffer sub-layer 411 is adapted to the switching of the expansible fluid 43 from the quasi-liquid state to the quasi-solid state.
[0056] In a possible implementation manner, the second buffer portion 4112 surrounds the first buffer portion 4111, and the second buffer sub-layer 412 is stacked on one side of the second buffer portion 4112 close to the button 1, so that the pressed circuit board 3 can directly act on the first buffer sub-layer 411, and the part of the button 1 that does not contact the conductive elastic sheet 2 can directly act on the second buffer sub-layer 412.
[0057] In a possible implementation manner, the first buffer portion 4111 protrudes in the direction close to the button 1. The thickness of the first buffer portion 4111 along the first direction X is H1, and the thickness of the second buffer portion 4112 along the first direction X is H2, and H1 > H2.
[0058] The surface of the first buffer sub-layer 411 facing away from the button 1 can be a flat surface, so that when the button module is disposed in the electronic device, the first buffer sub-layer 411 can be supported on other structures of the electronic device. The other structures can be the middle frame, main board, etc. of the electronic device.
[0059] The first buffer portion 4111 protrudes towards the button 1 relative to the surface of the second buffer portion 4112 close to the button 1, and H1>H2 is set to ensure that the first buffer portion 4111 has a sufficient thickness to form the accommodation cavity 42, and the side wall surrounding the accommodation cavity 42 has a sufficient thickness, so that the first buffer portion 4111 can deform together with the expansible fluid 43, avoiding the first buffer portion 4111 being pressed and broken, resulting in the leakage of the expansible fluid 43. The side wall surrounding the accommodation cavity 42 having a sufficient thickness can also enable the first buffer portion 4111 to restore its shape after the external force is removed, and the restored first buffer portion 4111 drives the expansible fluid 43 in the accommodation cavity 42 to restore its shape.
[0060] In a possible implementation manner, the button 1 further includes a engaging portion 13 connected to the finger pressing portion 11, and the buffer assembly 4 further includes a buckle 44 disposed on the buffer layer 41, and the engaging portion 13 is engaged with the buckle 44.
[0061] The engaging portion 13 is engaged with the buckle 44 to ensure the stable connection between the button 1 and the buffer layer 41. When the button module is in the third state, the conductive elastic sheet 2 bears the pressing of the button 1 and generates a shear rate less than the first rate, the viscosity of the expansible fluid 43 is less than the first viscosity, the conductive elastic sheet 2 and the circuit board 3 deform together, and the engaging portion 13 presses the buffer layer 41, and the user can feel the damping.
[0062] Please refer to Figure 4 , the embodiment of the present application provides an application to an electronic device, and the electronic device has the button module as described above. The method includes:
[0063] S100, when it is detected that the button module outputs n first pressing signals within the first preset duration, calculate the interval duration between the first pressing signals with adjacent output times, n≥2;
[0064] S200, determine whether to respond to the n first pressing signals according to the duration of the first pressing signal and the interval duration.
[0065] The electronic device can be a mobile phone, a tablet computer, a laptop computer, a handheld computer, an in-vehicle electronic device, a Mobile Internet Device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. It can also be a server, a Network Attached Storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, etc. The embodiments of the present application do not make specific limitations.
[0066] The button module can serve as the input module of the whole machine or one of the multiple input units in the input module. The input module can be a keyboard, a screen-off control button, a volume adjustment button, a brightness adjustment button, etc. The multiple input units can be multiple buttons arranged in the keyboard. The circuit board of the button module is electrically connected to the processor of the electronic device. When the conductive shrapnel in the button module is electrically connected to the circuit board, the button module outputs a changing electrical signal to the processor. The changing electrical signal includes a first pressing signal and a second pressing signal. The first pressing signal and the second pressing signal can be the high-level signal and the low-level signal in the output electrical signal respectively.
[0067] Optionally, when the conductive shrapnel in the button module is electrically connected to the conductive line of the circuit board, the button module outputs a low-level signal to the processor. When the conductive shrapnel in the button module is open-circuited with the conductive line of the circuit board, the button module outputs a high-level signal to the processor. When the user quickly presses the button 3 times, the conductive shrapnel is electrically connected to the conductive line of the circuit board 3 times and open-circuited 3 times in sequence, and the button module outputs an alternately changing low-level signal and high-level signal to the processor.
[0068] Optionally, when the conductive shrapnel in the button module is electrically connected to the conductive line of the circuit board, the button module outputs a high-level signal to the processor. When the conductive shrapnel in the button module is open-circuited with the circuit board, the button module outputs a low-level signal to the processor. When the user quickly presses the button 3 times, the conductive shrapnel is electrically connected to the conductive line of the circuit board 3 times and open-circuited 3 times in sequence, and the button module outputs an alternately changing high-level signal and low-level signal to the processor.
[0069] The first preset duration and the value of n are preset values, used to identify that the user presses the button module multiple times within a short period through the first preset duration and the value of n. Optionally, the first preset duration is 3s - 4s, and n is 5.
[0070] When the first press signal is a high-level signal, in chronological order, n high-level signals are output in sequence. The n high-level signals are sorted according to the sequence of output time, and the interval duration between the high-level signal at the P2 position and the high-level signal at the P1 position, the interval duration between the high-level signal at the P3 position and the high-level signal at the P2 position, and so on... until the interval duration between the high-level signal at the Pn-1 position and the high-level signal at the Pn position is calculated, obtaining the interval duration between adjacent press signals in terms of output time.
[0071] The duration of the first press signal and the interval duration between adjacent press signals reflect the interval duration and the duration when the user presses the button. If the interval duration is within a reasonable range, it is considered that the button press is the user's true intention; if the interval duration is too long or too short, it is considered that the button press is a mis-touch. If the duration is within a reasonable range, it is considered that the button press is the user's true intention; if the duration is too long or too short, it is considered that the button press is a mis-touch.
[0072] In the solution of this application, by setting whether to respond to n first press signals according to the duration of the first press signal and the interval duration, it is possible to determine whether the press signal is a mis-touch by the interval duration and the duration of the output press signal, thereby reducing the mis-touch rate of the button module.
[0073] In a possible implementation manner, S200 includes:
[0074] S210, when m consecutive interval durations are all greater than the second preset duration, determine the adjacent first press signals for calculating the m interval durations in pairs, and calculate the average value according to the first press signal with the earlier output time among the adjacent first press signals, where m ≤ n;
[0075] S220, when the average value is greater than or equal to the preset press threshold, respond to the n first press signals.
[0076] The value of m and the preset press threshold are preset values, used to identify the relatively fast m times when the user presses the button module multiple times within a short period. Optionally, m is 3. When the first press signal is a high-level signal, the preset press threshold is 270ms - 300ms. When the first press signal is a low-level signal, the preset press threshold is 200ms - 230ms.
[0077] Exemplarily, when the first press signal is a high-level signal, the preset press threshold is 280 ms. The first press signals H1, H2, and H3 are output in sequence, and T H2-> T H1 ≤ 280 ms, T H3-> T H2 ≤ 280 ms, T H4-> T H3 ≤ 280 ms, then it is considered that the press inputs corresponding to the first press signals H1, H2, and H3 are three quick presses of the button. Calculate the average value of H1, H2, and H3, compare the average value with the preset press threshold. In the case where the average value is greater than or equal to the preset press threshold, respond to n first press signals; in the case where the average value is less than the preset press threshold, do not respond to n first press signals.
[0078] When the button module is the power button, responding to n first press signals can trigger an emergency call.
[0079] In some embodiments, S220 includes:
[0080] S221, detecting whether the electronic device is equipped with a protective case;
[0081] S222, when the electronic device is not equipped with a protective case, in the case where the average value is greater than or equal to the first preset press threshold, respond to n first press signals;
[0082] S223, when the electronic device is equipped with a protective case, in the case where the average value is greater than or equal to the second preset press threshold, respond to n first press signals;
[0083] Wherein, the first preset press threshold is set according to the duration of the press signal output by the button module when the user presses the button module when the electronic device is not equipped with a protective case;
[0084] The second preset press threshold is set according to the duration of the press signal output by the button module when the user presses the button module when the electronic device is equipped with a protective case.
[0085] The protective case is a housing sleeved on the outside of the electronic device and used to protect the electronic device from external force damage. The housing can also have different patterns to enrich the appearance of the electronic device.
[0086] When a protective case is worn on an electronic device, the protective case may block part of the keys or cause varying degrees of obstruction to the user's pressing of the keys, resulting in different pressing habits of the user when the protective case is worn on the electronic device and when the protective case is not worn on the electronic device. The user can pre-enter a first preset pressing threshold and / or a second preset pressing threshold that conform to the user's operating habits by pressing the keys on the electronic device. Then, by determining whether the electronic device is wearing a protective case, it is determined which first preset pressing threshold and second preset pressing threshold entered in which state the calculated average value is compared with, so as to improve the recognition of accidental touches and reduce the accidental touch rate.
[0087] In S221, it can be detected whether the electronic device is wearing a protective case through a sensor provided on the electronic device. The sensor can be a Specific Absorption Rate (SAR) sensor.
[0088] In some embodiments, before S220, it includes:
[0089] Receiving a first input;
[0090] Outputting a first prompt message, where the first prompt message is used to prompt the user to continuously press the key module n times when the electronic device is wearing a protective case;
[0091] Recording n third pressing signals output by the key module, where the third pressing signals include low-level signals and high-level signals, and setting the average value of the low-level signals or the average value of the high-level signals in the third pressing signals as the second preset pressing threshold;
[0092] Outputting a second prompt message, where the second prompt message is used to prompt the user to continuously press the key module n times when the electronic device is not wearing a protective case;
[0093] Recording n fourth pressing signals output by the key module, where the fourth pressing signals include low-level signals and high-level signals, and setting the average value of the low-level signals or the average value of the high-level signals in the fourth pressing signals as the second preset pressing threshold.
[0094] The first prompt message and the second prompt message can be text or image information displayed on the display screen. The first prompt message and the second prompt message can also be voice information played through the speaker, vibration information output by the vibration module, etc.
[0095] It should be noted that for the method for identifying key signals provided in the embodiments of the present application, the execution subject can be a key signal identification device. In the embodiments of the present application, the method for identifying key signals is taken as an example for the key signal identification device to illustrate the key signal identification device provided in the embodiments of the present application.
[0096] Figure 5It is a schematic structural diagram of a key signal recognition device provided by another embodiment of the present application. As Figure 5 shown, the key signal recognition device may include:
[0097] The key module 501 as described above;
[0098] A calculation module 502, configured to calculate the interval duration between adjacent first pressing signals when it is detected that the key module 501 outputs n first pressing signals within a first preset duration, where n≥2;
[0099] A response module 503, configured to determine whether to respond to the n first pressing signals according to the duration of the first pressing signals and the interval duration.
[0100] In an optional example, the response module 503 includes:
[0101] A first calculation unit, configured to determine adjacent first pressing signals for pairwise calculation of m interval durations when m consecutive interval durations are all greater than a second preset duration, and calculate the average value according to the first pressing signal with the earlier output time among the adjacent first pressing signals, where m≤n;
[0102] A first response unit, configured to respond to the n first pressing signals when the average value is greater than or equal to a preset pressing threshold.
[0103] In another optional example, the first response unit is further configured to:
[0104] Detect whether the electronic device is equipped with a protective case;
[0105] When the electronic device is not equipped with a protective case, respond to the n first pressing signals when the average value is greater than or equal to a first preset pressing threshold;
[0106] When the electronic device is equipped with a protective case, respond to the n first pressing signals when the average value is greater than or equal to a second preset pressing threshold;
[0107] Wherein, the first preset pressing threshold is set according to the duration of the pressing signal output by the key module 501 when the user presses the key module 501 when the electronic device is not equipped with a protective case;
[0108] The second preset pressing threshold is set according to the duration of the pressing signal output by the key module 501 when the user presses the key module 501 when the electronic device is equipped with a protective case.
[0109] The key signal recognition device in the embodiments of the present application can be an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices other than terminals. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a handheld computer, a vehicle-mounted electronic device, a Mobile Internet Device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. It can also be a server, a Network Attached Storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, etc. The embodiments of the present application do not make specific limitations.
[0110] The key signal recognition device in the embodiments of the present application can be a device with an operating system. The operating system can be an Android operating system, an IOS operating system, or other possible operating systems. The embodiments of the present application do not make specific limitations.
[0111] The key signal recognition device provided in the embodiments of the present application can implement Figure 3 each process implemented by the method embodiments. To avoid repetition, it will not be elaborated here.
[0112] Optionally, as Figure 6 shown, the embodiments of the present application further provide an electronic device 100, including a processor 101, a memory 102, the aforementioned key module, a program or instruction stored on the memory 102 and executable on the processor 101. When the program or instruction is executed by the processor 101, it implements each process of the above key signal recognition method embodiment and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.
[0113] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
[0114] Figure 7 A schematic diagram of the hardware structure of an electronic device for implementing the embodiments of the present application.
[0115] The electronic device 1000 includes, but is not limited to, components such as a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, and a processor 710, etc.
[0116] Those skilled in the art can understand that the electronic device 1000 may further include a power source (such as a battery) for powering each component. The power source can be logically connected to the processor 710 through a power management system, so as to realize functions such as management of charging, discharging, and power consumption management through the power management system. Figure 7 The structure of the electronic device shown does not limit the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.
[0117] Among them, the processor 710 is configured to calculate the interval duration between the first press signals with adjacent output times when it detects that the key module outputs n first press signals within a first preset duration, where n≥2;
[0118] The processor 710 is configured to determine whether to respond to the n first press signals according to the duration of the first press signals and the interval duration.
[0119] In an optional example, the processor 710 is configured to determine adjacent first press signals for pairwise calculating m interval durations when m consecutive interval durations are all greater than a second preset duration, and calculate an average value according to the first press signal with the earlier output time among the adjacent first press signals, where m≤n;
[0120] The processor 710 is configured to respond to the n first press signals when the average value is greater than or equal to a preset press threshold.
[0121] In another optional example, the processor 710 detects whether the electronic device is wearing a protective case;
[0122] When the electronic device is not wearing a protective case, the processor 710 responds to the n first press signals when the average value is greater than or equal to a first preset press threshold;
[0123] When the electronic device is wearing a protective case, the processor 710 responds to the n first press signals when the average value is greater than or equal to a second preset press threshold;
[0124] Among them, the first preset press threshold is set according to the duration of the press signal output by the key module when the user presses the key module when the electronic device is not wearing a protective case;
[0125] The second preset pressing threshold is set according to the duration of the pressing signal output by the button module when the user presses the button module while the electronic device is wearing a protective case.
[0126] It should be understood that in the embodiments of the present application, the input unit 704 may include a Graphics Processing Unit (GPU) 7041 and a microphone 7042. The graphics processor 7041 processes the image data of the static pictures or videos obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 706 may include a display panel 7061, and the display panel 7061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 707 includes at least one of a touch panel 7071 and other input devices 7072. The touch panel 7071 is also referred to as a touch screen. The touch panel 7071 may include two parts, a touch detection device and a touch controller. The other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), a trackball, a mouse, and a joystick, which will not be elaborated here.
[0127] The memory 709 can be used to store software programs and various data. The memory 709 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data. Among them, the first storage area may store an operating system, application programs or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 709 may include volatile memory or non-volatile memory, or the memory 709 may include both volatile and non-volatile memory. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDR SDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synch link dynamic random access memory (SLDRAM), and a direct rambus random access memory (DRRAM). The memory 709 in the embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.
[0128] The processor 710 may include one or more processing units; optionally, the processor 710 integrates an application processor and a modem processor. Among them, the application processor mainly processes operations related to the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communication signals, such as a baseband processor. It can be understood that the above modem processor may not be integrated into the processor 710.
[0129] The embodiments of the present application also provide a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, it implements each process of the embodiment of the above key signal recognition method and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.
[0130] Among them, the processor is the processor in the electronic device in the above-mentioned embodiment. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk, or an optical disc, etc.
[0131] Another embodiment of the present application provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement each process of the above-mentioned embodiment of the key signal recognition method, and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.
[0132] It should be understood that the chip mentioned in the embodiments of the present application can also be referred to as a system-on-chip, a system chip, a chip system, or a system-on-chip, etc.
[0133] The embodiments of the present application provide a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement each process of the above-mentioned embodiment of the key signal recognition method, and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.
[0134] It should be noted that in this article, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without more limitations, an element defined by the statement "including a..." does not exclude the existence of additional identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in a reverse order according to the functions involved. For example, the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0135] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. The computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disc), and includes several instructions for causing a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of the various embodiments of the present application.
[0136] The embodiments of the present application have been described above in conjunction with the accompanying drawings. However, the present application is not limited to the above specific embodiments. The above specific embodiments are merely illustrative rather than restrictive. Under the inspiration of the present application, those of ordinary skill in the art can also make many forms without departing from the purpose of the present application and the scope protected by the claims, and all of them fall within the protection scope of the present application.
Claims
1. A key module, characterized in that: The button module comprises: A key, a conductive spring and a circuit board are sequentially arranged along a first direction; A buffer component, comprising a buffer layer and an expansive fluid, wherein the buffer layer is disposed on a side of the circuit board away from the button, the buffer layer has a sealed accommodating cavity, the expansive fluid is filled into the accommodating cavity, and the expansive fluid and the conductive spring are spaced apart along the first direction; When the button module is in the first state, the conductive spring sheet is not subjected to the button pressing, and the conductive spring sheet is spaced apart from the conductive circuit of the circuit board; When the key module is in the second state, the conductive spring sheet is subjected to the key pressing and generates a shear rate greater than or equal to the first rate, the viscosity of the dilatant fluid is greater than or equal to the first viscosity, and the conductive spring sheet is deformed in a direction away from the key and is in contact with the conductive circuit of the circuit board; When the button module is in the third state, the conductive spring sheet withstands the button pressing and generates a shear rate less than the first rate, the viscosity of the expansive fluid is less than the first viscosity, the conductive spring sheet is spaced from the conductive circuit of the circuit board, and the conductive spring sheet and the circuit board are deformed together in a direction away from the button.
2. The key module according to claim 1, characterized in that: The button includes a finger pressure portion and a conductive portion connected to each other, the conductive portion is arranged between the finger pressure portion and the conductive spring sheet, and the orthographic projection of the conductive portion on the buffer layer along the first direction at least partially overlaps with the orthographic projection of the expansive fluid on the buffer layer along the first direction.
3. The key module according to claim 1, characterized in that: The buffer layer includes at least two buffer sub-layers stacked along the first direction, and one or more of the at least two buffer sub-layers form the accommodation cavity.
4. The key module according to claim 3, characterized in that: The at least two buffer sublayers include a first buffer sublayer and a second buffer sublayer, the first buffer sublayer includes a first buffer portion and a second buffer portion connected to each other, the accommodating cavity is formed in the first buffer portion, and the second buffer sublayer is stacked on a side of the second buffer portion close to the button.
5. The key module according to claim 4, characterized in that: The first buffer portion protrudes in a direction close to the key, a thickness of the first buffer portion along the first direction is H1, a thickness of the second buffer portion along the first direction is H2, and H1>H2.
6. The key module according to claim 2, characterized in that: The button further includes a clamping portion connected to the finger pressing portion, and the buffer component further includes a buckle arranged on the buffer layer, and the clamping portion is clamped with the buckle.
7. A method for identifying a key signal, characterized in that: Applied to an electronic device, the electronic device having a key module as claimed in any one of claims 1 to 6, the method comprising: When it is detected that the key module outputs n first pressing signals within a first preset time, the interval time between the first pressing signals with adjacent output times is calculated, where n≥2; Whether to respond to the n first press signals is determined according to the duration of the first press signal and the interval duration.
8. The key signal recognition method according to claim 7, characterized in that: The determining whether to respond to the n first press signals according to the duration of the first press signal and the interval duration includes: In the case where m consecutive interval durations are all greater than a second preset duration, determining to calculate the adjacent first press signals of the m interval durations in pairs, and calculating an average value according to the first press signal outputted earlier among the adjacent first press signals, m≤n; When the average value is greater than or equal to a preset pressure threshold, respond to the n first pressure signals.
9. The key signal recognition method according to claim 8, characterized in that: When the average value is greater than or equal to a preset pressure threshold, responding to the n first pressure signals includes: Detecting whether the electronic device is wearing a protective case; When the electronic device is not wearing a protective case, responding to the n first pressing signals when the average value is greater than or equal to a first preset pressing threshold; When the electronic device is wearing a protective case, responding to the n first pressing signals when the average value is greater than or equal to a second preset pressing threshold; The first preset pressing threshold is set according to the duration of the pressing signal output by the button module when the user presses the button module when the electronic device is not wearing a protective case; The second preset pressing threshold is set according to the duration of the pressing signal output by the button module when the electronic device is wearing a protective case and the user presses the button module.
10. An electronic device, characterized in that: It comprises a processor, a memory and a key module as described in any one of claims 1 to 6, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the key signal recognition method as described in any one of claims 7 to 9 are implemented.
Citation Information
Patent Citations
Keyboard
CN101499379A
Electronic equipment and key prompt method
CN103713833A
Actuating device having keys
CN103946764A
Key protection device and electronic equipment
CN217008969U
Input device
JP2003157742A