Power supply test circuit and method, terminal management circuit and electronic equipment

By designing the power supply test circuit, using differential channel and gate control circuit to detect the power supply circuit without disassembly, the problems of inconvenience in testing and low credibility in the prior art are solved, and high credibility is achieved Power supply power detection.

CN119087283APending Publication Date: 2024-12-06XIAN TIANLONG COMM TECH CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411186612.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-27
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

The existing power supply testing method requires the removal of the battery and the use of fake batteries for testing, which leads to inconvenience in testing and may damage the site, resulting in no recurrence of the system after power failure, and the test results are invalid or have low credibility.

Method used

A power supply testing circuit is designed, including a first differential channel circuit, a second differential channel circuit and a gate control circuit, which is coupled to the communication interface circuit through an interface switch circuit, allowing the power supply circuit to be used without disassembly. Electrical inspection ensures the credibility of the test results.

Benefits of technology

It realizes effective detection of power consumption in the power supply without destroying the connection of the power circuit, simplifies the testing process, improves the credibility of the test results, and can effectively reflect the real situation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119087283A_ABST
    Figure CN119087283A_ABST
Patent Text Reader

Abstract

The invention discloses a power supply test circuit and method, a terminal management circuit and electronic equipment. The power supply test circuit comprises a first differential channel circuit, a second differential channel circuit and a gating control circuit, the gating control circuit is used for coupling the first differential channel circuit with the interface switching circuit in response to the condition that the level on the signal control end of the terminal processing circuit is a first level, and coupling the second differential channel circuit with the interface switching circuit in response to the condition that the level on the signal control end is a second level; the interface switch circuit responds to the communication interface circuit and is coupled to the upper computer, the level on the signal control end is adjusted to be a first level, and the upper computer is coupled with the power supply circuit through the communication interface circuit, the interface switch circuit, the gating control circuit and the first differential channel circuit so as to carry out power utilization detection on the power supply circuit. Through the mode, the power supply test circuit in the application can effectively detect the power consumption condition of the power supply circuit in a non-disassembly state.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of power supply technology, and in particular to a power supply testing circuit and method, a terminal management circuit, and an electronic device. Background Art

[0002] As electronic products become more and more abundant, how to conveniently test the power consumption of electronic products has become one of the important research topics. At present, electronic products such as tablets, electronic watches or mobile phones are basically all-in-one devices with non-removable built-in batteries. As a result, in the process of R&D and debugging, it is often necessary to test the power consumption of the whole machine. Problem analysis and after-sales analysis also need to test the power consumption of the whole machine. Therefore, the only way is to disassemble the machine and remove the battery, and then use a fake battery to connect an external programmable power supply for testing.

[0003] However, it is inconvenient to disassemble the machine, remove the battery and test with a fake battery. It will also destroy the problem site. Removing the battery may destroy the environment of the entire machine. In many cases, the phenomenon will not reappear after the entire system loses power because the battery is removed, resulting in invalid or low credibility of the test results. Summary of the invention

[0004] The present application provides a power supply test circuit and method, a terminal management circuit, and an electronic device. The power supply test circuit can solve the problem in the prior art that the power supply test circuit needs to remove the battery and use a fake battery for testing, which is extremely inconvenient. Moreover, removing the battery will destroy the problem site, making the phenomenon not reappear after the entire system loses power, so that the test result is invalid or has low credibility.

[0005] In order to solve the above technical problems, a technical solution adopted by the present application is: to provide a power supply test circuit, wherein the power supply test circuit includes: a first differential channel circuit, which is used to couple with the power supply circuit; a second differential channel circuit, which is used to couple with the first signal terminal of the terminal processing circuit; a gating control circuit, which couples the first differential channel circuit and the second differential channel circuit, and is used to couple with the interface switch circuit and the signal control terminal of the terminal processing circuit, and the gating control circuit couples the first differential channel circuit with the interface switch circuit in response to the level on the signal control terminal being the first level, and in response to The level on the signal control end is the second level, and the second differential channel circuit is coupled to the interface switch circuit; wherein the interface switch circuit is coupled to the second signal end of the terminal processing circuit, and is used to couple with the communication interface circuit, and the communication interface circuit is used to couple with a host computer or a universal serial bus device. The interface switch circuit adjusts the level on the signal control end to the first level in response to the communication interface circuit being coupled to the host computer. The host computer couples with the power supply circuit through the communication interface circuit, the interface switch circuit, the selection control circuit and the first differential channel circuit to detect the power consumption of the power supply circuit.

[0006] Among them, the interface switch circuit adjusts the level on the signal control end to the second level in response to the communication interface circuit being coupled to the universal serial bus device, and the universal serial bus device is coupled to the terminal processing circuit through the communication interface circuit, the interface switch circuit, the selection control circuit and the second differential channel circuit to communicate and interact with the terminal processing circuit.

[0007] The power supply circuit also includes a coupled battery and a sampling resistor, the first differential channel circuit is used to couple with the sampling resistor, and the interface switch circuit is coupled with the battery, so that when the communication interface circuit is coupled to the universal serial bus device, the universal serial bus device is also used to couple with the battery through the communication interface circuit and the interface switch circuit to charge the battery.

