Electronic device

By adopting compatible design of switch components and in-place detectors in electronic devices, and using magnetic parts and Hall devices to detect preset states, the position detection problem in electronic devices is solved, and hardware cost reduction and space utilization increase are achieved.

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

Patent Information

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

AI Technical Summary

Technical Problem

The components in electronic devices are complex in layout and low in space utilization. It is difficult for the existing technology to effectively detect and control the preset positions of electronic devices, resulting in high hardware costs and low space utilization.

Method used

Using a compatible design of the switch assembly and in-place detector, the first magnetic part and the first Hall device detect whether the electronic device reaches a preset state, and the position is detected by multiplexing the magnetic part-Hall device in the switch assembly without additional Settings to achieve device multiplexing and space saving.

Benefits of technology

It reduces the hardware cost of electronic devices, improves space utilization, simplifies device layout, and improves the functional control accuracy of electronic devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119088169A_ABST
    Figure CN119088169A_ABST
Patent Text Reader

Abstract

The invention provides electronic equipment. The electronic equipment comprises a first part, a second part, a switch assembly and an in-place detector, the second part can move relative to the first part, so that the electronic equipment has a closed state and an unfolded state; the switch assembly is used for controlling a preset function of the electronic equipment and comprises a switch body, a first magnetic part and a first Hall device, the switch body is arranged on the first part and can move relative to the first part, the first magnetic part is borne on the switch body, and the first Hall device is arranged on the first part and is spaced from the first magnetic part; the in-place detector is arranged on the second part, and the in-place detector can be compared along with the movement of the second part relative to the first part. According to the electronic equipment, at least one of the first magnetic piece and the first Hall device in the switch assembly can be reused when in-place detection is carried out, and device layout in the electronic equipment can be facilitated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] With the development of technology, there are more and more components in electronic devices such as mobile phones and tablets, which leads to a more complex layout of components in electronic devices. The space utilization rate of electronic devices needs to be improved. Summary of the invention

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

[0004] Part I;

[0005] a second portion, the second portion being movable relative to the first portion so that the electronic device has a closed state and an unfolded state;

[0006] A switch assembly, the switch assembly is used to control a preset function of an electronic device, the switch assembly comprises a switch body, a first magnetic member and a first Hall device, the switch body is disposed on the first portion and is movable relative to the first portion, the first magnetic member is carried by the switch body, and the first Hall device is disposed on the first portion and spaced apart from the first magnetic member; and

[0007] An in-place detector is arranged on the second part, and the in-place detector can move relative to the switch component as the second part moves relative to the first part. The in-place detector cooperates with the first magnetic member or the first Hall device to detect whether the electronic device reaches a preset state, wherein the preset state includes at least one of a closed state and an unfolded state.

[0008] In the electronic device provided in the embodiment of the present application, the in-place detector cooperates with the first magnetic component or the first Hall device in the switch assembly to detect whether the electronic device has reached a preset position. In other words, when detecting whether the electronic device has reached a preset position, the in-place detector can reuse the first magnetic component or the first Hall device in the switch assembly that controls the preset function of the electronic device in the electronic device, and there is no need to additionally set up a magnetic component-Hall device pair to detect whether the electronic device has reached the preset position, thereby achieving device reuse, that is, achieving a compatible design of the switch assembly and in-place detection, which is beneficial to reducing the hardware cost of the electronic device. In addition, it can also be beneficial to the device layout in the electronic device and to improve the space utilization of the electronic device. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0010] Figure 1 A schematic diagram of an electronic device in a closed state provided by an embodiment of the present application;

[0011] Figure 2 for Figure 1 A schematic diagram of the electronic device shown in FIG. 1 in an unfolded state;

[0012] Figure 3 for Figure 1 A schematic diagram of the position of a switch body in an electronic device shown in ;

[0013] Figure 4 A circuit block diagram of an electronic device provided in one embodiment of the present application;

[0014] Figure 5 for Figure 1 A schematic diagram of the working principle of the switch assembly;

[0015] Figure 6 for Figure 5 A schematic diagram of a curve of a magnetic field signal sensed by a first Hall sensor and a second Hall sensor of a switch assembly of a first magnetic member;

[0016] Figure 7 A circuit block diagram of an electronic device provided in another embodiment of the present application;

[0017] Figure 8 A circuit block diagram of an electronic device provided in yet another embodiment of the present application;

[0018] Fig. 9 A circuit block diagram of an electronic device provided in yet another embodiment of the present application;

[0019] Fig.10 A circuit block diagram of an electronic device provided in accordance with another embodiment of the present application. DETAILED DESCRIPTION

[0020] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. In addition, the reference to "embodiment" or "implementation method" in the present application means that the specific features, structures or characteristics described in conjunction with the embodiments or implementation methods may be included in at least one embodiment of the present application. The appearance of the phrase in various positions 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 in the present application can be combined with other embodiments. It should be noted that, for ease of explanation, in the embodiments of the present application, the same reference numerals represent the same parts, and for the sake of brevity, in different embodiments, the detailed description of the same parts is omitted.

[0021] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.

