Electronic device, coil control method, apparatus, and readable storage medium

By setting two coils in different positions in the foldable phone and controlling their working state according to the folding angle, the problem of users needing to adjust the position in different states is solved, and convenient sensing and recognition operation is achieved.

CN116074422BActive Publication Date: 2025-12-16VIVO MOBILE COMM CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310124205.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-16
Publication Date
2025-12-16
Estimated Expiration
2043-02-16

AI Technical Summary

Technical Problem

When a foldable phone is unfolded or folded, the user needs to adjust the position between the coil and the card reader to complete the sensing and recognition, which results in low ease of operation.

Method used

Two coils are placed in different positions in the foldable screen phone, and a controller controls one of the coils to be in working state according to the folding angle, so that the user can complete the recognition by aligning the middle of the phone with the card reader regardless of whether the device is in folded or unfolded state.

Benefits of technology

It improves the ease of user operation, allowing for sensor identification without adjusting the position between the device and the card reader.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116074422B_ABST
    Figure CN116074422B_ABST
Patent Text Reader

Abstract

The application discloses an electronic device, a coil control method and device and a readable storage medium, and belongs to the technical field of electronic devices. The electronic device comprises a first folding main body, a second folding main body which is hingedly connected with the first folding main body, a first coil which is arranged on the first folding main body and the second folding main body and is folded along with the first folding main body and the second folding main body, and a second coil which is arranged on the first folding main body or the second folding main body and is located at the middle part of the first folding main body or the second folding main body. A controller is connected with the first coil and the second coil, and is used for controlling a target coil in the first coil and the second coil to be in a working state according to the folding angle between the first folding main body and the second folding main body.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of electronic equipment technology, specifically relating to an electronic device, a coil control method, an apparatus, and a readable storage medium. Background Technology

[0002] Foldable phones can switch between unfolded and folded states, combining the portability of a candybar phone with the advantages of a large screen display, and are gradually becoming more widely used in the market.

[0003] In related technologies, the coils in foldable phones are all located on one side of the folding body. When the phone is folded, users can use the coil in the middle of the screen to sense and identify the card reader as usual. However, when the phone is unfolded, users need to adjust the position between the coil and the card reader to complete the sensing and identification, resulting in low user convenience. Summary of the Invention

[0004] The purpose of this application is to provide an electronic device, a coil control method, an apparatus, and a readable storage medium that enable users to complete sensing and identification without adjusting the position between the electronic device and the card reader, thereby improving the convenience of user operation.

[0005] In a first aspect, embodiments of this application provide an electronic device, comprising: a first folding body; a second folding body hinged to the first folding body; a first coil disposed on the first folding body and the second folding body, the first coil being folded as the first folding body and the second folding body are folded; a second coil disposed on the first folding body or the second folding body, the second coil being located in the middle of the first folding body or the second folding body; and a controller connected to the first coil and the second coil, the controller being used to control a target coil in the first coil and the second coil to be in a working state according to the folding angle between the first folding body and the second folding body.

[0006] In a second aspect, embodiments of this application provide a coil control method for the electronic device in the first aspect. The coil control method includes: determining a folding angle between a first folding body and a second folding body based on the inductance value of a first coil; and controlling a target coil in the first coil and the second coil to be in a working state based on the folding angle between the first folding body and the second folding body.

[0007] Thirdly, embodiments of this application provide a coil control device for the electronic device in the first aspect. The coil control device includes: a determining module for determining a folding angle between a first folding body and a second folding body based on the inductance value of a first coil; and a control module for controlling a target coil in the first coil and the second coil to be in a working state based on the folding angle between the first folding body and the second folding body.

[0008] Fourthly, embodiments of this application provide an electronic device including a processor and a memory, the memory storing a program or instructions executable on the processor, the program or instructions, when executed by the processor, implementing the steps of the method as described in the second aspect.

[0009] Fifthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method as described in the second aspect.

[0010] In a sixth aspect, embodiments of this application provide a chip including a processor and a communication interface coupled to the processor, the processor being used to execute sequences or instructions to implement the steps of the method as described in the second aspect.

[0011] In a seventh aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method as described in the third aspect.

[0012] This embodiment of the application places a portion of the first coil in the first folding body and another portion of the first coil in the second folding body, allowing the first coil to fold along with the first and second folding bodies. A second coil is then placed within either the first or second folding body. A controller selects either the first or second coil to operate based on the folding angle between the first and second folding bodies. This allows the user to perform card reading operations by aligning the center of the electronic device with the card reader, regardless of whether the electronic device is folded or unfolded. Users do not need to adjust the position between the electronic device and the card reader, simplifying the user's operation.

[0013] In this embodiment, by setting two coils in different positions in the foldable electronic device, and selecting one of the two coils to be in working state according to the folding angle of the foldable electronic device, the working coil is always in the middle of the electronic device in the folded or unfolded state. The user does not need to adjust the position between the electronic device and the card reader to complete the sensing identification, which improves the convenience of user operation. Attached Figure Description

[0014] Figure 1 The present application provides schematic diagrams of the structure of electronic devices according to some embodiments;

[0015] Figure 2 Circuit diagrams of inductance detection circuits provided in some embodiments of this application are shown;

[0016] Figure 3 A schematic flowchart of the coil control method provided in an embodiment of this application is shown;

[0017] Figure 4 One of the simulation diagrams showing the folding angle and inductance value of the first coil provided in some embodiments of this application is illustrated.

[0018] Figure 5 This is a second simulation diagram showing the folding angle and inductance value of the first coil provided in some embodiments of this application;

[0019] Figure 6 The diagram illustrates the relationship between the inductance of the first coil and the folding angle provided in some embodiments of this application;

[0020] Figure 7 A structural block diagram of the coil control device provided in an embodiment of this application is shown;

[0021] Figure 8 A structural block diagram of the electronic device provided in an embodiment of this application is shown;

[0022] Figure 9 A schematic diagram of the hardware structure of an electronic device according to an embodiment of this application is shown.

[0023] in, Figure 1 and Figure 2 The correspondence between the reference numerals and the component names is as follows:

[0024] 100 Electronic device, 110 First folding body, 120 Second folding body, 130 First coil, 140 Inductance detection circuit, 142 First resistor, 144 Signal amplifier, 150 Controller, 160 Second coil, 170 Switch, 180 Signal processing chip, 190 Matching circuit. Detailed Implementation

[0025] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.

[0026] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such terms can be used interchangeably where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0027] The following is in conjunction with the appendix Figures 1 to 9 The coil control method, coil control device, electronic device, and readable storage medium provided in this application will be described in detail through specific embodiments and application scenarios.

[0028] An electronic device is provided in some embodiments of this application. Figure 1 Schematic diagrams of the structure of electronic devices provided in some embodiments of this application are shown. For example... Figure 1 As shown, the electronic device 100 includes: a first folding body 110, a second folding body 120, a first coil 130, a second coil 160, and a controller 150.

[0029] The second folding body 120 is hinged to the first folding body 110; the first coil 130 is disposed on the first folding body 110 and the second folding body 120, and the first coil 130 folds as the first folding body 110 and the second folding body 120 are folded; the second coil 160 is disposed on the first folding body 110 or the second folding body 120, and the second coil is located in the middle of the first folding body 110 or the second folding body 120; the controller 150 is connected to the first coil 130 and the second coil 160, and the controller 150 is used to control the target coil in the first coil 130 and the second coil 160 to be in working state according to the folding angle between the first folding body 110 and the second folding body 120.

[0030] In this embodiment, the electronic device 100 is a foldable screen device, comprising a first folding body 110 and a second folding body 120 hinged together. The first folding body 110 is rotatable relative to the second folding body 120. A first coil 130 is disposed on both the first folding body 110 and the second folding body 120, with a portion of the first coil 130 located on the first folding body 110 and another portion located on the second folding body 120. When the first folding body 110 and the second folding body 120 are in the unfolded state, the coupling region of the first coil 130 is located at the hinge position between the first folding body 110 and the second folding body 120, that is, the first coil 130 is located in the middle of the first folding body 110 and the second folding body 120.

[0031] For example, a display screen is provided on the first folding body 110 and the second folding body 120. The display screen can be folded synchronously with the first folding body 110 and the second folding body 120. The first coil 130 is disposed in the display screen and located between the first folding body 110 and the second folding body 120.

[0032] For example, the electronic device 100 also includes a pivot shaft disposed between the first folding body 110 and the second folding body 120. The first folding body 110 and the second folding body 120 are folded and rotated relative to each other via the pivot shaft, and the first coil 130 is embedded in the pivot shaft.

[0033] In this embodiment, the second coil 160 is disposed in either the first folding body 110 or the second folding body 120. Specifically, the second coil 160 is disposed in the middle of either the first folding body 110 or the second folding body 120. When the first folding body 110 and the second folding body 120 are in a folded state, the coupling region of the first folding body 110 is located in the middle of the first folding body 110 and the second folding body 120. The controller 150 is connected to the first coil 130 and the second coil 160. The controller 150 detects the folding angle between the first folding body 110 and the second folding body 120 and controls the working state of the first coil 130 and the second coil 160 based on the folding angle.

[0034] In some embodiments of this application, the first coil 130 and the second coil 160 include any one of the following: a near-field communication coil and a wireless charging coil.

[0035] For example, the first coil 130 can be an NFC (Near Field Communication) coil. When the first folded body 110 and the second folded body 120 are in the unfolded state, the first coil 130 is located in the middle of the first folded body 110 and the second folded body 120, and can perform near field communication interaction with the NFC card reader through the first coil 130.

[0036] For example, the first coil 130 can be a wireless charging coil. When the first folding body 110 and the second folding body 120 are in the unfolded state, the first coil 130 is located in the middle of the first folding body 110 and the second folding body 120, and the wireless charging device charges the electronic device 100 through the first coil 130.

[0037] For example, the second coil 160 can be an NFC coil for near-field communication with a card reader device. When the first folding body 110 and the second folding body 120 are in the folded state, the second coil 160 is located in the middle of the first folding body 110, and near-field communication interaction with the NFC card reader can be performed through the second coil 160.

[0038] For example, the second coil 160 can be a wireless charging coil. When the first folding body 110 and the second folding body 120 are in the folded state, the first coil 130 is located in the middle of the first folding body 110, and the wireless charging device charges the electronic device 100 through the second coil 160.

[0039] For example, both the first coil 130 and the second coil 160 are NFC coils. The controller 150 determines whether the electronic device is in a folded state based on the folding angle between the first folding body 110 and the second folding body 120. When the first folding body 110 and the second folding body 120 are in a folded state, the first coil 130 is also in a folded state. At this time, NFC communication through the folded first coil 130 will affect the communication quality. The controller 150 controls the first coil 130 to stop working and controls the second coil 160 located in the middle of the first folding body 110 to start working. The user can realize NFC communication function through the second coil 160 in the electronic device 100. Furthermore, since the first folding body 110 and the second folding body 120 are in a folded state, NFC communication through the second coil 160 set in the first folding body 110 or the second folding body 120 does not require the user to unfold the electronic device 100 to perform corresponding operations, simplifying the user's operation. When the first folding body 110 and the second folding body 120 are in the unfolded state, the controller 150 controls the first coil 130 to be in the working state, and the second coil 160 to stop working. At this time, the user can perform card reading operations through the first coil 130 located in the middle of the first folding body 110 and the second folding body 120, which conforms to the user's operating habits. In this embodiment of the application, by setting a part of the first coil 130 in the first folding body 110 and another part of the first coil 130 in the second folding body 120, the first coil 130 can be folded along with the first folding body 110 and the second folding body 120, and the second coil 160 is set in the first folding body 110 or the second folding body 120. The controller 150 selects to energize the first coil 130 or the second coil 160 based on the folding angle between the first folding body 110 and the second folding body 120. This allows the user to read the card by aligning the center of the electronic device 100 with the card reader, regardless of whether the electronic device 100 is in a folded or unfolded state. The user does not need to adjust the position between the electronic device 100 and the card reader, simplifying the user's operation.