[0008] Among them, the power supply test circuit also includes a control connection terminal and a control switch circuit, the control connection terminal is coupled to the selection control circuit, the signal control terminal and the control switch circuit, and the control switch circuit is used to couple with the third signal terminal of the terminal processing circuit to receive the first drive signal or the second drive signal sent by the third signal terminal, and in response to the first drive signal corresponding to the first switch state, the level on the signal control terminal is adjusted to the first level through the control connection terminal, and in response to the second drive signal corresponding to the second switch state, the level on the signal control terminal is adjusted to the second level through the control connection terminal.

[0009] The power supply test circuit further includes a bypass short-circuit, which is coupled between the first signal terminal and the interface switch circuit.

[0010] Among them, the bypass short-circuit circuit includes a short-circuit switch circuit, which couples the first signal end and the interface switch circuit, and couples the fourth signal end of the terminal processing circuit to receive the third drive signal sent by the fourth signal end, and triggers conduction or shutdown under the action of the third drive signal to couple the interface switch circuit with the first signal end, or disconnect the coupling between the interface switch circuit and the first signal end.

[0011] In order to solve the above technical problems, another technical solution adopted in the present application is: to provide a power supply testing method, which is applied to the power supply testing circuit as described in any of the above items, wherein the power supply testing method includes: a gating control circuit detects the level state on the signal control end; in response to the level on the signal control end being a first level, coupling the first differential channel circuit to the interface switch circuit; the upper computer is coupled to the power supply circuit through the communication interface circuit, the interface switch circuit, the gating control circuit and the first differential channel circuit to perform power consumption detection on the power supply circuit.

[0012] Among them, the power supply testing method also includes: in response to the level on the signal control end being a second level, coupling the second differential channel circuit to the interface switch circuit; the universal serial bus device is coupled to the terminal processing circuit through the communication interface circuit, the interface switch circuit, the selection control circuit and the second differential channel circuit to communicate and interact with the terminal processing circuit.

[0013] In order to solve the above technical problems, another technical solution adopted in the present application is: to provide a terminal management circuit, wherein the terminal management circuit includes: a power supply test circuit, a power supply circuit, a terminal processing circuit, and an interface switch circuit, the power supply test circuit is coupled to the power supply circuit, the terminal processing circuit, and the interface switch circuit, the interface switch circuit is coupled to the terminal processing circuit, and is used to couple with the communication interface circuit, and the communication interface circuit is used to couple with a host computer or a universal serial bus device; wherein the power supply test circuit is a power supply test circuit as described in any of the above items.

[0014] To solve the above technical problems, another technical solution adopted in the present application is: to provide an electronic device, wherein the electronic device includes a shell and a functional circuit connected to each other; wherein the functional circuit is a power supply test circuit as described in any of the above items, or a terminal management circuit as described above.

[0015] The beneficial effects of the present application are as follows: Different from the prior art, the first differential channel circuit in the power supply test circuit provided by the present application is used to couple with the power supply circuit, the second differential channel circuit is used to couple with the first signal terminal of the terminal processing circuit, the gating control circuit couples the first differential channel circuit and the second differential channel circuit, and is used to couple with the interface switch circuit and the signal control terminal of the terminal processing circuit; the gating control circuit specifically couples the first differential channel circuit with the interface switch circuit in response to the level on the signal control terminal being a first level, and couples the second differential channel circuit with the interface switch circuit in response to the level on the signal control terminal being a second level; the interface switch circuit is coupled to the second signal terminal of the terminal processing circuit, and is used to couple with the first differential channel circuit and the second differential channel circuit. The interface circuit is coupled to the communication interface circuit, which is used to couple to a host computer or a universal serial bus device. The interface switch circuit responds to the communication interface circuit being coupled to the host computer, and adjusts the level on the signal control end to the first level. The host computer couples to the power supply circuit through the communication interface circuit, the interface switch circuit, the selection control circuit and the first differential channel circuit to perform power consumption detection on the power supply circuit, so that the power consumption of the power supply circuit can be effectively detected without disassembling the machine, that is, without destroying the current connection state of the power supply circuit. The method is convenient and simple, and will not destroy the problem site. The power consumption detection can be performed while effectively retaining the phenomenon after the entire system is powered off. The test result has higher credibility and can effectively reflect the real situation. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. Among them:

[0017] Figure 1 It is a structural schematic diagram of a first embodiment of a power supply test circuit of the present application;

[0018] Figure 2 It is a structural schematic diagram of a second embodiment of the power supply test circuit of the present application;

[0019] Figure 3 It is a flowchart of an implementation method of a power supply testing method of the present application;

[0020] Figure 4 It is a schematic diagram of a framework of an implementation method of a terminal management circuit of the present application;

[0021] Figure 5 It is a schematic diagram of the framework of an implementation scheme of the electronic device of the present application. DETAILED DESCRIPTION

[0022] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0023] The terms "first", "second" and "third" in this application are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first", "second" and "third" can explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "multiple" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined. All directional indications (such as up, down, left, right, front, back...) in the implementation mode of this application are only used to explain the relative position relationship, movement, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication also changes accordingly. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. 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 optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices.

[0024] Reference to "embodiment" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiment may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0025] The present application is described in detail below with reference to the accompanying drawings and implementation methods.

[0026] See also Figure 1 , Figure 1 1 is a schematic diagram of the structure of the first embodiment of the power supply test circuit of the present application. In this embodiment, the power supply test circuit 10 includes: a first differential channel circuit 11, a second differential channel circuit 12 and a gating control circuit 13.