[0022] With the increasing market demand for screen display areas of electronic products such as mobile phones, electronic products are ushering in an experience revolution brought about by form innovation. The screen form of electronic products has developed from the initial hard screen to a flexible screen, from a small screen to a large screen, and from a static mechanism to a motion mechanism, such as the folding screen, scroll screen, and sliding screen that major mobile phone manufacturers are developing recently. The expansion of the screen display area brings a better large-screen experience. Among them, the electronic device 1 with a sliding screen is an electronic device 1 with a stretchable screen. As an electronic device 1 with a new screen form, the screen of the electronic device 1 can be stretched and shrunk to achieve a change in the screen display area. The embodiment of the present application provides an electronic device 1, and the electronic device 1 can be but is not limited to a foldable electronic device 1, or an electronic device 1 with a sliding screen. The electronic device 1 with a sliding screen can also be understood as an electronic device 1 with a stretchable screen, which is an electronic device 1 with a relatively novel form, and the screen of the electronic device 1 can be stretched and shrunk to achieve a change in the screen display area. In the embodiment of the present application, the electronic device 1 is introduced as an electronic device 1 with a sliding screen. It can be understood that it should not constitute a limitation on the embodiment of the present application.

[0023] See also Figure 1 and Figure 2 , Figure 1A schematic diagram of an electronic device in a closed state provided by an embodiment of the present application; Figure 2 for Figure 1 Schematic diagram of an electronic device in an unfolded state as shown in . The electronic device 1 includes a first portion 110, a second portion 120, a switch assembly 130 and an in-position detector 140. The second portion 120 can move relative to the first portion 110 so that the electronic device 1 has a closed state and an unfolded state. The switch assembly 130 is used to control a preset function of the electronic device 1. The switch assembly 130 includes a switch body 131, a first magnetic member 132 and a first Hall device 133, the switch body 131 is disposed on the first portion 110 and can move relative to the first portion 110, the first magnetic member 132 is carried on the switch body 131, and the first Hall device 133 is disposed on the first portion 110 and is spaced apart from the first magnetic member 132. The in-place detector 140 is disposed on the second part 120. The in-place detector 140 can move relative to the switch component 130 as the second part 120 moves relative to the first part 110. The in-place detector 140 cooperates with the first magnetic member 132 or the first Hall device 133 to detect whether the electronic device 1 reaches a preset state, wherein the preset state includes at least one of a closed state and an unfolded state.

[0024] In this embodiment, the first part 110 is a fixed part of the electronic device 1, and the second part 120 is a movable part of the electronic device 1. It can be understood that in other embodiments, the first part 110 is a movable part of the electronic device 1, and the second part 120 is a fixed part of the electronic device 1.

[0025] Specifically, the electronic device 1 provided in this embodiment is introduced as follows. The first part 110 includes a first shell 111, and the second part 120 includes a second shell 121, and the second shell 121 can slide relative to the first shell 111. In this embodiment, the first shell 111 is fixed and the second shell 121 can slide, so the first shell 111 is also called a fixed shell, and the second shell 121 is also called a sliding shell. Of course, in other embodiments, when the first part 110 is the movable part of the electronic device 1 and the second part 120 is the fixed part of the electronic device 1, the second shell 121 is fixed and the first shell 111 slides.

[0026] In this embodiment, the electronic device 1 further includes a driving mechanism (not shown), which is used to drive the second part 120 to slide relative to the first part 110. In another embodiment, the second housing 121 can slide relative to the first housing 111 manually by the user.

[0027] The first housing 111 can be used as a shell of the electronic device 1, and components such as a battery and a mainboard can be arranged inside the first housing 111. The second housing 121 includes a first end 1211 and a second end 1212 that are arranged opposite to each other. The first end 1211 is closer to the first housing 111 than the second end 1212. The first end 1211 can also be understood as a sliding end, and the second end 1212 can be understood as a free end. The second housing 121 can slide relative to the first housing 111, that is, the second end 1212 can slide in a direction close to or away from the first housing 111. In the diagram, D1 represents the direction in which the second housing 121 can slide relative to the first housing 111.

[0028] In addition, the electronic device 1 further includes a rotating member (not shown) and a flexible member 180. The rotating member is a member capable of moving around its own axis, and can be disposed in a receiving space formed by the first shell 111 and the second shell 121, and can be installed at the second end 1212. It can be understood that the number of the rotating members can be one or more. The flexible member 180 is a flexible and bendable structural member, and compared with a rigid member, the flexible member 180 can be bent to a certain extent. The flexible member 180 can be, but is not limited to, a flexible member with corresponding functions such as a flexible display screen, a flexible touch screen, and a flexible touch display screen. One end of the flexible member 180 can be fixed to one side of the first shell 111 using, but not limited to, a colloid, and the other end of the flexible member 180 extends along the first shell 111 to one side of the second shell 121, and then reverses to the other side of the second shell 121 through a rotating member disposed at the second end 1212 of the second shell 121. This portion of the flexible member 180 is in contact with the second shell 121 and is not fixed, and the other end of the flexible member 180 is disposed in the receiving space.

[0029] Through the arrangement of the above components, the flexible member 180 on one side of the first shell 111 is fixed and cannot be moved, and the flexible member 180 on one side of the second shell 121 is flat on both sides but not fixed, and the flexible member 180 can change the front display area with the movement of the second shell 121. When the second shell 121 is unfolded relative to the first shell 111, the flexible member 180 on the second shell 121 can slide with the second end 1212, so that the second end 1212 slides the flexible member 180 arranged on the other side of the second shell 121 out of the receiving space during the sliding process, that is, moves from the back to the front, thereby increasing the area of ​​the flexible member 180 exposed on the front of the electronic device 1. When the second shell 121 is closed relative to the first shell 111, part of the flexible member 180 on one side of the second shell 121 retracts following the second shell 121, thereby reducing the area of ​​the flexible member 180 exposed on the front of the electronic device 1. It can be understood that the above is only a description of a specific form of the electronic device 1, and should not be understood as a limitation of the electronic device 1 provided in this application.

