Charging circuit, electronic device and electronic device component

By using resonant circuits and detection modules in electronic equipment to detect the presence status of accessories, the problem of large space and high cost of keyboard presence detection circuits is solved, and an efficient and low-cost detection solution is realized.

CN117895670BActive Publication Date: 2024-09-03HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410297908.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-15
Publication Date
2024-09-03
Estimated Expiration
2044-03-15

AI Technical Summary

Technical Problem

In existing electronic equipment, the keyboard presence detection circuit occupies a large space and is costly.

Method used

The resonant circuit and detection module are used to detect the in-position status of the accessory. The oscillation signal is generated through the resonant circuit and the quality factor Q value is determined through the detection module to determine whether the accessory is connected to the device, avoiding the use of detection components such as Hall elements.

Benefits of technology

It can accurately detect the in-place status of accessories without increasing the volume and cost, save the number of detection channels and modules, and reduce costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117895670B
    Figure CN117895670B
Patent Text Reader

Abstract

The present application provides a charging circuit, an electronic device, and an electronic device component, which relates to the technical field of electronic devices and can improve the problem of a large volume and high cost of a keyboard in-place detection circuit in the related technology. The electronic device includes a charging circuit and a detection module, and the charging circuit includes: a first charging subcircuit, including a first resonant circuit, the first resonant circuit is used to generate a first oscillation signal according to a pulse signal; a second charging subcircuit, including a second resonant circuit, the second resonant circuit is used to generate a second oscillation signal according to the pulse signal; the detection module is coupled to the first resonant circuit and / or the second resonant circuit, the detection module is used to detect the quality factor Q value of the first resonant circuit according to the first oscillation signal, and detect the Q value of the second resonant circuit according to the second oscillation signal; the first charging subcircuit charges the first accessory according to the Q value of the first resonant circuit; the second charging subcircuit charges the second accessory according to the Q value of the second resonant circuit.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the technical field of electronic devices, and in particular to a charging circuit, an electronic device, and an electronic device component. Background Art

[0002] For ease of use, electronic devices can be connected to external keyboards and styluses, that is, the electronic devices can be controlled by the keyboards and styluses. Electronic devices can serve as power sources for styluses and keyboards. When the styluses and keyboards are attached to the electronic devices, the electronic devices can wirelessly charge the styluses and keyboards. Therefore, the electronic devices need to detect the presence of the styluses and keyboards, and only when the styluses and keyboards are in place, the corresponding charging function is activated.

[0003] However, the keyboard presence detection function in the related art is implemented by a detection circuit constructed by a Hall element and other detection components, and the Hall element is used to detect whether the stylus is in place. However, the detection component generally includes large components such as a flexible printed circuit (FPC) and a spring, which not only occupies a large volume, but also has a high cost. Summary of the invention

[0004] The embodiments of the present application provide a charging circuit, an electronic device, and an electronic device component, which are used to improve the problem in the related art that the keyboard presence detection circuit occupies a large volume and has a high cost.

[0005] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:

[0006] In a first aspect, an embodiment of the present application provides an electronic device, including a charging circuit, the charging circuit is used to charge a first accessory and a second accessory, the charging circuit includes: a first charging subcircuit and a second charging subcircuit. The first charging subcircuit includes a first resonant circuit, the first resonant circuit is used to generate a first oscillation signal according to a pulse signal. The second charging subcircuit includes a second resonant circuit, the second resonant circuit is used to generate a second oscillation signal according to the pulse signal.

[0007] The electronic device may further include a detection module. The detection module may be coupled to the first resonant circuit and / or the second resonant circuit, and the detection module is used to detect the quality factor Q value of the first resonant circuit according to the first oscillation signal, and to detect the quality factor Q value of the second resonant circuit according to the second oscillation signal.

[0008] When the Q value of the first resonant circuit indicates that the first accessory is connected to the electronic device, that is, the first accessory is in place, the first charging subcircuit charges the first accessory. When the quality factor Q value of the second resonant circuit indicates that the second accessory is connected to the electronic device, that is, the second accessory is in place, the second charging subcircuit charges the second accessory.

[0009] In this way, the second accessory can be determined by detecting the transmitting coil through the detection module, and the detection module can also determine whether the first accessory is connected to the electronic device by detecting the Q value of the inductor coil, without setting up a detection circuit constructed by Hall elements and other detection components to detect the connection status of the second accessory and the electronic device, avoiding the technical problems of existing detection circuits occupying a large volume and high cost.

[0010] In an implementation of the first aspect, the charging circuit may include a first selection module. A first end of the first selection module may be coupled to the detection module, a second end of the first selection module may be coupled to the first resonant circuit, and a third end of the first selection module may be coupled to the second resonant circuit. The first selection module may connect its first end to the second end, or connect its second end to the third end.

[0011] In this way, the charging circuit can couple the detection module to the first resonant circuit through the first selection module, or couple the detection module to the second resonant circuit. Therefore, the second accessory can share the same detection channel with the first accessory, saving the number of detection channels and the number of corresponding detection modules, thereby saving the cost of the electronic device for realizing the function of detecting the presence of the second accessory.

[0012] Exemplarily, the first selection module may include a first single-pole double-throw switch. A first end of the first single-pole double-throw switch may be coupled to the detection module, a second end of the first single-pole double-throw switch may be coupled to the first resonant circuit, and a third end of the first single-pole double-throw switch may be coupled to the second resonant circuit.

[0013] Thus, when the first end of the first single-pole double-throw switch is coupled to the second end of the first single-pole double-throw switch, the detection module is coupled to the first resonant circuit. When the first end of the first single-pole double-throw switch is coupled to the third end of the first single-pole double-throw switch, the detection module is coupled to the second resonant circuit.

[0014] In another exemplary embodiment, the first selection module may include a first switch unit and a second switch unit. The output end of the first switch unit may be coupled to the first end of the first selection module, and the input end of the first switch unit may be coupled to the second end of the first selection module. The output end of the second switch unit may be coupled to the first end of the first selection module, and the input end of the second switch unit may be coupled to the third end of the first selection module.

[0015] In an implementation of the first aspect, the charging circuit may include an isolated sampling module. The isolated sampling module may be coupled to the detection module, the isolated sampling module may be coupled to the first resonant circuit, and the isolated sampling module may also be coupled to the second resonant circuit.

[0016] The isolated sampling module can be used to transmit the first oscillation signal to the detection module and prevent the first oscillation signal from being transmitted to the second resonant circuit. The isolated sampling module can also be used to transmit the second oscillation signal to the detection module and prevent the second oscillation signal from being transmitted to the first resonant circuit.

[0017] In this way, the second accessory and the first accessory can share the same detection channel, and when the detection module detects the presence of the second accessory, the oscillation signal on the inductor coil will not affect the working state of the transmitter coil, that is, it will not affect the first charging subcircuit charging the first accessory. When the detection module detects the presence of the first accessory, the oscillation signal on the transmitter coil will not affect the working state of the inductor coil, that is, it will not affect the second charging subcircuit charging the second accessory.

[0018] Exemplarily, the isolation sampling module includes a first diode and a second diode. The anode of the first diode is coupled to the first resonant circuit, and the cathode of the first diode is coupled to the detection module. The anode of the second diode is coupled to the second resonant circuit, and the cathode of the second diode is coupled to the detection module.

[0019] In an implementation of the first aspect, the isolated sampling module may further include a first voltage divider circuit and a second voltage divider circuit. The first end of the first voltage divider circuit may be coupled to the first resonant circuit, the second end of the first voltage divider circuit may be coupled to the anode of the first diode, the third end of the first voltage divider circuit is grounded, and the first voltage divider circuit may be used to reduce the voltage of the first oscillation signal. The first end of the second voltage divider circuit is coupled to the second resonant circuit, the second end of the second voltage divider circuit is coupled to the anode of the second diode, the third end of the second voltage divider circuit is grounded, and the second voltage divider circuit is used to reduce the voltage of the second oscillation signal.