[0027] Among them, a power supply test circuit 10 provided in the present application is specifically applied to any reasonable electronic device with a built-in power supply, such as a tablet computer, an electronic watch, a surveillance camera or a mobile phone, to detect the power consumption of the built-in power supply of the electronic device.

[0028] Specifically, the first differential channel circuit 11 is used to couple with the power supply circuit 101 , and the second differential channel circuit 12 is used to couple with the first signal terminal 1021 of the terminal processing circuit 102 .

[0029] It is worth noting that the power supply circuit 101 can be understood as a battery or other form of power supply built into an electronic device, or includes a battery and an integrated circuit that converts battery power into a suitable voltage / current output, so that the voltage and / or current in the power supply circuit 101 can be sampled and detected to calculate one or more of the power consumption, deep over-discharge state, voltage difference state, and over-temperature state of the power supply circuit 101, so as to determine the health state and production quality of the power supply circuit 101, especially in production line production and factory after-sales service, by effectively realizing reliable quality control and power supply repair services through power consumption detection of the power supply circuit 101.

[0030] The terminal processing circuit 102 can be understood as a main chip processor in the electronic device, that is, a control center for implementing various signal processing in the electronic device.

[0031] In addition, the term "coupled" herein refers to any direct and indirect connection means. Therefore, if the first circuit is described as being coupled to the second circuit, it means that the first circuit can be directly connected to the second circuit through electrical connection or signal connection methods such as wireless transmission, optical transmission, etc., or can be indirectly connected to the second circuit through other circuits or connection means.

[0032] The selection control circuit 13 is coupled to the first differential channel circuit 11 and the second differential channel circuit 12 , and is used to couple to the interface switch circuit 103 and the signal control terminal 1023 of the terminal processing circuit 102 .

[0033] It is understandable that the gating control circuit 13 is specifically used to select different signal paths so that the signal can be routed to the correct output according to preset conditions, or selectively realize the connection between different circuit units. In this embodiment, the gating control circuit 13 mainly functions to selectively connect the first differential channel circuit 11 or the second differential channel circuit 12 to the interface switch circuit 103 according to the level state of the signal control terminal 1023 of the terminal processing circuit 102.

[0034] Specifically, the gate control circuit 13 monitors the level state on the signal control terminal 1023. Here, the "level" generally refers to the voltage level, which can be a high level (such as 5V or 3.3V, etc.) or a low level (such as 0V). When the level on the signal control terminal 1023 is a first level, the gate control circuit 13 will activate its internal logic or switch mechanism, so that the first differential channel circuit 11 is connected to the interface switch circuit 103. On the contrary, when the level on the signal control terminal 1023 changes to a second level, the gate control circuit 13 will switch its state, disconnect the connection with the first differential channel circuit 11, and connect the second differential channel circuit 12 to the interface switch circuit 103 instead.

[0035] Optionally, the first level may be a low level, and the second level may correspond to a high level; or, the first level may be a high level, and the second level may correspond to a low level, which is not limited in the present application.

[0036] The gating control circuit 13 can be implemented in a variety of ways, the most common of which is to use analog or digital switches, such as relays, field effect transistors, CMOS (Complementary Metal Oxide Semiconductor) switches, etc., or the gating control circuit 13 can also be specifically integrated in the control chip to respond to various signal channels of different levels. These switches can be turned on or off under the action of the control signal, thereby realizing the routing of the signal. For example, in a digital circuit, a multiplexer can be used as part of the gating control circuit 13, and the multiplexer can select one output from multiple input signals according to the control input. Control logic: The control logic can be implemented by a microcontroller, a state machine or other logic circuits, which will change the level state of the signal control terminal 1023 according to the specific needs and operating mode of the system, thereby controlling the behavior of the gating circuit.

[0037] Furthermore, the interface switch circuit 103 is coupled to the second signal terminal 1022 of the terminal processing circuit 102 and is used to couple with the communication interface circuit 104 , and the communication interface circuit 104 is further used to couple with the host computer 105 or a universal serial bus device.

[0038] Optionally, the communication interface circuit 104 refers to any reasonable interface circuit used to connect an electronic device to a power supply device, or to realize a connection between different electronic devices, such as a Type C (an interface appearance standard) interface, a Type B interface, a Type-A interface, etc., and this application does not limit this.

[0039] It is worth noting that the upper computer 105 refers to a computer that can directly issue control commands, generally a PC (personal computer) / host computer (computer host) / master computer (host) / upper computer (upper computer), and various signal changes (hydraulic pressure, water level, temperature, etc.) are displayed on the screen. The lower computer is a computer that directly controls the equipment to obtain the equipment status, generally a PLC (programmable logic controller) / single chip microcomputer (single chip microcomputer) / slave computer (slave computer) / lower computer (lower computer) and the like. The command issued by the upper computer 105 is first given to the lower computer, and the lower computer then interprets the command into the corresponding timing signal to directly control the corresponding device. The lower computer reads the equipment status data (generally analog quantity) from time to time, converts it into a digital signal and feeds it back to the upper computer 105.

[0040] In addition, the universal serial bus device, that is, the USB (Universal Serial Bus) device refers to an electronic device that supports a USB interface, such as a charger, a power bank, a computer, or any other reasonable electronic device, and this application does not limit this.

[0041] The interface switch circuit 103 and the communication interface circuit 104 play a bridge role in the power management system, and they ensure that the host computer 105 or the universal serial bus device can safely and effectively communicate and exchange data with the power circuit 101, especially perform operations such as power consumption detection.