[0040] In this embodiment, by setting two coils in different positions in the foldable electronic device 100, and selecting one of the two coils to be in working state according to the folding angle of the foldable electronic device 100, the working coil is always in the middle of the electronic device 100 in the folded or unfolded state. The user does not need to adjust the position between the electronic device 100 and the card reader to complete the sensing identification, which improves the convenience of user operation.

[0041] In some embodiments of this application, the electronic device further includes an inductance detection circuit 140.

[0042] The inductance detection circuit 140 is connected to the first coil 130 and is used to detect the inductance value of the first coil 130; wherein, the controller 150 is used to determine the folding angle between the first folding body 110 and the second folding body 120 based on the inductance value of the first coil 130.

[0043] In this embodiment, the electronic device 100 further includes an inductance detection circuit 140 connected to the first coil 130. The inductance detection circuit 140 continuously detects the inductance value of the first coil 130. A controller 150 is connected to the inductance detection circuit 140. The controller 150 acquires the inductance value of the first coil 130 detected by the inductance detection circuit 140 and determines the folding angle of the first folding body 110 and the second folding body 120 based on the inductance value of the first coil 130.

[0044] The first coil 130 can be folded along with the first folding body 110 and the second folding body 120. The portion of the first coil 130 located in the first folding body 110 and the other portion of the first coil 130 located in the second folding body 120 are mutually inductive, causing a change in the inductance value of the first coil 130. Therefore, based on the inductance value of the first coil 130 detected by the controller 150, the folding angle between the first folding body 110 and the second folding body 120 can be determined.

[0045] In this embodiment, the inductance value of the first coil 130 is detected. The inductance value of the first coil 130 can change with the folding angle of the first coil 130. Therefore, the folding angle between the first folding body and the second folding body can be accurately detected by the inductance value of the first coil 130. Furthermore, the first coil 130 can be reused as the NFC coil in the electronic device 100, reducing the hardware cost of the electronic device 100 for detecting the folding angle.

[0046] In some embodiments of this application, the electronic device 100 includes a switch 170.

[0047] The first end of the switch 170 is connected to the first coil 130, and the second end of the switch 170 is connected to the second coil 160. The switch 170 can switch the working state of the first coil 130 and the second coil 160.

[0048] The controller 150 is used to control the working state of the first coil 130 and the second coil 160 through the switch 170 according to the folding angle between the first folding body 110 and the second folding body 120.

[0049] In this embodiment, the switch 170 is connected to the first coil 130 and the second coil 160, and the switch 170 can control the operating state of the first coil 130 and the second coil 160. The controller 150 selects whether to use the first coil 130 or the second coil 160 to perform NFC communication through the switch 170. When the first folding body 110 and the second folding body 120 are in the unfolded state, the first coil 130 is also in the unfolded state. At this time, NFC communication can be performed normally through the unfolded first coil 130. To make the operation more user-friendly, the user can simply bring the unfolded electronic device 100 close to the NFC card reader to complete the card reading operation, simplifying the user's operation.

[0050] In this embodiment, the controller 150 can automatically control the working state of the first coil 130 and the second coil 160 according to the folding angle between the first folding body 110 and the second folding body 120. The first coil 130 is located at the middle of the first folding body 110 and the second folding body 120, and the second coil 160 is located on either the first folding body 110 or the second folding body 120. This allows the user to use the second coil 160 for NFC communication when the electronic device 100 is in a folded state, and to use the first coil 130 for NFC communication when the electronic device 100 is in an unfolded state. This ensures that, whether the electronic device 100 is folded or unfolded, the user only needs to bring the middle of the electronic device 100 close to the card reader to complete the corresponding NFC card reading operation, further simplifying the user's operation.

[0051] In some embodiments of this application, the electronic device 100 further includes a signal processing chip 180 and a matching circuit 190.

[0052] The first end of the matching circuit 190 is connected to the signal processing chip 180, and the second end of the matching circuit 190 is connected to the third end of the switching element 170; wherein, when the first end and the third end of the switching element 170 are connected, the first coil 130 is in the working state, and when the second end and the third end of the switching element 170 are connected, the second coil 160 is in the working state.

[0053] In this embodiment, the signal processing chip 180 can be an NFC controller (NFC controller chip) for processing information from external cards or card readers. The matching circuit 190 can form a resonant circuit with the first coil 130 or the second coil 160, and the resonant frequency can be 13.56MHz.

[0054] In this embodiment, the first end of the switch 170 is connected to the first coil 130, the second end of the switch 170 is connected to the second coil 160, and the third end of the switch 170 is connected to the matching circuit 190. The switch 170 controls the first and third ends to be connected, thus controlling the first coil 130 to be in a working state; the switch 170 controls the first and second ends to be connected, thus controlling the second coil 160 to be in a working state.

[0055] When the controller 150 detects that the first folding body 110 and the second folding body 120 are in the unfolded state, it controls the first end of the switch 170 to be connected to the third end and disconnects the first end from the second end, so that the first coil 130 is connected to the signal processing chip 180 and the matching circuit 190. The first coil 130 and the matching circuit 190 form a resonant circuit, which can transmit and receive NFC signals.

[0056] When the controller 150 detects that the first folding body 110 and the second folding body 120 are in a folded state, it controls the first end of the switch 170 to be connected to the second end and disconnects the first end from the third end, so that the second coil 160 is connected to the signal processing chip 180 and the matching circuit 190. The second coil 160 and the matching circuit 190 form a resonant circuit, which can transmit and receive NFC signals.

[0057] In this embodiment, an electronic device 100 includes a signal processing chip 180 and a matching circuit 190. A switch 170 allows selection of whether a first coil 130 or a second coil 160 is connected to the signal processing chip 180 and the matching circuit 190. One of the coils connected to the signal processing chip 180 or the matching circuit 190 is in an active state, while the other coil not connected is in a deactivated state. This embodiment enables the electronic device 100 to conveniently select and control either the first coil 130 or the second coil 160 to be in an active state.