[0020] Exemplarily, the first voltage-dividing circuit includes a first voltage-dividing resistor and a second voltage-dividing resistor, wherein the first end of the first voltage-dividing resistor is coupled to the first resonant circuit, and the second end of the first voltage-dividing resistor is coupled to the anode of the first diode; the first end of the second voltage-dividing resistor is coupled to the anode of the first diode, and the second end of the second voltage-dividing resistor is grounded. The second voltage-dividing circuit includes a third voltage-dividing resistor and a fourth voltage-dividing resistor, wherein the first end of the third voltage-dividing resistor is coupled to the second resonant circuit, and the second end of the third voltage-dividing resistor is coupled to the anode of the second diode; the first end of the fourth voltage-dividing resistor is coupled to the anode of the second diode, and the second end of the fourth voltage-dividing resistor is grounded.

[0021] In this way, the detection module can obtain the oscillation signal on the transmitting coil by obtaining the voltage at the first end of the second voltage-dividing resistor, thereby determining whether the first accessory is in place. The detection module can obtain the oscillation signal on the inductor coil by obtaining the voltage at the first end of the fourth voltage-dividing resistor, thereby determining whether the second accessory is in place.

[0022] In an implementation manner of the first aspect, the charging circuit may further include an inverter subcircuit, which is coupled to the first resonant circuit and is used to provide a pulse signal.

[0023] In this way, when it is necessary to detect the presence of the second accessory and the first accessory, a detection signal can be emitted through the inverter sub-circuit.

[0024] In an implementation of the first aspect, the charging circuit also includes a second selection module, a first end of the second selection module can be coupled to the inverter sub-circuit, a second end of the second selection module can be coupled to the first resonant circuit, and a third end of the second selection module can be coupled to the second resonant circuit, and the second selection module is used to couple the inverter sub-circuit to the first resonant circuit, or to couple the inverter sub-circuit to the second resonant circuit.

[0025] In this way, the second selection module can be used to couple the inverter sub-circuit with the first resonant circuit, or to couple the inverter sub-circuit with the second resonant circuit. Thus, when it is necessary to detect the presence of the second accessory or the first accessory, the inverter sub-circuit can provide a detection signal for the transmitting coil or the inductor coil.

[0026] Exemplarily, the second selection module includes a second single-pole double-throw switch. A first end of the second single-pole double-throw switch is coupled to the inverter subcircuit, a second end of the second single-pole double-throw switch is coupled to the first resonant circuit, and a third end of the second single-pole double-throw switch is coupled to the second resonant circuit.

[0027] Thus, when the first end of the second single-pole double-throw switch is coupled to the second end of the second single-pole double-throw switch, the inverter sub-circuit is coupled to the first resonant circuit. When the first end of the second single-pole double-throw switch is coupled to the third end of the second single-pole double-throw switch, the inverter sub-circuit is coupled to the second resonant circuit.

[0028] In another exemplary embodiment, the second selection module may include a third switch unit and a fourth switch unit. An input end of the third switch unit is coupled to a first end of the second selection module, and an output end of the third switch unit is coupled to a second end of the second selection module. An input end of the fourth switch unit is coupled to a first end of the second selection module, and an output end of the fourth switch unit is coupled to a third end of the second selection module.

[0029] In an implementation manner of the first aspect, one of the first switch unit, the second switch unit, the third switch unit, and the fourth switch unit may include a fifth switch, a sixth switch, a seventh switch, and a resistor.

[0030] The first end of the fifth switch is coupled to the input end of the corresponding switch unit. The first end of the sixth switch is coupled to the second end of the fifth switch, and the second end of the sixth switch is coupled to the output end of the corresponding switch unit. The first end of the resistor is coupled to the first end of the sixth switch, and the second end of the resistor is coupled to the control end of the fifth switch and the control end of the sixth switch. The first end of the seventh switch is coupled to the second end of the resistor, the second end of the seventh switch is grounded, the control end of the seventh switch receives a control signal, and the seventh switch is turned on under the control of the control signal. When the seventh switch is turned on, the fifth switch and the sixth switch are turned on.

[0031] In this way, the leakage current between the transmitting coil and the detection module can be reduced, so that when the first accessory or the second accessory is not detected, the signal on the transmitting coil or the inductor coil will not affect the detection module.

[0032] In an implementation of the first aspect, one of the first switch unit, the second switch unit, the third switch unit, and the fourth switch unit may include a transistor, a first end of the transistor is coupled to an input end of the corresponding switch unit, and a second end of the transistor is coupled to an output end of the corresponding switch unit.

[0033] In a second aspect, an embodiment of the present application provides a charging circuit, which is used to charge a first accessory and a second accessory. The charging circuit includes a first charging subcircuit, a second charging subcircuit, and a detection module. The first charging subcircuit includes a first resonant circuit, which is used to generate a first oscillation signal according to a pulse signal. The second charging subcircuit includes a second resonant circuit, which is used to generate a second oscillation signal according to the pulse signal;

[0034] The detection module can be coupled to the first resonant circuit and / or the second resonant circuit, and the detection module can be used to detect the quality factor Q value of the first resonant circuit according to the first oscillation signal, and detect the Q value of the second resonant circuit according to the second oscillation signal.

[0035] The first charging subcircuit can be used to charge the first accessory when the Q value of the first resonant circuit indicates that the first accessory is connected to the charging circuit; the second charging subcircuit can be used to charge the second accessory when the Q value of the second resonant circuit indicates that the second accessory is connected to the charging circuit.

[0036] In a third aspect, an embodiment of the present application provides an electronic device. The electronic device includes a battery and a charging circuit as described in the second aspect. The battery is coupled to the charging circuit, and the battery is used to provide power to the charging circuit.

[0037] In a fourth aspect, an embodiment of the present application provides an electronic device, which can be used to charge a keyboard. The electronic device may include: a transformer circuit and a detection module. The transformer circuit is used to convert the received voltage into a charging voltage and then input it into the keyboard. The transformer circuit may include a resonant circuit, and the resonant circuit can be used to generate an oscillation signal based on a pulse signal. The detection module is coupled to the resonant circuit, and the detection module is used to detect the quality factor Q value of the resonant circuit based on the oscillation signal. The electronic device can be used to charge the keyboard when the Q value of the resonant circuit indicates that the keyboard is in place.

[0038] In a fifth aspect, an embodiment of the present application provides an electronic device assembly. The electronic device assembly may include an electronic device, a first accessory, and a second accessory. The electronic device includes the electronic device in any implementation of the first aspect, the third aspect, and the fourth aspect.

[0039] Since the electronic device component includes the electronic device in any implementation of the first, third and fourth aspects, the electronic device component can have the beneficial effects possessed by the electronic device in any implementation of the first, third and fourth aspects. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 A schematic diagram of the structure of an electronic device assembly provided in an embodiment of the present application;

[0041] Figure 2 for Figure 1 Architecture diagram of electronic equipment in the

[0042] Figure 3 for Figure 2 The structural diagram of the charging circuit;

[0043] Figure 4 for Figure 3 The structural diagram of the charging circuit;

[0044] Figure 5 For some embodiments provided Figure 4 The structural diagram of the charging circuit;

[0045] Figure 6 for Figure 5 A schematic diagram of the structure of the connection between the inverter sub-circuit and the resonant circuit;

[0046] Figure 7 for Figure 6 A schematic diagram of the Q value detection simulation of the resonant circuit and the waveform of the oscillation signal;

[0047] Figure 8 For other embodiments provided Figure 4 The structural diagram of the charging circuit;