[0030] Based on the above arrangement, when the electronic device 1 is unfolded, the second shell 121 can slide in a direction away from the first shell 111, and the second shell 121 can drive one end of the flexible member 180 to slide in a direction away from the first shell 111. The other end of the flexible member 180 slides in a direction opposite to the sliding direction of the second shell 121, thereby increasing the area displayed by the flexible member 180. When the second shell 121 is unfolded and slid to the maximum distance relative to the first shell 111, the display area of ​​the flexible member 180 is the largest, and at this time, the state of the electronic device 1 is also called the unfolded state. When the second shell 121 is closed relative to the first shell 111 and slides to the maximum distance, the area of ​​the flexible member 180 exposed in the electronic device 1 is the smallest, and at this time, the state of the electronic side is called the closed state. It can be understood that, in another dimension, the closed state of the electronic device 1 is the state in which the first end 1211 of the second shell 121 in the electronic device 1 is closest to the first shell 111; the unfolded state of the electronic device 1 is the state in which the first end 1211 of the second shell 121 in the electronic device 1 is farthest from the first shell 111. It can be understood that, in another dimension, the closed state of the electronic device 1 is the state in which the flexible member 180 in the electronic device 1 has the smallest exposed area; correspondingly, the unfolded state of the electronic device 1 is the state in which the flexible member 180 in the electronic device 1 has the largest exposed area. It can be understood that the electronic device 1 also has an intermediate state between the closed state and the unfolded state.

[0031] It can be understood that in one embodiment, in addition to the first shell 111, the first part 110 also includes a support structure for supporting the flexible member 180; in addition to the second shell 121, the second part 120 also includes a support structure for supporting the flexible member 180. The description of the first part 110 and the second part 120 in the above embodiment is only an example and should not be understood as limiting the embodiments of the present application.

[0032] The switch component 130 is used to control the preset function of the electronic device 1. For example, the electronic device 1 has a reminder function, that is, the preset function of the electronic device 1 is the reminder function, and the switch component 130 is a switch component 130 that can control the reminder function of the electronic device 1. For example, the reminder function includes mute, vibration, ringing, etc., and accordingly, the switch component 130 can control whether the electronic device 1 is mute, vibrate, or ring. For another example, the electronic device 1 has a shooting function, that is, the preset function of the electronic device 1 is the shooting function, and the switch component 130 is a switch component 130 that can control the shooting function of the electronic device 1. For example, the shooting function includes time-lapse shooting, slow motion, panorama, etc. In other embodiments, the switch component 130 can control the functions of the electronic device 1 and music playing (for example, pause, previous song, next song); or control the up and down scroll bar function of the display interface of the electronic device 1; or switch the function of the application icon position, etc. This application does not limit the preset function of the switch component 130 to control the electronic device 1.

[0033] The switch body 131 may be, but is not limited to, a mechanical button, and the switch body 131 is disposed on the first portion 110 and is movable relative to the first portion 110. The first magnetic member 132 is carried on the switch body 131, and the first magnetic member 132 may move as the switch body 131 moves relative to the first portion 110. The first magnetic member 132 is carried on the switch body 131 in a manner that is, but is not limited to, the first magnetic member 132 is fixedly mounted on the switch body 131, or is detachably mounted on the switch body 131. The first Hall device 133 is disposed on the contrast and adjacent to the first magnetic member 132, and the first Hall device 133 is spaced apart from the first magnetic member 132. The preset function of the switch assembly 130 controlling the electronic device 1 will be described in detail later.

[0034] The first magnetic member 132 may be a permanent magnet capable of generating a magnetic field signal, or a magnet (ie, an electromagnet) that generates a magnetic field signal when powered on, etc., which is not limited in the present embodiment.

[0035] In one embodiment, see Figure 3 and Figure 4 , Figure 3 for Figure 1 The schematic diagram of the position of the switch body in the electronic device shown in FIG. Figure 3 (a) in Figure 1 A schematic diagram of the identification of the electronic device shown; Figure 3 (b) in Figure 3 1 is an enlarged schematic diagram of the electronic device 1 shown in (a), wherein the switch body 131 is at a set position a compared to the first portion 110; Figure 3 (c) is an enlarged schematic diagram of the switch body 131 at the setting position b compared to the first portion 110; Figure 3 (d) is an enlarged schematic diagram of the switch body 131 at the setting position c compared to the first portion 110 . Figure 4 This is a circuit block diagram of an electronic device provided in one embodiment of the present application. The first Hall device 133 is used to sense the magnetic field signal of the first magnetic member 132 to obtain a second detection signal. The switch body 131 has multiple setting positions compared to the first part 110. When the switch body 131 is in different setting positions compared to the first part 110, the second detection signal is different. Please refer to Figure 5 The electronic device 1 also includes a functional component 160 and a processor 150. The functional component 160 is used to implement the preset function of the electronic device 1. The processor 150 is also used to control the functional component 160 of the electronic device 1 according to the second detection signal, and different second detection signals control the functional component 160 to perform different functions.

