Electronic device

By using a combination of key bodies, reflective structures and ultrasonic devices in electronic devices, the problem of insufficient side bond detection accuracy in the prior art is solved, and sensitive detection and precise control of key bodies movement is achieved, thereby avoiding external magnetic field interference.

CN119484684APending Publication Date: 2025-02-18GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311010341.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-11
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

In existing electronic devices, the detection accuracy of side keys is insufficient because the magnetic field is easily disturbed by other magnetic components.

Method used

Using a combination of a key body, a reflective structure and an ultrasonic device, the motion of the key body is detected by transmitting and receiving ultrasonic waves. The processor controls the electronic device to perform preset operations based on the received ultrasonic information.

Benefits of technology

It realizes sensitive detection and precise control of key body movement, avoids external magnetic field interference, and improves the operating accuracy of electronic devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119484684A_ABST
    Figure CN119484684A_ABST
Patent Text Reader

Abstract

The invention provides electronic equipment. The electronic equipment comprises an equipment body; the functional assembly comprises a key body, a reflection structure and an ultrasonic device, the key body is movably connected to the equipment body and can move in the preset direction, and the ultrasonic device is used for emitting ultrasonic waves to the reflection structure and receiving the ultrasonic waves reflected by the reflection structure; when the key body moves along the preset direction, the ultrasonic information received by the ultrasonic device is changed; and the processor is used for controlling the electronic equipment to execute preset operation according to the ultrasonic information received by the ultrasonic device. The key body of the electronic equipment provided by the invention is not interfered by an external magnetic field when realizing functions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of key detection, and in particular to an electronic device. Background Art

[0002] Electronic devices such as mobile phones are usually equipped with side keys, which can be pressed or toggled to make the electronic device perform corresponding operations. For example, when the side key is toggled, it triggers the camera to turn on or off. In the related art, the movement of the side key is detected by a magnetic field. However, the magnetic field is easily interfered by other magnetic components in the electronic device, resulting in insufficient detection accuracy. Summary of the invention

[0003] The present application provides an electronic device whose key functions are not interfered by external magnetic fields.

[0004] In a first aspect, the present application provides an electronic device, the electronic device comprising:

[0005] Equipment body;

[0006] A functional component, the functional component comprising a key body, a reflective structure, and an ultrasonic device, wherein the key body is movably connected to the device body and can move along a preset direction, the ultrasonic device is used to emit ultrasonic waves to the reflective structure and receive ultrasonic waves reflected by the reflective structure, and when the key body moves along the preset direction, the ultrasonic information received by the ultrasonic device changes; and

[0007] A processor is used to control the electronic device to perform a preset operation according to the ultrasonic information received by the ultrasonic device.

[0008] In a second aspect, the present application further provides an electronic device, the electronic device comprising:

[0009] A device body, wherein the device body has a preset area;

[0010] an ultrasonic device, the ultrasonic device being disposed in the device body and facing the preset area, the ultrasonic device being used to emit ultrasonic waves to a target object facing the preset area, and to receive ultrasonic waves reflected back by the target object, so as to form a plurality of images of the target object; and

[0011] A processor is used to compare multiple images formed by the ultrasonic device to determine whether the target object moves along a preset direction, and if it is determined that the target object moves along the preset direction, control the electronic device to perform a preset operation.

[0012] In the electronic device provided in the application, the functional components are composed of a key body, a reflective structure, and an ultrasonic device, wherein the key body can move in a preset direction, the ultrasonic device can emit ultrasonic waves, and the reflective structure can reflect the ultrasonic waves emitted by the ultrasonic device, so that the ultrasonic device receives ultrasonic waves. When the key body moves in a preset direction, the ultrasonic information received by the ultrasonic device can be changed. In this way, the processor can obtain the current position of the key body based on the ultrasonic information, and further control the electronic device to perform a preset operation. It can be understood that the above process will not be interfered by the outside world (such as a magnetic field). Compared with the related art, when the key body moves, the corresponding preset operation can be triggered more sensitively. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the implementation will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0014] Figure 1 A schematic diagram of an electronic device provided in accordance with an embodiment of the present application.

[0015] Figure 2 for Figure 1 A schematic diagram of the electronic device shown in another perspective.

[0016] Figure 3 A schematic diagram of an electronic device provided in an embodiment of the present application.

[0017] Figure 4 for Figure 3 Schematic diagram of the key body in different positions in the electronic device shown.

[0018] Figure 5 A schematic diagram of another electronic device provided in an embodiment of the present application.

[0019] Figure 6 A schematic diagram of another electronic device provided in an embodiment of the present application.

[0020] Figure 7 for Figure 6 Schematic diagram of the key body in different positions in the electronic device shown.

[0021] Figure 8 A schematic diagram of another electronic device provided in an embodiment of the present application.

[0022] Fig. 9 A schematic diagram of another electronic device provided in an embodiment of the present application.

[0023] Fig.10 for Fig. 9 Schematic diagram of the key body in different positions in the electronic device shown.

[0024] Fig.11 A schematic diagram of another electronic device provided in an embodiment of the present application.

