Electronic equipment, folding angle determination method and computer readable storage medium
By detecting changes in RF signals through the radiator and transceiver of the NFC antenna, the problem of Hall sensor occupying space is solved, achieving cost savings and accurate angle judgment.
Patent Information
- Application Number
- CN202410381161.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-29
- Publication Date
- 2025-09-30
AI Technical Summary
In existing foldable electronic devices, the use of Hall sensors is not conducive to the layout of other devices, resulting in an increase in the number of devices and an increase in costs.
The radiator and transceiver of the NFC antenna are used to detect changes in radio frequency signals to determine the angle between the main body of the foldable electronic device, and the processor compares the detection signal with a preset signal to determine the angle.
No Hall sensor is required, which saves the number of components and costs, facilitates the layout of other components, and improves the accuracy and real-time performance of angle detection.
Smart Images

Figure CN120729973A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to an electronic device, a method for determining a folding angle, and a computer-readable storage medium. Background Art
[0002] With technological advancements, foldable electronic devices, such as foldable phones, are becoming increasingly popular and powerful. In related technologies, electronic devices often include Hall sensors to detect the angle between two relatively foldable parts of the device. However, including Hall sensors can hinder the layout of the remaining components of the device. Summary of the Invention
[0003] In a first aspect, embodiments of the present application provide an electronic device, comprising a foldable body, an NFC antenna, and a processor, wherein the foldable body comprises a foldable first body and a foldable second body, so that the foldable electronic device has a folded state and an unfolded state; the NFC antenna comprises:
[0004] a radiator, the radiator being arranged corresponding to the first body; and
[0005] a transceiver, configured to generate an original NFC radio frequency signal, the transceiver being electrically connected to the radiator so that the radiator transmits and receives an NFC electromagnetic wave signal according to the original NFC radio frequency signal;
[0006] The transceiver is further configured to detect a radio frequency signal corresponding to when the radiator transmits and receives an NFC electromagnetic wave signal to obtain a detection signal;
[0007] The processor is used to compare the detection signal with multiple preset signals to determine the angle between the first body and the second body of the electronic device, wherein the multiple preset signals are radio frequency signals at different angles between the first body and the second body.
[0008] In a second aspect, embodiments of the present application provide a folding angle determination method, which is applied to a foldable electronic device, the electronic device including a foldable body and an NFC antenna, the foldable body including a foldable first body and a foldable second body, so that the electronic device has a folded state and an unfolded state; the NFC antenna includes a radiator and a transceiver, the radiator is arranged corresponding to the first body, the transceiver is used to generate an original NFC radio frequency signal, and the transceiver is electrically connected to the radiator so that the radiator transmits and receives an NFC electromagnetic wave signal according to the original NFC radio frequency signal; the method includes:
[0009] Detecting a radio frequency signal corresponding to when the radiator receives and transmits an NFC electromagnetic wave signal to obtain a detection signal; and
[0010] The detection signal is compared with a plurality of preset signals to determine an angle between a first body and a second body of the electronic device, wherein the plurality of preset signals are radio frequency signals at different angles between the first body and the second body.
[0011] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer-readable program. When the computer-readable program can be read by a processor and execute the folding angle determination method as described in the second aspect.
[0012] In summary, the electronic device provided by the present application includes a foldable body, the foldable body includes a foldable first body and a second body, the radiator of the NFC antenna is set corresponding to the first body, when the angle of the first body and the second body changes, the environment of the radiator of the NFC antenna changes, thereby affecting the radio frequency signal received and transmitted by the transceiver. The transceiver of the NFC antenna detects the radio frequency signal corresponding to the radiator of the NFC antenna when receiving and transmitting the NFC electromagnetic wave signal to obtain a detection signal, and compares the detection signal with a plurality of preset signals of the first body and the second body at different angles to obtain the angle between the first body and the second body of the electronic device. The electronic device provided by the embodiment of the present application reuses the NFC antenna of the electronic device as a device for detecting the angle between the first body and the second body of the electronic device, and does not need to use a Hall sensor to judge the angle between the first body and the second body, thereby saving the number of components in the electronic device and saving the cost of the electronic device. In addition, it can also facilitate the layout of the remaining components in the electronic device. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments. 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.
[0014] Figure 1 A schematic diagram of a foldable electronic device in an unfolded state provided by one embodiment of the present application;
[0015] Figure 2 for Figure 1 Schematic diagram of the foldable electron shown in the folded state;
[0016] Figure 3 for Figure 1 A schematic diagram of the structure of a foldable electronic device provided, showing a portion of the structure in an unfolded state;
[0017] Figure 4 for Figure 2 A schematic diagram of the structure of a foldable electronic device provided, showing a portion of the structure in a folded state;
[0018] Figure 5 An implementation method Figure 1 A circuit block diagram of the electronic device shown;
[0019] Figure 6 Another embodiment Figure 1 A circuit block diagram of the electronic device shown;
[0020] Figure 7 A diagram showing a simulated interface of an electronic device provided in one embodiment of the present application;
[0021] Figure 8 for Figure 3 A schematic diagram of another dimension of a partial structure of the electronic device shown in ;
[0022] Figure 9 A flow chart of a method for determining a folding angle provided in one embodiment of the present application;
[0023] Figure 10 for Figure 9 The flowchart of S210 included in S200;
[0024] Figure 11 for Figure 9 The flowchart of S110 included in S100;
[0025] Figure 12 for Figure 10 The flowchart included in S210;
[0026] Figure 13 Schematic diagram of S300 and S400 in a folding angle determination method provided in one embodiment;
[0027] Figure 14 for Figure 9 The flowchart of S111 included in S100 of the folding angle determination method shown in FIG;
[0028] Figure 15 A schematic diagram of a computer-readable storage medium provided in accordance with one embodiment of the present application.
[0029] Description of main component numbers:
[0030] Electronic device 1, foldable body 100, first body 110, first frame body 111, first frame 112, first side 1111, second side 1112;
[0031] Second body 120, second frame body 121, second frame 122, third side 1211, fourth side 1212;
[0032] NFC antenna 200, radiator 210, transceiver 220;
[0033] Processor 300, memory 600, housing 400, first housing 410, second housing 420;
[0034] Display screen 500, first fixing portion 510, bending portion 520, second fixing portion 530, computer-readable storage medium 700;
[0035] A first direction D1, a second direction D2, and a third direction D3. DETAILED DESCRIPTION
[0036] The technical solution of this application will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the embodiments described in this application are only some embodiments, not all embodiments. Based on the embodiments provided in this application, all other embodiments obtained by ordinary technicians in this field without making any creative efforts are within the scope of protection of this application.
[0037] References to "embodiments" in this application mean that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it necessarily refer to mutually exclusive, independent, or alternative embodiments to other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described in this application may be combined with other embodiments.
[0038] The terms "first," "second," and so on, in the specification and claims of this application and the accompanying drawings are used to distinguish between different objects, not to describe a specific order. Furthermore, the terms "including," "having," and any variations thereof, are intended to cover non-exclusive inclusions. For example, a component or device comprising one or more parts is not limited to the one or more parts listed, but may optionally include one or more parts that are not listed but are inherent to the illustrated product, or one or more parts that should be present based on the described functionality.
[0039] The present application provides a foldable electronic device 1. Foldable electronic devices 1 include, but are not limited to, mobile phones, tablet computers, laptop computers, and other devices with communication capabilities that can be folded or unfolded. This embodiment uses a mobile phone as an example; other electronic devices 1 may refer to this embodiment.
[0040] Please also refer to Figure 1 、 Figure 2 、 Figure 3 and Figure 4 , Figure 1 A schematic diagram of a foldable electronic device in an unfolded state provided by one embodiment of the present application; Figure 2 for Figure 1 Schematic diagram of the foldable electron shown in the folded state; Figure 3 for Figure 1 A schematic diagram of the structure of a foldable electronic device provided, showing a portion of the structure in an unfolded state; Figure 4 for Figure 2 A schematic diagram of the structure of a foldable electronic device provided, showing a portion of the structure in a folded state; Figure 5 An implementation method Figure 1 The circuit block diagram of the electronic device shown is shown. The foldable electronic device 1 includes a foldable body 100, an NFC antenna 200 and a processor 300. The electronic device 1 includes a foldable body 100, a near field communication (NFC) antenna and a processor 300. The near field communication antenna is abbreviated as NFC antenna and is identified by the reference numeral 200. The foldable body 100 includes a foldable first body 110 and a second body 120, so that the foldable electronic device 1 has a folded state and an unfolded state. The NFC antenna 200 includes a radiator 210 and a transceiver 220. The radiator 210 is arranged corresponding to the first body 110. The transceiver 220 is used to generate an original NFC radio frequency signal. The transceiver 220 is electrically connected to the radiator 210 so that the radiator 210 transmits and receives NFC electromagnetic wave signals according to the original NFC radio frequency signal. The transceiver 220 is also used to detect the radio frequency signal corresponding to the radiator 210 transmitting and receiving the NFC electromagnetic wave signal to obtain a detection signal. The processor 300 is used to compare the detection signal with multiple preset signals to determine the angle between the first body 110 and the second body 120 of the electronic device 1, wherein the multiple preset signals are radio frequency signals at different angles between the first body 110 and the second body 120.
[0041] The foldable body 100 includes a foldable first body 110 and a second body 120. In this embodiment, the foldable body 100 includes a first body 110 and a second body 120 that are foldable along a folding axis L0, so that the foldable electronic device 1 is in a folded state and an unfolded state. The material of the foldable body 100 is a metallic conductive material. The present application is not limited to the shapes of the first body 110 and the second body 120. Optionally, the first body 110 may be roughly rectangular, and the second body 120 may be roughly rectangular. Their shapes are not specifically limited, including but not limited to rectangular, square, irregular, etc. The foldable body 100 may also be provided with through holes, notches, grooves, etc. to accommodate devices.
[0042] See also Figure 3 In this embodiment, the rotational connection between the first body 110 and the second body 120 is used as an example for illustration. The first body 110 and the second body 120 are rotationally connected via a rotation shaft 130. The first body 110 is disposed on one side of the rotation shaft 130, and the second body 120 is disposed on the other side of the rotation shaft 130. The rotation shaft 130 can drive the first body 110 and the second body 120 to expand or fold relative to each other.
[0043] See also Figure 1 and Figure 2 In one embodiment, the foldable electronic device 1 further includes a housing 400. The housing 400 includes a first housing 410 and a second housing 420. The first housing 410 is disposed outside the first body 110, and the second housing 420 is disposed outside the second body 120. The first body 110 and the first housing 410 form a receiving space, while the second body 120 and the second housing 420 form a receiving space. The receiving space is also used to accommodate components such as circuit boards, camera modules, receiver modules, batteries, and various sensors.
[0044] See also Figure 1 and Figure 2The foldable electronic device 1 also includes a display screen 500. The display screen 500 can be, but is not limited to, a flexible display screen. The display screen 500 is provided on the front side of the foldable main body 100 (the front side refers to the direction facing the user when the user is using the display screen 500 normally). The display screen 500 includes a first fixing portion 510, a bending portion 520, and a second fixing portion 530 arranged in sequence. The first fixing portion 510 is fixed to the first main body 110, and the fixing method of the first fixing portion 510 to the first main body 110 can be, but is not limited to, gluing, etc. The second fixing portion 530 is fixed to the second shell 420, and the fixing method of the second fixing portion 530 to the second shell 420 includes, but is not limited to, gluing, etc. The bending portion 520 is arranged corresponding to the rotating shaft 130. The bending portion 520 bends when the foldable electronic device 1 is used, and its shape when bent includes, but is not limited to, a teardrop shape or a U shape.
[0045] The foldable body 100 has a folded state and an unfolded state. The folded state of the foldable body 100 refers to a state in which the first body 110 and the second body 120 are stacked in the thickness direction (direction D3). Specifically, along direction D3, the first body 110 and the second body 120 are arranged in upper and lower layers, respectively. The unfolded state of the foldable body 100 refers to a state in which the overlapping area between the first body 110 and the second body 120 is less than a predetermined area, such as 20%, 15%, 10%, 5%, 1%, or 0% of the area of the first body 110.
[0046] In this embodiment, the state of the foldable body 100 is the same as the state of the foldable electronic device 1. When the foldable body 100 is in a folded state, the foldable electronic device 1 is in a folded state; correspondingly, when the foldable body 100 is in an unfolded state, the foldable electronic device 1 is in a folded state.
[0047] In addition, in one embodiment, the foldable body 100 further has an intermediate state between the folded state and the unfolded state, which may also be referred to as a hovering state.
[0048] It can be understood that the introduction of the electronic device 1 is merely an introduction to the application environment of the NFC antenna 200 and should not be understood as limiting the electronic device 1 provided in the embodiments of the present application.
[0049] The NFC antenna 200 includes a radiator 210 and a transceiver 220. The radiator 210 is disposed corresponding to the first body 110. The radiator 210 can be formed in the first body 110 or disposed in the first body 110. The specific details of the radiator 210 will be described in detail later.
[0050] The transceiver 220 is configured to generate an original NFC radio frequency signal. The transceiver 220 is electrically connected to the radiator 210. The radiator 210 receives the original NFC radio frequency signal and converts the original NFC radio frequency signal into an NFC electromagnetic wave signal.
[0051] Because the radiator 210 is positioned relative to the first body 110, when the state between the first body 110 and the second body 120 in the electronic device 1 changes, the environment of the radiator 210 changes, causing changes in the original NFC radio frequency signal transmitted from the transceiver 220 to the radiator 210. Different angles between the first body 110 and the second body 120 result in different changes in the original NFC signal transmitted from the transceiver 220 to the radiator 210.
[0052] The transceiver 220 detects the radio frequency signal when the radiator 210 transmits and receives the NFC electromagnetic wave signal to obtain a detection signal.
[0053] The processor 300 may include one or more processing cores. The processor 300 utilizes various interfaces and circuits to connect various components within the entire electronic device 1. By running or executing instructions, programs, code sets, or instruction sets, the processor 300 performs various functions of the electronic device 1 and processes data. Optionally, the processor 300 may be implemented in at least one hardware form: a digital signal processing (DSP), a field-programmable gate array (FPGA), or a programmable logic array (PLA).
[0054] The processor 300 compares the detection signal with the multiple preset signals to determine the angle between the first body 110 and the second body 120 in the electronic device 1. When the first body 110 and the second body 120 are at a certain angle, a preset signal is generated; different angles between the first body 110 and the second body 120 correspond to different preset signals. For example, when the angle between the first body 110 and the second body 120 is A1, the transceiver 220 detects that the radio frequency signal corresponding to the NFC signal transmitted and received by the radiator 210 is the preset signal a1; when the angle between the first body 110 and the second body 120 is A2, the transceiver 220 detects that the radio frequency signal corresponding to the NFC signal transmitted and received by the radiator 210 is the preset signal a2; and when the angle between the first body 110 and the second body 120 is A3, the transceiver 220 detects that the radio frequency signal corresponding to the NFC signal transmitted and received by the radiator 210 is the preset signal a3.
[0055] When the detection signal matches one of the plurality of preset signals, the angle between the first body 110 and the second body 120 of the electronic device 1 is the angle corresponding to the one of the plurality of preset signals. For example, when the detection signal matches the preset signal a1, the angle between the first body 110 and the second body 120 of the electronic device 1 is the angle A1 corresponding to the preset signal a1.
[0056] In one embodiment, when the processor 300 determines the angle between the first body 110 and the second body 120 of the electronic device 1, the processor 300 controls other components of the electronic device 1 to perform functions corresponding to the angle based on the angle, where different angles correspond to different functions. This facilitates human-computer interaction, functional expansion, and other requirements for the electronic device 1 by changing the angle between the first body 110 and the second body 120.
[0057] For example, when the processor 300 determines that the angle between the first body 110 and the second body 120 of the electronic device 1 is angle A1, the processor 300 controls the other components of the electronic device 1 to perform function B1; when the processor 300 determines that the angle between the first body 110 and the second body 120 of the electronic device 1 is angle A2, the processor 300 controls the other components of the electronic device 1 to perform function B2, wherein angle A1 ≠ angle A2; and function B1 ≠ function B2. For example, when the angle A1 is equal to 0°, the processor 300 controls the display screen 500 of the electronic device 1 to turn off; when the angle A2 is equal to 180°, the processor 300 controls the display screen 500 of the electronic device 1 to turn on.
[0058] It can be understood that in other embodiments, when the processor 300 determines that the angle between the first body 110 and the second body 120 of the electronic device 1 is in a different angle range, the processor 300 controls other components of the electronic device 1 to perform functions corresponding to the angle range, wherein different angle ranges correspond to different functions, and the same angle range corresponds to the same function.
[0059] For example, when the processor 300 determines that the angle between the first body 110 and the second body 120 of the electronic device 1 is within the first angle range A1', the processor 300 controls the other components of the electronic device 1 to perform the first function B1'; when the angle between the first body 110 and the second body 120 of the electronic device 1 is within the second angle range A2', the processor 300 controls the other components of the electronic device 1 to perform the second function B2', wherein the first angle range A1'≠the second angle range A2', and the first function B1'≠the second function B2'. For example, the first angle range is 170° to 180°, and the second angle range is 0° to 10°; when the processor 300 determines that the angle between the first body 110 and the second body 120 is within the first angle range, the processor 300 controls the display screen 500 of the electronic device 1 to turn on the screen; when the processor 300 determines that the angle between the first body 110 and the second body 120 is within the second angle range, the processor 300 controls the display screen 500 of the electronic device 1 to turn off the screen.
[0060] When the processor 300 determines that the angle between the first body 110 and the second body 120 of the electronic device 1 is a first sub-angle within the first angle range A1', the processor 300 controls the other components of the electronic device 1 to perform the first sub-function of the first function B1'; correspondingly, when the processor 300 determines that the angle between the first body 110 and the second body 120 of the electronic device 1 is a second sub-angle within the first angle range A1', the processor 300 controls the other components of the electronic device 1 to perform the first sub-function of the first function B1'; wherein the first sub-angle is not equal to the second sub-angle. For example, the first angle range is 170° to 180°. When the processor 300 determines that the angle between the first body 110 and the second body 120 of the electronic device 1 is within the first angle range, such as the first sub-angle is 172° and the second sub-angle is 178°, the processor 300 controls the display screen 500 of the electronic device 1 to light up.
[0061] For another example, the second angle range is 0° to 10°. When the processor 300 determines that the angle between the first body 110 and the second body 120 of the electronic device 1 is within the second angle range, when the processor 300 determines that the angle between the first body 110 and the second body 120 of the electronic device 1 is within a different sub-angle within the second angle range, for example, when the angle between the first body 110 and the second body 120 is 3° or 5°, the processor 300 controls the display screen 500 of the electronic device 1 to turn off the screen.
[0062] It can be understood that the above is only an implementation method of the processor 300 of the electronic device 1 controlling other components of the electronic device 1 according to the angle between the first body 110 and the second body 120, and should not be understood as a limitation on the electronic device 1 provided in the implementation method of this application.
[0063] In summary, the electronic device 1 provided in the present application includes a foldable body 100, wherein the foldable body 100 includes a foldable first body 110 and a foldable second body 120. The radiator 210 of the NFC antenna 200 is arranged corresponding to the first body 110. When the angle between the first body 110 and the second body 120 changes, the environment of the radiator 210 of the NFC antenna 200 changes, thereby affecting the radio frequency signal received and transmitted by the transceiver 220. The transceiver 220 of the NFC antenna 200 detects the radio frequency signal corresponding to the NFC electromagnetic wave signal transmitted and received by the radiator 210 of the NFC antenna 200 to obtain a detection signal, and compares the detection signal with multiple preset signals when the first body 110 and the second body 120 are at different angles to obtain the angle between the first body 110 and the second body 120 of the electronic device 1. The electronic device 1 provided in the embodiment of the present application reuses the NFC antenna 200 of the electronic device 1 as a device for detecting the angle between the first body 110 and the second body 120 of the electronic device 1, eliminating the need for a Hall effect sensor to determine the angle between the first body 110 and the second body 120. This reduces the number of components in the electronic device 1 and reduces the cost of the electronic device 1. Furthermore, this also facilitates the layout of the remaining components in the electronic device 1.
[0064] Furthermore, the multiple preset signals include a first preset signal and a second preset signal, wherein the first preset signal is a radio frequency signal indicating that the electronic device 1 is in a folded state, and the second preset signal is a radio frequency signal indicating that the electronic device 1 is in an unfolded state. The processor 300 is configured to compare the detection signal with the first preset signal and the second preset signal. When the detection signal matches the first preset signal, the processor 300 determines that the electronic device 1 is in a folded state; when the detection signal matches the second preset signal, the processor 300 determines that the electronic device 1 is in an unfolded state.
[0065] The first preset signal is a radio frequency signal generated when the electronic device 1 is in a folded state. When the detection signal is identical to the first preset signal, or approximately identical to the first preset signal, the processor 300 determines that the current state of the electronic device 1 is the same as the state when the transceiver 220 of the electronic device 1 received the first preset signal. Since the first preset signal is a radio frequency signal generated when the electronic device 1 is in a folded state, when the detection signal matches the first preset signal, the current state of the electronic device 1 is also in a folded state.
[0066] Accordingly, the second preset signal is a radio frequency signal generated when the electronic device 1 is in the unfolded state. When the detection signal is identical to the second preset signal, or approximately identical to the second preset signal, the processor 300 determines that the current state of the electronic device 1 is the same as the state when the transceiver 220 of the electronic device 1 receives the second preset signal. Since the second preset signal is a radio frequency signal generated when the electronic device 1 is in the unfolded state, when the detection signal matches the second preset signal, the current state of the electronic device 1 is also in the unfolded state.
[0067] Since the folded state and the unfolded state in the foldable electronic device 1 are two important states in the foldable electronic device 1, the electronic device 1 provided in the embodiment of the present application, the processor 300 compares the detection signal with the first preset signal corresponding to the electronic device 1 being in the folded state, and compares the detection signal with the second preset signal corresponding to the electronic device 1 being in the unfolded state, and then determines whether the electronic device 1 is in the folded state or whether it is in the unfolded state.
[0068] In one embodiment, when the processor 300 determines the current state of the electronic device 1, the processor 300 may further control other components of the electronic device 1 according to the current state of the electronic device 1. For example, when the processor 300 determines based on the detection signal that the electronic device 1 is currently in the unfolded state, the processor 300 controls the display screen 500 of the electronic device 1 to turn on. When the processor 300 determines based on the detection signal that the electronic device 1 is currently in the folded state, the processor 300 controls the display screen 500 of the electronic device 1 to turn off.
[0069] Furthermore, the first preset signal includes a first resonant frequency and a first current of the radio frequency signal when the electronic device 1 is in the folded state. The second preset signal includes a second resonant frequency and a second current of the radio frequency signal when the electronic device 1 is in the unfolded state. The transceiver 220 is configured to detect the resonant frequency and current of the radio frequency signal when the radiator 210 transmits and receives NFC electromagnetic wave signals to obtain a detected resonant frequency and a detected current. The processor 300 compares the detected resonant frequency with the first resonant frequency and the second resonant frequency, respectively, and compares the detected current with the first current and the second current, respectively. When the detected resonant frequency matches the first resonant frequency and the detected current matches the first current, the processor 300 determines that the electronic device 1 is in the folded state; when the detected resonant frequency matches the second resonant frequency and the detected current matches the second current, the processor 300 determines that the electronic device 1 is in the unfolded state.
[0070] When the state between the first body 110 and the second body 120 in the electronic device 1 changes, the environment of the radiator 210 changes, thereby causing the radio frequency signal when the radiator 210 transmits and receives the NFC electromagnetic wave signal to change. Specifically, the resonant frequency (also called the resonant frequency) and current of the radio frequency signal change. Therefore, the processor 300 detects the resonant frequency of the radio frequency signal when the radiator 210 transmits and receives the NFC electromagnetic wave signal to obtain a detected resonant frequency, and the processor 300 detects the current of the radio frequency signal when the radiator 210 transmits and receives the NFC electromagnetic wave signal to obtain a detected current.
[0071] The processor 300 compares the detection frequency with the first resonant frequency, and the processor 300 compares the detection current with the first current; when the detection frequency matches the resonant frequency (the detection frequency is the same as or approximately the same as the resonant frequency), and the detection current matches the first current (the detection current is the same as or approximately the same as the first current), the processing determines that the current state of the electronic device 1 is in a folded state.
[0072] Correspondingly, the processor 300 compares the detection frequency with the second resonant frequency, and the processor 300 compares the detection current with the second current; when the detection frequency matches the resonant frequency (the detection frequency is the same as or approximately the same as the resonant frequency), and the detection current matches the second current (the detection current is the same as or approximately the same as the second current), the processing determines that the current state of the electronic device 1 is in the expanded state.
[0073] It can be seen that the electronic device 1 provided in the embodiment of the present application can detect the detected resonant frequency and the detected current when the radiator 210 sends and receives NFC electromagnetic wave signals through the transceiver 220, and compare them with the first resonant frequency and the first current when the electronic device 1 is in the folded state; the detected resonant frequency and the detected current when the radiator 210 sends and receives NFC electromagnetic wave signals can be detected by the transceiver 220, and compare them with the second resonant frequency and the second current when the electronic device 1 is in the unfolded state; so as to determine whether the current electronic device 1 is in the unfolded state or the folded state, and the judgment is more accurate.
[0074] Please also refer to Figure 1 、 Figure 2 and refer to Figure 6 , Figure 6 Another embodiment Figure 1The electronic device 1 includes a foldable body 100, an NFC antenna 200, and a processor 300. The foldable body 100, the NFC antenna 200, and the processor 300 are described above and will not be described again here.
[0075] In addition, the electronic device 1 further includes a memory 600. The processor 300 is further configured to, when the electronic device 1 is being calibrated, control the transceiver 220 to detect a first resonant frequency and a first current when the electronic device 1 is in a folded state, and to store the first resonant frequency and the first current in the memory 600. The processor 300 is further configured to, when the electronic device 1 is being calibrated, control the transceiver 220 to detect a second resonant frequency and a second current when the electronic device 1 is in an unfolded state, and to store the second resonant frequency and the second current in the memory 600.
[0076] The memory 600 may include a random access memory (RAM) or a read-only memory (ROM). The memory 600 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 600 may include a program storage area and a data storage area. The program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the aforementioned embodiments, etc. The data storage area may also store data created by the electronic device 1 during use.
[0077] In one embodiment, when the electronic device 1 is calibrated, the processor 300 controls the transceiver 220 to record the resonant frequency (i.e., the first resonant frequency) and the resonant current (i.e., the first current) of the electronic device 1 when it is in a folded state; the processor 300 also controls the transceiver 220 to record the resonant frequency (i.e., the second resonant frequency) and the resonant current (i.e., the second current) of the electronic device 1 when it is in an unfolded state, so that the processor 300 can subsequently quickly determine whether the electronic device 1 is in a folded state or in an unfolded state.
[0078] It can be understood that in one embodiment, the electronic device 1 can be calibrated before leaving the factory, and the first resonant frequency, the first current, the second resonant frequency, and the second current can be stored in the memory 600. In another embodiment, the processor 300 can control the display screen 500 of the electronic device 1 to display a calibration interface to guide and enhance the user to adjust the electronic device 1 to the unfolded state and the folded state according to the calibration interface; and the processor 300 can also control the transceiver 220 to detect the resonant frequency (i.e., the first resonant frequency) and the resonant current (i.e., the first current) of the electronic device 1 in the folded state, and control the transceiver 220 to detect the resonant frequency (i.e., the second resonant frequency) and the resonant current (i.e., the second current) of the electronic device 1 in the state, and transmit the detection results (i.e., the first resonant frequency, the first current; the second resonant frequency and the second current) to the memory 600.
[0079] It can be understood that in one embodiment, the processor 300 controls the electronic device 1 to perform calibration every preset time period to obtain the resonant frequency and current of the electronic device 1 when it is in a folded state and an unfolded state, so as to improve the accuracy of whether the electronic device 1 is in a folded state and whether it is in an unfolded state.
[0080] In this embodiment, the processor 300 is also used to control the transceiver 220 to detect the first resonant frequency and the first current of the electronic device 1 in a folded state when the electronic device 1 is calibrated, and is also used to control the transceiver 220 to detect the second resonant frequency and the second current of the electronic device 1 in an unfolded state; and store the first resonant frequency, the first current, the second resonant frequency and the second current in the memory 600. When it is necessary to judge the current state of the electronic device 1, the processor 300 can directly call the data of the first resonant frequency, the first current, the second resonant frequency and the second current stored in the memory 600 to quickly judge the current state of the electronic device 1.
[0081] The NFC antenna 200 is used to periodically transmit and receive the NFC electromagnetic wave signal, and the NFC electromagnetic wave signal is used to detect whether a target card is approaching.
[0082] The processor 300 is configured to control the transceiver 220 to detect a radio frequency signal corresponding to when the radiator 210 transmits and receives an NFC electromagnetic wave signal in a current cycle to obtain the detection signal.
[0083] Generally speaking, the NFC antenna 200 in the electronic device 1 is used in a card swiping scenario. The NFC antenna 200 periodically transmits and receives the NFC electromagnetic wave signal, which is used to detect whether a target card is approaching. When a target card is approaching, the NFC antenna 200 of the electronic device 1 communicates with the target card to swipe the card. In one embodiment, the period of the NFC antenna 200 periodically transmitting and receiving the NFC electromagnetic wave signal can be, but is not limited to, several hundred milliseconds. Therefore, the period of the NFC antenna 200 periodically transmitting and receiving the NFC electromagnetic wave signal is relatively short.
[0084] See also Figure 7 , Figure 7 This is a simulation interface diagram of an electronic device provided in one embodiment of the present application. Figure 7 As shown, the NFC antenna 200 can periodically transmit and receive the NFC electromagnetic wave signal, and the NFC electromagnetic wave signal is used to detect whether a target card is approaching.
[0085] In the electronic device 1 provided in the embodiment of the present application, the NFC antenna 200 in the electronic device 1 is reused as a device for detecting the angle between the first body 110 and the second body 120 of the electronic device 1. Therefore, there is no need to use a separate Hall sensor, which does not increase the hardware cost of the electronic device 1. In addition, the processor 300 detects the radio frequency signal corresponding to the radiator 210 transmitting and receiving the NFC electromagnetic wave signal in the current cycle when the NFC antenna 200 transmits and receives the NFC electromagnetic wave signal to obtain a detection signal. The processor 300 then determines the angle between the first body 110 and the second body 120 based on the detection signal, thereby achieving high detection accuracy and strong real-time detection performance.
[0086] In summary, in the electronic device 1 provided in the embodiment of the present application, the processor 300 controls the transceiver 220 to detect the radio frequency signal corresponding to the radiator 210 transmitting and receiving the NFC electromagnetic wave signal in the current cycle to obtain the detection signal. It can be seen that the NFC antenna 200 in the electronic device 1, which is originally used to perform functions such as card swiping, is reused as a device for detecting the angle between the first body 110 and the second body 120 of the electronic device 1 in addition to performing the original card swiping function. Therefore, the electronic device 1 provided in the embodiment of the present application does not need to use a Hall sensor to determine the angle between the first body 110 and the second body 120, thereby saving the number of devices in the electronic device 1 and saving the cost of the electronic device 1.
[0087] Please also refer to Figure 3 and Figure 8 , Figure 8 for Figure 3is a schematic diagram of a portion of the structure of an electronic device in another dimension. The first body 110 and the second body 120 are folded about a folding axis L0. The first body 110 includes a first frame body 111 and a first frame 112. The first frame body 111 has a first side 1111 facing the folding axis L0 and adjacent to the second body 120, and a second side 1112 bent and connected to the first side 1111. The first frame 112 is provided on the second side 1112 of the first frame body 111, and the radiator 210 is formed on the first frame 112. The second body 120 includes a second frame body 121 and a second frame 122. The second frame body 121 has a third side 1211 facing the folding axis L0 and adjacent to the first body 110, and a fourth side 1212 bent and connected to the third side 1211. The second frame 122 is provided on the fourth side 1212 of the second frame body 121. When the electronic device 1 is in the folded state, in the stacking direction of the second body 120 and the first body 110 , the second frame 122 and the first frame 112 are at least partially stacked.
[0088] Please also refer to Figure 1 and Figure 3 In the schematic diagram of this embodiment, the folding axis L0 extends along a first direction D1. When the electronic device 1 is in the unfolded state, the first body 110 and the second body 120 are arranged along a second direction D2. When the electronic device 1 is in the folded state, the first body 110 and the second body 120 are stacked along a third direction D3. The first direction D1, the second direction D2, and the third direction D3 may be perpendicular to each other.
[0089] There is no necessary limitation on the size of the first body 110 in the first direction D1 and the size of the second body 120 in the second direction D2. The sizes of the first body 110 in the first direction D1 and the second body 120 in the second direction D2 shown in the figure should not be understood as limitations on the electronic device 1 provided in the embodiments of the present application. The size of the first body 110 in the first direction D1 can be greater than, equal to, or less than the size of the first body 110 in the second direction D2.
[0090] Accordingly, there is no necessary limitation on the size of the second body 120 in the first direction D1 and the size of the second body 120 in the second direction D2. The size of the second body 120 in the first direction D1 and the size of the second body 120 in the second direction D2 shown in the figure should not be understood as limiting the embodiments of the present application. The size of the second body 120 in the first direction D1 can be greater than, equal to, or less than the size of the second body 120 in the second direction D2.
[0091] In this embodiment, there is no necessary limitation on the size of the first body 110 in the first direction D1 and the size of the second body 120 in the first direction D1. The size of the first body 110 in the first direction D1 and the size of the second body 120 in the first direction D1 shown in the figure should not be understood as a limitation on the electronic device 1 provided in the embodiment of this application. The size of the first body 110 in the first direction D1 can be greater than, equal to, or less than the size of the second body 120 in the first direction D1.
[0092] Accordingly, there is no necessary limitation on the size of the first body 110 and the size of the second body 120 in the second direction D2. The sizes of the first body 110 and the second body 120 in the second direction D2 shown in the figure should not be understood as limitations on the electronic device 1 provided in the embodiments of the present application. The size of the first body 110 in the second direction D2 can be greater than, equal to, or less than the size of the second body 120 in the second direction D2.
[0093] In this embodiment, the first body 110 and the second body 120 are respectively two foldable metal middle frames of the electronic device 1. In other embodiments, the first body 110 and the second body 120 may not be two foldable metal middle frames of the electronic device 1, but may be metal components other than the middle frame of the electronic device 1.
[0094] In the diagram of this embodiment, the first side 1111 is the left side of the first body 110, and the second side 1112 is the top side of the first body 110. Correspondingly, the third side 1211 is the right side of the second body 120, and the fourth side 1212 is the top side of the second body 120.
[0095] The radiator 210 is formed in the first frame 112. Therefore, the radiator 210 is designed to be integrated with the first frame 112 of the first body 110. Therefore, the NFC antenna 200 is also called an NFC shared body antenna. When the radiator 210 is formed in the first frame 112, the state changes between the first body 110 and the second body 120 are significantly affected by the radiator 210. Specifically, the detection signal changes significantly with the state changes between the first body 110 and the second body 120. Therefore, when the processor 300 uses the detection signal to determine the angle between the first body 110 and the second body 120, the angle between the first body 110 and the second body 120 can be determined more accurately.
[0096] The embodiment of the present application also provides a folding angle determination method. The folding angle determination method is applied to a foldable electronic device 1. The processor 300 of the electronic device 1 provided in the previous embodiment can execute the folding angle determination method described below. Accordingly, the folding angle determination method provided below can be executed by the processor 300 of the electronic device 1 provided in the previous embodiment. The electronic device 1 can refer to the previous description and will not be described in detail here. For the beneficial effects of the angle determination method and the beneficial effects of some processes, please refer to the description of the electronic device 1 in the previous embodiment and will not be repeated here.
[0097] Specifically, the electronic device 1 includes a foldable body 100 and an NFC antenna 200. The foldable body 100 includes a foldable first body 110 and a second body 120, so that the electronic device 1 has a folded state and an unfolded state; the NFC antenna 200 includes a radiator 210 and a transceiver 220. The radiator 210 is arranged corresponding to the first body 110. The transceiver 220 is used to generate an original NFC radio frequency signal, and the transceiver 220 is electrically connected to the radiator 210 so that the radiator 210 transmits and receives NFC electromagnetic wave signals according to the original NFC radio frequency signal.
[0098] See also Figure 9 , Figure 9 This is a flow chart of a method for determining a folding angle according to one embodiment of the present application. In one embodiment, the method includes S100 and S200, which are described in detail as follows.
[0099] S100 , detecting a radio frequency signal corresponding to when the radiator 210 transmits and receives an NFC electromagnetic wave signal to obtain a detection signal.
[0100] S200, comparing the detection signal with a plurality of preset signals to determine the angle between the first body 110 and the second body 120 of the electronic device 1, wherein the plurality of preset signals are radio frequency signals at different angles between the first body 110 and the second body 120.
[0101] Because the radiator 210 is positioned relative to the first body 110, when the state between the first body 110 and the second body 120 in the electronic device 1 changes, the environment of the radiator 210 changes, causing changes in the original NFC radio frequency signal transmitted from the transceiver 220 to the radiator 210. Different angles between the first body 110 and the second body 120 result in different changes in the original NFC signal transmitted from the transceiver 220 to the radiator 210.
[0102] The transceiver 220 detects the radio frequency signal when the radiator 210 transmits and receives the NFC electromagnetic wave signal to obtain a detection signal.
[0103] The method compares the detection signal with the plurality of preset signals to determine the angles of the first body 110 and the second body 120 in the electronic device 1. For details, please refer to the above description of the embodiment of the electronic device 1, which will not be repeated here.
[0104] In one embodiment, when the angle between the first body 110 and the second body 120 of the electronic device 1 is determined, the processor 300 controls other components of the electronic device 1 to perform functions corresponding to the angle according to the angle, wherein different angles may correspond to different functions.
[0105] It can be understood that in other embodiments, when the processor 300 determines that the angle between the first body 110 and the second body 120 of the electronic device 1 is in a different angle range, the processor 300 controls other components of the electronic device 1 to perform functions corresponding to the angle range, wherein different angle ranges correspond to different functions, and the same angle range corresponds to the same function.
[0106] For example, when the processor 300 determines that the angle between the first body 110 and the second body 120 of the electronic device 1 is within the first angle range A1', the processor 300 controls the other components of the electronic device 1 to perform the first function B1'; when the angle between the first body 110 and the second body 120 of the electronic device 1 is within the second angle range A2', the processor 300 controls the other components of the electronic device 1 to perform the second function B2', wherein the first angle range A1'≠the second angle range A2', and the first function B1'≠the second function B2'. For example, the first angle range is 170° to 180°, and the second angle range is 0° to 10°; when the processor 300 determines that the angle between the first body 110 and the second body 120 is within the first angle range, the processor 300 controls the display screen 500 of the electronic device 1 to turn on the screen; when the processor 300 determines that the angle between the first body 110 and the second body 120 is within the second angle range, the processor 300 controls the display screen 500 of the electronic device 1 to turn off the screen.
[0107] When the processor 300 determines that the angle between the first body 110 and the second body 120 of the electronic device 1 is a first sub-angle within the first angle range A1', the processor 300 controls the other components of the electronic device 1 to perform the first sub-function of the first function B1'; correspondingly, when the processor 300 determines that the angle between the first body 110 and the second body 120 of the electronic device 1 is a second sub-angle within the first angle range A1', the processor 300 controls the other components of the electronic device 1 to perform the first sub-function of the first function B1'; wherein the first sub-angle is not equal to the second sub-angle. For example, the first angle range is 170° to 180°. When the processor 300 determines that the angle between the first body 110 and the second body 120 of the electronic device 1 is within the first angle range, such as the first sub-angle is 172° and the second sub-angle is 178°, the processor 300 controls the display screen 500 of the electronic device 1 to light up.
[0108] For another example, the second angle range is 0° to 10°. When the processor 300 determines that the angle between the first body 110 and the second body 120 of the electronic device 1 is within the second angle range, when the processor 300 determines that the angle between the first body 110 and the second body 120 of the electronic device 1 is within a different sub-angle within the second angle range, for example, when the angle between the first body 110 and the second body 120 is 3° or 5°, the processor 300 controls the display screen 500 of the electronic device 1 to turn off the screen.
[0109] It can be understood that the above is only an implementation method of the processor 300 of the electronic device 1 controlling other components of the electronic device 1 according to the angle between the first body 110 and the second body 120, and should not be understood as a limitation on the electronic device 1 provided in the implementation method of this application.
[0110] In summary, the present application provides a method for determining the folding angle of an electronic device 1. The electronic device 1 includes a foldable body 100, which includes a foldable first body 110 and a foldable second body 120. The radiator 210 of the NFC antenna 200 is arranged corresponding to the first body 110. When the angle between the first body 110 and the second body 120 changes, the environment of the radiator 210 of the NFC antenna 200 changes, thereby affecting the radio frequency signal received and transmitted by the transceiver 220. The transceiver 220 of the NFC antenna 200 detects the radio frequency signal corresponding to the NFC electromagnetic wave signal transmitted and received by the radiator 210 of the NFC antenna 200 to obtain a detection signal, and compares the detection signal with multiple preset signals when the first body 110 and the second body 120 are at different angles to obtain the angle between the first body 110 and the second body 120 of the electronic device 1. The folding angle determination method of the electronic device 1 provided in the embodiment of the present application reuses the NFC antenna 200 of the electronic device 1 as a device for detecting the angle between the first body 110 and the second body 120 of the electronic device 1. There is no need to use a Hall sensor to determine the angle between the first body 110 and the second body 120, thereby saving the number of components in the electronic device 1 and saving the cost of the electronic device 1.
[0111] Furthermore, the multiple preset signals include a first preset signal and a second preset signal, wherein the first preset signal is a radio frequency signal when the electronic device 1 is in a folded state, and the second preset signal is a radio frequency signal when the electronic device 1 is in an unfolded state.
[0112] See also Figure 10 , Figure 10 for Figure 9In one embodiment, S200, comparing the detection signal with a plurality of preset signals to determine the angle between the first body 110 and the second body 120 of the electronic device 1, includes: S210, S210 is described in detail as follows.
[0113] S210, comparing the detection signal with the first preset signal and the second preset signal. When the detection signal matches the first preset signal, determining that the electronic device 1 is in a folded state; when the detection signal matches the second preset signal, determining that the electronic device 1 is in an unfolded state.
[0114] The first preset signal is a radio frequency signal generated when the electronic device 1 is in a folded state. When the detection signal is identical to the first preset signal, or approximately identical to the first preset signal, the processor 300 determines that the current state of the electronic device 1 is the same as the state when the transceiver 220 of the electronic device 1 received the first preset signal. Since the first preset signal is a radio frequency signal generated when the electronic device 1 is in a folded state, when the detection signal matches the first preset signal, the current state of the electronic device 1 is also in a folded state.
[0115] Accordingly, the second preset signal is a radio frequency signal generated when the electronic device 1 is in the unfolded state. When the detection signal is identical to the second preset signal, or approximately identical to the second preset signal, the processor 300 determines that the current state of the electronic device 1 is the same as the state when the transceiver 220 of the electronic device 1 receives the second preset signal. Since the second preset signal is a radio frequency signal generated when the electronic device 1 is in the unfolded state, when the detection signal matches the second preset signal, the current state of the electronic device 1 is also in the unfolded state.
[0116] Since the folded state and the unfolded state in the foldable electronic device 1 are two important states in the foldable electronic device 1, the electronic device 1 provided in the embodiment of the present application, the processor 300 compares the detection signal with the first preset signal corresponding to the electronic device 1 being in the folded state, and compares the detection signal with the second preset signal corresponding to the electronic device 1 being in the unfolded state, and then determines whether the electronic device 1 is in the folded state or whether it is in the unfolded state.
[0117] In one embodiment, when the current state of the electronic device 1 is determined, the method further includes: controlling other components of the electronic device 1 according to the current state of the electronic device 1. For example, when the processor 300 determines, based on the detection signal, that the electronic device 1 is currently in the unfolded state, the processor 300 controls the display screen 500 of the electronic device 1 to turn on the screen. When the processor 300 determines, based on the detection signal, that the electronic device 1 is currently in the folded state, the processor 300 controls the display screen 500 of the electronic device 1 to turn off the screen.
[0118] Furthermore, in one embodiment, the first preset signal includes a first resonant frequency point and a first current of a radio frequency signal when the electronic device 1 is in a folded state, and the second preset signal includes a second resonant frequency point and a second current of a radio frequency signal when the electronic device 1 is in an unfolded state. Figure 11 , Figure 11 for Figure 9 In this embodiment, S100, detecting the radio frequency signal corresponding to when the radiator 210 receives and transmits the NFC electromagnetic wave signal to obtain a detection signal, includes: S110, S110 is described in detail as follows.
[0119] S110 , detecting a resonant frequency and a current of a radio frequency signal when the radiator 210 receives and transmits an NFC electromagnetic wave signal to obtain a detected resonant frequency and a detected current.
[0120] Accordingly, S210 compares the detection signal with the first preset signal and the second preset signal. When the detection signal matches the first preset signal, it is determined that the electronic device 1 is in the folded state; when the detection signal matches the second preset signal, it is determined that the electronic device 1 is in the unfolded state, including: S211 and S212. S211 and S212 are described in detail below. Figure 12 , Figure 12 for Figure 10 The flowchart included in S210.
[0121] S211, comparing the detected resonant frequency with the first resonant frequency and the second resonant frequency respectively, and comparing the detected current with the first current and the second current respectively;
[0122] S212, when the detected resonant frequency matches the first resonant frequency, and the detected current matches the first current, it is determined that the electronic device 1 is in a folded state; when the detected resonant frequency matches the second resonant frequency, and the detected current matches the second current, it is determined that the electronic device 1 is in an unfolded state.
[0123] When the state between the first body 110 and the second body 120 in the electronic device 1 changes, the environment of the radiator 210 changes, thereby causing the radio frequency signal when the radiator 210 transmits and receives the NFC electromagnetic wave signal to change. Specifically, the resonant frequency (also called the resonant frequency) and current of the radio frequency signal change. Therefore, the processor 300 detects the resonant frequency of the radio frequency signal when the radiator 210 transmits and receives the NFC electromagnetic wave signal to obtain a detected resonant frequency, and the processor 300 detects the current of the radio frequency signal when the radiator 210 transmits and receives the NFC electromagnetic wave signal to obtain a detected current.
[0124] The processor 300 compares the detection frequency with the first resonant frequency, and the processor 300 compares the detection current with the first current; when the detection frequency matches the resonant frequency (the detection frequency is the same as or approximately the same as the resonant frequency), and the detection current matches the first current (the detection current is the same as or approximately the same as the first current), the processing determines that the current state of the electronic device 1 is in a folded state.
[0125] Correspondingly, the processor 300 compares the detection frequency with the second resonant frequency, and the processor 300 compares the detection current with the second current; when the detection frequency matches the resonant frequency (the detection frequency is the same as or approximately the same as the resonant frequency), and the detection current matches the second current (the detection current is the same as or approximately the same as the second current), the processing determines that the current state of the electronic device 1 is in the expanded state.
[0126] It can be seen that the method for determining the folding angle of the electronic device 1 provided in the embodiment of the present application can detect the detected resonant frequency and the detected current when the radiator 210 sends and receives NFC electromagnetic wave signals by the transceiver 220, and compare them with the first resonant frequency and the first current when the electronic device 1 is in the folded state; the detected resonant frequency and the detected current when the radiator 210 sends and receives NFC electromagnetic wave signals by the transceiver 220 can be detected and compared with the second resonant frequency and the second current when the electronic device 1 is in the unfolded state; so as to determine whether the current electronic device 1 is in the unfolded state or the folded state, and the judgment is more accurate.
[0127] Further, see Figure 13 , Figure 13 Schematic diagram of S300 and S400 in a folding angle determination method provided in one embodiment. The folding angle determination method further includes S300 and S400, which are described in detail below. In this embodiment, S300 and S400 are located before S211.
[0128] S300, when the electronic device 1 is calibrated, controlling the transceiver 220 to detect the first resonant frequency and the first current of the electronic device 1 in the folded state; and
[0129] S400 , when the electronic device 1 is calibrated, controlling the transceiver 220 to detect a second resonant frequency point and a second current when the electronic device 1 is in an unfolded state.
[0130] In one embodiment, when the electronic device 1 is calibrated, the processor 300 controls the transceiver 220 to record the resonant frequency (i.e., the first resonant frequency) and the resonant current (i.e., the first current) of the electronic device 1 when it is in a folded state; the processor 300 also controls the transceiver 220 to record the resonant frequency (i.e., the second resonant frequency) and the resonant current (i.e., the second current) of the electronic device 1 when it is in an unfolded state, so that the processor 300 can subsequently quickly determine whether the electronic device 1 is in a folded state or in an unfolded state.
[0131] It can be understood that in one embodiment, the electronic device 1 can be calibrated before leaving the factory, and the first resonant frequency, the first current, the second resonant frequency, and the second current can be stored in the memory 600. In another embodiment, the processor 300 can control the display screen 500 of the electronic device 1 to display a calibration interface to guide and enhance the user to adjust the electronic device 1 to the unfolded state and the folded state according to the calibration interface; and the processor 300 can also control the transceiver 220 to detect the resonant frequency (i.e., the first resonant frequency) and the resonant current (i.e., the first current) of the electronic device 1 in the folded state, and control the transceiver 220 to detect the resonant frequency (i.e., the second resonant frequency) and the resonant current (i.e., the second current) of the electronic device 1 in the state, and transmit the detection results (i.e., the first resonant frequency, the first current; the second resonant frequency and the second current) to the memory 600.
[0132] It can be understood that in one embodiment, the processor 300 controls the electronic device 1 to perform calibration every preset time period to obtain the resonant frequency and current of the electronic device 1 when it is in a folded state and an unfolded state, so as to improve the accuracy of whether the electronic device 1 is in a folded state and whether it is in an unfolded state.
[0133] In this embodiment, when the electronic device 1 is calibrated, the transceiver 220 is controlled to detect the first resonant frequency and the first current of the electronic device 1 in the folded state, and is also used to control the transceiver 220 to detect the second resonant frequency and the second current of the electronic device 1 in the unfolded state; and the first resonant frequency, the first current, the second resonant frequency and the second current are stored in the memory 600. When it is necessary to judge the current state of the electronic device 1, the processor 300 can directly call the data of the first resonant frequency, the first current, the second resonant frequency and the second current stored in the memory 600 to quickly judge the current state of the electronic device 1.
[0134] Furthermore, the NFC antenna 200 is used to periodically transmit and receive the NFC electromagnetic wave signal, and the NFC electromagnetic wave signal is used to detect whether a target card is approaching. Figure 14 , Figure 14 for Figure 9 The flowchart of S111 included in S100 of the folding angle determination method shown in FIG. S100, detecting the radio frequency signal corresponding to when the radiator 210 transmits and receives the NFC electromagnetic wave signal to obtain a detection signal, includes S111, and S111 is described in detail as follows.
[0135] S111 , controlling the transceiver 220 to detect a radio frequency signal corresponding to when the radiator 210 transmits and receives an NFC electromagnetic wave signal in a current cycle to obtain the detection signal.
[0136] Generally speaking, the NFC antenna 200 in the electronic device 1 is used in card swiping scenarios. The NFC antenna 200 periodically transmits and receives the NFC electromagnetic wave signal, which is used to detect whether a target card is approaching. When a target card approaches, the NFC antenna 200 of the electronic device 1 communicates with the target card to read the information in the target card.
[0137] The method for determining the folding angle of the electronic device 1 provided in the embodiment of the present application controls the transceiver 220 to detect the radio frequency signal corresponding to the radiator 210 transmitting and receiving the NFC electromagnetic wave signal in the current cycle to obtain the detection signal. It can be seen that the NFC antenna 200 in the electronic device 1, which is originally used to perform functions such as card swiping, is also reused as a device for detecting the angle between the first body 110 and the second body 120 of the electronic device 1 in addition to performing the original card swiping function. Therefore, the electronic device 1 provided in the embodiment of the present application does not need to use a Hall sensor to determine the angle between the first body 110 and the second body 120, thereby saving the number of devices in the electronic device 1 and saving the cost of the electronic device 1.
[0138] Please refer to Figure 15 , Figure 15 Schematic diagram of a computer-readable storage medium provided in one embodiment of the present application. This embodiment of the present application also provides a computer-readable storage medium 700, wherein the computer-readable storage medium 700 stores a computer-readable program 710, which can be read by the processor 300 and execute the folding angle determination method described in any of the above embodiments.
[0139] The computer-readable storage medium 700 can be an electronic memory 600 such as a flash memory, an electrically erasable programmable read-only memory 600 (EEPROM), an electronic program read-only memory 600 (EPROM), a hard disk, or a read-only memory 600 (ROM). Alternatively, the computer-readable storage medium 700 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 700 has storage space for a computer-readable program for executing any of the method steps described above. These computer-readable programs can be read from or written into one or more computer program products. The computer-readable program can be compressed in an appropriate form.
[0140] 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 includes a foldable body, an NFC antenna, and a processor. The foldable body includes a foldable first body and a foldable second body, so that the foldable electronic device has a folded state and an unfolded state. The NFC antenna includes: a radiator, the radiator being arranged corresponding to the first body; and a transceiver, configured to generate an original NFC radio frequency signal, the transceiver being electrically connected to the radiator so that the radiator transmits and receives an NFC electromagnetic wave signal according to the original NFC radio frequency signal; The transceiver is further configured to detect a radio frequency signal corresponding to when the radiator transmits and receives an NFC electromagnetic wave signal to obtain a detection signal; The processor is used to compare the detection signal with multiple preset signals to determine the angle between the first body and the second body of the electronic device, wherein the multiple preset signals are radio frequency signals at different angles between the first body and the second body.
2. The electronic device according to claim 1, wherein The plurality of preset signals include a first preset signal and a second preset signal, wherein the first preset signal is a radio frequency signal when the electronic device is in a folded state, and the second preset signal is a radio frequency signal when the electronic device is in an unfolded state; The processor is used to compare the detection signal with the first preset signal and the second preset signal. When the detection signal matches the first preset signal, the processor determines that the electronic device is in a folded state; when the detection signal matches the second preset signal, the processor determines that the electronic device is in an unfolded state.
3. The electronic device according to claim 2, wherein: The first preset signal includes a first resonant frequency and a first current of a radio frequency signal when the electronic device is in a folded state, and the second preset signal includes a second resonant frequency and a second current of a radio frequency signal when the electronic device is in an unfolded state; The transceiver is used to detect the resonant frequency and current of the radio frequency signal when the radiator transmits and receives the NFC electromagnetic wave signal to obtain the detection resonant frequency and detection current; The processor compares the detected resonant frequency with the first resonant frequency and the second resonant frequency respectively, and compares the detected current with the first current and the second current respectively; When the detected resonant frequency matches the first resonant frequency, and the detected current matches the first current, the processor determines that the electronic device is in a folded state; When the detected resonant frequency matches the second resonant frequency, and the detected current matches the second current, the processor determines that the electronic device is in the unfolded state.
4. The electronic device according to claim 3, wherein: The electronic device further includes a memory; The processor is further configured to control the transceiver to detect a first resonant frequency point and a first current of the electronic device in a folded state when the electronic device is calibrated, and to store the first resonant frequency point and the first current in a memory; as well as The processor is further configured to control the transceiver to detect a second resonant frequency point and a second current when the electronic device is in an unfolded state and store the second resonant frequency point and the second current in a memory when the electronic device is calibrated.
5. The electronic device according to claim 1, wherein The NFC antenna is used to periodically transmit and receive the NFC electromagnetic wave signal, and the NFC electromagnetic wave signal is used to detect whether a target card is approaching; The processor is configured to control the transceiver to detect a radio frequency signal corresponding to when the radiator transmits and receives an NFC electromagnetic wave signal in a current cycle to obtain the detection signal.
6. The electronic device according to claim 1, wherein The first body and the second body are folded about a folding axis, and the first body includes: a first frame body, the first frame body having a first side facing the folding axis and adjacent to the second body, and a second side bent and connected to the first side; and a first frame, the first frame being arranged on the second side of the first frame body, and the radiator being formed on the first frame; The second body includes: a second frame body, the second frame body having a third side facing the folding axis and adjacent to the first body, and a fourth side bent and connected to the third side; and a second frame, the second frame being arranged on a fourth side of the second frame body; When the electronic device is in a folded state, in a stacking direction of the second body and the first body, the second frame and the first frame are at least partially overlapped.
7. A method for determining a folding angle, characterized in that: The invention is applied to a foldable electronic device, the electronic device including a foldable body and an NFC antenna, the foldable body including a foldable first body and a foldable second body, so that the electronic device has a folded state and an unfolded state; the NFC antenna includes a radiator and a transceiver, the radiator is arranged corresponding to the first body, the transceiver is used to generate an original NFC radio frequency signal, and the transceiver is electrically connected to the radiator so that the radiator transmits and receives NFC electromagnetic wave signals according to the original NFC radio frequency signal; the method includes: Detecting a radio frequency signal corresponding to when the radiator receives and transmits an NFC electromagnetic wave signal to obtain a detection signal; and The detection signal is compared with a plurality of preset signals to determine an angle between a first body and a second body of the electronic device, wherein the plurality of preset signals are radio frequency signals at different angles between the first body and the second body.
8. The method for determining the folding angle according to claim 7, wherein: The plurality of preset signals include a first preset signal and a second preset signal, wherein the first preset signal is a radio frequency signal when the electronic device is in a folded state, and the second preset signal is a radio frequency signal when the electronic device is in an unfolded state; The comparing the detection signal with a plurality of preset signals to determine the angle between the first body and the second body of the electronic device includes: The detection signal is compared with the first preset signal and the second preset signal. When the detection signal matches the first preset signal, it is determined that the electronic device is in a folded state; when the detection signal matches the second preset signal, it is determined that the electronic device is in an unfolded state.
9. The method for determining the folding angle according to claim 8, wherein: The first preset signal includes a first resonant frequency and a first current of a radio frequency signal when the electronic device is in a folded state, and the second preset signal includes a second resonant frequency and a second current of a radio frequency signal when the electronic device is in an unfolded state; The detecting a radio frequency signal corresponding to when the radiator receives and transmits an NFC electromagnetic wave signal to obtain a detection signal includes: Detecting the resonant frequency and current of the radio frequency signal when the radiator receives and transmits the NFC electromagnetic wave signal to obtain a detection resonant frequency and a detection current; The step of comparing the detection signal with the first preset signal and the second preset signal, and determining that the electronic device is in a folded state when the detection signal matches the first preset signal; and determining that the electronic device is in an unfolded state when the detection signal matches the second preset signal, includes: Comparing the detected resonant frequency with the first resonant frequency and the second resonant frequency respectively, and comparing the detected current with the first current and the second current respectively; When the detected resonant frequency matches the first resonant frequency and the detected current matches the first current, the electronic device is determined to be in a folded state; when the detected resonant frequency matches the second resonant frequency and the detected current matches the second current, the electronic device is determined to be in an unfolded state.
10. The folding angle determination method according to claim 9, wherein: The folding angle determination method further includes: When the electronic device is calibrated, controlling the transceiver to detect a first resonant frequency point and the first current when the electronic device is in a folded state; and When the electronic device is calibrated, the transceiver is controlled to detect the second resonant frequency point and the second current when the electronic device is in the unfolded state.
11. The folding angle determination method according to claim 7, wherein: The NFC antenna is used to periodically transmit and receive the NFC electromagnetic wave signal, and the NFC electromagnetic wave signal is used to detect whether a target card is approaching; The detecting a radio frequency signal corresponding to when the radiator receives and transmits an NFC electromagnetic wave signal to obtain a detection signal includes: The transceiver is controlled to detect a radio frequency signal corresponding to when the radiator transmits and receives an NFC electromagnetic wave signal in a current cycle to obtain the detection signal.
12. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer-readable program, and the computer-readable program can be read by a processor and execute the folding angle determination method according to any one of claims 7 to 11.