[0036] When the switch body 131 is at a different position compared to the first part 110, the distance between the first magnetic member 132 and the first Hall device 133 is different, so the second detection signal obtained by the first Hall device 133 sensing the magnetic field signal of the first magnetic member 132 is also different. In the schematic diagram of this embodiment, the switch body 131 is illustrated by taking the example of having three setting positions compared to the first part 110. The three setting positions are respectively named setting position a, setting position b and setting position c. When the switch body 131 is in a set position a compared to the first part 110, the first Hall sensor 1331 detects the magnetic field signal of the first magnetic part 132 to obtain a second detection signal a, and controls the functional component 160 to implement the preset function a; correspondingly, when the switch body 131 is in a set position b compared to the first part 110, the first Hall sensor 1331 detects the magnetic field signal of the first magnetic part 132 to obtain a second detection signal b, and controls the functional component 160 to implement the preset function b; correspondingly, when the switch body 131 is in a set position c compared to the first part 110, the first Hall sensor 1331 detects the magnetic field signal of the first magnetic part 132 to obtain a second detection signal c, and controls the functional component 160 to implement the preset function c.

[0037] When the switch body 131 in the electronic device 1 is in three different setting positions compared to the first part 110, the switch assembly 130 is also called a three-stage key. It can be understood that in other embodiments, when the switch body 131 in the electronic device 1 is in N (such as 2, 4 or greater than or equal to 4) different setting positions compared to the first part 110, the switch assembly 130 is also called an N-stage key.

[0038] Please continue reading Figure 5 and Figure 6 , Figure 5 for Figure 1 A schematic diagram of the working principle of the switch assembly; Figure 6 for Figure 5Schematic diagram of a curve of a magnetic field signal sensed by the first Hall sensor and the second Hall sensor of the switch assembly in the first magnetic member. In the present embodiment, the first Hall device 133 includes a first Hall sensor 1331 (HALL 1) and a second Hall sensor 1332 (HALL 2), and the first Hall sensor 1331 and the second Hall sensor 1332 are arranged at intervals on the first part 110. In the schematic diagram of the present embodiment, the first Hall sensor 1331 and the second Hall sensor 1332 are arranged on the circuit board 112 of the first part 110 as an example for illustration. The circuit board 112 can be, but is not limited to, a printed circuit board (PCB). The first magnetic member 132 can move within a range that can be sensed by both the first Hall sensor 1331 and the second Hall sensor 1332. For example, the first Hall sensor 1331 and the second Hall sensor 1332 are arranged at intervals along a preset direction D1, and the first magnetic member 132 can move in the preset direction D1. In the figure, the magnetic lines of force of the magnetic field of the first magnetic member 132 are represented by dotted lines. It can be understood that the magnetic lines of force in the first magnetic member 132 in the figure are only for illustration and should not be understood as a limitation to the present application.

[0039] The first Hall sensor 1331 senses the magnetic field signal of the first magnetic member 132 to obtain a first signal B1, which is marked as B1 in the figure, and the second Hall sensor 1332 senses the magnetic field signal of the second magnetic member 140b to obtain a second signal B2, which is marked as B2 in the figure, and the position of the first magnetic member 132 is obtained according to the difference between the first signal B1 and the second signal B2 (i.e., B1-B2, marked as B1-B2 in the figure). Since the first Hall sensor 1331 and the second Hall sensor 1332 are arranged at intervals in the first part 110, and the first magnetic member 132 is carried by the switch body 131, the position of the first magnetic member 132 relative to the first Hall sensor 1331 and the second Hall sensor 1332 represents which preset position the switch body 131 is in compared to the first part 110.

[0040] Depend on Figure 6 It can be seen that when the first Hall sensor 1331 is used alone to detect the magnetic field of the first magnetic component 132, or when the second Hall sensor 1332 is used alone to detect the magnetic field of the first magnetic component 132, the curve is not linear, while the curve when the first Hall sensor 1331 and the second Hall sensor 1332 are used to detect the magnetic field of the first magnetic component 132 is linear, and therefore, the detection of the position of the first magnetic component 132 is more accurate.

[0041] It should be noted that in this embodiment, the first Hall device 133 includes a first Hall sensor 1331 and a second Hall sensor 1332. In other embodiments, the first Hall device 133 may also include only one Hall device (for example, the first Hall sensor 1331 or the second Hall sensor 1332).

[0042] The in-place detector 140 is disposed on the second portion 120. When the second portion 120 moves relative to the first portion 110, the second portion 120 drives the in-place detector 140 to move relative to the first portion 110. For example, when the second portion 120 moves toward a direction close to the first portion 110, the in-place detector 140 also moves toward a direction close to the first portion 110. Since the switch assembly 130 is disposed on the first portion 110, when the in-place detector 140 moves toward a direction close to the first portion 110, it also moves toward a direction close to the switch assembly 130. Accordingly, when the second portion 120 moves toward a direction away from the first portion 110, the in-place detector 140 also moves toward a direction away from the first portion 110. Since the switch assembly 130 is disposed on the first portion 110, when the in-place detector 140 moves toward a direction away from the first portion 110, it also moves toward a direction away from the switch assembly 130. A specific implementation of the cooperation between the in-place detector 140 and the first magnetic member 132 or the first Hall device 133 to detect whether the electronic device 1 reaches a preset state will be introduced later.

[0043] In the electronic device 1 provided in the embodiment of the present application, the in-place detector 140 cooperates with the first magnetic member 132 or the first Hall device 133 in the switch assembly 130 to detect whether the electronic device 1 has reached a preset position. In other words, when detecting whether the electronic device 1 has reached a preset position, the in-place detector 140 can reuse the first magnetic member 132 or the first Hall device 133 in the switch assembly 130 that controls the preset function of the electronic device 1 in the electronic device 1, and there is no need to set up an additional magnetic member-Hall device pair to detect whether the electronic device 1 has reached the preset position, thereby achieving device reuse, that is, achieving a compatible design of the switch assembly 130 and in-place detection, which is beneficial to reducing the hardware cost of the electronic device 1. In addition, it can also be beneficial to the device layout in the electronic device 1 and to improve the space utilization of the electronic device 1.