[0058] Figure 2 The following are circuit diagrams of the inductance detection circuit 140 provided in some embodiments of this application, such as... Figure 2 As shown, in some embodiments of this application, the inductance detection circuit 140 includes a first resistor 142 and a signal amplifier 144.

[0059] The first end of the first resistor 142 is used to receive the first voltage signal, and the second end of the first resistor 142 is connected to the first end of the first coil 130. The first input end of the signal amplifier 144 is connected to the second end of the first resistor 142, the second input end of the signal amplifier 144 is connected to the second end of the first coil 130, the third input end of the signal amplifier 144 is grounded, and the output end of the signal amplifier 144 is connected to the controller 150. The output end of the signal amplifier 144 is used to output the second voltage signal. The controller 150 is used to determine the inductance value of the first coil 130 based on the first signal value of the first voltage signal and the second signal value of the second voltage signal.

[0060] In this embodiment, the inductance detection circuit 140 includes a first resistor 142 and a signal amplifier 144. The first end of the first resistor 142 is connected to a signal source, and the second end of the first resistor 142 is connected to the first input terminal of the signal amplifier 144. The first end of the first coil 130 is connected between the second end of the first resistor 142 and the first input terminal of the signal amplifier 144. The second end of the first coil 130 is connected to the second input terminal of the signal amplifier 144. The third input terminal of the signal amplifier 144 is grounded, and the output terminal of the signal amplifier 144 is connected to a controller 150. The signal amplifier 144 can transmit a second voltage signal to the controller 150, and the controller 150 can determine the inductance value of the first coil 130 based on the second voltage signal.

[0061] Specifically, the first voltage signal can be a 3.56MHz sinusoidal AC signal sent by the NFCC, and the output of the signal amplifier 144 can be connected to the signal interface of the controller 150. After the first voltage signal is transmitted through the first resistor 142, the first coil 130, and the amplifier, a second voltage signal is output, which is also a sinusoidal AC signal. Since the resistance value of the first resistor 142, the first signal value of the first voltage signal, and the angular velocity value of the first voltage signal are all fixed, the current inductance value of the first coil 130 can be determined based on the second signal value of the second voltage signal.

[0062] In this embodiment, by configuring a first resistor 142 and a signal amplifier 144 in the inductance detection circuit 140, and using the first resistor 142 as the receiving end of the first voltage signal, and connecting the output end of the signal amplifier 144 to the controller 150, the controller 150 can accurately determine the inductance value of the first coil 130 based on the received second voltage signal output by the signal amplifier 144. In some embodiments of this application, a coil control method is provided, which is applied to the electronic device in any of the above embodiments. Figure 3 A schematic flowchart of the coil control method provided in an embodiment of this application is shown, as follows: Figure 3 As shown, the coil control method includes:

[0063] Step 302: Determine the folding angle between the first folding body and the second folding body based on the inductance value of the first coil;

[0064] Step 304: Based on the folding angle between the first folding body and the second folding body, control the target coil in the first coil and the second coil to be in working state.

[0065] In this embodiment, the first coil is foldable along with the first and second folding bodies. The portion of the first coil located in the first folding body and the other portion of the first coil located in the second folding body are mutually inductive, causing a change in the inductance value of the first coil. Therefore, based on the detected inductance value of the first coil, the folding angle between the first and second folding bodies can be determined.

[0066] For example, the electronic device stores a relationship between inductance value and folding angle. After detecting the inductance value, the corresponding folding angle can be calculated based on the inductance value and the relationship.

[0067] In this embodiment, the electronic device stores a preset formula, which is a relationship between the folding angle and the inductance value of the first coil. By substituting the detected inductance value of the first coil into the preset formula, the folding angle between the first folding body and the second folding body can be obtained.

[0068] Before electronic devices leave the factory, a more realistic and accurate relationship can be obtained by building an experimental platform for detecting folding angle and inductance value. For example, by gradually increasing the folding angle of the first coil from 0° to 180°, the magnetic fields cancel each other out due to the opposite directions of the coil currents on both sides of the central axis of the first coil, i.e., the mutual inductance increases. By fitting the data curve, a preset relationship between the inductance value of the first coil and the folding angle can be obtained and stored in the electronic device.

[0069] Figure 4 One of the simulation diagrams shown is of the folding angle and inductance value of the first coil provided in some embodiments of this application. Figure 5 This is a simulation diagram showing the folding angle and inductance value of the first coil provided in some embodiments of this application, as shown in Figure 2. Figure 4 As shown, the first coils on both sides of the central axis have mutual inductance, and different folding angles of the first coil on the left side of the central axis correspond to different inductance values. Figure 5 As shown, by determining the shape, diameter, thickness, number of turns, and spacing of the first coil in an electronic device, and using simulation software to model the coil, a more accurate relationship between the folding angle and inductance can be obtained. It should be noted that, based on Biot-Savart's law and the Neumann formula, analytical expressions for calculating the coil's self-inductance and the mutual inductance between two parallel coils can be approximately calculated.

[0070] For example, the preset relation is as follows:

[0071] Y = AX 3 +BX 2 -CX+D

[0072] Where Y is the folding angle, X is the inductance value, and A, B, C, and D are constants.

[0073] It should be noted that A, B, C, and D in the above preset relationship are related to the shape, diameter, thickness, number of turns, and spacing of the first coil.

[0074] Figure 6 The following are curves showing the relationship between the inductance value of the first coil and the folding angle provided in some embodiments of this application, such as... Figure 6 As shown, the horizontal axis represents the inductance of the first coil, and the vertical axis represents the folding angle from 0° to 180°.

[0075] This embodiment of the application places a portion of the first coil in the first folding body and another portion in the second folding body, enabling the first coil to fold along with the first and second folding bodies. An inductance detection circuit is included in the electronic device to detect the inductance value of the first coil. Since the inductance value of the first coil changes with the folding angle, the folding angle between the first and second folding bodies can be accurately detected using the inductance value. Furthermore, the first coil can be reused as an NFC coil in the electronic device, reducing the hardware cost of detecting the folding angle.