[0048] Fig. 9 For other embodiments provided Figure 4 The structural diagram of the charging circuit;

[0049] Fig.10 It is a structural schematic diagram of the coupling between the keyboard and the charging circuit;

[0050] Fig.11 A schematic diagram of a charging circuit provided in some embodiments;

[0051] Fig.12 for Fig.11 A structural schematic diagram of the charging circuit shown;

[0052] Fig.13 for Fig.11 Another structural schematic diagram of the charging circuit shown;

[0053] Fig.14 for Fig.13 A structural schematic diagram of the charging circuit shown;

[0054] Fig.15 A structural schematic diagram of a switch unit;

[0055] Fig.16 A schematic diagram of a charging circuit provided in some other embodiments;

[0056] Fig.17 for Fig.16 A structural schematic diagram of the charging circuit shown;

[0057] Fig.18 for Fig.16 Another structural schematic diagram of the charging circuit shown;

[0058] Fig.19 A schematic diagram of a charging circuit is provided for other embodiments;

[0059] Fig. 20 for Fig.19 A structural schematic diagram of the charging circuit shown;

[0060] Fig.21 for Fig.19 Another structural schematic diagram of the charging circuit shown;

[0061] Fig. 22 for Fig.19 Another structural schematic diagram of the charging circuit shown. DETAILED DESCRIPTION

[0062] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.

[0063] In the following, the terms "first", "second", etc. are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first", "second", etc. may explicitly or implicitly include one or more of the features. In the description of this application, unless otherwise specified, "plurality" means two or more.

[0064] In addition, in the present application, directional terms such as "up", "down", "left" and "right" may be defined including but not limited to the orientation relative to the schematic placement of the components in the drawings. It should be understood that these directional terms may be relative concepts, which are used for relative description and clarification, and may change accordingly according to the change in the orientation of the components in the drawings.

[0065] In this application, unless otherwise specified or limited, the term "connection" should be understood in a broad sense. For example, "connection" can be a fixed connection, a detachable connection, or an integral connection; it can be a direct connection or an indirect connection through an intermediate medium. In addition, the term "coupling" can be a way of achieving electrical connection for signal transmission.

[0066] In the present application, the control electrode of each transistor used is the gate of the transistor, the first electrode is one of the source and drain of the transistor, and the second electrode is the other of the source and drain of the transistor. Since the source and drain of the transistor can be symmetrical in structure, the source and drain thereof can be structurally indistinguishable, that is, the first electrode and the second electrode of the transistor in the embodiment of the present disclosure can be structurally indistinguishable. Exemplarily, in the case where the transistor is a P-type transistor, the first electrode of the transistor is the source and the second electrode is the drain; exemplarily, in the case where the transistor is an N-type transistor, the first electrode of the transistor is the drain and the second electrode is the source.

[0067] As used herein, "about," "substantially," or "approximately" includes the stated value and an average value that is within an acceptable range of variation from the particular value as determined by one of ordinary skill in the art taking into account the measurements in question and the errors associated with the measurement of the particular quantity (i.e., the limitations of the measurement system).

[0068] An embodiment of the present application provides an electronic device assembly. The electronic device assembly may include an electronic device, a first accessory, and a second accessory. The electronic device may be used to charge the first accessory and the second accessory.

[0069] Figure 1 A schematic diagram of an electronic device assembly provided for an embodiment of the present application.

[0070] like Figure 1 As shown, the electronic device assembly 1 may include an electronic device 100 , a keyboard 200 , and a stylus pen 300 .

[0071] The embodiment of the present application does not specifically limit the type of the electronic device 100, and the electronic device 100 includes but is not limited to a portable electronic device, such as a laptop computer, a tablet computer, a smart vehicle-mounted device, an artificial intelligence device, etc. For ease of understanding, the following description will take the scenario where the electronic device 100 includes a tablet computer as an example.

[0072] It should be noted that Figure 1 The electronic device 100 and keyboard 200 are only for illustration, and the specific product form may be different.

[0073] The keyboard 200 and the electronic device 100 are both provided with corresponding Pogo pins. The Pogo pins may include a data pin, a power pin, and a ground pin. The electronic device 100 may communicate with the keyboard 200 via the data pin in the Pogo pin. The electronic device 100 may also charge the keyboard 200 via the power pin and the ground pin in the Pogo pin.

[0074] The embodiment of the present application does not specifically limit the implementation form of the stylus pen 300. One possible implementation is that the stylus pen 300 can be adsorbed on the top of the electronic device 100. For example, a magnetic device is provided on the top of the electronic device 100, and a corresponding magnetic device is also provided at a corresponding position on the stylus pen 300, then the stylus pen 300 can be adsorbed on the top of the electronic device 100 through the magnetic device.

[0075] When the stylus pen 300 is adsorbed on the top of the electronic device 100 , the electronic device 100 can wirelessly charge the stylus pen 300 through a transmitting coil provided in the electronic device 100 and a receiving coil inside the stylus pen 300 .

[0076] Figure 2 for Figure 1 Architectural diagram of electronic device 100.

[0077] like Figure 2 As shown, the electronic device 100 may include a processor 110, a battery 120, a USB interface 130, a charging management module 140, a charging circuit 150, a power management module 160, and the like.

[0078] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0079] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and / or a neural network processor (neural-network processing unit, NPU), etc. Among them, different processing units may be independent devices or integrated in one or more processors.

[0080] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0081] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuits sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0082] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100.

[0083] The power management module 160 is used to connect the battery 120, the charging management module 140 and the processor 110. The power management module 160 receives input from the battery 120 and / or the charging management module 140 to power the processor 110. The power management module 160 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 160 can also be set in the processor 110. In other embodiments, the power management module 160 and the charging management module 140 can also be set in the same device.

[0084] The charging circuit 150 can be coupled to the battery 120. The charging circuit 150 can be used to charge the stylus 300. For example, the charging circuit 150 can have a wireless charging function. When the receiving coil inside the stylus 300 is coupled with the transmitting coil L1 in the charging circuit 150, the charging circuit 150 can wirelessly charge the stylus 300. The charging circuit 150 can also be used to charge the keyboard 200. For example, the charging circuit 150 can be coupled to the Pogo Pin on the electronic device 100. When the keyboard 200 is coupled to the Pogo Pin on the electronic device 100, the charging circuit 150 can charge the keyboard 200.

[0085] Figure 3 for Figure 2 Schematic diagram of the structure of the charging circuit 150. Figure 4 for Figure 3 Schematic diagram of the structure of the charging circuit 150.

[0086] like Figure 3 As shown, the charging circuit 150 may include a first charging subcircuit 151 and a second charging subcircuit 152. The first charging subcircuit 151 may be coupled to the battery 120. The first charging subcircuit 151 may be used to generate an alternating magnetic field according to the direct current output by the battery 120 to wirelessly charge the stylus 300. The second charging subcircuit 152 may be coupled to the battery 120. The second charging subcircuit 152 may be used to convert the voltage output by the battery 120 into a voltage suitable for the keyboard 200 and then charge the keyboard 200.

[0087] like Figure 4 As shown, the first charging subcircuit 151 may include a wireless charging chip 11 and a first resonant circuit 12. The wireless charging chip 11 may be coupled to the battery 120. The wireless charging chip 11 may be used to convert the direct current provided by the battery 120 into alternating current.

[0088] The first resonant circuit 12 may be coupled to the wireless charging chip 11 and may be used to generate an alternating magnetic field according to the alternating current sent by the wireless charging chip 11. The receiving coil inside the stylus pen 300 generates electric energy for charging the battery inside the stylus pen 300 according to the alternating magnetic field.