[0044] See also Figure 7 , Figure 7A circuit block diagram of an electronic device provided in another embodiment of the present application. The in-place detector 140 includes a second Hall device 140a, and the second Hall device 140a is used to detect the magnetic field signal of the first magnetic member 132 to obtain a first detection signal. The electronic device 1 also includes a processor 150, and the processor 150 is electrically connected to the second Hall device 140a, and is used to determine whether the electronic device 1 reaches the preset state according to the first detection signal.

[0045] In this embodiment, the in-place detector 140 includes a second Hall device 140a, and therefore, the in-place detector 140 is also referred to as an in-place detection Hall device. The second Hall device 140a detects the magnetic field signal of the first magnetic member 132 to obtain a first detection signal. It can be seen that, in this embodiment, the in-place detector 140 reuses the first magnetic member 132 in the switch assembly 130, which is beneficial to reducing the cost of the electronic device 1. In addition, it can also save the device layout space in the electronic device 1, which is beneficial to improving the space utilization rate of the electronic device 1.

[0046] In this embodiment, the in-place detector 140 is used as an example to detect whether the electronic device 1 reaches a closed state. Since the first magnetic member 132 is carried by the switch body 131, the switch body 131 is arranged on the first part 110, the in-place detector 140 is arranged on the second part 120, and the in-place detector 140 includes a second Hall device 140a. Therefore, when the second part 120 moves relative to the first part 110, the second Hall device 140a moves relative to the first magnetic member 132. Specifically, when the second part 120 moves in a direction close to the first part 110, the second Hall device 140a moves in a direction close to the first magnetic member 132; when the second part 120 moves in a direction away from the first part 110, the second Hall device 140a moves in a direction away from the first magnetic member 132. When the distance between the second Hall device 140a and the first magnetic member 132 is different, the first detection signal obtained by the magnetic field signal of the first magnetic member 132 detected by the second Hall device 140a is different. The greater the distance between the second Hall device 140a and the first magnetic member 132, the smaller the magnetic field signal of the first magnetic member 132 detected by the second Hall device 140a; accordingly, the smaller the distance between the second Hall device 140a and the first magnetic member 132, the greater the magnetic field of the first magnetic member 132 detected by the second Hall device 140a, and when the electronic device 1 reaches the closed state, the magnetic field of the first magnetic member 132 detected by the second Hall device 140a reaches the maximum value. Therefore, the processor 150 can determine whether the electronic device 1 reaches the preset state according to the first detection signal.

[0047] Specifically, in one embodiment, the processor 150 determines whether the electronic device 1 has reached the preset state according to the first detection signal, which may be, but is not limited to, the following method. The processor 150 compares the magnetic field strength represented by the first detection signal with the preset magnetic field strength, and when the magnetic field strength represented by the first detection signal is equal to the preset magnetic field strength, the processor 150 determines that the electronic device 1 has reached the preset state. The preset magnetic field strength may be a value pre-stored in a storage device of the electronic device 1, representing the magnetic field strength value when the electronic device 1 is in the preset state.

[0048] In this embodiment, the first magnetic member 132 may be a permanent magnet. It is understandable that in other embodiments, the first magnetic member 132 may also be a magnet that generates a magnetic field signal when powered on.

[0049] In this embodiment, when detecting whether the electronic device 1 reaches the preset state (taking the preset state as a closed state as an example), when the electronic device 1 reaches the closed state (that is, the second part 120 is retracted to the closed position relative to the first part 110), the second Hall device 140a determines whether the electronic device 1 has reached the closed state (that is, retracted into position) by detecting the magnetic field value of the magnetic signal of the first magnetic part 132 in the switch assembly 130 (which can be a three-stage button in this embodiment).

[0050] See also Figure 8 , Figure 8 A circuit block diagram of an electronic device provided in another embodiment of the present application. The in-place detector 140 includes a second magnetic member 140b, and the first Hall device 133 is used to detect the magnetic field signal of the second magnetic member 140b to obtain a first detection signal. The electronic device 1 also includes a processor 150, which is electrically connected to the first Hall device 133 and is used to determine whether the electronic device 1 has reached the preset state according to the first detection signal.

[0051] In this embodiment, the in-place detector 140 includes a second magnetic member 140b, and therefore, the in-place detector 140 is also referred to as an in-place sensing magnet. The first Hall device 133 is used to detect the magnetic field signal of the second magnet to obtain a first detection signal. It can be seen that, in this embodiment, the in-place detector 140 reuses the first Hall device 133 in the switch assembly 130, which is beneficial to reducing the cost of the electronic device 1. In addition, it can also save the device layout space in the electronic device 1, which is beneficial to improving the space utilization rate of the electronic device 1.

[0052] The following is a detailed description of some situations involved in the implementation of the present application. When the first magnetic member 132 is a magnet that generates a magnetic field signal when powered on, the first magnetic member 132 is powered off so that it cannot generate a magnetic field signal, and the second magnetic member 140b generates a magnetic field signal, and the first Hall device 133 can only detect the magnetic field signal of the second magnetic member 140b. In another embodiment, whether the first magnetic member 132 is a permanent magnet or a magnet that generates a magnetic field signal when powered on, the first magnetic member 132 generates a magnetic field signal, the second magnetic member 140b generates a magnetic field signal, and the magnetic field signal generated by the second magnetic member 140b affects the magnetic field signal generated by the first magnetic member 132 in the switch assembly 130. At this time, the first Hall device 133 detects the magnetic field signal of the second magnetic member 140b and detects the magnetic field signal of the first magnetic member 132. It can be seen that the first detection signal includes the magnetic field signal of the second magnetic member 140b and includes the magnetic field signal of the first magnetic member 132.