[0025] Fig.12 A schematic diagram of another electronic device provided in an embodiment of the present application.

[0026] Fig.13 This is a diagram of the electrical connection relationship between the processor and the detector provided in the embodiment of the present application.

[0027] Fig.14 A schematic diagram of another electronic device provided in an embodiment of the present application.

[0028] Description of reference numerals:

[0029] Electronic device-100; device body-10; functional component-20; processor-30; display screen-110; middle frame-120; battery cover-130; preset area-Y; key body-210; reflection structure-220; ultrasonic device-230; detector-240; substructure-221; first substructure-2211; second substructure-2212; first position-Z1; second position-Z2; third position-Z3; preset direction-X; subdevice-231; first subdevice-2311; second subdevice-2312; third subdevice-2313. DETAILED DESCRIPTION

[0030] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0031] Reference to "embodiment" or "implementation" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiment or implementation may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0032] In the related art, the side key of the electronic device controls the electronic device to perform corresponding operations by changing the magnetic field. Specifically, a magnet is arranged on the side key, and the magnet can move with the side key. The electronic device is provided with a Hall element near the side key, and the Hall element is independent of the side key and will not move with the side key. When the side key moves, the magnet moves relative to the Hall element, and the Hall element can detect the change of the magnetic field of the magnet. According to the measurement result of the magnetic field by the Hall element, the processor controls the electronic device to perform the corresponding preset operation. In other words, when the side key moves to different positions, the Hall element will measure different magnetic field results, thereby determining the current position of the side key, and the electronic device will perform the preset operation corresponding to the current position of the side key according to the magnetic field result. However, there are other magnetic elements in the electronic device, such as cameras, etc. These magnetic elements will interfere with the measurement of the magnetic field by the Hall element, which may eventually cause the electronic device to fail to accurately perform the corresponding function.

[0033] Based on this, the present application hopes to provide a solution that can solve but is not limited to the above-mentioned technical problems, the details of which will be explained in the subsequent embodiments.

[0034] Please refer to Figures 1 to 3 It should be noted that in the relevant drawings of the present application, the dotted arrow represents the direction of ultrasonic wave propagation. The present application provides an electronic device 100, which can be a mobile phone, a tablet computer, a laptop computer, a camera device, an ultra-mobile personal computer (UMPC), a wearable device (such as a smart watch, VR device, etc.), a television, a vehicle-mounted device, an e-reader, and the like. It should be noted that the embodiments of the present application are only exemplified by taking the electronic device 100 as a mobile phone, but this should not be regarded as a limitation on the present application.

[0035] The electronic device 100 includes: a device body 10, a functional component 20, and a processor 30. The functional component 20 includes a key body 210, a reflective structure 220, and an ultrasonic device 230. The key body 210 is movably connected to the device body 10 and can move along a preset direction X. The ultrasonic device 230 is used to emit ultrasonic waves to the reflective structure 220 and receive ultrasonic waves reflected back by the reflective structure 220. When the key body 210 moves along the preset direction X, the ultrasonic information received by the ultrasonic device 230 changes. The processor 30 is used to control the electronic device 100 to perform a preset operation according to the ultrasonic information received by the ultrasonic device 230.

[0036] Specifically, the device body 10 refers to the main part of the electronic device 100, which includes electronic components that realize the main functions of the electronic device 100 and a housing that protects and carries these electronic components. Optionally, the device body 10 includes a display screen 110, a middle frame 120, and a battery cover 130, and the display screen 110 and the battery cover 130 are both connected to the middle frame 120 and are arranged on opposite sides of the middle frame 120.

[0037] The key body 210 is movably arranged on the device body 10 and at least partially exposed outside the device body 10. Optionally, the key body 210 protrudes from the device body 10, so that the user can drive the key body 210 to move. The form in which the user drives the key body 210 to move can be called dialing, pushing, pressing, etc. The general shape of the key body 210 can be, but is not limited to, a long strip, a cylinder, etc.

[0038] According to actual needs, the key body 210 can be set on any side of the electronic device 100. Taking a mobile phone as an example, the key body 210 can be set on the front, back, and side of the mobile phone. Among them, the so-called front refers to the side of the mobile phone with a display screen 110; the so-called back refers to the side of the mobile phone with a battery cover 130; the so-called side refers to the circumferential side of the middle frame 120 of the mobile phone. When the key body 210 is set on the side of the mobile phone, the key body 210 can also be called a side key. It can be understood that the definition of the front, back, side, etc. of the electronic device 100 may be different for different types, and other types of electronic devices 100 are not described in detail here.

[0039] The reflective structure 220 is used to reflect the ultrasonic wave emitted by the ultrasonic device 230. The surface of the reflective structure 220 facing the ultrasonic device 230 (hereinafter referred to as the reflective surface) can be a plane, and the propagation direction of the ultrasonic wave is perpendicular to the reflective surface. In this way, the reflected ultrasonic wave can return along the original path and be accurately received by the ultrasonic device 230.