[0076] This embodiment of the application places a portion of the first coil in the first folding body and another portion of the first coil in the second folding body, allowing the first coil to fold along with the first and second folding bodies. A second coil is then placed within either the first or second folding body. A controller selects either the first or second coil to operate based on the folding angle between the first and second folding bodies. This allows the user to perform card reading operations by aligning the center of the electronic device with the card reader, regardless of whether the electronic device is folded or unfolded. Users do not need to adjust the position between the electronic device and the card reader, simplifying the user's operation.

[0077] In this embodiment, by setting two coils in different positions in the foldable electronic device, and selecting one of the two coils to be in working state according to the folding angle of the foldable electronic device, the working coil is always in the middle of the electronic device in the folded or unfolded state. The user does not need to adjust the position between the electronic device and the card reader to complete the sensing identification, which improves the convenience of user operation.

[0078] In some embodiments of this application, the electronic device includes an inductance detection circuit, which includes a first resistor and a signal amplifier;

[0079] The first end of the first resistor is used to receive the first voltage signal, and the second end of the first resistor is connected to the first end of the first coil; the first input end of the signal amplifier is connected to the second end of the first resistor, the second input end of the signal amplifier is connected to the second end of the first coil, the third input end of the signal amplifier is grounded, and the output end of the signal amplifier is used to output the second voltage signal.

[0080] Before determining the folding angle between the first folding body and the second folding body based on the inductance value of the first coil, the process includes: acquiring a first signal value and an angular velocity value of a first voltage signal, a resistance value of a first resistor, and a second signal value of the second voltage signal; and determining the inductance value of the first coil based on the first signal value, the angular velocity value, the resistance value, and the second signal value.

[0081] In this embodiment, the first voltage signal is a sinusoidal AC signal, and the output of the signal amplifier can be connected to the controller signal interface. After the first voltage signal is transmitted through the first resistor, the first coil, and the amplifier, a second voltage signal is output, which is also a sinusoidal AC signal. Since the resistance value of the first resistor, the first signal value of the first voltage signal, and the angular velocity value of the first voltage signal are all fixed values, the current inductance value of the first coil can be determined based on the second signal value of the second voltage signal.

[0082] Based on the first signal value, angular velocity value, resistance value, and second signal value, the formula for calculating the inductance value of the first coil is as follows:

[0083] V in =U m sin(ωt);

[0084]

[0085]

[0086]

[0087] Among them, V in V is the signal value of the first voltage signal.out R is the signal value of the second voltage signal, R is the resistance value of the first resistor, ω is the angular velocity value of the first voltage signal, t is time, and L is the signal value of the second voltage signal. x U is the inductance value of the first coil, j is the imaginary unit, and U is the inductance value of the first coil. m This is the effective value of the first voltage signal.

[0088] It should be noted that the first voltage signal is a sinusoidal voltage signal, and its effective value can be calculated by sampling the voltage over a complete cycle and using the formula described above. Since R and U... m Since both ω and ω are fixed values, the inductance L can be obtained through conversion. x The value of ω is such that the angular velocity ω of the first voltage signal is matched with the frequency of the signal output by the first coil, for example, the frequency is 13.56 MHz.

[0089] In this embodiment, by incorporating a first resistor and a signal amplifier into the inductance detection circuit, and using the first resistor as the receiver of a first voltage signal, and outputting a second voltage signal through the output of the signal amplifier, the inductance value of the first coil can be accurately calculated based on the first signal value, angular velocity value, resistance value, and second signal value, thereby improving the accuracy of the calculation.

[0090] In some embodiments of this application, the electronic device further includes: a switch, wherein a first end of the switch is connected to a first coil, a second end of the switch is connected to a second coil, and the switch is capable of switching the operating states of the first coil and the second coil;

[0091] After determining the folding angle between the first folding body and the second folding body based on the inductance value of the first coil, the process further includes:

[0092] When the folding angle is within the first preset angle range, the first end and the third end of the control switch are connected, so that the first coil is in working state;

[0093] When the folding angle is within the second preset angle range, the second and third ends of the control switch are connected, so that the second coil is in working state.

[0094] In this embodiment, a second coil is disposed within either the first or second folding body. The second coil can be an NFC coil for near-field communication with a card reader device. A switch is connected to both the first and second coils, and the switch can control the operating states of both coils. The switch allows selection of either the first or second coil to perform the NFC communication function.

[0095] When the folding angle is within the first preset angle range, and the first and second folding bodies are in the unfolded state, the first coil is also unfolded. At this time, NFC communication can be performed normally through the unfolded first coil. To make the operation more user-friendly, users can simply bring the unfolded electronic device close to the NFC reader to complete the card reading operation, simplifying the user's operation.

[0096] When the folding angle is within the second preset angle range, and the first and second folding bodies are in a folded state, the first coil is also in a folded state. At this time, NFC communication via the folded first coil will affect communication quality. By controlling a switch to stop the first coil from working and to activate the second coil, the user can achieve NFC communication through the second coil in the electronic device. Furthermore, since the first and second folding bodies are in a folded state, NFC communication via the second coil located in either the first or second folding body allows the user to complete the card reading operation simply by bringing the middle of the folded electronic device close to the NFC reader, conforming to user habits and simplifying the user experience by eliminating the need to unfold the electronic device.

[0097] For example, the second preset angle range can be selected from 0° to 30°.

[0098] In this embodiment, the operating states of the first coil and the second coil can be automatically controlled based on the folding angle between the first folding body and the second folding body. The first coil is positioned at the midpoint between the first and second folding bodies, and the second coil is disposed on either the first or second folding body. This allows the user to use the second coil for NFC communication when the electronic device is folded, and to use the first coil for NFC communication when the electronic device is unfolded. This ensures that, whether the electronic device is folded or unfolded, the user only needs to bring the midpoint of the electronic device close to the card reader to complete the corresponding NFC card reading operation, further simplifying the user's operation.

[0099] For example, the first preset angle range can be selected from 150° to 180°.

[0100] In this embodiment of the application, the electronic device further includes a signal processing chip and a matching circuit.

[0101] The first end of the matching circuit is connected to the signal processing chip, and the second end of the matching circuit is connected to the third end of the switching device; wherein, when the first end and the third end of the switching device are connected, the first coil is in the working state, and when the second end and the third end of the switching device are connected, the second coil is in the working state.

