First electronic equipment and second electronic equipment

By establishing a data transmission interface and charging request mechanism between electronic devices, and using control circuits and power supply circuits to achieve intelligent charging, the problem of fast power consumption and insufficient power is solved, and charging compatibility and safety is improved.

CN120528048APending Publication Date: 2025-08-22BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410190953.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-02-20
Publication Date
2025-08-22

AI Technical Summary

Technical Problem

Electronic devices consume faster power during use, especially when connected to other devices, their own power may not be guaranteed, which affects the use of the device and is insufficient intelligence.

Method used

By establishing a data transmission interface between the first electronic device and the second electronic device, the interaction between charging requests and charging parameters is realized, and the control circuit and power supply circuit are used to ensure charging when the power is insufficient, including the cooperation of the interface circuit, the power supply circuit, the charging management module and the battery management module, intelligent charging is realized.

Benefits of technology

Improve charging compatibility and safety and reliability between electronic devices, save energy, and improve the intelligence of the device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120528048A_ABST
    Figure CN120528048A_ABST
Patent Text Reader

Abstract

The invention relates to first electronic equipment and second electronic equipment, and the first electronic equipment comprises a first interface circuit which comprises a first data transmission interface which is used for being connected with a second data transmission interface of the second electronic equipment, receiving a charging request sent by the second electronic equipment when the electric quantity does not meet a preset electric quantity condition; wherein the charging request carries a charging parameter; a first power supply circuit; and the first control circuit is connected with the first interface circuit and the first power supply circuit so as to control the first power supply circuit to supply power to the second electronic equipment connected with the first interface circuit according to the charging parameters. Through the arrangement of the first electronic device, the charging compatibility between the electronic devices can be improved, the safety and reliability of the electronic devices are improved, energy can be saved, and the intelligence is higher.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of electronic technology, and in particular to a first electronic device and a second electronic device. Background Art

[0002] As electronic products become increasingly diverse and used more frequently, their power consumption can increase rapidly, necessitating timely charging. For example, while tablets and laptops can charge other devices when connected, their own power may not be fully maintained, hindering their usability and limiting their intelligence. Summary of the Invention

[0003] To overcome the problems existing in the related art, the present disclosure provides a first electronic device and a second electronic device.

[0004] According to a first aspect of an embodiment of the present disclosure, there is provided a first electronic device, including:

[0005] The first interface circuit includes a first data transmission interface, the first data transmission interface being configured to connect to a second data transmission interface of a second electronic device to receive a charging request sent by the second electronic device when the power level does not meet a preset power condition; wherein the charging request carries charging parameters;

[0006] a first power supply circuit;

[0007] The first control circuit is connected to the first interface circuit and the first power supply circuit to control the first power supply circuit to supply power to the second electronic device connected to the first interface circuit according to the charging parameters.

[0008] In some embodiments, the first power supply circuit includes:

[0009] A first power interface, used for connecting to a first external power supply device;

[0010] A first charging management module is connected to the first power interface and the first control circuit, and is used to obtain the charging parameters from the first control circuit and perform a charging handshake with the first power supply device based on the charging parameters, so that the first power supply device powers the second electronic device with the charging parameters.

[0011] In some embodiments, the first power supply circuit further includes:

[0012] The first conversion module is connected to the first power interface and the first control circuit, and is used to convert the charging parameters output by the first power supply device into electrical parameters required for the operation of the first control circuit.

[0013] In some embodiments, the first interface circuit includes a pogo pin.

[0014] According to a second aspect of an embodiment of the present disclosure, a second electronic device is provided, including:

[0015] The second interface circuit includes a second data transmission interface, wherein the second data transmission interface is used to connect to the first data transmission interface of the first electronic device;

[0016] a second control circuit, connected to the second data transmission interface, configured to send a charging request to the first electronic device via the second data transmission interface when the power level of the second electronic device does not meet a preset power level condition; wherein the charging request carries charging parameters;

[0017] The battery circuit is connected to the second interface circuit and is used to receive the electric energy provided by the first electronic device according to the charging parameters through the second interface circuit.

[0018] In some embodiments, the battery circuit comprises:

[0019] Battery;

[0020] a first switch connected to the second interface circuit;

[0021] A battery management module is connected to the battery and the first switch respectively, and is used to turn on the first switch to receive electric energy provided by the first electronic device based on the charging parameters through the second interface circuit to charge the battery.

[0022] In some embodiments, the battery circuit further comprises:

[0023] The second power interface is used to connect to a second external power supply device;

[0024] a second switch connected to the second power interface and the battery management module;

[0025] The battery management module is further configured to turn on the second switch when the first switch is turned off and the second power interface is connected to the second power supply device, so as to control the second power supply device to supply power to the battery.

[0026] In some embodiments, the second control circuit is further configured to control the first switch of the battery circuit to be turned off when the power level of the second electronic device meets the preset power level condition, so as to supply power to the first electronic device through the battery.

[0027] In some embodiments, the battery circuit further comprises:

[0028] a first detection module, connected to the second interface circuit and the battery management module, configured to detect the charging parameter of the second interface circuit and send the detected charging parameter to the battery management module;

[0029] The battery management module is further configured to turn on the first switch when the charging parameters of the second interface circuit meet a preset first electrical parameter condition, so as to receive electrical energy provided by the first electronic device with the charging parameters through the second interface circuit.

[0030] In some embodiments, the battery circuit further comprises:

[0031] a second detection module, connected to the second power interface and the battery management module, configured to detect electrical parameters of the second power interface and send the parameters to the battery management module;

[0032] The battery management module is also used to turn on the second switch and turn off the first switch when the electrical parameters of the second power supply interface meet the preset second electrical parameter conditions; or turn on the first switch and turn off the second switch when the charging parameters of the second interface circuit meet the preset first electrical parameter conditions.

[0033] In some embodiments, the battery management module is further used to turn off the first switch and control the battery to supply power to the first electronic device based on the second interface circuit when the charging parameters of the second interface circuit do not meet the preset first electrical parameter conditions.

[0034] In some embodiments, the second power interface is further used to connect to an electrical device;

[0035] The battery management module is further configured to turn off the second switch when the second power interface is connected to the power-consuming device, so as to control the battery to supply power to the power-consuming device.

[0036] In some embodiments, the battery circuit further comprises:

[0037] The second conversion module is connected to the battery management module and the second control circuit, and is used to convert the electrical parameters provided by the battery into electrical parameters required for the operation of the second control circuit.

[0038] In some embodiments, the second control circuit includes:

[0039] a signal detection module, connected to the second interface circuit, and configured to detect a signal from the second data transmission interface;

[0040] The control module is configured to determine that the first electronic device is detected when the signal detected by the signal detection module satisfies a preset signal change condition.

[0041] In some embodiments, the second interface circuit includes:

[0042] a first pull-up resistor, one end of which is connected to a power input terminal of the second electronic device;

[0043] A first pull-down resistor, one end of which is grounded;

[0044] A third switch has one end connected to the other end of the first pull-up resistor or the first pull-down resistor, and the other end connected to the data signal line of the second data transmission interface.

[0045] In some embodiments, the control module is used to determine that the first electronic device is detected when the signal detected by the signal detection module is a first waveform signal of a signal with a first preset amplitude and a ground signal jump; wherein, the first electronic device is an electrical device.

[0046] In some embodiments, the control module is further used to determine that the first electronic device is detected when the signal detected by the signal detection module is a signal of a second preset amplitude and a second waveform signal of a power signal jump; wherein, the first electronic device is a power supply device.

[0047] The technical solutions provided by the embodiments of the present disclosure may have the following beneficial effects:

[0048] In an embodiment of the present disclosure, a first electronic device receives a charging request carrying charging parameters sent by a second electronic device when the power level does not meet a preset power condition through a first data transmission interface in a first interface circuit, and controls the first power supply circuit through a first control circuit to power the second electronic device connected to the first interface circuit with the charging parameters. This can improve the charging compatibility between electronic devices, improve the safety and reliability of electronic devices, save energy, and be more intelligent.

[0049] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0051] Figure 1 This is a structural example of a first electronic device according to an exemplary embodiment. Figure 1 .