[0042] Specifically, the interface switch circuit 103 is connected between the selection control circuit 13 and the communication interface circuit 104, and is connected to the second signal terminal 1022 of the terminal processing circuit 102 to establish or disconnect the physical connection between different components and realize the correct routing of the signal. The communication interface circuit 104 is used to connect to the host computer 105 or the USB device, that is, the communication interface circuit 104 is directly connected to the host computer 105 or the USB device, providing a standardized data transmission channel.

[0043] When the host computer 105 or the USB device establishes a connection with the communication interface circuit 104, it will be detected by the interface switch circuit 103, and the interface switch circuit 103 will respond to the coupling of the communication interface circuit 104 and the host computer 105, and cooperate with the terminal processing circuit 102 to adjust the level on the signal control terminal 1023 to the first level, and this change triggers the subsequent signal path adjustment. With the adjustment of the level of the signal control terminal 1023, the selection control circuit 13 recognizes this change, and in response to the first level state, couples the first differential channel circuit 11 to the interface switch circuit 103.

[0044] In this way, a complete signal path is established from the host computer 105 via the communication interface circuit 104, the interface switch circuit 103, the gating control circuit 13, the first differential channel circuit 11 to the power circuit 101. Through this signal path, the host computer 105 can send instructions or requests to the power circuit 101 to collect data on power status, power consumption, efficiency, voltage, current, etc. This information helps to monitor and optimize power management, ensure the stable operation of the system and the effective use of energy, so as to determine the health status and production quality of the power circuit 101, especially in production line production and factory after-sales service, through the power consumption detection of the power circuit 101, effective reliable quality control and power repair services can be achieved.

[0045] In the above scheme, the first differential channel circuit 11 is coupled to the interface switch circuit 103 by making the gating control circuit 13 respond to the level on the signal control terminal 1023 being the first level, and the interface switch circuit 103 is coupled to the host computer 105 in response to the communication interface circuit 104, and the level on the signal control terminal 1023 is adjusted to the first level. The host computer 105 is coupled to the power supply circuit 101 through the communication interface circuit 104, the interface switch circuit 103, the gating control circuit 13 and the first differential channel circuit 11 to perform power consumption detection on the power supply circuit 101, so that the power consumption of the power supply circuit 101 can be effectively detected without disassembling the machine, that is, without destroying the current connection state of the power supply circuit 101. It is convenient and simple, and will not destroy the problem site. It can perform power consumption detection while effectively retaining the phenomenon after the entire system is powered off. The test result has higher credibility and can effectively reflect the real situation.

[0046] In one embodiment, when a universal serial bus device (not shown) establishes a connection with the communication interface circuit 104, the interface switch circuit 103 is specifically used to adjust the level on the signal control terminal 1023 to a second level in response to the communication interface circuit 104 being coupled to the universal serial bus device, so that the selection control circuit 13 correspondingly couples the second differential channel circuit 12 with the interface switch circuit 103, thereby enabling the universal serial bus device to be coupled to the terminal processing circuit 102 in sequence through the communication interface circuit 104, the interface switch circuit 103, the selection control circuit 13 and the second differential channel circuit 12 to communicate and interact with the terminal processing circuit 102.

[0047] See also Figure 2 , Figure 2 This is a schematic diagram of the structure of the second embodiment of the power supply test circuit of the present application. This embodiment is based on the first embodiment of the power supply test circuit provided in the present application, and the power supply circuit 101 specifically further includes a battery 1011 and a sampling resistor 1012 coupled to each other.

[0048] The first differential channel circuit 21 in the power supply test circuit 20 is specifically used to couple with the sampling resistor 1012, and the interface switch circuit 103 is also specifically coupled to the battery 1011, so that when the communication interface circuit 104 is coupled to a universal serial bus device (not shown in the figure), the universal serial bus device is coupled to the terminal processing circuit 102 through the communication interface circuit 104, the interface switch circuit 103, the selection control circuit 23 and the second differential channel circuit 22 in sequence, so as to communicate and interact with the terminal processing circuit 102, and can also be coupled to the battery 1011 through the communication interface circuit 104 and the interface switch circuit 103 in sequence, so as to charge the battery 1011 by using the conductive path bridged by the communication interface circuit 104 and the interface switch circuit 103.

[0049] Furthermore, in one embodiment, the battery 1011 is also coupled to a battery management circuit 106 , and the battery management circuit 106 is used to monitor and manage the battery 1011 .

[0050] In one embodiment, the power supply test circuit 20 specifically also includes a control connection terminal 24 and a control switch circuit 25, wherein the control connection terminal 24 is coupled to the selection control circuit 23, the signal control terminal 1023 and the control switch circuit 25, and the control switch circuit 25 is used to couple with the third signal terminal 1024 of the terminal processing circuit 102.

[0051] It is understandable that the control connection terminal 24 is a convergence point of the signal, which connects the strobe control circuit 23, the signal control terminal 1023 and the control switch circuit 25, forming a closed-loop signal control link to ensure accurate transmission and execution of the signal. The strobe control circuit 23 can specifically directly detect the level on the control connection terminal 24, and in response to the level on the control connection terminal 24 being the first level, couple the first differential channel circuit 21 with the interface switch circuit 103, and in response to the level on the control connection terminal 24 being the second level, couple the second differential channel circuit 22 with the interface switch circuit 103.

