WO2024041111A1 - Press key assembly, electronic device, control method, and computer storage medium - Google Patents

Press key assembly, electronic device, control method, and computer storage medium Download PDF

Info

Publication number
WO2024041111A1
WO2024041111A1 PCT/CN2023/099707 CN2023099707W WO2024041111A1 WO 2024041111 A1 WO2024041111 A1 WO 2024041111A1 CN 2023099707 W CN2023099707 W CN 2023099707W WO 2024041111 A1 WO2024041111 A1 WO 2024041111A1
Authority
WO
WIPO (PCT)
Prior art keywords
magnetic
hall element
magnetic field
key assembly
key
Prior art date
Application number
PCT/CN2023/099707
Other languages
French (fr)
Chinese (zh)
Inventor
李玉财
孙彬
皮伟伟
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from CN202211028245.6A external-priority patent/CN117674806A/en
Priority claimed from CN202211029744.7A external-priority patent/CN117674811A/en
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2024041111A1 publication Critical patent/WO2024041111A1/en

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K17/00Electronic switching or gating, i.e. not by contact-making and –breaking
    • H03K17/51Electronic switching or gating, i.e. not by contact-making and –breaking characterised by the components used
    • H03K17/90Electronic switching or gating, i.e. not by contact-making and –breaking characterised by the components used by the use, as active elements, of galvano-magnetic devices, e.g. Hall-effect devices
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K17/00Electronic switching or gating, i.e. not by contact-making and –breaking
    • H03K17/94Electronic switching or gating, i.e. not by contact-making and –breaking characterised by the way in which the control signals are generated
    • H03K17/965Switches controlled by moving an element forming part of the switch
    • H03K17/97Switches controlled by moving an element forming part of the switch using a magnetic movable element