[0052] Figure 2 This is a structural example of a first electronic device according to an exemplary embodiment. Figure 2 .

[0053] Figure 3 This is a structural example of a second electronic device according to an exemplary embodiment. Figure 1 .

[0054] Figure 4 This is a structural example of a second electronic device according to an exemplary embodiment. Figure 2 .

[0055] Figure 5 FIG. 1 is a diagram showing an example of a detection structure according to an exemplary embodiment.

[0056] Figure 6 The figure shows an example structure of an electric device according to an exemplary embodiment.

[0057] Figure 7 The figure shows an example structure of a power supply device according to an exemplary embodiment.

[0058] Figure 8 The figure is a diagram showing an application scenario of a first electronic device and a second electronic device according to an exemplary embodiment.

[0059] Figure 9 The figure is a structural block diagram of a first electronic device and a second electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0060] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all possible embodiments consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.

[0061] Figure 1 This is a structural example of a first electronic device according to an exemplary embodiment. Figure 1 .like Figure 1 As shown, the first electronic device 1 includes:

[0062] The first interface circuit 11 includes a first data transmission interface 111, the first data transmission interface 111 being configured to connect to a second data transmission interface 211 of a second electronic device 2 to receive a charging request sent by the second electronic device 2 when the power level does not meet a preset power condition; wherein the charging request carries charging parameters;

[0063] a first power supply circuit 12;

[0064] The first control circuit 13 is connected to the first interface circuit 11 and the first power circuit 12 to control the first power circuit 12 to supply power to the second electronic device 2 connected to the first interface circuit 11 according to the charging parameters.

[0065] In the embodiments of the present disclosure, the first electronic device 1 may be an electronic device such as a display screen, a keyboard, a capacitive stylus, a charging stand, a projector, a headset, a printer, a game controller, etc. that can be connected to an electronic device such as a user equipment (UE), a mobile device, a user terminal, a mobile phone, a tablet computer, a personal digital assistant (PDA), a handheld device, a computing device, an in-vehicle device, or a wearable device. The second electronic device 2 may be an electronic device such as a user equipment, a mobile device, a user terminal, a mobile phone, a tablet computer, a personal digital assistant (PDA), a handheld device, a computing device, an in-vehicle device, or a wearable device.

[0066] In an embodiment of the present disclosure, a first electronic device 1 includes a first interface circuit 11, and the first interface circuit 11 includes a first data transmission interface 111, wherein the first interface circuit 11 may be a circuit including a pogo pin connector, a circuit including a Universal Serial Bus (USB) connector, or a circuit including a High Definition Multimedia Interface (HDMI) connector, and the embodiment of the present disclosure does not limit this. The first data transmission interface 111 is one of the interfaces in the first interface circuit 11, such as when the first interface circuit 11 is a circuit including multiple pogo pin structures, the first data transmission interface 111 is one of the pin contacts; when the first interface circuit 11 is a circuit including a USB connector, the first data transmission interface 111 is an interface for connecting a USB data transmission line; when the first interface circuit 11 is a circuit including an HDMI connector, the first data transmission interface 111 is one or more pins of the HDMI connector.

[0067] In the embodiment of the present disclosure, the first interface circuit 11 may further include an interface for receiving a charging voltage and an interface for grounding.

[0068] In some embodiments, the first interface circuit 11 includes a pogo pin.

[0069] In the embodiment of the present disclosure, the first interface circuit 11 can be a circuit integrating multiple pogo pins, and the first data transmission interface 111 can be one of the pogo pins in the first interface circuit 11. For example, the first data transmission interface 111 is a data pin for data transmission among multiple pogo pins. In the embodiment of the present disclosure, data transmission, connection to other electronic devices, charging of other electronic devices, or receiving of electrical energy from other electronic devices are performed through the pogo pin.

[0070] In the embodiment of the present disclosure, the provision of the pogo pin can improve the stability, durability, and corrosion resistance of the first interface circuit 11 , and the provision of the pogo pin is relatively simple, easy to implement, and low in cost.

[0071] In the embodiment of the present disclosure, the first data transmission interface 111 is connected to the second data transmission interface 211 of the second electronic device 2. In some embodiments, the first electronic device 1 may first determine whether the second electronic device 2 is connected through the first data transmission interface 111, and when it is determined that the first electronic device 1 is connected to the second electronic device 2, receive a charging request carrying charging parameters sent by the second electronic device 2 when the power level does not meet the preset power condition. Specifically, the first electronic device 1 may determine whether the second electronic device 2 is connected by detecting the electrical parameters of the first data transmission interface 111; the first electronic device 1 may also detect whether the second electronic device 2 is connected based on the single-wire protocol; the first electronic device 1 may also determine whether the second electronic device 2 is connected by detecting the communication status of the first data transmission interface 111.

[0072] In other embodiments, the second electronic device 2 can also detect whether the first electronic device 1 is connected, and send a connection instruction or signal to the first electronic device 1 based on the detection result. The first electronic device 1 can receive the connection instruction or signal sent by the second electronic device 2 through the first data transmission interface 111, and determine whether the second electronic device 2 is connected through the instruction or signal, and when it is determined that the first electronic device 1 is connected to the second electronic device 2, receive the charging request carrying charging parameters sent by the second electronic device 2 when the power level does not meet the preset power condition through the first data transmission interface 111.

[0073] In the embodiments of the present disclosure, the second electronic device 2 can monitor its own power level. In some embodiments, the second electronic device 2 includes a power meter, and the second electronic device 2 monitors the power level through the power meter; in other embodiments, the second electronic device 2 includes a power management module, and the second electronic device 2 monitors the power level through the power management module; in still other embodiments, the second electronic device 2 can monitor the power level through an installed software application. In this regard, the embodiments of the present disclosure are not limited. When the power level of the second electronic device 2 does not meet a preset power level condition, the second electronic device 2 can send a charging request to the first electronic device 1. The fact that the power level of the second electronic device 2 does not meet the preset power level condition may mean that the power level of the second electronic device 2 is not fully charged, or that the power level of the second electronic device 2 is less than a preset power level threshold, for example, less than 30%.

[0074] In the disclosed embodiment, the first data transmission interface 111 is used to connect to the second data transmission interface 211 of the second electronic device 2 to receive a charging request containing charging parameters, which is sent by the second electronic device 2 when the power level does not meet a preset power condition. The charging parameters may include charging voltage, charging current, charging power, etc. In addition, the charging request may also contain device identification information of the second electronic device 2.

[0075] In an embodiment of the present disclosure, the first electronic device 1 includes a first power supply circuit 12, wherein the first power supply circuit 12 is used to provide electrical energy. In some embodiments, when the first electronic device 1 does not include energy storage devices such as batteries, the first power supply circuit 12 is used to connect to an external power supply device; in other embodiments, the first power supply circuit 12 is a circuit including energy storage devices such as batteries.

[0076] In the embodiment of the present disclosure, the first electronic device 1 includes a first control circuit 13 connected to the first interface circuit 11 and the first power circuit 12 to control the first power circuit 12 to power the second electronic device 2 connected to the first interface circuit 11 according to charging parameters.

[0077] In the embodiment of the present disclosure, since the first control circuit 13 is connected to the first interface circuit 11, the first control circuit 13 can receive the charging parameters sent by the first interface circuit 11 and control the first power supply circuit 12 to power the second electronic device 2 connected to the first interface circuit 11 with the charging parameters.

[0078] In the embodiment of the present disclosure, the first control circuit 13 may include a control module, such as a central processing unit (CPU), a microcontroller unit (MCU), etc. The first electronic device 1 may control the first power supply circuit 12 to supply power to the second electronic device 2 connected to the first interface circuit 11 according to the charging parameters through the control module in the first control circuit 13.

[0079] In the embodiment of the present disclosure, the first electronic device 1 may also include a charging management module, and be connected to the first power supply circuit 12 and the first control circuit 13. The first control circuit 13 can control the first power supply circuit 12 through the charging management module to power the second electronic device 2 connected to the first interface circuit 11 with charging parameters.