[0052] The control switch circuit 25 is coupled to the third signal terminal 1024 of the terminal processing circuit 102 to receive the first drive signal or the second drive signal from the terminal processing circuit 102. These signals are usually generated by a microprocessor or control logic to control the state of the power supply test circuit 20.

[0053] Specifically, the control switch circuit 25 will execute the corresponding switch state according to the type of the received signal, that is, when the first drive signal is received to trigger the action, it corresponds to the first switch state, so as to adjust the level on the signal control terminal 1023 of the terminal processing circuit 102 to the first level through the control connection terminal 24. For example, the control switch circuit 25 is triggered to be turned on in response to the current reception of the first drive signal, so as to ground the control connection terminal 24, and then adjust the level on the signal control terminal 1023 to the first level, that is, the low level.

[0054] When the control switch circuit 25 receives the second driving signal, it corresponds to the second switching state, for example, it is triggered to be turned off under the action of the second driving signal, so as to adjust the level on the signal control terminal 1023 to the second level through the control connection terminal 24.

[0055] It is understandable that the terminal processing circuit 102 can generate a first drive signal or a second drive signal according to a preset program or external input, and send it to the control switch circuit 25. After receiving the signal, the control switch circuit 25 executes the corresponding switch state and affects the level state of the signal control terminal 1023 through the control connection terminal 24. The level change of the signal control terminal 1023 triggers the action of the selection control circuit 23, such as selecting the first differential channel circuit 21 or the second differential channel circuit 22 to couple with the interface switch circuit 103, thereby affecting the working mode of the entire power supply test circuit 20.

[0056] Optionally, the control switch circuit 25 may specifically include a switch tube (not shown in the figure), the first end of the switch tube is coupled to the control connection terminal 24, the second end of the switch tube is grounded or set to a high level providing terminal, and the third end of the switch tube is coupled to the third signal terminal 1024 of the terminal processing circuit 102; or, the control switch circuit 25 may specifically include a switch tube and a resistor (not shown in the figure), and the second end of the switch tube can also be grounded through a resistor; the third end of the switch tube is used to receive the first drive signal or the second drive signal sent corresponding to the third signal terminal 1024 of the terminal processing circuit 102, thereby turning on or off the first end and the second end of the switch tube.

[0057] In one embodiment, the power supply test circuit 20 specifically also includes a bypass short-circuit circuit 26, which is coupled between the first signal terminal 1021 of the terminal processing circuit 102 and the interface switch circuit 103, so that in a specific usage scenario, such as after the product passes the quality inspection and leaves the factory, the bypass short-circuit circuit 26 is used to directly short-circuit the first signal terminal 1021 of the terminal processing circuit 102 and the interface switch circuit 103 to short-circuit the power supply test circuit 20, thereby avoiding the power supply test circuit 20 from interfering with the normal use of the terminal processing circuit 102 after leaving the factory; and in other usage scenarios, such as production line quality inspection or after-sales service, the bypass short-circuit circuit 26 may not be set or may be disconnected, so as to facilitate the use of the power supply test circuit 20 to perform power consumption detection on the power supply circuit 101.

[0058] Furthermore, in one embodiment, the bypass short-circuit circuit 26 specifically also includes a short-circuit switch circuit 261, which couples the first signal terminal 1021 of the terminal processing circuit 102 and the interface switch circuit 103, and correspondingly couples the fourth signal terminal 1025 of the terminal processing circuit 102.

[0059] Among them, the short-circuit switch circuit 261 is also used to receive the third drive signal sent by the fourth signal terminal 1025, and trigger conduction or shutdown under the action of the third drive signal to couple the interface switch circuit 103 with the first signal terminal 1021 of the terminal processing circuit 102, or disconnect the coupling between the interface switch circuit 103 and the first signal terminal 1021, so that the setting control program of the terminal processing circuit 102 can be used to correspond to different usage scenarios, such as normal use, production line quality inspection or after-sales service, and flexibly choose to short-circuit the interface switch circuit 103 and the first signal terminal 1021 of the terminal processing circuit 102, or disconnect the direct connection between the two, so as to avoid the power supply test circuit 20 from interfering with the normal use of the terminal processing circuit 102, or use the power supply test circuit 20 to perform power consumption detection on the power supply circuit 101.

[0060] In other embodiments, the bypass short-circuit circuit 26 may specifically be only a 0 ohm resistor, i.e. a short-circuit wire, set between the first signal terminal 1021 of the terminal processing circuit 102 and the interface switch circuit 103 after the corresponding electronic product has passed the quality inspection. This application does not limit this.

[0061] In one embodiment, the power supply test circuit 20 can be specifically understood as an analog switch, and the first differential channel circuit 21 can be understood as the first group of differential connection terminals of the analog switch, or the first group of differential pins SENP / SENN; the second differential channel circuit 22 is the second group of differential connection terminals of the analog switch, or the second group of differential pins DP / DM; the control connection terminal 24 can be understood as the control pin CTRL of an analog switch; the interface switch circuit 103 can be understood as an interface analog switch, for example, a Type C analog switch.

[0062] Therefore, it can be seen that by adding an analog switch, the first group of differential lines connected to both ends of the sampling resistor 1012 of the battery 1011 and the first group of differential pins SENP / SENN are switched to be connected to the Type C analog switch, and then the current is sampled and calculated by the external host computer 105, which is equivalent to an external fuel meter, so that the real-time current consumed by the battery 1011 and the voltage across the battery 1011 can be known.

