Electronic equipment, angle detection method thereof and electronic equipment assembly
The integration of a Hall sensor and magnet with pre-set fitting curves in foldable electronic devices addresses the challenge of accurate angle detection, even when accessories are attached, by sensing magnetic field strength and adapting to different states.
Patent Information
- Application Number
- CN202310654815.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-02
- Publication Date
- 2024-12-03
AI Technical Summary
Existing foldable electronic devices face challenges in accurately detecting the folding angle due to interference from a stylus pen or other accessories, which affect the internal space layout and compromise the accuracy of angle detection.
Incorporating a Hall sensor and a magnet in the electronic device to sense the magnetic field strength, with pre-set fitting curves for different states, allowing accurate angle detection by superimposing magnetic fields when accessories like a stylus pen are attached.
Enhances the accuracy of folding angle measurement by adapting to different states based on magnetic induction intensity, ensuring precise detection regardless of accessory attachment.
Smart Images

Figure CN119071375A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electronic equipment, and in particular to an electronic device and an angle detection method thereof, and an electronic device component. Background Art
[0002] With the development of mobile terminals, more and more mobile phones are gradually emerging, such as electronic devices that can be folded. This type of electronic device generally has a folding angle detection function.
[0003] However, in order to enrich the user experience, the above electronic device may be equipped with a stylus pen, which is generally inserted into the electronic device, affecting the internal space layout of the electronic device. Summary of the invention
[0004] An embodiment of the present application provides an electronic device, the electronic device comprising:
[0005] A first body, a second body, a first magnet, and a Hall sensor;
[0006] The first body and the second body can rotate relative to each other; the Hall sensor and the first magnet move relative to each other as the first body and the second body rotate relative to each other; the first magnet has a first magnetic field, and the angle between the first body and the second body is obtained by the strength of the first magnetic field sensed by the Hall sensor;
[0007] When a second magnet is adsorbed on the electronic device, the magnetic fields of the second magnet and the first magnet are superimposed to form a second magnetic field, and the angle between the first body and the second body is obtained by the strength of the second magnetic field sensed by the Hall sensor.
[0008] Another aspect of the present application embodiment further provides an electronic device assembly, including:
[0009] An electronic device, comprising a first body, a second body, a first magnet and a Hall sensor; the first body and the second body can rotate relative to each other; the Hall sensor and the first magnet move relative to each other as the first body and the second body rotate relative to each other; the first magnet has a first magnetic field, and the angle between the first body and the second body is obtained by the strength of the first magnetic field sensed by the Hall sensor; and
[0010] The adsorbent has a second magnet, and the adsorbent can be adsorbed to the electronic device through the second magnet, or the adsorbent can be separated from the electronic device;
[0011] When the adsorbent is adsorbed on the electronic device, the magnetic fields of the second magnet and the first magnet are superimposed to form a second magnetic field, and the angle between the first body and the second body is obtained by the strength of the second magnetic field sensed by the Hall sensor.
[0012] Another aspect of the embodiment of the present application further provides an angle detection method of an electronic device, the electronic device comprising a first body, a second body, a first magnet and a Hall sensor; the first body and the second body can rotate relative to each other; the Hall sensor and the first magnet move relative to each other as the first body and the second body rotate relative to each other;
[0013] The first magnet has a first magnetic field, and when the second magnet is attracted to the electronic device, the magnetic fields of the first magnet and the second magnet are superimposed to form a second magnetic field;
[0014] Wherein, the angle detection method comprises:
[0015] Presetting a first fitting curve and a second fitting curve;
[0016] Receiving the magnetic induction intensity sensed by the Hall sensor;
[0017] Determining whether the magnetic induction intensity sensed by the Hall sensor is within the magnetic induction intensity range corresponding to the first fitting curve or the second fitting curve;
[0018] When the magnetic induction intensity sensed by the Hall sensor is within the magnetic induction intensity range corresponding to the first fitting curve, calling the first fitting curve to obtain the angle between the first body and the second body;
[0019] When the magnetic induction intensity sensed by the Hall sensor is within the magnetic induction intensity range corresponding to the second fitting curve, calling the second fitting curve to obtain the angle between the first body and the second body;
[0020] The first fitting curve is formed by fitting the corresponding relationship between the angle and the magnetic induction intensity of the first magnetic field; and the second fitting curve is formed by fitting the corresponding relationship between the angle and the magnetic induction intensity of the second magnetic field.
[0021] The embodiments of the present application provide an electronic device and an angle detection method thereof, and an electronic device component. When a second magnet is adsorbed onto the electronic device, the magnetic field sensed by the Hall sensor changes. At this time, the angle between the first body and the second body is obtained by using the strength of the second magnetic field sensed by the Hall sensor, making the angle measurement more accurate.
[0022] The embodiments of the present application provide an electronic device and an angle detection method thereof, and an electronic device component. Through the correspondence between the magnetic induction intensity sensed by the Hall sensor and the first fitting curve and the second fitting curve, it can be determined whether the second magnet is adsorbed on the electronic device, that is, the state of the electronic device can be determined. In addition, the electronic device selects appropriate fitting curves in the first state and the second state, respectively, so that the folding angle obtained by the electronic device is more accurate. In addition, the called fitting curve can also be switched according to the magnetic induction intensity sensed by the Hall sensor to ensure the accuracy of the angle detection of the electronic device in the first state and the second state, respectively. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of 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 creative work.
[0024] Figure 1 is a schematic diagram of the structure of an electronic device in some embodiments of the present application when it is flattened;
[0025] Figure 2 yes Figure 1 A schematic diagram of the structure of the electronic device when folded in the embodiment;
[0026] Figure 3 is a schematic diagram of the structure of an electronic device in some other embodiments of the present application;
[0027] Figure 4 yes Figure 3 Another structural schematic diagram of the electronic device in the embodiment;
[0028] Figure 5 is a schematic diagram of the structure of an electronic device in some other embodiments of the present application;
[0029] Figure 6 is a schematic diagram of the structure of electronic device components in some embodiments of the present application;
[0030] Figure 7 is a curve diagram of the corresponding relationship between the magnetic induction intensity sensed by the Hall sensor and the folding angle in some embodiments of the present application;
[0031] Figure 8 is a curve diagram of the corresponding relationship between the magnetic induction intensity sensed by the Hall sensor and the folding angle in other embodiments of the present application;
[0032] Fig. 9 is a schematic block diagram of the structure of an electronic device in some embodiments of the present application;
[0033] Fig.10 It is a flowchart of an angle detection method for an electronic device in some embodiments of the present application. DETAILED DESCRIPTION
[0034] The present application is further described in detail below in conjunction with the accompanying drawings and examples. It is particularly noted that the following examples are only used to illustrate the present application, but are not intended to limit the scope of the present application. Similarly, the following examples are only some embodiments of the present application rather than all embodiments, and all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0035] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments 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.
[0036] As used herein, "electronic devices" (or simply "terminals") include, but are not limited to, devices configured to receive / send communication signals via a wireline connection (e.g., via a public switched telephone network (PSTN), a digital subscriber line (DSL), a digital cable, a direct cable connection, and / or another data connection / network) and / or via a wireless interface (e.g., for a cellular network, a wireless local area network (WLAN), a digital television network such as a DVB-H network, a satellite network, an AM-FM broadcast transmitter, and / or another communication terminal). Communication terminals configured to communicate via a wireless interface may be referred to as "wireless communication terminals", "wireless terminals" or "mobile terminals". Examples of mobile terminals include, but are not limited to, satellite or cellular phones; personal communication system (PCS) terminals that may combine cellular radiotelephones with data processing, fax, and data communication capabilities; PDAs that may include radiotelephones, pagers, Internet / intranet access, web browsers, organizers, calendars, and / or global positioning system (GPS) receivers; and conventional laptop and / or palmtop receivers or other electronic devices that include radiotelephone transceivers. A mobile phone is an electronic device equipped with a cellular communication module.
[0037] It should be noted that the electronic device provided in this application is a foldable electronic device, such as but not limited to: a mobile phone, a tablet computer, a smart watch and other electronic devices, which has the main advantage of combining entertainment and office work, and is easy to carry, catering to the current consumer demand for portability and multifunctional unity. The foldable electronic device can use a Hall sensor to sense a continuously changing magnetic field, and then obtain the folding angle of the electronic device.
[0038] Among them, the Hall sensor is a magnetic field sensor made based on the Hall effect. The Hall effect is a type of magnetoelectric effect. The Hall voltage changes with the change of magnetic field strength. The stronger the magnetic field, the higher the voltage, and the weaker the magnetic field, the lower the voltage. Therefore, the Hall sensor cannot directly detect the folding angle, and the magnetic field strength and the folding angle need to be matched one by one. During the debugging process of electronic equipment, the initial correspondence between the magnetic field strength and the folding angle is generally written through a calibration operation, and the correspondence can be directly called during subsequent use.
[0039] See also Figure 1 and Figure 2 , Figure 1 is a schematic diagram of the structure of the electronic device 100 when it is flattened in some embodiments of the present application, Figure 2 yes Figure 1 A schematic diagram of the structure of the electronic device 100 when folded in the embodiment.
[0040] The electronic device 100 may include a first body 110 and a second body 120 that can rotate relative to each other, that is, the first body 110 and the second body 120 are rotatably connected. The joint between the first body 110 and the second body 120 may be made of a foldable material, so that the first body 110 and the second body 120 can rotate relative to each other.
[0041] In one embodiment, the electronic device 100 may further include a rotating assembly 130, and the first body 110 and the second body 120 are respectively connected to two sides of the rotating assembly 130. The second body 120 can be folded or unfolded relative to the first body 110 through the rotating assembly 130. When the electronic device 100 is in a folded state, the volume is relatively small, which is convenient for storage and carrying.
[0042] like Figure 1 and Figure 2 As shown, the angle between the first body 110 and the second body 120 may range from 0° to 180°. When the angle between the first body 110 and the second body 120 is 180°, the electronic device 100 is as shown in FIG. Figure 1 When the angle between the first body 110 and the second body 120 is 0°, the electronic device 100 is in the flattened state as shown. Figure 2 Shown in folded state.
[0043] When the electronic device 100 is in the folded state, the rotating component 130 has a partial surface exposed outside the electronic device 100 , and the partial surface can be defined as the appearance surface of the rotating component 130 .
[0044] It is understandable that the rotating assembly 130 may be a hinge assembly, a shaft assembly, or an elastic assembly, etc., and the first body 110 and the second body 120 connected to both sides of the rotating assembly 130 may realize relative rotation through the rotating assembly 130. The specific structural and technical features of the rotating assembly 130 are within the scope of understanding of those skilled in the art, so they will not be described in detail.
[0045] It should be noted that the terms "first", "second", etc. in the embodiments of the present application are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first", "second", etc. may explicitly or implicitly include at least one of the features.
[0046] See also Figure 3 and Figure 4 , Figure 3 is a schematic diagram of the structure of the electronic device 100 in some other embodiments of the present application, Figure 4 yes Figure 3 Another structural diagram of the electronic device 100 in the embodiment. Figure 3 and Figure 4 The difference between the electronic devices 100 in the embodiments lies in the different folding angles.
[0047] The electronic device 100 may include a first body 110 , a second body 120 , and a hinge assembly 130 , and details may be referred to the specific description in the aforementioned embodiments, so it will not be described in detail herein.
[0048] The electronic device 100 may further include a Hall sensor 140 and a first magnet 150, and the Hall sensor 140 and the first magnet 150 move relative to each other as the first body 110 and the second body 120 rotate relative to each other. That is, when the first body 110 and the second body 120 rotate relative to each other so that the electronic device 100 is folded or flattened, the Hall sensor 140 and the first magnet 150 move relative to each other so that the distance between them changes.
[0049] like Figure 3 As shown, the angle between the first body 110 and the second body 120 is, for example, 90°, and there is a first distance between the Hall sensor 140 and the first magnet 150; Figure 4As shown, the angle between the first body 110 and the second body 120 is, for example, 180°, and there is a second distance between the Hall sensor 140 and the first magnet 150. The first distance is smaller than the second distance.
[0050] When the first body 110 and the second body 120 rotate relative to each other, Figure 3 The state shown moves to Figure 4 When the first body 110 and the second body 120 rotate relative to each other and the magnetic field of the first magnet 150 is gradually reduced, the magnetic field of the first magnet 150 sensed by the Hall sensor 140 gradually decreases. Figure 4 The state shown moves to Figure 3 In the state shown, the magnetic induction intensity of the first magnet 150 sensed by the Hall sensor 140 gradually increases.
[0051] Among them, one of the Hall sensor 140 and the first magnet 150 is disposed on the rotating assembly 130, and the other is disposed on the first body 110 or the second body 120. Figure 3 and Figure 4 As shown, the Hall sensor 140 is disposed on the first body 110 , and the first magnet 150 is disposed on the rotating assembly 130 , but the present invention is not limited thereto. For example, the Hall sensor 140 may also be disposed on the rotating assembly 130 , and the first magnet 150 may also be disposed on the second body 120 .
[0052] See also Figure 5 , Figure 5 1 is a schematic diagram of the structure of an electronic device 100 in some other embodiments of the present application. The difference between this embodiment and the aforementioned embodiment is that the rotating component 130 is eliminated, and the first body 110 and the second body 120 are directly connected in rotation.
[0053] The electronic device 100 may further include a Hall sensor 140 and a first magnet 150, and the Hall sensor 140 and the first magnet 150 move relative to each other as the first body 110 and the second body 120 rotate relative to each other. That is, when the first body 110 and the second body 120 rotate relative to each other so that the electronic device 100 is folded or flattened, the Hall sensor 140 and the first magnet 150 move relative to each other so that the distance between them changes.
[0054] When the angle between the first body 110 and the second body 120 is 0°, the distance between the Hall sensor 140 and the first magnet 150 is the smallest, and the magnetic induction intensity of the first magnet 150 sensed by the Hall sensor 140 is the largest. When the angle between the first body 110 and the second body 120 is 180°, the distance between the Hall sensor 140 and the first magnet 150 is the largest, and the magnetic induction intensity of the first magnet 150 sensed by the Hall sensor 140 is the smallest.
[0055] Among them, one of the Hall sensor 140 and the first magnet 150 is disposed on the first body 110, and the other is disposed on the second body 120. Figure 5 As shown, the Hall sensor 140 is disposed on the first body 110, and the first magnet 150 is disposed on the second body 120. For another example, the Hall sensor 140 may be disposed on the second body 120, and the first magnet 150 may be disposed on the first body 110.
[0056] Further, when the angle between the first body 110 and the second body 120 changes, the magnetic induction intensity of the first magnet 150 sensed by the Hall sensor 140 changes, thereby acquiring the folding angle between the first body 110 and the second body 120 .
[0057] As mentioned above, the Hall sensor 140 itself cannot directly obtain the folding angle, and the corresponding relationship between the magnetic induction intensity of the first magnet 150 and the folding angle needs to be pre-stored in the electronic device 100. Then, when the electronic device 100 is in use, the electronic device 100 can obtain the above folding angle based on the magnetic induction intensity of the first magnet 150 sensed by the Hall sensor 140.
[0058] Specifically, the first magnet 150 has a first magnetic field. When the angle between the first body 110 and the second body 120 changes, the intensity of the first magnetic field sensed by the Hall sensor 140 will change, thereby obtaining the folding angle between the first body 110 and the second body 120 based on the corresponding relationship between the magnetic induction intensity of the first magnet 150 and the folding angle.
[0059] That is, the electronic device provided in the embodiment of the present application is provided with a first magnet and a Hall sensor on the electronic device, and the first magnet and the Hall sensor are made to move relative to each other as the first body and the second body rotate relative to each other, thereby obtaining the angle between the first body and the second body by the intensity of the first magnetic field sensed by the Hall sensor, and the folding angle between the first body and the second body can be quickly obtained. It can be understood that the relative positions of the first magnet and the Hall sensor are only exemplarily illustrated in the figures of the present application, but are not limited to this.
[0060] See also Figure 6 , Figure 6 1 is a schematic diagram of the structure of an electronic device assembly 1000 in some embodiments of the present application, and the electronic device assembly 1000 may include an electronic device 100 and an adsorbent 200. The electronic device 100 may be the electronic device 100 in the aforementioned embodiment, so it will not be described in detail.
[0061] The adsorbent 200 may be a stylus pen or a pendant, etc., for being adsorbed on the electronic device 100. That is, the adsorbent 200 may be adsorbed on the electronic device 100 or may be separated from the electronic device 100.
[0062] The adsorbent 200 may have a second magnet 210. The adsorbent 200 can be adsorbed to the electronic device 100 through the second magnet 210, or the adsorbent 200 can be separated from the electronic device 100.
[0063] As mentioned above, the electronic device 100 has the first magnet 150, and the adsorbent 200 can be adsorbed to the first magnet 150 by the second magnet 210 to position the adsorbent 200 on the electronic device 100. The first magnet 150 can be a magnet, and the second magnet 210 can be a magnet or a ferromagnetic material, etc., so long as it can be adsorbed and connected with the first magnet 150.
[0064] In one embodiment, when the electronic device 100 includes the rotating component 130, one of the first magnet 150 and the Hall sensor 140 is disposed on the rotating component 130, and the other is disposed on the first body 110 or the second body 120. Further, when the first magnet 150 is disposed on the rotating component 130, the second magnet 210 can be adsorbed on the rotating component 130, that is, adsorbed on the appearance surface of the rotating component 130. When the first magnet 150 is disposed on the first body 110, the second magnet 210 can be adsorbed on the first body 110, that is, adsorbed on the appearance surface of the first body 110. When the first magnet 150 is disposed on the second body 120, the second magnet 210 can be adsorbed on the second body 120, that is, adsorbed on the appearance surface of the second body 110.
[0065] In one embodiment, when the electronic device 100 eliminates the rotating assembly 130, one of the first magnet 150 and the Hall sensor 140 is disposed on the first body 110, and the other is disposed on the second body 120. Further, when the first magnet 150 is disposed on the first body 110, the second magnet 210 can be adsorbed on the first body 110, that is, adsorbed on the exterior surface of the first body 110. When the first magnet 150 is disposed on the second body 120, the second magnet 210 can be adsorbed on the second body 120, that is, adsorbed on the exterior surface of the second body 110.
[0066] Furthermore, when the adsorbent 200 is adsorbed on the electronic device 100, that is, when the second magnet 210 is adsorbed on the electronic device 100, the magnetic fields of the second magnet 210 and the first magnet 150 are superimposed to form a second magnetic field. At this time, the angle between the first body 110 and the second body 120 is obtained by the strength of the second magnetic field sensed by the Hall sensor 140.
[0067] It is understandable that when the second magnet 210 is adsorbed on the electronic device 100, the magnetic fields of the second magnet 210 and the first magnet 150 will be superimposed to form a second magnetic field. At this time, the magnetic induction intensity sensed by the Hall sensor 140 comes from the second magnetic field and is different from the first magnetic field.
[0068] In other words, in the electronic device assembly provided in the embodiment of the present application, when the second magnet and the first magnet are adsorbed to each other, that is, when the adsorbent is adsorbed on the electronic device, the magnetic field sensed by the Hall sensor changes. At this time, the angle between the first body and the second body is obtained by the strength of the second magnetic field sensed by the Hall sensor, so that the angle measurement is more accurate. Based on this, the correspondence between the magnetic induction intensity of the second magnetic field and the folding angle also needs to be stored in the electronic device in advance. When using the electronic device, the above correspondence is selected according to whether the electronic device is adsorbed with the adsorbent, i.e., the second magnet, so that the folding angle obtained by the electronic device is more accurate.
[0069] In addition, when the adsorbent is a stylus pen, the stylus pen is adsorbed on the outside of the electronic device and does not occupy the internal space of the electronic device, saving space for the internal space layout of the electronic device. When the adsorbent is a pendant, the pendant is adsorbed on the outside of the electronic device and can be easily separated from the electronic device, providing convenience for users to replace the pendant, thereby improving the user experience.
[0070] See also Figure 7 , Figure 7 It is a curve diagram of the corresponding relationship between the magnetic induction intensity sensed by the Hall sensor and the folding angle in some embodiments of the present application.
[0071] The electronic device is defined as being in a first state when the electronic device does not adsorb the second magnet, and the electronic device is defined as being in a second state when the electronic device adsorbs the second magnet.
[0072] As mentioned above, there is a certain corresponding relationship between the magnetic induction intensity sensed by the Hall sensor and the above-mentioned folding angle. When the magnetic field environment sensed by the Hall sensor changes, the above-mentioned corresponding relationship will change accordingly. For example, when the magnetic field environment sensed by the Hall sensor is the first magnetic field of the above-mentioned first magnet, the corresponding relationship between the magnetic induction intensity of the first magnetic field sensed by the Hall sensor and the angle can be fitted to form a first fitting curve S1. When the magnetic field environment sensed by the Hall sensor is the second magnetic field formed by the superposition of the above-mentioned first magnet and the second magnet, the corresponding relationship between the magnetic induction intensity of the second magnetic field sensed by the Hall sensor and the angle can be fitted to form a second fitting curve S2. In other words, the electronic device can be pre-set with a first fitting curve S1 and a second fitting curve S2, so that they can be directly called in subsequent work.
[0073] Among them, the first fitting curve S1 is formed by fitting the corresponding relationship between the magnetic induction intensity of the first magnetic field sensed by the Hall sensor and the angle, and the second fitting curve S2 is formed by fitting the corresponding relationship between the magnetic induction intensity of the second magnetic field sensed by the Hall sensor and the angle.
[0074] Further, when the electronic device is in the first state, that is, when the second magnet is not adsorbed on the electronic device, the magnetic field environment sensed by the Hall sensor at this time is the first magnetic field, and the electronic device can obtain the above angle by calling the first fitting curve S1. When the electronic device is in the second state, that is, when the second magnet is adsorbed on the electronic device, the magnetic field environment sensed by the Hall sensor at this time is the second magnetic field, and the electronic device can obtain the above angle by calling the second fitting curve S2.
[0075] For example, the magnetic induction intensity range corresponding to the first fitting curve S1 is Y1, and the magnetic induction intensity range corresponding to the second fitting curve S2 is Y2. When the magnetic induction intensity sensed by the Hall sensor is within Y1, it is considered that the electronic device is in the first state, that is, the first fitting curve S1 can be called to obtain the angle between the first main body and the second main body. When the magnetic induction intensity sensed by the Hall sensor is within Y2, it is considered that the electronic device is in the second state, that is, the second fitting curve S2 can be called to obtain the angle between the first main body and the second main body.
[0076] As Figure 7 shown, the magnetic induction intensity range Y1 corresponding to the first fitting curve S1 does not overlap with the magnetic induction intensity range Y2 corresponding to the second fitting curve S2, that is, regardless of whether the electronic device is in the first state or the second state, the magnetic induction intensity sensed by the Hall sensor can establish a unique correspondence with the first fitting curve S1 and the second fitting curve S2, so that the electronic device can directly select to call the first fitting curve S1 or the second fitting curve S2.
[0077] For example, 1 < Y1 < 2, 2 < Y2 < 3. When the magnetic induction intensity sensed by the Hall sensor is 1.8, it can be determined that it is within the magnetic induction intensity range Y1 corresponding to the first fitting curve S1. At this time, the electronic device is in the first state, and the first fitting curve S1 can be called to obtain the folding angle. When the magnetic induction intensity sensed by the Hall sensor is 2.6, it can be determined that it is within the magnetic induction intensity range Y2 corresponding to the second fitting curve S2. At this time, the electronic device is in the second state, and the second fitting curve S2 can be called to obtain the folding angle.
[0078] Please refer to Figure 8 , Figure 8 which is a curve graph of the corresponding relationship between the magnetic induction intensity sensed by the Hall sensor and the folding angle in some other embodiments of the present application.
[0079] Among them, the magnetic induction intensity range corresponding to the first fitting curve S1 is Y1, and the magnetic induction intensity range corresponding to the second fitting curve S2 is Y2, and the two parts overlap. At this time, when the magnetic induction intensity sensed by the Hall sensor is in the overlapping part of Y1 and Y2, it is difficult to confirm whether the electronic device is in the first state or the second state. At this time, other means need to be used for auxiliary confirmation.
[0080] For example, 1 < Y1 < 2, 1.5 < Y2 < 2.5. When the magnetic induction intensity sensed by the Hall sensor is 1.8, it is difficult to determine whether it is within the magnetic induction intensity range Y1 corresponding to the first fitting curve S1 or within the magnetic induction intensity range Y2 corresponding to the second fitting curve S2, that is, it is difficult to confirm whether the electronic device is in the first state or the second state at this time. When the electronic device is in the first state, the corresponding angle on the first fitting curve S1 is 20°; when the electronic device is in the second state, the corresponding angle on the second fitting curve S2 is 45°.
[0081] In an embodiment, the electronic device may further include an angle detection module (not shown in the figure), and this detection module can be used to detect the calibration angle between the first body and the second body. Thus, according to the calibration angle and the magnetic induction intensity sensed by the Hall sensor, it is determined whether the electronic device calls the first fitting curve S1 or the second fitting curve S2 to obtain the angle between the first body and the second body. At this time, it can also be determined whether the electronic device is in the first state or the second state.
[0082] For example, when the angle detection module detects that the current calibration angle between the first body and the second body is 20°, then the electronic device is in the first state and can call the first fitting curve to obtain the angle between the first body and the second body. Another example is that when the angle detection module detects that the current calibration angle between the first body and the second body is 45°, then the electronic device is in the second state and can call the second fitting curve to obtain the angle between the first body and the second body.
[0083] Specifically, the angle detection module can be one of a gyroscope, a pressure angle measuring instrument, and an optoelectronic angle measuring instrument. Among them, gyroscopes, angle measuring instruments, and laser angle measuring modules are generally not affected by magnetic fields. Thus, when it is impossible to confirm the fitting curve called by the electronic device, the angle between the first body and the second body directly measured and the current magnetic induction intensity sensed by the Hall sensor can be used for calibration.
[0084] In an embodiment, the switching of the fitting curve can also be performed according to the mutation situation of the magnetic induction intensity sensed by the Hall sensor. When the change amplitude of the magnetic induction intensity sensed by the Hall sensor within a preset time period exceeds the amplitude threshold, then the currently called fitting curve is switched.
[0085] Specifically, during the relative rotation of the first body and the second body, the magnetic induction intensity sensed by the Hall sensor generally increases or decreases gradually. When the electronic device absorbs the second magnet or removes the second magnet from the electronic device, the magnetic field environment sensed by the Hall sensor changes suddenly, that is, the magnetic induction intensity sensed by the Hall sensor suddenly increases or decreases within a certain period of time. Based on this, it can be determined whether to switch the fitting curve.
[0086] For example, when the electronic device is in the first state and is folded, the change trend of the magnetic induction intensity sensed by the Hall sensor conforms to the change trend of the first fitting curve S1, that is, its change amplitude is in a gradual state. At this time, when the second magnet is adsorbed on the electronic device, the magnetic induction intensity sensed by the Hall sensor suddenly increases, and its increase amplitude generally exceeds its change amplitude during the gradual change. At this time, the first fitting curve S1 called by the electronic device is switched to the second fitting curve S2.
[0087] For another example, when the electronic device is in the second state and during the folding process of the electronic device, the change trend of the magnetic induction intensity sensed by the Hall sensor conforms to the change trend of the second fitting curve S2, that is, its change amplitude is in a gradual state. At this time, when the second magnet is removed from the electronic device, the magnetic induction intensity sensed by the Hall sensor suddenly decreases, and its decrease amplitude generally exceeds its change amplitude during the gradual change. At this time, the second fitting curve S2 called by the electronic device is switched to the first fitting curve S1.
[0088] Furthermore, the preset time period may be 20 milliseconds to 80 milliseconds, and the amplitude threshold may be 0.5 to 1. For example, when the magnetic induction intensity sensed by the Hall sensor increases by 0.5 within 50 milliseconds, it is considered that the second magnet is adsorbed on the electronic device during the above-mentioned increase process, and the first fitting curve S1 called by the electronic device is switched to the second fitting curve S2. For another example, when the magnetic induction intensity sensed by the Hall sensor decreases by 0.5 within 50 milliseconds, it is considered that the second magnet is removed from the electronic device during the above-mentioned decrease process, and the second fitting curve S2 called by the electronic device is switched to the first fitting curve S1.
[0089] The electronic device provided in the embodiment of the present application determines whether the second magnet is adsorbed on the electronic device through the relationship between the magnetic induction intensity sensed by the Hall sensor and the first fitting curve and the second fitting curve, and selects a suitable fitting curve in the corresponding state of the electronic device, so that the folding angle obtained by the electronic device is more accurate. At the same time, the fitting curve called by the electronic device can also be calibrated according to the magnetic induction intensity sensed by the Hall sensor, ensuring the accuracy of the angle detection of the electronic device in the first state and the second state.
[0090] See also Fig. 9 , Fig. 9 1 is a schematic block diagram of the structure of the electronic device 100 in some embodiments of the present application. The electronic device may be a mobile electronic device, and the electronic device may include: a memory 901, a processor (Central Processing Unit, CPU) 902, a circuit board (not shown in the figure), a power circuit and a microphone 913. The circuit board is placed inside the space surrounded by the shell; the CPU 902 and the memory 901 are arranged on the circuit board; the power circuit is used to supply power to various circuits or devices of the electronic device; the memory 901 is used to store executable program codes; the CPU 902 runs a computer program corresponding to the executable program code by reading the executable program code stored in the memory 901, so as to recognize the above-mentioned identification information to realize the unlocking and wake-up functions.
[0091] The electronic device may also include: a peripheral interface 903, an RF (Radio Frequency) circuit 905, an audio circuit 906, a speaker 911, a power management chip 908, other input / control devices of the input / output (I / O) subsystem, a touch screen 912, other input / control devices 910 and an external port 904 (which may be the first terminal 103 in the aforementioned embodiment), and these components communicate through one or more communication buses or signal lines 907.
[0092] The memory 901 can be accessed by the CPU 902, the peripheral interface 903, etc. The memory 901 can include a high-speed random access memory, and can also include a non-volatile memory, such as one or more disk storage devices, flash memory devices, or other volatile solid-state storage devices. The peripheral interface 903 can connect the input and output peripherals of the device to the CPU 902 and the memory 901.
[0093] The I / O subsystem 909 can connect the input and output peripherals on the device, such as a touch screen 912 and other input / control devices 910, to the peripheral interface 903. The I / O subsystem 909 may include a display controller 9091 and one or more input controllers 9092 for controlling other input / control devices 910. Among them, the one or more input controllers 9092 receive electrical signals from other input / control devices 910 or send electrical signals to other input / control devices 910, and other input / control devices 910 may include physical buttons (press buttons, rocker buttons, etc.), dials, slide switches, joysticks, and click wheels. It is worth noting that the input controller 9092 can be connected to any of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
[0094] The touch screen 912 is an input interface and an output interface between the user electronic device and the user, and displays visual output to the user. The visual output may include graphics, text, icons, videos, etc.
[0095] The display controller 9091 in the I / O subsystem 909 receives an electrical signal from the touch screen 912 or sends an electrical signal to the touch screen 912. The touch screen 912 detects contact on the touch screen, and the display controller 9091 converts the detected contact into interaction with a user interface object displayed on the touch screen 912, that is, realizes human-computer interaction. The user interface object displayed on the touch screen 912 may be an icon for running a game, an icon for connecting to a corresponding network, etc.
[0096] The RF circuit 905 is mainly used to establish communication between the mobile phone and the wireless network (i.e., the network side) to realize data reception and transmission between the mobile phone and the wireless network. For example, sending and receiving short messages, emails, etc. Specifically, the RF circuit 905 receives and sends RF signals, which are also called electromagnetic signals. The RF circuit 905 converts electrical signals into electromagnetic signals or converts electromagnetic signals into electrical signals, and communicates with the communication network and other devices through the electromagnetic signals. The RF circuit 905 may include known circuits for performing these functions, including but not limited to antenna systems, RF transceivers, one or more amplifiers, tuners, one or more oscillators, digital signal processors, CODEC (Coder-Decoder) chipsets, Subscriber Identity Module (SIM), etc.
[0097] The audio circuit 906 is mainly used to receive audio data from the peripheral interface 903, convert the audio data into an electrical signal, and send the electrical signal to the speaker 911. The speaker 911 is used to restore the voice signal received by the mobile phone from the wireless network through the RF circuit 905 to sound and play the sound to the user. The power management chip 908 is used to provide power supply and power management for the CPU 902, the I / O subsystem and the hardware connected to the peripheral interface.
[0098] See also Fig.10 , Fig.10 1 is a flow chart of an angle detection method of an electronic device in some embodiments of the present application. The memory of the electronic device can store a computer program for electronic data exchange, and the computer program enables the electronic device to execute the angle detection method. The electronic device can be the electronic device 100 in the aforementioned embodiment, so it will not be described in detail.
[0099] Furthermore, the angle detection method of the electronic device generally includes the following steps:
[0100] Step S1001, presetting a first fitting curve and a second fitting curve; that is, the corresponding relationship between the magnetic induction intensity of the first magnetic field and the second magnetic field and the folding angle can be written into the processor in advance.
[0101] Step S1002, receiving the magnetic induction intensity sensed by the Hall sensor;
[0102] Step S1003, determining whether the magnetic induction intensity sensed by the Hall sensor is within the magnetic induction range corresponding to the first fitting curve or the second fitting curve;
[0103] Step S1004: when the magnetic induction intensity sensed by the Hall sensor is within the magnetic induction intensity range corresponding to the first fitting curve, the first fitting curve is called to obtain the angle between the first body and the second body;
[0104] Step S1005: when the magnetic induction intensity sensed by the Hall sensor is within the magnetic induction intensity range corresponding to the second fitting curve, the second fitting curve is called to obtain the angle between the first body and the second body.
[0105] The fitting methods of the first fitting curve and the second fitting curve may refer to the specific description in the above-mentioned embodiment, so they will not be described in detail here.
[0106] Specifically, the Hall sensor can convert the sensed magnetic induction intensity into an electrical signal and transmit it to the processor. The processor can determine whether the magnetic induction intensity sensed by the Hall sensor is within the magnetic induction range corresponding to the first fitting curve or the second fitting curve based on the received electrical signal, so as to select the first fitting curve or the second fitting curve to be called. When the magnetic induction intensity sensed by the Hall sensor changes continuously, the electrical signal output by the Hall sensor will also change continuously.
[0107] In one embodiment, the magnetic induction intensity range corresponding to the first fitting curve does not overlap with the magnetic induction intensity range corresponding to the second fitting curve, and the processor can directly determine whether the currently called fitting curve is the first fitting curve or the second fitting curve according to the received magnetic induction intensity.
[0108] In one embodiment, the magnetic induction intensity range corresponding to the first fitting curve partially overlaps with the magnetic induction intensity range corresponding to the second fitting curve; in this case, step S1003 further includes:
[0109] A calibration angle between the first body and the second body detected by a receiving angle detection module;
[0110] According to the calibration angle and the magnetic induction intensity sensed by the Hall sensor, it is determined to call the first fitting curve or the second fitting curve to obtain the angle between the first body and the second body.
[0111] The specific implementation method can refer to the above-mentioned embodiment, so it will not be described in detail here.
[0112] In one embodiment, after step S1003, the following steps may also be included:
[0113] It is determined whether the change amplitude of the magnetic induction intensity within a preset time period exceeds the amplitude threshold; if it exceeds the amplitude threshold, the currently called fitting curve is switched. The specific implementation method can refer to the above embodiment, so it will not be repeated here.
[0114] The embodiments of the present application provide an electronic device and an angle detection method thereof, and an electronic device component. Through the correspondence between the magnetic induction intensity sensed by the Hall sensor and the first fitting curve and the second fitting curve, it can be determined whether the second magnet is adsorbed on the electronic device, that is, the state of the electronic device can be determined. In addition, the electronic device selects appropriate fitting curves in the first state and the second state, respectively, so that the folding angle obtained by the electronic device is more accurate. In addition, the called fitting curve can also be switched according to the magnetic induction intensity sensed by the Hall sensor to ensure the accuracy of angle detection of the electronic device in the first state and the second state, respectively.
[0115] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0116] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0117] In the several embodiments provided in the present application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the above-mentioned units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0118] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0119] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0120] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a memory. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in the memory, including a number of instructions to enable an electronic device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the above-mentioned methods of each embodiment of the present application. A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by instructing the relevant hardware through a program, and the program can be stored in a memory.
[0121] It should be noted that the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products or devices.
[0122] The above descriptions are only some embodiments of the present application, and do not limit the protection scope of the present application. Any equivalent device or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly used in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. An electronic device, characterized in that: The electronic device comprises: A first body, a second body, a first magnet, and a Hall sensor; The first body and the second body can rotate relative to each other; the Hall sensor and the first magnet move relative to each other as the first body and the second body rotate relative to each other; the first magnet has a first magnetic field, and the angle between the first body and the second body is obtained by the strength of the first magnetic field sensed by the Hall sensor; When a second magnet is adsorbed on the electronic device, the magnetic fields of the second magnet and the first magnet are superimposed to form a second magnetic field, and the angle between the first body and the second body is obtained by the strength of the second magnetic field sensed by the Hall sensor.
2. The electronic device according to claim 1, characterized in that: It is defined that the electronic device is not adsorbed by the second magnet as the first state of the electronic device, and the electronic device is adsorbed by the second magnet as the second state of the electronic device, The electronic device is preset with a first fitting curve and a second fitting curve; in the first state, the electronic device calls the first fitting curve to obtain the angle; in the second state, the electronic device calls the second fitting curve to obtain the angle.
3. The electronic device according to claim 2, characterized in that: The first fitting curve is formed by fitting the corresponding relationship between the angle and the magnetic induction intensity of the first magnetic field sensed by the Hall sensor; The second fitting curve is formed by fitting the corresponding relationship between the angle and the magnetic induction intensity of the second magnetic field sensed by the Hall sensor.
4. The electronic device according to claim 3, characterized in that: The magnetic induction intensity range corresponding to the first fitting curve does not overlap with the magnetic induction intensity range corresponding to the second fitting curve; when the magnetic induction intensity sensed by the Hall sensor is within the magnetic induction intensity range corresponding to the first fitting curve, the electronic device calls the first fitting curve to obtain the angle; when the magnetic induction intensity sensed by the Hall sensor is within the magnetic induction intensity range corresponding to the second fitting curve, the electronic device calls the second fitting curve to obtain the angle.
5. The electronic device according to claim 3, characterized in that: The magnetic induction intensity range corresponding to the first fitting curve partially overlaps with the magnetic induction intensity range corresponding to the second fitting curve; The electronic device also includes an angle detection module, which is used to detect a calibration angle between the first body and the second body; based on the calibration angle and the magnetic induction intensity sensed by the Hall sensor, it is determined that the electronic device calls the first fitting curve or the second fitting curve to obtain the angle.
6. The electronic device according to claim 5, characterized in that: The angle detection module is one of a gyroscope, a pressure angle measuring instrument, and a photoelectric angle measuring instrument.
7. The electronic device assembly according to claim 3, characterized in that: When the change amplitude of the magnetic induction intensity sensed by the Hall sensor within a preset time period exceeds an amplitude threshold, the electronic device switches the currently called fitting curve.
8. An electronic device component, characterized in that: The electronic device assembly comprises: An electronic device, comprising a first body, a second body, a first magnet and a Hall sensor; the first body and the second body can rotate relative to each other; the Hall sensor and the first magnet move relative to each other as the first body and the second body rotate relative to each other; the first magnet has a first magnetic field, and the angle between the first body and the second body is obtained by the strength of the first magnetic field sensed by the Hall sensor; and The adsorbent has a second magnet, and the adsorbent can be adsorbed to the electronic device through the second magnet, or the adsorbent can be separated from the electronic device; When the adsorbent is adsorbed on the electronic device, the magnetic fields of the second magnet and the first magnet are superimposed to form a second magnetic field, and the angle between the first body and the second body is obtained by the strength of the second magnetic field sensed by the Hall sensor.
9. The electronic device assembly according to claim 8, characterized in that: The electronic device further comprises a rotating assembly, wherein the first body and the second body are respectively connected to two sides of the rotating assembly to achieve a rotating connection; Wherein, one of the first magnet and the Hall sensor is disposed on the rotating assembly, and the other is disposed on the first body or the second body; Alternatively, one of the first magnet and the Hall sensor is disposed on the first body, and the other is disposed on the second body.
10. The electronic device assembly according to claim 9, characterized in that: The first magnet is disposed on the rotating component, and the second magnet can be adsorbed on the rotating component; Alternatively, the first magnet is disposed on the first body, and the second magnet can be adsorbed on the first body; Alternatively, the first magnet is disposed on the second body, and the second magnet can be adsorbed on the second body.
11. The electronic device assembly according to claim 8, characterized in that: The adsorption component is a touch pen or a pendant.
12. A method for detecting an angle of an electronic device, characterized in that: The electronic device comprises a first body, a second body, a first magnet and a Hall sensor; the first body and the second body can rotate relative to each other; the Hall sensor and the first magnet move relative to each other as the first body and the second body rotate relative to each other; The first magnet has a first magnetic field, and when the second magnet is attracted to the electronic device, the magnetic fields of the first magnet and the second magnet are superimposed to form a second magnetic field; Wherein, the angle detection method comprises: Presetting a first fitting curve and a second fitting curve; Receiving the magnetic induction intensity sensed by the Hall sensor; Determining whether the magnetic induction intensity sensed by the Hall sensor is within the magnetic induction intensity range corresponding to the first fitting curve or the second fitting curve; When the magnetic induction intensity sensed by the Hall sensor is within the magnetic induction intensity range corresponding to the first fitting curve, calling the first fitting curve to obtain the angle between the first body and the second body; When the magnetic induction intensity sensed by the Hall sensor is within the magnetic induction intensity range corresponding to the second fitting curve, calling the second fitting curve to obtain the angle between the first body and the second body; The first fitting curve is formed by fitting the corresponding relationship between the angle and the magnetic induction intensity of the first magnetic field; and the second fitting curve is formed by fitting the corresponding relationship between the angle and the magnetic induction intensity of the second magnetic field.
13. The angle detection method according to claim 12, characterized in that: The magnetic induction intensity range corresponding to the first fitting curve does not overlap with the magnetic induction intensity range corresponding to the second fitting curve.
14. The angle detection method according to claim 12, characterized in that: The magnetic induction intensity range corresponding to the first fitting curve partially overlaps with the magnetic induction intensity range corresponding to the second fitting curve; The step of determining whether the magnetic induction intensity sensed by the Hall sensor is within the magnetic induction intensity range corresponding to the first fitting curve or the second fitting curve comprises: receiving a calibration angle between the first body and the second body detected by an angle detection module; According to the calibration angle and the magnetic induction intensity sensed by the Hall sensor, it is determined to call the first fitting curve or the second fitting curve to obtain the angle.
15. The angle detection method according to claim 12, characterized in that: After the step of determining that the magnetic induction intensity sensed by the Hall sensor is within the magnetic induction intensity range corresponding to the first fitting curve or the second fitting curve, the following steps are included: It is determined whether the change amplitude of the magnetic induction intensity within a preset time period exceeds an amplitude threshold; if it exceeds the amplitude threshold, the currently called fitting curve is switched.