[0080] In the embodiment of the present disclosure, when the first power supply circuit 12 has a device for storing electrical energy such as a battery, the first control circuit 13 can control the device for storing electrical energy such as a battery in the first power supply circuit 12 to charge the second electronic device based on the charging parameters; when the first power supply circuit 12 does not have a device for storing electrical energy such as a battery, an external power supply device can be connected to receive the electrical energy provided by the power supply device, and the power supply device can be controlled by the first control circuit 13 to charge the second electronic device 2 according to the charging parameters.

[0081] In the embodiment of the present disclosure, the first electronic device 1 receives a charging request carrying charging parameters sent by the second electronic device 2 when the power level does not meet the preset power condition through the first data transmission interface 111 in the first interface circuit 11, and controls the first power supply circuit 12 through the first control circuit 13 to power the second electronic device 2 connected to the first interface circuit 11 with the charging parameters, which can improve the charging compatibility between electronic devices, improve the safety and reliability of electronic devices, save energy, and be more intelligent.

[0082] Figure 2 This is a structural example of a first electronic device according to an exemplary embodiment. Figure 2 , for the convenience of subsequent description, the following is based on Figure 2 Provide relevant description.

[0083] In some embodiments, the first power circuit 12 includes:

[0084] The first power interface 121 is used for connecting to the first power supply device 3;

[0085] The first charging management module 122 is connected to the first power interface 121 and the first control circuit 13, and is used to obtain the charging parameters from the first control circuit 13, and perform a charging handshake with the first power supply device 3 based on the charging parameters, so that the first power supply device 3 powers the second electronic device 2 with the charging parameters.

[0086] In the embodiment of the present disclosure, the first power supply circuit 12 includes a first power interface 121, which is used to connect to the first power supply device 3, wherein the first power interface 121 can be an alternating current (AC) power interface, a direct current (DC) power interface, a USB interface, an HDMI interface, or the like that can be connected to the first power supply device 3; the first power supply device 3 can be a tablet computer, a laptop computer, a power socket, a power adapter, a charger, or the like that can provide power to the first electronic device 1 through the first power interface 121.

[0087] In the embodiment of the present disclosure, as mentioned above, the first power supply circuit 12 also includes a first charging management module 122, which is connected to the first power supply interface 121 and the first control circuit 13, and is used to obtain charging parameters from the first control circuit 13, and perform a charging handshake with the first power supply device 3 based on the charging parameters, so that the first power supply device 3 can power the second electronic device 2 with the charging parameters.

[0088] In the embodiment of the present disclosure, after the first control circuit 13 obtains the charging parameters sent by the first interface circuit 11, it can send the charging parameters to the first charging management module 122. The first charging management module 122 can perform a charging handshake with the first power supply device 3 based on the charging parameters. The first charging management module 122 can communicate with the first power supply device 3 through charging communication protocols such as the Battery Charging (BC) 1.2 protocol, the Power Delivery (PD) protocol, and the Quick Charge (QC) protocol. It should be noted that the charging communication protocol between the first charging management module 122 and the first power supply device 3 can be one or more, or a fusion of multiple communication protocols. The embodiment of the present disclosure does not impose any restrictions on this.

[0089] In the embodiment of the present disclosure, after the first charging management module 122 obtains the charging parameters, it can send a charging parameter negotiation request carrying the charging parameters to the first power supply device 3, inform the first power supply device 3 of the charging parameters required by the second electronic device 2, and request the first power supply device 3 to power the second electronic device 2 with the charging parameters.

[0090] In the embodiment of the present disclosure, the first electronic device 1 is externally connected to the first power supply device 3 through the first power interface 121, and performs a charging handshake with the first power supply device 3 based on the charging parameters through the first charging management module 122, so that the first power supply device 3 supplies power to the second electronic device 2 according to the charging parameters, which can further enhance the safety and compatibility of charging between electronic devices, improve charging efficiency, and be more intelligent.

[0091] In some embodiments, the first power circuit 12 further includes:

[0092] The first conversion module 123 is connected to the first power interface 121 and the first control circuit 13 , and is configured to convert the charging parameters output by the first power supply device 3 into electrical parameters required for the operation of the first control circuit 13 .

[0093] In the disclosed embodiment, the first conversion module 123 can obtain electrical energy provided by the first power supply device 3 based on charging parameters from the first power interface 121, and convert the charging parameters into electrical parameters required for the operation of the first control circuit 13. In some embodiments, the charging parameter is a charging voltage, and the first conversion module 123 may include a charge pump, a direct current-direct current (DC-DC) converter, a low dropout regulator (LDO), a boost circuit, a buck circuit, and other voltage-adjustable devices or circuits to convert the charging voltage output by the first power supply device 3 into the voltage required for the operation of the first control circuit 13.

[0094] In some embodiments, the charging parameter is the charging current. The first conversion module 123 may include current-adjustable devices or circuits such as resistors, capacitors, and transistors to convert the charging current output by the first power supply device 3 into the current required for the operation of the first control circuit 13.

[0095] In the embodiment of the present disclosure, the first electronic device 1 converts the charging parameters output by the first power supply device 3 into electrical parameters required for the operation of the first control circuit 13 through the first conversion module 123, which can improve the safety of the operation of the first control circuit 13 and make it more intelligent.

[0096] Figure 3 This is a structural example of a second electronic device according to an exemplary embodiment. Figure 1 ,like Figure 2 As shown, the second electronic device 2 includes:

[0097] The second interface circuit 21 includes a second data transmission interface 211, and the second data transmission interface 211 is used to connect to the first data transmission interface 111 of the first electronic device 1;

[0098] a second control circuit 22 connected to the second data transmission interface 211, configured to send a charging request to the first electronic device 1 via the second data transmission interface 211 when the power level of the second electronic device 2 does not meet a preset power level condition; wherein the charging request carries charging parameters;

[0099] The battery circuit 23 is connected to the second interface circuit 21 and is configured to receive the electric energy provided by the first electronic device 1 according to the charging parameters through the second interface circuit 21 .

[0100] In the embodiment of the present disclosure, as mentioned above, the second electronic device 2 can be a user device, a mobile device, a user terminal, a mobile phone, a tablet computer, a personal digital assistant, a handheld device, a computing device, a vehicle-mounted device, a wearable device, or other electronic device.

[0101] In the embodiment of the present disclosure, the second electronic device 2 includes a second interface circuit 21, and the second interface circuit 21 includes a second data transmission interface 211, wherein the second interface circuit 21 can be a circuit including a pogo pin, a circuit including a USB, or a circuit including an HDMI, and the embodiment of the present disclosure does not limit this. The second data transmission interface 211 is one of the interfaces in the second interface circuit 21, such as when the second interface circuit 21 is a circuit including multiple pogo pin structures, the second data transmission interface 211 is one of the pin contacts; when the second interface circuit 21 is a circuit including a USB, the second data transmission interface 211 is an interface for connecting a USB data transmission line; when the second interface circuit 21 is a circuit including an HDMI, the second data transmission interface 211 is one or more pins of the HDMI connector.

[0102] In the embodiment of the present disclosure, the second interface circuit 21 may further include an interface for receiving a charging voltage and an interface for grounding.

[0103] In the embodiment of the present disclosure, the second electronic device 2 includes a second control circuit 22, which is connected to the second data transmission interface 211. When the power level of the second electronic device 2 does not meet the preset power condition, a charging request carrying charging parameters is sent to the first electronic device 1 through the second data transmission interface 211.

[0104] In the embodiment of the present disclosure, the second control circuit 22 may first detect whether the second electronic device 2 is connected to the first electronic device 1 through the second data transmission interface 211, and after determining that the first electronic device 1 is connected, determine whether the power of the second electronic device meets the preset power condition. In some embodiments, the second control circuit 22 may determine whether the first electronic device 1 is connected by detecting the electrical parameters of the second data transmission interface 211. It can be understood that when the second data transmission interface 211 is connected to the first data transmission interface 111 of the first electronic device 1, the electrical parameters of the second data transmission interface 211 (such as current value and voltage value) will change. For example, if the current value of the second data transmission interface 211 increases instantaneously, it indicates that the first electronic device 1 is connected; if the current value of the second data transmission interface 211 does not change, it can be determined that the first electronic device 1 is not connected.