[0040] The processor 30 is arranged in the device body 10. For example, the processor 30 and the ultrasonic device 230 are electrically connected to the main board in the device body 10, and the processor 30 and the ultrasonic device 230 are electrically connected through the main board. The processor 30 can be a part of the device body 10 or a part of the functional component 20. When the key body 210 moves along the preset direction X, the ultrasonic information received by the ultrasonic device 230 will change. The processor 30 then obtains the current position of the key body 210 according to the ultrasonic information and controls the electronic device 100 to perform the preset operation. That is, the key body 210 moves to the set position, and the electronic device 100 performs the preset operation corresponding to the position. Optionally, when the key body 210 reaches the set position, the key body 210 remains stably at the position. It should be noted that the key body 210 can move to N positions along the preset direction, and N can be 2, 3, 4, 5, etc. The relevant embodiments of the present application are only exemplified by N being 2 or 3.

[0041] The so-called preset operation is the application scenario of the key body 210. The preset operation can be, but is not limited to, setting the electronic device 100 to a state mode such as mute, vibration, or ringing, or triggering the camera to turn on or off, or to lock the screen, unlock, and other functions. The preset operation can be built-in when the electronic device 100 leaves the factory, or it can be defined by the user. The application scenario of the key body 210 can be set according to actual conditions, and will not be listed here one by one.

[0042] by Figure 4 For example, the key body 210 can move to three positions along the preset direction X, namely, the first position Z1, the second position Z2, and the third position Z3. The preset operation includes three modes, namely, the first mode (such as silent mode), the second mode (such as vibration mode), and the third mode (such as ringing mode). When the user moves the key body 210 to the first position Z1, the ultrasonic device 230 generates a first signal, and the processor 30 controls the electronic device 100 to adjust to the silent mode according to the first signal; when the user moves the key body 210 to the second position Z2, the ultrasonic device 230 generates a second signal, and the processor 30 controls the electronic device 100 to adjust to the vibration mode according to the second signal; when the user moves the key body 210 to the third position Z3, the ultrasonic device 230 generates a third signal, and the processor 30 controls the electronic device 100 to adjust to the ringing mode according to the third signal.

[0043] The following describes how the key body 210 changes the ultrasonic information received by the ultrasonic device 230 during the movement process with reference to the accompanying drawings.

[0044] Please refer to Figure 4 and Figure 5In one embodiment, the arrangement direction of the reflective structure 220 and the ultrasonic device 230 is parallel to the preset direction X, or in other words, the propagation direction of the ultrasonic wave is parallel to the preset direction X. In this embodiment, when the reflective structure 220 and the ultrasonic device 230 move relative to each other, the distance between the two will increase or decrease, and the ultrasonic device 230 can determine the current location of the key body 210 according to the duration of the ultrasonic wave in the entire propagation process, that is, the distance between the reflective structure 220 and the ultrasonic device 230 is different, and the propagation duration of the ultrasonic wave (the propagation duration is the duration of the ultrasonic device 230 sending the ultrasonic wave to the reflective structure 220 and receiving the ultrasonic wave reflected by the reflective structure 220) is different, and the ultrasonic device 230 and the processor 30 can further determine the position of the key body 210 according to the variable of the propagation duration. Two feasible implementation methods are specifically introduced below.

[0045] Please refer to Figure 4 In one embodiment, the reflective structure 220 is connected to the key body 210, and the ultrasonic device 230 is fixedly disposed in the device body 10. When the reflective structure 220 follows the key body 210 to move along the preset direction X, the facing distance between the reflective structure 220 and the ultrasonic device 230 changes, so that the ultrasonic information received by the ultrasonic device 230 changes.

[0046] In this embodiment, the reflective structure 220 is fixed to the key body 210, and the two move synchronously. The connection between the reflective structure 220 and the key body 210 can be a detachable connection, such as a snap connection, or a non-detachable connection, such as a bonding. Of course, in other embodiments, the reflective structure 220 can also be a part of the key body 210, that is, the reflective structure 220 and the key body 210 are essentially the same part and are an integrated structure. When the reflective structure 220 moves in a direction close to the ultrasonic device 230, the propagation time of the ultrasonic wave gradually decreases, and when the reflective structure 220 moves in a direction away from the ultrasonic device 230, the propagation time of the ultrasonic wave gradually increases.

[0047] Please refer to Figure 5 In another embodiment, the ultrasonic device 230 is connected to the key body 210, and the reflector is fixedly disposed in the device body 10. When the ultrasonic device 230 moves along the preset direction X following the key body 210, the facing distance between the reflective structure 220 and the ultrasonic device 230 changes, so that the ultrasonic information received by the ultrasonic device 230 changes.

[0048] In this embodiment, the ultrasonic device 230 is fixed to the key body 210, and the two move synchronously. The connection between the ultrasonic device 230 and the key body 210 can be a detachable connection, such as a snap connection, or a non-detachable connection, such as a bonding connection. When the ultrasonic device 230 moves in a direction close to the reflective structure 220, the propagation time of the ultrasonic wave gradually decreases, and when the ultrasonic device 230 moves in a direction away from the reflective structure 220, the propagation time of the ultrasonic wave gradually increases.