[0089] The second charging subcircuit 152 may include a voltage conversion circuit 21. The voltage conversion circuit 21 may be coupled to the battery 120, and the voltage conversion circuit 21 may also be coupled to a Pogo Pin. The voltage conversion circuit 21 may be used to convert the voltage provided by the battery 120 into a voltage suitable for charging the keyboard 200 and then transmit it to the Pogo Pin. The keyboard 200 is charged by coupling with the Pogo Pin.

[0090] Figure 5 For some embodiments provided Figure 4Schematic diagram of the structure of the charging circuit 150. Figure 6 for Figure 5 Schematic diagram of the structure in which the inverter sub-circuit 111 is connected to the first resonant circuit 12.

[0091] like Figure 5 As shown, the wireless charging chip 11 may include an inverter subcircuit 111. The input end of the inverter subcircuit 111 may be coupled to the battery 120. The inverter subcircuit 111 may convert the direct current output by the battery 120 into alternating current. The embodiment of the present application does not specifically limit the specific implementation form of the inverter subcircuit 111, for example, it may be a full-bridge inverter subcircuit or a half-bridge inverter subcircuit.

[0092] The first resonant circuit 12 may include a first capacitor C1 and a transmitting coil L1. The first end of the first capacitor C1 may be coupled to the first output end 1 of the inverter subcircuit 111, and the second end of the first capacitor C1 may be coupled to the first end of the transmitting coil L1. The second end of the transmitting coil L1 may be coupled to the second output end 2 of the inverter subcircuit 111.

[0093] When the battery 120 charges the stylus pen 300, the inverter subcircuit 111 converts the direct current output by the battery 120 into alternating current and outputs it to the first capacitor C1 and the transmitting coil L1. The transmitting coil L1 generates an alternating magnetic field according to the alternating current output by the inverter subcircuit 111. The receiving coil inside the stylus pen 300 generates a current for charging the battery inside the stylus pen 300 according to the alternating magnetic field.

[0094] The voltage conversion circuit 21 may include an asynchronous step-down chopper circuit composed of a first switch T1, a second switch T2, a second capacitor C2, a third capacitor C3, and an inductor L2. The first end of the second capacitor C2 may be coupled to the positive electrode of the battery 120, and the second end of the second capacitor C2 may be coupled to the negative electrode of the battery 120. The first end of the first switch T1 may be coupled to the first end of the second capacitor C2, and the second end of the first switch T1 may be coupled to the first end of the inductor L2. The second end of the inductor L2 may be coupled to the first end of the third capacitor C3. The second end of the third capacitor C3 may be coupled to the negative electrode of the battery 120. The first end of the second switch T2 may be coupled to the second end of the first switch T1, and the second end of the second switch T2 may be coupled to the negative electrode of the battery 120. The power pin in the Pogo pin may be coupled to the first end of the third capacitor C3, and the ground pin may be coupled to the second end of the third capacitor C3.

[0095] In some embodiments, the voltage conversion circuit 21 may also include a synchronous buck chopper circuit.

[0096] Since the first charging sub-circuit 151 includes the first resonant circuit 12 , after the first resonant circuit 12 receives the pulse signal, an oscillation signal will be generated on the transmitting coil L1 under the resonance effect of the transmitting coil L1 and the first capacitor C1 .

[0097] like Figure 6 As shown, the inverter subcircuit 111 may include a first bridge arm and a second bridge arm. The first bridge arm includes a switch S1 and a switch S3 connected in series. The second bridge arm includes a switch S2 and a switch S4 connected in series. The first end of the first capacitor C1 is connected to the first output terminal 1 of the inverter subcircuit 111, that is, the first end of the first capacitor C1 is connected between S1 and S3, and the second end of the transmitting coil L1 is connected to the second output terminal 2 of the inverter subcircuit 111, that is, the second end of the transmitting coil L1 is connected between the switch S2 and the switch S4.

[0098] When the switch S1 and the switch S4 are closed, a pulse signal can be transmitted to the first resonant circuit 12 through the switch S1. The pulse signal passes through the first capacitor C1 and the transmitting coil L1 and is transmitted to the ground through the switch S4. At this time, due to the resonance of the transmitting coil L1 and the first capacitor C1, the voltage on the transmitting coil L1 oscillates continuously, that is, an oscillating signal is generated on the transmitting coil L1.

[0099] Figure 7 for Figure 6 The quality factor Q value (Quality Factor, quality factor, or quality factor, a dimensionless physical quantity used to measure the performance of an electronic device or a resonant circuit) detection simulation of the first resonant circuit 12 and a waveform diagram of the oscillation signal are shown.

[0100] like Figure 7 As shown, the coil L is equivalent to the transmitting coil L1, and the capacitor C is equivalent to the first capacitor C1. The second end 2 of the switch S is first connected to the first end 1 to receive the voltage signal provided by the voltage end Vdd3p3, and then the second end 2 of the switch S is disconnected from the first end 1, and the second end 2 is connected to the third end 3 (equivalent to the switches S1 and S4 being closed, S2 and S3 being disconnected, and the transmitting coil L1 receiving the pulse signal). At this time, the coil L and the capacitor C form a loop through the second end 2 and the third end 3, and due to the resonance of the coil L and the capacitor C, the voltage on the coil L oscillates. By detecting the voltage between the resistor R1 and the resistor R2, it can be detected that the voltage waveform of the oscillation signal is constantly oscillating, and it can be seen from the figure that V(t1) is greater than V(t2), that is, as time increases, the oscillation amplitude of the oscillation signal gradually decreases. The waveform of the oscillation signal is closely related to the Q value of the first resonant circuit 12.

[0101] The Q value is the ratio of the inductive reactance to its equivalent loss resistance when the inductor coil works under a voltage of a certain frequency. The higher the Q value of the inductor coil, the smaller its loss and the higher its efficiency. That is, when the Q value of the first resonant circuit 12 is higher, the oscillation time of the voltage waveform of the oscillation signal lasts longer, and when the Q value of the first resonant circuit 12 is lower, the oscillation time of the voltage waveform of the oscillation signal lasts shorter. Therefore, by monitoring the voltage waveform of the oscillation signal, the Q value of the first resonant circuit 12 can be obtained.

[0102] When the stylus pen 300 approaches, the coupling between the receiving coil on the stylus pen 300 and the transmitting coil L1 will affect the inductance of the transmitting coil L1, causing the equivalent resistance of the transmitting coil L1 to change, thereby affecting the Q value of the first resonant circuit 12. Therefore, by periodically sending a detection signal (pulse signal) to the first resonant circuit 12 and detecting the change in the Q value of the first resonant circuit 12, it can be determined whether the stylus pen 300 is adsorbed (in place).

[0103] Figure 8 For other embodiments provided Figure 4 Schematic diagram of the structure of the charging circuit 150. Fig.10 FIG. 1 is a schematic diagram of the structure of the keyboard 200 coupled to the second charging sub-circuit 152 .

[0104] like Figure 8 As shown, the wireless charging chip 11 may further include a detection module 112. The detection module 112 is coupled to the first end of the transmitting coil L1 in the first resonant circuit 12. The detection module 112 may be used to receive an oscillation signal and calculate the Q value of the first resonant circuit 12 according to the oscillation signal.

[0105] When the stylus pen 300 is close to the electronic device 100, the receiving coil in the stylus pen 300 affects the inductance of the transmitting coil L1, causing the equivalent resistance of the transmitting coil L1 to change, thereby causing the Q value of the first resonant circuit 12 to change. The detection module 112 detects the Q value of the first resonant circuit 12 by coupling with the transmitting coil L1, thereby determining whether the stylus pen 300 is in place.