[0105] In other embodiments, the second control circuit 22 can detect whether the first electronic device 1 is connected based on the single-wire protocol. For example, the second electronic device 2 can set relevant parameters of the single-wire protocol and perform signal detection through the second data transmission interface 211. When the detected signal is the relevant parameters in the single-wire protocol, it indicates that the first electronic device 1 is connected; otherwise, it indicates that the first electronic device 1 is not connected.

[0106] In other embodiments, the second control circuit 22 can determine whether the first electronic device 1 is connected by detecting the communication status of the second data transmission interface 211. Specifically, the second control circuit 22 can send a detection signal or command based on the second data transmission interface 211 to detect whether communication can be established with the first electronic device 1; if communication can be established, it is determined that the first electronic device 1 is connected; if communication cannot be established, it is determined that the first electronic device 1 is not connected.

[0107] In other embodiments, the second control circuit 22 may determine whether the first electronic device 1 is connected by detecting the level signal of the second data transmission interface 211 .

[0108] In other embodiments, the first electronic device 1 can also detect whether the second electronic device 2 is connected, and send a connection instruction or signal to the second electronic device 2 based on the detection result. The second electronic device 2 can receive the connection instruction or signal sent by the first electronic device 1 through the second data transmission interface 211, and determine whether the first electronic device 1 is connected through the instruction or signal. When it is determined that the second electronic device 2 is connected to the first electronic device 1 and the power of the second electronic device 2 does not meet the preset power condition, it sends a charging request carrying charging parameters to the first electronic device 1 through the second data transmission interface 211.

[0109] In the embodiment of the present disclosure, the second control circuit 22 can also detect the power level of the second electronic device 2, and when it detects that the first electronic device 1 is connected and the power level does not meet the preset power level condition, it sends a charging request carrying charging parameters to the first electronic device 1 through the second data transmission interface 211.

[0110] In the embodiment of the present disclosure, the second control circuit 22 can monitor the power level of the second electronic device 2 through a power meter, a power detection module, a software application, etc., and the embodiment of the present disclosure does not limit this. The power level of the second electronic device 2 not meeting the preset power level condition can mean that the power level of the second electronic device 2 is not fully charged, or the power level of the second electronic device 2 is less than a preset power level threshold, such as less than 30%, and the embodiment of the present disclosure does not limit this.

[0111] In the disclosed embodiment, the charging request carries charging parameters, where, as mentioned above, the charging parameters may include charging voltage, charging current, charging power, etc. In addition, the charging request may also carry device identification information of the second electronic device 2, etc.

[0112] In the embodiment of the present disclosure, the second electronic device 2 includes a battery circuit 23 connected to the second interface circuit 21 , and configured to receive electric energy provided by the first electronic device 1 with charging parameters through the second interface circuit 21 .

[0113] In this disclosed embodiment, the second electronic device 2 detects the first electronic device 1 via the second control circuit 22 and the second data transmission interface 211. If the power level of the second electronic device 2 does not meet a preset power condition, it sends a charging request containing charging parameters to the first electronic device 1. The second electronic device 2 then receives, via the battery circuit 23, the power provided by the first electronic device 1 via the second interface circuit 21 using the charging parameters. This improves charging compatibility between electronic devices, enhances the safety and reliability of electronic devices, saves energy, and provides greater intelligence.

[0114] Figure 4 This is a structural example of a second electronic device according to an exemplary embodiment. Figure 2 , for the convenience of subsequent description, the following is based on Figure 4 Provide relevant description.

[0115] In some embodiments, the battery circuit 23 includes:

[0116] Battery 231;

[0117] A first switch 232 connected to the second interface circuit 21;

[0118] The battery management module 233 is connected to the battery 231 and the first switch 232 respectively, and is used to turn on the first switch 232 to receive the electric energy provided by the first electronic device 1 based on the charging parameters through the second interface circuit 21 to charge the battery.

[0119] In the embodiment of the present disclosure, the battery circuit 23 includes a battery 231 for storing electrical energy so that the second electronic device 2 can operate normally even when it is not connected to the first electronic device 1 or other power supply device.

[0120] In the embodiment of the present disclosure, the battery circuit 23 further includes a battery management module 233 , which is configured to turn on the first switch 232 to receive power provided by the first electronic device 1 based on charging parameters through the second interface circuit 21 to charge the battery 231 .

[0121] In some embodiments, the battery management module 233 can control the first switch 232 based on the connection status of the second electronic device 2 and the first electronic device 1. For example, the battery management module 233 can turn on the first switch 232 in response to the second electronic device 2 being connected to the first electronic device 1, and turn off the first switch 232 otherwise.

[0122] In other embodiments, the battery management module 233 may control the first switch 232 based on the charging parameters. For example, the battery management module 233 may turn on the first switch 232 in response to the charging parameters meeting the preset charging parameter conditions, and turn off the first switch 232 otherwise.

[0123] In the embodiment of the present disclosure, the first switch 232 includes switches such as a single-pole switch, a double-pole switch, a transistor, a triode, a metal-oxide-semiconductor field-effect transistor (MOSFET), etc. The first switch 232 can also be a collection of the above switches, such as two MOS tubes facing in opposite directions. This embodiment of the present disclosure does not limit this.

[0124] In the embodiment of the present disclosure, the battery management module 233 can control the first switch 232 through a level signal. For example, when the first switch 232 is an N-type MOS tube, the battery management module 233 can output a high level to turn on the first switch 232, and output a low level to turn off the first switch 232.

[0125] In the embodiment of the present disclosure, the battery management module 233 is used to turn on the first switch 232 to receive the electric energy provided by the first electronic device 1 based on the charging parameters through the second interface circuit 21 to charge the battery, thereby improving the safety and intelligence of charging between electronic devices.

[0126] In some embodiments, the battery circuit 23 further includes:

[0127] The second power interface 234 is used to connect to the second power supply device 4;

[0128] A second switch 235 connected to the second power interface 234 and the battery management module 233;

[0129] The battery management module 233 is further configured to turn on the second switch 235 when the first switch 232 is turned off and the second power interface 234 is connected to the second power supply device 4 , so as to control the second power supply device 235 to supply power to the battery 231 .

[0130] In the embodiment of the present disclosure, the battery circuit 23 includes a second power interface 234 for externally connecting to a second power supply device 4, wherein the second power interface 234 can be an AC power interface, a DC power interface, a USB interface, an HDMI interface, or the like that can be connected to the second power supply device 4; the second power supply device 4 can be a tablet computer, a laptop computer, a power socket, a power adapter, a charger, or the like that can provide power to the second electronic device 2 through the second power interface 234.

[0131] In the embodiment of the present disclosure, the battery management module 233 is further configured to turn on the second switch 235 when the first switch 232 is off and the second power interface 234 is connected to the second power supply device 4, thereby controlling the second power supply device 4 to supply power to the battery 231. The fact that the first switch 232 is off indicates that the second electronic device 2 is unable to receive power from the first electronic device 1.

[0132] In the embodiment of the present disclosure, the second switch 235 includes a single-pole switch, a double-pole switch, a transistor, a triode, a MOSFET, or the like. The second switch 235 may also be a collection of the above switches, such as two MOS tubes facing in opposite directions. The embodiment of the present disclosure does not impose any limitation on this.

[0133] In the embodiment of the present disclosure, the battery management module 233 can control the second switch 235 through a level signal. For example, when the second switch 235 is an N-type MOS tube, the battery management module 233 can output a high level to turn on the second switch 235, and output a low level to turn off the second switch 235.

[0134] In the embodiment of the present disclosure, the second electronic device 2 can also control the second power supply device 4 to supply power to the second electronic device 2 when connected to the second power supply device 4, which can improve the intelligence of the electronic device, and the solution is simple and effective.

[0135] In some embodiments, the second control circuit 22 is further configured to control the first switch 232 of the battery circuit 23 to be turned off when the power level of the second electronic device 2 meets the preset power condition, so as to supply power to the first electronic device 1 through the battery 231 .