[0049] by Figure 4 For example, when the user moves the key body 210 to the first position Z1, the facing distance between the reflective structure 220 and the ultrasonic device 230 is a first distance, the propagation time of the ultrasonic wave is a first time, the ultrasonic device 230 generates a first signal according to the first time, and the processor 30 controls the electronic device 100 to adjust to the silent mode according to the first signal; when the user moves the key body 210 to the second position Z2, the facing distance between the reflective structure 220 and the ultrasonic device 230 is a second distance, the propagation time of the ultrasonic wave is a second time, the ultrasonic device 230 generates a second signal according to the second time, and the processor 30 controls the electronic device 100 to adjust to the vibration mode according to the second signal; when the user moves the key body 210 to the third position Z3, the facing distance between the reflective structure 220 and the ultrasonic device 230 is a third distance, the propagation time of the ultrasonic wave is a third time, the ultrasonic device 230 generates a third signal according to the third time, and the processor 30 controls the electronic device 100 to adjust to the ringing mode according to the third signal. Among them, the first distance is greater than the second distance, the second distance is greater than the third distance, the first duration is greater than the second duration, and the second duration is greater than the third duration.

[0050] Please refer to Figures 6 to 11 In the second embodiment, the arrangement direction of the reflective structure 220 and the ultrasonic device 230 intersects with the preset direction X, or in other words, the propagation direction of the ultrasonic wave intersects with the preset direction X, and the angle formed by the intersection can be but is not limited to 90°. Four feasible implementations are specifically introduced below.

[0051] Please refer to Figure 6In one embodiment, the reflection structure 220 includes a plurality of (greater than or equal to two) substructures 221, and different substructures 221 have different facing distances from the ultrasonic device 230. The reflection structure 220 is connected to the key body 210, and the ultrasonic device 230 is fixed in the device body 10. When the reflection structure 220 moves along the preset direction X following the key body 210, the plurality of substructures 221 switch with each other to face the ultrasonic device 230. The substructure 221 facing the ultrasonic device 230 is a target structure, and the ultrasonic device 230 is used to send ultrasonic waves to the target structure and receive ultrasonic waves reflected back by the target structure.

[0052] Specifically, the multiple substructures 221 can be an integrated structure, that is, they are manufactured in one piece. The multiple substructures 221 can also be a split structure, that is, they are manufactured independently and then directly or indirectly connected together. It should be noted that in some embodiments, the substructures 221 can be spaced apart or in contact with each other. The number of substructures 221 can be 2, 3, 4, 5, etc., which is not limited here and can be determined according to needs. When the key body 210 moves along the preset direction X, the multiple substructures 221 move together, and the substructure 221 facing the ultrasonic device 230 is switched to another substructure 221. After the key body 210 completes the movement, the substructure 221 currently facing the ultrasonic device 230 is a new target structure, which is used to reflect the ultrasonic wave emitted by the ultrasonic device 230 to the ultrasonic device 230. It is understandable that due to the different distances between different substructures 221 and the ultrasonic device 230, the corresponding ultrasonic propagation durations are also different. The ultrasonic device 230 and the processor 30 can then determine the current target structure based on the variable of the propagation duration, and then determine the position of the key body 210.

[0053] by Figure 6 and Figure 7For example, the plurality of substructures 221 are respectively a first substructure 2211 and a second substructure 2212. The facing distances between the first substructure 2211 and the second substructure 2212 and the ultrasonic device 230 are respectively a first distance and a second distance, wherein the first distance is greater than the second distance. When the user moves the key body 210 to the first position Z1, the first substructure 2211 (target structure) is opposite to the ultrasonic device 230, the facing distance between the first substructure 2211 and the ultrasonic device 230 is a first distance, the propagation duration of the ultrasonic wave is the first duration, the ultrasonic device 230 generates a first signal according to the first duration, and the processor 30 controls the electronic device 100 to turn on the camera according to the first signal; when the user moves the key body 210 to the second position Z2, the second substructure 2212 (target structure) is opposite to the ultrasonic device 230, the facing distance between the second substructure 2212 and the ultrasonic device 230 is a second distance, the propagation duration of the ultrasonic wave is the second duration, the ultrasonic device 230 generates a second signal according to the second duration, and the processor 30 controls the electronic device 100 to turn off the camera according to the second signal.

[0054] Please refer to Figure 8 In another embodiment, the reflection structure 220 includes a plurality of (greater than or equal to two) substructures 221, and different substructures 221 have different facing distances from the ultrasonic device 230. The ultrasonic device 230 is connected to the key body 210, and a plurality of the substructures 221 are fixed in the device body 10. When the ultrasonic device 230 moves along the preset direction X following the key body 210, the plurality of substructures 221 switch with each other to face the ultrasonic device 230. The substructure 221 facing the ultrasonic device 230 is a target structure, and the ultrasonic device 230 is used to send ultrasonic waves to the target structure and receive ultrasonic waves reflected back by the target structure.