[0053] In this embodiment, when detecting whether the electronic device 1 reaches the preset state (taking the preset state as the closed state as an example), the first magnetic member 132 generates a magnetic field signal: when the electronic device 1 reaches the closed state, that is, retracted to the closed position, the in-position sensing magnet affects the magnetic field value of the first magnetic member 132 in the switch component 130 (which can be a three-stage button in this embodiment), so that the first Hall device 133 in the switch component 130 determines whether the electronic device 1 is retracted to the closed state (that is, whether it is retracted into position) according to the detected magnetic field signal.

[0054] See also Fig. 9 , Fig. 9 A circuit block diagram of an electronic device provided for another embodiment of the present application. The second magnetic member 140b includes a coil 140c. When the second portion 120 moves relative to the first portion 110, the processor 150 also controls the coil 140c to be energized to generate a magnetic field signal, and also controls the first Hall device 133 to detect the magnetic field signal of the coil 140c to obtain the first detection signal. When it is determined according to the first detection signal that the magnetic field signal strength of the second magnetic member 140b is greater than or equal to the threshold strength, the processor 150 determines that the electronic device 1 has reached the preset state.

[0055] The second magnetic body includes a coil 140c, and the coil 140c can generate a magnetic field signal when it is energized, so the second magnetic body is an electromagnet. In addition, when the winding method of the coil 140c is constant, the direction of the magnetic field signal generated by the coil 140c can be changed by controlling the direction of the current flowing through the coil 140c; the magnitude of the magnetic field signal generated by the coil 140c can be changed by controlling the magnitude of the current flowing through the coil 140c.

[0056] In this embodiment, the second magnetic member 140b includes a coil 140c, the coil 140c is energized to generate a magnetic field signal, and the first Hall device 133 also detects the magnetic field signal of the coil 140c to obtain a first detection signal, and the processor 150 determines whether the electronic device 1 reaches the preset state according to the first detection signal. It can be seen that the in-place detector 140 reuses the first Hall device 133 in the switch component 130, which is conducive to reducing the cost of the electronic device 1. In addition, it can also save the device layout space in the electronic device 1, which is conducive to improving the space utilization rate of the electronic device 1.

[0057] The processor 150 may control the coil 140c to be energized in a manner that is, but not limited to, controlling the coil 140c to be energized to generate a magnetic field signal with a constant magnetic field value, or an alternating magnetic field signal that changes according to a preset rule, and the implementation manner of the present application does not limit this.

[0058] In one embodiment, the electronic device 1 further includes a driving mechanism, which is used to drive the second part 120 to move relative to the first part 110 under the control of the processor 150. When the processor 150 controls the second part 120 to move relative to the first part 110, the processor 150 also controls the coil 140c to be energized, and the coil 140c is energized to generate a magnetic field signal. The processor 150 controls the first Hall device 133 to detect the magnetic field signal of the coil 140c to obtain the first detection signal.

[0059] In this embodiment, the in-place detector 140 is used as an example to detect whether the electronic device 1 reaches a closed state. Since the first magnetic member 132 is carried by the switch body 131, the switch body 131 is arranged on the first part 110, the in-place detector 140 is arranged on the second part 120, and the in-place detector 140 includes a coil 140c, when the second part 120 moves relative to the first part 110, the coil 140c moves relative to the first magnetic member 132. Specifically, when the second part 120 moves in a direction close to the first part 110, the coil 140c moves in a direction close to the first magnetic member 132; when the second part 120 moves in a direction away from the first part 110, the coil 140c moves in a direction away from the first magnetic member 132. When the distance between the coil 140c and the first magnetic member 132 is different, the first detection signal obtained by the magnetic field signal of the first magnetic member 132 detected by the coil 140c is different. The greater the distance between the coil 140c and the first magnetic member 132, the smaller the magnetic field signal of the first magnetic member 132 detected by the coil 140c; accordingly, the smaller the distance between the coil 140c and the first magnetic member 132, the greater the magnetic field of the first magnetic member 132 detected by the coil 140c, and when the electronic device 1 reaches the closed state, the magnetic field of the first magnetic member 132 detected by the coil 140c reaches the maximum value. Therefore, when it is determined according to the first detection signal that the magnetic field signal strength of the second magnetic member 140b is greater than or equal to the threshold strength, the processor 150 determines that the electronic device 1 reaches the preset state.

[0060] See also Figure 1 , Figure 2 and Fig.10 , Fig.10 This is a circuit block diagram of an electronic device provided in another embodiment of the present application. The first Hall device 133 includes a first Hall sensor 1331 and a second Hall sensor 1332 , and the first Hall sensor 1331 and the second Hall sensor 1332 are arranged at intervals.

[0061] The processor 150 controls the first Hall sensor 1331 and the second Hall sensor 1332 to respectively detect the magnetic field signal of the coil 140c, wherein the first Hall sensor 1331 detects the magnetic field signal of the coil 140c to obtain a first sub-detection signal, and the second Hall sensor 1332 detects the magnetic field signal of the coil 140c to obtain a second sub-detection signal, and the first detection signal is obtained by the first sub-detection signal and the second sub-detection signal.