[0136] In the embodiment of the present disclosure, the power level of the second electronic device 2 meeting the preset power level condition may mean that the power level of the second electronic device 2 is fully charged, or the power level of the second electronic device 2 is greater than a preset power level threshold, for example, the power level is greater than 90%. The embodiment of the present disclosure does not impose any restrictions on this.

[0137] In the embodiment of the present disclosure, the second control circuit 22 controls the first switch 232 of the battery circuit 23 to turn off when the power level of the second electronic device 2 meets the preset power condition, that is, to turn off the loop for the first electronic device 1 to supply power to the second electronic device 2, and to supply power to the first electronic device 1 through the battery 231, so that the second electronic device 2 can supply power to the first electronic device 1, thereby enhancing the compatibility of power supply between electronic devices, and turning off the first switch 232 can reduce energy loss, which is more intelligent.

[0138] In some embodiments, the battery circuit 23 further includes:

[0139] A first detection module 236 is connected to the second interface circuit 21 and the battery management module 233, and is used to detect the charging parameters of the second interface circuit 21 and send them to the battery management module 233;

[0140] The battery management module 233 is further configured to turn on the first switch 232 when the charging parameters of the second interface circuit 21 meet a preset first electrical parameter condition, so as to receive the electrical energy provided by the first electronic device 1 with the charging parameters through the second interface circuit 21.

[0141] In the disclosed embodiment, the battery circuit 23 further includes a first detection module 236 for detecting the charging parameters of the second interface circuit 21 and sending the detected parameters to the battery management module 233. As mentioned above, the charging parameters may be charging voltage, charging current, charging power, etc.

[0142] In some embodiments, the charging parameter is the charging voltage, and the first detection module 236 is a voltage detection module, which can specifically be a voltage sensor, a microcontroller, a digital signal processor, etc., for detecting the charging voltage and sending the charging voltage to the battery management module 233.

[0143] In other embodiments, the charging parameter is the charging current, and the first detection module 236 is a current detection module, which can be a current sensor, a current transformer, a shunt resistor, etc., for detecting the charging current and sending the charging current to the battery management module 233.

[0144] In the embodiment of the present disclosure, the battery management module 233 is further configured to, when the charging parameters of the second interface circuit 21 meet a preset first electrical parameter condition, turn on the first switch 232 to receive electrical energy provided by the first electronic device 1 according to the charging parameter through the second interface circuit 21. The preset first electrical parameter condition may be an electrical parameter that satisfies normal charging conditions for the battery 231, such as a charging voltage between 5V and 10V. The preset first electrical parameter condition may also be a set value, which is not limited in the embodiment of the present disclosure.

[0145] In the embodiment of the present disclosure, when the charging parameters meet the preset first electrical parameter conditions, the first switch 232 is turned on by the battery management module 233 to receive the electrical energy provided by the first electronic device 1 according to the charging parameters through the second interface circuit 21, which can improve the charging safety of the second electronic device 2 and improve the electrical energy efficiency.

[0146] In some embodiments, the battery circuit 21 further includes:

[0147] A second detection module 237, connected to the second power interface 234 and the battery management module 233, for detecting electrical parameters of the second power interface 234 and sending the electrical parameters to the battery management module 233;

[0148] The battery management module 233 is also used to turn on the second switch 235 and turn off the first switch 232 when the electrical parameters of the second power supply interface 234 meet the preset second electrical parameter conditions; or, when the charging parameters of the second interface circuit 21 meet the preset first electrical parameter conditions, turn on the first switch 232 and turn off the second switch 235.

[0149] In the embodiment of the present disclosure, the battery circuit 23 further includes a second detection module 237 for detecting electrical parameters of the second power interface 234 and sending the detected electrical parameters to the battery management module 233. The electrical parameters of the second power interface 234 may include the voltage of the second power interface 234, the current of the second power interface 234, the electrical power of the second power interface 234, etc.

[0150] In some embodiments, the electrical parameter of the second power interface 234 is the voltage of the second power interface 234, and the second detection module 237 is a voltage detection module, which can specifically be a voltage sensor, a microcontroller, a digital signal processor, etc., for detecting the voltage of the second power interface 234 and sending the voltage of the second power interface 234 to the battery management module 233.

[0151] In other embodiments, the electrical parameter of the second power interface 234 is the current of the second power interface 234, and the second detection module 237 is a current detection module, which can specifically be a current sensor, a current transformer, a shunt resistor, etc., for detecting the voltage of the second power interface 234 and sending the current of the second power interface 234 to the battery management module 233.

[0152] In the embodiment of the present disclosure, the battery management module 233 is further configured to turn on the second switch 235 and turn off the first switch 232 when the electrical parameters of the second power interface 234 meet a preset second electrical parameter condition; or to turn on the first switch 232 and turn off the second switch 235 when the charging parameters of the second interface circuit 21 meet a preset first electrical parameter condition. The preset second electrical parameter condition may be an electrical parameter that satisfies normal charging conditions for the battery 231, such as a charging voltage between 5V and 10V. The preset first electrical parameter condition may also be a set value, which is not limited in the embodiment of the present disclosure.

[0153] It should be noted that when the electrical parameters of the second power interface 234 meet the preset second electrical parameter conditions, it indicates that the second electronic device 2 is connected to the second power supply device 4. At this time, turning on the second switch 235 can activate the battery 231 through the second power supply device 235 and supply power to the battery 231. There is no need to activate the battery 231 and supply power to the second electronic device 2 through the first electronic device 1, so the first switch 232 is turned off.

[0154] In the embodiment of the present disclosure, when the charging parameters of the second interface circuit 21 meet the preset first electrical parameter conditions, the first switch 232 needs to be turned on to form a power supply circuit for the first electronic device 1 to power the second electronic device 2 to activate the battery 231 and power the battery 231. At this time, there is no need to activate the battery 231 and power the second electronic device 2 through the second power supply device 4, so the second switch 235 is turned off.

[0155] In the embodiment of the present disclosure, the battery management module 233 obtains the charging parameters detected by the first detection module 236 and the electrical parameters of the second power interface 234 detected by the second detection module 237, and controls the first switch 232 and the second switch 235 based on the charging parameters and the electrical parameters of the second power interface 234, so that the second electronic device 2 can only accept the power provided by one device, which can reduce energy loss and be more intelligent.

[0156] In some embodiments, the battery management module 233 is also used to turn off the first switch 232 and control the battery 231 to power the first electronic device 1 based on the second interface circuit 21 when the charging parameters in the second interface circuit 21 do not meet the preset first electrical parameter conditions.

[0157] In the embodiment of the present disclosure, the charging parameters of the second interface circuit 21 do not meet the preset first electrical parameter conditions, indicating that the charging parameters that the first electronic device 1 can provide do not meet the charging requirements of the battery 231 of the second electronic device 2 and are insufficient to charge the battery 231, or the charging parameters provided by the first electronic device 1 exceed the carrying parameters of the battery 231 of the second electronic device 2, which may damage the battery 231 and make it impossible to charge the battery 231. Therefore, the battery management module 233 needs to turn off the first switch 232 to prevent the first electronic device 1 from charging the second electronic device 2.

[0158] In the embodiment of the present disclosure, the battery management module 233 turns off the first switch 232 and controls the battery 231 to supply power to the first electronic device 1 based on the second interface circuit 21 when the charging parameters of the second interface circuit 21 do not meet the preset first electrical parameter conditions. The battery management module 233 can control the first switch 232 by detecting the charging parameters so that the second electronic device 2 supplies power to the first electronic device 1, thereby enhancing the compatibility of power supply between electronic devices. Turning off the first switch 232 can reduce energy loss, and is more intelligent.

[0159] In some embodiments, the second power interface 234 is also used to connect to the power device 5;

[0160] The battery management module 233 is further configured to turn off the second switch 235 when the second power interface 234 is connected to the power-consuming device, so as to control the battery 231 to supply power to the power-consuming device 5 .

[0161] In the disclosed embodiment, it should be noted that the second power interface 234 can only be connected to either the second power supply device 4 or the powered device 5. When the second power interface 234 is connected to the powered device 5, the battery management module 233 must turn off the second switch 235 to reduce the possibility that the powered device 5 will supply power to the second electronic device.