[0063] Among them, when the control pin CTRL of the analog switch is grounded or grounded through a resistor, the analog switch switches to the first group of differential pins SENP / SENN by default; when a USB device is inserted into the communication interface circuit 104, such as a Type C interface, and connected to the Type C analog switch through the Type C interface, the terminal processing circuit 102 will drive the switch tube to operate through the third signal terminal 1024, thereby controlling the control pin CTRL of the analog switch to switch the analog switch to the second group of differential pins DP / DM and connect to the Type C analog switch for normal use.

[0064] According to the above description, when the electronic device, such as a mobile phone, is not plugged into a USB device, the analog switch will be switched to the first group of differential pins SENP / SENN. Thus, a default path is formed: battery 1011 -> sampling resistor 1012 -> first group of differential lines -> analog switch -> Type C analog switch -> Type C interface -> power meter of the host computer 105 .

[0065] In this way, the external power meter can collect the voltage across the sampling resistor 1012 in real time, and calculate the current voltage and current of the battery 1011 to test the power consumption of the mobile phone battery 1011 in real time.

[0066] When a USB device is plugged into the mobile phone, the terminal processing circuit 102 controls the switch to operate, thereby controlling the control pin CTRL of the analog switch to switch the analog switch to the second group of differential pins DP / DM for normal use.

[0067] At this time, the path is changed to: terminal processing circuit 102 -> analog switch -> Type C analog switch -> Type C interface -> USB device / charger.

[0068] It is understandable that by adding an analog switch to an existing terminal management circuit, such as a signal processing circuit inside a mobile phone, the switching of the sampling differential lines SENP / SENN and the USB data line can be effectively realized, and the patch can be defaulted during the trial production stage of the corresponding electronic equipment, and the bypass short-circuit circuit 26, such as a 0 ohm resistor jump selection, can be restored to the original design.

[0069] This application also specifically adopts a power supply testing method, see Figure 3 , Figure 3 This is a flow chart of an implementation method of the power supply testing method of the present application. Specifically, it may include the following steps:

[0070] S31: The selection control circuit detects the level state on the signal control terminal.

[0071] It is understandable that the power supply test method in this embodiment is specifically a method for a power supply test circuit to detect the power consumption of a power supply circuit built into an electronic device. The power supply test circuit specifically includes a first differential channel circuit, a second differential channel circuit, and a gating control circuit, wherein the first differential channel circuit is used to couple with the power supply circuit, the second differential channel circuit is used to couple with the first signal end of the terminal processing circuit, and the gating control circuit couples the first differential channel circuit and the second differential channel circuit, and is used to couple with the signal control end of the interface switch circuit and the terminal processing circuit.

[0072] Specifically, the gating control circuit is used to detect the level state on the signal control terminal of the terminal processing circuit.

[0073] The gating control circuit monitors the level state on the signal control terminal. The "level" here usually refers to the voltage level, which can be a high level (such as 5V or 3.3V, etc.) or a low level (such as 0V). When the level on the signal control terminal is a first level, the gating control circuit will activate its internal logic or switch mechanism so that the first differential channel circuit is connected to the interface switch circuit. On the contrary, when the level on the signal control terminal changes to a second level, the gating control circuit will switch its state, disconnect the connection with the first differential channel circuit, and connect the second differential channel circuit to the interface switch circuit.

[0074] Optionally, the first level may be a low level, and the second level may be a high level correspondingly; or the first level may be a high level, and the second level may be a low level correspondingly, which is not limited in the present application.

[0075] If the level state of the signal control terminal is the first level, S32 is executed; if the level state of the signal control terminal is the second level, S34 is executed.

[0076] S32: coupling the first differential channel circuit to the interface switch circuit.

[0077] It is understandable that the gating control circuit will couple the first differential channel circuit to the interface switch circuit in response to the level on the signal control terminal being the first level.

[0078] The gating control circuit monitors the level state on the signal control terminal. The "level" here usually refers to the voltage level, which can be a high level (such as 5V or 3.3V, etc.) or a low level (such as 0V). When the level on the signal control terminal is a first level, the gating control circuit will activate its internal logic or switch mechanism so that the first differential channel circuit is connected to the interface switch circuit. On the contrary, when the level on the signal control terminal changes to a second level, the gating control circuit will switch its state, disconnect the connection with the first differential channel circuit, and connect the second differential channel circuit to the interface switch circuit.

[0079] Optionally, the first level may be a low level, and the second level may correspond to a high level; or, the first level may be a high level, and the second level may correspond to a low level, which is not limited in the present application.

[0080] S33: The host computer is coupled to the power supply circuit through the communication interface circuit, the interface switch circuit, the selection control circuit and the first differential channel circuit to perform power consumption detection on the power supply circuit.

[0081] The interface switch circuit is also coupled to the second signal terminal of the terminal processing circuit and is used to couple with the communication interface circuit, and the communication interface circuit is used to couple with the host computer or the universal serial bus device.

[0082] It is understandable that when the host computer or USB device establishes a connection with the communication interface circuit, it will be detected by the interface switch circuit, and the interface switch circuit will respond to the coupling of the communication interface circuit with the host computer and cooperate with the terminal processing circuit to adjust the level on the signal control terminal to the first level, and this change triggers the subsequent signal path adjustment. With the adjustment of the level of the signal control terminal, the selection control circuit recognizes this change and couples the first differential channel circuit to the interface switch circuit in response to the first level state.