Definitions

  • the present application relates to the technical field of key position detection of electronic equipment, and specifically relates to a key assembly, electronic device, control method and computer storage medium that utilizes Hall elements to detect key position.
  • the detection of the position of the three-stage side button is generally implemented by using a touch switch.
  • the main problems with this solution are: too many devices are stacked, occupying a large amount of internal space in the electronic device, and the device is mechanically triggered for a long time. , short life and poor reliability.
  • the first aspect of the embodiment of the present application provides a key assembly.
  • the key assembly includes: a key, a magnetic part, a fixing part, and a Hall element; the magnetic part is fixedly connected to the key, and the Hall element is fixed On the fixed member; the button can drive the magnetic member to move in the first direction relative to the Hall element, thereby changing the induced magnetic field between the magnetic member and the Hall element; wherein, the The magnetizing direction of the magnetic component is parallel to the first direction or the magnetic component includes a first magnetic component and a second magnetic component with opposite magnetizing directions.
  • the Hall element can detect changes in the magnetic field in at least two directions.
  • the second aspect of the embodiment of the present application provides an electronic device.
  • the electronic device includes a housing, a control circuit board, and the key assembly described in any one of the above embodiments; the fixing member in the key assembly and the The housing is fixedly connected, and the control circuit board is electrically connected to the Hall element in the key assembly.
  • the third aspect of the embodiment of the present application provides a control method based on the electronic device described in the above embodiment.
  • the control method includes:
  • the corresponding function of the electronic device is triggered according to the corresponding relationship between the current magnetic field angle value and the angle threshold.
  • the fourth aspect of the embodiment of the present application provides an electronic device.
  • the electronic device includes a processor and a memory.
  • Program data is stored in the memory.
  • the processor is used to execute the program data to implement the above embodiments. The control method described.
  • the fifth aspect of the embodiment of the present application provides a computer storage medium.
  • Program data is stored in the computer storage medium.
  • the program data is used to implement the steps described in the above embodiments. Control Method.
  • the key assembly provided by the embodiment of the present application is equipped with a Hall element that can detect changes in the magnetic field in multiple directions. It changes from detecting the magnetic induction intensity in the conventional technical solution to detecting the direction of the magnetic field. It has the characteristics of strong anti-interference ability and saving layout space.
  • Figure 1 is a schematic diagram of the overall structure of an embodiment of the key assembly of the present application.
  • Figure 2 is an exploded schematic diagram of the structure of the key assembly in the embodiment of Figure 1;
  • Figure 3 is a schematic structural cross-sectional view of the key assembly along line A-A in the embodiment of Figure 1;
  • Figure 4 is a schematic structural cross-sectional view of the key assembly along line B-B in the embodiment of Figure 1;
  • Figure 5 is an exploded schematic diagram of the structure of the fixing part and the positioning part of the key assembly in the embodiment of Figure 1;
  • Figure 6 is a schematic structural diagram of the keys of the key assembly in the embodiment of Figure 1;
  • Figure 7 is a schematic structural diagram of the key assembly in the embodiment of Figure 1 in a mating state with the electronic device housing;
  • Figure 8 is a schematic structural cross-sectional view along line C-C in the embodiment of Figure 7;
  • Figure 9 is a structural schematic diagram showing the relative positional relationship between the magnetizing direction of the magnetic component and the Hall element in the embodiment of Figure 1;
  • Figure 10a is a schematic structural diagram of the first relative position state of the Hall element and the magnetic component in Figure 9;
  • Figure 10b is a schematic structural diagram of the second relative position state of the Hall element and the magnetic component in Figure 9;
  • Figure 10c is a schematic structural diagram of the third relative position state of the Hall element and the magnetic component in Figure 9;
  • Figure 11 is a schematic graph of the three-axis magnetic induction intensity value sensed by the Hall element in Figure 9;
  • Figure 12 is a graph of the angle change between the Y direction and the Z direction of the magnetic induction line sensed by the Hall element in Figure 9;
  • Figure 13 is a schematic structural cross-sectional view of another embodiment of the key assembly of the present application.
  • Figure 14 is a schematic diagram of the magnetization direction of the magnetic component in the embodiment of Figure 13;
  • Figure 15 is a schematic structural diagram of the matching position of the magnetic component and the Hall element in the embodiment of Figure 13;
  • Figure 16 is a schematic diagram of the magnetic field coordinate system of the magnetic component in the embodiment of Figure 13;
  • Figure 17 is a schematic curve diagram of the magnetic field in the three-axis direction detected by the Hall element in Figure 16;
  • Figure 18 is a schematic diagram of the magnetic field angle of the magnetic field simulation experiment of the magnetic part in Figure 16;
  • Figure 19 is a schematic diagram of the magnetic field cutting angle of the magnetic field simulation experiment when the magnetic component in Figure 16 has 1mT interference in the X and Z directions respectively;
  • Figure 20 is a schematic diagram of the percentage impact of 1mT interference on the magnetic field cutting angle
  • Figure 21 is a schematic diagram of the overall structure of an embodiment of the electronic device of the present application.
  • Figure 22 is a schematic flowchart of an embodiment of the electronic device control method of the present application.
  • Figure 23 is a schematic flow chart of setting the angle threshold of the Hall element of the key assembly according to an embodiment
  • Figure 24 is a schematic flow chart of a specific embodiment of the electronic device control method of the present application.
  • Figure 25 is a schematic block diagram of an embodiment of the electronic device provided by this application.
  • Figure 26 is a schematic block diagram of a computer storage medium provided by an embodiment of the present application.
  • Button 100 fixing part 200, positioning part 300, Hall element 400, magnetic part 500, magnetic isolation material layer 600;
  • Main body part 110 positioning groove 111, installation notch 112, pressing part 120, accommodating groove 210, through hole 21, elastic member 310, positioning block 320, detection center 410, first magnetic component 510, second magnetic component 520;
  • Housing 10a display screen 20a, control circuit board 30a, key assembly 40a.
  • first”, “second” and “third” in the embodiments of this application are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, features defined as “first”, “second”, and “third” may explicitly or implicitly include at least one of these features.
  • “plurality” means at least two, such as two, three, etc., unless otherwise clearly and specifically limited. All directional indications (such as up, down, left, right, front, back%) in the embodiments of this application are only used to explain the relative positional relationship between components in a specific posture (as shown in the drawings). , sports conditions, etc., if the specific posture changes, the directional indication will also change accordingly.
  • an embodiment means that a particular feature, structure or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application.
  • the appearances of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those skilled in the art understand, both explicitly and implicitly, that the embodiments described herein may be combined with other embodiments.
  • electronic devices include, but are not limited to, devices configured to be connected via wired lines (e.g., via the Public Switched Telephone Network (PSTN), Digital Subscriber Line (DSL), digital cable, direct cable connection, and/or another data connection/network) and/or via (e.g., for cellular networks, wireless local area networks (WLAN), digital television networks such as DVB-H networks, satellite networks, AM-FM broadcast transmitters , and/or a device for receiving/transmitting communication signals through the wireless interface of another communication terminal.
  • a communication terminal configured to communicate via a wireless interface may be referred to as a "wireless communication terminal", “wireless terminal” or “mobile terminal”.
  • mobile terminals include, but are not limited to, satellite or cellular telephones; Personal Communications System (PCS) terminals that may combine cellular radiotelephones with data processing, fax, and data communications capabilities; may include radiotelephones, pagers, Internet/Intranet access , web browsers, planners, calendars, and/or PDAs with Global Positioning System (GPS) receivers; as well as conventional laptop and/or handheld receivers or other electronic devices including radiotelephone transceivers.
  • PCS Personal Communications System
  • a mobile phone is an electronic device equipped with a cellular communication module.
  • a three-stage sliding switch is configured on the side of the mobile phone to facilitate users to quickly switch the mobile phone between ring, vibrate and silent states.
  • the position of the three-stage sliding switch is detected using a magnet and two single-axis Hall devices.
  • the magnet is installed on the sliding keycap.
  • the Hall sensor is welded on the main board and the distance in the sliding direction of the switch is greater than the switch stroke.
  • the sliding keycap when the sliding switch is in the upper, middle and lower positions, because the spatial distance between the magnet and the Hall sensor is different, the magnetic induction lines passing through the two Hall devices are different. According to the difference in the magnetic induction intensity detected by the two Hall devices Judge the position of the sliding switch and set the phone status.
  • an embodiment of the present application provides a key assembly. Please refer to Figures 1 and 2 together.
  • Figure 1 is a schematic diagram of the overall structure of an embodiment of the key assembly of the present application;
  • Figure 2 is a schematic diagram of the key in the embodiment of Figure 1 Schematic diagram of the structural breakdown of components.
  • the key components in the embodiments of the present application are used in electronic devices, and the electronic devices may include mobile phones, tablet computers, laptops, Bluetooth speakers, headphones, watches, wearable devices and other electronic devices with keys.
  • the key assembly for electronic equipment includes a key 100, a fixing part 200, a positioning part 300, a Hall element 400 and a magnetic part 500.
  • Figure 3 is a schematic structural cross-sectional view of the key assembly along line A-A in the embodiment of Figure 1.
  • Figure 4 is a schematic cross-sectional view of the key assembly along line A-A in the embodiment of Figure 1.
  • Figure 5 is an exploded schematic view of the structure of the fixing part and the positioning part of the key assembly in the embodiment of Figure 1.
  • the fixing member 200 may be a structural component such as a housing (such as a middle frame) or a circuit board of an electronic device, or a bracket structure as shown in this embodiment.
  • the bracket structure may be fixedly connected to the housing.
  • the fixing member 200 is provided with an accommodating groove 210.
  • One end of the positioning member 300 holds the bottom of the accommodating groove 210, and the other end cooperates with the positioning groove 111 on the button 100 to achieve positioning of the button 100. .
  • FIG. 6 is a schematic structural diagram of a button of the button assembly in the embodiment of FIG. Operator's hand contact.
  • a plurality of positioning grooves 111 are provided on a side surface of the main body 110 away from the pressing portion 120 .
  • the main body 110 of the button 100 is provided with at least two positioning grooves 111 on the side facing the positioning member 300 (the illustration of the embodiment of this application takes three positioning grooves 111 as an example for illustration), where , the button 100 can slide in the direction of arrow Y in the figure relative to the fixing member 200.
  • the positioning member 300 cooperates with different positioning grooves 111 to position the button 100 at different positions.
  • the main body 110 of the button 100 is also provided with a mounting notch 112 on the side surface away from the pressing portion 120.
  • the mounting notch 112 is used to install the magnetic component 500.
  • the magnetic component 500 is installed by The notch 112 is fixedly connected to the button 100 by, for example, bonding.
  • the magnetic part 500 can move with the button 100, and then toggled to trigger the corresponding function.
  • the magnetic component 500 can be a magnetic component structure such as a magnet, and cooperates with the Hall element 400 to realize the triggering of corresponding functions.
  • the button 100 can drive the magnetic component 500 to move relative to the Hall element 400 , thereby changing the induced magnetic field between the magnetic component 500 and the Hall element 400 .
  • the Hall element 400 and the magnetic component 500 are spaced apart along the third direction.
  • the corresponding functions mentioned here are the application scenarios in which the magnetic component 500 and the Hall element 400 cooperate, including setting the status of the electronic device to mute, vibrate, ring, and other applications related to the reminder function of the electronic device; in addition, it can also be Used for self-defined functions, such as triggering the camera to turn on or off, controlling music playback (pause, previous song, next song), and even controlling the up and down scroll bars of the display interface and switching the position of application icons, etc.
  • Application scenarios can be set by those skilled in the art or users, and are not listed one by one or specifically limited here.
  • the Hall element 400 is fixed on the fixing member 200. Specifically, It may be embedded inside or on the surface of the fixing member 200 .
  • the positioning member 300 in this embodiment includes an elastic member 310 and a positioning block 320 .
  • One end of the elastic member 310 holds the bottom of the accommodating groove 210 of the fixing member 200 , and the other end holds the positioning block 320 .
  • Position the block 320 so that the positioning block 320 cooperates with the positioning groove 111 on the main body 110 of the key 100 .
  • the elastic member 310 in this embodiment can be a compression spring
  • the positioning block 320 can be a small ball structure, specifically, it can be a stainless steel ball.
  • the positioning member 300 can also be other structures, such as elastic probes, etc. Regarding this part of the extended feature embodiments, it is within the understanding of those skilled in the art and will not be listed one by one here. Elaborate.
  • the magnetic component 500 in this embodiment is also provided with magnetic isolation on the side of the non-corresponding Hall element 400.
  • the material layer 600 further reduces the interference of the magnetic component 500 to the outside world.
  • the magnetic isolation material layer 600 is not limited to the side facing away from the Hall element 400 in the figure, and can also be wrapped around all sides of the non-corresponding Hall element 400. This time there is no specific limitation.
  • Figure 7 is a schematic structural view of the key assembly in the embodiment of Figure 1 in a mating state with the electronic device housing.
  • Figure 8 is a schematic cross-sectional view of the structure along line C-C in the embodiment of Figure 7.
  • Fixed The component 200 is fixedly connected to the housing 20, and the positioning component 300 is used to position the button 100.
  • the button 100 is exposed in the through hole 21 of the housing 20 , and the button 100 can slide along the strip-shaped structure through hole 21 in the Y direction in the figure.
  • FIG. 9 is a schematic structural diagram of the relative positional relationship between the magnetizing direction of the magnetic component and the Hall element in the embodiment of FIG. 1 .
  • the Hall element 400 in this embodiment can detect changes in the magnetic field in at least two directions. Compared with detecting the magnetic induction intensity in the conventional technical solution, it detects the direction of the magnetic field.
  • the Hall element can be a three-axis Hall element. The components of the induced magnetic field along the first direction, the second direction and the third direction can be detected, wherein the second direction and the third direction are both perpendicular to the first direction, and the second direction is perpendicular to the third direction.
  • the first direction (Y direction), the second direction (Z direction) and the third direction (X direction) are perpendicular to each other, forming a three-dimensional coordinate system.
  • the magnetization direction of the magnetic component 500 is parallel to the moving direction of the magnetic component 500 relative to the Hall element 400 (arrow Y direction).
  • the three-axis Hall element 400 integrates Hall sensors in the three directions of XYZ. Each Hall sensor can detect the magnetic induction intensity in one direction.
  • the internal circuit converts the detected magnetic induction intensity value into a digital signal and then transmits it through the communication interface.
  • a magnet magnet (magnetic component 500) is installed on the three-stage switch button. When the button slides to different positions, the relative position between the magnet and the three-axis Hall element changes; the three-axis Hall element can be connected and transmitted to the motherboard through FPC. Signal.
  • Figure 10a is a schematic structural diagram of the Hall element and the magnetic component in the first relative position in Figure 9;
  • Figure 10b is the structure of the Hall element and the magnetic component in the second relative position in Figure 9.
  • Figure 10c is a structural schematic diagram of the third relative position state of the Hall element and the magnetic component in Figure 9; in this embodiment, a three-stage switch structure is used as an example for explanation.
  • the Hall element 400 can be used to control the magnetic
  • the component 500 is detected at three position points, which are located at both ends (the relative position state in Figures 10a and 10c) and the middle point (the relative position state in Figure 10b) of the stroke range of the magnetic component 500. Please continue to refer to FIG. 9 .
  • the detection center 410 of the Hall element 400 corresponds to the midpoint of the stroke range of the magnetic component 500 .
  • the detection principle is as follows: in the three stroke positions of the side three-stage switch, the relative positions of the magnetic component 500 and the three-axis Hall element 400 are different, and the magnetic induction lines passing through the Hall element 400 are at the angle between the Y direction and the Z direction. Differently, the angle between the magnetic induction lines in the Y direction and the Z direction can be calculated based on the Y-direction and Z-direction magnetic induction intensity detected by the Hall element 400. The three-stage type can be determined based on the angle between the Y-direction and the Z-direction of the magnetic induction lines. switch position. Simulate the magnetic induction intensity detected in the three axes when the magnetic component 500 moves along the Y direction from the position in Figure 10a to Figure 10c.
  • Figure 11 is the Huo in Figure 9.
  • Figure 12 is a schematic curve diagram of the three-axis magnetic induction intensity value sensed by the Hall element.
  • Figure 12 is a graph of the angle change curve between the Y direction and the Z direction of the magnetic induction line sensed by the Hall element in Figure 9.
  • the data in Figures 11 and 12 are based on the movement of the magnetic component 500 along the Y axis in Figure 9, and the Hall element 400 corresponds to the bottom of the magnetic component 500, where the curve x in Figure 11 represents that the Hall element 400 detects at X
  • the curve y represents the magnetic field strength detected by the Hall element 400 in the Y direction
  • the curve z represents the magnetic field strength detected by the Hall element 400 in the Z direction.
  • the relative values of the Y-axis and Z-axis of the magnetic field show the above characteristics, that is, the total value of the magnetic field remains unchanged, but the components of the three axes no the same.
  • the arc tangent value of the ratio of the intensity value of the induced magnetic field along the first direction and the intensity value along the third direction detected by the Hall element has a one-to-one correspondence with the position of the magnetic component relative to the Hall element. relation.
  • the entire angle distribution is ⁇ , and the angle rotation is from - ⁇ /2 to ⁇ /2. It can be seen that when the magnetic component 500 is at the leftmost end of the 3-stage switch (the relative position state in Figure 10c), the angle is - ⁇ /2; the middle position (relative position state in Figure 10b), the angle is 0; at the rightmost end (relative position state in Figure 10a), the angle is ⁇ /2.
  • the angle between the Y-direction and the Z-direction of the magnetic field lines detected by the three-axis Hall element 400 when the magnetic component 500 moves at different distances in the intermediate position is calculated.
  • the included angle is consistent with the moving direction of the magnetic component 500.
  • the location of the three-stage switch can be determined based on the difference in angle values.
  • the plane angle calculated using two-axis data can also be extended to the space vector angle calculated using three-axis data, to further improve the anti-interference capability.
  • the specific calibration process includes moving the buttons to different positions and recording the corresponding position angle values and setting thresholds, and setting corresponding functions under different angle values and angle thresholds.
  • the technical solution in this embodiment performs a calibration when the electronic device is assembled, and a dynamic calibration algorithm that combines the posture and scene of the electronic device can be developed later.
  • the specific setting method is within the understanding of those skilled in the art and will not be described again here.
  • the detection method of the key assembly in this embodiment changes from detecting the magnetic induction intensity in the conventional scheme to detecting the direction of the magnetic field.
  • it has little impact on the direction of the magnetic field and improves the anti-interference capability.
  • Figure 13 is a schematic structural cross-sectional view of another embodiment of the key assembly of the present application.
  • the magnetic component 500 in this embodiment includes a first magnetic component 510 with opposite magnetization directions and The second magnetic component 520.
  • the first magnetic component 510 and the second magnetic component 510 are arranged side by side along the first direction.
  • Figure 14 is a schematic diagram of the magnetizing direction of the magnetic component in the embodiment of Figure 13.
  • the first magnetic component 510 and the second magnetic component 520 may be arranged side by side in abutment along the first direction (Y direction) perpendicular to the magnetization direction (Z direction in the figure).
  • the first magnetic component 510 and the second magnetic component 520 may be arranged side by side.
  • the second magnetic component 520 is adhesively connected.
  • the magnetic pole directions of the first magnetic part 510 and the second magnetic part 520 are both disposed toward the Hall element 400 .
  • the magnetic component 500 is not limited to including the first magnetic component 510 and the second magnetic component 520 , but may also be in a structural form including multiple magnetic components. Here, only two magnetic components are taken as an example. illustrate.
  • the embodiment of this application takes a three-stage switch structure as an example for description. Please refer to Figure 15.
  • Figure 15 is the structure of the mating position of the magnetic component and the Hall element in the embodiment of Figure 13. Structure diagram.
  • the width of the first magnetic component 510 and the second magnetic component 520 perpendicular to the magnetizing direction also That is, the widths in the first direction (K1, K2) are the same.
  • the widths of the first magnetic component and the second magnetic component along the first direction can be 1-5mm, specifically 1mm, 2mm, 3mm, 4mm, 5mm, etc., there are no specific limitations here.
  • the total width K of the first magnetic component 510 and the second magnetic component 520 perpendicular to the magnetizing direction is the same as the stroke range L of the key 100 .
  • the detection center 410 of the Hall element 400 corresponds to the midpoint of the stroke range L of the key 100 .
  • the distance between the Hall element 400 and the surface of the magnetic component 500 facing the Hall element 400 is 0.5-2mm, specifically it can be 0.5mm, 0.6mm, 0.8mm, 1mm, 1.5mm. , 2mm, etc.
  • the Hall element 400 in this embodiment is used to detect the key 100 at three position points (switch positions a, b, c).
  • the three position points are located at both ends and midpoint.
  • the key stroke range L is expressed as the change distance of the detection position when the key moves from one end to the other end. This distance is twice the movement distance of the key.
  • the Hall element in the embodiment of the present application can detect the components of the induced magnetic field along the first direction (Y direction), the second direction (Z direction) and the third direction (X direction), where the second direction and the third direction are both perpendicular. in the first direction, and the second direction is perpendicular to the third direction. That is, the first direction (Y direction), the second direction (Z direction) and the third direction (X direction) are perpendicular to each other, forming a three-dimensional coordinate system.
  • the widths (K1, K2) of the first magnetic component 510 and the second magnetic component 520 may be 2 mm, the total width K may be 4 mm, and the stroke range L may be 4 mm.
  • the length of the two magnetic components does not necessarily have to be exactly equal to the distance of the key stroke range as in the above solution. The length can be longer or shorter than the key distance.
  • the embodiment of the present application only takes the total width K of the first magnetic component 510 and the second magnetic component 520 as being the same as the key stroke range L as an example for description.
  • the principles are similar. As long as the design meets the principles in this application, multi-segment key detection is feasible.
  • the Hall element 400 detects that the magnetic field angle of the first magnetic component 510 and the second magnetic component 520 changes from -90° to 90°, where the travel range of the key
  • the magnetic field angles at both ends are -90° and 90° respectively, and the magnetic field angle at the midpoint of the stroke is zero;
  • the angle range of the position identification area at one end of the key stroke range is -90° to -70°, and the position identification area at the other end of the key stroke range
  • the angle range is 70° to 90°
  • the angle range of the midpoint position identification area of the key travel range is -10° to 10°.
  • Figure 16 is a schematic diagram of the magnetic field coordinate system of the magnetic component in the embodiment of Figure 13.
  • Figure 17 is a schematic curve diagram of the magnetic field in the three-axis direction detected by the Hall element in Figure 16.
  • Figure 18 is A schematic diagram of the magnetic field angle of the magnetic field simulation experiment of the magnetic part in Figure 16, where the data in Figures 17 and 18 are based on the movement of the magnetic part 500 along the Y-axis in Figure 16, and the Hall element 400 corresponds to the bottom of the magnetic part 500, where, Figure In 17, the curve x represents the magnetic field strength detected by the Hall element 400 in the X direction, the curve y represents the magnetic field strength detected by the Hall element 400 in the Y direction, and the curve z represents the Hall element 400 detected the magnetic field strength in the Z direction.
  • the magnetic field strength in the direction can be seen from Figure 17.
  • the relative values of the X-axis and Z-axis of the magnetic field show the characteristics of the curve in Figure 17, that is, the total value of the magnetic field remains unchanged, but in the three axes
  • the components are different (it can be seen from the magnetization direction of the magnetic component 500 and the relative movement direction with the Hall element 400 that the component in the Y-axis direction is zero and remains unchanged).
  • the entire angle distribution is ⁇ , and the angle rotation is from - ⁇ /2 to ⁇ /2. It can be seen that when the magnetic part 500 is at the leftmost end of the 3-stage switch (magnetic part position 1), the angle is - ⁇ /2; the middle position (magnetic part 500) When the magnetic piece is at position 2), the angle is 0; when it is at the far right end (magnetic piece is at position 3), the angle is ⁇ /2.
  • Anti-interference situation Since X and Z data are used to calculate the position, Y-direction interference has no effect. It is assumed here that there is 1mT interference in X and Z respectively. Please refer to Figure 19.
  • Figure 19 is a schematic diagram of the magnetic field angle cutting of the magnetic field simulation experiment in the case of 1mT interference in the X and Z directions of the magnetic component in Figure 16. After 1mT interference is added to X and Z respectively, the angle cutting curve is the same as when there is no interference. Almost coincident.
  • Figure 20 is a schematic diagram of the percentage of the impact of 1mT interference on the magnetic field cutting angle. It can be seen that the impact of 1mT interference on the magnetic field cutting angle is between 0.15% and 0.4%.
  • the angle can be divided into 5 segments:
  • the buffer zone can be further increased and the angle of the identification zone can be reduced.
  • the angle range of the position identification zone at one end of the stroke range can be -90° to -80°
  • the angle range of the position identification zone at the other end of the stroke range can be -90° to -80°.
  • the angle range of the position identification area is 80° to 90°
  • the angle range of the position identification area at the midpoint of the stroke range is -5° to 5°.
  • the remaining intervals are buffer zones. The narrower the position recognition interval is adjusted and the wider the buffer area, the stronger the anti-interference performance. But the requirements for the structure in place will also be higher. Therefore, in the design, it is necessary to combine the actual reachable range of the structure with the calculation and actual measurement of the interference degree to obtain the optimal compatible design for both.
  • FIG. 21 is a schematic diagram of the overall structure of an embodiment of the electronic device of the present application.
  • the electronic device in the embodiment of the present application may include a mobile phone and a tablet computer. , laptops, wearable devices, and any other electronic device with buttons.
  • a mobile phone is used as an example for illustration.
  • the electronic device in the embodiment of the present application includes a display screen 20a, a control circuit board 30a, a housing 10a, and a key assembly 40a; wherein the display screen 20a cooperates with the housing 10a to form an accommodation space (not labeled in the figure),
  • the control circuit board 30a is disposed in the accommodation space and is electrically connected to the display screen 20a and the key assembly 40a.
  • the key assembly 40a is connected to the housing.
  • the control circuit board 30a is used to control the display screen 20a and receive trigger signals from the key assembly 40a.
  • the key assembly 40a please refer to the relevant descriptions of the foregoing embodiments and will not be described again here.
  • the electronic equipment provided in the embodiments of the present application is provided with a Hall element that can detect magnetic field changes in multiple directions.
  • the detection of magnetic induction intensity in the scheme is changed to the detection of magnetic field direction, which has the characteristics of strong anti-interference ability and saving layout space.
  • FIG. 22 is a schematic flowchart of an embodiment of a method for controlling an electronic device of the present application.
  • the control method includes but is not limited to the following steps.
  • Step S100 Set the angle threshold of the Hall element in the key assembly.
  • FIG. 23 is a schematic flowchart of setting the angle threshold of the Hall element of the key assembly according to an embodiment. The process includes the following steps.
  • Step S110 Obtain magnetic field angle values when the keys are at different positions.
  • Step S120 Set corresponding angle thresholds for different magnetic field angle values.
  • Step S130 Record and save the corresponding relationship between the angle threshold and the location.
  • three-stage position detection is used as an example for explanation. Among them, the following steps are included: move the button to the upper position (that is, the first position); obtain and record the angle value at the position, such as 10 degrees; save the angle value of the upper position and set the first angle threshold, such as the first angle
  • the threshold can be set to 9-11 degrees; move the button to the middle position (that is, the second position); obtain and record the angle value at that position, such as 90 degrees; save the middle position angle value and set the second angle threshold , for example, the second angle threshold can be set to 88-92 degrees; move the button to the lower position (that is, the third position); obtain and record the angle value at the position, such as -10 degrees; save the lower position angle value and Set a third angle threshold.
  • the third angle threshold can be set to -9 to -11 degrees.
  • the control method in the embodiment of the present application also includes step S200 of detecting the current magnetic field angle value; specifically, this step is based on the intensity value of the induced magnetic field along the first direction detected by the Hall element and the intensity value along the first direction.
  • the arctangent value of the ratio of the intensity values in the three directions determines the current magnetic field angle value.
  • Step S300 Trigger the corresponding function of the electronic device according to the corresponding relationship between the current magnetic field angle value and the angle threshold.
  • FIG. 24 is a schematic flowchart of a specific embodiment of the electronic device control method of the present application.
  • the control method includes the following steps. Step S201, polling to obtain the current magnetic field angle; Step S202, determine whether the angle value is within the angle threshold of the upper position, if so, proceed to step S203, set the mobile phone to the ringing state; otherwise, proceed to step S204, determine whether the angle value is within Within the angle threshold of the middle position, if so, proceed to step S205 and set the mobile phone to the vibrating state; otherwise, proceed to step S206 to determine whether the angle value is within the angle threshold of the lower position. If so, proceed to step S207 to set the mobile phone to the silent state. , otherwise go to step S208 and end the process. In this embodiment, only one cell phone ringtone state is taken as an example for description.
  • Figure 25 is a schematic block diagram of an embodiment of an electronic device provided by this application.
  • the electronic device 80 includes a processor 81 and a memory 82 connected to each other.
  • the memory 82 is used to store program data
  • the processor 81 is used to execute Program data to implement the following methods:
  • the corresponding function of the electronic device is triggered according to the corresponding relationship between the current magnetic field angle value and the angle threshold.
  • Figure 26 is a schematic structural block diagram of a computer storage medium provided by an embodiment of the present application.
  • Program data 91 is stored in the computer storage medium 90. When executed by a processor, the program data 91 is used to implement the following methods. :
  • the corresponding function of the electronic device is triggered according to the corresponding relationship between the current magnetic field angle value and the angle threshold.
  • the disclosed methods and devices can be implemented in other ways.
  • the device implementation described above is only illustrative.
  • the division of modules or units is only a logical function division.
  • there may be other division methods for example, multiple units or components may be The combination can either be integrated into another system, or some features can be ignored, or not implemented.
  • the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the above integrated units can be implemented in the form of hardware or software functional units.
  • the integrated units in the above other embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium.
  • the technical solution of the present application is essentially or contributes to the existing technology, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to cause a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the method described in each embodiment of the application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program code. .
  • the general structure is a single magnet pairing a single Hall or a single magnet pairing a double Hall structure.
  • a single magnet and a single Hall mainly use magnetic field changes to detect different positions of the switch.
  • the requirement is that the magnet needs to be close enough to the Hall device to meet the external anti-interference requirements.
  • this solution has the disadvantage of being easily disturbed.
  • the structural scheme of a single magnet versus dual Halls when the magnet moves, magnetic field changes occur in the two Halls. Based on the changes detected by the two Halls, the position of the magnet movement is determined.
  • an embodiment of the present application also provides a key assembly. Some of the same features of the key assembly in this embodiment and the key assembly in the previous embodiment will not be described again here. In this embodiment, the differences will be highlighted. part characteristics.
  • the key assembly in this embodiment is designed with two magnetic parts arranged side by side and with opposite magnetization directions on the sliding key, and performs magnetic field induction with a Hall element.
  • the Hall element realizes the key sensing by sensing changes in the magnetic field.
  • Position detection has the characteristics of accurate position detection and strong anti-interference ability.