[0162] In the embodiment of the present disclosure, the battery management module 233 is used to turn off the second switch 235 when the second power interface 234 is connected to the power-consuming device 5, so as to control the battery 231 to supply power to the power-consuming device 5, thereby maintaining the normal operation of the power-consuming device 5 and enabling the second electronic device 2 to still supply power to the power-consuming device 5, which is more intelligent.

[0163] In some embodiments, the battery circuit 23 further includes:

[0164] The second conversion module 238 is connected to the battery management module 233 and the second control circuit 22 , and is used to convert the electrical parameters provided by the battery 231 into electrical parameters required for the operation of the second control circuit 22 .

[0165] In the disclosed embodiment, the second conversion module 238 can obtain electrical parameters from the battery 231 and convert the electrical parameters into electrical parameters required for the operation of the second control circuit 22. In some embodiments, the electrical parameter is voltage, and the second conversion module 238 may include a charge pump, a DC-DC converter, an LDO, a boost circuit, a buck circuit, or other voltage-adjustable device or circuit to convert the voltage output by the battery 231 into the voltage required for the operation of the second control circuit 22.

[0166] In some embodiments, the electrical parameter is current, and the second conversion module 238 may include current-adjustable devices or circuits such as resistors, capacitors, and transistors to convert the current output by the battery 231 into the current required for the second control circuit 22 to operate.

[0167] In the embodiment of the present disclosure, the battery circuit 23 converts the electrical parameters output by the battery 231 into the electrical parameters required for the operation of the second control circuit 22 through the second conversion module 238, which can improve the safety of the operation of the second control circuit 22 and make it more intelligent.

[0168] In the related art, there is a solution for a tablet to detect the keyboard. A Hall sensor is set inside the tablet, and a magnet is placed at the corresponding position of the keyboard. When the keyboard approaches the tablet, the magnetic field sensed by the Hall sensor inside the tablet will change. At this time, the tablet will open the power supply path for the keyboard and try to communicate and authenticate the identity with the keyboard. If the authentication is successful, the tablet will power the keyboard. If the authentication fails, the tablet will stop powering the keyboard.

[0169] The above solution, on the one hand, requires adding a Hall sensor inside the tablet, which will reduce the internal space of the tablet and increase the cost. On the other hand, when the Hall sensor is in a strong magnetic field environment or close to other ordinary magnets, the magnetic field will also change, which may easily trigger the sensor incorrectly, reducing the tablet's working efficiency.

[0170] Figure 5 This is a diagram showing an example of a detection structure according to an exemplary embodiment. For the convenience of subsequent description, the following is based on Figure 5 Related description is given below, where Vdd is the power input terminal.

[0171] In some embodiments, the second control circuit 22 includes:

[0172] a signal detection module 51 connected to the second interface circuit 21 and configured to detect a signal from the second data transmission interface 211;

[0173] The control module is configured to determine that the first electronic device 1 is detected when the signal detected by the signal detection module 51 meets a preset signal change condition.

[0174] In the embodiment of the present disclosure, the signal detection module 51 includes an analog-to-digital converter (ADC), a signal demodulator, a spectrum analyzer, a power meter, a signal processor, a sensor and other devices that can detect signals. The second control circuit 22 detects the signal of the second data transmission interface 211 through the signal detection module 51.

[0175] In the embodiment of the present disclosure, the signal detection module 51 detects the signal of the second data transmission interface 211 by detecting the amplitude of the signal of the second data transmission interface 211, the frequency of the signal of the second data transmission interface 211, the phase of the signal of the second data transmission interface 211, etc.

[0176] In the embodiment of the present disclosure, the signal detection module 51 can detect the signal of the second data transmission interface 211 at a preset time interval, wherein the preset time interval is a set value and can be changed according to specific circumstances.

[0177] In the embodiment of the present disclosure, the second control circuit 22 further includes a control module for determining that the first electronic device 1 is detected when the signal detected by the signal detection module 51 satisfies a preset signal change condition, wherein the signal detected by the signal detection module 51 satisfies the preset signal change condition by regularly changing the signal with a specific signal strength, frequency, pattern, or other parameters. For example, the signal detected by the signal detection module 51 may transition between a voltage lower than the power supply voltage and a ground voltage with a duty cycle of 50%, or the signal detected by the signal detection module 51 may transition between a voltage at the power supply voltage and a voltage lower than the power supply voltage with a duty cycle of 50%.

[0178] In the embodiment of the present disclosure, a signal detection module 51 is connected to the second interface circuit 21 to detect the signal of the second data transmission interface 211, and a control module is used to determine that the first electronic device 1 is detected when the signal detected by the signal detection module 51 meets the preset signal change condition. On the one hand, since electronic devices usually have a signal detection module 51 and a data transmission interface, detecting the second data transmission interface 211 through the signal detection module 51 to determine whether the first electronic device 1 is connected is a multiplexing of the signal detection module 51 and the second data transmission interface 211, which does not require the installation of other detection equipment, can save costs, and is easier to implement; on the other hand, by using the control module to determine whether the first electronic device 1 is connected based on the preset signal change condition, the possibility of false triggering can be reduced, thereby improving the working efficiency of the second electronic device 2 and having higher intelligence.

[0179] In some embodiments, the second interface circuit 21 includes:

[0180] A first pull-up resistor 52 , one end of which is connected to a power input terminal of the second electronic device 2 ;

[0181] A first pull-down resistor 53, one end of which is grounded;

[0182] The third switch 54 has one end connected to the other end of the first pull-up resistor 52 or the first pull-down resistor 53 , and the other end connected to the data signal line of the second data transmission interface 211 .

[0183] In the embodiment of the present disclosure, the second interface circuit 21 includes a first pull-up resistor 52 connected to the power input terminal of the second electronic device 2. By connecting the first pull-up resistor 52 to the power input terminal of the second electronic device 2, the electrical signal of the first pull-up resistor 52 can be pulled up to the power electrical signal, such as the voltage of the first pull-up resistor 52 can be pulled up to the power voltage. The first pull-up resistor 52 can enable the electrical signal of the second interface circuit 21 to be a power electrical signal when the second interface circuit 21 is not driven by other circuits.

[0184] In the embodiment of the present disclosure, the second interface circuit 21 also includes a first pull-down resistor 53 connected to ground. By grounding the first pull-down resistor 53, the electrical signal of the first pull-down resistor 53 can be pulled down to the ground electrical signal, such as the voltage of the first pull-down resistor 53 can be pulled down to the ground voltage. The first pull-down resistor 53 can ensure that when the second interface circuit 21 is not driven by other circuits, the electrical signal of the second interface circuit 21 is a power supply electrical signal.

[0185] In the disclosed embodiment, the second interface circuit 21 further includes a third switch 54, one end of which is connected to the other end of the first pull-up resistor 52 or the first pull-down resistor 53, and the other end of which is connected to the data signal line of the second data transmission interface 211. The second interface circuit 21 can control the connection between the second data transmission interface 211 and the first pull-up resistor 52 or the first pull-down resistor 53 through the third switch 54, thereby controlling the signal of the second data transmission interface 211. In some embodiments, the switch can be controlled to switch between the first pull-up resistor 52 and the first pull-down resistor 53 with a 50% duty cycle, so that the signal detected by the signal detection module 51 detecting the signal of the second data transmission interface 211 jumps between the power supply voltage and the ground voltage with a 50% duty cycle. For example, when the voltage of the second data transmission interface 211 is detected by the signal detection module 51, the voltage of the second data transmission interface 211 jumps between the power supply voltage and the ground voltage with a 50% duty cycle. This indicates that the second electronic device 2 is not connected to the first electronic device 1. When the signal detected by the signal detection module 51 does not jump at a 50% duty cycle, or does not jump between the power supply electrical signal and the ground electrical signal, it can indicate that the second electronic device 2 is connected to the first electronic device 1; it should be noted that the third switch 54 can also be controlled to switch the connection to the first pull-up resistor 52 or the first pull-down resistor 53 at a 30% duty cycle, and this is not limited in this embodiment of the present disclosure.