[0106] Exemplarily, when the stylus pen 300 is not in place, the Q value of the first resonant circuit 12 is a first value, and when the stylus pen 300 is in place, the Q value of the first resonant circuit 12 is a second value. When the detection module 112 detects that the Q value of the first resonant circuit 12 is the first value, it means that the stylus pen 300 is not in place at this time, and the first charging subcircuit 151 does not work. When the detection module 112 detects that the Q value of the first resonant circuit 12 is the second value, it means that the stylus pen 300 is in place at this time, and the first charging subcircuit 151 starts to charge the stylus pen 300.

[0107] like Fig. 9 As shown, the detection module 112 may also be implemented by components other than the charging circuit 150, and therefore, the detection module 112 may also be located outside the charging circuit 150. If the detection module 112 is implemented by other components in the electronic device 100, such as by the processor 110, the present application does not limit the implementation of the detection module 112, and those skilled in the art may select appropriate components with a Q value detection function.

[0108] like Fig.10 As shown, since the second charging subcircuit 152 also has an inductor L2 and a third capacitor C3, the inductor L2 and the third capacitor C3 form a second resonant circuit 210, and since the second switch T2 has a parasitic diode D, the inductor L2, the third capacitor C3 and the parasitic diode D of the second switch T2 can also form a resonant loop. When a detection signal is sent to the inductor L2 through the first switch T1, the detection signal resonates in the resonant loop formed by the inductor L2, the third capacitor C3 and the parasitic diode D of the second switch T2, and an oscillation signal is generated at the inductor L2. Therefore, the Q value of the second resonant circuit 210 can be obtained by detecting the oscillation signal at the inductor L2.

[0109] like Fig.10 As shown, since the keyboard 200 has a diode D1n and a capacitor (C4...CN), such as a bypass capacitor or a capacitor in a protection circuit or a buck-boost circuit, when the keyboard 200 is connected to the electronic device 100, the capacitor (C4...Cn) in the keyboard 200 is connected in parallel with the third capacitor C3 in the second charging subcircuit 152, which changes the capacitance of the capacitor in the resonant circuit in the second charging subcircuit 152, thereby changing the resonant frequency of the second resonant circuit 210, thereby changing the waveform of the oscillation signal at the inductor L2, and finally changing the Q value of the second resonant circuit 210. Therefore, it is also possible to determine whether the keyboard 200 is in place by periodically sending a detection signal to the inductor L2 and detecting the Q value of the second resonant circuit 210.

[0110] Exemplarily, when the keyboard 200 is not in place, the Q value of the second resonant circuit 210 is a first value. When the keyboard 200 is in place, since the capacitor in the keyboard is connected in parallel with the third capacitor C3, the capacitance of the third capacitor C3 increases, thereby increasing the Q value of the second resonant circuit 210. Therefore, at this time, the Q value of the second resonant circuit 210 is a second value, and the second value is greater than the first value. When the detection module 112 detects that the Q value of the second resonant circuit 210 is a first value, it means that the keyboard 200 is not in place at this time, and the second charging subcircuit 152 does not work. When the detection module 112 detects that the Q value of the second resonant circuit 210 is a second value, it means that the keyboard 200 is already in place at this time, and the second charging subcircuit 152 starts to charge the keyboard 200.

[0111] In this way, whether the keyboard 200 is in place can be determined by detecting the Q value of the second resonant circuit 210, without setting up a detection circuit constructed by Hall elements and other detection components, avoiding the technical problems of existing detection circuits occupying a large volume and high cost.

[0112] Based on the above-mentioned principle of detecting the Q value of the second resonant circuit 210 to determine whether the keyboard 200 is in place, the present application subsequently provides some embodiments of the charging circuit 150 that can detect whether the keyboard 200 is in place by detecting the Q value of the second resonant circuit 210, so as to solve the technical problem that the existing detection circuit occupies a large volume and is relatively costly.

[0113] Fig.11 A schematic diagram of the structure of a charging circuit 150 provided in some embodiments. Fig.12 for Fig.11 Schematic diagram of the structure of the charging circuit 150 is shown.

[0114] like Fig.11 As shown, the charging circuit 150 may further include a first selection module 13. A first end of the first selection module 13 may be coupled to the detection module 112, a second end of the first selection module 13 may be coupled to the transmitting coil L1, and a third end of the first selection module 13 may be coupled to the inductor L2. The first selection module 13 may be used to couple the detection module 112 to the transmitting coil L1, or to couple the detection module 112 to the inductor L2.

[0115] When the electronic device 100 needs to detect whether the stylus 300 is in place, the electronic device 100 can send a detection signal to the transmitting coil L1 through the inverter subcircuit 111. At this time, the first selection module 13 couples the detection module 112 with the transmitting coil L1, so that the detection module 112 can detect the oscillation signal on the transmitting coil L1, thereby determining whether the stylus 300 is in place.

[0116] When the electronic device 100 needs to detect whether the keyboard 200 is in place, the electronic device 100 can send a detection signal to the inductor L2 through the transformer circuit 21. At this time, the first selection module 13 can couple the detection module 112 to the inductor L2, so that the detection module 112 can detect the oscillation signal on the inductor L2, thereby determining whether the keyboard 200 is in place.

[0117] In this way, the detection module 112 can be used to detect the transmitting coil L1 to determine whether the keyboard 200 is in place, and the detection module 112 can also determine whether the stylus 300 is in place by detecting the Q value of the inductor L2, without setting up a detection circuit constructed by Hall elements and other detection components to detect the presence of the keyboard 200, avoiding the technical problem that the existing detection circuit occupies a large volume and is high in cost.

[0118] like Fig.12 As shown, the first selection module 13 may include a first single-pole double-throw switch S5. A first end 1 of the first single-pole double-throw switch S5 is coupled to the detection module 112, a second end 2 of the first single-pole double-throw switch S5 is coupled to a first end of the transmitting coil L1, and a third end 3 of the first single-pole double-throw switch S5 is coupled to a second end of the inductor L2.

[0119] When the electronic device 100 needs to detect whether the stylus 300 is in place, the first end 1 and the second end 2 of the first single-pole double-throw switch S5 are connected, so that the detection module 112 is coupled to the transmitting coil L1. When the electronic device 100 needs to detect whether the keyboard 200 is in place, the first end 1 and the third end of the first single-pole double-throw switch S5 are connected 3, so that the detection module 112 is coupled to the inductor L2.

[0120] In this way, the detection module 112 can receive the oscillation signal on the transmitting coil L1 and the oscillation signal on the inductor L2 in a time-sharing manner, thereby detecting the Q value of the first resonant circuit 12 and the Q value of the second resonant circuit 210 in a time-sharing manner. Therefore, the detection module 112 can detect the presence of the keyboard 200 and the stylus pen 300 in a time-sharing manner.

[0121] like Fig.13 As shown, the first selection module 13 may include a first switch unit 131 and a second switch unit 132, wherein the output end of the first switch unit 131 is coupled to the first end of the first selection module 13, and the input end of the first switch unit 131 is coupled to the second end of the first selection module 13. The output end of the second switch unit 132 is coupled to the first end of the first selection module 13, and the input end of the second switch unit 132 is coupled to the third end of the first selection module 13.

[0122] like Fig.14 As shown, exemplarily, the first switch unit 131 may be composed of a single transistor, such as the first switch unit 131 may include a third switch T3. The first end of the third switch T3 may be coupled to the transmitting coil L1, the second end of the third switch T3 may be coupled to the detection module 112, the control end of the third switch T3 may receive a control signal, and the third switch T3 may be turned on or off under the control of the control signal. The control signal may be sent by the processor 110, or may be sent by a processing unit in the wireless charging chip 11.

[0123] The second switch unit 132 may be composed of a single transistor, for example, the second switch unit 132 may include a fourth switch T4. A first end of the fourth switch T4 may be coupled to the inductor L2, and a second end of the fourth switch T4 may be coupled to the detection module 112. A control end of the fourth switch T4 may receive a control signal, and the fourth switch T4 is turned on or off under the control of the control signal.