[0055] Specifically, the multiple substructures 221 can be an integrated structure, that is, they are manufactured in one piece. The multiple substructures 221 can also be a split structure, that is, they are manufactured independently and then directly or indirectly connected together. It should be noted that in some embodiments, the substructures 221 can be spaced apart or in contact with each other. The number of substructures 221 can be 2, 3, 4, 5, etc., which is not limited here and can be determined according to needs. When the key body 210 moves along the preset direction X, the substructure 221 facing the ultrasonic device 230 is switched to another substructure 221. After the key body 210 completes the movement, the substructure 221 currently facing the ultrasonic device 230 is a new target structure, which is used to reflect the ultrasonic wave emitted by the ultrasonic device 230 to the ultrasonic device 230. It is understandable that, due to the different distances between different substructures 221 and the ultrasonic device 230, the corresponding ultrasonic propagation durations are also different. The ultrasonic device 230 and the processor 30 can then determine the current target structure based on the variable of the propagation duration, and then determine the position of the key body 210. The difference between this embodiment and the previous embodiment is that the positions of the reflective structure 220 and the ultrasonic device 230 are interchanged. For specific examples, please refer to Figure 6 and Figure 7 And the corresponding descriptions are not given here.

[0056] Please refer to Fig. 9 In another embodiment, the ultrasonic device 230 includes a plurality of sub-devices 231, the reflective structure 220 is connected to the key body 210, and the ultrasonic device 230 is fixedly disposed in the device body 10. When the reflective structure 220 moves along the preset direction X following the key body 210, the plurality of sub-devices 231 switch with each other to face the reflective structure 220. The sub-device 231 facing the reflective structure 220 is a target device, and the target device is used to send ultrasonic waves to the reflective structure 220 and receive ultrasonic waves reflected by the reflective structure 220.

[0057] Specifically, each sub-component 231 can be arranged at intervals, or can be directly or indirectly connected together. When the key body 210 moves along the preset direction X, the sub-component 231 currently facing the reflective structure 220 is switched to another sub-component 231. The number of sub-components 231 can be 2, 3, 4, 5, etc., which is not limited here and can be determined according to needs. All sub-components 231 are connected to the processor 30 for communication, and different sub-components 231 are connected to different communication interfaces of the processor 30. The communication interface and the position of the key body 210 are in a one-to-one correspondence, that is, one communication interface corresponds to one position of the key body 210. When the key body 210 moves along the preset direction X, the sub-component 231 facing the reflective structure 220 is switched to another sub-component 231. After the key body 210 completes the movement, the sub-component 231 currently facing the reflective structure 220 is a new target device, which is used to send ultrasonic waves to the reflective structure 220 and receive ultrasonic waves reflected back by the reflective structure 220. It is understandable that, since each sub-component 231 is electrically connected to a different communication interface of the processor 30, the processor 30 can determine the current target device according to the communication interface, and then determine the position of the key body 210. It should be noted that, in some embodiments, the facing distances of each sub-component 231 and the reflective structure 220 can be equal, and this implementation form can determine the position of the key body 210 through the above communication interface. In other embodiments, the facing distances of each sub-component 231 and the reflective structure 220 are different, and this implementation form can determine the position of the key body 210 through the above communication interface, and can also determine the position of the key body 210 through the propagation time of the ultrasonic wave, that is, since the distances between different sub-components 231 and the reflective structure 220 are different, the propagation time of the ultrasonic wave is also different, and the processor 30 can then determine the position of the key body 210 according to the variable of the propagation time.

[0058] by Fig.10For example, the plurality of sub-components 231 are respectively a first sub-component 2311, a second sub-component 2312, and a third sub-component 2313. When the user moves the key body 210 to the first position Z1, the first sub-component 2311 (target component) is opposite to the reflective structure 220, and after the first sub-component 2311 sends an ultrasonic wave to the reflective structure 220 and receives the ultrasonic wave reflected back by the reflective structure 220, the first sub-component 2311 generates a first signal, and the processor 30 controls the electronic device 100 to adjust to the rest mode according to the first signal; when the user moves the key body 210 to the second position Z2, the second sub-component 2312 (target component) is opposite to the reflective structure 220, and the second sub-component 2312 sends an ultrasonic wave to the reflective structure 220. When the user moves the key body 210 to the third position Z3, the third sub-component 2313 (target component) is opposite to the reflective structure 220, and after the third sub-component 2313 sends an ultrasonic wave to the reflective structure 220 and receives the ultrasonic wave reflected back by the reflective structure 220, the third sub-component 2313 generates a third signal, and the processor 30 controls the electronic device 100 to adjust to the driving mode according to the third signal.

[0059] Please refer to Fig.11 In another embodiment, the ultrasonic device 230 includes a plurality of sub-devices 231, the ultrasonic device 230 is connected to the key body 210, and the reflective structure 220 is fixed in the device body 10. When the ultrasonic device 230 follows the key body 210 to move along the preset direction X, the plurality of sub-devices 231 switch to face the reflective structure 220. The sub-device 231 facing the reflective structure 220 is a target device, and the target device is used to send ultrasonic waves to the reflective structure 220 and receive ultrasonic waves reflected by the reflective structure 220.