[0083] In this way, a complete signal path is established from the host computer through the communication interface circuit, interface switch circuit, selection control circuit, first differential channel circuit to the power circuit. Through this signal path, the host computer can send instructions or requests to the power circuit to collect data about power status, power consumption, efficiency, voltage, current, etc. This information helps to monitor and optimize power management, ensure the stable operation of the system and the effective use of energy, so as to determine the health status and quality of the power circuit, especially in production line production and factory after-sales service, through the detection of power consumption of the power circuit, effective reliable quality control and power repair services can be achieved.

[0084] S34: coupling the second differential channel circuit to the interface switch circuit.

[0085] It is understandable that when a universal serial bus device establishes a connection with the communication interface circuit, the interface switch circuit is specifically used to adjust the level on the signal control terminal to the second level in response to the communication interface circuit being coupled to the universal serial bus device, so that the selection control circuit correspondingly couples the second differential channel circuit with the interface switch circuit.

[0086] S35: The universal serial bus device is coupled to the terminal processing circuit through the communication interface circuit, the interface switch circuit, the selection control circuit and the second differential channel circuit to communicate and interact with the terminal processing circuit.

[0087] Furthermore, the universal serial bus device will be coupled to the terminal processing circuit via the communication interface circuit, the interface switch circuit, the strobe control circuit and the second differential channel circuit in sequence to communicate and interact with the terminal processing circuit.

[0088] It is understandable that in some other embodiments, the power supply test method specifically includes some other more specific circuit units to be able to implement other more specific control methods. For details, please refer to Figure 1-Figure 2 And related text descriptions will not be repeated here.

[0089] This application also specifically adopts a power supply circuit, see Figure 4 , Figure 4 It is a schematic diagram of a framework of an embodiment of a terminal management circuit of the present application. In this embodiment, the terminal management circuit 40 includes a power supply test circuit 41, a power supply circuit 42, a terminal processing circuit 43, and an interface switch circuit 44.

[0090] Among them, the power supply test circuit 41 is coupled to the power supply circuit 42, the terminal processing circuit 43, and the interface switch circuit 44. The interface switch circuit 44 is coupled to the terminal processing circuit 43 and is used to couple with the communication interface circuit 201. The communication interface circuit 201 is used to couple with the host computer 202 or a universal serial bus device (not shown in the figure).

[0091] It should be noted that the power supply test circuit 41 described in this embodiment is the power supply test circuit 10 or the power supply test circuit 20 described in any one of the above embodiments. Figure 1 and Figure 2 And the related text content will not be repeated here.

[0092] In one embodiment, the terminal management circuit 40 also includes a battery management circuit 45, the terminal processing circuit 43 also includes a first signal terminal 431, a second signal terminal 432, a third signal terminal 434, a fourth signal terminal 435 and a signal control terminal 433, the power supply circuit 42 also includes a coupled battery 421 and a sampling resistor 422, the power supply test circuit 41 also includes a control connection terminal 414, a control switch circuit 415, and a bypass short-circuit circuit 416, and the bypass short-circuit circuit 416 includes a short-circuit switch circuit 4161.

[0093] It can be understood that, in this embodiment, the power supply test circuit 41, the first differential channel circuit 411, the second differential channel circuit 412, the selection control circuit 413, the control connection terminal 414, the control switch circuit 415, the bypass short circuit 416, the short switch circuit 4161, the power supply circuit 42, the battery 421, the sampling resistor 422, the terminal processing circuit 43, the first signal terminal 431, the second signal terminal 432, the third signal terminal 434, the fourth signal terminal 435, the signal control terminal 433, the interface switch circuit 44, and the battery management circuit 45 The same as the power supply test circuit 20, the first differential channel circuit 21, the second differential channel circuit 22, the selection control circuit 23, the control connection terminal 24, the control switch circuit 25, the bypass short circuit 26, the short switch circuit 261, the power supply circuit 101, the battery 1011, the sampling resistor 1012, the terminal processing circuit 102, the first signal terminal 1021, the second signal terminal 1022, the third signal terminal 1024, the fourth signal terminal 1025, the signal control terminal 1023, the interface switch circuit 103, and the battery management circuit 45, respectively. For details, please refer to Figure 2 And the related text content will not be repeated here.

[0094] This application also specifically uses an electronic device, see Figure 5 , Figure 5 Schematic diagram of the framework of an electronic device of the present application. In this embodiment, the electronic device 50 includes a housing 51 and a functional circuit 52 connected to the housing 51 .

[0095] It should be noted that the functional circuit 52 described in this embodiment is the power supply test circuit 10 or the power supply test circuit 20 described in any one of the above embodiments, or the terminal management circuit 40. Figure 1 , Figure 2 , Figure 4 And the related text content will not be repeated here.