[0124] However, due to the existence of parasitic inductance inside the transistor and the influence of transistor leakage current, there may be a risk of signal leakage after the transistor is turned off.

[0125] To avoid the above risks, the structure of the first switch unit 131 in some other embodiments will be taken as an example for description below, and the structure of the second switch unit 132 can refer to the description of the first switch unit 131 .

[0126] like Fig.15 As shown, the input terminal Vin of the first switch unit 131 can be coupled to the transmitting coil L1, the output terminal Vout of the first switch unit 131 can be coupled to the detection module 112, and the control terminal k of the first switch unit 131 can receive the above control signal. The first switch unit 131 can couple or disconnect the transmitting coil L1 and the detection module 112 under the action of the control signal.

[0127] Exemplarily, the first switch unit 131 may include a Pmos transistor, such as a fifth switch T5 and a sixth switch T6, and the first switch unit 131 may also include a Nmos transistor, such as a seventh switch T7. The drain D of the fifth switch T5 is coupled to the input terminal Vin of the first switch unit 131, the source S of the fifth switch T5 is coupled to the source S of the sixth switch T6, and the drain D of the sixth switch T6 is coupled to the output terminal Vout of the first switch unit 131. The gate G of the fifth switch T5 and the gate G of the sixth switch T6 are both coupled to the source S of the seventh switch T7. The source S of the seventh switch T7 is also coupled to the source S of the fifth switch through the resistor R3, the drain D of the seventh switch T7 is grounded, and the gate G of the seventh switch T7 is coupled to the control terminal k of the first switch unit 131. Through the above configuration, the directions of the parasitic diode in the fifth switch T5 and the parasitic diode in the sixth switch T6 are reversed.

[0128] In this way, when the control terminal k of the first switch unit 131 receives the control signal, the seventh switch T7 is turned on, so that the gate G of the fifth switch T5 and the gate G of the sixth switch T6 are grounded, so that the fifth switch T5 and the sixth switch T6 are turned on, and the transmitting coil L1 is coupled to the detection module 112. When the seventh switch T7 is turned off under the control of the control signal, the fifth switch T5 and the sixth switch T6 are closed, and the connection between the transmitting coil L1 and the detection module 112 is disconnected. Since the directions of the parasitic diode in the fifth switch T5 and the parasitic diode in the sixth switch T6 are opposite, and there are two transistors between the transmitting coil L1 and the detection module 112, the leakage current between the transmitting coil L1 and the detection module 112 is small, so that the risk of the above-mentioned signal leakage is small.

[0129] Exemplarily, the first switch unit 131 may further include a resistor R4, one end of which is coupled to the gate G of the seventh switch T7, and the other end of which is grounded. In this way, the voltage at the control terminal k is prevented from being too large and damaging the seventh switch T7.

[0130] Fig.16 Schematic diagram of the structure of the charging circuit 150 provided in some other embodiments. Fig.17 for Fig.16 A structural schematic diagram of a charging circuit 150 is shown. Fig.18 for Fig.16 Another structural schematic diagram of the charging circuit 150 is shown.

[0131] like Fig.16 As shown, Fig.11 The difference is that the charging circuit 150 may include an isolated sampling module 14. The isolated sampling module 14 may be coupled to the detection module 112, and the isolated sampling module 14 may also be coupled to the inductor L2 and the transmitting coil L1 respectively. The isolated sampling module 14 may be used to enable the oscillation signal on the transmitting coil L1 to be transmitted to the detection module 112, but not to be transmitted to the inductor L2. The isolated sampling module 14 may also be used to enable the oscillation signal on the inductor L2 to be transmitted to the detection module 112, but not to be transmitted to the transmitting coil L1.

[0132] In this way, the keyboard 200 and the stylus pen 300 can share the same detection channel, and when the detection module 112 detects the presence of the keyboard 200, the oscillation signal on the inductor coil L2 will not affect the working state of the transmitting coil L1, that is, it will not affect the first charging sub-circuit 151 charging the stylus pen 300. When the detection module 112 detects the presence of the stylus pen 300, the oscillation signal on the transmitting coil L1 will not affect the working state of the inductor coil L2, that is, it will not affect the second charging sub-circuit 152 charging the keyboard 200.

[0133] like Fig.17As shown, the isolation sampling module 14 may include a first diode D1 and a second diode D2. The cathode of the first diode D1 is coupled to the detection module 112, and the anode of the first diode D1 is coupled to the first end of the transmitting coil L1. The cathode of the second diode D2 is coupled to the detection module 112, and the anode of the second diode D2 is coupled to the second end of the inductor L2. The oscillating signal on the transmitting coil L1 can be transmitted to the detection module 112 through the first diode D1, and due to the unidirectional conduction effect of the second diode D2, the oscillating signal on the transmitting coil L1 will not be transmitted to the inductor L2. The oscillating signal on the inductor L2 can be transmitted to the detection module 112 through the second diode D2, and due to the unidirectional conduction effect of the first diode D1, the oscillating signal on the inductor L2 will not be transmitted to the transmitting coil L1.

[0134] It should be noted that when the charging circuit 150 uses the isolation sampling module 14 to isolate the oscillation signals on the transmitting coil L1 and the inductor L2, since the transmitting coil L1 and the inductor L2 can transmit the oscillation signal to the detection module 112 at the same time, in order to avoid the oscillation signals of the two from influencing each other, the detection signal in the inverter sub-circuit 111 and the detection signal in the transformer circuit 21 need to be sent in time-sharing, that is, when the inverter sub-circuit 111 sends the detection signal, the transformer circuit 21 does not send the detection signal, and when the transformer circuit 21 sends the detection signal, the inverter sub-circuit 111 does not send the detection signal.

[0135] like Fig.18 As shown, the isolation sampling module 14 may further include a first voltage divider circuit 141 and a second voltage divider circuit 142. The first voltage divider circuit 141 may be coupled to the transmitting coil L1, and the first voltage divider circuit 141 may also be coupled to the first diode D1. The first voltage divider circuit 141 may be used to divide the signal on the transmitting coil L1 and transmit it to the first diode D1. The first voltage divider circuit 141 may include a first voltage divider resistor R11 and a second voltage divider resistor R12. The first end of the first voltage divider resistor R11 is coupled to the first end of the transmitting coil L1, and the second end of the first voltage divider resistor R11 is coupled to the anode of the first diode D1. The first end of the second voltage divider resistor R12 is coupled to the anode of the first diode D1, and the second end of the second voltage divider resistor R12 is grounded.

[0136] The second voltage divider circuit 142 can be coupled to the inductor coil L2, and the second voltage divider circuit 142 can also be coupled to the second diode D2. The second voltage divider circuit 142 is used to divide the signal on the inductor coil L2 and transmit it to the second diode D2. The second voltage divider circuit 142 may include a third voltage divider resistor R13 and a fourth voltage divider resistor R14. The first end of the third voltage divider resistor R13 is coupled to the first end of the inductor coil L2, and the second end of the third voltage divider resistor R13 is coupled to the anode of the second diode D2. The first end of the fourth voltage divider resistor R14 is coupled to the anode of the second diode D2, and the second end of the fourth voltage divider resistor R14 is grounded.

[0137] In this way, the detection module 112 can obtain the oscillation signal on the transmitting coil L1 by obtaining the voltage at the first end of the second voltage-dividing resistor R12, thereby determining whether the stylus 300 is in place. The detection module 112 can obtain the oscillation signal on the inductor L2 by obtaining the voltage at the first end of the fourth voltage-dividing resistor R14, thereby determining whether the keyboard 200 is in place.

