Charging and discharging system, electronic device and charging and discharging circuit thereof
By designing load switches and control circuits, combined with comparators and power supply circuits, the system enables access detection and identification of different external ports. This solves the problem of the single structure of conventional charging and discharging circuits, expands the applicable scenarios of electronic devices, and supports the thinner and lighter design of power-consuming and charging devices.
Patent Information
- Application Number
- CN202522781792.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-28
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2035-12-28
AI Technical Summary
Conventional magnetic accessories have a simple charging and discharging circuit structure, which cannot meet the requirements of diverse application scenarios.
The design incorporates a first load switch and a second load switch, which, in conjunction with a control circuit, switch according to the external port voltage signal to achieve access detection and identification of different external ports, including powering peripheral devices through a comparator and power supply circuit.
It expands the applicable scenarios of electronic devices, supports access detection and identification of multiple external ports, and achieves a thin and light design, making it suitable for power-requiring devices and charging devices.
Smart Images

Figure CN225033678U_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of charging and discharging electronic devices, specifically to a charging and discharging system, an electronic device, and its charging and discharging circuit. Background Technology
[0002] In conventional technical solutions, magnetic accessories (such as magnetic external keyboards) are typically magnetically coupled to the host of the electronic device and electrically connected via contacts. The host of the electronic device supplies power to the accessory. The charging and discharging circuit structure of this type of electronic device is simple and cannot meet the requirements of more usage scenarios. Utility Model Content
[0003] The first aspect of this application provides a charging and discharging circuit for an electronic device, the charging and discharging circuit comprising: A first load switch is used to connect to a first voltage pin of a first external port and to detect the voltage signal of the first voltage pin. A second load switch is used to connect to the second voltage pin of the second external port and to detect the voltage signal of the second voltage pin. A switch is connected to the charging pins of the first external port and the second external port, respectively; The control circuit is connected to the first load switch, the second load switch and the switching switch respectively. The control circuit is used to control the switching switch to connect to the charging pin of the first external port or the second external port according to the voltage signal of the first voltage pin detected by the first load switch and the voltage signal of the second voltage pin detected by the second load switch.
[0004] Secondly, embodiments of this application provide an electronic device, the electronic device including a battery and the charging and discharging circuit described in the above embodiments connected to the battery.
[0005] Thirdly, embodiments of this application provide a charging and discharging system, which includes a first external port, a second external port, and the electronic device described in the above embodiments.
[0006] The charging and discharging circuit of the electronic device provided in this application embodiment, by designing the structure of the first load switch and the second load switch, allows the control circuit to select different external ports for charging based on the external port voltage signal detected by the load switch. This enables the detection and identification of different external ports, greatly expanding the applicable scenarios of the electronic device. Attached Figure Description
[0007] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0008] Figure 1 This is a schematic diagram of an embodiment of the connection state between the charging and discharging circuit of an electronic device and an external port, as described in this application. Figure 2 This is a schematic diagram of another embodiment of the connection state between the charging and discharging circuit of the electronic device and the external port in this application; Figure 3 This is a schematic diagram of another embodiment of the connection state between the charging and discharging circuit of the electronic device and the external port in this application; Figure 4 This is a flowchart illustrating the working state of the charging and discharging circuit of this application in conjunction with the external port; Figure 5 This is a schematic diagram of the structure of an embodiment of the charging and discharging system of this application; Figure 6 This is a schematic diagram of the structure of an embodiment of the electronic device of this application; Figure 7 yes Figure 6 A cross-sectional view of the electronic device along line AA in the embodiment; Figure 8 This is a schematic block diagram of the structural composition of an embodiment of the electronic device of this application. Detailed Implementation
[0009] The present application will now be described in further detail with reference to the accompanying drawings and embodiments. It should be particularly noted that the following embodiments are for illustrative purposes only and do not limit the scope of the application. Similarly, the following embodiments are only some, not all, embodiments of the present application, and all other embodiments obtained by those skilled in the art without inventive effort are within the scope of protection of the present application.
[0010] The terms "first," "second," and "third" used in the embodiments of this application are for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Therefore, a feature defined as "first," "second," or "third" may explicitly or implicitly include at least one of that feature. In the description of this application, "multiple" means at least two, such as two, three, etc., unless otherwise explicitly specified. All directional indications (such as up, down, left, right, front, back, etc.) in the embodiments of this application are only used to explain the relative positional relationships and movement of components in a specific posture (as shown in the figures). If the specific posture changes, the directional indication will also change accordingly. The terms "comprising" and "having," and any variations thereof, in the embodiments of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or components inherent to these processes, methods, products, or devices.
[0011] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0012] As used herein, “electronic device” (or simply “terminal”) includes, but is not limited to, means configured to receive / transmit communication signals via a wired connection (such as via a Public Switched Telephone Network (PSTN), Digital Subscriber Line (DSL), Digital Cable, Direct Cable Connection, and / or another data connection / network) and / or via a wireless interface (e.g., for a cellular network, Wireless Local Area Network (WLAN), Digital Television Network such as DVB-H, Satellite Network, AM-FM Broadcast Transmitter, and / or another communication terminal). A communication terminal configured to communicate via a wireless interface may be referred to as a “wireless communication terminal,” a “wireless terminal,” or a “mobile terminal.” Examples of mobile terminals include, but are not limited to, satellite or cellular phones; personal communication system (PCS) terminals that may combine cellular radiotelephone with data processing, fax, and data communication capabilities; PDAs that may include radiotelephones, pagers, Internet / intranet access, web browsers, notepads, calendars, and / or Global Positioning System (GPS) receivers; and conventional laptop and / or handheld receivers or other electronic devices that include radiotelephone transceivers. A mobile phone is an electronic device equipped with a cellular communication module.
[0013] First, this application provides a charging and discharging circuit for an electronic device. Please refer to [link to relevant documentation]. Figure 1 , Figure 1 This is a schematic diagram of an embodiment of the charging and discharging circuit for an electronic device connected to an external port, as described in this application. It should be noted that the electronic device in this application may include mobile phones, tablets, laptops, wearable devices, and other electronic devices with charging and discharging functions. The charging and discharging circuit for the electronic device includes, but is not limited to, the following circuit structure: a first load switch 110, a second load switch 120, a switching switch 130, and a control circuit 140.
[0014] Specifically, the first load switch 110 is used to connect to the first voltage pin (p1) 21 of the first external port 20 and to detect the voltage signal of the first voltage pin 21. The first voltage pin 21 can be a VBUS pin, which represents a power line and typically transmits DC voltage (e.g., 5V) to provide power to the connected device.
[0015] The second load switch 120 is used to connect to the second voltage pin (u1) 31 of the second external port 30 and to detect the voltage signal of the second voltage pin 31. Similarly, the second voltage pin 31 can be a VBUS pin.
[0016] Optionally, the switch 130 is connected to the charging pins of the first external port 20 and the second external port 30, respectively. The charging pins (p2, p3, p4 and u2, u3, u4) of the first external port 20 and the second external port 30 may include a CC pin, a D+ pin, and a D- pin, respectively. The CC pin represents the Configuration Channel, used to detect the type, orientation, and role of the connected device (such as host or peripheral), and to negotiate power and data parameters. In the Type-C interface, the CC pin uses BMC encoding for intelligent communication, supporting charging protocols (such as USB Power Delivery). D+ and D- are a pair of data lines that use differential signal transmission for high-speed data exchange (such as USB 2.0). They encode data through voltage differences, providing strong anti-interference capabilities. In the traditional USB-A interface, D+ and D- are also used for device enumeration and rate detection.
[0017] The control circuit 140 is connected to the first load switch 110, the second load switch 120 and the switching switch 130 respectively. The control circuit 140 is used to control the switching switch 130 to connect to the charging pin of the first external port 20 or the second external port 30 according to the voltage signal of the first voltage pin 21 detected by the first load switch 110 and the voltage signal of the second voltage pin 31 detected by the second load switch 120.
[0018] Generally, the first external port 20 or the second external port 30 can be switched for charging based on the voltage value and the communication protocol of different types of external ports. For example, in this embodiment, the first external port 20 can be a contact port, which may include peripheral devices (generally power-requiring devices) and power banks; while the second external port 30 can be a USB type-C interface, which is generally connected to a power adapter and is a charging device by default. Therefore, when both external ports are connected to the charging circuit at the same time, the USB type-C interface (second external port 30) has a higher priority as a charging port than the first external port 20. Alternatively, in some embodiments, the priority can be distinguished by the voltage value, for example, the end with the larger voltage value detected by the voltage pin has a higher priority as the charging port.
[0019] The charging and discharging circuit of the electronic device provided in this application embodiment, by designing the structure of the first load switch and the second load switch, allows the control circuit to select different external ports for charging based on the external port voltage signal detected by the load switch. This enables the detection and identification of different external ports, greatly expanding the applicable scenarios of the electronic device.
[0020] Please see Figure 2 , Figure 2 This is a schematic diagram of another embodiment of the charging and discharging circuit of the electronic device and its connection to an external port. The charging and discharging circuit in this embodiment also includes, but is not limited to, the following circuit structures: a first load switch 110, a second load switch 120, a switching switch 130, and a control circuit 140.
[0021] The first load switch 110 is connected to the first voltage pin (p1) 21 of the first external port 20 and is used to detect the voltage signal of the first voltage pin 21. The first voltage pin 21 can be a VBUS pin, which represents a power line and typically transmits DC voltage (e.g., 5V) to provide power to the connected device. The second load switch 120 is connected to the second voltage pin (u1) 31 of the second external port 30 and is used to detect the voltage signal of the second voltage pin 31. Similarly, the second voltage pin 31 can be a VBUS pin. The switching switch 130 is connected to the charging pins of both the first external port 20 and the second external port 30. The charging pins (p2, p3, p4 and u2, u3, u4) of the first external port 20 and the second external port 30 can each include a CC pin, a D+ pin, and a D- pin. The CC pin represents a Configuration Channel, used to detect the type, orientation, and role of the connected device (e.g., host or peripheral) and to negotiate power and data parameters. In the Type-C interface, the CC pin uses BMC encoding for intelligent communication, supporting charging protocols such as USB PowerDelivery. D+ and D- are a pair of data lines that use differential signal transmission for high-speed data exchange (such as USB 2.0). They encode data through voltage differences, providing strong anti-interference capabilities. In the traditional USB-A interface, D+ and D- are also used for device enumeration and rate detection.
[0022] The control circuit 140 is connected to the first load switch 110, the second load switch 120 and the switching switch 130 respectively. The control circuit 140 is used to control the switching switch 130 to connect to the charging pin of the first external port 20 or the second external port 30 according to the voltage signal of the first voltage pin 21 detected by the first load switch 110 and the voltage signal of the second voltage pin 31 detected by the second load switch 120.
[0023] Generally, the first external port 20 or the second external port 30 can be switched for charging based on the voltage value and the communication protocol of different types of external ports. For example, in this embodiment, the first external port 20 can be a contact port, which may include peripheral devices (generally power-requiring devices) and power banks; while the second external port 30 can be a USB type-C interface, which is generally connected to a power adapter and is a charging device by default. Therefore, when both external ports are connected to the charging circuit at the same time, the USB type-C interface (second external port 30) has a higher priority as a charging port than the first external port 20. Alternatively, in some embodiments, the priority can be distinguished by the voltage value, for example, the end with the larger voltage value detected by the voltage pin has a higher priority as the charging port.
[0024] Unlike the previous embodiments, the charging and discharging circuit 100 in this embodiment further includes a first comparator 150 and a power supply circuit 160. The first comparator 150 is connected to the control circuit 140 and is used to connect to the first detection pin (p5) 22 of the first external port 20 to detect the first access type of the first external port 20. The first access type is used to determine whether the first external port 20 is a power-requiring peripheral device (such as a small fan, decorative light, etc.). The power supply circuit 160 is connected to the control circuit 140 and is used to connect to the power supply pin (p6) 23 of the first external port 20. When the first comparator 150 detects that the first external port 20 is a first access type (power-requiring device), it supplies power to the peripheral device connected to the first external port 20, thereby helping to magnetically attach peripheral devices without batteries, achieving a thinner and lighter design, and facilitating outdoor use. In addition, the first external port 20 may also have a ground pin p7.
[0025] The charging and discharging circuit of the electronic device in this embodiment, through the design of comparator and power supply circuit structure, can provide power to peripheral devices, greatly expanding the application scenarios of electronic devices.
[0026] Please see Figure 3 , Figure 3This is a schematic diagram of another embodiment of the charging and discharging circuit of an electronic device connected to an external port, as described in this application. Unlike the previous embodiment, the charging and discharging circuit in this embodiment further includes a second comparator 170. The second comparator 170 is connected to the control circuit 140 and is used to connect to the second detection pin (p8) 24 of the first external port 20, and to detect the second access type of the first external port 20. The second access type is used to determine whether the first external port 20 can charge the charging and discharging circuit 100 of the electronic device. The design of the second comparator 170 is to prevent other detection pins from being occupied or malfunctioning, thus improving the reliability of the detection.
[0027] Please see Figure 4 , Figure 4 This is a flowchart illustrating the working state of the charging and discharging circuit and the external port of this application. In this embodiment, the first external port is taken as an example as a peripheral device, including a power-requiring device (such as a fan, decorative light, etc.) and a charging device (including a power bank, etc.). When the first external port is connected (801), the connection type is detected. If it is the first connection type 802, it is determined that the first external port is connected to a power-requiring device, which needs to be discharged by the electronic device. Therefore, step 803 is entered, and the power supply circuit is used to supply power to the outside. At this time, if a second external port is connected, step 810 is entered, the first load switch is controlled to be disconnected, the second load switch is turned on, and the switch is switched to the charging pin of the second external port. In this embodiment, the second external port is taken as a USB, and its charging priority is higher than that of the first external port.
[0028] When the detected access type is the second access type 804, it is determined that a power bank is connected. At this time, proceed to step 805, control the second load switch to disconnect, the first load switch to turn on, and the switch to switch to the first external port charging pin. Then proceed to step 806 to enter the first external port charging stage until charging is complete 807. If the second external port is connected during the first external port charging stage 806, since the charging priority of the second external port is higher than that of the first external port, proceed to step 808 to remind the user whether to unplug the power bank. If not, maintain the status quo 809. If yes, proceed to step 810, control the first load switch to disconnect, the second load switch to turn on, and the switch to switch to the second external port charging pin, using the second external port as the charging port.
[0029] In another path, the second external port is connected at 811, entering the normal charging process at 812 and completing charging at 813. During the normal charging process at 812, if the first external port is connected, the connection type is determined. If it is the first connection type at 814, it is determined that the first external port is connected to a device that requires power and needs to discharge. Therefore, the process proceeds to step 815, where the power supply circuit provides external power. If the connection type is detected as the second connection type at 816, the user is prompted to unplug the adapter at 817. If so, the process proceeds to step 805, where the second load switch is disconnected, the first load switch is turned on, and the switch is switched to the charging pin of the first external port, making the first external port the charging port. Otherwise, the current state is maintained at 818.
[0030] In addition, this application also provides a charging and discharging system; please refer to [link to relevant documentation]. Figure 5 , Figure 5 This is a schematic diagram of the structure of an embodiment of the charging and discharging system of this application. The charging and discharging system in this embodiment includes an electronic device 10, a first external port 20 and a second external port 30. The electronic device 10 includes a battery 200 and a charging and discharging circuit 100 in the aforementioned embodiment. The battery 200 is electrically connected to the charging and discharging circuit 100, and the charging and discharging circuit 100 is used to control the charging and discharging of the battery 200.
[0031] Optionally, the electronic device 10 in this embodiment includes a first charging / discharging interface 300 and a second charging / discharging interface 400. The first charging / discharging interface 300 is connected to the first load switch 110 and is used to connect to the first external port 20. In this embodiment, the first external port 20 can be a contact port, such as a protruding metal pogo pin or a metal bump structure. Detailed features of this part are within the understanding of those skilled in the art and will not be elaborated here. Optionally, the first external port 20 can specifically be a magnetic contact structure; please refer to [further details omitted]. Figure 3 The first external port 20 is provided with a first magnetic element 20a, and the electronic device is provided with a second magnetic element 310 that magnetically engages with the first magnetic element 20a. The first magnetic element 20a can be magnetically engaged with the second magnetic element 310 to achieve electrical contact connection of the alignment contacts.
[0032] The second charging / discharging interface 400 is connected to the second load switch 120 and is used to connect to the second external port 30. Optionally, in this embodiment, the second external port 30 can be a USB port, specifically a USB Type-C male connector, while the second charging / discharging interface 400 can be a USB Type-C female connector.
[0033] Please refer to the following: Figure 6 and Figure 7 , Figure 6 This is a schematic diagram of the structure of an embodiment of the electronic device of this application. Figure 7 yes Figure 6 The embodiment shows a cross-sectional view of the electronic device along line AA. The electronic device in this embodiment can be a mobile phone, tablet computer, laptop computer, or wearable device, etc. This embodiment uses a mobile phone as an example. The electronic device 10 may include a display screen 10a, a housing 10b, a control circuit board 10c, a mid-frame 10d, and a camera module 10e, etc.
[0034] Optionally, in this embodiment, the display screen 10a, housing 10b (which can be a back cover), and mid-frame 10d cooperate to form a receiving space 1000. The control circuit board 10c is disposed within the receiving space 1000. The control circuit board 10c is electrically connected to the display screen 10a, camera module 10e, and other devices, and is used to control the operating state of the display screen 10a, camera module 10e, and other devices. The control circuit board 10c may include the charging and discharging circuit described in the preceding embodiments, or the charging and discharging circuit may be a separate circuit board structure. No specific limitations are made here. For details regarding the specific structure of the charging and discharging circuit, please refer to the relevant descriptions in the preceding embodiments; they will not be repeated here.
[0035] Please see Figure 8 , Figure 8 This is a schematic block diagram illustrating the structural composition of an embodiment of the electronic device of this application. This electronic device can also be a mobile phone, tablet computer, laptop computer, or wearable device, etc. This embodiment uses a mobile phone as an example. The structure of this electronic device may include an RF circuit 910, a memory 920, an input unit 930, a display unit 940 (which can be the display screen 10a in the above embodiment), a sensor 950, an audio circuit 960, a Wi-Fi module 970, a processor 980, and a power supply 990. The RF circuit 910, memory 920, input unit 930, display unit 940, sensor 950, audio circuit 960, and Wi-Fi module 970 are all connected to the processor 980; the power supply 990 provides power to the entire electronic device 10.
[0036] Specifically, the RF circuit 910 is used to receive and transmit signals; the memory 920 is used to store data instruction information; the input unit 930 is used to input information, and may specifically include a touch panel 931 and other input devices 932 such as operation buttons; the display unit 940 may include a display panel 941, etc.; the sensor 950 includes an infrared sensor, a laser sensor, etc., used to detect user proximity signals, distance signals, etc.; the speaker 961 and the microphone 962 are connected to the processor 980 through the audio circuit 960 for receiving and transmitting sound signals; the Wi-Fi module 970 is used to receive and transmit Wi-Fi signals, and the processor 980 is used to process the data information of the electronic device. For specific structural features of the electronic device, please refer to the relevant descriptions in the above embodiments; detailed descriptions will not be provided here.
[0037] In this embodiment, the charging and discharging circuit of the electronic device is designed with a first load switch and a second load switch. The control circuit can select different external ports for charging based on the external port voltage signal detected by the load switch. This enables the detection and identification of different external ports, greatly expanding the applicable scenarios of the electronic device.
[0038] The above description is only a part of the embodiments of this application and does not limit the scope of protection of this application. Any equivalent device or equivalent process transformation made based on the content of this application specification and drawings, or direct or indirect application in other related technical fields, are similarly included in the patent protection scope of this application.
Claims
1. A charging and discharging circuit for electronic devices, characterized in that, The charging and discharging circuit includes: A first load switch is used to connect to a first voltage pin of a first external port and to detect the voltage signal of the first voltage pin. A second load switch is used to connect to the second voltage pin of the second external port and to detect the voltage signal of the second voltage pin. A switch is connected to the charging pins of the first external port and the second external port, respectively; The control circuit is connected to the first load switch, the second load switch and the switching switch respectively. The control circuit is used to control the switching switch to connect to the charging pin of the first external port or the second external port according to the voltage signal of the first voltage pin detected by the first load switch and the voltage signal of the second voltage pin detected by the second load switch.
2. The charging and discharging circuit according to claim 1, characterized in that, The charging and discharging circuit further includes a first comparator, which is connected to the control circuit. The first comparator is used to connect to a first detection pin of a first external port and to detect a first access type of the first external port.
3. The charging and discharging circuit according to claim 2, characterized in that, The charging and discharging circuit also includes a power supply circuit, which is connected to the control circuit. The power supply circuit is used to connect to the power supply pin of the first external port and to supply power to the first external port when the first comparator detects that the first external port is of the first access type.
4. The charging and discharging circuit according to claim 1, characterized in that, The charging and discharging circuit further includes a second comparator, which is connected to the control circuit. The second comparator is used to connect to a second detection pin of the first external port and to detect the second access type of the first external port.
5. An electronic device, characterized in that, The electronic device includes a battery and a charging / discharging circuit according to any one of claims 1-4 connected to the battery.
6. The electronic device according to claim 5, characterized in that, The electronic device includes a first charging / discharging interface and a second charging / discharging interface. The first charging / discharging interface is connected to the first load switch and is used to adapt and connect to the first external port. The second charging / discharging interface is connected to the second load switch and is used to adapt and connect to the second external port.
7. A charging and discharging system, characterized in that, The charging and discharging system includes a first external port, a second external port, and the electronic device as described in claim 5 or 6.
8. The charging and discharging system according to claim 7, characterized in that, The first external port is a contact port.
9. The charging and discharging system according to claim 8, characterized in that, The first external port is provided with a first magnetic component, and the electronic device is provided with a second magnetic component that magnetically engages with the first magnetic component. The first magnetic component can be magnetically engaged with the second magnetic component to achieve electrical contact connection of the alignment contacts.
10. The charging and discharging system according to claim 7, characterized in that, The second external port is a USB port.