[0062] In one embodiment, the processor 150 controls the first Hall sensor 1331 and the second Hall sensor 1332 to simultaneously detect the magnetic field signal of the coil 140c. The first detection signal is obtained by the first sub-detection signal and the second sub-detection signal in a manner that may be, but is not limited to, the first detection signal is equal to the difference obtained by subtracting the second sub-detection signal from the first sub-detection signal; or the first detection signal is equal to the difference obtained by subtracting the first sub-detection signal from the second sub-detection signal. From the above introduction that the first Hall device 133 includes the first Hall sensor 1331 and the second Hall sensor 1332, it can be known that the first detection signal is obtained by the first sub-detection signal and the second sub-detection signal, which also improves the detection accuracy.

[0063] In another embodiment, the processor 150 controls the first Hall sensor 1331 and the second Hall sensor 1332 to detect (ie, poll) the magnetic field signal of the coil 140 c in turn.

[0064] Furthermore, in one embodiment, when the second portion 120 moves relative to the first portion 110 , the processor 150 controls the direction of the magnetic field signal generated by the coil 140 c so that the coil 140 c and the first magnetic member 132 are attracted to each other.

[0065] When the second part 120 moves relative to the first part 110, taking the second part 120 sliding toward the first part 110 as an example, the processor 150 controls the direction of the magnetic field signal generated by the coil 140c so that the coil 140c and the magnetic member are attracted to each other, thereby ensuring that when the electronic device 1 reaches the preset state, there is a small gap or even no gap between the second part 120 and the first part 110, and the loose closure of the electronic device 1 caused by the sliding of the second part 120 relative to the first part 110 can be reduced or even avoided. In other words, the embodiment of the present application can ensure that when the moving end and the top end of the electronic device 1 are closed, there is a small gap or even no gap between the moving end and the fixed end, which helps to improve the user experience.

[0066] In one implementation, when the electronic device 1 is in the preset state, the processor 150 controls the coil 140c to be powered off.

[0067] Further, in one embodiment, when the electronic device 1 is in the preset state, the processor 150 controls the coil 140c to be powered off (not powered), thereby reducing or even avoiding the influence of the coil 140c on the function of the switch component 130 itself. For example, when the switch component 130 is a three-stage button, when the electronic device 1 is in a closed state, the processor 150 controls the coil 140c to be powered off, which will not affect the magnetic field detection of the magnetic field signal of the first magnetic member 132 by the first Hall device 133 of the three-stage button.

[0068] In one embodiment, when the second portion 120 moves toward the direction approaching the first portion 110 , the processor 150 controls the current in the coil 140 c to become larger.

[0069] In this embodiment, the processor 150 controls the direction of the current in the coil 140c to remain unchanged, and only adjusts the magnitude of the current in the coil 140c. When the direction of the current in the coil 140c remains unchanged, the direction of the magnetic field signal generated by the coil 140c remains unchanged; when the magnitude of the current in the coil 140c changes, the magnitude of the magnetic field signal generated by the coil 140c changes.

[0070] For example, when the second portion 120 moves toward the first portion 110: when the gap between the second portion 120 and the first portion 110 is a first distance d 1 , the processor 150 controls the current in the coil 140c to be a first current I 1 When the gap between the second portion 120 and the first portion 110 is a second distance d 2, the processor 150 controls the current in the coil 140c to be the second current I 2 , where d 2 <d 1 , and I 2 >I 1 .

[0071] In the electronic device 1 provided in this embodiment, when the second part 120 moves toward the direction approaching the first part 110, the processor 150 controls the current in the coil 140c to be larger, and the magnetic field signal generated by the coil 140c becomes larger, so that the first Hall device 133 can sense the proximity of the coil 140c to the first part 110, and can improve the signal-to-noise ratio to improve the detection accuracy.

[0072] Furthermore, in one embodiment, the processor 150 controls the coil 140c to generate an alternating magnetic field signal, and when the second portion 120 moves toward the direction close to the first portion 110, the processor 150 controls the magnetic field signal generated by the coil 140c to change at a faster and faster frequency.

[0073] In one embodiment, the processor 150 controls the coil 140c to generate an alternating magnetic field signal by controlling the flow direction of the current in the coil 140c, that is, the current in the coil 140c is an alternating current. In this embodiment, the processor 150 controls the coil 140c to generate an alternating magnetic field. This can be regarded as an alternating magnetic field solution.

[0074] When the second portion 120 moves toward the direction approaching the first portion 110 , the processor 150 controls the frequency of change of the magnetic field signal generated by the coil 140 c to become faster and faster.

[0075] For example, when the second portion 120 moves toward the first portion 110: when the gap between the second portion 120 and the first portion 110 is a first distance d 1 , the processor 150 controls the frequency of the alternating current in the coil 140c to be a first frequency f 1 When the gap between the second portion 120 and the first portion 110 is a second distance d 2 , the processor 150 controls the frequency of the alternating current in the coil 140c to be a second frequency f 2 , where d 2 <d 1 , and f 2 >f 1 .

[0076] In the electronic device 1 provided in this embodiment, when the second part 120 moves toward the direction approaching the first part 110, the processor 150 controls the frequency of change of the magnetic field signal generated by the coil 140c to be faster and faster, so that the magnetic field signal generated by the coil 140c changes faster and faster, so that the first Hall device 133 can sense the proximity of the coil 140c to the first part 110, and can improve the signal-to-noise ratio to improve the detection accuracy.

[0077] Furthermore, when the second part 120 moves toward the direction close to the first part 110, the processor 150 controls the first Hall device 133 to detect the magnetic field signal generated by the coil 140c at a faster and faster frequency. In this way, the accuracy of the first Hall device 133 sensing the proximity of the coil 140c to the first part 110 can be further improved, and the signal-to-noise ratio can be improved to improve the detection accuracy.

