Electronic device

By using a combination of function keys, light emitting elements and photosensitive devices in electronic devices and controlling the operating mode using light information, the problem of insufficient detection accuracy of side key magnetic field in the prior art is solved, and a more sensitive operating mode trigger is achieved.

CN119182842APending Publication Date: 2024-12-24GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310748932.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-21
Publication Date
2024-12-24

AI Technical Summary

Technical Problem

The side keys in existing electronic devices have insufficient accuracy through magnetic field detection, which is susceptible to interference from external magnetic fields, resulting in inaccurate operation.

Method used

The combination of function keys, light emitting elements and photosensitive devices is adopted. When the function keys move in the preset direction, the photosensitive device receives changes in light information. The processor controls the operating mode of the device according to the information to avoid magnetic field interference.

Benefits of technology

Improves the sensitivity of operation mode triggering when function keys are moved, ensuring that operation accuracy is not disturbed by external magnetic fields.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119182842A_ABST
    Figure CN119182842A_ABST
Patent Text Reader

Abstract

The invention provides electronic equipment. The electronic equipment comprises an equipment body; the function assembly comprises a function key, a light-emitting element and a light sensing device, the function key is movably connected to the equipment body and can move in the preset direction, the light sensing device is used for receiving light from the light-emitting element, and when the function key moves in the preset direction, the light-emitting element emits light to the function key. The light information received by the photosensitive device is changed; and the processor is used for controlling the operation mode of the electronic equipment according to the light information received by the photosensitive device. In the electronic equipment provided by the invention, the function realization of the function key cannot be interfered by an external magnetic field.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] Electronic devices such as mobile phones are usually equipped with side keys (also called "function keys"), which can be pressed or toggled to make the electronic device perform corresponding operations. For example, when the side key is toggled, it controls music playback (pause, previous song, next song). In related technologies, 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 in which the function of a function key is not interfered by an external magnetic field.

[0004] The electronic device of the present application includes: a device body; a functional component, wherein the functional component includes a function key, a light-emitting element and a photosensitive device, wherein the function key is movably connected to the device body and can move along a preset direction, and the photosensitive device is used to receive light from the light-emitting element, and when the function key moves along the preset direction, the light information received by the photosensitive device changes; and a processor, wherein the processor is used to control the operation mode of the electronic device according to the light information received by the photosensitive device.

[0005] In the electronic device provided in this embodiment, the functional component is composed of a function key, a light-emitting element, and a photosensitive device, wherein the function key can move along a preset direction, the light-emitting element can emit light, and the photosensitive device can receive the light emitted by the light-emitting element. When the function key moves along the preset direction, the light information received by the photosensitive device can be changed, so that the processor can know the current position of the function key according to the photosensitive device, and further control the electronic device to adopt the corresponding operation mode. 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 function key moves, the corresponding operation mode can be triggered more sensitively. BRIEF DESCRIPTION OF THE DRAWINGS

[0006] 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.

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

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

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

[0010] Figure 4 A schematic diagram of an electronic device provided in accordance with another embodiment of the present application.

[0011] Figure 5 for Figure 3 Schematic diagram showing function keys in different positions in an electronic device.

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

[0013] Figure 7 A schematic diagram of an electronic device provided in accordance with another embodiment of the present application.

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

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

[0016] Fig.10 for Figure 8 Schematic diagram showing function keys in different positions in an electronic device.

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

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

[0019] Description of reference numerals:

[0020] Electronic device-1; device body-10; functional component-20; processor-30; display screen-110; middle frame-120; battery cover-130; function key-210; light-emitting element-220; photosensitive device-230; reflector-240; sensor-250; first light emitter-221; second light emitter-222; third light emitter-223; first device-231; second device-232; third device-233; reflecting surface-241; preset angle-α; first position-Y1; second position-Y2; third position-Y3; preset direction-X. DETAILED DESCRIPTION

[0021] 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.

[0022] 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.

[0023] 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 does 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 corresponding operations. In other words, when the side key moves to different positions, the Hall element will measure different magnetic field results, and the electronic device will perform corresponding operations according to the magnetic field results. 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 functions.

[0024] 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.

[0025] Please refer to Figures 1 to 3 The present application provides an electronic device 1, which may 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, a VR device, etc.), a television, a vehicle-mounted device, an electronic reader, etc. It should be noted that the present application embodiment only uses the electronic device 1 as a mobile phone for exemplary description, but this should not be regarded as a limitation to the present application.

