A method, device and circuit for detecting that a powered device is connected to a power supply device
By using multiple interfaces in the power supply equipment for comprehensive detection, the problem of the difficulty of access detection of powered equipment for multi-port charging function power supply equipment is solved, and more accurate access detection and dynamic voltage adjustment are achieved, which improves charging efficiency.
Patent Information
- Application Number
- CN202110373677.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-07
- Publication Date
- 2025-03-28
- Estimated Expiration
- 2041-04-07
AI Technical Summary
Since power supply equipment with multi-port charging function needs to detect different access methods of power receiving equipment, the difficulty of accessing power receiving equipment increases.
The charging interface information is obtained through the controller input and output port IO1 and the controller output port IO2 in the power supply device, and the communication interface D+ and D-, pins CC1 and CC2 are detected by multiple interfaces such as the communication interface D+, pins CC1 and CC2, to determine whether there is an access to the target power receiving device, and to adjust the output voltage according to the requested charging capacity of the connected power receiving device.
It reduces the difficulty of access detection of powered equipment by powered equipment, improves detection accuracy, and dynamically adjusts the output voltage according to the needs of different powered equipment, improving charging efficiency.
Smart Images

Figure CN113162163B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present application relate to the field of charging, and in particular, to a method, device, and circuit for detecting the connection of a powered device to a powered device. Background Art
[0002] In recent years, as the power receiving devices are updated day by day, the charging function of the power receiving devices has gradually received attention, especially the fast charging function and multi-port charging function of the power receiving devices. Fast charging refers to a charging method that can shorten the charging time of the power receiving device, while the multi-port charging function refers to a charging method that can connect multiple cables to charge multiple power receiving devices.
[0003] With the popularity of Type-C interface, Type-C, Lightning and Micro charging interfaces are coexisting on the market, and the charging cables on the market have evolved from single input and single output to single input and multiple output, that is, multi-port charging function. When multiple powered devices are charged simultaneously, the power supply device with multi-port charging function can provide corresponding output voltage for each charging interface according to the charging capacity requested by each powered device, so that the powered devices on the charging interface can be charged.
[0004] Only when the power supply device with multi-port charging function detects that the receiving device is connected can it provide output voltage according to the charging capacity requested by the receiving device. However, since the power supply device with multi-port charging function usually needs to set charging interfaces of charging types, different charging interfaces have different ways of detecting the connection of the receiving device, which makes it more difficult for the power supply device to detect the connection of the receiving device. Summary of the invention
[0005] A first aspect of an embodiment of the present application provides a method for detecting that a powered device is connected to a power supply device, the method comprising:
[0006] The first charging interface information of the power supply device is obtained through the controller input and output port IO1 and the controller output port IO2 in the power supply device, the power supply device is a single-input multi-output power supply device, the controller output port IO2 is in a continuous high-level output state, and the controller input and output port IO1 is in a periodic alternation state of outputting a high level and inputting a floating detection state;
[0007] Determine whether there is a target powered device connected to the charging interface of the power supply device according to the first charging interface information;
[0008] If so, determining the powered device being charged on the power supply device;
[0009] Determining the requested charging capabilities of the powered device being charged and the target powered device;
[0010] The output voltage of the power supply device is adjusted according to the charging capability of the power receiving device being charged and the requested charging capability of the target power receiving device, and a charging switch corresponding to the charging interface of the power supply device connected to the target power receiving device is turned on.
[0011] Optionally, after determining whether a target powered device is connected to the charging interface of the power supply device according to the first charging interface information, the method further includes:
[0012] If not, obtain the second charging interface information through the communication interface D+ and the communication interface D- in the power supply device;
[0013] Determine whether there is a target powered device connected to the charging interface of the power supply device according to the second charging interface information;
[0014] If so, the powered device being charged on the power supply device is determined.
[0015] Optionally, after determining whether a target powered device is connected to the charging interface of the power supply device according to the second charging interface information, the method further includes:
[0016] If not, obtain the third charging interface information through pin CC1 and pin CC2 in the power supply device;
[0017] Determine whether there is a target powered device connected to the charging interface of the power supply device according to the third charging interface information;
[0018] If so, the powered device being charged on the power supply device is determined.
[0019] Optionally, after adjusting the output voltage for the target powered device and the powered device being charged according to the requested charging capability, and turning on a charging switch corresponding to a charging interface of the target powered device connected to the power supply device, the method further includes:
[0020] Determine whether there is a powered device that ends charging;
[0021] If so, turn off the charging switch corresponding to the powered device that has finished charging on the power supply device;
[0022] Determining the requested charging capacity of the powered devices remaining on the power supply device and being charged;
[0023] The output voltage is adjusted according to the requested charging capability of the remaining power receiving devices being charged.
[0024] Optionally, the determining whether there is a powered device that ends charging includes:
[0025] The charging is terminated by judging whether there is a powered device according to the charging current detection port IO3 of the controller in the power supply device.
[0026] A second aspect of an embodiment of the present application provides a device for detecting that a powered device is connected to a power supply device, and the device is characterized by comprising:
[0027] A first acquisition unit is used to acquire first charging interface information of the power supply device through the controller input-output port IO1 and the controller output port IO2 in the power supply device, wherein the power supply device is a single-input multi-output power supply device, the controller output port IO2 is in a continuous high-level output state, and the controller input-output port IO1 is in a periodic alternation state of outputting a high level and inputting a floating detection state;
[0028] A first judging unit, configured to judge whether there is a target powered device connected to the charging interface of the power supply device according to the first charging interface information;
[0029] a first determining unit, configured to determine a powered device being charged on the power supply device when the first determining unit determines that a target powered device is connected to the charging interface of the power supply device;
[0030] a second determining unit, configured to determine the requested charging capabilities of the powered device being charged and the target powered device;
[0031] The first adjustment unit is used to adjust the output voltage of the power supply device according to the charging capability of the power receiving device being charged and the requested charging capability of the target power receiving device, and turn on the charging switch corresponding to the charging interface of the power supply device through which the target power receiving device is connected.
[0032] Optionally, the device further comprises:
[0033] a second acquiring unit, configured to acquire second charging interface information through the communication interface D+ and the communication interface D- in the power supply device when the first determining unit does not determine whether the target powered device is connected to the charging interface of the power supply device;
[0034] A second judgment unit, configured to judge whether there is a target powered device connected to the charging interface of the power supply device according to the second charging interface information;
[0035] The first determining unit is further configured to determine a powered device being charged on the power supply device when the second determining unit determines that a target powered device is connected to the charging interface of the power supply device.
[0036] Optionally, the device further comprises:
[0037] a third acquiring unit, configured to acquire third charging interface information through pin CC1 and pin CC2 in the power supply device when the second determining unit does not determine whether a target powered device is connected to the charging interface of the power supply device;
[0038] A third judgment unit, configured to judge whether there is a target powered device connected to the charging interface of the power supply device according to the third charging interface information;
[0039] The first determining unit is further configured to determine a powered device being charged on the power supply device when the third determining unit determines that a target powered device is connected to the charging interface of the power supply device.
[0040] Optionally, the device further comprises:
[0041] A fourth determination unit, used to determine whether there is a powered device that has finished charging;
[0042] A closing unit, configured to close a charging switch corresponding to the powered device that has finished charging on the power supply device when the fourth judgment unit determines that the powered device has finished charging;
[0043] a third determining unit, configured to determine a requested charging capacity of the remaining powered devices being charged on the power supply device;
[0044] The second adjustment unit is configured to adjust the output voltage according to the requested charging capability of the remaining powered devices being charged.
[0045] Optionally, the fourth judgment unit is specifically:
[0046] The charging is terminated by judging whether there is a powered device according to the charging current detection port IO3 of the controller in the power supply device.
[0047] A third aspect of an embodiment of the present application provides a device for detecting that a powered device is connected to a power supply device, and the device is characterized by comprising:
[0048] Processor, memory, input and output unit, bus;
[0049] The processor is connected to the memory, the input and output unit, and the bus;
[0050] The processor performs the following operations:
[0051] The first charging interface information of the power supply device is obtained through the controller input and output port IO1 and the controller output port IO2 in the power supply device, the power supply device is a single-input multi-output power supply device, the controller output port IO2 is in a continuous high-level output state, and the controller input and output port IO1 is in a periodic alternation state of outputting a high level and inputting a floating detection state;
[0052] Determine whether there is a target powered device connected to the charging interface of the power supply device according to the first charging interface information;
[0053] If so, determining the powered device being charged on the power supply device;
[0054] Determining the requested charging capabilities of the powered device being charged and the target powered device;
[0055] The output voltage of the power supply device is adjusted according to the charging capability of the power receiving device being charged and the requested charging capability of the target power receiving device, and a charging switch corresponding to the charging interface of the power supply device connected to the target power receiving device is turned on.
[0056] Optionally, the processor is also used to perform operations of any optional scheme in the first aspect.
[0057] A fourth aspect of the embodiments of the present application provides a circuit for detecting that a powered device is connected to a power supply device, and the circuit is characterized by comprising:
[0058] A controller, a voltage input terminal, a first charging switch, a second charging switch, a first charging interface, and a second charging interface;
[0059] The voltage input terminal is respectively coupled to the first charging switch, the second charging switch and the controller;
[0060] The first charging switch is connected to the controller and the V2 voltage output terminal of the first charging interface respectively, and the first charging switch is used to connect to the device to be detected and obtain the electrical signal sent by the connected device to be detected;
[0061] The second charging switch is respectively connected to the controller and the V3 voltage output terminal of the second charging interface;
[0062] The controller is provided with a controller input / output port IO1 and a controller output port IO2. The controller output port IO2 is connected to the resistor R2 and the diode D1 in sequence, and then connected to the V2 voltage output terminal of the first charging interface. The controller input / output port IO1 is connected between the resistor R2 and the diode. The controller output port IO2 is in a state of continuously outputting a high level, and the controller input / output port IO1 is in a state of alternating between an output high level and an input floating detection state;
[0063] The controller is provided with a communication interface D+ and a communication interface D-, the communication interface D+ is connected to the D+ end of the first charging interface, and the communication interface D- is connected to the D- end of the first charging interface;
[0064] The controller is provided with a pin CC1 and a pin CC2, the pin CC1 is connected to the CC1 end of the first charging interface, and the pin CC2 is connected to the CC2 end of the first charging interface;
[0065] The controller is provided with a controller charging current detection port IO3, and the controller charging current detection port IO3 is connected to the charging current detection end of the first charging interface.
[0066] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:
[0067] In this embodiment, the first charging interface information of the power supply device is first obtained through the controller input / output port IO1 and the controller output port IO2 in the power supply device. Since the controller input / output port IO1 is in a periodic alternation state between the output high level and the input floating detection state, the first charging interface information obtained in the input floating detection state can be used to determine whether there is a target powered device connected to the charging interface of the power supply device. If there is a new target powered device connected, the powered device being charged on the power supply device is determined. Then the requested charging capacity of the powered device being charged and the target powered device is determined, and finally the output voltage is adjusted for the power supply device according to the requested charging capacity of the powered device being charged and the target powered device, and the charging switch corresponding to the charging interface of the target powered device connected to the power supply device is turned on. The controller input / output port IO1 and the controller output port IO2 are used to detect whether there is an electrical signal at the charging interface. The first charging interface information obtained in the input floating detection state can determine whether there is a powered device connected. The same detection effect is achieved for different charging interfaces, which reduces the difficulty of the power supply device in detecting the access of the powered device. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] Figure 1 This is a schematic diagram of a flow chart of an embodiment of a circuit for detecting the connection of a powered device to a power supply device in an embodiment of the present application;
[0069] Figure 2 This is a flow chart of another embodiment of a circuit for detecting the connection of a powered device to a power supply device in an embodiment of the present application;
[0070] Figure 3 A schematic diagram of a flow chart of an embodiment of a method for detecting that a powered device is connected to a power supply device in an embodiment of the present application;
[0071] Figure 4 A detection waveform diagram of the controller input / output port IO1 in the embodiment of the present application;
[0072] Figure 5-1 and Figure 5-2This is a flow chart of another embodiment of the method for detecting the connection of a powered device to a power supply device in an embodiment of the present application;
[0073] Figure 6 A schematic diagram of a flow chart of an embodiment of a device for detecting the connection of a powered device to a power supply device in an embodiment of the present application;
[0074] Figure 7 This is a schematic flow chart of another embodiment of the device for detecting the connection of a powered device to a power supply device in an embodiment of the present application;
[0075] Figure 8 This is a flow chart of another embodiment of the apparatus for detecting the connection of a powered device to a power supply device in an embodiment of the present application. DETAILED DESCRIPTION
[0076] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the protection scope of the present invention.
[0077] The embodiment of the present application discloses a method and device for detecting the access of a powered device to a power supply device, which is used to reduce the difficulty of detecting the access of a powered device to a powered device by a power supply device.
[0078] See also Figure 1 to Figure 2 The embodiment of the present application provides a circuit for detecting whether a powered device is connected to a power supply device, including:
[0079] Controller 1, voltage input terminal 2, first charging switch 3, second charging switch 4, first charging interface 5 and second charging interface 6;
[0080] The voltage input terminal 2 is coupled to the first charging switch 3, the second charging switch 4 and the controller 1 respectively;
[0081] The first charging switch 3 is connected to the controller 1 and the V2 voltage output terminal of the first charging interface 5 respectively, and the first charging switch 3 is used to connect to the device to be detected 7 and obtain the electrical signal sent by the connected device to be detected 7;
[0082] The second charging switch 4 is connected to the controller 1 and the V3 voltage output terminal of the second charging interface 6 respectively;
[0083] The controller 1 is provided with a controller input / output port IO1 and a controller output port IO2. The controller output port IO2 is connected to the resistor R2 and the diode D1 in sequence, and then connected to the V2 voltage output terminal of the first charging interface. The controller input / output port IO1 is connected between the resistor R2 and the diode. The controller output port IO2 is in a state of continuously outputting a high level, and the controller input / output port IO1 is in a state of alternating between an output high level and an input floating detection state;
[0084] The controller 1 is provided with a communication interface D+ and a communication interface D-, the communication interface D+ is connected to the D+ end of the first charging interface, and the communication interface D- is connected to the D- end of the first charging interface;
[0085] The controller 1 is provided with a pin CC1 and a pin CC2, the pin CC1 is connected to the CC1 end of the first charging interface, and the pin CC2 is connected to the CC2 end of the first charging interface;
[0086] The controller 1 is provided with a controller charging current detection port IO3, and the controller charging current detection port IO3 is connected to the charging current detection end of the first charging interface.
[0087] Figure 2 There are only two output terminals in the figure for the convenience of describing its functions. Theoretically, there may be more than two output terminals. In addition, in order to describe the access detection process, only the communication interface D+ and the communication interface D-, the pins CC1 and CC2, the controller input and output ports IO1 and IO2, and the controller charging current detection port IO3 are depicted for the first charging interface 5.
[0088] The following describes the structure and function of a circuit for detecting the connection of a powered device to a power supply device:
[0089] The voltage input terminal 2 includes a voltage input port V1 and a capacitor C1 . The voltage input terminal 2 is mainly used to input a voltage according to an instruction of the controller 1 , so that the controller 1 can adjust the output voltage.
[0090] The charging switch 3 and the charging switch 4 are mainly composed of a resistor and a MOS tube, and are adjusted by the controller 1. They are mainly used to perform the functions of connecting and disconnecting when the powered device is connected or unplugged.
[0091] The first charging interface 5 and the second charging interface 6 are adapted to the charging port of the powered device, and mainly obtain information through the charging port of the powered device, and transmit the electrical signal to the controller 1 through the controller input and output port IO1 and the controller output port IO2, the communication interface D+ and the communication interface D-, and the pin CC1 and the pin CC2.
[0092] The controller input and output port IO1 and the controller output port IO2 are structures for detecting the access of the receiving point device, wherein the controller output port IO2 is in a state of continuous high-level output, and the controller input and output port IO1 is in a state of alternating between the output high-level and the input floating detection state. During the detection process, there is a resistor Rz, which is the equivalent impedance of the positive and negative leakage current of the charging cable, the powered device, or the charging cable + the powered device. The Rz of the Lightning cable has a characteristic value, through which a detection voltage range can be calculated, which can be described as VL1-lth and VL1-hth. When the controller input / output port IO1 is in input floating detection mode and no electrical equipment is received, the detected voltage range will fall between VL1-lth and VL1-hth. When the first charging interface 5 of the power supply device is connected to the charging cable and the powered device, the entire circuit structure is changed due to the access of the powered device. When the controller input / output port IO1 is in input floating detection mode, the voltage measured through the voltage input / output port V2 will be greater than VL1-hth or less than VL1-lth, and it can be determined that there is access to the powered device. Among them, greater than VL1-hth or less than VL1-lth depends on whether the powered device and the first charging interface 5 are flipped.
[0093] The communication interface D+ and the communication interface D- are used as interfaces to detect whether the powered device complies with the fast charging protocol, that is, to determine whether the connected powered device can perform the fast charging function. When the communication interface D+ and the communication interface D- receive the information of the first charging interface 5, the controller 1 can determine that there is a powered device that can be fast charged, and directly determine that there must be a powered device among the currently connected devices instead of just the charging cable. The charging cable does not have the ability to send the first charging interface 5 information to the communication interface D+ and the communication interface D-. Only the powered device transmits the electrical signal to the communication interface D+ and the communication interface D- through the charging cable. The controller 1 determines that there is currently a powered device that can be fast charged connected based on the electrical signal obtained by the communication interface D+ and the communication interface D-. Please refer to Figure 1 to Figure 2 The following is an example of how the power supply device determines the access of the powered device through the communication interface D+ and the communication interface D-:
[0094] When the user connects the charging cable and the powered device to the power supply device, the power supply device first short-circuits the communication interface D+ and the communication interface D- by default, so that the powered device detects that the power supply device type is a dedicated charging port mode, and then outputs a 5V voltage by default, and the powered device charges normally. If the powered device supports the fast charging protocol, the powered device starts to load a 0.325V voltage on the communication interface D+ and maintains it for more than 1.25S. When the controller 1 on the power supply device detects that the voltage on the communication interface D+ is 0.325V and is maintained for more than 1.25S, the power supply device disconnects the short circuit between the communication interface D+ and the communication interface D-. Since the communication interface D+ is disconnected from the communication interface D-, the voltage on the communication interface D- no longer follows the change of the communication interface D+, and the voltage begins to drop at this time. When the powered device detects that the voltage on the communication interface D- starts to drop from 0.325V and is maintained for more than 1ms, the high-voltage charging port starts to read the voltage value of the fast charging function. If it is 9000mv, the powered device sets the voltage on the communication interface D+ to 3.3V and the voltage on the communication interface D- to 0.6V. If it is 5000mv, the powered device sets the voltage on the communication interface D+ to 0.6V and the voltage on the communication interface D- to 0V. After the power supply device detects the voltage on the communication interface D+ and the communication interface D-, the controller 1 adjusts the output voltage of the power supply device.
[0095] Pin CC1 and pin CC2 are mainly used to detect whether the connected device has been flipped, and can also detect certain types of charging cables, and then detect the receiving point device. The principle is as follows: At present, the interfaces of power supply devices are mostly Type-C, lightning and Micro. The following is based on these three interfaces. The charging cables corresponding to the above interfaces can be divided into the following types: Type-C cables without Emarker IC, Type-C cables with Emarker IC, and Type-C to Lightning cables. Among them, the CC pull-down resistors of the above charging cable or the powered device are set to R3 and R4, and the fixed resistance is 5.1KΩ. Usually, pins CC1 and CC2 in the power supply device can detect whether the powered device or charging cable has been flipped or whether the powered device is connected when R3 or R4 is connected. However, since R3 and R4 can be in both the charging cable and the powered device, even if the power supply device detects R3 or R4, it can only confirm that there is a device connected, but cannot determine whether the connected device is a powered device plus a charging cable or only a charging cable. Since it is not possible to determine whether a powered device is connected only by R3 and R4, another information is needed for further judgment - the charging cable with Emaker IC has a characteristic resistor R5, which is fixed to 1KΩ. When pins CC1 and CC2 in the power supply device detect the characteristic resistor R5, it can be determined that there is a charging cable in the currently connected device, and the cable is a charging cable with Emaker IC. At this time, if pins CC1 and CC2 detect R3 and R4, it can be determined that R3 and R4 come from the powered device rather than the charging cable, and then it is determined that there is a powered device in the device connected to the first charging interface 5 of the power supply device.
[0096] The controller charging current detection port IO3 is a current detection port on the power supply device, which is used to detect the charging current of the powered device during the charging process. The working principle is as follows: when it is determined that a powered device is charging, within a preset time (for example, 5S), if the current detected by the controller charging current detection port IO3 is less than the minimum current threshold, it can be determined that there are two current situations. One is that the powered device corresponding to the first charging interface 5 is fully charged. In order to protect itself, the powered device makes the charging current hindered by the powered device, which reduces the charging current; the other is that the powered device is removed by external force, resulting in charging stopping, which in turn causes the charging current to drop. Both of the above situations can be regarded as being determined as the end of charging of the powered device.
[0097] In this embodiment, the method for detecting that the powered device is connected to the power supply device can be implemented in the system, in the server, or in the terminal, and the specific details are not clearly limited. For the convenience of description, the embodiment of the present application uses the controller as the execution subject for example description.
[0098] See also Figure 3 The embodiment of the present application provides a method for detecting that a powered device is connected to a power supply device, comprising:
[0099] 301. Acquire the first charging interface information of the power supply device through the controller input / output port IO1 and the controller output port IO2 in the power supply device, wherein the power supply device is a single-input multi-output power supply device, the controller output port IO2 is in a continuous high-level output state, and the controller input / output port IO1 is in a periodic alternation state of outputting a high level and inputting a floating detection state;
[0100] The controller obtains the first charging interface information through the controller input / output port IO1 and the controller output port IO2 in the power supply device. When the charging interface in the power supply device is connected to the device, the circuit structure in the power supply device will be changed so that the electrical signal in the circuit of the power supply device changes accordingly. Since the electrical signals received by the controller input / output port IO1 and the controller output port IO2 are the first charging interface information, the controller will obtain the first charging interface information, and the controller will control the circuit of the power supply device according to the change of the electrical signal.
[0101] The device connected to the power supply device can be a charging cable (without a powered device) or a charging cable and a target powered device, which is not limited here. It should be noted that the controller can determine whether the device currently connected to the power supply device includes the target powered device through the charging interface information, and then control the power supply device to conduct and transmit power to the charging interface.
[0102] In this embodiment, the power supply device is a single-input multi-output power supply device, that is, a power supply device that can provide charging services to multiple powered devices.
[0103] 302. Determine whether there is a target powered device connected to the charging interface of the power supply device according to the first charging interface information; if so, execute step 303;
[0104] The controller determines whether there is a target powered device connected to the charging interface of the power supply device by obtaining the first charging interface information from the controller input / output port IO1 and the controller output port IO2 in the power supply device.
[0105] Please refer to Figure 1 and Figure 2, the power supply device is provided with a controller input / output port IO1 and a controller output port IO2, wherein the resistor R2 is connected to the controller output port IO2, and is connected to the diode D1 together with the controller input / output port IO1, and the diode is connected to the device at the charging interface when the device is connected. Among them, the controller output port IO2 is in a state of continuous output voltage, that is, the output high level is always maintained, and the controller input / output port IO1 is in a state of alternating between the output high level and the input floating detection state periodically. In odd cycles, the controller input / output port IO1 outputs 1 (output voltage), and in even cycles, the controller input / output port IO1 is set to input floating detection.
[0106] In the input floating detection mode, the controller input / output port IO1 can determine whether a powered device is connected by detecting the size of the input electrical signal.
[0107] Please refer to Figure 4 , Figure 4 This is a detection waveform diagram of the controller input and output port IO1. The detection principle is as follows: First, during the detection process, there is a resistor Rz, which is the equivalent impedance of the positive and negative leakage current of the charging cable, the powered device, or the charging cable + the powered device. The Rz of the Lightning cable has a characteristic value, and a detection voltage range can be calculated through this Rz. The upper and lower limits of the detection voltage range can be described as two values VL1-lth and VL1-hth. When the controller input and output port IO1 is in the input floating detection mode and no power device is received, the detected voltage range will fall within the range of VL1-lth and VL1-hth. When the charging interface of the power supply device is connected to the charging cable and the target powered device, due to the access of the powered device, the voltage measured by the controller input and output port IO1 in the input floating detection mode will be greater than VL1-hth or less than VL1-lth. At this time, it can be determined that the target powered device is connected.
[0108] 303. If it is determined according to the first charging interface information that a target powered device is connected to the charging interface of the power supply device, then a powered device that is being charged on the power supply device is determined;
[0109] When the controller determines that there is a target powered device connected to the charging interface of the power supply device, it is necessary to determine the powered device being charged on the power supply device. When the target powered device is connected to the power supply device, it is necessary to output a preset charging voltage to each charging interface according to the current operation status of the power supply device.
[0110] 304. Determine the requested charging capabilities of the powered device being charged and the target powered device;
[0111] The controller determines the requested charging capacity of the power receiving device being charged and the target power receiving device, where the requested charging capacity is the charging voltage tolerance range of the power receiving device. The controller determines the power receiving device currently being charged by the power supply device and the target power receiving device.
[0112] 305 . Adjust the output voltage for the power supply device according to the charging power receiving device being charged and the requested charging capabilities of the target power receiving device, and turn on the charging switch corresponding to the charging interface of the power supply device through which the target power receiving device is connected.
[0113] The controller adjusts the output voltage for the power supply device according to the charging capability of the power receiving device being charged and the requested charging capability of the target power receiving device, and turns on the charging switch corresponding to the charging interface of the power supply device through which the target power receiving device is connected.
[0114] The controller distributes the charging voltage to each powered device according to the requested charging capacity of each powered device that needs to be charged and according to the preset rules, so as to improve the charging efficiency while not damaging the powered device. After the power supply device adjusts the charging voltage of each charging interface, the charging switch corresponding to the charging interface of the target powered device connected to the power supply device can be turned on to start charging the target powered device.
[0115] There are many preset rules for adjusting the voltage. It can be that after determining the requested charging capacity of the powered device, the voltage is adjusted according to the current power of the powered device so that the powered device with low power is allocated a higher charging voltage; or after determining the requested charging capacity of the powered device, according to the access order of the powered devices, the powered device that is connected first is allocated a higher charging voltage. This is not limited here.
[0116] In this embodiment, the first charging interface information of the power supply device is first obtained through the controller input / output port IO1 and the controller output port IO2 in the power supply device. Since the controller input / output port IO1 is in a periodic alternation state between the output high level and the input floating detection state, the first charging interface information obtained in the input floating detection state can be used to determine whether there is a target powered device connected to the charging interface of the power supply device. If there is a new target powered device connected, the powered device being charged on the power supply device is determined. Then the requested charging capacity of the powered device being charged and the target powered device is determined, and finally the output voltage is adjusted for the power supply device according to the requested charging capacity of the powered device being charged and the target powered device, and the charging switch corresponding to the charging interface of the target powered device connected to the power supply device is turned on. The controller input / output port IO1 and the controller output port IO2 are used to detect whether there is an electrical signal at the charging interface. The first charging interface information obtained in the input floating detection state can determine whether there is a powered device connected. The same detection effect is achieved for different charging interfaces, which reduces the difficulty of the power supply device in detecting the access of the powered device.
[0117] In the above embodiment, there are other ways to determine whether a target powered device is connected to the charging interface of the power supply device. The determination process is described in detail below.
[0118] See also Figure 5-1 and Figure 5-2 The embodiment of the present application provides a method for detecting that a powered device is connected to a power supply device, comprising:
[0119] 501. Acquire the first charging interface information of the power supply device through the controller input / output port IO1 and the controller output port IO2 in the power supply device, wherein the power supply device is a single-input multi-output power supply device, the controller output port IO2 is in a state of continuously outputting a high level, and the controller input / output port IO1 is in a state of alternating between an output high level and an input floating detection state;
[0120] 502. Determine whether there is a target powered device connected to the charging interface of the power supply device according to the first charging interface information; if so, execute step 507; if not, execute step 503;
[0121] Steps 501 and 502 in this embodiment are similar to steps 301 and 302 in the above embodiment, and are not described again here.
[0122] 503. If it is not determined according to the first charging interface information that there is a target powered device connected to the charging interface of the power supply device, obtain second charging interface information through the communication interface D+ and the communication interface D- in the power supply device;
[0123] The controller obtains the second charging interface information through the communication interface D+ and the communication interface D- in the power supply device. When the charging interface in the power supply device is connected to the device, the circuit structure in the power supply device will be changed so that the electrical signal in the circuit of the power supply device changes accordingly. The electrical signal received by the communication interface D+ and the communication interface D- is the second charging interface information, and the controller will obtain the second charging interface information. The controller controls the circuit of the power supply device according to the change of the electrical signal.
[0124] Since the controller input / output port IO1 and the controller output port IO2 in the power supply device are detected by input floating detection, the controller input / output port IO1 is in a periodic alternation state between the output high level and the input floating detection state, so when the controller input / output port IO1 is in the output high level state, the device access detection cannot be performed, and other methods are required to perform the powered device access detection. At this time, the second charging interface information obtained through the communication interface D+ and the communication interface D- in the power supply device can be used to perform the powered device access detection through the second charging interface information.
[0125] 504. Determine whether there is a target powered device connected to the charging interface of the power supply device according to the second charging interface information; if so, execute step 507; if not, execute step 505;
[0126] The controller determines whether there is a target powered device connected to the charging interface of the power supply device based on the second charging interface information, that is, the controller determines whether there is a target powered device connected to the charging interface of the power supply device based on the charging interface information obtained by the communication interface D+ and the communication interface D- in the power supply device.
[0127] The communication interface D+ and the communication interface D- are used as interfaces to detect whether the powered device complies with the fast charging protocol, that is, to determine whether the connected powered device can perform the fast charging function. When the communication interface D+ and the communication interface D- receive the charging interface information, the controller can determine that there is a powered device that can be fast charged, and directly determine that there must be a powered device among the currently connected devices instead of just the charging cable. The charging cable does not have the ability to send charging interface information to the communication interface D+ and the communication interface D-. Only the powered device transmits the electrical signal to the communication interface D+ and the communication interface D- through the charging cable. The controller determines that there is currently a powered device that can be fast charged connected based on the electrical signal obtained by the communication interface D+ and the communication interface D-. Please refer to Figures 2 to 3 The following is an example of how the power supply device determines the access of the powered device through the communication interface D+ and the communication interface D-:
[0128] When the user connects the charging cable and the powered device to the power supply device, the power supply device first short-circuits the communication interface D+ and the communication interface D- by default, so that the powered device detects that the power supply device type is DCP (dedicated charging port mode), and then outputs a 5V voltage by default, and the powered device charges normally. If the powered device supports the fast charging protocol, the powered device starts to load 0.325V voltage on the communication interface D+ and maintains it for more than 1.25S. When the controller on the power supply device detects that the voltage on the communication interface D+ is 0.325V and maintains it for more than 1.25S, the power supply device disconnects the short circuit between the communication interface D+ and the communication interface D-. Since the communication interface D+ is disconnected from the communication interface D-, the voltage on the communication interface D- no longer follows the change of the communication interface D+, and the voltage begins to drop. When the powered device detects that the voltage on the communication interface D- starts to drop from 0.325V and maintains for more than 1ms, the high-voltage charging port starts to read the fast charging function voltage value. If it is 9000mv, the powered device sets the voltage on the communication interface D+ to 3.3V and the voltage on the communication interface D- to 0.6V. If it is 5000mv, the powered device sets the voltage on the communication interface D+ to 0.6V and the voltage on the communication interface D- to 0V. After the power supply device detects the voltage on the communication interface D+ and the communication interface D-, the controller adjusts the output voltage of the power supply device.
[0129] 505. If it is not determined according to the second charging interface information that there is a target powered device connected to the charging interface of the power supply device, obtain third charging interface information through pins CC1 and CC2 in the power supply device;
[0130] The controller obtains the third charging interface information through pins CC1 and CC2 in the power supply device. When the charging interface in the power supply device is connected to the device, the circuit structure in the power supply device will be changed so that the electrical signal in the circuit of the power supply device changes accordingly. The electrical signal received by pins CC1 and CC2 is the third charging interface information, and the controller will obtain the third charging interface information. The controller controls the circuit of the power supply device according to the change of the electrical signal.
[0131] Since the controller input / output port IO1 and the controller output port IO2 in the power supply device are detected by input floating detection, the controller input / output port IO1 is in a periodic alternation between the output high level and the input floating detection state. Therefore, when the controller input / output port IO1 is in the output high level state, the device access detection cannot be performed. At this time, other methods are required to perform the powered device access detection.
[0132] Furthermore, since it is impossible to determine whether the powered device meets the fast charging function, the communication interface D+ and the communication interface D- in the power supply device cannot perform access detection of the powered device.
[0133] At this time, the third charging interface information can be obtained through the pin CC1 and the pin CC2 in the power supply device, and the access detection of the powered device can be performed through the third charging interface information.
[0134] 506. Determine whether there is a target powered device connected to the charging interface of the power supply device according to the third charging interface information; if so, execute step 507;
[0135] The controller determines whether there is a target powered device connected to the charging interface of the power supply device according to the third charging interface information, that is, the controller determines whether there is a target powered device connected to the charging interface of the power supply device according to the charging interface information obtained from pins CC1 and CC2 in the power supply device.
[0136] Currently, the interfaces of power supply equipment are mostly Type-C, Lightning and Micro. The following description is based on these three interfaces. The charging cables corresponding to the above interfaces can be divided into the following types: Type-C cables without Emarker IC, Type-C cables with Emarker IC and Type-C to Lightning cables.
[0137] Among them, the above-mentioned charging cable or powered device CC pull-down resistor is set to R3 and R4, and the fixed resistance is 5.1KΩ. Usually, pins CC1 and CC2 in the power supply device can detect whether the powered device or charging cable has been flipped or connected to the powered device when connecting R3 or R4. However, since R3 and R4 can be in both the charging cable and the powered device, even if the power supply device detects R3 or R4, it can only confirm that there is a device connected, but cannot determine whether the connected device is a powered device plus a charging cable or only a charging cable.
[0138] Since it is not possible to determine whether a powered device is connected only by R3 and R4, another information is needed for further judgment - the charging cable with Emaker IC has a characteristic resistor R5, which is fixed to 1KΩ. When the pins CC1 and CC2 in the power supply device detect the characteristic resistor R5, it can be determined that there is a charging cable in the currently connected device, and the cable is a charging cable with Emaker IC. At this time, if the pins CC1 and CC2 detect R3 and R4, it can be determined that R3 and R4 come from the powered device rather than the charging cable, and then it is determined that there is a powered device in the device connected to the charging interface of the power supply device.
[0139] 507. If it is determined according to the first charging interface information, the second charging interface information or the third charging interface information that a target powered device is connected to the charging interface of the power supply device, then a powered device being charged on the power supply device is determined;
[0140] 508. Determine the requested charging capabilities of the powered device being charged and the target powered device;
[0141] 509. Adjust the output voltage for the power supply device according to the charging capabilities of the powered device being charged and the requested charging capabilities of the target powered device, and turn on the charging switch corresponding to the charging interface of the target powered device connected to the power supply device;
[0142] Steps 507 and 509 in this embodiment are similar to steps 303 and 305 in the above-mentioned embodiment, and are not described again here.
[0143] 510. Determine whether there is a powered device to end charging according to the controller charging current detection port IO3 in the power supply device;
[0144] The controller determines whether a powered device has finished charging, which is used to determine whether a charging mode conversion is required. There are two situations in which a powered device ends charging: one is that the powered device is fully charged, and the other is that the powered device connected to the power supply device is removed. Among them, the powered device connected to the power supply device is removed, and there are two situations in which the powered device and the charging cable are removed together, and only the powered device is removed. The controller needs to determine which situation is currently met based on the changes in the electrical signals in the power supply device.
[0145] The controller determines whether there is a powered device that has finished charging based on the controller charging current detection port IO3. The controller charging current detection port IO3 is a current detection port on the power supply device, which is used to detect the charging current of the powered device during the charging process. The working principle is as follows: When it is determined that a powered device is charging, within a preset time (for example, 5S), if the current detected by the controller charging current detection port IO3 is less than the minimum current threshold, it can be determined that there are two current situations. One is that the powered device corresponding to the charging interface has been charged. In order to protect itself, the powered device makes the charging current hindered by the powered device, which reduces the charging current; the other is that the powered device is removed by external force, resulting in charging cessation, which in turn causes the charging current to decrease. Both of the above situations can be regarded as being determined as the end of charging of the powered device.
[0146] 511. If it is determined according to the charging current detection port IO3 of the controller in the power supply device that a powered device has finished charging, then turn off the charging switch corresponding to the powered device that has finished charging on the power supply device;
[0147] When the controller determines that a powered device has finished charging according to the controller charging current detection port IO3 in the power supply device, the controller turns off the corresponding charging switch of the powered device that has finished charging on the power supply device, so that the charging interface stops being used.
[0148] 512. Determine the requested charging capacity of the remaining powered devices being charged on the power supply device;
[0149] The controller re-determines the requested charging capacity of the remaining powered devices being charged on the power supply device. This step 512 is similar to step 304 and will not be described in detail here.
[0150] 513. Adjust the output voltage according to the requested charging capabilities of the remaining powered devices being charged.
[0151] The controller adjusts the output voltage according to the requested charging capabilities of the remaining powered devices being charged. This step 513 is similar to step 305 and will not be described in detail herein.
[0152] In this embodiment, the first charging interface information of the power supply device is first obtained through the controller input and output port IO1 and the controller output port IO2 in the power supply device. Since the controller input and output port IO1 is in a periodic alternation state of output high level and input floating detection state, the first charging interface information obtained in the input floating detection state can be used to determine whether the charging interface of the power supply device has a target powered device connected, and if it is determined that a new target powered device is connected, the powered device being charged on the power supply device is determined. If it is not certain that a new target powered device is connected, it may be that the controller input and output port IO1 is in an output high level state, and the second charging interface information obtained by the communication interface D+ and the communication interface D- can be used to determine whether the charging interface of the power supply device has a target powered device connected, and if it is determined that a new target powered device is connected, the powered device being charged on the power supply device is determined. If it is not certain that a new target powered device is connected, it may be that the current powered device does not meet the fast charging function, and the third charging interface information obtained by the pins CC1 and CC2 in the power supply device can be used to determine whether the charging interface of the power supply device has a target powered device connected, and if it is determined that a new target powered device is connected, the powered device being charged on the power supply device is determined. Then determine the requested charging capacity of the powered device being charged and the target powered device, and finally adjust the output voltage for the power supply device according to the requested charging capacity of the powered device being charged and the target powered device, and turn on the charging switch corresponding to the charging interface of the target powered device connected to the power supply device. The controller input and output port IO1 and the controller output port IO2 are used to detect whether there is an electrical signal at the charging interface. The first charging interface information obtained in the input floating detection state can determine whether there is a powered device connected. The same detection effect is achieved for different charging interfaces, reducing the difficulty of the power supply device in detecting the access of the powered device.
[0153] Secondly, multiple interfaces and pins are used to jointly detect whether the power supply device is connected to the powered device, thereby improving the accuracy of detection.
[0154] See also Figure 6 The embodiment of the present application provides a device for detecting that a powered device is connected to a power supply device, including:
[0155] The first acquisition unit 601 is used to acquire the first charging interface information of the power supply device through the controller input and output port IO1 and the controller output port IO2 in the power supply device, wherein the power supply device is a single-input multi-output power supply device, the controller output port IO2 is in a continuous high-level output state, and the controller input and output port IO1 is in a periodic alternation state of outputting a high level and inputting a floating detection state;
[0156] A first determining unit 602 is configured to determine whether a target powered device is connected to the charging interface of the power supply device according to the first charging interface information;
[0157] A first determining unit 603, configured to determine a powered device being charged on the power supply device when the first determining unit determines that a target powered device is connected to the charging interface of the power supply device;
[0158] A second determining unit 604 is used to determine the requested charging capabilities of the powered device being charged and the target powered device;
[0159] The first adjusting unit 605 is configured to adjust the output voltage of the power supply device according to the charging capabilities of the powered device being charged and the target powered device, and turn on the charging switch corresponding to the charging interface of the target powered device connected to the power supply device.
[0160] See also Figure 7 The embodiment of the present application provides another device for detecting whether a powered device is connected to a power supply device, including:
[0161] The first acquisition unit 701 is used to acquire the first charging interface information of the power supply device through the controller input and output port IO1 and the controller output port IO2 in the power supply device, wherein the power supply device is a single-input multi-output power supply device, the controller output port IO2 is in a continuous high-level output state, and the controller input and output port IO1 is in a periodic alternation state of outputting a high level and inputting a floating detection state;
[0162] A first determining unit 702 is configured to determine whether a target powered device is connected to the charging interface of the power supply device according to the first charging interface information;
[0163] A second acquiring unit 703 is configured to acquire second charging interface information through the communication interface D+ and the communication interface D- in the power supply device when the first determining unit 702 determines that there is a target powered device connected to the charging interface of the power supply device;
[0164] A second determining unit 704 is configured to determine whether a target powered device is connected to the charging interface of the power supply device according to the second charging interface information;
[0165] A third acquisition unit 705 is configured to acquire third charging interface information through pin CC1 and pin CC2 in the power supply device when the second judgment unit 704 does not determine whether there is a target powered device connected to the charging interface of the power supply device;
[0166] A third determining unit 706 is configured to determine whether a target powered device is connected to the charging interface of the power supply device according to the third charging interface information;
[0167] A first determining unit 707, configured to determine a powered device being charged on the power supply device when the first determining unit 702, the second determining unit 704 or the third determining unit 706 determines that there is a target powered device connected to the charging interface of the power supply device;
[0168] A second determining unit 708, configured to determine the requested charging capabilities of the powered device being charged and the target powered device;
[0169] A first adjustment unit 709, configured to adjust the output voltage for the power supply device according to the charging capability of the powered device being charged and the requested charging capability of the target powered device, and to turn on a charging switch corresponding to the charging interface of the target powered device connected to the power supply device;
[0170] The fourth determination unit 710 is used to determine whether there is a powered device that has finished charging;
[0171] Optionally, the fourth determining unit 710 is specifically:
[0172] The charging is terminated by judging whether there is a powered device according to the charging current detection port IO3 of the controller in the power supply device.
[0173] A closing unit 711 is configured to close a charging switch corresponding to the powered device on the power supply device when the fourth determining unit 710 determines that the powered device has finished charging;
[0174] A third determining unit 712 is used to determine the requested charging capacity of the powered devices remaining on the power supply device that are being charged;
[0175] The second adjusting unit 713 is configured to adjust the output voltage according to the requested charging capability of the remaining powered devices being charged.
[0176] See also Figure 8 The embodiment of the present application provides another device for detecting whether a powered device is connected to a power supply device, including:
[0177] Processor 801, memory 802, input and output unit 803, bus 804;
[0178] The processor 801 is connected to the memory 802, the input and output unit 803 and the bus 804;
[0179] The processor 801 specifically performs the following operations:
[0180] The first charging interface information of the power supply device is obtained through the controller input and output port IO1 and the controller output port IO2 in the power supply device, the power supply device is a single-input multi-output power supply device, the controller output port IO2 is in a continuous high-level output state, and the controller input and output port IO1 is in a periodic alternation state of outputting a high level and inputting a floating detection state;
[0181] Determine whether there is a target powered device connected to the charging interface of the power supply device according to the first charging interface information;
[0182] If so, determining the powered device being charged on the power supply device;
[0183] Determining the requested charging capabilities of the powered device being charged and the target powered device;
[0184] The output voltage of the power supply device is adjusted according to the charging capability of the power receiving device being charged and the requested charging capability of the target power receiving device, and a charging switch corresponding to the charging interface of the power supply device connected to the target power receiving device is turned on.
[0185] In this embodiment, the function of the processor 801 is the same as that of the aforementioned Figure 3 The steps correspond to those in the embodiment shown in FIG5 , and are not described in detail here.
[0186] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0187] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0188] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0189] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0190] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), disk or optical disk and other media that can store program code.
Claims
1. A method for detecting that a powered device is connected to a power supply device, characterized in that: include: The first charging interface information of the power supply device is obtained through the controller input and output port IO1 and the controller output port IO2 in the power supply device, the power supply device is a single-input multi-output power supply device, the controller output port IO2 is in a continuous high-level output state, and the controller input and output port IO1 is in a periodic alternation state of outputting a high level and inputting a floating detection state; Determine whether there is a target powered device connected to the charging interface of the power supply device according to the first charging interface information; If so, determining the powered device being charged on the power supply device; Determining the requested charging capabilities of the powered device being charged and the target powered device; The output voltage of the power supply device is adjusted according to the charging capability of the power receiving device being charged and the requested charging capability of the target power receiving device, and a charging switch corresponding to the charging interface of the power supply device connected to the target power receiving device is turned on.
2. The method according to claim 1, characterized in that: After determining, according to the first charging interface information, whether a target powered device is connected to the charging interface of the power supply device, the method further includes: If not, obtain the second charging interface information through the communication interface D+ and the communication interface D- in the power supply device; Determine whether there is a target powered device connected to the charging interface of the power supply device according to the second charging interface information; If so, the powered device being charged on the power supply device is determined.
3. The method according to claim 2, characterized in that After determining whether a target powered device is connected to the charging interface of the power supply device according to the second charging interface information, the method further includes: If not, obtain the third charging interface information through pin CC1 and pin CC2 in the power supply device; Determine whether there is a target powered device connected to the charging interface of the power supply device according to the third charging interface information; If so, the powered device being charged on the power supply device is determined.
4. The method according to any one of claims 1 to 3, characterized in that After adjusting the output voltage for the target powered device and the powered device being charged according to the requested charging capability, and turning on the charging switch corresponding to the charging interface of the target powered device connected to the power supply device, the method further includes: Determine whether there is a powered device that ends charging; If so, turn off the charging switch corresponding to the powered device that has finished charging on the power supply device; Determining the requested charging capacity of the powered devices remaining on the power supply device and being charged; The output voltage is adjusted according to the requested charging capability of the remaining power receiving devices being charged.
5. The method according to claim 4, characterized in that The determining whether there is a powered device that ends charging includes: The charging is terminated by judging whether there is a powered device according to the charging current detection port IO3 of the controller in the power supply device.
6. A device for detecting that a powered device is connected to a power supply device, characterized in that: include: A first acquisition unit is used to acquire first charging interface information of the power supply device through the controller input-output port IO1 and the controller output port IO2 in the power supply device, wherein the power supply device is a single-input multi-output power supply device, the controller output port IO2 is in a continuous high-level output state, and the controller input-output port IO1 is in a periodic alternation state of outputting a high level and inputting a floating detection state; A first judging unit, configured to judge whether there is a target powered device connected to the charging interface of the power supply device according to the first charging interface information; a first determining unit, configured to determine a powered device being charged on the power supply device when the first determining unit determines that a target powered device is connected to the charging interface of the power supply device; a second determining unit, configured to determine the requested charging capabilities of the powered device being charged and the target powered device; The first adjustment unit is used to adjust the output voltage of the power supply device according to the charging capability of the power receiving device being charged and the requested charging capability of the target power receiving device, and turn on the charging switch corresponding to the charging interface of the power supply device through which the target power receiving device is connected.
7. The device according to claim 6, characterized in that The device also includes: a second acquiring unit, configured to acquire second charging interface information through the communication interface D+ and the communication interface D- in the power supply device when the first determining unit does not determine whether the target powered device is connected to the charging interface of the power supply device; A second judgment unit, configured to judge whether there is a target powered device connected to the charging interface of the power supply device according to the second charging interface information; The first determining unit is further configured to determine a powered device being charged on the power supply device when the second determining unit determines that a target powered device is connected to the charging interface of the power supply device.
8. The device according to claim 7, characterized in that The device also includes: a third acquiring unit, configured to acquire third charging interface information through pin CC1 and pin CC2 in the power supply device when the second determining unit does not determine whether a target powered device is connected to the charging interface of the power supply device; A third judgment unit, configured to judge whether there is a target powered device connected to the charging interface of the power supply device according to the third charging interface information; The first determining unit is further configured to determine a powered device being charged on the power supply device when the third determining unit determines that a target powered device is connected to the charging interface of the power supply device.
9. The device according to any one of claims 6 to 8, characterized in that The device also includes: A fourth determination unit, used to determine whether there is a powered device that has finished charging; A closing unit, configured to close a charging switch corresponding to the powered device that has finished charging on the power supply device when the fourth judgment unit determines that the powered device has finished charging; a third determining unit, configured to determine a requested charging capacity of the remaining powered devices being charged on the power supply device; The second adjustment unit is configured to adjust the output voltage according to the requested charging capability of the remaining powered devices being charged.
10. A circuit for detecting that a powered device is connected to a power supply device, characterized in that: include: A controller, a voltage input terminal, a first charging switch, a second charging switch, a first charging interface, and a second charging interface; The voltage input terminal is respectively coupled to the first charging switch, the second charging switch and the controller; The first charging switch is connected to the controller and the V2 voltage output terminal of the first charging interface respectively, and the first charging switch is used to connect to the device to be detected and obtain the electrical signal sent by the connected device to be detected; The second charging switch is respectively connected to the controller and the V3 voltage output terminal of the second charging interface; The controller is provided with a controller input / output port IO1 and a controller output port IO2. The controller output port IO2 is connected to the resistor R2 and the diode D1 in sequence, and then connected to the V2 voltage output terminal of the first charging interface. The controller input / output port IO1 is connected between the resistor R2 and the diode. The controller output port IO2 is in a state of continuously outputting a high level, and the controller input / output port IO1 is in a state of alternating between an output high level and an input floating detection state; The controller is provided with a communication interface D+ and a communication interface D-, the communication interface D+ is connected to the D+ end of the first charging interface, and the communication interface D- is connected to the D- end of the first charging interface; The controller is provided with a pin CC1 and a pin CC2, the pin CC1 is connected to the CC1 end of the first charging interface, and the pin CC2 is connected to the CC2 end of the first charging interface; The controller is provided with a controller charging current detection port IO3, and the controller charging current detection port IO3 is connected to the charging current detection end of the first charging interface.
Citation Information
Patent Citations
Circuit for detecting access of power receiving equipment to power supply equipment
CN215009656U