[0102] When the first folding body and the second folding body are detected to be in the unfolded state, the first end of the control switch is connected to the third end and disconnected from the second end, so that the first coil is connected to the signal processing chip and the matching circuit. The first coil and the matching circuit form a resonant circuit, which can transmit and receive NFC signals.

[0103] When the first and second folding bodies are detected to be in a folded state, the first and second ends of the control switch are connected and the first and third ends are disconnected, so that the second coil is connected to the signal processing chip and the matching circuit. The second coil and the matching circuit form a resonant circuit, which can transmit and receive NFC signals.

[0104] In this embodiment, the operating states of the first coil and the second coil are automatically controlled based on the folding angle between the first folding body and the second folding body. The first coil is positioned at the midpoint between the first and second folding bodies, and the second coil is disposed on either the first or second folding body. This allows the user to use the second coil for NFC communication when the electronic device is folded, and to use the first coil for NFC communication when the electronic device is unfolded. This ensures that, whether the electronic device is folded or unfolded, the user only needs to bring the midpoint of the electronic device close to the card reader to complete the corresponding NFC card reading operation, further simplifying the user's operation.

[0105] The coil control method provided in this application can be executed by a coil control device or a control module within that coil control device for executing the coil control method. This application uses an example of a coil control device executing a coil control method to illustrate the coil control device provided in this application.

[0106] In some embodiments of this application, a coil control device 700 is provided, which is applied to the electronic device in any of the above embodiments. Figure 7 The structural block diagram of the coil control device 700 provided in the embodiments of this application is shown below. Figure 7 As shown, the coil control device 700 includes:

[0107] The determining module 702 is used to determine the folding angle between the first folding body and the second folding body based on the inductance value of the first coil;

[0108] The control module 704 is used to control the target coil in the first coil and the second coil to be in working state according to the folding angle between the first folding body and the second folding body.

[0109] This embodiment of the application places a portion of the first coil in the first folding body and another portion in the second folding body, enabling the first coil to fold along with the first and second folding bodies. An inductance detection circuit is included in the electronic device to detect the inductance value of the first coil. Since the inductance value of the first coil changes with the folding angle, the folding angle between the first and second folding bodies can be accurately detected using the inductance value. Furthermore, the first coil can be reused as an NFC coil in the electronic device, reducing the hardware cost of detecting the folding angle.

[0110] This embodiment of the application places a portion of the first coil in the first folding body and another portion of the first coil in the second folding body, allowing the first coil to fold along with the first and second folding bodies. A second coil is then placed within either the first or second folding body. A controller selects either the first or second coil to operate based on the folding angle between the first and second folding bodies. This allows the user to perform card reading operations by aligning the center of the electronic device with the card reader, regardless of whether the electronic device is folded or unfolded. Users do not need to adjust the position between the electronic device and the card reader, simplifying the user's operation.

[0111] In this embodiment, by setting two coils in different positions in the foldable electronic device, and selecting one of the two coils to be in working state according to the folding angle of the foldable electronic device, the working coil is always in the middle of the electronic device in the folded or unfolded state. The user does not need to adjust the position between the electronic device and the card reader to complete the sensing identification, which improves the convenience of user operation.

[0112] In some embodiments of this application, the electronic device includes an inductance detection circuit, which includes a first resistor and a signal amplifier;

[0113] The first end of the first resistor is used to receive the first voltage signal, the second end of the first resistor is connected to the first end of the first coil, the first input end of the signal amplifier is connected to the second end of the first resistor, the second input end of the signal amplifier is connected to the second end of the first coil, the third input end of the signal amplifier is grounded, and the output end of the signal amplifier is used to output the second voltage signal.

[0114] The coil control device 700 also includes:

[0115] The acquisition module is used to acquire the first signal value and angular velocity value of the first voltage signal, the resistance value of the first resistor, and the second signal value of the second voltage signal;

[0116] The determining module 702 is used to determine the inductance value of the first coil based on the first signal value, the angular velocity value, the resistance value, and the second signal value.

[0117] The determination module 702 is used to determine the folding angle based on the inductance value of the first coil.

[0118] In this embodiment, by incorporating a first resistor and a signal amplifier into the inductance detection circuit, and using the first resistor as the receiver of a first voltage signal, and outputting a second voltage signal through the output of the signal amplifier, the inductance value of the first coil can be accurately calculated based on the first signal value, angular velocity value, resistance value, and second signal value, thereby improving the accuracy of the calculation.

[0119] In some embodiments of this application, the electronic device further includes a switch, a first end of which is connected to a first coil, and a second end of which is connected to a second coil, and the switch is capable of switching the operating states of the first coil and the second coil;

[0120] Control module 704 is used to control the first end and the third end of the switch to conduct when the folding angle is within the first preset angle range, so that the first coil is in working state;

[0121] The control module 704 is used to control the second end and the third end of the switch to conduct when the folding angle is within the second preset angle range, so that the second coil is in working state.

[0122] In this embodiment, the operating states of the first coil and the second coil are automatically controlled based on the folding angle between the first folding body and the second folding body. The first coil is positioned at the midpoint between the first and second folding bodies, and the second coil is disposed on either the first or second folding body. This allows the user to use the second coil for NFC communication when the electronic device is folded, and to use the first coil for NFC communication when the electronic device is unfolded. This ensures that, whether the electronic device is folded or unfolded, the user only needs to bring the midpoint of the electronic device close to the card reader to complete the corresponding NFC card reading operation, further simplifying the user's operation.

