Disclosure of Invention
An embodiment of the present application provides a method for detecting that a powered device is connected to a power supply device, where the method includes:
The method comprises the steps that first charging interface information of power supply equipment is obtained through a controller input output port IO1 and a controller output port IO2 in the power supply equipment, the power supply equipment is single-input multi-output power supply equipment, the controller output port IO2 is in a continuous output high level state, and the controller input output port IO1 is in a periodic alternating state of output high level and input floating detection state;
Judging whether a target powered device is accessed from a charging interface of the power supply device according to the first charging interface information;
if yes, determining the power receiving equipment which is being charged on the power supply equipment;
Determining a charging request capability of the charging-proceeding power receiving device and the target power receiving device;
and adjusting output voltage for the power supply equipment according to the charging request capability of the power receiving equipment which is being charged and the target power receiving equipment, and starting a charging switch corresponding to a charging interface of the power supply equipment which is accessed by the target power receiving equipment.
Optionally, after the determining, according to the first charging interface information, whether there is an access of the target powered device from the charging interface of the power supply device, the method further includes:
if not, acquiring second charging interface information through a communication interface D+ and a communication interface D-in the power supply equipment;
Judging whether a target powered device is accessed from a charging interface of the power supply device according to the second charging interface information;
if yes, determining the power receiving equipment which is being charged on the power supply equipment.
Optionally, after the determining, according to the second charging interface information, whether there is an access of the target powered device from the charging interface of the power supply device, the method further includes:
if not, acquiring third charging interface information through a pin CC1 and a pin CC2 in the power supply equipment;
judging whether a target powered device is accessed from a charging interface of the power supply device according to the third charging interface information;
if yes, determining the power receiving equipment which is being charged on the power supply equipment.
Optionally, after the adjusting the output voltage for the target power receiving device and the power receiving device that is being charged according to the charging request capability, and opening a charging switch corresponding to a charging interface of the power supply device to which the target power receiving device is connected, the method further includes:
judging whether the powered device finishes charging;
If so, closing a charging switch corresponding to the power receiving equipment which finishes charging on the power supply equipment;
determining a charging request capability of a power receiving device which is remained on the power supply device and is being charged;
and adjusting output voltage according to the request charging capacity of the residual charging powered device.
Optionally, the determining whether the powered device ends charging includes:
and judging whether the powered device is in charge according to a controller charging current detection port IO3 in the power supply device.
A second aspect of the embodiment of the present application provides an apparatus for detecting that a powered device is connected to a power sourcing equipment, including:
The first obtaining unit is configured to obtain first charging interface information of a power supply device through a controller input output port IO1 and a controller output port IO2 in the power supply device, where the power supply device is a single-input multiple-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 periodically alternating between outputting the high level and inputting a floating detection state;
a first judging unit, configured to judge whether a target powered device accesses from a charging interface of the power supply device according to the first charging interface information;
a first determining unit configured to determine, when the first judging unit determines that there is a target power receiving device that is accessed from a charging interface of the power supply device, a power receiving device on the power supply device that is being charged;
a second determination unit configured to determine a charging request capability of the charging-underway power receiving apparatus and the target power receiving apparatus;
and the first adjusting unit is used for adjusting output voltage for the power supply equipment according to the charging request capability of the power receiving equipment which is being charged and the target power receiving equipment, and starting a charging switch corresponding to a charging interface of the power supply equipment to which the target power receiving equipment is connected.
Optionally, the apparatus further includes:
a second obtaining unit, configured to obtain second charging interface information through a communication interface d+ and a communication interface D-in the power supply apparatus when the first judging unit does not determine that there is a target power receiving apparatus accessed from the charging interface of the power supply apparatus;
a second judging unit, configured to judge whether a target powered device accesses from a charging interface of the power supply device according to the second charging interface information;
The first determining unit is further configured to determine, when the second determining unit determines that there is a target powered device that is accessed from the charging interface of the power supply device, a powered device on the power supply device that is being charged.
Optionally, the apparatus further includes:
A third acquiring unit configured to acquire third charging interface information through a pin CC1 and a pin CC2 in the power supply apparatus when the second judging unit does not determine that there is an access of the target power receiving apparatus from the charging interface of the power supply apparatus;
A third judging unit, configured to judge whether a target powered device is accessed from a charging interface of the power supply device according to the third charging interface information;
The first determining unit is further configured to determine, when the third determining unit determines that there is a target powered device that is accessed from the charging interface of the power supply device, a powered device on the power supply device that is being charged.
Optionally, the apparatus further includes:
A fourth judging unit configured to judge whether or not the powered apparatus is present to end charging;
A closing unit, configured to close a charging switch corresponding to the power supply device of the power receiving device that ends charging when the fourth judging unit determines that the power receiving device ends charging;
a third determination unit configured to determine a charging request capability of a power receiving apparatus that is being charged remaining on the power supply apparatus;
and the second adjusting unit is used for adjusting the output voltage according to the request charging capability of the residual power receiving equipment which is being charged.
Optionally, the fourth judging unit specifically includes:
and judging whether the powered device is in charge according to a controller charging current detection port IO3 in the power supply device.
A third aspect of the embodiment of the present application provides an apparatus for detecting that a powered device is connected to a power sourcing equipment, including:
The device comprises a processor, a memory, an input/output unit and a bus;
The processor is connected with the memory, the input/output unit and the bus;
the processor specifically performs the following operations:
The method comprises the steps that first charging interface information of power supply equipment is obtained through a controller input output port IO1 and a controller output port IO2 in the power supply equipment, the power supply equipment is single-input multi-output power supply equipment, the controller output port IO2 is in a continuous output high level state, and the controller input output port IO1 is in a periodic alternating state of output high level and input floating detection state;
Judging whether a target powered device is accessed from a charging interface of the power supply device according to the first charging interface information;
if yes, determining the power receiving equipment which is being charged on the power supply equipment;
Determining a charging request capability of the charging-proceeding power receiving device and the target power receiving device;
and adjusting output voltage for the power supply equipment according to the charging request capability of the power receiving equipment which is being charged and the target power receiving equipment, and starting a charging switch corresponding to a charging interface of the power supply equipment which is accessed by the target power receiving equipment.
Optionally, the processor is further configured to perform the operations of any of the alternatives in the first aspect.
A fourth aspect of the present application provides a circuit for detecting access of a powered device to a power sourcing equipment, including:
the device comprises a controller, a voltage input end, a first charging switch, a second charging switch, a first charging interface and a second charging interface;
The voltage input end is respectively coupled with the first charging switch, the second charging switch and the controller;
The first charging switch is respectively connected with the controller and the V2 voltage output end of the first charging interface, and is used for connecting equipment to be detected and acquiring an electric signal sent by the equipment to be detected;
the second charging switch is respectively connected with the controller and the V3 voltage output end of the second charging interface;
the controller is provided with a controller input/output port IO1 and a controller output port IO2, wherein the controller output port IO2 is sequentially connected with a resistor R2 and a diode D1 and then connected with a V2 voltage output end 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 continuous output high level state, and the controller input/output port IO1 is in a periodic alternating state of output high level and input float detection state;
the controller is provided with a communication interface D+ and a communication interface D-, wherein the communication interface D+ is connected with the D+ end of the first charging interface, and the communication interface D-is connected with 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 with the CC1 end of the first charging interface, and the pin CC2 is connected with 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 with a charging current detection end of the first charging interface.
From the above technical solutions, the embodiment of the present application has the following advantages:
In this embodiment, first charging interface information of the power supply device is obtained through the controller input/output port IO1 and the controller output port IO2 in the power supply device. Because the input/output port IO1 of the controller is in a state where the output high level and the input float detection state are periodically alternated, the first charging interface information obtained in the input float detection state can be used to determine whether the charging interface of the power supply device has the target power receiving device accessed from the power source device, if so, the power receiving device on the power supply device that is being charged is determined. And determining the request charging capacities of the charging power receiving equipment and the target power receiving equipment, adjusting the output voltage for the power supply equipment according to the request charging capacities of the charging power receiving equipment and the target power receiving equipment, and starting a charging switch corresponding to a charging interface of the power supply equipment to which the target power receiving equipment is connected. Whether the electric signal exists at the charging interface is detected through the controller input/output port IO1 and the controller output port IO2, whether the power receiving equipment is connected or not can be determined according to the first charging interface information acquired in the input floating detection state, the same detection effect is achieved for different charging interfaces, and the difficulty of connection detection of the power supply equipment to the power receiving equipment is reduced.
Detailed Description
In order to better understand the technical solutions of the present invention, the following description will clearly and completely describe the technical solutions of the embodiments of the present invention with reference to the drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, shall fall within the scope of the invention.
The embodiment of the application discloses a method and a device for detecting access of power receiving equipment to power supply equipment, which are used for reducing the difficulty of access detection of the power supply equipment to the power receiving equipment.
Referring to fig. 1 to 2, an embodiment of the present application provides a circuit for detecting that a powered device accesses a power supply device, including:
the device comprises a controller 1, a voltage input end 2, a first charging switch 3, a second charging switch 4, a first charging interface 5 and a second charging interface 6;
The voltage input terminal 2 is respectively coupled with the first charging switch 3, the second charging switch 4 and the controller 1;
the first charging switch 3 is respectively connected with the controller 1 and the V2 voltage output end of the first charging interface 5, and the first charging switch 3 is used for connecting the equipment to be detected 7 and acquiring an electric signal sent by the equipment to be detected 7;
The second charging switch 4 is respectively connected with the controller 1 and the V3 voltage output end of the second charging interface 6;
The controller 1 is provided with a controller input/output port IO1 and a controller output port IO2, the controller output port IO2 is sequentially connected with a resistor R2 and a diode D1 and then connected with a V2 voltage output end 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 continuous output high level state, and the controller input/output port IO1 is in a periodic alternating state of output high level and input float detection state;
the controller 1 is provided with a communication interface D+ and a communication interface D-, wherein the communication interface D+ is connected with the D+ end of the first charging interface, and the communication interface D-is connected with the D-end of the first charging interface;
The controller 1 is provided with a pin CC1 and a pin CC2, the pin CC1 is connected with the CC1 end of the first charging interface, and the pin CC2 is connected with the CC2 end of the first charging interface;
The controller 1 is provided with a controller charging current detection port IO3, and the controller charging current detection port IO3 is connected with a charging current detection end of the first charging interface.
In fig. 2, there are only two outputs, so that for convenience of description of the function, there may be theoretically more than two outputs. Also, to describe the process of access detection, only the communication interface d+ and communication interface D-, pin CC1 and pin CC2, controller input output port IO1 and controller output port IO2, and controller charging current detection port IO3 are depicted for the first charging interface 5.
The following describes a structure and a function of a circuit for detecting that a power receiving apparatus is connected to a power supply apparatus:
The voltage input terminal 2 includes a voltage input port V1 and a capacitor C1, and the voltage input terminal 2 is mainly used for inputting a voltage according to an instruction of the controller 1, so that the controller 1 regulates the output voltage.
The charging switch 3 and the charging switch 4 are mainly composed of resistors and mos tubes, and are regulated by the controller 1, and are mainly used for switching on and off functions when a powered device is connected or disconnected.
The first charging interface 5 and the second charging interface 6 are adapted to a charging port of the powered device, and mainly acquire information through the charging port of the powered device, and transmit electric signals to the controller 1 through ports such as the controller input output port IO1, the controller output port IO2, the communication interface D+ and the communication interface D-, the pins CC1 and CC2, and the like.
The controller input/output port IO1 and the controller output port IO2 are structures for detecting the access of the point receiving equipment, wherein the controller output port IO2 is in a state of continuously outputting high level, and the controller input/output port IO1 is in a state of periodically alternating between the output high level and the input floating detection state. In the detection process, a resistor Rz exists, and Rz is the equivalent impedance of positive and negative leakage current of the charging cable, the power receiving device or the charging cable and the power receiving device. The Lightning wire has a characteristic value Rz, and a detection voltage range can be calculated and generated through the Rz, and the detection voltage range can be described as VL1-lth and VL1-hth. When the power receiving device is not connected in the input floating detection mode, the detected voltage range falls on VL1-lth and VL1-hth, when the first charging interface 5 of the power supply device is connected with the charging cable and the power receiving device, the whole circuit structure is changed due to the connection of the power receiving device, and the voltage measured by the voltage input output port V2 of the controller input output port IO1 in the input floating detection mode can be larger than VL1-hth or smaller than VL1-lth, so that the connection of the power receiving device can be determined. Wherein more than VL1-hth or less than VL1-lth depends on whether the powered device and the first charging interface 5 are flipped.
The communication interface d+ and the communication interface D-are used as interfaces for detecting whether the powered device accords with the fast charging protocol, i.e. determining whether the accessed powered device can perform the fast charging function. When the communication interface d+ and the communication interface D-receive the first charging interface 5 information, the controller 1 can determine that the powered device can perform quick charging, and directly determine that the powered device must exist in the currently accessed device instead of only the charging cable. The charging cable does not have the capability of sending the information of the first charging interface 5 to the communication interface d+ and the communication interface D-, and only the powered device transmits an electric signal to the communication interface d+ and the communication interface D-through the charging cable, and the controller 1 determines that the powered device capable of performing fast charging is currently connected according to the electric signal obtained by the communication interface d+ and the communication interface D-. Referring to fig. 1 to 2, the following illustrates the determination of the power supply device access through the communication interface d+ and the communication interface D-by the power supply device:
When a user connects the charging cable and the power receiving device to the power supply device, the power supply device firstly defaults to short-circuit the communication interface D+ and the communication interface D-, so that the power receiving device detects that the power supply device is of a special charging port mode, and at the moment, defaults to output 5V voltage, and the power receiving device is charged normally. If the powered device supports the fast charge protocol, the powered device begins to load 0.325V voltage on the communication interface D+ and maintains above 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 to exceed 1.25S, the power supply device disconnects the short circuit between the communication interface d+ and the communication interface D-, and the voltage on the communication interface D-does not change along with the communication interface d+ because the communication interface d+ is disconnected from the communication interface D-, and at the moment, the voltage starts to drop. When the powered device detects that the voltage on the communication interface D-is reduced from 0.325V and maintained for more than 1ms, the high-voltage charging port starts to read the voltage value of the quick charging function, if 9000mv, the powered device is arranged on the communication interface D+ and has the voltage of 3.3V, the voltage on the communication interface D-is 0.6V, and if 5000mv, the powered device is arranged on the communication interface D+ and has the voltage of 0.6V, and the voltage on the communication interface D-is 0V. After the power supply device detects the voltages on the communication interface d+ and the communication interface D-, the controller 1 adjusts the output voltage of the power supply device.
The pins CC1 and CC2 are mainly used for detecting whether the accessed device is overturned or not, and can also detect some types of charging cables so as to detect the device at the point. The power supply device is based on the principle that the interfaces of the current power supply device are three types, namely Type-C, lightning and Micro, and the following description is based on the three interfaces. The charging cables corresponding to the above interfaces may be classified into a Type-C cable without EMARKER IC, a Type-C cable with EMARKER IC, and a Type-C to lighting cable. The charging cable or the power receiving device CC pull-down resistor is set to R3 and R4, and the fixed resistance is set to 5.1kΩ. Typically, pin CC1 and pin CC2 in the power supply device may detect whether the powered device or the charging cable is flipped or connected when R3 or R4 is connected. However, since R3 and R4 may be in the charging cable or the power receiving device, even if R3 or R4 is detected by the power supply device, the power supply device can only confirm that there is device access, and cannot determine whether the accessed device is the power receiving device plus the charging cable or only the charging cable. Since it cannot be determined whether the powered apparatus is connected only by R3 and R4, further determination needs to be made by another information that the charging cable of the belt Emaker IC has a characteristic resistance R5 fixed to 1kΩ. When the pin CC1 and the pin CC2 in the power supply device detect the characteristic resistor R5, it can be determined that a charging cable exists in the currently accessed device, and the charging cable is a charging cable with a band Emaker IC, at this time, if the pin CC1 and the pin CC2 detect R3 and R4, it can be determined that R3 and R4 come from a power receiving device instead of the charging cable, and further it is determined that the power receiving device exists in the device accessed to the first charging interface 5 of the power supply device.
The controller charging current detection port IO3 is a current detection port on the power supply apparatus for detecting a charging current during charging of the power receiving apparatus. The working principle is that when it is determined that the powered device is charged, in a preset time (for example, 5S), if the current detected by the charging current detection port IO3 of the controller is smaller than the lowest current threshold, it can be determined that two current conditions exist, firstly, the powered device corresponding to the first charging interface 5 is charged, and in order to protect the powered device, the charging current is blocked by the powered device, so that the charging current is reduced, and secondly, the powered device is removed by an external force, so that charging is stopped, and further the charging current is reduced. Both of the above cases may end charging as determined as the powered device.
In this embodiment, the method for detecting that the powered device is connected to the power supply device may be implemented in a system, may be implemented in a server, or may be implemented in a terminal, and is not specifically limited. For convenience of description, embodiments of the present application will be described using a controller for an execution body example.
Referring to fig. 3, an embodiment of the present application provides a method for detecting that a powered device is connected to a power supply device, including:
301. The method comprises the steps that first charging interface information of power supply equipment is obtained through a controller input output port IO1 and a controller output port IO2 in the power supply equipment, the power supply equipment is single-input multi-output power supply equipment, the controller output port IO2 is in a continuous output high level state, and the controller input output port IO1 is in a periodic alternating state of output high level and input floating detection state;
The controller changes the circuit structure in the power supply equipment when the charging interface in the power supply equipment is connected to the equipment through the first charging interface information acquired by the controller input/output port IO1 and the controller output port IO2 in the power supply equipment, so that the electric signals in the circuit of the power supply equipment correspondingly change. Because the electric signals received by the two ports of the controller input/output port IO1 and the controller output port IO2 are the first charging interface information, the controller can acquire the first charging interface information, and the controller can control the circuit of the power supply equipment according to the change of the electric signals.
The device to which the power supply device is connected may be a charging cable (no power receiving device), or may be a charging cable and a target power receiving device, which is not limited herein. It should be noted that, the controller can determine whether the device accessed by the current power supply device includes the target power receiving device through the charging interface information, so as to control whether the power supply device conducts and transmits electric energy for the charging interface.
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 a plurality of power receiving devices.
302. Judging whether a target powered device is accessed from a charging interface of the power supply device according to the first charging interface information, if so, executing step 303;
The controller judges whether the target powered device is accessed from the charging interface of the power supply device or not according to the first charging interface information acquired by the controller input/output port IO1 and the controller output port IO2 in the power supply device.
Referring to fig. 1 and 2, a controller input/output port IO1 and a controller output port IO2 are provided on a power supply device, wherein a resistor R2 is connected with the controller output port IO2, and is commonly connected with the controller input/output port IO1 and a diode D1, which is connected with the device at a charging interface when the device is connected. The controller output port IO2 is in a state of continuously outputting voltage, that is, always keeps outputting a high level, and the controller input output port IO1 is in a state of periodically alternating between outputting the high level and inputting the float detection state. In the odd cycles, the controller input output port IO1 outputs 1 (output voltage), and in the even cycles, the controller input output port IO1 is set to input float detection.
In the input/output port IO1 of the controller, in the input/float detection mode, whether a powered device is connected can be determined by detecting the magnitude of an input electrical signal.
Referring to fig. 4, fig. 4 is a schematic diagram of a detection waveform of the input/output port IO1 of the controller, and the detection principle is that, first, in the detection process, a resistor Rz is present, where the resistor Rz is the equivalent impedance of the positive leakage current and the negative leakage current of the charging cable, the power receiving device or the charging cable+the power receiving device. The Lightning wire has a characteristic value Rz, and a detection voltage range can be calculated and generated through the Rz, and the upper limit and the lower limit of the detection voltage range can be described as two values VL1-lth and VL1-hth. When the controller input/output port IO1 is in the input floating detection mode and the power receiving device is not connected, the detected voltage range falls in the range of VL1-lth and VL1-hth, and when the charging interface of the power supply device is connected with the charging cable and the target power receiving device, the controller input/output port IO1 is in the input floating detection mode and the measured voltage is larger than VL1-hth or smaller than VL1-lth due to the connection of the power receiving device, and then the connection of the target power receiving device can be determined.
303. If the fact that the target power receiving equipment is accessed from the charging interface of the power supply equipment is determined according to the first charging interface information, determining the power receiving equipment which is being charged on the power supply equipment;
when the controller determines that there is a target powered device that is accessed from the charging interface of the power supply device, it is necessary to determine that the powered device on the power supply device is charging. When the target powered device is connected to the power supply device, a preset charging voltage needs to be output to each charging interface according to the running condition of the current power supply device.
304. Determining a charging request capability of the charging-proceeding power receiving device and the target power receiving device;
The controller determines the request charging capacity of the charging power receiving device and the target power receiving device, wherein the request charging capacity is the charging voltage bearing range of the power receiving device. The controller determines a powered device that is currently charging by the power supply device and a target powered device.
305. And adjusting output voltage for the power supply equipment according to the charging request capability of the power receiving equipment which is being charged and the target power receiving equipment, and starting a charging switch corresponding to a charging interface of the power supply equipment which is accessed by the target power receiving equipment.
The controller adjusts output voltage for the power supply equipment according to the charging request capability of the power supply equipment which is in charging and the target power supply equipment, and opens a charging switch corresponding to a charging interface of the target power supply equipment which is connected to the power supply equipment.
The controller distributes charging voltage to each powered device according to a preset rule according to the charging request capability of each powered device to be charged, so that the powered device is not damaged while the charging efficiency is improved. After the power supply equipment adjusts the charging voltage of each charging interface, a charging switch corresponding to the charging interface of the power supply equipment, which is accessed by the target power receiving equipment, can be started, and the charging of the target power receiving equipment is started.
The preset rule of adjusting the voltage is various, and the preset rule may be that after the required charging capability of the powered device is determined, the preset rule is adjusted according to the current electric quantity of the powered device so that the powered device with low electric quantity distributes higher charging voltage, or may be that after the required charging capability of the powered device is determined, the powered device which is accessed first distributes higher charging voltage according to the access sequence of the powered device, which is not limited herein.
In this embodiment, first charging interface information of the power supply device is obtained through the controller input/output port IO1 and the controller output port IO2 in the power supply device. Because the input/output port IO1 of the controller is in a state where the output high level and the input float detection state are periodically alternated, the first charging interface information obtained in the input float detection state can be used to determine whether the charging interface of the power supply device has the target power receiving device accessed from the power source device, if so, the power receiving device on the power supply device that is being charged is determined. And determining the request charging capacities of the charging power receiving equipment and the target power receiving equipment, adjusting the output voltage for the power supply equipment according to the request charging capacities of the charging power receiving equipment and the target power receiving equipment, and starting a charging switch corresponding to a charging interface of the power supply equipment to which the target power receiving equipment is connected. Whether the electric signal exists at the charging interface is detected through the controller input/output port IO1 and the controller output port IO2, whether the power receiving equipment is connected or not can be determined according to the first charging interface information acquired in the input floating detection state, the same detection effect is achieved for different charging interfaces, and the difficulty of connection detection of the power supply equipment to the power receiving equipment is reduced.
In the above embodiment, regarding how to determine whether the target power receiving device is connected from the charging interface of the power supply device, there are other ways to perform the determination, and the determination process is described in detail below.
Referring to fig. 5-1 and fig. 5-2, an embodiment of the present application provides a method for detecting that a powered device is connected to a power supply device, including:
501. The method comprises the steps that first charging interface information of power supply equipment is obtained through a controller input output port IO1 and a controller output port IO2 in the power supply equipment, the power supply equipment is single-input multi-output power supply equipment, the controller output port IO2 is in a continuous output high level state, and the controller input output port IO1 is in a periodic alternating state of output high level and input floating detection state;
502. Judging whether a target powered device is accessed from a charging interface of the power supply device according to the first charging interface information, if so, executing step 507, otherwise, executing step 503;
steps 501 and 502 in this embodiment are similar to steps 301 and 302 in the previous embodiment, and will not be described again.
503. If the existence of the target powered device is not determined to be accessed from the charging interface of the power supply device according to the first charging interface information, acquiring second charging interface information through a communication interface D+ and a communication interface D-in the power supply device;
the controller changes the circuit structure in the power supply equipment through the second charging interface information acquired by the communication interface D+ and the communication interface D-in the power supply equipment when the charging interface in the power supply equipment is connected with the equipment, so that the electric signals in the circuit of the power supply equipment correspondingly change. The electric signals received by the two ports of the communication interface D+ and the communication interface D-are the second charging interface information, and the controller can acquire the second charging interface information. And the controller performs circuit control on the power supply equipment according to the change of the electric signal.
Because the controller input/output port IO1 and the controller output port IO2 in the power supply device are detected through input floating detection, the controller input/output port IO1 is in a state of periodically alternating between an output high level state and an input floating detection state, when the controller input/output port IO1 is in the output high level state, device access cannot be detected, and at this time, power receiving device access detection needs to be performed through other modes. At this time, the access detection of the powered device can be performed through the second charging interface information acquired through the communication interface d+ and the communication interface D-in the power supply device.
504. Judging whether a target powered device is accessed from a charging interface of the power supply device according to the second charging interface information, if so, executing step 507, otherwise, executing step 505;
The controller judges whether the target power receiving device is accessed from the charging interface of the power supply device according to the second charging interface information, namely, the controller judges whether the target power receiving device is accessed from the charging interface of the power supply device according to the charging interface information acquired by the communication interface D+ and the communication interface D-in the power supply device.
The communication interface d+ and the communication interface D-are used as interfaces for detecting whether the powered device accords with the fast charging protocol, i.e. determining whether the accessed 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 the powered device can perform quick charging, and directly determine that the powered device is necessarily present in the currently accessed device instead of only the charging cable. The charging cable does not have the capability of sending charging interface information to the communication interface D+ and the communication interface D-, only the powered device transmits an electric signal to the communication interface D+ and the communication interface D-through the charging cable, and the controller determines that the powered device capable of performing quick charging is accessed currently according to the electric signal obtained by the communication interface D+ and the communication interface D-. Referring to fig. 2 to 3, the following illustrates the determination of the power supply device access through the communication interface d+ and the communication interface D-by the power supply device:
When a user connects a charging cable and a power receiving device to a power supply device, the power supply device firstly defaults to short-circuit a communication interface D+ and the communication interface D-, so that the power receiving device detects that the power supply device is of a DCP (dedicated charging port mode), and at the moment, defaults to output 5V voltage, and the power receiving device is charged normally. If the powered device supports the fast charge protocol, the powered device begins to load 0.325V voltage on the communication interface D+ and maintains above 1.25S. When the controller on the power supply equipment detects that the voltage on the communication interface D+ is 0.325V and is maintained to be more than 1.25S, the power supply equipment breaks the short circuit between the communication interface D+ and the communication interface D-, and the voltage on the communication interface D-is not changed along with the communication interface D+ because the communication interface D+ is disconnected from the communication interface D-, and then the voltage starts to drop. When the powered device detects that the voltage on the communication interface D-is reduced from 0.325V and maintained for more than 1ms, the high-voltage charging port starts to read the voltage value of the quick charging function, if 9000mv, the powered device is arranged on the communication interface D+ and has the voltage of 3.3V, the voltage on the communication interface D-is 0.6V, and if 5000mv, the powered device is arranged on the communication interface D+ and has the voltage of 0.6V, and the voltage on the communication interface D-is 0V. After the power supply device detects the voltages on the communication interface D+ and the communication interface D-, the controller adjusts the output voltage of the power supply device.
505. If the existence of the target power receiving equipment is not determined to be accessed from the charging interface of the power supply equipment according to the second charging interface information, acquiring third charging interface information through a pin CC1 and a pin CC2 in the power supply equipment;
The controller changes the circuit structure of the power supply equipment when the charging interface in the power supply equipment is connected to the equipment through the third charging interface information acquired by the pins CC1 and CC2 in the power supply equipment, so that the electric signals in the circuit of the power supply equipment correspondingly change. The electrical signals received by the two ports of the pin CC1 and the pin CC2 are the third charging interface information, and the controller obtains the third charging interface information. And the controller performs circuit control on the power supply equipment according to the change of the electric signal.
Because the controller input/output port IO1 and the controller output port IO2 in the power supply device are detected through input floating detection, the controller input/output port IO1 is in a state of periodically alternating between an output high level state and an input floating detection state, when the controller input/output port IO1 is in the output high level state, device access cannot be detected, and at this time, power receiving device access detection needs to be performed through other modes.
And the powered device cannot be determined to be in accordance with the quick charging function, so that the communication interface D+ and the communication interface D-in the power supply device cannot be used for detecting the access of the powered device.
At this time, the access detection of the power receiving device is performed through the third charging interface information acquired through the pin CC1 and the pin CC2 in the power supply device.
506. Judging whether a target powered device is accessed from a charging interface of the power supply device according to the third charging interface information, if so, executing step 507;
The controller judges whether the target power receiving device is accessed from the charging interface of the power supply device according to the third charging interface information, namely, the controller judges whether the target power receiving device is accessed from the charging interface of the power supply device according to the charging interface information acquired by the pin CC1 and the pin CC2 in the power supply device.
At present, the interfaces of power supply equipment are three types, namely Type-C, lightning and Micro, and the interfaces are described below on the basis of the three types of interfaces. The charging cables corresponding to the above interfaces may be classified into a Type-C cable without EMARKER IC, a Type-C cable with EMARKER IC, and a Type-C to lighting cable.
The charging cable or the power receiving device CC pull-down resistor is set to R3 and R4, and the fixed resistance is set to 5.1kΩ. Typically, pin CC1 and pin CC2 in the power supply device may detect whether the powered device or the charging cable is flipped or connected when R3 or R4 is connected. However, since R3 and R4 may be in the charging cable or the power receiving device, even if R3 or R4 is detected by the power supply device, the power supply device can only confirm that there is device access, and cannot determine whether the accessed device is the power receiving device plus the charging cable or only the charging cable.
Since it cannot be determined whether the powered apparatus is connected only by R3 and R4, further determination needs to be made by another information that the charging cable of the belt Emaker IC has a characteristic resistance R5 fixed to 1kΩ. When the pin CC1 and the pin CC2 in the power supply equipment detect the characteristic resistor R5, the existence of a charging cable in the equipment which is accessed at present can be determined, and the cable is the charging cable with the band Emaker IC, at this time, if the pin CC1 and the pin CC2 detect R3 and R4, the existence of the power receiving equipment in the equipment which is accessed to the charging interface of the power supply equipment can be determined by the R3 and the R4 from the power receiving equipment instead of the charging cable.
507. If the fact that the target power receiving equipment is accessed from the charging interface of the power supply equipment is determined according to the first charging interface information, the second charging interface information or the third charging interface information, the power receiving equipment which is in charging on the power supply equipment is determined;
508. determining a charging request capability of the charging-proceeding power receiving device and the target power receiving device;
509. Adjusting output voltage for the power supply equipment according to the charging request capacity of the power receiving equipment which is being charged and the target power receiving equipment, and starting a charging switch corresponding to a charging interface of the power supply equipment which is accessed by the target power receiving equipment;
steps 507 and 509 in this embodiment are similar to steps 303 and 305 in the previous embodiment, and will not be repeated here.
510. Judging whether a powered device is in charge according to a controller charging current detection port IO3 in the power supply device;
The controller determines whether or not the powered device ends charging, for determining whether or not a transition of the charging mode is required. There are two cases in which the power receiving apparatus ends the charging, one is that the power receiving apparatus is fully charged, and the other is that the power receiving apparatus connected to the power supply apparatus is removed. In which the powered device connected to the power supply device is removed, there are two cases in which the powered device is removed together with the charging cable and only the powered device is removed. The controller needs to determine which case is currently met based on the change in the electrical signal in the power supply device.
The controller determines whether the powered device is present to end charging according to the controller charging current detection port IO 3. The controller charging current detection port IO3 is a current detection port on the power supply apparatus for detecting a charging current during charging of the power receiving apparatus. The working principle is that when the powered device is judged to be charged, in a preset time (for example, 5S), if the current detected by the charging current detection port IO3 of the controller is smaller than the lowest current threshold value, two kinds of current conditions can be determined, namely, the powered device corresponding to the charging interface is charged, the powered device is blocked by the powered device for protecting the powered device, so that the charging current is reduced, and the powered device is removed by external force, so that the charging is stopped, and the charging current is reduced. Both of the above cases may end charging as determined as the powered device.
511. If the fact that the power receiving equipment finishes charging is determined to exist according to the charging current detection port IO3 of the controller in the power supply equipment, closing a charging switch corresponding to the power receiving equipment which finishes charging on the power supply equipment;
When the controller determines that the powered device finishes charging according to the controller charging current detection port IO3 in the power supply device, a charging switch corresponding to the powered device which finishes charging on the power supply device is closed, so that the charging interface is stopped from being used.
512. Determining a charging request capability of a power receiving device which is remained on the power supply device and is being charged;
The controller re-determines the requested charging capability of the remaining charging powered device on the power sourcing equipment, similar to step 304, and will not be described in detail herein.
513. And adjusting output voltage according to the request charging capacity of the residual charging powered device.
The controller adjusts the output voltage according to the requested charging capability of the remaining charging powered device, and step 513 is similar to step 305, and will not be described here.
In this embodiment, first charging interface information of the power supply device is obtained through the controller input/output port IO1 and the controller output port IO2 in the power supply device. Because the input/output port IO1 of the controller is in a state where the output high level and the input float detection state are periodically alternated, the first charging interface information obtained in the input float detection state can be used to determine whether the charging interface of the power supply device has the target power receiving device accessed from the power source device, if so, the power receiving device on the power supply device that is being charged is determined. If it is not determined that a new target powered device is connected, that is, if the controller input/output port IO1 is in an output high level state, whether the charging interface of the power supply device is connected with the target powered device or not can be judged through the second charging interface information acquired by the communication interface d+ and the communication interface D-, and if it is determined that the new target powered device is connected with the power supply device, the powered device on the power supply device which is being charged is determined. If the new target power receiving device is not determined to be accessed, and the current power receiving device possibly does not accord with the quick charging function, whether the target power receiving device is accessed from the charging interface of the power supply device or not can be judged through the third charging interface information acquired by the pin CC1 and the pin CC2 in the power supply device, and if the new target power receiving device is determined to be accessed, the power receiving device which is being charged on the power supply device is determined. And determining the request charging capacities of the charging power receiving equipment and the target power receiving equipment, adjusting the output voltage for the power supply equipment according to the request charging capacities of the charging power receiving equipment and the target power receiving equipment, and starting a charging switch corresponding to a charging interface of the power supply equipment to which the target power receiving equipment is connected. Whether the electric signal exists at the charging interface is detected through the controller input/output port IO1 and the controller output port IO2, whether the power receiving equipment is connected or not can be determined according to the first charging interface information acquired in the input floating detection state, the same detection effect is achieved for different charging interfaces, and the difficulty of connection detection of the power supply equipment to the power receiving equipment is reduced.
And secondly, whether the power supply equipment is connected with the power receiving equipment or not is detected through a plurality of interfaces and pins, so that the detection accuracy is improved.
Referring to fig. 6, an embodiment of the present application provides an apparatus for detecting that a powered device accesses a power sourcing equipment, including:
the first obtaining unit 601 is configured to obtain first charging interface information of a power supply device through a controller input output port IO1 and a controller output port IO2 in the power supply device, where the power supply device is a single-input multiple-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 periodically alternating between outputting the high level and inputting a floating detection state;
a first determining unit 602, configured to determine whether a target powered device accesses from a charging interface of the power supply device according to the first charging interface information;
a first determining unit 603 configured to determine, when the first judging unit determines that there is a target power receiving device that is accessed from a charging interface of the power supply device, a power receiving device on the power supply device that is being charged;
a second determining unit 604 configured to determine a charging request capability of the charging-ongoing power receiving device and the target power receiving device;
The first adjusting unit 605 is configured to adjust an output voltage for the power supply device according to the charging request capability of the power supply device that is being charged and the target power supply device, and turn on a charging switch corresponding to a charging interface of the power supply device to which the target power supply device is connected.
Referring to fig. 7, an embodiment of the present application provides another apparatus for detecting that a powered device accesses a power sourcing equipment, including:
The first obtaining unit 701 is configured to obtain first charging interface information of a power supply device through a controller input output port IO1 and a controller output port IO2 in the power supply device, where the power supply device is a single-input multiple-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 periodically alternating between outputting the high level and inputting a floating detection state;
a first determining unit 702, configured to determine whether a target powered device accesses from a charging interface of the power supply device according to the first charging interface information;
A second obtaining unit 703, configured to obtain second charging interface information through a communication interface d+ and a communication interface D-in the power supply apparatus when the first judging unit 702 does not determine that there is a target power receiving apparatus accessing from the charging interface of the power supply apparatus;
A second determining unit 704, configured to determine whether a target powered device accesses from a charging interface of the power supply device according to the second charging interface information;
A third acquiring unit 705 configured to acquire third charging interface information through a pin CC1 and a pin CC2 in the power supply apparatus when the second judging unit 704 does not determine that there is an access of a target power receiving apparatus from a charging interface of the power supply apparatus;
A third judging unit 706, configured to judge whether a target powered device accesses from a charging interface of the power supply device according to the third charging interface information;
A first determining unit 707 configured to determine a power receiving device that is charging 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 power receiving device that is accessed from a charging interface of the power supply device;
a second determination unit 708 configured to determine a charging request capability of the charging-ongoing power receiving device and the target power receiving device;
A first adjusting unit 709, configured to adjust an output voltage for the power supply device according to the charging request capability of the power receiving device that is being charged and the target power receiving device, and turn on a charging switch corresponding to a charging interface of the power supply device to which the target power receiving device is connected;
A fourth judging unit 710 for judging whether or not there is a powered device to end charging;
optionally, the fourth determining unit 710 specifically includes:
and judging whether the powered device is in charge according to a controller charging current detection port IO3 in the power supply device.
A closing unit 711 configured to close a charging switch corresponding to the power supply device of the power receiving device that ends charging when the fourth judging unit 710 determines that the power receiving device ends charging;
a third determining unit 712 configured to determine a charging requesting capability of a power receiving device that is being charged remaining on the power supplying device;
a second adjusting unit 713 for adjusting the output voltage according to the requested charging capability of the remaining power receiving apparatus that is being charged.
Referring to fig. 8, an embodiment of the present application provides another apparatus for detecting that a powered device accesses a power sourcing equipment, including:
A processor 801, a memory 802, an input/output unit 803, and a bus 804;
The processor 801 is connected to a memory 802, an input/output unit 803, and a bus 804;
The processor 801 specifically performs the following operations:
The method comprises the steps that first charging interface information of power supply equipment is obtained through a controller input output port IO1 and a controller output port IO2 in the power supply equipment, the power supply equipment is single-input multi-output power supply equipment, the controller output port IO2 is in a continuous output high level state, and the controller input output port IO1 is in a periodic alternating state of output high level and input floating detection state;
Judging whether a target powered device is accessed from a charging interface of the power supply device according to the first charging interface information;
if yes, determining the power receiving equipment which is being charged on the power supply equipment;
Determining a charging request capability of the charging-proceeding power receiving device and the target power receiving device;
and adjusting output voltage for the power supply equipment according to the charging request capability of the power receiving equipment which is being charged and the target power receiving equipment, and starting a charging switch corresponding to a charging interface of the power supply equipment which is accessed by the target power receiving equipment.
In this embodiment, the functions of the processor 801 correspond to the steps in the embodiments shown in fig. 3 and 5, and are not described herein.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of 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.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. The storage medium includes a usb disk, a removable hard disk, a read-only memory (ROM), a random-access memory (RAM, random access memory), a magnetic disk, an optical disk, or other various media capable of storing program codes.