[0026] Please refer to Figure 3, the electronic device 1 includes: a device body 10, a functional component 20, and a processor 30. Among them, the functional component 20 includes a function key 210, a light-emitting element 220 and a photosensitive device 230. The function key 210 is movably connected to the device body 10 and can move along a preset direction X. The photosensitive device 230 is used to receive light from the light-emitting element 220. When the function key 210 moves along the preset direction X, the light information received by the photosensitive device 230 changes. The processor 30 is used to control the operation mode of the electronic device 1 according to the light information received by the photosensitive device 230. Among them, the light information can be but is not limited to information such as light intensity, light color, and light quantity. The subsequent embodiments of this application are exemplified by light intensity and light color.

[0027] In some embodiments, Figures 3 to 7 As shown, the functional component 20 includes a plurality of photosensitive devices 230 disposed in the device body 10 , and the plurality of photosensitive devices 230 are arranged along a preset direction X.

[0028] Specifically, the functional component 20 includes: a function key 210, a light emitting element 220, and a plurality of photosensitive devices 230. The light emitting element 220 can emit light, and the photosensitive device 230 is used to receive light from the light emitting element 220. The function key 210 is movably connected to the device body 10 and can move along a preset direction X. When the function key 210 moves along the preset direction X, the light information received by each photosensitive device 230 changes. The processor 30 is used to control the operation mode of the electronic device 1 according to the light information received by the photosensitive device 230. In other words, the functional component 20 is used to sense the user's operation, and the processor 30 is used to control the electronic device 1 according to the user's operation.

[0029] Please refer to Figure 1 to Figure 2 The device body 10 refers to the main part of the electronic device 1, which includes electronic components that realize the main functions of the electronic device 1 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. 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.

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

[0031] The light-emitting element 220 and the photosensitive device 230 are both arranged in the device body 10. For example, the device body 10 also includes a mainboard, and the light-emitting element 220 and the photosensitive device 230 are electrically connected to the mainboard. There are multiple photosensitive devices 230 (greater than or equal to two), such as 2, 3, 4, 5, etc., and the relevant embodiments of the present application are exemplified by 3 photosensitive devices 230. Further, each photosensitive device 230 can receive light emitted from the light-emitting element 220. When the function key 210 moves along the preset direction X, the propagation path of the light emitted by the light-emitting element 220 will be at least partially changed, so that the light information received by each photosensitive device 230 changes, which will be described in detail later.