Abstract

A press key assembly (40a), an electronic device (80), a control method, and a computer storage medium (90). The press key assembly (40a) comprises a press key (100), a magnetic member (500), a fixing member (200), and a Hall element (400); the magnetic member (500) is fixedly connected to the press key (100), and the Hall element (400) is fixedly disposed on the fixing member (200); the press key (100) can drive the magnetic member (500) to move in a first direction relative to the Hall element (400), thereby changing an induced magnetic field between the magnetic member (500) and the Hall element (400); the magnetizing direction of the magnetic member (500) is parallel to the first direction or the magnetic member (500) comprises a first magnetic member (510) and a second magnetic member (520) having opposite magnetizing directions, and the Hall element (400) can at least detect magnetic field changes in two directions. The press key assembly (40a) is provided with the Hall element (400) capable of detecting magnetic field changes in multiple directions, so that detection of magnetic induction intensity in conventional technical solutions is replaced with detection of a magnetic field direction, and the press key assembly has the characteristics of a strong anti-interference capability and saving layout space.

Description

按键组件、电子设备、控制方法以及计算机存储介质Button assembly, electronic device, control method and computer storage medium 【技术领域】【Technical field】
本申请涉及电子设备按键位置检测的技术领域,具体是涉及一种利用霍尔元件实现对按键位置检测的按键组件、电子设备、控制方法以及计算机存储介质。The present application relates to the technical field of key position detection of electronic equipment, and specifically relates to a key assembly, electronic device, control method and computer storage medium that utilizes Hall elements to detect key position.
【背景技术】【Background technique】
常规技术方案中,对于三段式侧键位置的检测一般是利用触控开关实现,该种方案存在的问题主要是:器件堆叠过多,大量占用电子设备内部空间,以及器件长期被机械式触发,寿命短,可靠性差。In conventional technical solutions, the detection of the position of the three-stage side button is generally implemented by using a touch switch. The main problems with this solution are: too many devices are stacked, occupying a large amount of internal space in the electronic device, and the device is mechanically triggered for a long time. , short life and poor reliability.
【发明内容】[Content of the invention]
本申请实施例第一方面提供了一种按键组件,所述按键组件包括:按键、磁性件、固定件以及霍尔元件;所述磁性件与所述按键固定连接,所述霍尔元件固设于所述固定件;所述按键可带动所述磁性件相对于所述霍尔元件沿第一方向移动,进而改变所述磁性件与所述霍尔元件之间的感应磁场;其中,所述磁性件的充磁方向与所述第一方向平行或者所述磁性件包括充磁方向相反的第一磁性件和第二磁性件,所述霍尔元件至少可以检测两个方向上的磁场变化。The first aspect of the embodiment of the present application provides a key assembly. The key assembly includes: a key, a magnetic part, a fixing part, and a Hall element; the magnetic part is fixedly connected to the key, and the Hall element is fixed On the fixed member; the button can drive the magnetic member to move in the first direction relative to the Hall element, thereby changing the induced magnetic field between the magnetic member and the Hall element; wherein, the The magnetizing direction of the magnetic component is parallel to the first direction or the magnetic component includes a first magnetic component and a second magnetic component with opposite magnetizing directions. The Hall element can detect changes in the magnetic field in at least two directions.
本申请实施例第二方面提供了一种电子设备,所述电子设备包括壳体、控制电路板以及上述实施例中任一项所述的按键组件;所述按键组件中的固定件与所述壳体固定连接,所述控制电路板与所述按键组件中的霍尔元件电连接。The second aspect of the embodiment of the present application provides an electronic device. The electronic device includes a housing, a control circuit board, and the key assembly described in any one of the above embodiments; the fixing member in the key assembly and the The housing is fixedly connected, and the control circuit board is electrically connected to the Hall element in the key assembly.
本申请实施例第三方面提供了一种基于上述实施例中所述电子设备的控制方法,所述控制方法包括:The third aspect of the embodiment of the present application provides a control method based on the electronic device described in the above embodiment. The control method includes:
设置所述按键组件中霍尔元件的角度阈值;Set the angle threshold of the Hall element in the key assembly;
检测当前的磁场角度值;Detect the current magnetic field angle value;
根据所述当前的磁场角度值与所述角度阈值的对应关系触发电子设备的相应功能。The corresponding function of the electronic device is triggered according to the corresponding relationship between the current magnetic field angle value and the angle threshold.
本申请实施例第四方面提供了一种电子设备,所述电子设备包括处理器和存储器,所述存储器中存储有程序数据,所述处理器用于执行所述程序数据以实现如上述实施例中所述的控制方法。The fourth aspect of the embodiment of the present application provides an electronic device. The electronic device includes a processor and a memory. Program data is stored in the memory. The processor is used to execute the program data to implement the above embodiments. The control method described.
本申请实施例第五方面提供了一种计算机存储介质,所述计算机存储介质中存储有程序数据,所述程序数据在被所述处理器执行时,用以实现如上述实施例中所述的控制方法。The fifth aspect of the embodiment of the present application provides a computer storage medium. Program data is stored in the computer storage medium. When the program data is executed by the processor, the program data is used to implement the steps described in the above embodiments. Control Method.
本申请实施例提供的按键组件,通过设置可以检测多方向上磁场变化的霍尔元件,从常规技术方案中的检测磁感应强度变为检测磁场方向,具有抗干扰能力强以及节省布局空间的特点。The key assembly provided by the embodiment of the present application is equipped with a Hall element that can detect changes in the magnetic field in multiple directions. It changes from detecting the magnetic induction intensity in the conventional technical solution to detecting the direction of the magnetic field. It has the characteristics of strong anti-interference ability and saving layout space.
【附图说明】[Picture description]
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without exerting creative efforts.
图1是本申请按键组件一实施例的整体结构示意图;Figure 1 is a schematic diagram of the overall structure of an embodiment of the key assembly of the present application;
图2是图1实施例中按键组件的结构拆分示意图;Figure 2 is an exploded schematic diagram of the structure of the key assembly in the embodiment of Figure 1;
图3是图1实施例中按键组件沿A-A线的结构剖视示意图;Figure 3 is a schematic structural cross-sectional view of the key assembly along line A-A in the embodiment of Figure 1;
图4是图1实施例中按键组件沿B-B线的结构剖视示意图;Figure 4 is a schematic structural cross-sectional view of the key assembly along line B-B in the embodiment of Figure 1;
图5是图1实施例中按键组件的固定件以及定位件的结构拆分示意图;Figure 5 is an exploded schematic diagram of the structure of the fixing part and the positioning part of the key assembly in the embodiment of Figure 1;
图6是图1实施例中按键组件的按键的结构示意图;Figure 6 is a schematic structural diagram of the keys of the key assembly in the embodiment of Figure 1;
图7是图1实施例中的按键组件与电子设备壳体配合状态的结构示意图;Figure 7 is a schematic structural diagram of the key assembly in the embodiment of Figure 1 in a mating state with the electronic device housing;
图8是图7实施例中沿C-C线的结构剖视示意图;Figure 8 is a schematic structural cross-sectional view along line C-C in the embodiment of Figure 7;
图9是图1实施例中磁性件充磁方向与霍尔元件相对位置关系的结构示意图;Figure 9 is a structural schematic diagram showing the relative positional relationship between the magnetizing direction of the magnetic component and the Hall element in the embodiment of Figure 1;
图10a是图9中霍尔元件与磁性件第一相对位置状态的结构示意图;Figure 10a is a schematic structural diagram of the first relative position state of the Hall element and the magnetic component in Figure 9;
图10b是图9中霍尔元件与磁性件第二相对位置状态的结构示意图;Figure 10b is a schematic structural diagram of the second relative position state of the Hall element and the magnetic component in Figure 9;
图10c是图9中霍尔元件与磁性件第三相对位置状态的结构示意图;Figure 10c is a schematic structural diagram of the third relative position state of the Hall element and the magnetic component in Figure 9;
图11是图9中霍尔元件感测到的三轴磁感应强度值的示意曲线图;Figure 11 is a schematic graph of the three-axis magnetic induction intensity value sensed by the Hall element in Figure 9;
图12是图9中霍尔元件感测到磁感应线Y向和Z向的夹角变化曲线图;Figure 12 is a graph of the angle change between the Y direction and the Z direction of the magnetic induction line sensed by the Hall element in Figure 9;
图13是本申请按键组件另一实施例的结构剖视示意图;Figure 13 is a schematic structural cross-sectional view of another embodiment of the key assembly of the present application;
图14是图13实施例中磁性件充磁方向的示意图;Figure 14 is a schematic diagram of the magnetization direction of the magnetic component in the embodiment of Figure 13;
图15是图13实施例中磁性件与霍尔元件配合位置的结构示意图;Figure 15 is a schematic structural diagram of the matching position of the magnetic component and the Hall element in the embodiment of Figure 13;
图16是图13实施例中磁性件磁场坐标系示意图;Figure 16 is a schematic diagram of the magnetic field coordinate system of the magnetic component in the embodiment of Figure 13;
图17是图16中霍尔元件检测到的三轴方向磁场的曲线示意图;Figure 17 is a schematic curve diagram of the magnetic field in the three-axis direction detected by the Hall element in Figure 16;
图18是图16中磁性件磁场仿真实验的磁场切角示意图;Figure 18 is a schematic diagram of the magnetic field angle of the magnetic field simulation experiment of the magnetic part in Figure 16;
图19是图16中磁性件在X和Z方向分别存在1mT干扰的情况下磁场仿真实验的磁场切角示意图;Figure 19 is a schematic diagram of the magnetic field cutting angle of the magnetic field simulation experiment when the magnetic component in Figure 16 has 1mT interference in the X and Z directions respectively;
图20是1mT干扰对磁场切角影响的百分比示意图;Figure 20 is a schematic diagram of the percentage impact of 1mT interference on the magnetic field cutting angle;
图21是本申请电子设备一实施例的整体结构示意图;Figure 21 is a schematic diagram of the overall structure of an embodiment of the electronic device of the present application;
图22是本申请电子设备控制方法一实施例的流程示意图;Figure 22 is a schematic flowchart of an embodiment of the electronic device control method of the present application;
图23是设置按键组件霍尔元件的角度阈值一实施例的流程示意图;Figure 23 is a schematic flow chart of setting the angle threshold of the Hall element of the key assembly according to an embodiment;
图24是本申请电子设备控制方法一具体实施例的流程示意图;Figure 24 is a schematic flow chart of a specific embodiment of the electronic device control method of the present application;
图25是本申请提供的电子设备一实施例的示意框图;Figure 25 is a schematic block diagram of an embodiment of the electronic device provided by this application;
图26是本申请实施例提供的计算机存储介质的示意框图。Figure 26 is a schematic block diagram of a computer storage medium provided by an embodiment of the present application.
附图标记:Reference signs:
按键100、固定件200、定位件300、霍尔元件400、磁性件500、隔磁材料层600; Button 100, fixing part 200, positioning part 300, Hall element 400, magnetic part 500, magnetic isolation material layer 600;
主体部110、定位槽111、安装缺口112、按压部120、容置槽210、通孔21、弹性件310、定位块320、检测中心410、第一磁性件510、第二磁性件520;Main body part 110, positioning groove 111, installation notch 112, pressing part 120, accommodating groove 210, through hole 21, elastic member 310, positioning block 320, detection center 410, first magnetic component 510, second magnetic component 520;
壳体10a、显示屏20a、控制电路板30a、按键组件40a。Housing 10a, display screen 20a, control circuit board 30a, key assembly 40a.
【具体实施方式】【Detailed ways】
下面结合附图和实施例,对本申请作进一步的详细描述。特别指出的是,以下实施例仅用于说明本申请,但不对本申请的范围进行限定。同样的,以下实施例仅为本申请的部分实施例而非全部实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本申请保护的范围。The present application will be described in further detail below with reference to the accompanying drawings and examples. It is particularly pointed out that the following examples are only used to illustrate the present application, but do not limit the scope of the present application. Similarly, the following embodiments are only some, not all, of the embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of the present application.
本申请实施例中的术语“第一”、“第二”、“第三”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”、“第三”的特征可以明示或者隐含地包括至少一个该特征。本申请的描述中,“多个”的含义是至少两个,例如两个、三个等,除非另有明确具体的限定。本申请实施例中所有方向性指示(诸如上、下、左、右、前、后……)仅用于解释在某一特定姿态(如附图所示)下各部件之间的相对位置关系、运动情况等,如果该特定姿态发生改变时,则该方向性指示也相应地随之改变。本申请实施例中的术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或组件。The terms “first”, “second” and “third” in the embodiments of this application are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, features defined as "first", "second", and "third" may explicitly or implicitly include at least one of these features. In the description of this application, "plurality" means at least two, such as two, three, etc., unless otherwise clearly and specifically limited. All directional indications (such as up, down, left, right, front, back...) in the embodiments of this application are only used to explain the relative positional relationship between components in a specific posture (as shown in the drawings). , sports conditions, etc., if the specific posture changes, the directional indication will also change accordingly. The terms "including" and "having" and any variations thereof in the embodiments of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes Other steps or components inherent to such processes, methods, products or devices.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The appearances of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those skilled in the art understand, both explicitly and implicitly, that the embodiments described herein may be combined with other embodiments.
作为在此使用的“电子设备”(或简称为“终端”)包括,但不限于被设置成经由有线线路连接(如经由公共交换电话网络(PSTN)、数字用户线路(DSL)、数字电缆、直接电缆连接,以及/或另一数据连接/网络)和/或经由(例如,针对蜂窝网络、无线局域网(WLAN)、诸如DVB-H网络的数字电视网络、卫星网络、AM-FM广播发送器,以及/或另一通信终端的)无线接口接收/发送通信信号的装置。被设置成通过无线接口通信的通信终端可以被称为“无线通信终端”、“无线终端”或“移动终端”。移动终端的示例包括,但不限于卫星或蜂窝电话;可以组合蜂窝无线电电话与数据处理、传真以及数据通信能力的个人通信系统(PCS)终端;可以包括无线电电话、寻呼机、因特网/内联网接入、Web浏览器、记事簿、日历以及/或全球定位系统(GPS)接收器的PDA;以及常规膝上型和/或掌上型接收器或包括无线电电话收发器的其它电子装置。手机即为配置有蜂窝通信模块的电子设备。As used herein, "electronic devices" (or simply "terminals") include, but are not limited to, devices configured to be connected via wired lines (e.g., via the Public Switched Telephone Network (PSTN), Digital Subscriber Line (DSL), digital cable, direct cable connection, and/or another data connection/network) and/or via (e.g., for cellular networks, wireless local area networks (WLAN), digital television networks such as DVB-H networks, satellite networks, AM-FM broadcast transmitters , and/or a device for receiving/transmitting communication signals through the wireless interface of another communication terminal. A communication terminal configured to communicate via a wireless interface may be referred to as a "wireless communication terminal", "wireless terminal" or "mobile terminal". Examples of mobile terminals include, but are not limited to, satellite or cellular telephones; Personal Communications System (PCS) terminals that may combine cellular radiotelephones with data processing, fax, and data communications capabilities; may include radiotelephones, pagers, Internet/Intranet access , web browsers, planners, calendars, and/or PDAs with Global Positioning System (GPS) receivers; as well as conventional laptop and/or handheld receivers or other electronic devices including radiotelephone transceivers. A mobile phone is an electronic device equipped with a cellular communication module.
常规技术中,手机侧边配置有三段式滑动开关,方便用户快捷的将手机在响铃、震动和静音状态之间进行切换。三段式滑动开关位置采用磁铁和两颗单轴霍尔器件配合进行检测,磁铁安装在滑动键帽上,霍尔传感器焊接在主板上并且在开关滑动方向上的距离大于开关行程,滑动键帽,滑动开关在上中下三个位置时,因为磁铁与霍尔传感器的空间距离不同,穿过两颗霍尔器件的磁感线不同,根据两颗霍尔器件检测到的磁感应强度的差值对滑动开关的位置进行判断并设置手机状态。In conventional technology, a three-stage sliding switch is configured on the side of the mobile phone to facilitate users to quickly switch the mobile phone between ring, vibrate and silent states. The position of the three-stage sliding switch is detected using a magnet and two single-axis Hall devices. The magnet is installed on the sliding keycap. The Hall sensor is welded on the main board and the distance in the sliding direction of the switch is greater than the switch stroke. The sliding keycap , when the sliding switch is in the upper, middle and lower positions, because the spatial distance between the magnet and the Hall sensor is different, the magnetic induction lines passing through the two Hall devices are different. According to the difference in the magnetic induction intensity detected by the two Hall devices Judge the position of the sliding switch and set the phone status.
手机日益追求轻薄化,内部器件布局空间非常有限,而因为手机影像性能的更高要求,摄像头的数量和单体尺寸都在增加,摄像头布局位置与侧边三段式开关在手机内部布局空间距离进一步减小,摄像头内部集成多颗磁铁,摄像头在侧边三段式开关附近时,摄像头内部磁铁的磁场会对霍尔传感器产生干扰,导致三段式开关位置检测异常,手机状态设置异常;同时侧边三段式开关用于进行位置检测的磁铁产生的磁场也会对摄像头内部的磁铁产生干扰,导致摄像头的防抖功能异常。Mobile phones are increasingly pursuing thinness and lightness, and the internal device layout space is very limited. Due to the higher requirements for mobile phone imaging performance, the number and single size of cameras are increasing. The camera layout position and the three-stage switch on the side are spaced far apart inside the mobile phone. To further reduce the problem, there are multiple magnets integrated into the camera. When the camera is near the three-stage switch on the side, the magnetic field of the magnets inside the camera will interfere with the Hall sensor, causing abnormal position detection of the three-stage switch and abnormal phone status settings; at the same time, The magnetic field generated by the magnet used for position detection by the three-stage switch on the side will also interfere with the magnet inside the camera, causing the camera's anti-shake function to be abnormal.
另外,使用两颗单轴霍尔器件配合进行检测,需要占用更大的布局空间,而且对两颗霍尔器件的布局相对位置有很高要求。In addition, using two single-axis Hall devices for detection requires a larger layout space, and has high requirements on the relative position of the two Hall devices.
有鉴于上述问题,本申请实施例提供了一种按键组件,请一并参阅图1和图2,图1是本申请按键组件一实施例的整体结构示意图;图2是图1实施例中按键组件的结构拆分示意图。需要说明的是,本申请中实施例中的按键组件用于电子设备,而电子设备可以包括手机、平板电脑、笔记本电脑、蓝牙音箱、耳机、手表、可穿戴设备等具有按键的电子设备。本实施例中用于电子设备的按键组件包括按键100、固定件200、定位件300、霍尔元件400以及磁性件500。In view of the above problems, an embodiment of the present application provides a key assembly. Please refer to Figures 1 and 2 together. Figure 1 is a schematic diagram of the overall structure of an embodiment of the key assembly of the present application; Figure 2 is a schematic diagram of the key in the embodiment of Figure 1 Schematic diagram of the structural breakdown of components. It should be noted that the key components in the embodiments of the present application are used in electronic devices, and the electronic devices may include mobile phones, tablet computers, laptops, Bluetooth speakers, headphones, watches, wearable devices and other electronic devices with keys. In this embodiment, the key assembly for electronic equipment includes a key 100, a fixing part 200, a positioning part 300, a Hall element 400 and a magnetic part 500.
具体而言,请一并参阅图1、图3、图4以及图5,图3是图1实施例中按键组件沿A-A线的结构剖视示意图,图4是图1实施例中按键组件沿B-B线的结构剖视示意图;图5是图1实施例中按键组件的固定件以及定位件的结构拆分示意图。其中,固定件200可以是电子设备的壳体(譬如中框)、电路板等结构件,也可以是如本实施例图示中的支架结构,该支架结构可以是与壳体固定连接。可选地,该固定件200设有容置槽210,定位件300的一端顶持容置槽210的底部,另一端与所述按键100上的定位槽111配合,以实现对按键100的定位。Specifically, please refer to Figures 1, 3, 4 and 5 together. Figure 3 is a schematic structural cross-sectional view of the key assembly along line A-A in the embodiment of Figure 1. Figure 4 is a schematic cross-sectional view of the key assembly along line A-A in the embodiment of Figure 1. A schematic cross-sectional view of the structure along line B-B; Figure 5 is an exploded schematic view of the structure of the fixing part and the positioning part of the key assembly in the embodiment of Figure 1. The fixing member 200 may be a structural component such as a housing (such as a middle frame) or a circuit board of an electronic device, or a bracket structure as shown in this embodiment. The bracket structure may be fixedly connected to the housing. Optionally, the fixing member 200 is provided with an accommodating groove 210. One end of the positioning member 300 holds the bottom of the accommodating groove 210, and the other end cooperates with the positioning groove 111 on the button 100 to achieve positioning of the button 100. .
可选地,请一并参阅图6,图6是图1实施例中按键组件的按键的结构示意图;该按键100包括一体结构的主体部110以及按压部120,其中,按压部120用于与操作者的手接触。主体部110远离按压部120的一侧表面设有多个定位槽111(沿第一方向排列设置)。可选地,该按键100的主体部110在朝向定位件300的一侧设有至少两个定位槽111(本申请实施例的图示中以设置三个定位槽111为例进行说明),其中,按键100可相对于固定件200在图中箭头Y方向上滑动,按键100在滑动至不同位置时,定位件300通过与不同的定位槽111配合,实现对所述按100的不同位置定位。Optionally, please refer to FIG. 6 as well. FIG. 6 is a schematic structural diagram of a button of the button assembly in the embodiment of FIG. Operator's hand contact. A plurality of positioning grooves 111 (arranged along the first direction) are provided on a side surface of the main body 110 away from the pressing portion 120 . Optionally, the main body 110 of the button 100 is provided with at least two positioning grooves 111 on the side facing the positioning member 300 (the illustration of the embodiment of this application takes three positioning grooves 111 as an example for illustration), where , the button 100 can slide in the direction of arrow Y in the figure relative to the fixing member 200. When the button 100 slides to different positions, the positioning member 300 cooperates with different positioning grooves 111 to position the button 100 at different positions.
可选地,请继续参阅图6和图2,该按键100的主体部110远离按压部120的一侧表面还设有安装缺口112,安装缺口112用于安装磁性件500,磁性件500通过安装缺口112与按键100固定连接,譬如粘接等。磁性件500可随按键100移动,进而拨动触发相应的功能。其中,磁性件500可以是磁铁等磁性件结构,配合霍尔元件400,实现相应功能的触发。具体可以是按键100带动磁性件500相对于霍尔元件400移动,进而改变磁性件500与霍尔元件400之间的感应磁场。霍尔元件400与磁性件500沿第三方向间隔设置。Optionally, please continue to refer to Figures 6 and 2. The main body 110 of the button 100 is also provided with a mounting notch 112 on the side surface away from the pressing portion 120. The mounting notch 112 is used to install the magnetic component 500. The magnetic component 500 is installed by The notch 112 is fixedly connected to the button 100 by, for example, bonding. The magnetic part 500 can move with the button 100, and then toggled to trigger the corresponding function. Among them, the magnetic component 500 can be a magnetic component structure such as a magnet, and cooperates with the Hall element 400 to realize the triggering of corresponding functions. Specifically, the button 100 can drive the magnetic component 500 to move relative to the Hall element 400 , thereby changing the induced magnetic field between the magnetic component 500 and the Hall element 400 . The Hall element 400 and the magnetic component 500 are spaced apart along the third direction.
其中,这里所说的相应功能也就是磁性件500与霍尔元件400配合的应用场景,包括设置电子设备的状态为静音、振动、响铃等与电子设备提醒功能相关的应用;另外也可以是用于自行定义的功能,譬如触发打开或者关闭相机、控制音乐播放(暂停、上一曲、下一曲)、甚至用于控制显示界面的上下滚动条以及切换应用程序图标位置等等。应用场景可以是本领域技术人员或者用户自行设定,此处亦不再一一列举并具体限定。其中,霍尔元件400固设于固定件200,具体 可以是嵌设于固定件200的内部或者表面。Among them, the corresponding functions mentioned here are the application scenarios in which the magnetic component 500 and the Hall element 400 cooperate, including setting the status of the electronic device to mute, vibrate, ring, and other applications related to the reminder function of the electronic device; in addition, it can also be Used for self-defined functions, such as triggering the camera to turn on or off, controlling music playback (pause, previous song, next song), and even controlling the up and down scroll bars of the display interface and switching the position of application icons, etc. Application scenarios can be set by those skilled in the art or users, and are not listed one by one or specifically limited here. Among them, the Hall element 400 is fixed on the fixing member 200. Specifically, It may be embedded inside or on the surface of the fixing member 200 .
可选地,请继续参阅图5,本实施例中的定位件300包括弹性件310以及定位块320,该弹性件310的一端顶持固定件200的容置槽210的底部,另一端顶持定位块320,以使得定位块320与按键100的主体部110上的定位槽111配合。可选地,本实施例中的弹性件310可以为压缩弹簧,而定位块320可以为小球结构,具体可以为不锈钢小球。在一些其它实施例中,定位件300还可以是其它结构,譬如弹性探针等,关于这部分的拓展特征实施例,在本领域技术人员的理解范围内,此处亦不再一一列举并详述。Optionally, please continue to refer to FIG. 5 . The positioning member 300 in this embodiment includes an elastic member 310 and a positioning block 320 . One end of the elastic member 310 holds the bottom of the accommodating groove 210 of the fixing member 200 , and the other end holds the positioning block 320 . Position the block 320 so that the positioning block 320 cooperates with the positioning groove 111 on the main body 110 of the key 100 . Optionally, the elastic member 310 in this embodiment can be a compression spring, and the positioning block 320 can be a small ball structure, specifically, it can be a stainless steel ball. In some other embodiments, the positioning member 300 can also be other structures, such as elastic probes, etc. Regarding this part of the extended feature embodiments, it is within the understanding of those skilled in the art and will not be listed one by one here. Elaborate.
可选地,请继续参阅图3,为了降低磁性件500对外部环境以及电子设备的其他器件的磁场干扰,本实施例中的磁性件500在非对应霍尔元件400的侧面还设有隔磁材料层600,进而降低磁性件500对外界的干扰。其中,隔磁材料层600不限于图示中的背离霍尔元件400的一侧,还可以是包裹在非对应霍尔元件400的所有侧面,此次不做具体限定。Optionally, please continue to refer to FIG. 3. In order to reduce the magnetic field interference of the magnetic component 500 to the external environment and other components of the electronic device, the magnetic component 500 in this embodiment is also provided with magnetic isolation on the side of the non-corresponding Hall element 400. The material layer 600 further reduces the interference of the magnetic component 500 to the outside world. Among them, the magnetic isolation material layer 600 is not limited to the side facing away from the Hall element 400 in the figure, and can also be wrapped around all sides of the non-corresponding Hall element 400. This time there is no specific limitation.
请一并参阅图7和图8,图7是图1实施例中的按键组件与电子设备壳体配合状态的结构示意图,图8是图7实施例中沿C-C线的结构剖视示意图,固定件200与壳体20固定连接,定位件300用于对按键100进行定位。按键100露出于壳体20的通孔21,按键100可沿条状结构通孔21在图中Y方向滑动。Please refer to Figures 7 and 8 together. Figure 7 is a schematic structural view of the key assembly in the embodiment of Figure 1 in a mating state with the electronic device housing. Figure 8 is a schematic cross-sectional view of the structure along line C-C in the embodiment of Figure 7. Fixed The component 200 is fixedly connected to the housing 20, and the positioning component 300 is used to position the button 100. The button 100 is exposed in the through hole 21 of the housing 20 , and the button 100 can slide along the strip-shaped structure through hole 21 in the Y direction in the figure.
可选地,请参阅图9,图9是图1实施例中磁性件充磁方向与霍尔元件相对位置关系的结构示意图。本实施例中的霍尔元件400至少可以检测两个方向上的磁场变化,相较于常规技术方案中的检测磁感应强度变为检测磁场方向。可选地,该霍尔元件可以为三轴霍尔元件。能够检测所述感应磁场沿第一方向、第二方向和第三方向的分量,其中第二方向和第三方向均垂直于第一方向,且第二方向垂直于第三方向。其中,第一方向(Y方向)、第二方向(Z方向)和第三方向(X方向)两两相互垂直,形成三维坐标系。磁性件500的充磁方向与磁性件500相对于霍尔元件400的移动方向(箭头Y方向)平行。Optionally, please refer to FIG. 9 , which is a schematic structural diagram of the relative positional relationship between the magnetizing direction of the magnetic component and the Hall element in the embodiment of FIG. 1 . The Hall element 400 in this embodiment can detect changes in the magnetic field in at least two directions. Compared with detecting the magnetic induction intensity in the conventional technical solution, it detects the direction of the magnetic field. Optionally, the Hall element can be a three-axis Hall element. The components of the induced magnetic field along the first direction, the second direction and the third direction can be detected, wherein the second direction and the third direction are both perpendicular to the first direction, and the second direction is perpendicular to the third direction. Among them, the first direction (Y direction), the second direction (Z direction) and the third direction (X direction) are perpendicular to each other, forming a three-dimensional coordinate system. The magnetization direction of the magnetic component 500 is parallel to the moving direction of the magnetic component 500 relative to the Hall element 400 (arrow Y direction).
三轴霍尔元件400内部集成有XYZ三个方向的霍尔传感器,每个霍尔传感器可以检测一个方向的磁感应强度,内部电路将检测到的磁感应强度值转换为数字信号,然后通过通信接口传递给电子设备的主处理器。三段式开关按键上安装磁铁(磁性件500),按键滑动到不同位置时,磁铁与三轴霍尔元件之间的相对位置改变;可以是通过FPC将三轴霍尔元件与主板连接并传递信号。The three-axis Hall element 400 integrates Hall sensors in the three directions of XYZ. Each Hall sensor can detect the magnetic induction intensity in one direction. The internal circuit converts the detected magnetic induction intensity value into a digital signal and then transmits it through the communication interface. To the main processor of an electronic device. A magnet (magnetic component 500) is installed on the three-stage switch button. When the button slides to different positions, the relative position between the magnet and the three-axis Hall element changes; the three-axis Hall element can be connected and transmitted to the motherboard through FPC. Signal.
请一并参阅图10a-图10c,图10a是图9中霍尔元件与磁性件第一相对位置状态的结构示意图;图10b是图9中霍尔元件与磁性件第二相对位置状态的结构示意图;图10c是图9中霍尔元件与磁性件第三相对位置状态的结构示意图;其中,本实施例中以三段式开关结构为例进行说明,霍尔元件400可以是用于对磁性件500在三个位置点进行检测,三个位置点位于磁性件500的行程范围的两端(图10a和图10c中相对位置状态)和中点(图10b中相对位置状态)。请继续参阅图9,霍尔元件400的检测中心410对应于磁性件500行程范围的中点。Please refer to Figures 10a-10c together. Figure 10a is a schematic structural diagram of the Hall element and the magnetic component in the first relative position in Figure 9; Figure 10b is the structure of the Hall element and the magnetic component in the second relative position in Figure 9. Schematic diagram; Figure 10c is a structural schematic diagram of the third relative position state of the Hall element and the magnetic component in Figure 9; in this embodiment, a three-stage switch structure is used as an example for explanation. The Hall element 400 can be used to control the magnetic The component 500 is detected at three position points, which are located at both ends (the relative position state in Figures 10a and 10c) and the middle point (the relative position state in Figure 10b) of the stroke range of the magnetic component 500. Please continue to refer to FIG. 9 . The detection center 410 of the Hall element 400 corresponds to the midpoint of the stroke range of the magnetic component 500 .
检测原理如下:在侧边三段式开关的三个行程位置,磁性件500与三轴霍尔元件400相对位置不同,穿过霍尔元件400的磁感线在Y向和Z向的夹角不同,根据霍尔元件400检测到的Y向和Z向磁感应强度计算得到磁感线在Y向和Z向的夹角,根据磁感线Y向和Z向的夹角即可判断三段式开关的位置。对磁性件500从图10a-图10c中位置沿着Y向移动时的三轴检测到的磁感应强度进行仿真,具体的仿真图,请一并参阅11和图12,图11是图9中霍尔元件感测到的三轴磁感应强度值的示意曲线图,图12是图9中霍尔元件感测到磁感应线Y向和Z向的夹角变化曲线图。The detection principle is as follows: in the three stroke positions of the side three-stage switch, the relative positions of the magnetic component 500 and the three-axis Hall element 400 are different, and the magnetic induction lines passing through the Hall element 400 are at the angle between the Y direction and the Z direction. Differently, the angle between the magnetic induction lines in the Y direction and the Z direction can be calculated based on the Y-direction and Z-direction magnetic induction intensity detected by the Hall element 400. The three-stage type can be determined based on the angle between the Y-direction and the Z-direction of the magnetic induction lines. switch position. Simulate the magnetic induction intensity detected in the three axes when the magnetic component 500 moves along the Y direction from the position in Figure 10a to Figure 10c. For specific simulation diagrams, please refer to Figures 11 and 12 together. Figure 11 is the Huo in Figure 9. Figure 12 is a schematic curve diagram of the three-axis magnetic induction intensity value sensed by the Hall element. Figure 12 is a graph of the angle change curve between the Y direction and the Z direction of the magnetic induction line sensed by the Hall element in Figure 9.
其中,图11和图12中的数据基于图9中磁性件500沿Y轴移动,霍尔元件400对应于磁性件500底部,其中,图11中曲线x表示为霍尔元件400检测到在X方向上的磁场强度,曲线y表示为霍尔元件400检测到在Y方向上的磁场强度,曲线z表示为霍尔元件400检测到在Z方向上的磁场强度,从图11中可知,左、中、右3个位置上,磁场的Y轴、Z轴相对值呈现图11中曲线的特征,即磁场总值不变,但在三轴的分量不一样(从磁性件500的充磁方向以及与霍尔元件400的相对移动方向可知,X轴方向上分量为零,且保持不变)。Among them, the data in Figures 11 and 12 are based on the movement of the magnetic component 500 along the Y axis in Figure 9, and the Hall element 400 corresponds to the bottom of the magnetic component 500, where the curve x in Figure 11 represents that the Hall element 400 detects at X The magnetic field strength in the direction, the curve y represents the magnetic field strength detected by the Hall element 400 in the Y direction, and the curve z represents the magnetic field strength detected by the Hall element 400 in the Z direction. As can be seen from Figure 11, left and At the three positions on the middle and right, the relative values of the Y-axis and Z-axis of the magnetic field show the characteristics of the curve in Figure 11, that is, the total value of the magnetic field remains unchanged, but the components in the three axes are different (from the magnetization direction of the magnetic part 500 and It can be seen from the relative movement direction of the Hall element 400 that the component in the X-axis direction is zero and remains unchanged).
对Y轴和Z轴方向的磁场求磁场旋转切角arctan(y/z),由于霍尔元件与磁性件的相对运动距离的关系(霍尔元件对三个位置点进行检测,三个位置点分别位于行程范围的两端和中点),磁场切角=arctan(z/x)在整个行程内正好为一个周期(-π/2~π/2)。属于线性区间,非常利于三个按键位置的判断和区分。在左、中、右3个位置(图10中开关位置a、b、c)上,磁场的Y轴、Z轴相对值呈现上面的特征,即磁场总值不变,但在三轴的分量不一样。在按键的行程范围内,霍尔元件检测到的感应磁场沿第一方向的强度值与沿第三方向的强度值之比的反正切值与磁性件相对于霍尔元件的位置呈一一对应关系。Calculate the magnetic field rotation tangent angle arctan (y/z) for the magnetic field in the Y-axis and Z-axis directions. Due to the relative movement distance between the Hall element and the magnetic part (the Hall element detects three position points, the three position points are respectively located at both ends and midpoint of the stroke range), the magnetic field tangent angle = arctan (z/x) is exactly one period (-π/2~π/2) during the entire stroke. It belongs to the linear interval, which is very helpful for judging and distinguishing the positions of the three keys. In the three positions of left, middle and right (switch positions a, b, c in Figure 10), the relative values of the Y-axis and Z-axis of the magnetic field show the above characteristics, that is, the total value of the magnetic field remains unchanged, but the components of the three axes no the same. Within the stroke range of the key, the arc tangent value of the ratio of the intensity value of the induced magnetic field along the first direction and the intensity value along the third direction detected by the Hall element has a one-to-one correspondence with the position of the magnetic component relative to the Hall element. relation.
整个角度分布为一个π,角度旋转从-π/2~π/2,可知磁性件500在3段式开关的最左端(图10c中相对位置状态)时,角度为-π/2;中间位置(图10b中相对位置状态)时,角度为0;最右端(图10a中相对位置状态)时,角度为π/2。The entire angle distribution is π, and the angle rotation is from -π/2 to π/2. It can be seen that when the magnetic component 500 is at the leftmost end of the 3-stage switch (the relative position state in Figure 10c), the angle is -π/2; the middle position (relative position state in Figure 10b), the angle is 0; at the rightmost end (relative position state in Figure 10a), the angle is π/2.
从图12中可知,计算得到磁性件500在中间位置移动不同距离时三轴霍尔元件400检测到的磁感线Y向和Z向夹角,夹角角度与磁性件500移动方向具有一致性,根据夹角值的差异即可判断三段式开关所在位置。另外,在一些其他实施例中,还可以将两个轴数据计算的平面角度扩展为使用三轴数据计算的空间矢量角度,进一步提高抗干扰能力。As can be seen from Figure 12, the angle between the Y-direction and the Z-direction of the magnetic field lines detected by the three-axis Hall element 400 when the magnetic component 500 moves at different distances in the intermediate position is calculated. The included angle is consistent with the moving direction of the magnetic component 500. , the location of the three-stage switch can be determined based on the difference in angle values. In addition, in some other embodiments, the plane angle calculated using two-axis data can also be extended to the space vector angle calculated using three-axis data, to further improve the anti-interference capability.
在电子设备完成组装时需要先进行校准。具体的校准过程包括分别将按键拨动至不同位置并记录相应的位置角度值以及设置阈值,以及在不同角度值和角度阈值下设定相应的功能。本实施例中的技术方案,在电子设备组装完成时进行一次校准,后续还可以开发结合电子设备姿态和场景的动态校准算法。关于具体的设定方法在本领域技术人员的理解范围内,此处不再赘述。Calibration is required before electronic equipment is fully assembled. The specific calibration process includes moving the buttons to different positions and recording the corresponding position angle values and setting thresholds, and setting corresponding functions under different angle values and angle thresholds. The technical solution in this embodiment performs a calibration when the electronic device is assembled, and a dynamic calibration algorithm that combines the posture and scene of the electronic device can be developed later. The specific setting method is within the understanding of those skilled in the art and will not be described again here.
本实施例中的按键组件,其检测方式从常规方案中的检测磁感应强度变为检测磁场方向,当存在单一方向的磁干扰时,对磁场方向影响小,提高了抗干扰能力。通过将常规技术方案中的多颗单轴霍尔元件替换为一颗三轴霍尔元件,可节省布局空间,为电子设备小型化提供了条件。The detection method of the key assembly in this embodiment changes from detecting the magnetic induction intensity in the conventional scheme to detecting the direction of the magnetic field. When there is magnetic interference in a single direction, it has little impact on the direction of the magnetic field and improves the anti-interference capability. By replacing multiple single-axis Hall elements in conventional technical solutions with one three-axis Hall element, layout space can be saved, which provides conditions for miniaturization of electronic equipment.
请参阅图13,图13是本申请按键组件另一实施例的结构剖视示意图,与前述实施例不同的是,本实施例中的磁性件500包括充磁方向相反的第一磁性件510和第二磁性件520,该第一磁性件510和第二磁性件510沿第一方向并排设置,请参阅图14,图14是图13实施例中磁性件充磁方向的示意图,其中,本实施例中的第一磁性件510和第二磁性件520可以是沿与充磁方向(图中Z方向)垂直的第一方向(Y方向)并排抵接设置,具体可以是第一磁性件510和第二磁性件520粘接连接。第一磁性件510和第二磁性件520的磁极方向均朝向霍尔元件400设置。另外,在一些其他实施例中,磁性件500不限于包括第一磁性件510和第二磁性件520,还可以是包括多个磁性件的结构形式,此处仅以两个磁性件为例进行说明。Please refer to Figure 13. Figure 13 is a schematic structural cross-sectional view of another embodiment of the key assembly of the present application. Different from the previous embodiment, the magnetic component 500 in this embodiment includes a first magnetic component 510 with opposite magnetization directions and The second magnetic component 520. The first magnetic component 510 and the second magnetic component 510 are arranged side by side along the first direction. Please refer to Figure 14. Figure 14 is a schematic diagram of the magnetizing direction of the magnetic component in the embodiment of Figure 13. In this embodiment, In the example, the first magnetic component 510 and the second magnetic component 520 may be arranged side by side in abutment along the first direction (Y direction) perpendicular to the magnetization direction (Z direction in the figure). Specifically, the first magnetic component 510 and the second magnetic component 520 may be arranged side by side. The second magnetic component 520 is adhesively connected. The magnetic pole directions of the first magnetic part 510 and the second magnetic part 520 are both disposed toward the Hall element 400 . In addition, in some other embodiments, the magnetic component 500 is not limited to including the first magnetic component 510 and the second magnetic component 520 , but may also be in a structural form including multiple magnetic components. Here, only two magnetic components are taken as an example. illustrate.
本申请实施例以三段式开关结构为例进行说明。请参阅图15,图15是图13实施例中磁性件与霍尔元件配合位置的结 构示意图。为了增加磁性件与霍尔元件配合的抗干扰能力,本申请实施例中的的三段式开关结构,该第一磁性件510和第二磁性件520在垂直于充磁方向上的宽度(也即第一方向上的宽度)(K1、K2)相同,可选地,第一磁性件和第二磁性件沿第一方向的宽度均可以为1-5mm,具体可以为1mm、2mm、3mm、4mm、5mm等,此处不做具体限定。第一磁性件510和第二磁性件520沿垂直于充磁方向的总宽度K与按键100的行程范围L相同。其中,霍尔元件400的检测中心410对应于按键100行程范围L的中点。The embodiment of this application takes a three-stage switch structure as an example for description. Please refer to Figure 15. Figure 15 is the structure of the mating position of the magnetic component and the Hall element in the embodiment of Figure 13. Structure diagram. In order to increase the anti-interference ability of the magnetic component and the Hall element, in the three-stage switch structure in the embodiment of the present application, the width of the first magnetic component 510 and the second magnetic component 520 perpendicular to the magnetizing direction (also That is, the widths in the first direction (K1, K2) are the same. Optionally, the widths of the first magnetic component and the second magnetic component along the first direction can be 1-5mm, specifically 1mm, 2mm, 3mm, 4mm, 5mm, etc., there are no specific limitations here. The total width K of the first magnetic component 510 and the second magnetic component 520 perpendicular to the magnetizing direction is the same as the stroke range L of the key 100 . The detection center 410 of the Hall element 400 corresponds to the midpoint of the stroke range L of the key 100 .
可选地,请继续参阅图13,霍尔元件400与磁性件500朝向霍尔元件400的表面之间的距离为0.5-2mm,具体可以为0.5mm、0.6mm、0.8mm、1mm、1.5mm、2mm等。Optionally, please continue to refer to Figure 13. The distance between the Hall element 400 and the surface of the magnetic component 500 facing the Hall element 400 is 0.5-2mm, specifically it can be 0.5mm, 0.6mm, 0.8mm, 1mm, 1.5mm. , 2mm, etc.
请继续参阅图15,本实施例中的霍尔元件400用于对按键100在三个位置点(开关位置a、b、c)进行检测,三个位置点位于按键的行程范围的两端和中点。这里需要说明的是,按键行程范围L表示为按键从一端移动至另一端过程中检测位置的变化距离,该距离为按键的移动距离的两倍。本申请实施例中的霍尔元件能够检测感应磁场沿第一方向(Y方向)、第二方向(Z方向)和第三方向(X方向)的分量,其中第二方向和第三方向均垂直于第一方向,且第二方向垂直于第三方向。即,第一方向(Y方向)、第二方向(Z方向)和第三方向(X方向)两两相互垂直,形成三维坐标系。Please continue to refer to Figure 15. The Hall element 400 in this embodiment is used to detect the key 100 at three position points (switch positions a, b, c). The three position points are located at both ends and midpoint. It should be noted here that the key stroke range L is expressed as the change distance of the detection position when the key moves from one end to the other end. This distance is twice the movement distance of the key. The Hall element in the embodiment of the present application can detect the components of the induced magnetic field along the first direction (Y direction), the second direction (Z direction) and the third direction (X direction), where the second direction and the third direction are both perpendicular. in the first direction, and the second direction is perpendicular to the third direction. That is, the first direction (Y direction), the second direction (Z direction) and the third direction (X direction) are perpendicular to each other, forming a three-dimensional coordinate system.
可选地,在一实施例中,第一磁性件510和第二磁性件520的宽度(K1、K2)可以为2mm,总宽度K可以为4mm,行程范围L可以为4mm。这里需要说明的是,在一些其他实施例中,两个磁性件的长度,不一定要如上述方案中正好等于按键行程范围的距离。长度大于、小于按键距离也可以。当磁性件长度大于运行距离时,换算出的切角会小于-π/2~π/2的范围;当磁性件长度小于运行距离时,换算出的切角会大于一个-π/2~π/2周期,这样就需要优先判断处于哪个周期内,本申请实施例仅以第一磁性件510和第二磁性件520的总宽度K与按键行程范围L相同为例进行说明。当然,在一些其他实施例中,也可以是2段、4段甚至更多段的按键,原理相类似,只要满足本申请中的原理的设计,多段按键检测是可行的。Alternatively, in an embodiment, the widths (K1, K2) of the first magnetic component 510 and the second magnetic component 520 may be 2 mm, the total width K may be 4 mm, and the stroke range L may be 4 mm. It should be noted here that in some other embodiments, the length of the two magnetic components does not necessarily have to be exactly equal to the distance of the key stroke range as in the above solution. The length can be longer or shorter than the key distance. When the length of the magnetic part is greater than the running distance, the converted tangent angle will be less than -π/2~π/2; when the length of the magnetic part is less than the running distance, the converted tangent angle will be greater than -π/2~π /2 cycle, so it is necessary to first determine which cycle it is in. The embodiment of the present application only takes the total width K of the first magnetic component 510 and the second magnetic component 520 as being the same as the key stroke range L as an example for description. Of course, in some other embodiments, there can also be 2-segment, 4-segment or even more-segment keys. The principles are similar. As long as the design meets the principles in this application, multi-segment key detection is feasible.
在按键从行程范围的一端移动到另一端的过程中,霍尔元件400检测到第一磁性件510和第二磁性件520的磁场角度从-90°变化至90°,其中,按键的行程范围两端的磁场角度分别为-90°和90度,行程中点的磁场角度为零;按键行程范围一端的位置识别区角度范围为-90°至-70°,按键行程范围另一端的位置识别区角度范围为70°至90°,按键行程范围中点位置识别区角度范围为-10°至10°。When the key moves from one end of the travel range to the other end, the Hall element 400 detects that the magnetic field angle of the first magnetic component 510 and the second magnetic component 520 changes from -90° to 90°, where the travel range of the key The magnetic field angles at both ends are -90° and 90° respectively, and the magnetic field angle at the midpoint of the stroke is zero; the angle range of the position identification area at one end of the key stroke range is -90° to -70°, and the position identification area at the other end of the key stroke range The angle range is 70° to 90°, and the angle range of the midpoint position identification area of the key travel range is -10° to 10°.
进行仿真实验,请参阅图16至图18,图16是图13实施例中磁性件磁场坐标系示意图,图17是图16中霍尔元件检测到的三轴方向磁场的曲线示意图,图18是图16中磁性件磁场仿真实验的磁场切角示意图,其中,图17和图18中的数据基于图16中磁性件500沿Y轴移动,霍尔元件400对应于磁性件500底部,其中,图17中曲线x表示为霍尔元件400检测到在X方向上的磁场强度,曲线y表示为霍尔元件400检测到在Y方向上的磁场强度,曲线z表示为霍尔元件400检测到在Z方向上的磁场强度,从图17中可知,左、中、右3个位置上,磁场的X轴、Z轴相对值呈现图17中曲线的特征,即磁场总值不变,但在三轴的分量不一样(从磁性件500的充磁方向以及与霍尔元件400的相对移动方向可知,Y轴方向上分量为零,且保持不变)。To conduct the simulation experiment, please refer to Figures 16 to 18. Figure 16 is a schematic diagram of the magnetic field coordinate system of the magnetic component in the embodiment of Figure 13. Figure 17 is a schematic curve diagram of the magnetic field in the three-axis direction detected by the Hall element in Figure 16. Figure 18 is A schematic diagram of the magnetic field angle of the magnetic field simulation experiment of the magnetic part in Figure 16, where the data in Figures 17 and 18 are based on the movement of the magnetic part 500 along the Y-axis in Figure 16, and the Hall element 400 corresponds to the bottom of the magnetic part 500, where, Figure In 17, the curve x represents the magnetic field strength detected by the Hall element 400 in the X direction, the curve y represents the magnetic field strength detected by the Hall element 400 in the Y direction, and the curve z represents the Hall element 400 detected the magnetic field strength in the Z direction. The magnetic field strength in the direction can be seen from Figure 17. At the three positions of left, middle and right, the relative values of the X-axis and Z-axis of the magnetic field show the characteristics of the curve in Figure 17, that is, the total value of the magnetic field remains unchanged, but in the three axes The components are different (it can be seen from the magnetization direction of the magnetic component 500 and the relative movement direction with the Hall element 400 that the component in the Y-axis direction is zero and remains unchanged).
对X轴和Z轴方向的磁场求磁场旋转切角arctan(z/x),由于霍尔元件与磁性件的相对运动距离的关系(霍尔元件对三个位置点进行检测,三个位置点分别位于行程范围的两端和中点),磁场切角=arctan(z/x)在整个行程内正好为一个周期(-π/2~π/2)。属于线性区间,非常利于三个按键位置的判断和区分。在左、中、右3个位置(图15中开关位置a、b、c)上,磁场的X轴、Z轴相对值呈现上面的特征,即磁场总值不变,但在三轴的分量不一样。Calculate the magnetic field rotation tangent angle arctan (z/x) for the magnetic field in the X-axis and Z-axis directions. Due to the relative movement distance between the Hall element and the magnetic part (the Hall element detects three position points, the three position points are respectively located at both ends and midpoint of the stroke range), the magnetic field tangent angle = arctan (z/x) is exactly one period (-π/2~π/2) during the entire stroke. It belongs to the linear interval, which is very helpful for judging and distinguishing the positions of the three keys. In the three positions of left, middle and right (switch positions a, b, c in Figure 15), the relative values of the X-axis and Z-axis of the magnetic field show the above characteristics, that is, the total value of the magnetic field remains unchanged, but the components of the three axes no the same.
整个角度分布为一个π,角度旋转从-π/2~π/2,可知磁性件500在3段式开关的最左端(磁性件位置1)时,角度为-π/2;中间位置(磁性件位置2)时,角度为0;最右端(磁性件位置3)时,角度为π/2。抗干扰情况:由于使用X、Z数据计算位置,因此Y向干扰无影响。此处假设X和Z分别存在1mT干扰。请参阅图19,图19是图16中磁性件在X和Z方向分别存在1mT干扰的情况下磁场仿真实验的磁场切角示意图,X和Z分别加1mT干扰后,切角曲线与无干扰时几乎重合。The entire angle distribution is π, and the angle rotation is from -π/2 to π/2. It can be seen that when the magnetic part 500 is at the leftmost end of the 3-stage switch (magnetic part position 1), the angle is -π/2; the middle position (magnetic part 500) When the magnetic piece is at position 2), the angle is 0; when it is at the far right end (magnetic piece is at position 3), the angle is π/2. Anti-interference situation: Since X and Z data are used to calculate the position, Y-direction interference has no effect. It is assumed here that there is 1mT interference in X and Z respectively. Please refer to Figure 19. Figure 19 is a schematic diagram of the magnetic field angle cutting of the magnetic field simulation experiment in the case of 1mT interference in the X and Z directions of the magnetic component in Figure 16. After 1mT interference is added to X and Z respectively, the angle cutting curve is the same as when there is no interference. Almost coincident.
由于磁场整体能量没有减小,只是方向上的旋转,假设仿真磁性件的磁场最大可以达到80mT,此时如果存在1mT的干扰,对角度偏移的影响=arctan(1/80)=0.012,影响精度百分比为0.012/3.14=0.4%。分析抗扰效果非常好。分别计算4mm行程中每0.1mm干扰的百分比,请参阅图20,图20是1mT干扰对磁场切角影响的百分比示意图。可见1mT干扰对磁场切角影响在0.15%~0.4%之间。Since the overall energy of the magnetic field does not decrease, but only rotates in the direction, it is assumed that the magnetic field of the simulated magnetic part can reach a maximum of 80mT. At this time, if there is 1mT interference, the impact on the angle offset = arctan (1/80) = 0.012, the impact The accuracy percentage is 0.012/3.14=0.4%. The analysis of anti-interference effect is very good. Calculate the percentage of interference for each 0.1mm in the 4mm stroke. Please refer to Figure 20. Figure 20 is a schematic diagram of the percentage of the impact of 1mT interference on the magnetic field cutting angle. It can be seen that the impact of 1mT interference on the magnetic field cutting angle is between 0.15% and 0.4%.
可选地,可以将角度分为5段:Optionally, the angle can be divided into 5 segments:
(1)-90°~-70°:磁性件位置3;(1)-90°~-70°: magnetic part position 3;
(2)-70°~-10°:缓冲区间;(2)-70°~-10°: buffer interval;
(3)-10°~10°:磁性件位置2;(3)-10°~10°: Magnetic part position 2;
(4)10°~70°:缓冲区间;(4)10°~70°: buffer interval;
(5)70°~90°:磁性件位置1。(5)70°~90°: Magnetic part position 1.
请参考下表,下表为磁场干扰的多组数据表。

Please refer to the table below, which contains multiple data tables for magnetic field interference.

(1)从按键位置3(也即磁性件位置3)干扰到按键位置2,最小需要角度从-70°(-1.22)干扰到-10°(-0.17),需要在Z轴外加干扰为arctan(z/0.04)=-0.17,算得z=-0.006(T),因此需要Z向外加的干扰为-0.116-(-0.006)=110mT。即Z向加110mT干扰才会导致位置判断错误。(1) From the interference from key position 3 (that is, the magnetic part position 3) to the key position 2, the minimum required angle is from -70° (-1.22) to -10° (-0.17), and the additional interference required on the Z axis is arctan (z/0.04)=-0.17, it is calculated that z=-0.006(T), so the interference required in Z direction is -0.116-(-0.006)=110mT. That is, adding 110mT interference in the Z direction will cause position judgment errors.
(2)从按键位置2干扰到按键位置3,需要在Z轴外加干扰为arctan(z/0.12)=-1.22,算得z=-0.327(T),因此需要Z向外加的干扰为-0.037-(-0.327)≈300mT。(2) From the interference from key position 2 to key position 3, the interference needed to be added to the Z axis is arctan (z/0.12) = -1.22. Calculate z = -0.327 (T), so the interference needed to be added to the Z axis is -0.037- (-0.327)≈300mT.
(3)从按键位置2干扰到按键位置1,最小需要从10°(0.17)干扰到70°(1.22),需要在Z轴外加干扰为arctan(z/0.12)=1.22,算得z=0.328(T),因此需要Z向外加的干扰为0.328-0.019≈300mT。(3) To interfere from key position 2 to key position 1, the minimum interference needs to be from 10° (0.17) to 70° (1.22). The additional interference required on the Z axis is arctan (z/0.12) = 1.22, and z = 0.328 ( T), so the interference required in the Z direction is 0.328-0.019≈300mT.
(4)从位置1干扰到按键位置2,需要在Z轴外加干扰为arctan(z/0.04)=0.156,算得Z=0.006(T),因此需要Z向外加的干扰为0.119-0.006≈110mT。(4) From the interference from position 1 to button position 2, the interference required on the Z axis is arctan (z/0.04) = 0.156, which is calculated as Z = 0.006 (T). Therefore, the interference required on the Z axis is 0.119-0.006 ≈ 110mT.
综上计算可知,几乎没有干扰可以产生此影响。主要需要关注该布局是否会对其它模块产生干扰。同时,该抗干扰能力,可以通过调节缓冲区域得大小进行调节。From the above calculations, it can be seen that there is almost no interference that can produce this effect. The main thing to pay attention to is whether the layout will interfere with other modules. At the same time, the anti-interference ability can be adjusted by adjusting the size of the buffer area.
可选地,本申请实施例中还可以进一步增大缓冲区而减小识别区的角度,具体可以为行程范围一端的位置识别区角度范围为-90°至-80°,行程范围另一端的位置识别区角度范围为80°至90°,行程范围中点位置识别区角度范围为-5°至5°。其余区间均为缓冲区。将位置识别区间调节得越窄,缓冲区域越宽,则抗干扰性越强。但对结构到位的要求也会更高。因此在设计中,需要结合结构实际能到达的范围区间,配合干扰度的计算与实测,得到二者最优的兼容设计。Optionally, in the embodiment of the present application, the buffer zone can be further increased and the angle of the identification zone can be reduced. Specifically, the angle range of the position identification zone at one end of the stroke range can be -90° to -80°, and the angle range of the position identification zone at the other end of the stroke range can be -90° to -80°. The angle range of the position identification area is 80° to 90°, and the angle range of the position identification area at the midpoint of the stroke range is -5° to 5°. The remaining intervals are buffer zones. The narrower the position recognition interval is adjusted and the wider the buffer area, the stronger the anti-interference performance. But the requirements for the structure in place will also be higher. Therefore, in the design, it is necessary to combine the actual reachable range of the structure with the calculation and actual measurement of the interference degree to obtain the optimal compatible design for both.
本申请实施例还提供一种电子设备,请参阅图21,图21是本申请电子设备一实施例的整体结构示意图;需要说明的是,本申请实施例中的电子设备可以包括手机、平板电脑、笔记本电脑、可穿戴设备等任何具有按键的电子设备。其中,本实施例图示以手机为例进行说明。可选地,本申请实施例中的电子设备包括显示屏20a、控制电路板30a以及壳体10a以及按键组件40a;其中,显示屏20a与壳体10a配合形成容纳空间(图中未标示),控制电路板30a设于容纳空间内并与显示屏20a以及按键组件40a电连接。按键组件40a与壳体连接。控制电路板30a用于控制显示屏20a以及接收按键组件40a的触发信号。其中,关于按键组件40a的详细结构请参阅前述实施例的相关描述,此处亦不再赘述。An embodiment of the present application also provides an electronic device. Please refer to Figure 21. Figure 21 is a schematic diagram of the overall structure of an embodiment of the electronic device of the present application. It should be noted that the electronic device in the embodiment of the present application may include a mobile phone and a tablet computer. , laptops, wearable devices, and any other electronic device with buttons. In this embodiment, a mobile phone is used as an example for illustration. Optionally, the electronic device in the embodiment of the present application includes a display screen 20a, a control circuit board 30a, a housing 10a, and a key assembly 40a; wherein the display screen 20a cooperates with the housing 10a to form an accommodation space (not labeled in the figure), The control circuit board 30a is disposed in the accommodation space and is electrically connected to the display screen 20a and the key assembly 40a. The key assembly 40a is connected to the housing. The control circuit board 30a is used to control the display screen 20a and receive trigger signals from the key assembly 40a. For the detailed structure of the key assembly 40a, please refer to the relevant descriptions of the foregoing embodiments and will not be described again here.
本申请实施例中提供的电子设备,相较于常规技术,通过设置可以检测多方向上磁场变化的霍尔元件,从常规技术 方案中的检测磁感应强度变为检测磁场方向,具有抗干扰能力强以及节省布局空间的特点。Compared with conventional technology, the electronic equipment provided in the embodiments of the present application is provided with a Hall element that can detect magnetic field changes in multiple directions. The detection of magnetic induction intensity in the scheme is changed to the detection of magnetic field direction, which has the characteristics of strong anti-interference ability and saving layout space.
另外,本申请实施例还提供一种电子设备的控制方法,请参阅图22,图22是本申请电子设备控制方法一实施例的流程示意图,该控制方法包括但不限于以下步骤。In addition, an embodiment of the present application also provides a method for controlling an electronic device. Please refer to FIG. 22 . FIG. 22 is a schematic flowchart of an embodiment of a method for controlling an electronic device of the present application. The control method includes but is not limited to the following steps.
步骤S100,设置按键组件中霍尔元件的角度阈值。Step S100: Set the angle threshold of the Hall element in the key assembly.
在该步骤中,具体请参阅图23,图23是设置按键组件霍尔元件的角度阈值一实施例的流程示意图,该过程包括如下步骤。In this step, please refer to FIG. 23 for details. FIG. 23 is a schematic flowchart of setting the angle threshold of the Hall element of the key assembly according to an embodiment. The process includes the following steps.
步骤S110,获取按键处于不同位置时的磁场角度值。Step S110: Obtain magnetic field angle values when the keys are at different positions.
步骤S120,对不同的磁场角度值设定对应的角度阈值。Step S120: Set corresponding angle thresholds for different magnetic field angle values.
步骤S130,记录并保存角度阈值与所在位置的对应关系。Step S130: Record and save the corresponding relationship between the angle threshold and the location.
本实施例中以三段式位置检测为例进行说明。其中,包括如下步骤:将按键拨动至上位置(也即第一位置);获取并记录该位置处的角度值,譬如10度;保存上位置角度值并设置第一角度阈值,譬如第一角度阈值可以设置为9-11度;将按键拨动至中位置(也即第二位置);,获取并记录该位置处的角度值,譬如90度;保存中位置角度值并设置第二角度阈值,譬如第二角度阈值可以设置为88-92度;将按键拨动至下位置(也即第三位置);获取并记录该位置处的角度值,譬如-10度;保存下位置角度值并设置第三角度阈值,譬如第三角度阈值可以设置为-9至-11度。In this embodiment, three-stage position detection is used as an example for explanation. Among them, the following steps are included: move the button to the upper position (that is, the first position); obtain and record the angle value at the position, such as 10 degrees; save the angle value of the upper position and set the first angle threshold, such as the first angle The threshold can be set to 9-11 degrees; move the button to the middle position (that is, the second position); obtain and record the angle value at that position, such as 90 degrees; save the middle position angle value and set the second angle threshold , for example, the second angle threshold can be set to 88-92 degrees; move the button to the lower position (that is, the third position); obtain and record the angle value at the position, such as -10 degrees; save the lower position angle value and Set a third angle threshold. For example, the third angle threshold can be set to -9 to -11 degrees.
请继续参阅图22,本申请实施例中的控制方法还包括步骤S200,检测当前的磁场角度值;该步骤中具体为根据霍尔元件检测到的感应磁场沿第一方向的强度值与沿第三方向的强度值之比的反正切值,确定所述当前的磁场角度值。具体的检测原理请参阅前述实施例的相关描述,此次不再赘述。Please continue to refer to Figure 22. The control method in the embodiment of the present application also includes step S200 of detecting the current magnetic field angle value; specifically, this step is based on the intensity value of the induced magnetic field along the first direction detected by the Hall element and the intensity value along the first direction. The arctangent value of the ratio of the intensity values in the three directions determines the current magnetic field angle value. For specific detection principles, please refer to the relevant descriptions of the foregoing embodiments, which will not be described again this time.
步骤S300,根据当前的磁场角度值与角度阈值的对应关系触发电子设备的相应功能。Step S300: Trigger the corresponding function of the electronic device according to the corresponding relationship between the current magnetic field angle value and the angle threshold.
请一并参阅图24,图24是本申请电子设备控制方法一具体实施例的流程示意图,该控制方法包括如下步骤。步骤S201,轮询获取当前磁场角度;步骤S202,判断角度值是否在上位置的角度阈值内,若是,则进入步骤S203,将手机设置为响铃状态;否则进入步骤S204,判断角度值是否在中位置的角度阈值内,若是,则进入步骤S205,将手机设置为振动状态;否则进入步骤S206,判断角度值是否在下位置的角度阈值内,若是,则进入步骤S207,将手机设置为静音状态,否则进入步骤S208,结束流程。其中,本实施例中仅以一种手机铃声状态为例进行说明。Please refer to FIG. 24 as well. FIG. 24 is a schematic flowchart of a specific embodiment of the electronic device control method of the present application. The control method includes the following steps. Step S201, polling to obtain the current magnetic field angle; Step S202, determine whether the angle value is within the angle threshold of the upper position, if so, proceed to step S203, set the mobile phone to the ringing state; otherwise, proceed to step S204, determine whether the angle value is within Within the angle threshold of the middle position, if so, proceed to step S205 and set the mobile phone to the vibrating state; otherwise, proceed to step S206 to determine whether the angle value is within the angle threshold of the lower position. If so, proceed to step S207 to set the mobile phone to the silent state. , otherwise go to step S208 and end the process. In this embodiment, only one cell phone ringtone state is taken as an example for description.
请参阅图25,图25是本申请提供的电子设备一实施例的示意框图,该电子设备80包括相互连接的处理器81和存储器82,存储器82用于存储程序数据,处理器81用于执行程序数据以实现如下的方法:Please refer to Figure 25. Figure 25 is a schematic block diagram of an embodiment of an electronic device provided by this application. The electronic device 80 includes a processor 81 and a memory 82 connected to each other. The memory 82 is used to store program data, and the processor 81 is used to execute Program data to implement the following methods:
设置按键组件霍尔元件的角度阈值;Set the angle threshold of the Hall element of the button component;
检测当前的磁场角度值;Detect the current magnetic field angle value;
根据所述当前的磁场角度值与所述角度阈值的对应关系触发电子设备的相应功能。The corresponding function of the electronic device is triggered according to the corresponding relationship between the current magnetic field angle value and the angle threshold.
参阅图26,图26是本申请实施例提供的计算机存储介质的结构示意框图,该计算机存储介质90中存储有程序数据91,该程序数据91在被处理器执行时,用以实现如下的方法:Referring to Figure 26, Figure 26 is a schematic structural block diagram of a computer storage medium provided by an embodiment of the present application. Program data 91 is stored in the computer storage medium 90. When executed by a processor, the program data 91 is used to implement the following methods. :
设置按键组件霍尔元件的角度阈值;Set the angle threshold of the Hall element of the button component;
检测当前的磁场角度值;Detect the current magnetic field angle value;
根据所述当前的磁场角度值与所述角度阈值的对应关系触发电子设备的相应功能。The corresponding function of the electronic device is triggered according to the corresponding relationship between the current magnetic field angle value and the angle threshold.
其中,关于上述各步骤的详细过程请参阅前述实施例的相关描述,此处亦不再详述。For detailed processes of each of the above steps, please refer to the relevant descriptions of the foregoing embodiments, which will not be described in detail here.
在本申请所提供的几个实施方式中,应该理解到,所揭露的方法以及设备,可以通过其它的方式实现。例如,以上所描述的设备实施方式仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。In the several embodiments provided in this application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device implementation described above is only illustrative. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods, for example, multiple units or components may be The combination can either be integrated into another system, or some features can be ignored, or not implemented.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施方式方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of this embodiment.
另外,在本申请各个实施方式中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above integrated units can be implemented in the form of hardware or software functional units.
上述其他实施方式中的集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本申请各个实施方式所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated units in the above other embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or contributes to the existing technology, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to cause a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the method described in each embodiment of the application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program code. .
常规技术中,也有利用磁铁与霍尔元件配合做三段式开关定位的结构方案,一般的结构为单磁铁对单霍尔或者单磁铁对双霍尔的结构形式。其中,单磁铁对单霍尔主要也是以磁场变化来检测开关所在不同位置。要求在于,磁铁需要与霍尔器件足够近,以此满足对外抗干扰的要求。当结构受限时,磁铁无法满足与霍尔的位置要求时,该方案存在易受扰的缺点。单磁铁对双霍尔的结构方案中,磁铁移动时,在两个霍尔产生磁场变化,根据两个霍尔检测到的变化,判断磁铁移动的位置。该方案缺点为,虽然两个霍尔可以做差,但抗干扰性依旧不强。mT级的干扰即可产生扰动,且该方案需要复杂的算法和用户端自校准过程,对算力要求高且可靠性差。In conventional technology, there are also structural solutions that use magnets and Hall elements to coordinate three-stage switch positioning. The general structure is a single magnet pairing a single Hall or a single magnet pairing a double Hall structure. Among them, a single magnet and a single Hall mainly use magnetic field changes to detect different positions of the switch. The requirement is that the magnet needs to be close enough to the Hall device to meet the external anti-interference requirements. When the structure is limited and the magnet cannot meet the position requirements with the Hall, this solution has the disadvantage of being easily disturbed. In the structural scheme of a single magnet versus dual Halls, when the magnet moves, magnetic field changes occur in the two Halls. Based on the changes detected by the two Halls, the position of the magnet movement is determined. The disadvantage of this solution is that although the difference between the two Halls can be made, the anti-interference performance is still not strong. Interference at the mT level can cause disturbances, and this solution requires complex algorithms and user-end self-calibration processes, which requires high computing power and poor reliability.
有鉴于上述问题,本申请实施例还提供了一种按键组件,其中,本实施例中的按键组件与前述实施例中按键组件的相同部分特征此处不再赘述,本实施例中重点介绍不同部分的特征。In view of the above problems, an embodiment of the present application also provides a key assembly. Some of the same features of the key assembly in this embodiment and the key assembly in the previous embodiment will not be described again here. In this embodiment, the differences will be highlighted. part characteristics.
本实施例中的按键组件,通过在可滑动的按键上设计两个并排设置且充磁方向相反的磁性件,与一个霍尔元件进行磁场感应,霍尔元件通过感测磁场的变化实现对按键位置的检测,具有位置检测准确且抗干扰能力强的特点。The key assembly in this embodiment is designed with two magnetic parts arranged side by side and with opposite magnetization directions on the sliding key, and performs magnetic field induction with a Hall element. The Hall element realizes the key sensing by sensing changes in the magnetic field. Position detection has the characteristics of accurate position detection and strong anti-interference ability.
以上所述仅为本申请的部分实施例,并非因此限制本申请的保护范围,凡是利用本申请说明书及附图内容所作的等效装置或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。 The above are only some of the embodiments of the present application, and are not intended to limit the scope of protection of the present application. Any equivalent device or equivalent process transformation made using the contents of the description and drawings of the present application, or directly or indirectly used in other related The technical fields are all equally included in the scope of patent protection of this application.

Claims (20)

  1. 一种按键组件,其特征在于,所述按键组件包括:按键、磁性件、固定件以及霍尔元件;所述磁性件与所述按键固定连接,所述霍尔元件固设于所述固定件;所述按键可带动所述磁性件相对于所述霍尔元件沿第一方向移动,进而改变所述磁性件与所述霍尔元件之间的感应磁场;其中,所述磁性件的充磁方向与所述第一方向平行或者所述磁性件包括充磁方向相反的第一磁性件和第二磁性件,所述霍尔元件至少可以检测两个方向上的磁场变化。A key assembly, characterized in that the key assembly includes: a key, a magnetic part, a fixing part and a Hall element; the magnetic part is fixedly connected to the key, and the Hall element is fixed on the fixing part ; The button can drive the magnetic component to move in the first direction relative to the Hall element, thereby changing the induced magnetic field between the magnetic component and the Hall element; wherein, the magnetization of the magnetic component The direction is parallel to the first direction or the magnetic component includes a first magnetic component and a second magnetic component with opposite magnetization directions. The Hall element can detect changes in the magnetic field in at least two directions.
  2. 根据权利要求1所述的按键组件,其特征在于,所述霍尔元件为三轴霍尔元件,能够检测所述感应磁场沿所述第一方向、第二方向和第三方向的分量,其中所述第二方向和所述第三方向均垂直于所述第一方向,且所述第二方向垂直于所述第三方向,所述霍尔元件与所述磁性件沿所述第三方向间隔设置。The key assembly according to claim 1, wherein the Hall element is a three-axis Hall element capable of detecting components of the induced magnetic field along the first direction, the second direction and the third direction, wherein The second direction and the third direction are both perpendicular to the first direction, and the second direction is perpendicular to the third direction. The Hall element and the magnetic component are along the third direction. Interval settings.
  3. 根据权利要求2所述的按键组件,其特征在于,所述磁性件的充磁方向与所述第一方向平行;在所述按键的行程范围内,所述霍尔元件检测到的所述感应磁场沿所述第一方向的强度值与沿所述第三方向的强度值之比的反正切值与所述磁性件相对于所述霍尔元件的位置呈一一对应关系。The key assembly according to claim 2, wherein the magnetizing direction of the magnetic component is parallel to the first direction; within the stroke range of the key, the induction detected by the Hall element The arctangent value of the ratio of the intensity value of the magnetic field along the first direction to the intensity value along the third direction has a one-to-one correspondence with the position of the magnetic component relative to the Hall element.
  4. 根据权利要求1所述的按键组件,其特征在于,所述磁性件包括充磁方向相反的第一磁性件和第二磁性件,所述第一磁性件和所述第二磁性件沿所述第一方向并排设置,且所述第一磁性件和所述第二磁性件的磁极方向均朝向所述霍尔元件。The key assembly according to claim 1, wherein the magnetic component includes a first magnetic component and a second magnetic component with opposite magnetization directions, and the first magnetic component and the second magnetic component are along the The first directions are arranged side by side, and the magnetic pole directions of the first magnetic component and the second magnetic component are both facing the Hall element.
  5. 根据权利要求4所述的按键组件,其特征在于,所述第一磁性件和所述第二磁性件沿所述第一方向并排抵接设置,所述第一磁性件和所述第二磁性件沿所述第一方向的总宽度为所述按键的移动距离的两倍。The key assembly according to claim 4, wherein the first magnetic component and the second magnetic component are arranged side by side and abutting along the first direction, and the first magnetic component and the second magnetic component The total width of the member along the first direction is twice the moving distance of the key.
  6. 根据权利要求5所述的按键组件,其特征在于,所述第一磁性件的充磁方向垂直于所述第一方向;所述第一磁性件沿所述第一方向的宽度与所述第二磁性件沿所述第一方向的宽度相同。The key assembly according to claim 5, wherein the magnetizing direction of the first magnetic member is perpendicular to the first direction; the width of the first magnetic member along the first direction is consistent with the width of the first magnetic member. The two magnetic parts have the same width along the first direction.
  7. 根据权利要求5所述的按键组件,其特征在于,所述霍尔元件与所述磁性件朝向所述霍尔元件的表面之间的距离为0.5-2mm;所述第一磁性件或所述第二磁性件沿所述第一方向的宽度为1-5mm。The key assembly according to claim 5, wherein the distance between the Hall element and the surface of the magnetic part facing the Hall element is 0.5-2mm; the first magnetic part or the The width of the second magnetic component along the first direction is 1-5 mm.
  8. 根据权利要求1至7中任一项所述的按键组件,其特征在于,所述霍尔元件用于对所述磁性件在三个位置点进行检测,所述三个位置点分别位于所述按键的行程范围的两端和中点;所述霍尔元件的检测中心对应于所述按键的行程范围的中点。The key assembly according to any one of claims 1 to 7, characterized in that the Hall element is used to detect the magnetic member at three position points, and the three position points are respectively located on the Both ends and the midpoint of the travel range of the key; the detection center of the Hall element corresponds to the midpoint of the travel range of the key.
  9. 根据权利要求8所述的按键组件,其特征在于,在所述按键从行程范围的一端移动到另一端的过程中,所述霍尔元件检测到所述第一磁性件和所述第二磁性件的磁场角度从-90°变化至90°,其中,两端的磁场角度分别为-90°和90度,中点的磁场角度为零;所述行程范围一端的位置识别区角度范围为-90°至-70°,所述行程范围另一端的位置识别区角度范围为70°至90°,所述行程范围中点的位置识别区角度范围为-10°至10°。The key assembly according to claim 8, characterized in that, during the movement of the key from one end of the stroke range to the other end, the Hall element detects the first magnetic component and the second magnetic component. The magnetic field angle of the part changes from -90° to 90°, where the magnetic field angles at both ends are -90° and 90 degrees respectively, and the magnetic field angle at the midpoint is zero; the angle range of the position identification area at one end of the travel range is -90 ° to -70°, the angle range of the position identification zone at the other end of the stroke range is 70° to 90°, and the angle range of the position identification zone at the midpoint of the stroke range is -10° to 10°.
  10. 根据权利要求9所述的按键组件,其特征在于,所述行程范围一端的位置识别区角度范围为-90°至-80°,所述行程范围另一端的位置识别区角度范围为80°至90°,所述行程范围中点的位置识别区角度范围为-5°至5°。The key assembly according to claim 9, wherein the angle range of the position identification area at one end of the stroke range is from -90° to -80°, and the angle range of the position identification area at the other end of the stroke range is from 80° to 90°, and the angle range of the position identification area at the midpoint of the stroke range is -5° to 5°.
  11. 根据权利要求1至7中任一项所述的按键组件,其特征在于,所述磁性件的非对应所述霍尔元件的侧面设有隔磁材料层。The key assembly according to any one of claims 1 to 7, characterized in that a magnetic isolation material layer is provided on the side of the magnetic component that does not correspond to the Hall element.
  12. 根据权利要求1至7中任一项所述的按键组件,其特征在于,所述按键包括沿所述第一方向排列的多个定位槽;所述按键组件还包括定位件,所述定位件的一端与所述固定件连接,另一端用于与所述定位槽配合;当所述按键相对于所述霍尔元件移动时,所述定位件通过与不同的定位槽配合,实现对所述按键的不同位置定位。The key assembly according to any one of claims 1 to 7, wherein the key includes a plurality of positioning grooves arranged along the first direction; the key assembly further includes a positioning member, and the positioning member One end is connected to the fixed part, and the other end is used to cooperate with the positioning groove; when the button moves relative to the Hall element, the positioning part cooperates with different positioning grooves to realize the positioning of the Different positioning of keys.
  13. 一种电子设备,其特征在于,所述电子设备包括壳体、控制电路板以及权利要求1-12任一项所述的按键组件;所述按键组件中的固定件与所述壳体固定连接,所述控制电路板与所述按键组件中的霍尔元件电连接。An electronic device, characterized in that the electronic device includes a housing, a control circuit board and a key assembly according to any one of claims 1 to 12; the fixing member in the key assembly is fixedly connected to the housing. , the control circuit board is electrically connected to the Hall element in the key assembly.
  14. 根据权利要求13所述的电子设备,其特征在于,所述按键组件为权利要求3所述的按键组件;所述控制电路板被配置成:The electronic device according to claim 13, wherein the key assembly is the key assembly of claim 3; and the control circuit board is configured to:
    根据所述霍尔元件检测到的所述感应磁场沿所述第一方向的分量与沿所述第三方向的分量之比的反正切值,确定所述按键相对于所述固定件的位置。The position of the key relative to the fixing member is determined based on the arc tangent value of the ratio of the component of the induced magnetic field along the first direction and the component along the third direction detected by the Hall element.
  15. 根据权利要求13所述的电子设备,其特征在于,所述按键组件为权利要求4-7任一项所述的按键组件;所述控制电路板被配置成:The electronic device according to claim 13, characterized in that the key assembly is the key assembly according to any one of claims 4 to 7; the control circuit board is configured to:
    根据所述霍尔元件检测到的所述感应磁场沿所述第二方向的分量与沿所述第三方向的分量之比的反正切值,确定所述按键相对于所述固定件的位置。The position of the key relative to the fixing member is determined based on the arc tangent value of the ratio of the component of the induced magnetic field along the second direction and the component along the third direction detected by the Hall element.
  16. 一种基于权利要求13所述电子设备的控制方法,其特征在于,所述控制方法包括:A control method based on the electronic device of claim 13, characterized in that the control method includes:
    设置所述按键组件中霍尔元件的角度阈值;Set the angle threshold of the Hall element in the key assembly;
    检测当前的磁场角度值;Detect the current magnetic field angle value;
    根据所述当前的磁场角度值与所述角度阈值的对应关系触发电子设备的相应功能。The corresponding function of the electronic device is triggered according to the corresponding relationship between the current magnetic field angle value and the angle threshold.
  17. 根据权利要求16所述的控制方法,其特征在于,所述设置所述按键组件中霍尔元件的角度阈值的步骤包括:The control method according to claim 16, wherein the step of setting the angle threshold of the Hall element in the key assembly includes:
    获取所述按键处于不同位置时的磁场角度值,对不同的磁场角度值设定对应的角度阈值,记录并保存角度阈值与所在位置的对应关系。Obtain the magnetic field angle values when the button is in different positions, set corresponding angle thresholds for different magnetic field angle values, and record and save the corresponding relationship between the angle thresholds and the positions.
  18. 根据权利要求16所述的控制方法,其特征在于,所述设置所述按键组件中霍尔元件的角度阈值的步骤包括:将按键拨动至第一位置,获取并记录第一位置处的磁场角度值,保存第一位置处的磁场角度值并设置第一角度阈值;将按键拨动至第二位置,获取并记录第二位置处的磁场角度值,保存第二位置处的磁场角度值并设置第二角度阈值;将按键拨动至第三位置,获取并记录第三位置处的磁场角度值,保存第三位置处的磁场角度值并设置第三角度阈值。The control method according to claim 16, wherein the step of setting the angle threshold of the Hall element in the key assembly includes: moving the key to the first position, acquiring and recording the magnetic field at the first position. Angle value, save the magnetic field angle value at the first position and set the first angle threshold; move the button to the second position, obtain and record the magnetic field angle value at the second position, save the magnetic field angle value at the second position and Set the second angle threshold; move the button to the third position, obtain and record the magnetic field angle value at the third position, save the magnetic field angle value at the third position and set the third angle threshold.
  19. 根据权利要求18所述的控制方法,其特征在于,当所述按键位于所述第一位置时,所述电子设备处于响铃模式;当所述按键位于所述第二位置时,所述电子设备处于震动模式;当所述按键位于所述第三位置时,所述电子设备处于静音模式。The control method according to claim 18, characterized in that when the button is located at the first position, the electronic device is in ringing mode; when the button is located at the second position, the electronic device The device is in vibration mode; when the button is in the third position, the electronic device is in silent mode.
  20. 一种计算机存储介质,其特征在于,所述计算机存储介质中存储有程序数据,所述程序数据在被所述处理器执行时,用以实现如权利要求16-19任一项所述的控制方法。 A computer storage medium, characterized in that the computer storage medium stores program data, and when the program data is executed by the processor, the program data is used to implement the control as claimed in any one of claims 16-19 method.
PCT/CN2023/099707 2022-08-25 2023-06-12 Press key assembly, electronic device, control method, and computer storage medium WO2024041111A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN202211028245.6A CN117674806A (en) 2022-08-25 2022-08-25 Key assembly, electronic device, control method, and computer storage medium
CN202211028245.6 2022-08-25
CN202211029744.7 2022-08-25
CN202211029744.7A CN117674811A (en) 2022-08-25 2022-08-25 Electronic equipment and key assembly thereof

Publications (1)

Publication Number Publication Date
WO2024041111A1 true WO2024041111A1 (en) 2024-02-29

Family

ID=90012352

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/099707 WO2024041111A1 (en) 2022-08-25 2023-06-12 Press key assembly, electronic device, control method, and computer storage medium

Country Status (1)

Country Link
WO (1) WO2024041111A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005354420A (en) * 2004-06-10 2005-12-22 Samsung Electro Mech Co Ltd Automatic slide type mobile communication terminal machine, automatic driving method for the same, and method for sensing incoming signal
CN209031949U (en) * 2018-08-10 2019-06-28 佛山市顺德区美的电热电器制造有限公司 The operating assembly and cooking apparatus of cooking apparatus
CN113948330A (en) * 2020-07-16 2022-01-18 深圳市万普拉斯科技有限公司 Key structure and electronic equipment
CN216145533U (en) * 2021-08-04 2022-03-29 Oppo广东移动通信有限公司 Electronic equipment, casing subassembly and button subassembly
CN216599699U (en) * 2022-01-06 2022-05-24 维沃移动通信有限公司 Electronic device and electronic device assembly
CN114780007A (en) * 2022-04-12 2022-07-22 Oppo广东移动通信有限公司 Control key adjusting method, electronic device and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005354420A (en) * 2004-06-10 2005-12-22 Samsung Electro Mech Co Ltd Automatic slide type mobile communication terminal machine, automatic driving method for the same, and method for sensing incoming signal
CN209031949U (en) * 2018-08-10 2019-06-28 佛山市顺德区美的电热电器制造有限公司 The operating assembly and cooking apparatus of cooking apparatus
CN113948330A (en) * 2020-07-16 2022-01-18 深圳市万普拉斯科技有限公司 Key structure and electronic equipment
CN216145533U (en) * 2021-08-04 2022-03-29 Oppo广东移动通信有限公司 Electronic equipment, casing subassembly and button subassembly
CN216599699U (en) * 2022-01-06 2022-05-24 维沃移动通信有限公司 Electronic device and electronic device assembly
CN114780007A (en) * 2022-04-12 2022-07-22 Oppo广东移动通信有限公司 Control key adjusting method, electronic device and storage medium

Similar Documents

Publication Publication Date Title
US8963845B2 (en) Mobile device with temperature sensing capability and method of operating same
US8531827B2 (en) Electronic device and keyboard module thereof
US7821500B2 (en) Inductive joystick
US20110022350A1 (en) System for Detecting Orientation of Magnetically Coupled Devices
WO2020238452A1 (en) Hinge, electronic device and folding angle determining method
KR20130066880A (en) Detecting system for connecting of earphone and electric device supporting the same
WO2005122537A1 (en) Electronic apparatus and method of detecting housing direction
CN216145533U (en) Electronic equipment, casing subassembly and button subassembly
WO2024041111A1 (en) Press key assembly, electronic device, control method, and computer storage medium
JPWO2007094333A1 (en) Sound equipment
WO2024041144A1 (en) Non-contact switch and electronic device
JP2023515039A (en) Electronic device and control method
US9513616B2 (en) System and method for controlling functions on electronic devices
WO2019201217A1 (en) Electronic device
CN107908224B (en) Shell assembly of electronic equipment and electronic equipment
CN107864258B (en) Shell assembly of electronic equipment and electronic equipment
CN108259647B (en) Light sensor assembly and electronic device with same
CN116156373B (en) earphone
CN214044000U (en) Antenna assembly and electronic equipment
CN117674806A (en) Key assembly, electronic device, control method, and computer storage medium
CA2751830C (en) System and method for controlling functions on electronic devices
CN117674811A (en) Electronic equipment and key assembly thereof
JP2015100096A (en) Earphone
TW201834523A (en) Shell assembly, electronic device and mobile phone having same
CN111986943B (en) Key device and terminal equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23856203

Country of ref document: EP

Kind code of ref document: A1