Key structure and electronic equipment
Through the combination of proximity sensor and elastic parts, the posture changes of the key body are detected and corresponding functions are triggered, which solves the problem of low interaction efficiency of the key structure in the prior art, and realizes a single-key multi-function input and a compact device design.
Patent Information
- Application Number
- CN202410053247.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-12
- Publication Date
- 2025-07-22
AI Technical Summary
The key structure of existing electronic devices requires repeated pressing of users to achieve continuous command output, and the interaction efficiency is low.
The proximity sensor is used to detect the position change of the key body relative to the shell, and to obtain the posture parameters through the deformation of the elastic member, trigger the corresponding key function, and realize the multi-function input of the single key.
It improves the interaction efficiency of electronic devices, reduces the number of buttons, has a compact structure, and reduces the size of the device.
Smart Images

Figure CN120356797A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present application relate to the technical field of communication devices, and in particular, to a key structure and an electronic device. Background Art
[0002] Currently, electronic devices usually have more than two keys, such as volume keys and power keys. These keys are generally mechanical structure keys, and users input instructions by pressing the mechanical keys. Currently, mechanical structure keys usually realize the input of corresponding instructions by pressing the contact between the key and the contact. When a certain instruction needs to be continuously output, the user needs to press the key repeatedly, and the interaction efficiency is relatively low. Therefore, how to improve the interaction efficiency of electronic devices has always been a technical problem concerned by those skilled in the art. Summary of the Invention
[0003] Embodiments of the present application provide a key structure and an electronic device with relatively high interaction efficiency.
[0004] In a first aspect, embodiments of the present application provide a key structure installed in a housing of an electronic device. The housing has an inner cavity and a key mounting hole. The key structure includes:
[0005] A key body, which is slidably limited in the key mounting hole and elastically connected to the housing along a first direction. The key body can deflect relative to the housing, where the first direction is parallel to the extension direction of the key mounting hole;
[0006] A proximity sensor, located in the inner cavity, for obtaining a parameter characterizing the relative position change of the key body with respect to the housing to trigger a corresponding key function.
[0007] In embodiments of the present application, by obtaining the attitude parameter of the key body by the proximity sensor, the current attitude of the key body or the attitude change within a specific time period can be known, so as to trigger a key function matching the attitude change of the key body. In this way, the operator only needs to operate the same key body to continuously output a certain instruction without pressing the key repeatedly, and the interaction efficiency is relatively high. And by using the same key body to input multiple key function instructions, the overall structure of the electronic device is compact, which is beneficial to reducing the volume of the electronic device.
[0008] In an example, it includes an elastic member located in the inner cavity. The elastic member includes a connected body and a free body. The connected body is used to connect to the housing.
[0009] When the key body moves relative to the housing under an external force, the key body drives the free body to rotate relative to the connected body; the key body can deflect relative to its abutting point with the free body;
[0010] The proximity sensor obtains the parameter of the relative position change of the key body with respect to the housing by detecting the attitude parameter of the free body. In the embodiment of the present application, when the key body moves relative to the housing, the key body will simultaneously drive the elastic member to deform, that is, the relative position change of the key body with respect to the housing can be converted into the shape change of the elastic member. By detecting the shape change of the elastic member, the proximity sensor can know the attitude change of the key body, and then trigger the corresponding key function. Detecting the deformation of the elastic member is relatively convenient, and a relatively large signal amount can be obtained, improving the detection reliability.
[0011] In one example, the elastic member extends along the length direction of the key body, and the elastic member and the key body are arranged along the first direction; along the length direction of the key body, the key body and the free body have at least two abutting points arranged at intervals. The number of abutting points can be two or more. The more abutting points there are, the larger the contact area between the key body and the elastic member, and the relatively higher the sensitivity of the deformation of the elastic member.
[0012] In one example, along the length direction of the key body, the surface of the key body facing the free body has at least two guide posts arranged at intervals, and each guide post extends along the first direction. The key body abuts against the free body through each guide post, and the abutting point is the abutting position between the guide post and the free body. The length of the guide post protruding from the key body can be determined according to the installation position of the elastic member in the inner cavity. The key body reliably abuts against the elastic member through the guide post, which not only facilitates the installation of the elastic member, but also the guide post occupies a relatively small volume in the inner cavity.
[0013] In one example, the elastic member includes two connecting bodies, namely a first connecting body and a second connecting body. The first connecting body and the second connecting body are respectively located at two ends of the elastic member along its length, and the free body is located between the first connecting body and the second connecting body; the free body can deform relative to the first connecting body and the second connecting body, and the free body can be a shrapnel structure. In this embodiment, both ends of the elastic member are connected to the housing through the first connecting body and the second connecting body, and the connection reliability is relatively high.
[0014] Alternatively, the connecting body is arranged in the middle of the elastic member, and free bodies are connected to both sides of the connecting portion. The elastic member of this structure has relatively high deformation flexibility.
[0015] In one example, when the key body is in the initial state, the key body elastically abuts against the elastic member. In this way, in addition to being able to cooperate with the proximity sensor to detect the attitude of the key body, the elastic member also has the function of keeping the key body in the initial position, making the key structure more compact, occupying less space, and being beneficial to the overall structure arrangement of the electronic device.
[0016] In one example, the proximity sensor is mounted on the surface of the flexible circuit board. A support is provided in the inner cavity of the housing, and a part of the flexible circuit board is supported by the support. In this example, the proximity sensor is directly mounted on the flexible circuit board and is electrically connected to the processor on the main board through the signal line provided in the flexible circuit board. The structure is simple and the occupation of the inner cavity space of the electronic device is reduced.
[0017] In one example, the proximity sensor is fixed in the inner cavity of the housing. A detection surface is provided on the elastic member. The proximity sensor obtains the parameter of the relative position change of the key body with respect to the housing according to the attitude parameter of the detection surface. The proximity sensor obtains the parameter of the relative position change of the key body with respect to the housing by detecting the distance signal between its position and the detection surface. In this way, by detecting the change in the distance between the proximity sensor and the detection surface, the change in the position of the key body can be known. Similarly, according to the elastic modulus of the free body, the pressing force of the key body can be known. In the embodiment of the present application, the detection surface is processed on the elastic member, and the processing technology is relatively simple.
[0018] In one example, the proximity sensor is fixedly mounted on the free body. The housing and the key body are provided with detection surfaces. The proximity sensor obtains the parameter of the relative position change of the key body with respect to the housing by detecting the distance signal between its position and the detection surface. The proximity sensor is mounted on the free body, and the detection surface can also be directly provided on the housing or the key body. To a certain extent, the occupation of the key structure in the S1 direction can be reduced, the inner cavity space can be saved, and the layout of other electronic components is facilitated.
[0019] In one example, a detection member is provided on the housing, and the detection surface is located on the surface of the detection member facing the proximity sensor. In the embodiment of the present application, the detection member is separately provided, and the detection surface is provided on the detection member, so that the processing difficulty of the detection surface can be reduced.
[0020] In one example, the detection member is located between the key body and the elastic member. The key body has a guide post, and the guide post passes through the detection member and abuts against the free body of the elastic member, which is beneficial to the structural compactness of the key structure.
[0021] In one example, a first limiting member is further included, which is connected between the guide post and the detection member. When the key body moves towards the elastic member, under the action of the first limiting member, the detection member moves along with the guide post, and the mounting position of the free body where the same proximity sensor is located and the rotation direction of the detection surface corresponding to the proximity sensor are opposite. In the embodiment of the present application, the free body and its relative detection surface are opened in an "eight" - shaped structure, and the rotation directions are opposite. Compared with the case where the position of the detection surface remains unchanged, the amount of distance signal detected by the first proximity sensor and the second proximity sensor in this embodiment becomes larger, and a smaller position change amount of the key body 1 can be detected, which is beneficial to improving the detection sensitivity.
[0022] In one example, a second limiting member is further included. The second limiting member is connected to the inner cavity of the housing and is located on the side of the elastic member away from the button body. The second limiting member limits the maximum displacement of the free body moving in the direction away from the button body, so as to avoid excessive deformation of the elastic member and failure.
[0023] In one example, the second limiting member is a limiting block, and the abutting points of the button body and the elastic member are arranged in one-to-one correspondence with the limiting block. In this way, the displacement of the guide post moving in the direction away from the detection surface can be better limited, which plays a protective role for the elastic member and improves the reliability of equipment use.
[0024] In one example, the number of proximity sensors is two, and the two proximity sensors are symmetrically arranged with respect to the central transverse plane of the elastic member. In this embodiment, by setting as few proximity sensors as possible, as many key functions as possible can be realized by using one button body.
[0025] In one example, both proximity sensors include a transmitter and a receiver. The transmitters of the two proximity sensors are symmetrically arranged with respect to the central transverse plane of the elastic member, and the receivers of the two proximity sensors are also symmetrically arranged with respect to the central transverse plane of the elastic member. In this way, the total signal change amount is 2δ, and a higher signal-to-noise ratio will be obtained with this layout method.
[0026] In one example, each proximity sensor includes a first sub-proximity sensor and a second sub-proximity sensor. The first sub-proximity sensor and the second sub-proximity sensor are arranged along the length direction of the button body, and the transmitter of the first sub-proximity sensor and the transmitter of the second sub-proximity sensor are located between the receiver of the first sub-proximity sensor and the receiver of the second sub-proximity sensor. In this embodiment, the setting method of the two proximity sensors is more conducive to obtaining a larger signal change amount.
[0027] In one example, each proximity sensor includes a first sub-proximity sensor and a second sub-proximity sensor. The first sub-proximity sensor and the second sub-proximity sensor are arranged side by side along the width direction of the elastic member, and the transmitter and receiver of the first sub-proximity sensor are arranged along the length direction of the elastic member, and the transmitter and receiver of the second sub-proximity sensor are arranged along the length direction of the elastic member. The transmitters of the first sub-proximity sensor and the second sub-proximity sensor, and the receivers of the first sub-proximity sensor and the second sub-proximity sensor are arranged centrosymmetrically with respect to the same point. In this way, the signal change amount can be further increased, and a higher signal-to-noise ratio can be obtained.
[0028] In one example, each proximity sensor includes a transmitter and two receivers, which are arranged along the length direction of the elastic member. The two receivers are symmetrically arranged with respect to the main axis of the outgoing light of the transmitter. In this embodiment, the transmitter is located between the two receivers and can provide infrared rays for the two receivers, which can save one transmitter and can obtain a signal amount change equivalent to that of a proximity sensor with two transmitters and two receivers.
[0029] In a second aspect, an embodiment of the present application further provides an electronic device, including a housing and the key structure of any one of the above.
[0030] In one example, the housing includes a middle frame, and a key through hole is provided on the side wall of the middle frame.
[0031] In one example, it further includes:
[0032] A storage module that stores key function instructions corresponding one by one to the postures of the key body;
[0033] A processor, configured to receive the parameters detected by the proximity sensor, and determine the current key posture according to the received parameters to trigger the key function instructions corresponding to the posture of the key body.
[0034] In one example, the storage module stores first-type key function instructions and second-type key function instructions. The first-type key function instructions include N static key function instructions corresponding one by one to the postures of a single key body, and the second-type key function instructions include M dynamic key function instructions corresponding one by one to the dynamic postures formed by the postures of two or more key bodies within a predetermined time period, where N and M are integers greater than or equal to 1.
[0035] The electronic device of the embodiment of the present application includes the above key structure, so it also has the above technical effects of the key structure. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 It is a schematic structural diagram of the electronic device provided by the embodiment of the present application;
[0037] Figure 2 is Figure 1 A partial structural diagram of the electronic device at position B shown;
[0038] Figure 3 is Figure 2 An exploded view of the structure shown;
[0039] Figure 4 In [the figure] is the state when the key body 1 is in the initial state, that is, when it is not subjected to pressing force;
[0040] Figure 5 It is a schematic diagram of the posture of the key body when the pressing force P is at the middle position of the key body;
[0041] Figure 6 Schematic diagram of the posture of the key body when approaching the first end under the pressing force P;
[0042] Figure 7 Schematic diagram of the posture of the key body when approaching the second end under the pressing force P;
[0043] Figure 8 is Figure 2 Top view schematic diagram of the structure shown;
[0044] Figure 9 is Figure 2 Front view schematic diagram of the structure shown;
[0045] Figure 10 is Figure 9 A-A cross-sectional schematic diagram in [reference], where the key body is in the pressed state, and m is the central transverse plane of the key body and the elastic member;
[0046] Figure 11 is Figure 2 Schematic diagram of the key body in the non-pressed state in the structure shown;
[0047] Figure 12 Partial structure schematic diagram of the electronic device at B in another embodiment of the present application;
[0048] Figure 13 is Figure 12 Exploded schematic diagram of the structure shown;
[0049] Figure 14 is Figure 12 Cross-sectional view of the structure shown, with the cross-sectional position the same as A-A in [reference], where the key body is in the non-pressed state; Figure 9 in [reference], where the key body is in the non-pressed state;
[0050] Figure 15 is Figure 14 Schematic diagram of the key body in the pressed state in the structure shown;
[0051] Figure 16 Cross-sectional view of the partial structure of the electronic device at B in another embodiment of the present application, with the cross-sectional position the same as A-A in [reference], where the key body is in the non-pressed state; Figure 9 in [reference], where the key body is in the non-pressed state;
[0052] Figure 17 is Figure 16 Exploded schematic diagram of the structure shown;
[0053] Figure 18 is Figure 16 Schematic diagram of the key body in the pressed state in the structure shown;
[0054] Figure 19 As Figure 16 The structure shown only shows a schematic diagram of the key structure;
[0055] Figure 20 This is a simulation schematic diagram of the signal volume when the detection surface rotates clockwise in the embodiment of the present application;
[0056] Figure 21 This is a simulation schematic diagram of the signal volume when the detection surface rotates clockwise in the embodiment of the present application;
[0057] Figure 22 This is a schematic diagram of the action of continuously pressing the key body within a predetermined time period in the embodiment of the present application;
[0058] Figure 23 This is a schematic diagram of a specific arrangement method of the proximity sensor in the key structure in the embodiment of the present application;
[0059] Figure 24 This is a schematic diagram of another specific arrangement method of the proximity sensor in the key structure in the embodiment of the present application;
[0060] Figure 25 This is a schematic diagram of yet another specific arrangement method of the proximity sensor in the key structure in the embodiment of the present application;
[0061] Figure 26 This is a schematic diagram of yet another specific arrangement method of the proximity sensor in the key structure in the embodiment of the present application;
[0062] Figure 27 This is an electrical connection block diagram of the proximity sensor, processor, and storage module in the electronic device in the embodiment of the present application.
[0063] Wherein Figures 1 to 26 The one-to-one correspondence between the reference numerals and component names in the figure is as follows:
[0064] 100 Electronic device; 110 Housing; 111 Side wall; 112 Middle plate; 1121 Fixed position; 113 Inner cavity; 114 Support; 115 First limiting member; 120 Display screen;
[0065] 130 Key structure; 1 Key body; 11 Pressing part; 12 Guide post; 121 Free end; 13 Hook; 14 First limiting member; 1-1 First end; 1-2 Second end; 2 Proximity sensor; 3 Elastic member; 30 Connecting body; 31 First connecting body; 32 Second connecting body; 33 Free body; 331 First surface; 332 Second surface; 4 FPT; 5 Hinge shaft; 6 Detection member; 61 Side surface; 611 First detection surface; 612 Second detection surface; 62 Avoidance hole; 63 Fixed seat; 64 Rotating shaft. Detailed implementation manners
[0066] To enable those skilled in the art to better understand the technical solutions of the embodiments of the present application, the technical solutions of the embodiments of the present application will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0067] The embodiments of the present application relate to an electronic device, where the electronic device may include a handheld device, a vehicle-mounted device, a wearable device, a terminal device, or other processing devices connected to a wireless modem. It may also include a cellular phone, a smart phone, a personal digital assistant (PDA) computer, a tablet computer, a laptop computer, a laptop computer, a camera, a video recorder, a camera, a smart watch, a smart wristband, an augmented reality (AR) device, a virtual reality (VR) device, a vehicle-mounted computer, and other electronic devices.
[0068] The technical solutions and technical effects of the electronic device provided in the embodiments of the present application will be further introduced below taking a mobile phone as an example. The mobile phone may be a tablet mobile phone or a foldable mobile phone. Of course, those skilled in the art should understand that the technical solutions of the embodiments of the present application can be applied to mobile phones or other electronic devices other than mobile phones, such as notebooks.
[0069] Please refer to Figure 1 , Figure 1 which is a schematic structural diagram of the electronic device provided in the embodiments of the present application.
[0070] Please refer to Figure 1 In the embodiments of the present application, the electronic device includes a housing, a display screen, and a button structure. For a mobile phone, the housing includes a middle frame and a battery cover (not shown). A cavity is formed between the middle frame and the battery cover. Electronic components such as the main board, processor, internal memory, charging management module, power management module, and battery of the electronic device (not shown in the figure) can be installed inside the cavity. The display screen is disposed on one side of the middle frame. The housing mainly serves to support and protect the various electronic components.
[0071] In the embodiments of the present application, the housing may be a metal part or a non-metal part, such as a plastic part. Of course, the housing may also include a metal body and a plastic body. The plastic body is formed by an injection molding process, and the metal body can be formed by a stamping process. The plastic body and the metal body are combined into an integral body during the injection molding process.
[0072] The display screen includes a display module (not shown) and a transparent cover plate. The display module is used to display images, videos, etc. The display module can adopt organic light-emitting diode (OLED), active-matrix organic light-emitting diode (AMOLED), flexible light-emitting diode (FLED), quantum dot light-emitting diodes (QLED), electrophoretic display technology (E-Ink), etc. The transparent cover plate covers the outside of the display module and plays a role in protecting the display module. The transparent cover plate can be a glass cover plate, and of course, it can also be other transparent materials that can play a protective function. For example, the transparent cover plate can be transparent polyimide. The display screen can also have a touch function, that is, the display screen can be a touch screen.
[0073] For a mobile phone, the main board can be a PCB board (Printed Circuit Board in English, Printed Circuit Board in Chinese), which is composed of an insulating base plate, connecting wires, and pads for assembling and soldering electronic components, and has the dual functions of a conductive circuit and an insulating base plate. The main board can be a single-sided board, and of course, it can also be a double-sided board or a multi-layer board. It can replace complex wiring, can realize the wiring and electrical connection or electrical insulation between various electronic components, and provide the required electrical characteristics. The electronic devices inside the electronic equipment can be directly installed on the main board, or electrically connected to the main board through coaxial cables or flexible printed circuits (Flexible Printed Circuit, FPC).
[0074] Please refer to Figure 2 , Figure 2 For Figure 1 the partial structural schematic diagram of the electronic device at position B shown.
[0075] An embodiment of the present application provides a key structure 130, as shown in Figure 1 and Figure 2 shown. The key structure 130 is installed on the housing of the electronic device. Specifically, the housing has a connected side wall 111 and a middle plate 112. Only partial structures of the side wall 111 and the middle plate 112 are shown, and the two can enclose an inner cavity 113. The electronic devices of the electronic device can be installed in the inner cavity 113. Figure 1 and Figure 2As shown in the figure, a key mounting hole 110a is provided in the side wall 111 of the housing (please refer to the figure). The key mounting hole 110a penetrates through the side wall 111 of the housing and can communicate with the inner cavity 113. Of course, depending on the different settings of the product and the setting position according to the key structure 130, the key mounting hole 110a is not limited to Figure 1 and Figure 2 the side wall 111 of the housing shown.
[0076] Please refer to Figure 2 , in the embodiment of the present application, the key structure 130 includes a key body 1, a proximity sensor (PS), and an elastic member. The key body 1 includes a pressing portion 11. The pressing portion 11 is normally located outside the key mounting hole 110a for the convenience of the user's operation. The shape of the pressing portion 11 can be reasonably set according to the shape of the product. In the embodiment of the present application, the key body 1 is slidably limited in the key mounting hole 110a. The meaning of slidable limitation is that the key body 1 can reciprocally slide relative to the key mounting hole 110a along the first direction S1, and the key body 1 can be prevented from disengaging from the key mounting hole 110a through a limiting structure. The limiting structure can be a hook 13 provided on the key body 1. The hook 13 can be located on both sides of the key body 1 along the S2 direction. The cooperation between the hook 13 and the middle frame can prevent the key body 1 from disengaging from the key mounting hole 110a. Please refer to Figure 3 .
[0077] In the embodiment of the present application, for the sake of simplicity in describing the technical solution, the extending direction of the key mounting hole is defined as the first direction S1, and the length direction of the key body 1 is defined as the second direction S2. In the embodiment of the present application, the key body 1 is elastically connected to the housing along the first direction S1, so that the key body 1 can return to the initial state under the elastic force. The so-called initial state refers to the state where the key body 1 is not subjected to a pressing force. And in the embodiment of the present application, the key body 1 can deflect inside the key mounting hole 110a relative to the housing 110. Among them, the key body 1 can deflect relative to its elastic abutting point with the housing 110, that is, in the embodiment of the present application, the key body 1 can not only reciprocally slide along the S1 direction relative to the key mounting hole (please refer to Figure 11 ), but also deflect around the abutting point between the key body 1 and the housing 110. The abutting point between the key body 1 and the housing 110 can be one, and of course, it can also be two or more. The key body 1 can deflect around one abutting point, and of course, it can also deflect around each abutting point. For Figure 2 the long-strip key body 1 shown in the figure, both ends of the key body 1 along the second direction can deflect around the abutting point. Which abutting point the key body 1 deflects around is related to the pressing position of the user on the key body 1.
[0078] When the button body 1 is of other shapes, for example, the button body 1 is circular or of other shapes, the positions where the button body 1 deflects around the abutting point are not limited to the two end points in one direction, and the end points in other directions on the button body 1 that form an angle with the second direction S2 can also deflect around the abutting point.
[0079] In the embodiments of the present application, the proximity sensor is located in the inner cavity of the housing 110. The proximity sensor 2 can be an infrared reflection type, a capacitive type, an ultrasonic ranging type, etc. In this article, the infrared reflection type is mainly used to continue introducing the technical solutions and technical effects. The infrared reflection type proximity sensor can be called a proximity light sensor. Its working principle is that an infrared light source, such as an infrared LED or an infrared laser (such as a vertical cavity surface emitting laser), emits infrared light, and at the same time, an infrared light receiver receives the infrared light reflected by the approaching object, integrates the intensity of the reflected infrared light, and senses the approaching distance of the external object through the magnitude of the integrated value.
[0080] The proximity sensor 2 in the present application is used to obtain a parameter characterizing the change in the position of the button body 1 relative to the housing 110. The proximity sensor 2 transmits the obtained parameter information to the main board. The processor on the main board internally stores key functions corresponding one-to-one to the postures of the button body 1. The main board can judge the current posture of the button body 1 according to the parameter detected by the proximity sensor 2, and then trigger the key function corresponding to the current posture of the button body 1. When the user presses the position and the pressing force on the button body 1 are different, the posture of the button body 1 is different. Of course, the processor can further comprehensively judge the key function by combining the change in the posture of the button body 1 within a predetermined time period. The processor further refers to factors such as the pressing time and the change in the posture of the button body 1 within a predetermined time period, and comprehensively judges the key function that should be triggered at the current moment.
[0081] Figures 4 to 7 The one-to-one correspondence between several postures of the button body 1 and their corresponding key functions is shown in Figure 4 In Figure 5 is the schematic diagram of the posture of the button body 1 when the pressing force P is at the middle position of the button body 1, Figure 6 is the schematic diagram of the posture of the button body 1 when the pressing force P is close to the first end 1-1, Figure 7 is the schematic diagram of the posture of the button body 1 when the pressing force P is close to the second end 1-2. Please refer to Figure 4 , press the middle position of the button body 1. At this time, the button body 1 does not deflect relative to the housing, but only slides inward along the S1 direction. At this time, the first key function is triggered; please refer to Figure 5 , press the first end 1-1 of the button body 1. The first end 1-1 deflects towards the inner cavity. At this time, the second key function is triggered; please refer to Figure 6Press the second end 1-2 of the button body 1. At this time, the second end 1-2 deflects towards the inner cavity, and the third key function is triggered at this time; if within a predetermined time, the pressing force gradually slides from the first end to the second end, the fourth key function is triggered at this time. The output instructions corresponding to the first key function, the second key function, the third key function, and the fourth key function are all different. For example, they can be functions such as increasing the volume, decreasing the volume, turning on the screen, and powering on, respectively.
[0082] In the embodiment of the present application, Figure 2 、 Figures 3 to 7 An embodiment is shown in which the number of proximity sensors 2 is two. Of course, the number of proximity sensors can also be one, and of course, it can also be three or more. The processor determines the button posture by receiving the parameters of all proximity sensors, and then triggers the corresponding key function. The number of proximity sensors and the number of key functions can be reasonably set according to the actual needs of the product.
[0083] In the embodiment of the present application, by obtaining the attitude parameters of the button body 1 through the proximity sensor 2, the current attitude of the button body 1 or the attitude change within a specific time period can be known, so as to trigger the key function that matches the attitude change of the button body 1. In this way, the operator only needs to operate the same button body 1 to continuously output a certain instruction without repeatedly pressing the button, and the interaction efficiency is relatively high. And by implementing the input of multiple key function instructions through the same button body, the overall structure of the electronic device is compact, which is beneficial to reducing the volume of the electronic device.
[0084] The acquisition of the position change parameter of the button structure 130 relative to the housing 110 can be obtained by directly detecting the position change of the button structure 130. Of course, it can also be obtained indirectly. The embodiment of the present application shows that it is obtained by detecting the attitude parameter of the elastic member.
[0085] Please refer to Figures 8 to 11 , in the embodiment of the present application, the elastic member 3 is located in the inner cavity of the housing 110. The elastic member 3 can extend along the length direction (S2 direction) of the button body 1, and the elastic member 3 and the button body 1 are arranged along the first direction S1. The elastic member 3 includes a connected body and a free body. The connected body is used to connect with the housing 110, and the two can be fixedly connected, or can be hinged through a hinge shaft 5, or can be detachably connected through a buckle or the like. Compared with the fixed connection between the elastic member 3 and the housing 110, when the elastic member 3 is connected to the housing 110 through the hinge shaft 5, the elastic member 3 is more likely to deform when receiving the acting force of the button body 1, which can improve the detection accuracy of the proximity sensor. The number of connected bodies can be two (please refer to Figure 3 、 Figure 8 、 Figure 10 and Figure 11), which are respectively defined as the first connecting body 31 and the second connecting body 32. The first connecting body 31 and the second connecting body 32 are respectively arranged at both ends of the elastic member 3 in the length direction S2. The free body 33 is connected between the two first connecting body 31 and the second connecting body 32. The elastic member 3 of this structure has relatively high connection reliability.
[0086] Of course, the number of connecting bodies can also be one. For example, only one end of the elastic member 3 is provided with a connecting body 30, and the free body 33 is connected to one side of the connecting body 30. The elastic member 3 is a cantilever beam, or the connecting body 30 is arranged in the middle of the elastic member 3, and free bodies 33 are connected to both sides of the connecting body 30 (please refer to Figures 13 to 15 ).
[0087] The connecting body can be a block structure, which is convenient for installation and fixation. The free body 33 can be a sheet structure. The free body 33 has an elastic sheet with a certain width along the width direction of the button body 1 ( Figure 3 the S3 direction in
[0088] ). The sheet-structured free body 33 is easy to deform, improving the response sensitivity of the button structure 130.
[0089] In the above embodiments, when the button body 1 moves relative to the housing 110, the button body 1 elastically abuts against the free body 33, and the button body 1 will simultaneously drive the elastic member 3 to deform. That is, the position change of the button body 1 relative to the housing 110 can be converted into the shape change of the elastic member 3. By detecting the shape change of the elastic member 3, the proximity sensor can know the attitude change of the button body 1, and then trigger the corresponding button function. Detecting the deformation of the elastic member is relatively convenient, and a relatively large signal amount can be obtained, improving the detection reliability.
[0089] In the embodiments of the present application, by reasonably selecting the elastic modulus of the free body 33, the magnitude of the feedback force of the free body 33 on the button body 1 is adjusted.
[0090] As can be seen from Figures 10 to 11 , the button body 1 has a guide post 12 extending towards the elastic member 3. The free end 121 of the guide post 12 elastically abuts against the elastic member 3. Figure 9 shows that the number of guide posts 12 is two. The two guide posts 12 are arranged at intervals along the length direction S2 of the button body 1. The two guide posts 12 can be symmetrically arranged with respect to the central cross-section m of the button body 1. When the button body 1 moves relative to the housing 110 under the action of an external force P, the free end 121 of the guide post 12 exerts a force on the free body, pushing the free body to rotate relative to the connecting body. The number of guide posts can be one, and of course, it can also be three or more. The length of the guide post 12 protruding from the button body 1 can be determined according to the installation position of the elastic member 3 in the inner cavity. The button body 1 reliably abuts against the elastic member 3 through the guide post 12, which is not only convenient for the installation of the elastic member, but also the guide post occupies a relatively small volume in the inner cavity.
[0091] The contact point between the guide post 12 and the free body 33 is the abutting point. That is to say, the key body 1 and the free body 33 can have one or at least two spaced-apart abutting points, and all the abutting points can be symmetrically arranged with respect to the central cross-section m of the key body 1. When the pressing force part is on the central transverse plane of the key body, the key body 1 can also deflect relative to its abutting point with the free body 33.
[0092] Please refer to Figure 8 、 Figures 10 to 11 , in the embodiment of the present application, the proximity sensor 2 can be directly mounted on the surface of the flexible circuit board 4. A support 114 is provided in the inner cavity of the housing 110, and a part of the flexible circuit board 4 is supported on the support 114. The support 114 can be integrally formed with the housing 110, for example, integrally formed with the housing 110 by injection molding. The proximity sensor 2 is directly mounted on the flexible circuit board 4 and is electrically connected to the processor on the main board through the signal line provided in the flexible circuit board 4. The structure is simple and the occupation of the inner cavity space of the electronic device is reduced. Of course, the proximity sensor 2 can also be electrically connected to the main board through a cable. In the embodiment of the present application, the support 114 is located on the side of the elastic member 3 away from the key body 1, and the flexible circuit board 4 is mounted on the support 114. In this way, the proximity sensor 2 is fixedly mounted in the inner cavity of the housing 110, and the fixing stability of the proximity sensor 2 is relatively high.
[0093] In the embodiment of the present application, a detection surface is provided on the elastic member 3. As seen from Figure 10 and Figure 11 , the detection surface is the first surface 331 of the elastic member 3 facing the proximity sensor side, and the detection surface can be a part or all of the first surface 331. Correspondingly, the side surface of the elastic member 3 facing the key body 1 is defined as the second surface 332 herein. The detection surface in the embodiment of the present application can be specially treated to meet the detection requirements, such as attaching a good reflective material or improving the processing accuracy to obtain a better signal-to-noise ratio. The proximity sensor 2 obtains the parameter of the position change of the key body 1 relative to the housing 110 by detecting the distance signal between its position and the detection surface. In this way, by detecting the change in the distance between the proximity sensor 2 and the detection surface, the position change of the key body 1 can be known, and the pressing force of the key body can also be known according to the elastic modulus of the free body. In the embodiment of the present application, the detection surface is processed on the elastic member 3, and the processing technology is relatively simple.
[0094] In the embodiment of the present application, taking the proximity sensor 2 including a first proximity sensor 21 and a second proximity sensor 22 as an example, the first proximity sensor 21 and the second proximity sensor 22 are symmetrically arranged with respect to the central cross-section m of the key body 1, and the deformation of the free body 33 can be accurately calculated, and the calculation method is relatively simple.
[0095] Please refer to Figures 12 to 15, in the embodiment of the present application, the proximity sensor 2 is fixedly installed on the free body of the elastic member 3. Figures 13 to 15 shows that a connecting body 30 is provided in the middle of the elastic member 3. The connecting body 30 is fixedly connected to the housing 110. Free bodies 33 are provided on both sides of the connecting body 30 along S2. The proximity sensor 2 includes a first proximity sensor 21 and a second proximity sensor 22, which are respectively arranged on the two free bodies 33. Specifically, the first proximity sensor 21 and the second proximity sensor 22 can be arranged at the end of the free body 33 away from the connecting body 30. The elastic member 3 can be an elastic sheet. The structure of the button body 1 can be the same as Figure 2 the structure shown.
[0096] Please refer to Figure 15 , in the embodiment of the present application, a detection member 6 is positioned on the housing 110. The detection member 6 can be positioned on the housing 110 through a fixing seat 63. The fixing seat 63 can be fixedly connected to the housing 110, or can be hinged or hung on the housing 110 through a shaft body 64. The detection member 6 is located between the button body 1 and the proximity sensor 2. A detection surface is provided on the side surface 61 of the detection member 6 facing the proximity sensor 2. When the button body 1 is pressed, the detection surface does not move, and the button body 1 abuts against the free body to drive the free body to deform. All the proximity sensors 2 installed on the free body 33 will move together with the free body. The angle and distance between the proximity sensor 2 and the detection surface will change, so that the deformation of the free body 33 can be known, and finally the position change of the button body 1 can be known.
[0097] In this embodiment, the proximity sensor 2 is installed on the free body 33, and the detection surface can also be directly provided on the housing 110 or the button body 1, which can reduce the occupation of the button structure 130 in the S1 direction to a certain extent, save the inner cavity space, and facilitate the arrangement of other electronic devices.
[0098] In this embodiment, the detection member 6 can be a plate structure and is located between the button body 1 and the flexible circuit board 4. The guide post 12 on the button body 1 passes through the avoidance structure on the detection member 6 and elastically abuts against the free body 33. The avoidance structure can be an avoidance hole 62, and of course it can also be a notch or other structures. In the embodiment of the present application, the detection member 6 is separately provided, and the detection surface is provided on the detection member, which can reduce the processing difficulty of the detection surface. The detection member 6 can be fixed to the housing 110 by bonding or hanging. Of course, the detection member can be an integral structure with the housing 110, that is, the detection surface can be directly provided on the housing 110.
[0099] Please refer to Figures 12 to 15, in order to prevent the elastic member 3 from failing due to excessive deformation, the embodiment of the present application further provides a second limiting member 115. The second limiting member 115 is connected to the inner cavity of the housing 110 and is located on the side of the elastic member 3 away from the key body 1. The second limiting member 115 limits the maximum displacement of the free body 33 moving in the direction away from the key body 1. The second limiting member 115 can be a limiting block, and the limiting blocks and the guide posts 12 can be provided in one-to-one correspondence, so that the displacement of the guide posts 12 moving in the direction away from the detection surface can be better limited, which plays a protective role for the elastic member 3 and improves the reliability of equipment use.
[0100] Please refer to Figures 16 to 19 , and Figure 12 different from that, a first limiting member 14 is further provided on the guide post 12 in the embodiment of the present application, and the other structures are substantially the same. The first limiting member 14 is connected between the guide post 12 and the detection member 6. The first limiting member 14 can be a limiting block, and the limiting block is installed on the guide post 12. When the key body 1 moves towards the elastic member 3, under the action of the first limiting member 14, the detection member 6 moves along with the guide post 12, and the detection member 6 can move relative to its connection with the housing 110. As Figure 19 shown, the first proximity sensor 21 is installed on the first free body 331, the second proximity sensor 22 is installed on the second free body 332, and the connecting body of the elastic member 3 is fixed to the support 114. The detection area of the first proximity sensor 21 is defined as the first detection surface 611, and the first detection surface 611 is generally the area within the left ellipse in the figure. The detection area of the second proximity sensor 22 is defined as the second detection surface 612, and the second detection surface 612 is generally the area within the right ellipse in the figure. When an external force acts on the key body 1, the first free body 331 will rotate counterclockwise around the support 114. Under the action of the limiting block, the first detection surface 611 opposite to the first free body 331 will rotate clockwise. The second free body 332 will rotate clockwise around the support 114. Under the action of the limiting block, the second detection surface 612 opposite to the second free body 332 will rotate counterclockwise, that is, the free body and its opposite detection surface open in a "V" structure, and the rotation directions are opposite. Compared with the case where the position of the detection surface remains unchanged, the distance signal amounts detected by the first proximity sensor and the second proximity sensor in this embodiment become larger, and a smaller position change amount of the key body 1 can be detected, which is beneficial to improving the detection sensitivity.
[0101] In the embodiments of the present application, the number of proximity sensors 2 is at least two, which are arranged along the length direction of the elastic member 3. In this way, the continuous sliding direction and pressing force magnitude of the button body can be determined based on the increasing and decreasing trends of the signal amounts detected by each proximity sensor 2. The so-called sliding direction refers to whether the pressing force slides from the first end 1-1 of the button body 1 to the second end 1-2, or from the second end 1-2 to the first end 1-1. According to the simulation results, when the detection surface rotates clockwise around the connection point with the housing 110 (please refer to Figure 20 ), the signal amount received by the proximity sensor decreases. Assume the signal change amount is -δ; when the detection surface rotates counterclockwise around the connection point with the housing 110 (please refer to Figure 21 ), the signal amount received by the proximity sensor 2 increases. Let the signal amount change be +δ. The relationship between the tilt angle of the elastic member 3 and the received optical power (signal amount) is shown in Table 1 below.
[0102] Table 1
[0103] Operating condition Transmitted optical power / W Received optical power / W Relative difference / W Initial state 1 1.54158E-05 / Clockwise rotation by 0.5° 1 1.53478E-05 -6.79738E-08 Clockwise rotation by 1° 1 1.53180E-05 -9.77614E-08 Clockwise rotation by 2° 1 1.52529E-05 -1.62866E-07 Clockwise rotation by 3.5° 1 1.50440E-05 -3.71833E-07 Clockwise rotation by 5° 1 1.48718E-05 -5.44037E-07 Counterclockwise rotation by -0.5° 1 1.55043E-05 8.85164E-08 Counterclockwise rotation by -1° 1 1.55244E-05 1.08596E-07 Counterclockwise rotation by -2° 1 1.55902E-05 1.74439E-07 Counterclockwise rotation by -3.5° 1 1.57568E-05 3.40982E-07 Counterclockwise rotation by -5° 1 1.59122E-05 4.96354E-07
[0104] Please refer to Figure 22 . In the embodiments of the present application, an example is given where the proximity sensor includes a first proximity sensor 21 and a second proximity sensor 22. Taking the pressing force sliding from the first end 1-1 of the button body to the second end 1-2 as an example, during the sliding process of the pressing force, the changes in the signal amounts detected by the first proximity sensor 21 and the second proximity sensor 22 can be used to know the sliding direction of the button body 1, and then trigger the key function corresponding to the sliding direction of the button body 1. In this embodiment, by setting as few proximity sensors as possible, as many key functions as possible are realized using one button body.
[0105] In the embodiments of the present application, when the button body is in the initial state, the button body 1 elastically abuts against the elastic member 3. In this way, in addition to being able to cooperate with the proximity sensor to detect the posture of the button body 1, the elastic member also has the function of keeping the button body 1 in the initial position, making the button structure 130 more compact, occupying less space, and being beneficial to the overall structure layout of the electronic device.
[0106] Please refer to Figure 23, in the embodiment of the present application, the first proximity sensor 21 and the second proximity sensor 22 can be symmetrically arranged with respect to the central transverse plane m of the elastic member 3, wherein the central transverse plane of the elastic member 3 and the central transverse plane of the key body are coplanar. For a proximity sensor, the proximity sensor includes at least one transmitter 2a and at least one receiver 2b. The transmitter is used to emit detected infrared light or ultrasonic waves, and the receiver 2b is used to sense the infrared light or ultrasonic waves reflected back by the detected surface. The receiver 2b can be a diode, and the diode can convert the received light into an electrical signal and transmit it to the processor. The first proximity sensor 21 and the second proximity sensor 22 are symmetrically arranged. Correspondingly, the transmitters 2a of the first proximity sensor and the transmitters 2a of the second proximity sensor are symmetrically arranged with respect to the central transverse plane of the elastic member 3, and the receivers 2b of the second proximity sensor 22 and the receivers 2b of the second proximity sensor are symmetrically arranged with respect to the central transverse plane of the elastic member 3. In this way, the total signal change amount is 2δ, and this layout method will obtain a higher signal-to-noise ratio.
[0107] Please refer to again Figure 23 , in the embodiment of the present application, transmitters 2a are arranged at the relatively close ends of the first proximity sensor 21 and the second proximity sensor 22, and the receivers 2b of the first proximity sensor 21 and the receivers 2b of the second proximity sensor 22 are respectively arranged at the relatively far ends of the first proximity sensor 21 and the second proximity sensor 22. In this embodiment, the arrangement method of the two proximity sensors is more conducive to obtaining a larger signal change amount.
[0108] Please refer to Figure 24 , in the implementation of the present application, the proximity sensor at each detection position includes a first sub-proximity sensor 211 and a second sub-proximity sensor 212. The first sub-proximity sensor 211 and the second sub-proximity sensor 212 are arranged along the length direction of the key body 1, and the transmitters 2a of the first sub-proximity sensor 211 and the transmitters 2a of the second sub-proximity sensor 212 are located between the receivers 2b of the first sub-proximity sensor 211 and the receivers 2b of the second sub-proximity sensor 212. In this way, the signal change amount can be further increased, and a higher signal-to-noise ratio can be obtained.
[0109] According to the simulation results in the above table, the proximity sensors at each detection position in the key structure 130 can also be arranged as follows to further increase the signal change amount. Please refer to Figure 25, each proximity sensor includes a first sub-proximity sensor 211 and a second sub-proximity sensor 212. The first sub-proximity sensor 211 and the second sub-proximity sensor 212 are arranged side by side along the width direction (S3) of the elastic member 3, and the transmitter 2a and the receiver 2b of the first sub-proximity sensor 211 are arranged along the length direction of the elastic member 3, and the transmitter 2a and the receiver 2b of the second sub-proximity sensor 212 are arranged along the length direction of the elastic member 3. The transmitter 2a of the first sub-proximity sensor, the transmitter 2a of the second sub-proximity sensor 212, the receiver 2b of the first sub-proximity sensor 211, and the receiver 2b of the second sub-proximity sensor 212 are arranged centrosymmetrically about the same point. This can further increase the signal change amount and obtain a higher signal-to-noise ratio.
[0110] Please refer to Figure 26 , in the embodiment of the present application, each proximity sensor (the first proximity sensor 21 and the second proximity sensor 22) includes a transmitter 2a and two receivers 2b. The three are arranged along the length direction of the elastic member 3, and the two receivers 2b are symmetrically arranged about the main axis of the outgoing light of the transmitter 2a. In this embodiment, the transmitter 2a is located between the two receivers 2b and can provide infrared rays for the two receivers 2b, which can save one transmitter 2a and can obtain a signal amount change equivalent to that of a proximity sensor with two transmitters 2a and two receivers 2b.
[0111] Of course, more arrangements of proximity sensors can also be set according to the simulation results.
[0112] The electronic device provided by the embodiment of the present application includes the above-mentioned key structure 130, so it also has the above-mentioned technical effects of the key structure 130.
[0113] In the embodiment of the present application, the electronic device further includes a storage module and a processor. The storage module stores key function instructions corresponding one by one to the posture of the key body 1; the processor is used to receive the parameters detected by the proximity sensor and judge the current key posture according to the received parameters to trigger the key function instructions corresponding to the posture of the key body 1. The proximity sensor may include N, namely: the first proximity sensor to the Nth proximity sensor; the key functions may include M, namely: the first key function to the Mth key function, where N and M are both integers greater than or equal to 1.
[0114] In the embodiment of the present application, the storage module stores first-class key function instructions and second-class key function instructions. The first-class key function instructions include N static key function instructions corresponding one by one to the posture of a single key body 1, and the second-class key function instructions include M dynamic key function instructions corresponding one by one to the dynamic postures formed by the postures of two or more key bodies 1 within a predetermined time period, where N and M are integers greater than or equal to 1. In this way, as many key functions as possible can be integrated into one key body.
[0115] For other structures of the electronic device, please refer to the current technology.
[0116] In the embodiments of the present application, the terms "first" and "second" are only used for descriptive purposes and cannot be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include one or more of such features.
[0117] The orientation terms mentioned in the embodiments of the present application, such as "inside", "outside", etc., are only with reference to the direction of the accompanying drawings. Therefore, the orientation terms used are for better and clearer illustration and understanding of the embodiments of the present application, rather than indicating or implying that the indicated device or element must have a specific orientation, be constructed and operated in a specific orientation, and thus cannot be construed as a limitation to the embodiments of the present application.
[0118] In the description of the embodiments of the present application, the term "comprise", "include" or any other variant thereof is intended to cover a non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article or device.
[0119] In the embodiments of the present application, "and / or" is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " in this article generally represents an "or" relationship between the associated objects before and after.
[0120] The above are only the preferred embodiments of the present application. It should be noted that for those of ordinary skill in the art, without departing from the principle of the present application, several improvements and refinements can be made, and these improvements and refinements should also be regarded as the protection scope of the present application.
Claims
1. A key structure is installed in the housing of an electronic device. The housing has an inner cavity and a key mounting hole, and is characterized in that, The key structure includes: A key body, slidably limited in the key mounting hole, and the key body is elastically connected to the housing in a first direction. The key body can deflect relative to the housing, where the first direction is parallel to the extension direction of the key mounting hole; A proximity sensor, located in the inner cavity, and the proximity sensor is used to obtain a parameter characterizing the relative position change of the key body with respect to the housing to trigger a corresponding key function.
2. The key structure according to claim 1, wherein It includes an elastic member located in the inner cavity. The elastic member includes a connected body and a free body. The connected body is used to connect with the housing. When the key body moves relative to the housing under an external force, the key body drives the free body to rotate relative to the connected body; the key body deflects relative to its abutting point with the free body; The proximity sensor obtains the parameter of the relative position change of the key body with respect to the housing by detecting the attitude parameter of the free body.
3. The key structure according to claim 2, wherein The elastic member extends along the length direction of the key body, and the elastic member and the key body are arranged in the first direction; along the length direction of the key body, the key body and the free body have at least two spaced-apart abutting points.
4. The key structure according to claim 3, characterized in that, Along the length direction of the key body, the surface of the key body facing the free body has at least two guide posts arranged at intervals. Each guide post extends in the first direction. The key body abuts against the free body through each guide post, and the abutting point is the abutting position of the guide post and the free body.
5. The key structure according to claim 3, characterized in that, The elastic member includes two connected bodies, namely a first connected body and a second connected body. The first connected body and the second connected body are respectively located at two ends of the elastic member along its length, and the free body is located between the first connected body and the second connected body; Alternatively, the connected body is arranged in the middle of the elastic member, and free bodies are connected to both sides of the connecting portion.
6. The key structure according to claim 2, characterized in that, When the key body is in an initial state, the key body elastically abuts against the elastic member.
7. The key structure according to any one of claims 1 to 6, characterized in that The proximity sensor is mounted on the surface of a flexible circuit board. A support is provided in the inner cavity of the housing, and a part of the flexible circuit board is supported on the support.
8. The key structure according to any one of claims 2 to 7, characterized in that, The proximity sensor is fixed in the inner cavity of the housing. A detection surface is provided on the elastic member, and the proximity sensor obtains the parameter of the relative position change of the key body with respect to the housing according to the detected attitude parameter of the detection surface.
9. The key structure according to any one of claims 2 to 7, characterized in that, The proximity sensor is fixedly mounted on the free body, and detection surfaces are provided on the housing and the key body. The proximity sensor obtains the parameter of the relative position change of the key body with respect to the housing by detecting the distance signal between its position and the detection surface.
10. The key structure according to claim 9, wherein A detection member is provided on the housing, and the detection surface is located on the surface of the detection member facing the proximity sensor.
11. The key structure according to claim 10, wherein, The detection member is located between the key body and the elastic member. The key body has a guide post, and the guide post passes through the detection member and abuts against the free body of the elastic member.
12. The key structure according to claim 11, wherein It further includes a first limiting member, which is connected between the guide post and the detecting member. When the key body moves towards the elastic member, under the action of the first limiting member, the detecting member moves along with the guide post, and the free body mounting position of the same proximity sensor is opposite to the rotation direction of the detecting surface corresponding to the proximity sensor.
13. The key structure according to any one of claims 9 to 12, characterized in that, It further includes a second limiting member, which is connected to the inner cavity of the housing and located on the side of the elastic member away from the key body. The second limiting member limits the maximum displacement of the free body moving in the direction away from the key body.
14. The key structure according to claim 13, characterized in that, The second limiting member is a limiting stop block, and the abutting points of the key body and the elastic member are arranged in one-to-one correspondence with the limiting stop block.
15. The key structure according to any one of claims 1 to 14, characterized in that, The number of the proximity sensors is two, and the two proximity sensors are symmetrically arranged with respect to the central transverse plane of the elastic member.
16. The key structure according to claim 15, wherein Both of the two proximity sensors include a transmitter and a receiver. The transmitters of the two proximity sensors are symmetrically arranged with respect to the central transverse plane of the elastic member, and the receivers of the two proximity sensors are also symmetrically arranged with respect to the central transverse plane of the elastic member.
17. The key structure according to claim 15 or 16, characterized in that, Each proximity sensor includes a first sub-proximity sensor and a second sub-proximity sensor. The first sub-proximity sensor and the second sub-proximity sensor are arranged along the length direction of the key body, and the transmitter of the first sub-proximity sensor and the transmitter of the second sub-proximity sensor are located between the receiver of the first sub-proximity sensor and the receiver of the second sub-proximity sensor.
18. The key structure according to claim 15 or 16, characterized in that, Each proximity sensor includes a first sub-proximity sensor and a second sub-proximity sensor. The first sub-proximity sensor and the second sub-proximity sensor are arranged side by side along the width direction of the elastic member, and the transmitter and the receiver of the first sub-proximity sensor are arranged along the length direction of the elastic member. The transmitter and the receiver of the second sub-proximity sensor are arranged along the length direction of the elastic member. The transmitters of the first sub-proximity sensor and the second sub-proximity sensor, and the receivers of the first sub-proximity sensor and the second sub-proximity sensor are arranged symmetrically about the same point.
19. The key structure according to claim 15 or 16, characterized in that, Each proximity sensor includes one transmitter and two receivers, and the three are arranged along the length direction of the elastic member. The two receivers are symmetrically arranged with respect to the main axis of the outgoing light of the transmitter.
20. An electronic device, characterized in that, It includes a housing and the key structure according to any one of claims 1 to 19.
21. The electronic device according to claim 20, wherein The housing includes a middle frame, and a key through hole is provided on the side wall of the middle frame.
22. The electronic device according to claim 20, wherein It further includes: A storage module, which stores key function instructions corresponding to the postures of the key body one by one; A processor, which is used to receive the parameters detected by the proximity sensor and judge the current key posture according to the received parameters to trigger the key function instructions corresponding to the posture of the key body.
23. The electronic device according to claim 22, wherein The storage module stores first - type key function instructions and second - type key function instructions. The first - type key function instructions include N static key function instructions that correspond one - to - one with the postures of a single key body. The second - type key function instructions include M dynamic key function instructions that correspond one - to - one with the dynamic postures formed by the postures of two or more key bodies within a predetermined time period, where N and M are integers greater than or equal to 1.