[0123] The coil control device in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television set (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the scope of the device.

[0124] The coil control device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit it.

[0125] The coil control device provided in this application embodiment can realize the various processes implemented in the above method embodiments, and will not be described again here to avoid repetition.

[0126] Optionally, embodiments of this application also provide an electronic device, which includes the coil control device as described in any of the above embodiments, and thus has all the beneficial effects of the coil control device in any of the embodiments, which will not be elaborated further here.

[0127] Optionally, embodiments of this application also provide an electronic device. Figure 8 A structural block diagram of an electronic device according to an embodiment of this application is shown, such as... Figure 8 As shown, the electronic device 800 includes a processor 802, a memory 804, and a program or instructions stored in the memory 804 and executable on the processor 802. When the program or instructions are executed by the processor 802, they implement the various processes of the above-described coil control method embodiments and achieve the same technical effects. To avoid repetition, they will not be described again here.

[0128] It should be noted that the electronic devices in the embodiments of this application include the aforementioned mobile electronic devices and non-mobile electronic devices.

[0129] Figure 9 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application.

[0130] The electronic device 900 includes, but is not limited to, components such as: radio frequency unit 901, network module 902, audio output unit 903, input unit 904, sensor 905, display unit 906, user input unit 907, interface unit 908, memory 909, and processor 910.

[0131] Those skilled in the art will understand that the electronic device 900 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 910 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 9 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.

[0132] The processor 910 is used to determine the folding angle between the first folding body and the second folding body based on the inductance value of the first coil.

[0133] The processor 910 is used to control the target coil in the first coil and the second coil to be in an operating state according to the folding angle between the first folding body and the second folding body.

[0134] This embodiment of the application places a portion of the first coil in the first folding body and another portion in the second folding body, enabling the first coil to fold along with the first and second folding bodies. An inductance detection circuit is included in the electronic device to detect the inductance value of the first coil. Since the inductance value of the first coil changes with the folding angle, the folding angle between the first and second folding bodies can be accurately detected using the inductance value. Furthermore, the first coil can be reused as an NFC coil in the electronic device, reducing the hardware cost of detecting the folding angle.

[0135] This embodiment of the application places a portion of the first coil in the first folding body and another portion of the first coil in the second folding body, allowing the first coil to fold along with the first and second folding bodies. A second coil is then placed within either the first or second folding body. A controller selects either the first or second coil to operate based on the folding angle between the first and second folding bodies. This allows the user to perform card reading operations by aligning the center of the electronic device with the card reader, regardless of whether the electronic device is folded or unfolded. Users do not need to adjust the position between the electronic device and the card reader, simplifying the user's operation.

[0136] In this embodiment, by setting two coils in different positions in the foldable electronic device, and selecting one of the two coils to be in working state according to the folding angle of the foldable electronic device, the working coil is always in the middle of the electronic device in the folded or unfolded state. The user does not need to adjust the position between the electronic device and the card reader to complete the sensing identification, which improves the convenience of user operation.

[0137] Furthermore, the electronic device includes an inductance detection circuit, which includes a first resistor and a signal amplifier;

[0138] The first end of the first resistor is used to receive the first voltage signal, the second end of the first resistor is connected to the first end of the first coil, the first input end of the signal amplifier is connected to the second end of the first resistor, the second input end of the signal amplifier is connected to the second end of the first coil, the third input end of the signal amplifier is grounded, and the output end of the signal amplifier is used to output the second voltage signal.

[0139] Processor 910 is used to acquire a first signal value and angular velocity value of a first voltage signal, a resistance value of a first resistor, and a second signal value of a second voltage signal;

[0140] Processor 910 is used to determine the inductance value of the first coil based on the first signal value, the angular velocity value, the resistance value, and the second signal value;

[0141] Processor 910 is used to determine the folding angle based on the inductance value of the first coil.

[0142] In this embodiment, by incorporating a first resistor and a signal amplifier into the inductance detection circuit, and using the first resistor as the receiver of a first voltage signal, and outputting a second voltage signal through the output of the signal amplifier, the inductance value of the first coil can be accurately calculated based on the first signal value, angular velocity value, resistance value, and second signal value, thereby improving the accuracy of the calculation.

[0143] Furthermore, the electronic device also includes a switch, with a first end connected to a first coil and a second end connected to a second coil, and the switch is capable of switching the operating states of the first coil and the second coil;

[0144] The processor 910 is used to control the first end and the third end of the switch to be connected when the folding angle is within a first preset angle range, so that the first coil is in working state.

[0145] The processor 910 is used to control the second end and the third end of the switch to conduct when the folding angle is within the second preset angle range, so that the second coil is in working state.

[0146] In this embodiment, the operating states of the first coil and the second coil are automatically controlled based on the folding angle between the first folding body and the second folding body. The first coil is positioned at the midpoint between the first and second folding bodies, and the second coil is disposed on either the first or second folding body. This allows the user to use the second coil for NFC communication when the electronic device is folded, and to use the first coil for NFC communication when the electronic device is unfolded. This ensures that, whether the electronic device is folded or unfolded, the user only needs to bring the midpoint of the electronic device close to the card reader to complete the corresponding NFC card reading operation, further simplifying the user's operation.

[0147] It should be noted that when the first coil is selected as a wireless electromagnetic charging coil, the first coil is also used to charge electronic devices. The folding angle is controlled according to the unfolded state and movement state between the first folding body and the second folding body, which can also prevent the first coil from being occupied for a long time.

[0148] It should be understood that, in this embodiment, the input unit 904 may include a graphics processing unit (GPU) 9041 and a microphone 9042. The GPU 9041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 906 may include a display panel 9061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 907 includes at least one of a touch panel 9071 and other input devices 9072. The touch panel 9071 is also called a touch screen. The touch panel 9071 may include a touch detection device and a touch controller. Other input devices 9072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, and joysticks, which will not be described in detail here.

[0149] The memory 909 can be used to store software programs and various data. The memory 909 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 909 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 909 in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.

[0150] Processor 910 may include one or more processing units; optionally, processor 910 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 910.

[0151] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.

[0152] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.

[0153] This application also provides a chip, which includes a processor and a communication interface. The communication interface and the processor are coupled. The processor is used to execute sequences or instructions to implement the various processes of the above-described coil control method embodiments and achieve the same technical effect. To avoid repetition, it will not be described again here.

[0154] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.

[0155] This application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the coil control method embodiment described above, and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0156] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0157] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of this application.