[0060] Specifically, each sub-component 231 can be arranged at intervals, or can be directly or indirectly connected together. When the key body 210 moves along the preset direction X, the sub-component 231 currently facing the reflective structure 220 is switched to another sub-component 231. The number of sub-components 231 can be 2, 3, 4, 5, etc., which is not limited here and can be determined according to needs. All sub-components 231 are connected to the processor 30 for communication, and different sub-components 231 are connected to different communication interfaces of the processor 30. The communication interface and the position of the key body 210 are in a one-to-one correspondence, that is, one communication interface corresponds to one position of the key body 210. When the key body 210 moves along the preset direction X, the sub-component 231 facing the reflective structure 220 is switched to another sub-component 231. After the key body 210 completes the movement, the sub-component 231 currently facing the reflective structure 220 is a new target device, which is used to send ultrasonic waves to the reflective structure 220 and receive ultrasonic waves reflected back by the reflective structure 220. It can be understood that, since each sub-component 231 is electrically connected to a different communication interface of the processor 30, the processor 30 can determine the current target device according to the communication interface, and then determine the position of the key body 210. It should be noted that, in some embodiments, the facing distances of each sub-component 231 when facing the reflective structure 220 can be equal, and this implementation form can determine the position of the key body 210 through the above-mentioned communication interface. In other embodiments, the facing distances of each sub-component 231 when facing the reflective structure 220 are different. This implementation form can determine the position of the key body 210 through the above-mentioned communication interface, and can also determine the position of the key body 210 by the propagation time of the ultrasonic wave. That is to say, since the distances between different sub-components 231 and the reflective structure 220 are different, the propagation time of the ultrasonic wave is also different, and the processor 30 can then determine the position of the key body 210 according to the variable of the propagation time. The difference between this embodiment and the previous embodiment is that the positions of the reflective structure 220 and the ultrasonic device 230 are interchanged. For specific examples, please refer to Fig.10 And the corresponding descriptions are not given here.