[0186] In the embodiment of the present disclosure, by setting the first pull-up resistor 52, the first pull-down resistor 53, and the third switch 54, it is possible to detect the signal of the second data transmission interface 211 to determine whether the second electronic device 2 is connected to the first electronic device 1. The solution is simple and effective and can improve the accuracy of detecting the connection of electronic devices.

[0187] In some embodiments, the control module is used to determine that the first electronic device 1 is detected when the signal detected by the signal detection module 51 is a first waveform signal of a signal with a first preset amplitude and a ground signal jump; wherein, the first electronic device 1 is an electrical device.

[0188] In the embodiments of the present disclosure, as previously described, the electrical signal at the second data transmission interface 211 that the signal detection module 51 can detect when the second electronic device 2 is not connected to any other device is a power signal or a ground signal. However, the electrical device is connected to the second electronic device 2 via the second interface circuit 21, and the electrical signal at the second data transmission interface 211 is changed after the electrical device is connected to the second electronic device 2. In some embodiments, the electrical device may include a grounded second pull-down resistor, so that after the second electronic device 2 is connected to the electrical device, the electrical signal at the second data transmission interface 211 that the signal detection module 51 can detect is a ground signal or a signal lower than the power signal.

[0189] Figure 6 is a diagram showing an example structure of an electrical device according to an exemplary embodiment. Figure 6 As shown, the electrical device includes a grounded second pull-down resistor 61, the other end of which is connected to the first data transmission interface 111. As previously described, the first data transmission interface 111 is connected to the second data transmission interface 211, so that after the second electronic device 2 is connected to the electrical device, the electrical signal detected by the signal detection module 51 at the second data transmission interface 211 is a ground signal or a signal lower than the power supply signal. In the disclosed embodiment, the signal of the first preset amplitude is a preset value and can be lower than the power supply signal. For example, when the power supply voltage is 10V, the voltage of the first preset amplitude is 8V or 5V.

[0190] In the embodiment of the present disclosure, after the control module determines that the second electronic device 2 is connected to the power-consuming device, it can supply power to the power-consuming device according to the aforementioned architecture.

[0191] In some embodiments, the control module is further used to determine that the first electronic device is detected when the signal detected by the signal detection module 51 is a signal of a second preset amplitude and a second waveform signal of a power signal jump; wherein the first electronic device is a power supply device.

[0192] In the embodiment of the present disclosure, as previously described, the electrical signal of the second data transmission interface 211 that the signal detection module 51 can detect when the second electronic device 2 is not connected to other devices is a power supply electrical signal or a ground electrical signal, and the power supply device is connected to the second electronic device 2 via the second interface circuit 21, and the electrical signal of the second data transmission interface 211 will be changed after the power supply device is connected to the second electronic device 2. In some embodiments, the power supply device may include a second pull-up resistor connected to the power input terminal of the power supply device, so that after the second electronic device 2 is connected to the power-consuming device, the electrical signal of the second data transmission interface 211 that the signal detection module 51 can detect is a power supply electrical signal or a signal lower than the power supply electrical signal.

[0193] Figure 7 FIG. 1 is a diagram showing an exemplary structure of a power supply device according to an exemplary embodiment. Figure 7 As shown, Vdd is the power input terminal of the power supply device. The power supply device may include a second pull-up resistor 71 connected to the power input terminal of the power supply device. The other end of the second pull-up resistor 71 is connected to the first data transmission interface 111. As mentioned above, the first data transmission interface 111 is connected to the second data transmission interface 211, so that after the second electronic device 2 is connected to the power-consuming device, the electrical signal of the second data transmission interface 211 that can be detected by the signal detection module 51 is a power signal or an electrical signal lower than the power signal.

[0194] In the embodiment of the present disclosure, the signal of the second preset amplitude is a preset value and may be lower than the power supply electrical signal. For example, when the power supply voltage is 10V, the voltage of the second preset amplitude is 8V or 5V, wherein the signal of the first preset amplitude may be equal to the signal of the second preset amplitude. The embodiment of the present disclosure does not impose any restrictions on this.

[0195] In the embodiment of the present disclosure, after the control module determines that the second electronic device 2 is connected to the power supply device, it can obtain the electrical energy provided by the power supply device according to the aforementioned architecture.

[0196] In the embodiment of the present disclosure, the signal detection module 51 detects the signal of the second data transmission interface 211, which can not only determine whether the first electronic device 1 is connected, but also determine whether the first electronic device 1 is an electric device or a power supply device based on the waveform signal, which is more intelligent.

[0197] Figure 8 is a diagram showing an application scenario of a first electronic device and a second electronic device according to an exemplary embodiment. Figure 8As shown, the tablet is the second electronic device, and the peripheral device such as the keyboard or charging stand belongs to the first electronic device. The first power pin, the first data transmission pin, and the first ground pin together constitute a first interface circuit, and the first data transmission pin is the first data transmission interface; the second power pin, the second data transmission pin, and the second ground pin together constitute a second borrowing circuit, and the second data transmission pin is the second data transmission interface. The disclosed embodiment can be applied to a scenario where a peripheral device such as a keyboard or charging stand charges the tablet via a pin connector. In the disclosed embodiment, the tablet and the peripheral device such as the keyboard or charging stand can communicate based on the data transmission pins, thereby sending or receiving charging requests carrying charging parameters. The charging parameters can be transmitted via the power pin and the ground pin to complete the charging of the tablet by the peripheral device such as the keyboard or charging stand, thereby freeing up the tablet's wired Type-C port while charging, allowing the tablet to use headphones, OTG (On-The-Go) devices, etc. while charging.

[0198] Figure 9 is a structural block diagram of a first electronic device and a second electronic device according to an exemplary embodiment. Figure 9As shown, the keyboard is the first electronic device, the tablet is the second electronic device, Vbat is the battery voltage, VPH is the input voltage, the second voltage interface L99, the second transmission interface L100, and the second ground interface L101 together constitute the second interface circuit, and the second transmission interface L100 is the second data transmission interface; the first voltage interface L108, the first transmission interface L109, and the first ground interface L110 together constitute the first interface circuit, and the first transmission interface L109 is the first data transmission interface. The first data transmission interface is connected to the second data transmission interface, and is used to send or receive a charging request carrying charging parameters. The microcontroller unit 1L94 is a second control circuit, which is used to detect the keyboard, determine the charging parameters, and send a charging request carrying the charging parameters to the keyboard based on the second transmission interface L100. The power management chip 1L93 is a second conversion module, which is used to convert the input voltage VPH into the operating voltage of the microcontroller unit 1L94; the MOS pair tube 1L95 is a second switch, the MOS pair tube 2L96 is a first switch, the detection circuit 1 is the second detection module, the detection circuit 2 is the first detection module, the 4:1 charge pump L97 and the step-down charger L98 belong to the battery management module, which obtains the electrical parameters detected by the detection circuit 1 and the detection circuit 2, and controls the control M according to the electrical parameters. The OS pair transistors 1L95 and / or the MOS pair transistors 2L96 are turned on and off. The Type-CL91 on the tablet side is the second power interface, used to connect to a second power supply device or a power-consuming device. The Type-CL105 on the tablet side is the first power interface, the charging protocol handshake module L112 is the first charging management module, the microcontroller unit 2L91 is the first control circuit, and the microcontroller unit 2L111 receives the charging parameters sent by the second transmission interface L109. Based on the charging protocol handshake module L112, it negotiates the charging parameters with the first power supply device connected to the Type-CL105, so that the first power supply device can power the tablet based on the charging parameters. The power management chip 2L107 is the first conversion module, used to convert the charging parameters into the operating voltage of the microcontroller unit 2L111. It should be noted that the microcontroller unit 1L94 and the second transmission interface L100, and the microcontroller unit 2L111 and the first transmission interface L109, all communicate via a single-wire protocol; the microcontroller unit 2L111 and the charging protocol handshake module L112 communicate via a two-wire bidirectional serial bus.