[0158] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. An electronic device, characterized in that, include: First fold main body; The second folding body is hinged to the first folding body; A first coil is disposed on the first folding body and the second folding body, and the first coil folds as the first folding body and the second folding body are folded; A second coil is disposed on the first folding body or the second folding body, and the second coil is located in the middle of the first folding body or the second folding body; A controller, connected to the first coil and the second coil, is used to control the target coil in the first coil and the second coil to be in a working state according to the folding angle between the first folding body and the second folding body; An inductance detection circuit, connected to the first coil, is used to detect the inductance value of the first coil; Wherein, when the first coil is folded along with the first folding body and the second folding body, the portion of the first coil located in the first folding body and the other portion of the first coil located in the second folding body are mutually inducted, so that the inductance value of the first coil changes, the controller is used to determine the folding angle between the first folding body and the second folding body based on the inductance value of the first coil.

2. The electronic device according to claim 1, characterized in that, Also includes: A switching device, wherein a first end of the switching device is connected to the first coil, and a second end of the switching device is connected to the second coil, and the switching device is capable of switching the operating states of the first coil and the second coil; The controller is used to control the working state of the first coil and the second coil through the switching element according to the folding angle between the first folding body and the second folding body.

3. The electronic device according to claim 2, characterized in that, Also includes: Signal processing chip; A matching circuit, wherein the first terminal of the matching circuit is connected to the signal processing chip, and the second terminal of the matching circuit is connected to the third terminal of the switching element; In this configuration, the first and third ends of the switching element are connected, and the first coil is in a working state; the second and third ends of the switching element are connected, and the second coil is in a working state.

4. The electronic device according to claim 1, characterized in that, The inductance detection circuit includes: A first resistor, the first end of which is used to receive a first voltage signal, and the second end of which is connected to the first end of the first coil; A signal amplifier, wherein the first input terminal of the signal amplifier is connected to the second terminal of the first resistor, the second input terminal of the signal amplifier is connected to the second terminal of the first coil, the third input terminal of the signal amplifier is grounded, and the output terminal of the signal amplifier is connected to the controller, and the output terminal of the signal amplifier is used to output a second voltage signal; The controller is used to determine the inductance value of the first coil based on the first signal value of the first voltage signal and the second signal value of the second voltage signal.

5. The electronic device according to any one of claims 1 to 3, characterized in that, The first coil and the second coil include any one of the following: a near-field communication coil and a wireless charging coil.

6. A coil control method for the electronic device according to any one of claims 1 to 5, characterized in that, The coil control method includes: The folding angle between the first folding body and the second folding body is determined based on the inductance value of the first coil. Based on the folding angle between the first folding body and the second folding body, the target coil in the first coil and the second coil is controlled to be in working state.

7. The coil control method according to claim 6, characterized in that, The electronic device includes an inductance detection circuit, which includes a first resistor and a signal amplifier. The first end of the first resistor is used to receive a first voltage signal, the second end of the first resistor is connected to the first end of the first coil, the first input end of the signal amplifier is connected to the second end of the first resistor, the second input end of the signal amplifier is connected to the second end of the first coil, the third input end of the signal amplifier is grounded, and the output end of the signal amplifier is used to output a second voltage signal. Before determining the folding angle between the first folding body and the second folding body based on the inductance value of the first coil, the process includes: Acquire the first signal value and angular velocity value of the first voltage signal, the resistance value of the first resistor, and the second signal value of the second voltage signal; The inductance value of the first coil is determined based on the first signal value, the angular velocity value, the resistance value, and the second signal value.

8. The coil control method according to claim 6 or 7, characterized in that, The electronic device further includes a switch, a first end of which is connected to the first coil, and a second end of which is connected to the second coil. The switch is capable of switching the operating states of the first coil and the second coil. The step of controlling the target coil in the first coil and the second coil to be in a working state according to the folding angle between the first folding body and the second folding body includes: When the folding angle is within the first preset angle range, the first end of the switch is controlled to be connected to the third end, so that the first coil is in working state. When the folding angle is within the second preset angle range, the second end of the switch is controlled to be connected to the third end, so that the second coil is in working state.

9. A coil control device for use in any of the electronic devices according to claims 1 to 5, characterized in that, include: The determining module is used to determine the folding angle between the first folding body and the second folding body based on the inductance value of the first coil; The control module is used to control the target coil in the first coil and the second coil to be in working state according to the folding angle between the first folding body and the second folding body.

10. The coil control device according to claim 9, characterized in that, The electronic device includes an inductance detection circuit, which includes a first resistor and a signal amplifier. The first end of the first resistor is used to receive a first voltage signal, the second end of the first resistor is connected to the first end of the first coil, the first input end of the signal amplifier is connected to the second end of the first resistor, the second input end of the signal amplifier is connected to the second end of the first coil, the third input end of the signal amplifier is grounded, and the output end of the signal amplifier is used to output a second voltage signal. The coil control device further includes: The acquisition module is used to acquire the first signal value and angular velocity value of the first voltage signal, the resistance value of the first resistor, and the second signal value of the second voltage signal; The determining module is used to determine the inductance value of the first coil based on the first signal value, the angular velocity value, the resistance value, and the second signal value. The determining module is used to determine the folding angle based on the inductance value of the first coil.

11. The coil control device according to claim 9 or 10, characterized in that, The electronic device further includes a switch, a first end of which is connected to the first coil, and a second end of which is connected to the second coil. The switch is capable of switching the operating states of the first coil and the second coil. The control module is used to control the first end and the third end of the switch to be connected when the folding angle is within the first preset angle range, so that the first coil is in working state. The control module is used to control the second end and the third end of the switch to be connected when the folding angle is within the second preset angle range, so that the second coil is in working state.

12. An electronic device, characterized in that, include: A processor and a memory, the memory storing a program or instructions executable on the processor, the program or instructions, when executed by the processor, implementing the steps of the coil control method as described in any one of claims 6 to 8.

13. A readable storage medium having a program or instructions stored thereon, characterized in that, When the program or instructions are executed by the processor, they implement the steps of the coil control method as described in any one of claims 6 to 8.

Citation Information

Patent Citations

  • Electronic equipment and wireless charging method

    CN113541324A