[0138] Fig.19 Schematic diagram of the structure of the charging circuit 150 provided in some other embodiments. Fig. 20 for Fig.19 A structural schematic diagram of a charging circuit 150 is shown. Fig.21 for Fig.19 Another structural schematic diagram of the charging circuit 150 is shown.

[0139] like Fig.19 As shown, the charging circuit 150 may further include a second selection module 15. A first end of the second selection module 15 may be coupled to the second output end 2 of the inverter sub-circuit 111, a second end of the second selection module 15 may be coupled to the transmitting coil L1, and a third end of the second selection module 15 may be coupled to the inductor L2. The second selection module 15 may be used to couple the second output end 2 of the inverter sub-circuit 111 to the second end of the transmitting coil L1, or to couple the second output end 2 of the inverter sub-circuit 111 to the first end of the inductor L2.

[0140] When the electronic device 100 needs to detect whether the stylus 300 is in place, the second selection module 15 couples the second output terminal 2 of the inverter subcircuit 111 with the second end of the transmitting coil L1, and transmits a detection signal to the transmitting coil L1 through the inverter subcircuit 111. When the electronic device 100 needs to detect whether the keyboard 200 is in place, the second selection module 15 couples the second output terminal 2 of the inverter subcircuit 111 with the inductor L2, and transmits a detection signal to the inductor L2 through the inverter subcircuit 111.

[0141] In this way, the detection signal can be provided to the transmitting coil L1 or the inductor L2 through the inverter sub-circuit 111 , without providing the detection signal to the inductor L2 through the transformer circuit 21 .

[0142] like Fig. 20 As shown, the second selection module 15 may include a second single-pole double-throw switch S6. A first terminal 1 of the second single-pole double-throw switch S6 is coupled to the second output terminal 2 of the inverter sub-circuit 111, a second terminal 2 of the second single-pole double-throw switch S6 is coupled to the second terminal of the transmitting coil L1, and a third terminal 3 of the second single-pole double-throw switch S6 is coupled to the first terminal of the inductor L2.

[0143] In this way, when the electronic device 100 needs to detect whether the stylus 300 is in place, the first end 1 and the second end 2 of the second single-pole double-throw switch S6 are turned on, so that the second output end 2 of the inverter subcircuit 111 is coupled to the second end of the transmitting coil L1, and the inverter subcircuit 111 sends a detection signal to the transmitting coil L1.

[0144] When the electronic device 100 needs to detect whether the keyboard 200 is in place, the first terminal 1 and the third terminal 3 of the second single-pole double-throw switch S6 are turned on, so that the second output terminal 2 of the inverter subcircuit 111 is coupled to the first end of the inductor L2, and the inverter subcircuit 111 sends a detection signal to the inductor L2.

[0145] like Fig. 20 As shown, when the charging circuit 150 includes the first selection module 13 and the second selection module 15, the process of the charging circuit 150 detecting whether the keyboard 200 and the stylus 300 are in place is as follows:

[0146] When the electronic device 100 needs to detect whether the stylus pen 300 is in place, the first end 1 and the second end 2 of the second single-pole double-throw switch S6 are turned on, so that the second output end 2 of the inverter sub-circuit 111 is coupled to the second end of the transmitting coil L1, and the inverter sub-circuit 111 sends a detection signal to the transmitting coil L1. At the same time, the first end 1 and the second end 2 of the first single-pole double-throw switch S5 are turned on, so that the detection module 112 is coupled to the first end of the transmitting coil L1, and the detection module 112 detects the oscillation signal on the transmitting coil L1 to determine whether the stylus pen 300 is in place.

[0147] When the electronic device 100 needs to detect whether the keyboard 200 is in place, the first end 1 and the third end 3 of the second single-pole double-throw switch S6 are connected, so that the second output end 2 of the inverter sub-circuit 111 is coupled to the first end of the inductor L2, and the inverter sub-circuit 111 sends a detection signal to the inductor L2. The first end 1 and the third end 3 of the first single-pole double-throw switch S5 are connected, so that the detection module 112 is coupled to the second end of the inductor L2, and the detection module 112 detects the oscillation signal on the inductor L2 to determine whether the stylus 300 is in place.

[0148] like Fig.21 As shown, when the charging circuit 150 includes both the second selection module 15 and the isolation sampling module 14, the process of the charging circuit 150 detecting whether the keyboard 200 and the stylus 300 are in place is as follows:

[0149] When the electronic device 100 needs to detect whether the stylus pen 300 is in place, the first end 1 and the second end 2 of the second single-pole double-throw switch S6 are turned on, so that the second output end 2 of the inverter sub-circuit 111 is coupled to the second end of the transmitting coil L1, and the inverter sub-circuit 111 sends a detection signal to the transmitting coil L1. The oscillation signal on the transmitting coil L1 is transmitted to the detection module 112 through the first diode D1, and the detection module 112 detects the oscillation signal on the transmitting coil L1 to determine whether the stylus pen 300 is in place.

[0150] When the electronic device 100 needs to detect whether the keyboard 200 is in place, the first terminal 1 and the third terminal 3 of the second single-pole double-throw switch S6 are turned on, so that the second output terminal 2 of the inverter sub-circuit 111 is coupled to the first end of the inductor L2, and the inverter sub-circuit 111 sends a detection signal to the inductor L2. The oscillation signal on the inductor L2 is transmitted to the detection module 112 through the second diode D2, and the detection module 112 detects the oscillation signal on the inductor L2 to determine whether the stylus 300 is in place.

[0151] like Fig. 22 As shown, in some embodiments, the second selection module 15 may include a third switch unit 1501 and a fourth switch unit 1502. The input end of the third switch unit 1501 is coupled to the first end of the second selection module 15, and the output end of the third switch unit 1501 is coupled to the second end of the second selection module 15. The input end of the fourth switch unit 1502 is coupled to the first end of the second selection module 15, and the output end of the fourth switch unit 1502 is coupled to the third end of the second selection module 15.

[0152] For example, the third switch unit 1501 and the fourth switch unit 1502 may be constructed by separate transistors (eg Fig.14 The third switch unit 1501 and the fourth switch unit 1502 can also be constructed by multiple transistors (such as Fig.15 The third switch unit 1501 and the fourth switch unit 1502 may refer to the related descriptions of the first switch unit 131 and the second switch unit 132, which will not be described in detail here.

[0153] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

[0154] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0155] It should be understood that in this application, "at least one (item)" means one or more, and "more than one" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and both A and B exist, where A and B can be singular or plural. The character " / " generally indicates that the associated objects are in an "or" relationship.

[0156] "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or plural.

[0157] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0158] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0159] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated units may be implemented in the form of hardware.

[0160] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims

1. An electronic device, comprising a charging circuit, wherein the charging circuit is used to charge a first accessory and a second accessory, wherein the second accessory is a keyboard; characterized in that: The charging circuit comprises: A first charging subcircuit, comprising a first resonant circuit, wherein the first resonant circuit is used to generate a first oscillation signal according to the pulse signal; The second charging subcircuit includes a second resonant circuit, and the second resonant circuit is used to generate a second oscillation signal according to the pulse signal; the electronic device also includes a spring pin, and the second charging subcircuit uses the spring pin to couple with the second accessory and charge the second accessory; The electronic device further comprises: a detection module, coupled to the first resonant circuit and / or the second resonant circuit, the detection module being configured to detect a quality factor Q value of the first resonant circuit according to the first oscillation signal, and to detect a Q value of the second resonant circuit according to the second oscillation signal; The first charging subcircuit is used to charge the first accessory when the Q value of the first resonant circuit indicates that the first accessory is connected to the electronic device; the second charging subcircuit is used to charge the second accessory when the Q value of the second resonant circuit indicates that the second accessory is connected to the electronic device.