[0199] In some embodiments, when the tablet is connected to a second power supply device, the 4:1 charge pump L97 turns on the MOS pair tube 1L95 and turns off the MOS pair tube 2L96. The second power supply device transmits the voltage through the MOS pair tube 1L95 to the 4:1 charge pump L97 and the buck charger L98. The 4:1 charge pump L97 and the buck charger L98 then transmit the voltage to the battery, thereby charging the tablet battery. The buck charger L98 also transmits the voltage to the power management chip 1L93, which converts the charging voltage into The operating voltage of the microcontroller unit 1L94 is converted to the operating voltage of the microcontroller unit 1L94; the battery in the tablet transmits the battery voltage to the second voltage interface L99 through the boost circuit 2L103 and the unidirectional voltage protection 2L102, and then the second voltage interface L99 transmits the battery voltage to the first voltage interface L108, thereby powering the keyboard. After the keyboard receives the power provided by the tablet from the first voltage interface L108, it transmits the power to the power management chip 2L107, and the power management chip 2L107 converts the charging voltage into the operating voltage of the microcontroller unit 2L111.

[0200] In other embodiments, when the keyboard is connected to the first power supply device, the 4:1 charge pump L97 turns on the MOS pair tube 2L96, and the first power supply device transmits the charging voltage to the power management chip 2L107 through the unidirectional voltage protection 3L106. While the power management chip 2L107 converts the charging voltage into the operating voltage of the micro control unit 2L111, the first power supply device transmits the charging voltage to the first voltage interface L108 through the unidirectional voltage protection 3L106, and then the first voltage interface L108 transmits the charging voltage to the second voltage interface L99. The second voltage interface L99 transmits the charging voltage through the MOS pair tube 2L96 to the 4:1 charge pump L97 and the buck charger L98, and then the 4:1 charge pump L97 and the buck charger L98 transmit the voltage to the battery, thereby charging the battery of the tablet.

[0201] In other embodiments, when the tablet is connected to an electrical device, the step-down charger L98 boosts the voltage to the voltage VB required by the electrical device based on the boost circuit, and then transmits the voltage VB required by the electrical device to the electrical device based on the Type-C on the tablet side through the unidirectional voltage protection 1L992, thereby powering the electrical device.

[0202] In other embodiments, when the tablet is not connected to the second power supply device and the keyboard is not connected to the first power supply device, the battery in the tablet transmits the battery voltage to the second voltage interface L99 through the boost circuit 2L103 and the unidirectional voltage protection 2L102, and the second voltage interface L99 then transmits the battery voltage to the first voltage interface L108, thereby powering the keyboard. After the keyboard receives the power provided by the tablet from the first voltage interface L108, the keyboard transmits the power to the power management chip 2L107, and the power management chip 2L107 converts the charging voltage into the operating voltage of the micro control unit 2L111.

[0203] Other embodiments of the present disclosure will readily occur to those skilled in the art after considering the specification and practicing the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the present disclosure being indicated by the following claims.

[0204] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes can be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A first electronic device, characterized in that: include: The first interface circuit includes a first data transmission interface, the first data transmission interface being configured to connect to a second data transmission interface of a second electronic device to receive a charging request sent by the second electronic device when the power level does not meet a preset power condition; wherein the charging request carries charging parameters; a first power supply circuit; The first control circuit is connected to the first interface circuit and the first power supply circuit to control the first power supply circuit to supply power to the second electronic device connected to the first interface circuit according to the charging parameters.

2. The first electronic device according to claim 1, wherein: The first power supply circuit includes: A first power interface, used for connecting to a first external power supply device; A first charging management module is connected to the first power interface and the first control circuit, and is used to obtain the charging parameters from the first control circuit and perform a charging handshake with the first power supply device based on the charging parameters, so that the first power supply device powers the second electronic device with the charging parameters.

3. The first electronic device according to claim 2, wherein: The first power supply circuit further includes: The first conversion module is connected to the first power interface and the first control circuit, and is used to convert the charging parameters output by the first power supply device into electrical parameters required for the operation of the first control circuit.

4. The first electronic device according to claim 1, wherein: The first interface circuit includes a pogo pin.

5. A second electronic device, characterized in that: include: The second interface circuit includes a second data transmission interface, wherein the second data transmission interface is used to connect to the first data transmission interface of the first electronic device; a second control circuit, connected to the second data transmission interface, configured to send a charging request to the first electronic device via the second data transmission interface when the power level of the second electronic device does not meet a preset power level condition; wherein the charging request carries charging parameters; The battery circuit is connected to the second interface circuit and is used to receive the electric energy provided by the first electronic device according to the charging parameters through the second interface circuit.

6. The second electronic device according to claim 5, characterized in that The battery circuit comprises: Battery; a first switch connected to the second interface circuit; A battery management module is connected to the battery and the first switch respectively, and is used to turn on the first switch to receive electric energy provided by the first electronic device based on the charging parameters through the second interface circuit to charge the battery.

7. The second electronic device according to claim 6, characterized in that: The battery circuit further comprises: The second power interface is used to connect to a second external power supply device; a second switch connected to the second power interface and the battery management module; The battery management module is further configured to turn on the second switch when the first switch is turned off and the second power interface is connected to the second power supply device, so as to control the second power supply device to supply power to the battery.

8. The second electronic device according to claim 7, characterized in that: The second control circuit is further configured to control the first switch of the battery circuit to be turned off when the power level of the second electronic device meets the preset power level condition, so as to supply power to the first electronic device through the battery.

9. The second electronic device according to claim 7, characterized in that: The battery circuit further comprises: a first detection module, connected to the second interface circuit and the battery management module, configured to detect the charging parameter of the second interface circuit and send the detected charging parameter to the battery management module; The battery management module is further configured to turn on the first switch when the charging parameters of the second interface circuit meet a preset first electrical parameter condition, so as to receive electrical energy provided by the first electronic device with the charging parameters through the second interface circuit.

10. The second electronic device according to claim 9, characterized in that: The battery circuit further comprises: a second detection module, connected to the second power interface and the battery management module, configured to detect electrical parameters of the second power interface and send the parameters to the battery management module; The battery management module is also used to turn on the second switch and turn off the first switch when the electrical parameters of the second power supply interface meet the preset second electrical parameter conditions; or turn on the first switch and turn off the second switch when the charging parameters of the second interface circuit meet the preset first electrical parameter conditions.

11. The second electronic device according to claim 9, characterized in that: The battery management module is further configured to turn off the first switch and control the battery to supply power to the first electronic device based on the second interface circuit when the charging parameter of the second interface circuit does not meet the preset first electrical parameter condition.

12. The second electronic device according to any one of claims 7 to 9, characterized in that: The second power interface is also used to connect to an electrical device; The battery management module is further configured to turn off the second switch when the second power interface is connected to the power-consuming device, so as to control the battery to supply power to the power-consuming device.

13. The second electronic device according to claim 6, characterized in that The battery circuit further comprises: The second conversion module is connected to the battery management module and the second control circuit, and is used to convert the electrical parameters provided by the battery into electrical parameters required for the operation of the second control circuit.

14. The second electronic device according to claim 5, characterized in that: The second control circuit includes: a signal detection module, connected to the second interface circuit, and configured to detect a signal from the second data transmission interface; The control module is configured to determine that the first electronic device is detected when the signal detected by the signal detection module satisfies a preset signal change condition.

15. The second electronic device according to claim 14, characterized in that: The second interface circuit includes: a first pull-up resistor, one end of which is connected to a power input terminal of the second electronic device; A first pull-down resistor, one end of which is grounded; A third switch has one end connected to the other end of the first pull-up resistor or the first pull-down resistor, and the other end connected to the data signal line of the second data transmission interface.

16. The second electronic device according to claim 14 or 15, characterized in that: The control module is configured to determine that the first electronic device is detected when the signal detected by the signal detection module is a first waveform signal of a transition between a signal of a first preset amplitude and a ground signal; wherein the first electronic device is an electric device.

17. The second electronic device according to claim 14 or 15, characterized in that: The control module is further configured to determine that the first electronic device is detected when the signal detected by the signal detection module is a signal of a second preset amplitude and a second waveform signal of a power signal jump; wherein the first electronic device is a power supply device.