[0061] Furthermore, the key body 210 is disposed on the side of the device body 10, and the preset direction X is parallel to the extension direction of the side (eg Figures 3 to 11 as shown) or vertically (as Fig.12 When the preset direction X and the extension direction of the side are parallel to each other, the key body 210 is a sliding key, which can also be called a toggle key. When the preset direction X and the extension direction of the side are perpendicular to each other, the key body 210 is a key.

[0062] Specifically, the type of the key body 210 can be a sliding key, which means that the key body 210 will not go into or out of the device body 10 (such as Figures 3 to 11The key body 210 may be a key, which is a key that moves the device body 10 (such as a slide key) into or out of the device body 10 (such as a slide key). Fig.12 As shown in FIG. 1 , for a key, the operation of a user driving the key to move is usually called "pressing". From the comparison between the sliding key and the key, it can be seen that the types of the key 210 are different, the movement directions of the key 210 are different, and the arrangement forms of the reflective structure 220 and the ultrasonic device 230 are also different, but the principles are the same. In this application, only the type of the key 210 is a sliding key as the basis for description.

[0063] It is understandable that the ultrasonic device 230 consumes electrical energy during operation. In order to reduce the power consumption of the electronic device 100, the following two control methods may be used, but are not limited to them.

[0064] In one embodiment, the processor 30 controls the ultrasonic device 230 to emit ultrasonic waves at regular intervals, that is, the processor 30 controls the ultrasonic device 230 to emit ultrasonic waves at intervals of a preset time period. Specifically, the processor 30 controls the ultrasonic device 230 to be turned on and off continuously, and emits ultrasonic waves when the ultrasonic device 230 is in the on state, and stops emitting ultrasonic waves when the ultrasonic device 230 is in the off state. The above-mentioned preset time period is the duration of the off state, or the preset time period is the interval between two adjacent on states. The preset time period can be, but is not limited to, 0.05 seconds, 0.08 seconds, 0.1 seconds, 0.3 seconds, 0.5 seconds, 0.8 seconds, 1 second, etc. It can be understood that the control method provided in this embodiment saves more power than turning on the ultrasonic device 230 all the time, thereby improving the endurance of the electronic device 100.

[0065] Please refer to Fig.13 In another embodiment, the functional component 20 also includes a detector 240 electrically connected to the processor 30, and the detector 240 is used to generate a detection signal when a foreign object contacts or approaches, and the processor 30 controls the ultrasonic device 230 to emit an ultrasonic wave according to the detection signal.

[0066] Specifically, the ultrasonic device 230 has an on state and an off state, and the processor 30 controls the ultrasonic device 230 to be on or off through the detector 240. When the detector 240 detects that a foreign object is approaching or touching, the processor 30 controls the ultrasonic device 230 to switch from the off state to the on state to emit ultrasonic waves. After the on state is maintained for a certain period of time, the processor 30 controls the ultrasonic device 230 to switch from the on state to the off state to save power. The detector 240 can be set on the key body 210, so that it moves with the key body 210, that is, the detector 240 moves synchronously with the key body 210, so that the detector 240 can sensitively detect whether a foreign object is approaching or touching the key body 210 at any time.

[0067] The detector 240 can be a pressure sensor. When the user's finger presses the key body 210, the pressure sensor will feel the pressure, thereby generating a pressure signal (detection signal), and then transmitting the pressure signal to the processor 30. After receiving the pressure signal, the processor 30 controls the ultrasonic device 230 to switch from the closed state to the open state. The detector 240 can also be a capacitive sensor. When the user's finger approaches or touches the functional mirror, the capacitive sensor and the finger will form a capacitor, thereby generating a capacitance signal (detection signal), and then transmitting the capacitance signal to the processor 30. After receiving the capacitance signal, the processor 30 controls the ultrasonic device 230 to switch from the closed state to the open state. Of course, the detector 240 can also be other types, such as a SAR antenna, etc., and other types are not described in detail here.

[0068] In summary, in the electronic device 100 provided in this embodiment, the functional component 20 is composed of a key body 210, a reflective structure 220, and an ultrasonic device 230, wherein the key body 210 can move along a preset direction X, the ultrasonic device 230 can emit ultrasonic waves, and the reflective structure 220 can reflect the ultrasonic waves emitted by the ultrasonic device 230, so that the ultrasonic device 230 receives ultrasonic waves. When the key body 210 moves along the preset direction X, the ultrasonic information received by the ultrasonic device 230 can be changed, so that the processor 30 can know the current position of the key body 210 according to the ultrasonic information, and further control the electronic device 100 to perform a preset operation. It can be understood that the above process will not be interfered by the outside world (such as a magnetic field). Compared with the related art, when the key body 210 moves, the corresponding preset operation can be triggered more sensitively.

[0069] Please refer to Fig.14 The present application also provides an electronic device 100 , which includes: a device body 10 , an ultrasonic device 230 , and a processor 30 .

[0070] The device body 10 has a preset area Y. The ultrasonic device 230 is disposed in the device body 10 and faces the preset area Y. The ultrasonic device 230 is used to emit ultrasonic waves to a target object facing the preset area Y and moving along a preset direction X, and receive ultrasonic waves reflected back by the target object to form a plurality of images of the target object. The processor 30 is used to compare the plurality of images formed by the ultrasonic device 230 to determine whether the target object moves along the preset direction X. If it is determined that the target object moves along the preset direction X, the electronic device 100 is controlled to perform a preset operation.

[0071] In this embodiment, the preset area Y is located on the side of the device body 10, and the preset area Y can refer to the location of the key body 210 in any of the previous embodiments. The target object can be but is not limited to the user's finger, it can also be other parts of the user, and it can also be other objects independent of the user. When the target object is the user's finger fingerprint, the ultrasonic device 230 can also be called an ultrasonic fingerprint recognition module. This application is explained by taking the target object as a finger fingerprint. When the user's finger fingerprint faces the preset area Y, the ultrasonic wave emitted by the ultrasonic device 230 passes through the preset area Y and reaches the finger fingerprint. The finger fingerprint will reflect the ultrasonic wave, and the reflected ultrasonic wave passes through the preset area Y and returns to the ultrasonic device 230, that is, the ultrasonic device 230 can detect the fingerprint texture according to the echo reflection, and construct several images of the fingerprint texture. It should be noted that the number of images formed by the ultrasonic device 230 is greater than or equal to 2, and can be but not limited to 2, 3, 4, 5, etc. It is understandable that if there are large differences between the multiple images formed by the ultrasonic device 230, it means that the finger is moving significantly, and if the multiple images are the same or almost the same, it means that the finger has not moved or has hardly moved. In this embodiment, the processor 30 compares the multiple images formed by the ultrasonic device 230 to determine whether the finger moves along the preset direction X. The preset direction X can be the same as the extension direction of the side of the device body 10, or it can be different.

[0072] In the electronic device 100 provided in this embodiment, the ultrasonic device 230 can detect the target object and form an image of the target object based on the echo reflection. Therefore, when the target object is facing the preset area Y, the processor 30 can judge the moving direction of the target object based on the feature changes in the image of the target object (such as the fingerprint texture changes of the finger) to determine whether the target object moves along the preset direction X. If so, the electronic device 100 is controlled to perform the preset operation. It can be understood that this process will not be interfered by the outside world (such as the magnetic field). Compared with the related art, the corresponding preset operation can be triggered more sensitively. For the preset operation, please refer to the introduction in the previous embodiment. In addition, in this embodiment, there is no need to set the key body 210 as in the previous embodiment. The effect of the key body 210 moving up and down can be achieved only by the up and down sliding action of the target object. In this process, the target object can contact the preset area Y or not.

[0073] Further, the processor 30 is used to determine whether there are the same features in the Nth image and the N+1th image formed by the ultrasonic device 230. If so (i.e., the same features exist in the Nth image and the N+1th image), the coordinates of the same features in the Nth image and the N+1th image are compared to determine the moving direction of the target object. In other words, the processor 30 coordinates the image formed by the ultrasonic device 230 and compares the two adjacent images formed by the ultrasonic device 230. If it is determined that the two adjacent images have at least partially the same features, the coordinates of the same features in the two adjacent images are compared (i.e., the coordinates of the same features on the Nth image are compared with the coordinates of the same features on the N+1th image), so that the moving direction of the target object can be determined. Wherein, N is a natural number greater than or equal to 1, and the N value can be 1, 2, 3, etc. It should be noted that the preset direction X may include a first direction and a second direction, the first direction and the second direction are parallel and opposite to each other, and the projection component of the moving direction of the target object on the preset direction X is in the same direction as the first direction, or in the same direction as the second direction, for example, a finger slides up or down along the device body 10.

[0074] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in the field can change, modify, replace and modify the above embodiments within the scope of the present application, and these improvements and modifications are also regarded as the scope of protection of the present application.

Claims

1. An electronic device, characterized in that: The electronic device comprises: Equipment body; A functional component, the functional component comprising a key body, a reflective structure, and an ultrasonic device, wherein the key body is movably connected to the device body and can move along a preset direction, the ultrasonic device is used to emit ultrasonic waves to the reflective structure and receive ultrasonic waves reflected by the reflective structure, and when the key body moves along the preset direction, the ultrasonic information received by the ultrasonic device changes; and A processor is used to control the electronic device to perform a preset operation according to the ultrasonic information received by the ultrasonic device.

2. The electronic device according to claim 1, wherein: The arrangement direction of the reflection structure and the ultrasonic device is parallel to the preset direction.

3. The electronic device according to claim 2, characterized in that: The reflective structure is connected to the key body, and when the reflective structure moves along the preset direction following the key body, the facing distance between the reflective structure and the ultrasonic device changes, so that the ultrasonic information received by the ultrasonic device changes; Alternatively, the ultrasonic device is connected to the key body, and when the ultrasonic device moves along the preset direction following the key body, the facing distance between the reflective structure and the ultrasonic device changes, so that the ultrasonic information received by the ultrasonic device changes.

4. The electronic device according to claim 1, wherein: The arrangement directions of the reflective structure and the ultrasonic device intersect in the preset direction.

5. The electronic device according to claim 4, characterized in that: The reflective structure includes a plurality of substructures, and different substructures have different facing distances from the ultrasonic device. The reflective structure is connected to the key body. When the reflective structure follows the key body to move along the preset direction, the plurality of substructures switch to face the ultrasonic device. The substructure facing the ultrasonic device is a target structure. The ultrasonic device is used to send ultrasonic waves to the target structure and receive ultrasonic waves reflected by the target structure. Alternatively, the reflective structure includes multiple substructures, different substructures are at different facing distances from the ultrasonic device, the ultrasonic device is connected to the key body, and when the ultrasonic device follows the key body to move along the preset direction, the multiple substructures switch with each other to face the ultrasonic device, and the substructure facing the ultrasonic device is the target structure, and the ultrasonic device is used to emit ultrasonic waves to the target structure and receive ultrasonic waves reflected back by the target structure.

6. The electronic device according to claim 4, characterized in that: The ultrasonic device includes a plurality of sub-devices, the reflective structure is connected to the key body, and when the reflective structure follows the key body to move along the preset direction, the plurality of sub-devices switch to face the reflective structure, and the sub-device facing the reflective structure is a target device, and the target device is used to send ultrasonic waves to the reflective structure and receive ultrasonic waves reflected by the reflective structure; Alternatively, the ultrasonic device includes multiple sub-devices, which are connected to the key body. When the ultrasonic device follows the key body to move along the preset direction, the multiple sub-devices switch with each other to face the reflective structure. The sub-device facing the reflective structure is a target device, which is used to emit ultrasonic waves to the reflective structure and receive ultrasonic waves reflected back by the reflective structure.

7. The electronic device according to any one of claims 1 to 6, characterized in that: The key body is arranged on the side of the device body, and the preset direction and the extending direction of the side are parallel or perpendicular to each other.

8. The electronic device according to any one of claims 1 to 6, characterized in that: The processor controls the ultrasonic device to emit ultrasonic waves at a fixed time; Alternatively, the functional component further includes a detector electrically connected to the processor, the detector being configured to generate a detection signal when a foreign object contacts or approaches, and the processor controlling the ultrasonic device to emit an ultrasonic wave according to the detection signal.

9. An electronic device, characterized in that: The electronic device comprises: A device body, wherein the device body has a preset area; an ultrasonic device, the ultrasonic device being disposed in the device body and facing the preset area, the ultrasonic device being used to emit ultrasonic waves to a target object facing the preset area, and to receive ultrasonic waves reflected back by the target object, so as to form a plurality of images of the target object; and A processor is used to compare multiple images formed by the ultrasonic device to determine whether the target object moves along a preset direction, and if it is determined that the target object moves along the preset direction, control the electronic device to perform a preset operation.

10. The electronic device according to claim 9, characterized in that: The processor is used to determine whether there are identical features in the Nth image and the N+1th image formed by the ultrasonic device. If so, coordinate comparison is performed on the identical features in the Nth image and the N+1th image to determine the moving direction of the target object, where N is a natural number greater than or equal to 1.