2. The electronic device according to claim 1, characterized in that: The charging circuit comprises: a first selection module, wherein a first end of the first selection module is coupled to the detection module, a second end of the first selection module is coupled to the first resonant circuit, and a third end of the first selection module is coupled to the second resonant circuit; The first selection module is used to couple the detection module to the first resonant circuit, or to couple the detection module to the second resonant circuit.

3. The electronic device according to claim 2, characterized in that: The first selection module comprises: a first single-pole double-throw switch, wherein a first end of the first single-pole double-throw switch is coupled to the detection module, a second end of the first single-pole double-throw switch is coupled to the first resonant circuit, and a third end of the first single-pole double-throw switch is coupled to the second resonant circuit; When the first end of the first single-pole double-throw switch and the second end of the first single-pole double-throw switch are coupled, the detection module is coupled to the first resonant circuit; When the first end of the first single-pole double-throw switch and the third end of the first single-pole double-throw switch are coupled, the detection module is coupled to the second resonant circuit.

4. The electronic device according to claim 2, characterized in that: The first selection module comprises: a first switch unit, wherein an output terminal of the first switch unit is coupled to a first terminal of the first selection module, and an input terminal of the first switch unit is coupled to a second terminal of the first selection module; and A second switch unit, wherein an output end of the second switch unit is coupled to a first end of the first selection module, and an input end of the second switch unit is coupled to a third end of the first selection module.

5. The electronic device according to claim 1, characterized in that: The charging circuit further includes an isolation sampling module, the isolation sampling module is coupled to the detection module, the isolation sampling module is coupled to the first resonant circuit, and the isolation sampling module is also coupled to the second resonant circuit; The isolated sampling module is used to transmit the first oscillation signal to the detection module and prevent the first oscillation signal from being transmitted to the second resonant circuit; or, the isolated sampling module is used to transmit the second oscillation signal to the detection module and prevent the second oscillation signal from being transmitted to the first resonant circuit.

6. The electronic device according to claim 5, characterized in that: The isolation sampling module comprises: a first diode, wherein an anode of the first diode is coupled to the first resonant circuit, and a cathode of the first diode is coupled to the detection module; and A second diode, wherein an anode of the second diode is coupled to the second resonant circuit, and a cathode of the second diode is coupled to the detection module.

7. The electronic device according to claim 6, characterized in that: The isolation sampling module also includes: a first voltage divider circuit, wherein a first end of the first voltage divider circuit is coupled to the first resonant circuit, a second end of the first voltage divider circuit is coupled to the anode of the first diode, a third end of the first voltage divider circuit is grounded, and the first voltage divider circuit is used to reduce the voltage of the first oscillation signal; A second voltage divider circuit, wherein the first end of the second voltage divider circuit is coupled to the second resonant circuit, the second end of the second voltage divider circuit is coupled to the anode of the second diode, the third end of the second voltage divider circuit is grounded, and the second voltage divider circuit is used to reduce the voltage of the second oscillation signal.

8. The electronic device according to claim 7, characterized in that: The first voltage-dividing circuit comprises a first voltage-dividing resistor and a second voltage-dividing resistor, wherein a first end of the first voltage-dividing resistor is coupled to the first resonant circuit, and a second end of the first voltage-dividing resistor is coupled to an anode of the first diode; a first end of the second voltage-dividing resistor is coupled to an anode of the first diode, and a second end of the second voltage-dividing resistor is grounded; The second voltage-dividing circuit includes a third voltage-dividing resistor and a fourth voltage-dividing resistor, wherein the first end of the third voltage-dividing resistor is coupled to the second resonant circuit, and the second end of the third voltage-dividing resistor is coupled to the anode of the second diode; the first end of the fourth voltage-dividing resistor is coupled to the anode of the second diode, and the second end of the fourth voltage-dividing resistor is grounded.

9. The electronic device according to claim 2 or 5, characterized in that: The charging circuit further includes an inverter subcircuit, which is coupled to the first resonant circuit and is used to provide a pulse signal.

10. The electronic device according to claim 9, characterized in that: The charging circuit also includes a second selection module, a first end of the second selection module is coupled to the inverter sub-circuit, a second end of the second selection module is coupled to the first resonant circuit, a third end of the second selection module is coupled to the second resonant circuit, and the second selection module is used to couple the inverter sub-circuit to the first resonant circuit, or to couple the inverter sub-circuit to the second resonant circuit.

11. The electronic device according to claim 10, characterized in that: The second selection module comprises: a second single-pole double-throw switch, wherein a first end of the second single-pole double-throw switch is coupled to the inverter sub-circuit, a second end of the second single-pole double-throw switch is coupled to the first resonant circuit, and a third end of the second single-pole double-throw switch is coupled to the second resonant circuit; When the first end of the second single-pole double-throw switch and the second end of the second single-pole double-throw switch are coupled, the inverter sub-circuit is coupled to the first resonant circuit; When the first end of the second single-pole double-throw switch and the third end of the second single-pole double-throw switch are coupled, the inverter sub-circuit is coupled to the second resonant circuit.

12. The electronic device according to claim 10, characterized in that: The second selection module comprises: a third switch unit, wherein an input end of the third switch unit is coupled to a first end of the second selection module, and an output end of the third switch unit is coupled to a second end of the second selection module; and A fourth switch unit, wherein an input end of the fourth switch unit is coupled to the first end of the second selection module, and an output end of the fourth switch unit is coupled to the third end of the second selection module.

13. The electronic device according to claim 1, characterized in that: The charging circuit includes a first switch unit, a second switch unit, a third switch unit and a fourth switch unit, and at least one of the first switch unit, the second switch unit, the third switch unit and the fourth switch unit includes: a fifth switch, wherein a first terminal of the fifth switch is coupled to an input terminal of a corresponding switch unit, a sixth switch, wherein a first end of the sixth switch is coupled to a second end of the fifth switch, and a second end of the sixth switch is coupled to an output end of a corresponding switch unit, a resistor, a first end of the resistor being coupled to the first end of the sixth switch, and a second end of the resistor being coupled to the control end of the fifth switch and the control end of the sixth switch; a seventh switch, wherein a first end of the seventh switch is coupled to the second end of the resistor, a second end of the seventh switch is grounded, a control end of the seventh switch receives a control signal, and the seventh switch is turned on under the control of the control signal; When the seventh switch is turned on, the fifth switch and the sixth switch are turned on.

14. A charging circuit, applied to an electronic device, the electronic device is used to charge a first accessory and a second accessory, the second accessory is a keyboard; the electronic device comprises a spring pin; characterized in that: The charging circuit comprises: A first charging subcircuit, comprising a first resonant circuit, wherein the first resonant circuit is used to generate a first oscillation signal according to the pulse signal; a second charging subcircuit, coupling with the second accessory using the spring pin and charging the second accessory; the second charging subcircuit comprising a second resonant circuit, the second resonant circuit being used to generate a second oscillation signal according to the pulse signal; a detection module, coupled to the first resonant circuit and / or the second resonant circuit, the detection module being configured to detect a Q value of the first resonant circuit according to the first oscillation signal, and to detect a Q value of the second resonant circuit according to the second oscillation signal; The first charging subcircuit is used to charge the first accessory when the Q value of the first resonant circuit indicates that the first accessory is connected to the charging circuit; the second charging subcircuit is used to charge the second accessory when the Q value of the second resonant circuit indicates that the second accessory is connected to the charging circuit.

15. An electronic device, characterized in that: The invention comprises a battery and the charging circuit as claimed in claim 14, wherein the battery is coupled to the charging circuit and is used to provide electrical energy to the charging circuit.

16. An electronic device assembly, characterized in that: The device comprises an electronic device, a first accessory and a second accessory, wherein the electronic device is used to charge the first accessory and the second accessory; wherein the electronic device comprises the electronic device as described in any one of claims 1-13 and 15.