[0096] Different from the prior art, the first differential channel circuit in the power supply test circuit provided by the present application is used to couple with the power supply circuit, the second differential channel circuit is used to couple with the first signal terminal of the terminal processing circuit, the gating control circuit couples the first differential channel circuit and the second differential channel circuit, and is used to couple with the interface switch circuit and the signal control terminal of the terminal processing circuit; the gating control circuit specifically couples the first differential channel circuit with the interface switch circuit in response to the level on the signal control terminal being a first level, and couples the second differential channel circuit with the interface switch circuit in response to the level on the signal control terminal being a second level; the interface switch circuit is coupled to the second signal terminal of the terminal processing circuit, and is used to couple with the communication interface. The communication interface circuit is coupled to the host computer or the universal serial bus device. The interface switch circuit responds to the communication interface circuit being coupled to the host computer to adjust the level on the signal control end to the first level. The host computer is coupled to the power supply circuit through the communication interface circuit, the interface switch circuit, the selection control circuit and the first differential channel circuit to perform power consumption detection on the power supply circuit, so that the power consumption of the power supply circuit can be effectively detected without disassembling the machine, that is, without destroying the current connection state of the power supply circuit. It is convenient and simple, and will not destroy the problem site. It can perform power consumption detection while effectively retaining the phenomenon after the entire system is powered off. The test result has higher credibility and can effectively reflect the real situation.

[0097] The above are only implementation methods of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly used in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A power supply test circuit, characterized in that: The power supply test circuit comprises: A first differential channel circuit, used for coupling with a power supply circuit; A second differential channel circuit, used for coupling with the first signal terminal of the terminal processing circuit; a gating control circuit, coupled to the first differential channel circuit and the second differential channel circuit, and used to couple to the interface switch circuit and the signal control terminal of the terminal processing circuit, wherein the gating control circuit couples the first differential channel circuit to the interface switch circuit in response to the level on the signal control terminal being a first level, and couples the second differential channel circuit to the interface switch circuit in response to the level on the signal control terminal being a second level; Among them, the interface switch circuit is coupled to the second signal end of the terminal processing circuit, and is used to couple with the communication interface circuit, and the communication interface circuit is used to couple with a host computer or a universal serial bus device. In response to the communication interface circuit being coupled to the host computer, the interface switch circuit adjusts the level on the signal control end to the first level. The host computer will couple with the power supply circuit through the communication interface circuit, the interface switch circuit, the selection control circuit and the first differential channel circuit to detect the power consumption of the power supply circuit.

2. The power supply test circuit according to claim 1, characterized in that: In response to the communication interface circuit being coupled to the universal serial bus device, the interface switch circuit adjusts the level on the signal control terminal to the second level, and the universal serial bus device is coupled to the terminal processing circuit through the communication interface circuit, the interface switch circuit, the selection control circuit and the second differential channel circuit to communicate and interact with the terminal processing circuit.

3. The power supply test circuit according to claim 2, characterized in that: The power supply circuit also includes a battery and a sampling resistor coupled to each other, the first differential channel circuit is used to couple to the sampling resistor, and the interface switch circuit is coupled to the battery, so that when the communication interface circuit is coupled to the universal serial bus device, the universal serial bus device is also used to couple to the battery through the communication interface circuit and the interface switch circuit to charge the battery.

4. The power supply test circuit according to claim 1, characterized in that: The power supply test circuit also includes a control connection terminal and a control switch circuit, wherein the control connection terminal is coupled to the selection control circuit, the signal control terminal and the control switch circuit, and the control switch circuit is used to couple with the third signal terminal of the terminal processing circuit to receive the first drive signal or the second drive signal sent by the third signal terminal, and in response to the first drive signal corresponding to the first switch state, adjust the level on the signal control terminal to the first level through the control connection terminal, and in response to the second drive signal corresponding to the second switch state, adjust the level on the signal control terminal to the second level through the control connection terminal.

5. The power supply test circuit according to claim 1, characterized in that: The power supply test circuit further includes a bypass short circuit coupled between the first signal terminal and the interface switch circuit.

6. The power supply test circuit according to claim 5, characterized in that: The bypass short-circuit circuit includes a short-circuit switch circuit, which couples the first signal end and the interface switch circuit, and couples the fourth signal end of the terminal processing circuit to receive a third drive signal sent by the fourth signal end, and is triggered to turn on or off under the action of the third drive signal to couple the interface switch circuit to the first signal end, or disconnect the coupling between the interface switch circuit and the first signal end.

7. A power supply testing method, characterized in that: The power supply test circuit as claimed in any one of claims 1 to 6 comprises: The gating control circuit detects the level state on the signal control terminal; In response to the level on the signal control terminal being a first level, coupling the first differential channel circuit to the interface switch circuit; The host computer is coupled to the power supply circuit through the communication interface circuit, the interface switch circuit, the gating control circuit and the first differential channel circuit to perform power consumption detection on the power supply circuit.

8. The power supply testing method according to claim 7, characterized in that: The power supply testing method further comprises: In response to the level on the signal control terminal being a second level, coupling the second differential channel circuit to the interface switch circuit; The universal serial bus device is coupled to the terminal processing circuit through the communication interface circuit, the interface switch circuit, the strobe control circuit and the second differential channel circuit to communicate and interact with the terminal processing circuit.

9. A terminal management circuit, characterized in that: The terminal management circuit includes: a power supply test circuit, a power supply circuit, a terminal processing circuit, and an interface switch circuit. The power supply test circuit is coupled to the power supply circuit, the terminal processing circuit, and the interface switch circuit. The interface switch circuit is coupled to the terminal processing circuit and is used to couple with a communication interface circuit. The communication interface circuit is used to couple with a host computer or a universal serial bus device. Wherein, the power supply test circuit is the power supply test circuit as described in any one of claims 1-6.

10. An electronic device, characterized in that: The electronic device comprises a housing and a functional circuit connected to each other; Wherein, the functional circuit is a power supply test circuit as described in any one of claims 1 to 6, or a terminal management circuit as described in claim 9.