[0078] When the first Hall device 133 includes a first Hall sensor 1331 and a second Hall sensor 1332 , when the second part 120 moves toward a direction close to the first part 110 , the processor 150 increases the frequency of the first Hall sensor 1331 and the second Hall sensor 1332 detecting the magnetic field signal generated by the coil 140 c.

[0079] In summary, in the electronic device 1 provided in the embodiment of the present application, the in-place detector 140 cooperates with the first magnetic member 132 or the first Hall device 133 in the switch assembly 130 to detect whether the electronic device 1 has reached a preset position. In other words, when detecting whether the electronic device 1 has reached a preset position, the in-place detector 140 can reuse the first magnetic member 132 or the first Hall device 133 in the switch assembly 130 that controls the preset function of the electronic device 1 in the electronic device 1, and there is no need to additionally set up a magnetic member-Hall device pair to detect whether the electronic device 1 has reached the preset position, thereby achieving device reuse, that is, achieving a compatible design of the switch assembly 130 and in-place detection, which is beneficial to reducing the hardware cost of the electronic device 1. In addition, it can also save device layout space in the electronic device 1, which is beneficial to improving the space utilization rate of the electronic device 1.

[0080] In addition, in the embodiment of the present application, the switch assembly 130 can be arranged at the fixed part of the electronic device 1, and the in-place detector 140 can be arranged at the movable part of the electronic device 1. In other embodiments, the switch assembly 130 can be arranged at the movable part of the electronic device 1, or at the fixed part of the electronic device 1. It can be seen that the positions of the switch assembly 130 and the in-place detector 140 are flexible.

[0081] In addition, the embodiments of the present application can detect whether the electronic device 1 has reached a closed state (ie, whether it has been retracted into place), and can also detect whether the electronic device 1 has reached an unfolded state (ie, whether it has been unfolded into place).

[0082] The above is part of the implementation methods of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications are also considered to be within the scope of protection of the present application.

Claims

1. An electronic device, characterized in that: The electronic device comprises: Part I; a second portion, the second portion being movable relative to the first portion so that the electronic device has a closed state and an unfolded state; A switch assembly, the switch assembly is used to control a preset function of an electronic device, the switch assembly comprises a switch body, a first magnetic member and a first Hall device, the switch body is disposed on the first portion and is movable relative to the first portion, the first magnetic member is carried by the switch body, and the first Hall device is disposed on the first portion and spaced apart from the first magnetic member; and An in-place detector is arranged on the second part, and the in-place detector can move relative to the switch component as the second part moves relative to the first part. The in-place detector cooperates with the first magnetic member or the first Hall device to detect whether the electronic device reaches a preset state, wherein the preset state includes at least one of a closed state and an unfolded state.

2. The electronic device according to claim 1, wherein: The in-place detector comprises a second Hall device, and the second Hall device is used to detect the magnetic field signal of the first magnetic member to obtain a first detection signal; The electronic device further includes a processor, which is electrically connected to the second Hall device and is used to determine whether the electronic device reaches the preset state according to the first detection signal.

3. The electronic device according to claim 1, wherein: The in-place detector comprises a second magnetic member, and the first Hall device is used to detect a magnetic field signal of the second magnetic member to obtain a first detection signal; The electronic device further includes a processor, which is electrically connected to the first Hall device and is used to determine whether the electronic device reaches the preset state according to the first detection signal.

4. The electronic device according to claim 3, characterized in that: The second magnetic member comprises a coil; When the second part moves relative to the first part, the processor further controls the coil to be energized to generate a magnetic field signal, and further controls the first Hall device to detect the magnetic field signal of the coil to obtain the first detection signal; When it is determined according to the first detection signal that the magnetic field signal strength of the second magnetic member is greater than or equal to a threshold strength, the processor determines that the electronic device reaches the preset state.

5. The electronic device according to claim 4, characterized in that: The first Hall device includes a first Hall sensor and a second Hall sensor, and the first Hall sensor and the second Hall sensor are arranged at intervals; The processor controls the first Hall sensor and the second Hall sensor to respectively detect the magnetic field signal of the coil, wherein the first Hall sensor detects the magnetic field signal of the coil to obtain a first sub-detection signal, and the second Hall sensor detects the magnetic field signal of the coil to obtain a second sub-detection signal, and the first detection signal is obtained by the first sub-detection signal and the second sub-detection signal.

6. The electronic device according to claim 4, characterized in that: When the second part moves relative to the first part, the processor controls the direction of the magnetic field signal generated by the coil so that the coil is attracted to the first magnetic member.

7. The electronic device according to claim 6, characterized in that: When the electronic device is in the preset state, the processor controls the coil to be powered off.

8. The electronic device according to claim 4, characterized in that: When the second part moves toward the direction approaching the first part, the processor controls the current in the coil to become larger.

9. The electronic device according to claim 4, characterized in that: The processor controls the coil to generate an alternating magnetic field signal, and when the second part moves toward a direction close to the first part, the processor controls the magnetic field signal generated by the coil to change at a faster and faster frequency.

10. The electronic device according to claim 1, wherein: The first Hall device is used to sense the magnetic field signal of the first magnetic member to obtain a second detection signal. The switch body has a plurality of setting positions compared to the first portion. When the switch body is in different setting positions compared to the first portion, the second detection signal is different. The electronic device also includes a functional component and a processor, wherein the functional component is used to implement the preset function of the electronic device, and the processor is also used to control the functional component of the electronic device according to the second detection signal, and different second detection signals control the functional component to perform different preset functions.