[0032] It should be noted that the plurality of photosensitive devices 230 may be arranged along a preset direction X, that is, the arrangement direction of the plurality of photosensitive devices 230 is consistent with the movement direction of the function key 210 (eg Figure 3 Of course, in other embodiments, the arrangement direction of the plurality of light sensing devices 230 may also be inconsistent with the movement direction of the function key 210 (eg Figure 4 ), and no limitation is given here.

[0033] According to actual needs, the function key 210 can be set on any side of the electronic device 1. Taking a mobile phone as an example, the function key 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 function key 210 is set on the side of the mobile phone, the function key 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 1 may be different for different types, and other types of electronic devices 1 are not described in detail here.

[0034] The processor 30 is disposed in the device body 10, for example, the processor 30 is electrically connected to the main board in the device body 10. The processor 30 may be a part of the device body 10, or a part of the functional component 20. According to the feature that "the movement of the function key 210 causes the light information received by the photosensitive device 230 to change", the processor 30 may know the current position of the function key 210 according to the "light information received by the photosensitive device 230" and control the operation mode of the electronic device 1.

[0035] The operation mode mentioned here is the application scenario of the function key 210, including setting the state of the electronic device 1 to mute, vibrate, ring, and other applications related to the reminder function of the electronic device 1, and can also be used for self-defined functions, such as triggering to turn on or off the camera, control music playback (pause, previous song, next song), and even for controlling the up and down scroll bars of the display interface of the display screen 110 and switching the position of application icons, etc. The application scenarios of the function key 210 can be set according to actual conditions and are not listed here one by one.

[0036] For example, Figure 5 In the illustrated embodiment, the plurality of photosensitive devices 230 include three devices, namely, a first device 231, a second device 232, and a third device 233. The function key 210 can move to three positions along a preset direction X, namely, a first position Y1, a second position Y2, and a third position Y3. The operation mode includes three modes, namely, a first mode (such as a silent mode), a second mode (such as a vibration mode), and a third mode (such as a ringing mode). When the user moves the function key 210 to the first position Y1, the first device 231 receives the light from the light-emitting element 220 and generates a first signal, and the processor 30 controls the electronic device 1 to adjust to the silent mode according to the first signal; when the user moves the function key 210 to the second position Y2, the second device 232 receives the light from the light-emitting element 220 and generates a second signal, and the processor 30 controls the electronic device 1 to adjust to the vibration mode according to the second signal; when the user moves the function key 210 to the third position Y3, the third device 233 receives the light from the light-emitting element 220 and generates a third signal, and the processor 30 controls the electronic device 1 to adjust to the ringing mode according to the third signal.

[0037] Further, the function key 210 is arranged on the side of the device body 10, and the preset direction X is parallel or perpendicular to the extension direction of the side. When the preset direction X is parallel to the extension direction of the side, the function key 210 is a sliding key, which can also be called a toggle key. When the preset direction X is perpendicular to the extension direction of the side, the function key 210 is a key.

[0038] Specifically, the type of the function key 210 can be a sliding key, which means that the sliding key will not go into or out of the device body 10 during the movement (such as Figure 3 The function key 210 type is shown in FIG. 1 . For a sliding key, the operation of the user driving the movement is usually called "sliding or pushing". The function key 210 type can also be a key, which means that during the movement, the user moves the key into or out of the device body 10 (such as Figure 6 For a key, the operation of the user driving the key to move is usually called "pressing". Figure 3 and Figure 6By comparison, it can be seen that the types of function keys 210 are different, the movement directions of function keys 210 are different, and the arrangements of light-emitting elements 220 and photosensitive devices 230 will also be different, but the principles are the same. In this application, the description is based only on the type of function key 210 being a sliding key.

[0039] The following describes how the function key 210 changes the light information received by the photosensitive device 230 during the movement process with reference to the accompanying drawings.

[0040] Please refer to Figures 3 to 6 In one embodiment, the light emitting element 220 is connected to the function key 210, and the light emitting element 220 can follow the function key 210 to move along a preset direction X. That is, the light emitting element 220 and the function key 210 are fixedly connected together, and the two will move synchronously. During the movement of the function key 210 along the preset direction X, the light emitting element 220 will face different photosensitive devices 230, so that the light information received by each photosensitive device 230 changes. The above-mentioned light emitting element 220 and the function key 210 are fixedly connected together, and the fixed connection here can be a detachable connection (such as a snap-on connection) or a non-detachable connection (such as a bonding connection).

[0041] When the function key 210 moves to the first position Y1, the light emitting element 220 faces the first device 231. At this time, the first device 231 receives the light emitted by the light emitting element 220, while the second device 232 and the third device 233 fail to receive the light emitted by the light emitting element 220. When the function key 210 moves to the second position Y2, the light emitting element 220 faces the second device 232. At this time, the second device 232 receives the light emitted by the light emitting element 220, while the first device 231 and the third device 233 fail to receive the light emitted by the light emitting element 220. When the function key 210 moves to the third position Y3, the light emitting element 220 faces the third device 233. At this time, the third device 233 receives the light emitted by the light emitting element 220, while the first device 231 and the second device 232 fail to receive the light emitted by the light emitting element 220.

[0042] Please refer to Figure 7In another embodiment, the functional component 20 further includes a reflector 240, which is connected to the function key 210 and can move along a preset direction X with the function key 210. The light-emitting element 220 is used to emit light to the reflector 240, and the reflector 240 is used to reflect the light from the light-emitting element 220 to the photosensitive device 230. In other words, the reflector 240 and the function key 210 are fixedly connected together, and the two will move synchronously. During the movement of the function key 210 along the preset direction X, the position of the reflector 240 changes, and thus the propagation path of the light will also change, thereby causing the light information received by each photosensitive device 230 to change. The above-mentioned reflector 240 is fixedly connected to the function key 210, and the fixed connection here can be a detachable connection (such as snap-on) or a non-detachable connection (such as bonding). It should be noted that the type of the reflector 240 can be a plane mirror or a prism. Please refer to Figure 7 The reflective element 240 has a reflective surface 241 , and a preset angle α formed by the reflective surface 241 and the preset direction X may be, but is not limited to, 30°, 45°, 60°, etc.

[0043] When the function key 210 moves to the first position Y1, the reflector 240 reflects the light from the light emitting element 220 to the first device 231. At this time, the first device 231 receives the light emitted by the light emitting element 220, while the second device 232 and the third device 233 fail to receive the light emitted by the light emitting element 220. When the function key 210 moves to the second position Y2, the reflector 240 reflects the light from the light emitting element 220 to the second device 232. At this time, the second device 232 receives the light emitted by the light emitting element 220, while the first device 231 and the third device 233 fail to receive the light emitted by the light emitting element 220. When the function key 210 moves to the third position Y3, the reflector 240 reflects the light from the light emitting element 220 to the third device 233. At this time, the third device 233 receives the light emitted by the light emitting element 220, while the first device 231 and the second device 232 fail to receive the light emitted by the light emitting element 220.

[0044] In the present application, the light emitting element 220 can be a concentrated light source or a divergent light source. The so-called concentrated light source refers to a light source type that emits relatively concentrated light, such as a laser. The so-called divergent light source refers to a light source type that emits relatively dispersed light, such as a light emitting diode (LED).

[0045] In one embodiment, the light emitting element 220 is a concentrated light source. A target device among the plurality of light sensing devices 230 can receive the light emitted from the light emitting element 220. The processor 30 is used to control the operation mode of the electronic device 1 according to the target device.

[0046] Specifically, when the concentrated light source emits light, since the light is relatively concentrated, only one of all the photosensitive devices 230 can receive the light, and the photosensitive device 230 is the target device to be irradiated, while the remaining photosensitive devices 230 cannot receive the light, that is, only the light intensity of the target device is greater than zero, and the light intensity of the remaining photosensitive devices 230 is zero. After receiving the light, the target device generates a corresponding electrical signal, and the processor 30 controls the operation mode of the electronic device 1 according to the electrical signal.

[0047] When the function key 210 moves to the first position Y1, the light emitted by the concentrated light source only illuminates the first device 231 (target device), and the second device 232 and the third device 233 are not illuminated. When the function key 210 moves to the second position Y2, the light emitted by the concentrated light source only illuminates the second device 232 (target device), and the first device 231 and the third device 233 are not illuminated. When the function key 210 moves to the third position Y3, the light emitted by the concentrated light source only illuminates the third device 233 (target device), and the first device 231 and the second device 232 are not illuminated.

[0048] In another embodiment, the light emitting element 220 is a divergent light source, and at least one of the plurality of photosensitive devices 230 can receive light emitted from the light emitting element 220. The processor 30 is further configured to compare the light intensity received by all the photosensitive devices 230 with each other, and determine the photosensitive device 230 with the largest light intensity as the target device, and the processor 30 is configured to control the operation mode of the electronic device 1 according to the target device.

[0049] When the light emitting element 220 is a divergent light source, since its light is relatively dispersed, in addition to the target device being irradiated, the remaining one or more photosensitive devices 230 may also be irradiated. Therefore, when the light emitting element 220 is a divergent light source, there may be a situation where the light intensity received by multiple photosensitive devices 230 is not zero, but it can be determined that the light intensity received by each photosensitive device 230 is different in magnitude, and the photosensitive device 230 with the largest light intensity is the target device. In this embodiment, the processor 30 will obtain the light intensity received by each photosensitive device 230, and then compare them with each other, so as to determine the photosensitive device 230 with the largest light intensity, which is the target device. Finally, the processor 30 controls the operation mode of the electronic device 1 according to the target device. It can be understood that this embodiment can well solve the problem of the divergent light source irradiating multiple photosensitive devices 230 by first determining the magnitude of the received light intensity and then determining the operation mode according to the photosensitive device 230 with the largest light intensity.

[0050] If the light emitting element 220 is a divergent light source, when the function key 210 moves to the first position Y1, most of the light emitted by the light emitting element 220 propagates toward the first device 231, and a small part propagates toward the second device 232 and the third device 233. Therefore, in addition to the first device 231 receiving the light, the second device 232 and the third device 233 also receive a small part of the light. The processor 30 obtains the light intensity information received by each device and compares them with each other, and determines that the light intensity received by the first device 231 is the largest and is used as the target device. Finally, the processor 30 controls the operation mode of the electronic device 1 according to the first device 231 as the target device. Similarly, when the function key 210 moves to the second position Y2, in addition to the second device 232 receiving the light, the first device 231 and the third device 233 will also receive the light, but the light intensity received by the second device 232 is the largest, and the second device 232 is used as the target device. The processor 30 controls the operation mode of the electronic device 1 according to the second device 232 as the target device. When the function key 210 moves to the third position Y3, in addition to the third device 233 receiving light, the first device 231 and the second device 232 will also receive light, but the light intensity received by the third device 233 is the largest. The third device 233 serves as the target device, and the processor 30 controls the operation mode of the electronic device 1 according to the third device 233 serving as the target device.

[0051] In another embodiment, the light emitting element 220 is a divergent light source, and at least one of the plurality of photosensitive devices 230 can receive light emitted from the light emitting element 220. The processor 30 is further configured to compare the light intensity received by all the photosensitive devices 230 with a preset value, and determine the photosensitive device 230 whose light intensity is greater than or equal to the preset value as a target device, and the processor 30 is configured to control the operation mode of the electronic device 1 according to the target device. The preset value is the preset light intensity.

[0052] Specifically, when the function key 210 moves to the first position Y1, most of the light emitted by the light emitting element 220 propagates toward the first device 231, and a small part propagates toward the second device 232 and the third device 233. Therefore, in addition to the first device 231 receiving the light, the second device 232 and the third device 233 also receive a small part of the light. The processor 30 obtains the light intensity information received by each device and compares it with the preset value, and determines that the light intensity received by the first device 231 is greater than or equal to the preset value and serves as the target device. Finally, the processor 30 controls the operation mode of the electronic device 1 according to the first device 231 serving as the target device. Similarly, when the function key 210 moves to the second position Y2, in addition to the second device 232 receiving the light, the first device 231 and the third device 233 will also receive the light, but the light intensity received by the second device 232 is greater than or equal to the preset value, and the second device 232 serves as the target device. The processor 30 controls the operation mode of the electronic device 1 according to the second device 232 serving as the target device. When the function key 210 moves to the third position Y3, in addition to the third device 233 receiving light, the first device 231 and the second device 232 will also receive light, but the received light intensity of the third device 233 is greater than or equal to the preset value, and the third device 233 serves as the target device. The processor 30 controls the operation mode of the electronic device 1 according to the third device 233 serving as the target device.

[0053] It is understandable that both the light emitting element 220 and the photosensitive device 230 consume electrical energy during their operation. In order to reduce the power consumption of the electronic device 1, the following two control methods may be used, but are not limited to them.

[0054] In one embodiment, the processor 30 is electrically connected to the light emitting element 220, and the processor 30 is used to control the light emitting element 220 to emit light at intervals of a preset time period. Specifically, the processor 30 controls the light emitting element 220 to be turned on and off continuously, and when the light emitting element 220 is in the on state, it emits light, and when the light emitting element 220 is in the off state, it stops emitting light. 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 light emitting element 220 all the time, thereby improving the endurance of the electronic device 1.

[0055] Of course, in a further embodiment, the processor 30 can also control the photosensitive device 230 to turn on and off synchronously and continuously, and the duration of the off state is a preset time period, that is, the processor 30 controls the light-emitting element 220 and the photosensitive device 230 to turn on or off synchronously.

[0056] In another embodiment, the functional component 20 further includes a sensor 250, which is electrically connected to the processor 30 and the function key 210. The sensor 250 is used to generate a sensing signal when an external object approaches or touches the function key 210. The processor 30 controls the light emitting element 220 to emit light according to the sensing signal.

[0057] Specifically, the light emitting element 220 has an on state and an off state, and the processor 30 controls the light emitting element 220 to be on or off through the sensor 250. When the sensor 250 detects that a foreign object is approaching or touching, the processor 30 controls the light emitting element 220 to switch from the off state to the on state to emit light. After the on state is maintained for a certain period of time, the processor 30 controls the light emitting element 220 to switch from the on state to the off state to save power. The sensor 250 can be set on the function key 210, so that it moves with the function key 210, that is, the sensor 250 moves synchronously with the function key 210, so that the sensor 250 can sensitively detect whether the foreign object is approaching or touching the function key 210 at any time.

[0058] The sensor 250 may be a pressure sensor. When the user's finger presses the function key 210, the pressure sensor will sense the pressure, thereby generating a pressure signal (sensing signal), and then transmitting the pressure signal to the processor 30. After receiving the pressure signal, the processor 30 controls the light-emitting element 220 to switch from the off state to the on state. The sensor 250 may 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 capacitive signal (sensing signal), and then transmitting the capacitive signal to the processor 30. After receiving the capacitive signal, the processor 30 controls the light-emitting element 220 to switch from the off state to the on state. Of course, the sensor 250 may also be other types, such as an ultrasonic sensor, etc. Other types of sensors are not described in detail here.

[0059] Of course, in a further embodiment, the processor 30 may also control the photosensitive device 230 to turn on and off synchronously with the light-emitting element 220, that is, the processor 30 controls the light-emitting element 220 and the photosensitive device 230 to turn on or off synchronously.

[0060] In some embodiments, Figures 8 to 12 As shown, the functional component 20 includes a plurality of light emitting elements 220 disposed in the device body 10 , and the plurality of light emitting elements 220 are arranged along a preset direction X.

[0061] Specifically, the electronic device 1 includes: a device body 10, a functional component 20, and a processor 30. The functional component 20 includes a function key 210, a plurality of light-emitting elements 220, and a photosensitive device 230. The light-emitting element 220 can emit light, and the light emitted by each light-emitting element 220 is different. The photosensitive device 230 is used to receive light from the light-emitting element 220. The function key 210 is movably connected to the device body 10 and can move along a preset direction X so that the photosensitive device 230 can receive light emitted by different light-emitting elements 220. The processor 30 is used to control the operation mode of the electronic device 1 according to the light information received by the photosensitive device 230. In other words, the functional component 20 is used to sense the user's operation, and the processor 30 is used to control the operation mode of the electronic device 1 according to the user's operation.

[0062] The plurality of light emitting elements 220 may be arranged along a preset direction X, that is, the arrangement direction of the plurality of light emitting elements 220 is consistent with the movement direction of the function key 210 (eg, Figure 8 Of course, in other embodiments, the arrangement direction of the plurality of light emitting elements 220 may also be inconsistent with the movement direction of the function key 210 (eg Fig. 9 ), and no limitation is given here.

[0063] For example, Fig.10 In the illustrated embodiment, the plurality of light emitting elements 220 include a first light emitter 221, a second light emitter 222, and a third light emitter 223. The function key 210 can move to three positions along a preset direction X, namely, a first position Y1, a second position Y2, and a third position Y3. The operation mode includes three modes, namely, a first mode (such as a silent mode), a second mode (such as a vibration mode), and a third mode (such as a ringing mode). When the user moves the function key 210 to the first position Y1, the photosensitive device 230 receives light from the first light emitter 221 and generates a first signal, and the processor 30 controls the electronic device 1 to adjust to the silent mode according to the first signal; when the user moves the function key 210 to the second position Y2, the photosensitive device 230 receives light from the second light emitter 222 and generates a second signal, and the processor 30 controls the electronic device 1 to adjust to the vibration mode according to the second signal; when the user moves the function key 210 to the third position Y3, the photosensitive device 230 receives light from the third light emitter 223 and generates a third signal, and the processor 30 controls the electronic device 1 to adjust to the ringing mode according to the third signal.

[0064] Further, the function key 210 is arranged on the side of the device body 10, and the preset direction X is parallel or perpendicular to the extension direction of the side. When the preset direction X is parallel to the extension direction of the side, the function key 210 is a sliding key, which can also be called a toggle key. When the preset direction X is perpendicular to the extension direction of the side, the function key 210 is a key.

[0065] Specifically, the type of the function key 210 can be a sliding key, which means that the sliding key will not go into or out of the device body 10 during the movement (such as Fig.10 The function key 210 type is shown in FIG. 1 . For a sliding key, the operation of the user driving the movement is usually called "sliding or pushing". The function key 210 type can also be a key, which means that during the movement, the user moves the key into or out of the device body 10 (such as Fig.11 For a key, the operation of the user driving the key to move is usually called "pressing". Fig.10 and Fig.11 By comparison, it can be seen that the types of function keys 210 are different, the movement directions of function keys 210 are different, and the arrangements of light-emitting elements 220 and photosensitive devices 230 will also be different, but the principles are the same. In this application, the description is based only on the type of function key 210 being a sliding key.

[0066] The following describes how the function key 210 changes the light information received by the photosensitive device 230 during the movement process with reference to the accompanying drawings.

[0067] Please refer to Fig.10 In one embodiment, the photosensitive device 230 is connected to the function key 210, and the photosensitive device 230 can follow the function key 210 to move along the preset direction X. In other words, the photosensitive device 230 and the function key 210 are fixedly connected together, and the two will move synchronously. During the movement of the function key 210 along the preset direction X, the photosensitive device 230 will face different light-emitting elements 220, so that the photosensitive device 230 can receive light emitted by different light-emitting elements 220. The above-mentioned photosensitive device 230 and the function key 210 are fixedly connected together, and the fixed connection here can be a detachable connection (such as a snap-on connection) or a non-detachable connection (such as a bonding connection).

[0068] When the function key 210 moves to the first position Y1, the photosensitive device 230 faces the first light emitter 221. At this time, the photosensitive device 230 receives the light emitted by the first light emitter 221, but cannot receive the light emitted by the second light emitter 222 and the third light emitter 223. When the function key 210 moves to the second position Y2, the photosensitive device 230 faces the second light emitter 222. At this time, the photosensitive device 230 receives the light emitted by the second light emitter 222, but cannot receive the light emitted by the first light emitter 221 and the third light emitter 223. When the function key 210 moves to the third position Y3, the photosensitive device 230 faces the third light emitter 223. At this time, the photosensitive device 230 receives the light emitted by the third light emitter 223, but cannot receive the light emitted by the first light emitter 221 and the second light emitter 222.

[0069] Please refer to Fig.12 In another embodiment, the functional component 20 further includes a reflector 240 , which is connected to the function key 210 and can move along a preset direction X with the function key 210 . The reflector 240 is used to reflect light from the light-emitting element 220 to the photosensitive device 230 .

[0070] That is to say, the reflector 240 is fixedly connected to the function key 210, and the two will move synchronously. When the function key 210 moves along the preset direction X, the position of the reflector 240 changes, and thus the propagation path of the light will also change, thereby changing the light information received by the photosensitive device 230. The above-mentioned reflector 240 is fixedly connected to the function key 210, and the fixed connection here can be a detachable connection (such as a snap connection) or a non-detachable connection (such as a bonding). It should be noted that the type of the reflector 240 can be a plane mirror or a prism. The reflector 240 has a reflective surface 241, and the preset angle α formed by the reflective surface 241 and the preset direction X can be but is not limited to 30°, 45°, 60°, etc.

[0071] When the function key 210 moves to the first position Y1, the reflector 240 reflects the light from the first light emitter 221 to the photosensitive device 230, while the light emitted by the second light emitter 222 and the third light emitter 223 cannot reach the photosensitive device 230. When the function key 210 moves to the second position Y2, the reflector 240 reflects the light from the second light emitter 222 to the photosensitive device 230, while the light emitted by the first light emitter 221 and the third light emitter 223 cannot reach the photosensitive device 230. When the function key 210 moves to the third position Y3, the reflector 240 reflects the light from the third light emitter 223 to the photosensitive device 230, while the light emitted by the first light emitter 221 and the second light emitter 222 cannot reach the photosensitive device 230.

[0072] It is understandable that both the light emitting element 220 and the photosensitive device 230 consume electrical energy during their operation. In order to reduce the power consumption of the electronic device 1, the following two control methods may be used, but are not limited to them.

[0073] In one embodiment, the processor 30 is electrically connected to the light emitting element 220, and the processor 30 is used to control the light emitting element 220 to emit light at intervals of a preset time period. Specifically, the processor 30 controls the light emitting element 220 to be turned on and off continuously, and when the light emitting element 220 is in the on state, it emits light, and when the light emitting element 220 is in the off state, it stops emitting light. 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 light emitting element 220 all the time, thereby improving the endurance of the electronic device 1.

[0074] Of course, in a further embodiment, the processor 30 can also control the photosensitive device 230 to turn on and off synchronously and continuously, and the duration of the off state is a preset time period, that is, the processor 30 controls the light-emitting element 220 and the photosensitive device 230 to turn on or off synchronously.

[0075] In another embodiment, the functional component 20 further includes a sensor 250, which is electrically connected to the processor 30 and the function key 210. The sensor 250 is used to generate a sensing signal when a foreign object approaches or touches the function key 210. The processor 30 controls the light emitting element 220 to emit light according to the sensing signal. Specifically, the light emitting element 220 has an on state and an off state, and the processor 30 controls the light emitting element 220 to be on or off through the sensor 250. When the sensor 250 detects that a foreign object approaches or touches, the processor 30 controls the light emitting element 220 to switch from the off state to the on state to emit light, and after the on state is maintained for a certain period of time, the processor 30 controls the light emitting element 220 to switch from the on state to the off state to save power. The sensor 250 can be set on the function key 210, so that it moves with the function key 210, that is, the sensor 250 moves synchronously with the function key 210, so that the sensor 250 can sensitively detect whether the foreign object approaches or touches the function key 210 at any time. As mentioned above, the sensor can be a pressure sensor, a capacitive sensor, an ultrasonic sensor, etc.

[0076] Of course, in a further embodiment, the processor 30 may also control the photosensitive device 230 to turn on and off synchronously with the light-emitting element 220, that is, the processor 30 controls the light-emitting element 220 and the photosensitive device 230 to turn on or off synchronously.

[0077] The following describes the related solutions for the different lights emitted by the multiple light emitting elements 220 .

[0078] In one embodiment, the light emitted by each light emitting element 220 has a different color. The color of the light can be green, yellow, red, purple, etc. The photosensitive device 230 can generate different photosensitive signals when receiving light of different colors, and the processor 30 controls the electronic device 1 to adopt different operation modes according to the different photosensitive signals.

[0079] For example, the color of the light emitted by the first light emitter 221 is the first color, the color of the light emitted by the second light emitter 222 is the second color, and the color of the light emitted by the third light emitter 223 is the third color. When the function key 210 is in the first position Y1, the color of the light received by the photosensitive device 230 is the first color, and a first photosensitive signal is generated, and the processor 30 controls the electronic device 1 to adopt the first mode (such as silent mode) according to the first photosensitive signal. When the function key 210 is in the second position Y2, the color of the light received by the photosensitive device 230 is the second color, and a second photosensitive signal is generated, and the processor 30 controls the electronic device 1 to adopt the second mode (such as vibration mode) according to the second photosensitive signal. When the function key 210 is in the third position Y3, the color of the light received by the photosensitive device 230 is the third color, and a third photosensitive signal is generated, and the processor 30 controls the electronic device 1 to adopt the third mode (such as ringing mode) according to the third photosensitive signal.

[0080] In another embodiment, the light intensity emitted by each light emitting element 220 is different. The photosensitive device 230 can generate different photosensitive signals when receiving light with different light intensities, and the processor 30 controls the electronic device 1 to adopt different operation modes according to the different photosensitive signals.

[0081] For example, the illumination intensity of the light emitted by the first light emitter 221 is the first intensity, the illumination intensity of the light emitted by the second light emitter 222 is the second intensity, and the illumination intensity of the light emitted by the third light emitter 223 is the third intensity. When the function key 210 is in the first position Y1, the illumination intensity received by the photosensitive device 230 is the first intensity, and a first photosensitive signal is generated, and the processor 30 controls the electronic device 1 to adopt the first mode (such as silent mode) according to the first photosensitive signal. When the function key 210 is in the second position Y2, the illumination intensity received by the photosensitive device 230 is the second intensity, and a second photosensitive signal is generated, and the processor 30 controls the electronic device 1 to adopt the second mode (such as vibration mode) according to the second photosensitive signal. When the function key 210 is in the third position Y3, the illumination intensity received by the photosensitive device 230 is the third intensity, and a third photosensitive signal is generated, and the processor 30 controls the electronic device 1 to adopt the third mode (such as ringing mode) according to the third photosensitive signal.

[0082] In summary, in the electronic device 1 provided in this embodiment, the functional component 20 is composed of a function key 210, a light emitting element 220, and a photosensitive device 230, wherein the function key 210 can move along a preset direction X, the light emitting element 220 can emit light, and the photosensitive device 230 can receive the light emitted by the light emitting element 220. When the function key 210 moves along the preset direction X, the light information received by the photosensitive device 230 can be changed, so that the processor 30 can know the current position of the function key 210 according to the photosensitive device 230, and further control the electronic device 1 to adopt the corresponding operation mode. 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 function key 210 moves, the corresponding operation mode can be triggered more sensitively.

[0083] 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 function key, a light emitting element and a photosensitive device, the function key being movably connected to the device body and being movable in a preset direction, the photosensitive device being used to receive light from the light emitting element, and when the function key moves in the preset direction, light information received by the photosensitive device changes; and A processor is used to control the operation mode of the electronic device according to the light information received by the photosensitive device.

2. The electronic device according to claim 1, wherein: The functional component includes a plurality of photosensitive devices disposed in the device body, and the plurality of photosensitive devices are arranged along the preset direction.

3. The electronic device according to claim 2, characterized in that: The light emitting element is connected to the function key, and the light emitting element can follow the function key to move along the preset direction.

4. The electronic device according to claim 2, characterized in that: The functional component also includes a reflector, which is connected to the function key and can move along the preset direction with the function key. The reflector is used to reflect the light from the light-emitting element to the photosensitive device.

5. The electronic device according to claim 2, characterized in that: The light-emitting element is a concentrated light source, and a target device among the plurality of photosensitive devices can receive light from the light-emitting element; the processor is used to control the operation mode of the electronic device according to the target device.

6. The electronic device according to claim 2, characterized in that: The light-emitting element is a divergent light source, and at least one of the multiple photosensitive devices can receive light from the light-emitting element; the processor is also used to compare the light intensities received by all the photosensitive devices, and determine the photosensitive device with the largest light intensity as the target device, and the processor is used to control the operating mode of the electronic device according to the target device.

7. The electronic device according to claim 2, characterized in that: The light-emitting element is a divergent light source, and at least one of the multiple photosensitive devices can receive light from the light-emitting element; the processor is also used to compare the light intensity received by all the photosensitive devices with a preset value, and determine the photosensitive device whose received light intensity is greater than or equal to the preset value as a target device, and the processor is used to control the operating mode of the electronic device according to the target device.

8. The electronic device according to claim 1, wherein: The functional component includes a plurality of the light-emitting elements disposed in the device body, and the plurality of the light-emitting elements are arranged along the preset direction.

9. The electronic device according to claim 8, characterized in that: The photosensitive device is connected to the function key, and the photosensitive device can move along the preset direction following the function key.

10. The electronic device according to claim 8, characterized in that: The functional component also includes a reflector, which is connected to the function key and can move along the preset direction with the function key. The reflector is used to reflect the light from the light-emitting element to the photosensitive device.

11. The electronic device according to claim 8, characterized in that: The light emitted by each of the light emitting elements has a different color, or the light intensity emitted by each of the light emitting elements has a different intensity.

12. The electronic device according to any one of claims 1 to 11, characterized in that: The processor is electrically connected to the light emitting element, and is used to control the light emitting element to emit light at intervals of a preset time period.

13. The electronic device according to any one of claims 1 to 11, characterized in that: The functional component also includes a sensor, which is electrically connected to the processor and the function key. The sensor is used to generate a sensing signal when an external object approaches or touches the function key, and the processor controls the light-emitting element to emit light according to the sensing signal.

14. The electronic device according to any one of claims 1 to 11, characterized in that: The function key is arranged on a side of the device body, and the preset direction is parallel or perpendicular to an extending direction of the side.

15. The electronic device according to any one of claims 1 to 11, characterized in that: The operation modes include a silent mode, a vibrating mode, and a ringing mode.