Connectors and power supply control methods applied to connectors

By designing the switching circuit and power supply control circuit in the connector, the output power of the power supply equipment is detected and the power supply control command is determined, which solves the problem of insufficient power supply to the master equipment, realizes efficient power supply to both the master and slave equipment, and improves the endurance of the master equipment.

CN113300423BActive Publication Date: 2026-05-05MATRIXED REALITY TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
MATRIXED REALITY TECH CO LTD
Filing Date
2021-06-01
Publication Date
2026-05-05

AI Technical Summary

Technical Problem

When the master device works in collaboration with multiple slave devices, insufficient power supply to the master device leads to limited battery life, making it unable to effectively maintain its own operation and supply power to the slave devices.

Method used

Design a connector comprising a first, second, and third interface for connecting a master device, a slave device, and a power supply device, respectively. Through a switching circuit and a power supply device control circuit, detect the output power of the power supply device and determine the power supply control command based on the power requirements of the master and slave devices to achieve efficient power supply to the master and slave devices.

Benefits of technology

By optimizing the power supply strategy, the battery life of the main device is improved, and the power supply to the slave devices is efficiently increased, thereby reducing the power consumption of the main device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113300423B_ABST
    Figure CN113300423B_ABST
Patent Text Reader

Abstract

This specification provides an embodiment of a connector. The connector includes first to third interfaces, a switching circuit, a power supply control circuit, and an interface control circuit. The first to third interfaces are used to connect a master device, a slave device, and a power supply device, respectively. The switching circuit is connected to the first interface, the second interface, the third interface, and the interface control circuit. The power supply control circuit is connected to the third interface and the interface control circuit. In response to detecting that a power supply device is inserted into the third interface, the power supply control circuit detects the power output power of the power supply device and determines a power supply control command based on the power output power, the charging power required by the master device, and the operating power of the slave device. The interface control circuit controls the switching circuit to switch on and off according to the power supply control command to control the power supply from the power supply device to the master device and the slave device. Using this connector, efficient power supply from an external power supply device to the master device and the slave device can be achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments in this specification relate to the field of connectors, and more specifically, to a connector and a power supply control method applied to the connector. Background Technology

[0002] In some application scenarios, a master device needs to collaborate with one or more slave devices to complete a desired task. In this scenario, the master device acts as a Downstream Facing Port (DFP) and the slave devices act as Upstream Facing Ports (UFPs). The DFP device has data processing capabilities and can provide content output to the UFP device, such as data processing results or content to be presented. The DFP device also has power supply capabilities, allowing it to power other devices, such as UFP devices. Furthermore, the master device can also act as a UFP device, receiving power or charging from other power supply devices. Examples of master devices include mobile phones, computers, and smart terminal devices. UFP devices do not have their own power supply capabilities and need to obtain power from devices such as DFP devices or other power supply devices to operate. Examples of UFP devices include virtual reality devices and augmented reality devices, such as AR glasses.

[0003] When a master device works in collaboration with multiple slave devices, the master device needs to use its own power supply to maintain its own operation in order to provide content output to the slave devices, and at the same time supply power to the slave devices to maintain their operation. This results in a large power consumption for the master device, which greatly limits its battery life. Summary of the Invention

[0004] In view of the above problems, embodiments of this specification provide a connector and a power supply control method applied to the connector. Using this connector, efficient power supply from an external power supply device to both the master and slave devices can be achieved.

[0005] According to one aspect of an embodiment of this specification, a connector is provided, comprising: a first interface for connecting a master device; a second interface for connecting a slave device; a third interface for connecting a power supply device; a switching circuit connected to the first interface, the second interface, and the third interface; a power supply device control circuit connected to the third interface, configured to, in response to detecting that the power supply device is inserted into the third interface, detect the power supply output power of the power supply device, and determine a power supply control command for the power supply device to the master device and the slave device based on the power supply output power, the charging power required by the master device, and the operating power of the slave device; and an interface control circuit connected to the switching circuit and the power supply device control circuit, configured to, in response to receiving the power supply control command from the power supply device control circuit, control the switching circuit to switch on / off according to the power supply control command to control the power supply of the power supply device to the master device and the slave device.

[0006] According to another aspect of the embodiments of this specification, a power supply control method for a connector is provided. The connector includes a first interface, a second interface, and a third interface for connecting a master device, a slave device, and a power supply device, respectively; a switching circuit connected to the first interface, the second interface, and the third interface; a power supply device control circuit connected to the third interface; and an interface control circuit connected to the switching circuit and the power supply device control circuit. The method includes: at the power supply device control circuit, in response to detecting that the power supply device is inserted into the third interface, detecting the power supply output power of the power supply device; determining a power supply control command for the master device and the slave device based on the power supply output power, the charging power required by the master device, and the operating power of the slave device; and sending the power supply control command to the interface control circuit. At the interface control circuit, in response to receiving the power supply control command, switching control is performed on the switching circuit according to the power supply control command to control the power supply of the power supply device to the master device and the slave device.

[0007] According to another aspect of the embodiments of this specification, an electronic device is provided, comprising: at least one processor; a memory; and a computer program stored on the memory, wherein the at least one processor executes the computer program to implement the power supply control method applied to a connector as described above.

[0008] According to another aspect of the embodiments of this specification, a computer-readable storage medium is provided that stores a computer program, which, when executed by a processor, implements the power supply control method applied to a connector as described above.

[0009] According to another aspect of the embodiments of this specification, a computer program product is provided, including a computer program that, when executed by a processor, implements the power supply control method applied to a connector as described above. Attached Figure Description

[0010] A further understanding of the nature and advantages of the embodiments described in this specification can be achieved by referring to the following accompanying drawings. In the drawings, similar components or features may have the same reference numerals. The drawings are provided to offer a further understanding of the embodiments of the invention and form part of this specification. They are used together with the following detailed description to explain the embodiments of this specification, but do not constitute a limitation on the embodiments of this specification.

[0011] Figure 1 A schematic diagram of an example structure of a connector according to a first embodiment of this specification is shown.

[0012] Figure 2 A flowchart illustrating an example of a power supply control command determination process according to a first embodiment of this specification is shown.

[0013] Figure 3 A flowchart illustrating another example of the power supply control command determination process according to the first embodiment of this specification is shown.

[0014] Figure 4 A schematic diagram illustrating an example implementation of a switching circuit according to a first embodiment of this specification is shown.

[0015] Figure 5 A flowchart illustrating the control process of a switching circuit according to a first embodiment of this specification is shown.

[0016] Figure 6 A schematic diagram of an example structure of a connector according to a second embodiment of this specification is shown.

[0017] Figure 7 A schematic diagram of an example structure of a clock data reconstruction circuit between a first interface and a second interface according to a second embodiment of this specification is shown.

[0018] Figure 8 A schematic diagram of an example structure of a connector according to a third embodiment of this specification is shown.

[0019] Figure 9 A schematic diagram of an example structure of a clock data reconstruction switching circuit between a first interface and a second interface according to a third embodiment of this specification is shown.

[0020] Figure 10 A schematic diagram of the connector based on the Type-C interface according to the fourth embodiment of this specification is shown.

[0021] Figure 11 A flowchart of a power supply control method for a connector according to a fifth embodiment of this specification is shown.

[0022] Figure 12 A block diagram of a power supply control device for a connector according to a sixth embodiment of this specification is shown.

[0023] Figure 13 An example hardware structure diagram of a power supply control device implemented based on a computer system according to the seventh embodiment of this specification is shown. Detailed Implementation

[0024] The subject matter described herein will be discussed below with reference to exemplary embodiments. It should be understood that these embodiments are discussed merely to enable those skilled in the art to better understand and implement the subject matter described herein, and are not intended to limit the scope, applicability, or examples set forth in the claims. The function and arrangement of the elements discussed may be changed without departing from the scope of the embodiments described herein. Various processes or components may be omitted, substituted, or added as needed in the various examples. Furthermore, features described in some examples may be combined in other examples.

[0025] As used herein, the term "comprising" and its variations are open terms meaning "including but not limited to". The term "based on" means "at least partially based on". The terms "one embodiment" and "an embodiment" mean "at least one embodiment". The term "another embodiment" means "at least one other embodiment". The terms "first", "second", etc., may refer to different or the same objects. Other definitions, whether explicit or implicit, may be included below. Unless explicitly indicated by the context, the definition of a term shall remain consistent throughout the specification.

[0026] In this specification, the term "connection" may also be referred to as "coupling," meaning a direct electrical connection between two components, or an electrical connection achieved via an intermediate component. In some cases, the term "connection" may also be understood as containment or a similar expression.

[0027] In scenarios where master and slave devices collaborate, the master device receives and processes data from the slave device, then provides the processed data to the slave device for further processing. For example, in virtual reality (VR) or augmented reality (AR) applications, the VR device can capture image data and send it to a master device with computing or processing capabilities (e.g., a mobile phone or other smart terminal device) for image processing. Subsequently, the master device provides the image processing results to the VR or AR display device for VR or AR display.

[0028] When the master device and the slave device work together, the master device needs to use its own power module (e.g., lithium battery) to provide power to maintain its operation, thereby performing corresponding data processing to provide content output to the slave device. At the same time, the master device also needs to supply power to the slave device to maintain its operation. This results in a large power consumption of the master device, which greatly limits the master device's battery life.

[0029] In view of the above, embodiments of this specification provide a connector for powering a master device and a slave device. The connector includes first to third interfaces, a switching circuit, a power supply control circuit, and an interface control circuit. The first to third interfaces are used to connect the master device, the slave device, and the power supply device, respectively. The switching circuit is connected to the first interface, the second interface, the third interface, and the interface control circuit. The power supply control circuit is connected to the third interface and the interface control circuit. When the power supply device is inserted into the third interface, the power supply control circuit detects the power output power of the power supply device. The power supply control circuit determines a power supply control command based on the power output power, the charging power required by the master device, and the operating power of the slave device. The interface control circuit controls the switching circuit to switch on and off according to the power supply control command to control the power supply from the power supply device to the master device and the slave device. Using this connector, a power supply strategy for the master device and the slave device can be determined based on the actual power output power of the external power supply device, and efficient power supply from the external power supply device to the master device and the slave device can be achieved according to this power supply strategy, thereby improving the battery life of the master device.

[0030] First Embodiment

[0031] Figure 1 A schematic diagram of an example structure of a connector 100 according to a first embodiment of this specification is shown.

[0032] like Figure 1As shown, connector 100 includes a first interface 110, a second interface 120, a third interface 130, a switching circuit 140, a power supply control circuit 150, and an interface control circuit 160. The first interface 110 is used to connect to a master device. The second interface 120 is used to connect to a slave device (UFP device). The third interface 130 is used to connect to a power supply device. In embodiments of this specification, the first interface 110, the second interface 120, and / or the third interface 130 may be one of the following interfaces: Type A interface, Type B interface, Type C interface, Micro USB interface, Mini USB interface, and Lightning interface. Here, the device connected to the interface may, for example, have an interface component that matches the interface, thereby coupling the device to the interface. For example, assuming the first interface is a Type C plug, the master device has a Type C socket (Type C slot), so that the first interface can be inserted into the Type C socket of the master device.

[0033] In this specification, examples of the main device may include, but are not limited to, mobile phones, computers, and smart terminal devices. Examples of the slave device may include, but are not limited to, virtual reality devices and augmented reality devices, such as AR glasses. A power supply device is a device or apparatus capable of supplying power, such as a charging device (also called a power bank), a power supply unit, or a power adapter. Examples of charging devices may include PD-type charging devices and QC-type charging devices. The power supply device control circuit 150 is electrically connected to the signal terminals of the third interface. The power supply device control circuit 150 may have the capability to detect the power output power of the power supply device.

[0034] When the power supply device is plugged into the third interface 130, the power supply device control circuit 150 can detect the power output power of the power supply device at that time. For example, if the third interface 130 is a Type-C interface, the power supply device needs to support the PD protocol, so that when the power supply device is plugged into the third interface 130, the power supply device control circuit 150 can use the PD protocol to detect the output power signal used to indicate the power output power of the power supply device. For example, if the power supply device is a PD type charging device, the power supply device control circuit 150 can be connected to the CC terminal of the third interface 130. When the power supply device is plugged into the third interface 130, the power supply device control circuit 150 can receive the CC signal from the CC terminal of the third interface 130, and obtain the power output power, power output voltage, and power output current of the power supply device based on the CC signal. If the power supply device is a QC type charging device, the power supply device control circuit 150 can be connected to the D+ and D- terminals of the third interface 130. When the power supply device is plugged into the third interface 130, the power supply device control circuit 150 can receive D+ and D- signals from the D+ and D- terminals of the third interface 130, and obtain the power supply output power of the power supply device based on the D+ and D- signals. Here, the detected power supply output power is the real-time power supply output power of the power supply device, reflecting the real-time power supply capability of the power supply device.

[0035] After obtaining the power output of the power supply equipment, the power supply equipment control circuit 150 determines the power supply control command based on the power output of the power supply equipment, the charging power required by the main equipment, and the working power of the slave equipment.

[0036] In this specification, the charging power required by the main device is used to indicate the power supply required to trigger a charging operation on the main device. If the power supply of the power supply is lower than the charging power required, the power supply cannot charge the main device. The charging power required by the main device can be a factory-configured parameter, for example, it can be characterized by the current value at a specified output voltage, and varies depending on the device type, model, or manufacturer. Furthermore, a main device may have multiple available charging power requirements; for example, for a mobile phone, the available charging power requirements could be "5V, 3A", "5V, 1.5A", "5V, 900mA", etc. Additionally, the available charging power required by the main device can also include the charging power required under normal charging conditions, the charging power required under fast charging conditions, etc. Here, the charging power required under fast charging conditions is greater than the charging power required under normal charging conditions. The operating power of the slave device is used to indicate the operating power required for the slave device to operate normally. The operating power of the slave device can be, for example, the nominal operating power or rated operating power of the slave device.

[0037] In this specification, the charging power required by the master device and the operating power of the slave device can be notified to the power supply control circuit in advance, or the master device or slave device can notify the power supply control circuit when the master device is connected to the first interface and the slave device is connected to the second interface. In some embodiments, the charging power required by the master device can also be determined through negotiation between the master device and the power supply control circuit. For example, when the master device has multiple available charging power requirements, the power supply control circuit can provide the master device with the power difference between the power output power and the operating power of the slave device. The master device then selects a suitable available charging power from the multiple available charging power requirements based on this power difference as the final charging power required and provides it to the power supply control circuit.

[0038] Figure 2 A flowchart illustrating an example of a power supply control command determination process 200 according to a first embodiment of this specification is shown.

[0039] like Figure 2 As shown in 210, in response to detecting that the power supply device is inserted into the third interface, the power supply device control circuit 150 detects the power supply output power P of the power supply device. 供电设备 .

[0040] At 220, determine the power supply output power P. 供电设备 Is it not lower than the charging power P required by the main device? 主设备 With the operating power P of the slave device 从端设备 The sum. When the main device has multiple available charging power requirements, P 主设备 It can be the minimum available charging power required, or the available charging power required (specified by the master device or user), for example, by negotiating the available charging power with the master device through the power supply control circuitry.

[0041] If the judgment is P 供电设备 ≥P 主设备 +P 从端设备 Then, at 230, the power supply control command is determined to be the first power supply control command. The first power supply control command is used to indicate that power is supplied to both the master device and the slave device simultaneously.

[0042] In one example, the first power supply control command is used to instruct the slave device to be powered at the slave device's operating power and to charge the master device with the remaining power (i.e., the difference between the power supply output power and the slave device's operating power).

[0043] In another example, the first power supply control command instructs the slave device to be powered at its operating power and the master device to be charged at its required charging power. When the master device has multiple available charging power options, the power supply control circuit can notify the master device of the power difference between the power output and the slave device's operating power. The master device selects a suitable charging power option from the available options based on this power difference and then notifies the power supply control circuit of the selected charging power option or its equivalent information (e.g., the number, code, unique identifier, etc. of the charging power option). The power supply control circuit then charges the master device according to the selected charging power option.

[0044] If the judgment is P 供电设备 <P 主设备 +P 从端设备 Then, at 240, determine the power output power P of the power supply equipment. 供电设备 Is it not lower than the operating power P of the slave device? 从端设备 If the judgment is P 供电设备 ≥P 从端设备 Then, at 250, the power supply control command is determined to be the second power supply control command. The second power supply control command is used to instruct power to be supplied to the slave device, and not to the master device. In one example, the second power supply control command is used to instruct the slave device to operate at its operating power P. 从端设备 Power supply to the slave device.

[0045] If the judgment is P 供电设备 <P 从端设备 Then, at 260, determine the power output power P of the power supply equipment. 供电设备 Is it not lower than the charging power P required by the main device? 主设备 If the judgment is P 供电设备 ≥P 主设备 Then, at 270, the power supply control command is determined to be the third power supply control command. The third power supply control command is used to instruct power to be supplied to the master device, but not to the slave device. In one example, charging the master device can be performed according to the power output of the power supply device. In another example, charging the master device can be performed according to the charging power required by the master device. When the master device has multiple available charging power requirements, the power supply control circuit can notify the master device of the power difference between the power output and the operating power of the slave device. The master device selects a suitable charging power requirement from the multiple available charging power requirements based on this power difference, and then notifies the power supply control circuit of the selected charging power requirement or its equivalent information (e.g., the number, code, unique identification information, etc. of the charging power requirement). The power supply control circuit then charges the master device according to the charging power requirement.

[0046] If the judgment is P 供电设备 <P 主设备 Then, at 280, the power supply control command is determined to be the fourth power supply control command. The fourth power supply control command is used to indicate that power should not be supplied to the master equipment and the slave equipment.

[0047] Figure 3 A flowchart of another example of the power supply control command determination process 300 according to the first embodiment of this specification is shown.

[0048] like Figure 3 As shown in 301, in response to detecting that the power supply device is inserted into the third interface, the power supply device control circuit 150 detects the power supply output power P of the power supply device. 供电设备 .

[0049] In 302, determine the power supply output power P. 供电设备 Is it not lower than the charging power P required by the main device? 主设备 With the operating power P of the slave device 从端设备 The sum. When the main device has multiple available charging power requirements, P 主设备 It can be the minimum available charging power required, or the available charging power required (specified by the master device or user), for example, by negotiating the available charging power with the master device through the power supply control circuitry.

[0050] If the judgment is P 供电设备 ≥P 主设备 +P 从端设备 Then, at step 303, it is determined whether the main device has a power supply requirement. The power supply requirement indicates that an external power supply is needed to charge the main device.

[0051] In one example, the power supply control circuit can negotiate with the master device to determine whether the master device has a power demand based on the power difference between the power supply output power of the power supply device and the operating power of the slave device. For example, the power supply control circuit sends the power difference between the power supply output power of the power supply device and the operating power of the slave device to the master device, and the master device determines whether charging is required based on this power difference. For example, if the power difference is greater than the power required for charging, a charging demand is determined, and this charging demand is sent to the power supply control circuit. Optionally, the power required for charging can also be determined based on the power difference. In another example, the power supply control circuit can pre-negotiate with the master device to stipulate that charging will occur as long as predetermined conditions are met. For example, the predetermined condition could be a power supply output power P. 供电设备 Not less than the charging power P required by the main device 主设备 With the operating power P of the slave device 从端设备The sum. In another example, the power supply control circuit can determine that the master device has a power demand in response to receiving a power supply request from the master device.

[0052] When it is determined that the master device has a power supply requirement, at step 304, the power supply control command is identified as the fifth power supply control command. The fifth power supply control command instructs that power be supplied to both the master and slave devices simultaneously. Similarly, in one example, the fifth power supply control command instructs that the slave device be supplied with power at its operating power, and that the master device be charged with the remaining power (i.e., the difference between the power supply output power and the slave device's operating power). In another example, the fifth power supply control command instructs that the slave device be supplied with power at its operating power, and that the master device be charged with the power required for charging. When the master device has multiple available charging power requirements, the power supply control circuit can notify the master device of the power difference between the power supply output power and the slave device's operating power. The master device selects a suitable charging power requirement from the multiple available charging power requirements based on this power difference, and then notifies the power supply control circuit of the selected charging power requirement or its equivalent information (e.g., the number, code, unique identification information, etc. of the charging power requirement). The power supply control circuit then charges the master device according to the charging power requirement.

[0053] If it is determined that the master device has no power supply requirement, then at step 305, the power supply control command is set to the sixth power supply control command. The sixth power supply control command instructs that power be supplied to the slave device, but not to the master device. In one example, the sixth power supply control command instructs that power be supplied to the slave device at its operating power P. 从端设备 Power supply to the slave device.

[0054] If the judgment is P 供电设备 <P 主设备 +P 从端设备 Then, in 306, determine the power output power P of the power supply equipment. 供电设备 Is it not lower than the operating power P of the slave device? 从端设备 If the judgment is P 供电设备 ≥P 从端设备 Then, in 305, the power supply control command is determined to be the sixth power supply control command.

[0055] If the judgment is P 供电设备 <P 从端设备 Then, in 307, determine the power output power P of the power supply equipment. 供电设备 Is it not lower than the charging power P required by the main device? 主设备 If the judgment is P 供电设备 ≥P 主设备In step 308, it is determined whether the master device has a power supply requirement. If the master device has a power supply requirement, in step 309, the power supply control command is determined to be the seventh power supply control command. The seventh power supply control command is used to instruct power to be supplied to the master device, but not to the slave device. In one example, charging the master device can be performed according to the power output of the power supply device. In another example, charging the master device can be performed according to the charging power required by the master device. When the master device has multiple available charging power requirements, the power supply device control circuit can notify the master device of the power difference between the power output power and the operating power of the slave device. The master device selects a suitable charging power requirement from the multiple available charging power requirements based on this power difference, and then notifies the power supply device control circuit of the selected charging power requirement or its equivalent information (e.g., the number, code, unique identification information, etc. of the charging power requirement). The power supply device control circuit then charges the master device according to the charging power requirement.

[0056] If it is determined that the master device does not require power, then at step 310, the power supply control command is designated as the eighth power supply control command. The eighth power supply control command is used to indicate that no power is supplied to the master device and the slave device.

[0057] If the judgment is P 供电设备 <P 主设备 Then the process proceeds to step 310. At step 310, the power supply control command is determined to be the eighth power supply control command.

[0058] Back Figure 1 The power supply control circuit 150 is electrically connected to the interface control circuit 160. After the power supply control circuit 150 determines the power supply control command, it sends the determined power supply control command to the interface control circuit 160.

[0059] The interface control circuit 160 is also configured to be electrically connected to the switching circuit 140, and the switching circuit 140 is configured to be electrically connected to the first interface 110, the second interface 120, and the third interface 130. The interface control circuit 160 can control the switching circuit 140 to switch on and off according to power supply control commands, thereby enabling the power supply equipment to supply power to the master and slave devices according to the power supply control commands.

[0060] Figure 4 A schematic diagram illustrating an example implementation of the switching circuit 140 according to the first embodiment of this specification is shown.

[0061] like Figure 4As shown, the switching circuit 140 includes a first switching circuit 141, a second switching circuit 142, and a third switching circuit 143. The first switching circuit 141 and the third switching circuit 143 (e.g., via a power line) are connected in series between the power supply ports of the first interface 110 and the third interface 130. The second switching circuit 142 (e.g., via a power line) is connected between the power supply port of the second interface 120 and the intermediate connection point (intermediate node) between the first switching circuit 141 and the third switching circuit 143.

[0062] In this specification, the first switching circuit 141, the second switching circuit 142, and the third switching circuit 143 can be implemented using any suitable switching mechanism, such as digital or analog switching circuits, for example, switching circuits based on transistors or transistor groups, or switching circuits based on field-effect transistors or field-effect transistor groups. In one example, a combination of N-MOSFETs and P-MOSFETs can be used to implement the switching circuit.

[0063] It should be noted that, Figure 4 The switching circuit 140 shown is merely an illustrative example. In other embodiments, the switching circuit 140, which can switch the power supply line on and off based on power supply control commands, can be implemented in other suitable ways.

[0064] Figure 5 A flowchart of a control process 500 for a switching circuit according to a first embodiment of this specification is shown. This control process is executed by an interface control circuit.

[0065] like Figure 5 As shown, at 510, a power supply control command is received from the power supply equipment control circuit 150.

[0066] When the power supply control command is the first power supply control command or the fifth power supply control command, at 520, the control switch circuit 140 is used to close the first switch circuit 141, the second switch circuit 142 and the third switch circuit 143.

[0067] When the power supply control command is the second power supply control command or the sixth power supply control command, at 530, the control switch circuit 140 is used to open the first switch circuit 141 and close the second switch circuit 142 and the third switch circuit 143.

[0068] When the power supply control command is the third power supply control command or the seventh power supply control command, at 540, the control switch circuit 140 is used to close the first switch circuit 141 and the third switch circuit 143, and to open the second switch circuit 142.

[0069] When the power supply control command is the fourth or eighth power supply control command, at 550, the control switch circuit 140 is used to disconnect the third switch circuit 143. For example, in one example, the first switch circuit 141, the second switch circuit 142, and the third switch circuit 143 can be disconnected. Alternatively, in another example, the first switch circuit 141 and the second switch circuit 142 are closed, and the third switch circuit 143 is disconnected.

[0070] Optionally, in another example, connector 100 may further include a signal transmission line (not shown) connecting the first interface 110 and the second interface 120. The signal transmission line is configured to transmit data signals and signaling signals between the master and slave devices, for example, transmitting data signals and signaling signals required for data processing by the master and slave devices. Examples of the signal transmission line may include USB signal lines, DP (DisplayPort) signal lines, etc.

[0071] Second Embodiment

[0072] Figure 6 A schematic diagram of an example structure of a connector 600 according to a second embodiment of this specification is shown. The connector 600 shown in the second embodiment is a modification of the connector 100 shown in the first embodiment.

[0073] Connector 600 includes a first interface 610, a second interface 620, a third interface 630, a switching circuit 640, a power supply control circuit 650, and an interface control circuit 660. The structure and operation of the first interface 610, the second interface 620, the third interface 630, the switching circuit 640, the power supply control circuit 650, and the interface control circuit 660 are the same as those of the first interface 110, the second interface 120, the third interface 130, the switching circuit 140, the power supply control circuit 150, and the interface control circuit 160 in connector 100 of the first embodiment, and will not be described further here.

[0074] Connector 600 also includes a signal transmission line 670 connecting the first interface 610 and the second interface 620. The signal transmission line 670 is configured to transmit data signals and signaling signals between the master and slave devices. Furthermore, the data transmission rate of the signal transmission line 670 is not less than 5Gbps; that is, the signal transmission line is a high-speed signal transmission line used for transmitting high-speed signals. The signal transmission line 670 may, for example, include USB 3.1 signal lines and DP signal lines.

[0075] The connector 600 also includes a clock data reconstruction circuit 680 connected between the first interface 610 and the second interface 620 via a signal transmission line. The clock data reconstruction circuit 680 is configured to reconstruct and recover signals transmitted between the first interface 110 and the second interface 120.

[0076] In different application scenarios, the lengths and thicknesses of the cables connecting the master and slave devices vary. This results in severe DC and AC attenuation of the transmitted high-speed signals, even at signal transmission speeds as high as 5–10 Gbps (e.g., USB 3.1 and DP lines). In the worst cases, the standard signal transmitted by the transmitter cannot be received properly at the receiver. Using the aforementioned clock data reconstruction circuit, the adverse effects of channel distribution parameters on the signal can be removed at the transmitter. The signal is then reconstructed using a clock data recovery circuit, and finally, the reconstructed signal is transmitted again according to standard signal requirements.

[0077] Figure 7 A schematic diagram of an example structure of a clock data reconstruction circuit 680 between a first interface and a second interface according to a second embodiment of this specification is shown.

[0078] like Figure 7 As shown, the clock data reconstruction circuit 680 may include a first signal equalization circuit 681, a first clock data recovery circuit 682, and a first signal transmission circuit 683, sequentially connected between the first interface 110 and the second interface 120 via a signal transmission line. The first signal equalization circuit 681 performs signal equalization processing on the signal transmitted from the first interface 110 side, thereby removing the adverse effects of channel distribution parameters on the signal. The first clock data recovery circuit 682 performs clock data recovery processing on the signal after signal equalization, thereby completing signal reconstruction. The first signal transmission circuit 683 retransmits the signal reconstructed by the first clock data recovery circuit 682 according to standard signal requirements, thereby ensuring the transmission quality of the signal transmitted from the first interface 110 to the second interface 120.

[0079] The clock data reconstruction circuit 680 may further include a second signal equalization circuit 684, a second clock data recovery circuit 685, and a second signal transmission circuit 686, which are sequentially connected between the second interface 120 and the first interface 110 via signal transmission lines. The functions and operations of the second signal equalization circuit 684, the second clock data recovery circuit 685, and the second signal transmission circuit 686 are the same as those of the first signal equalization circuit 681, the first clock data recovery circuit 682, and the first signal transmission circuit 683, and will not be described further here.

[0080] Third Embodiment

[0081] Figure 8 A schematic diagram of an example structure of a connector 800 according to a third embodiment of this specification is shown. The connector 800 shown in the third embodiment is a modification of the connector 600 shown in the second embodiment.

[0082] In the third embodiment, the first interface and the second interface are Type-C interfaces, and the signal transmission lines include a first USB signal line and a DP signal line. The first USB signal line is used to realize bidirectional communication between the master device and the slave device, and the DP signal line is used to realize unidirectional communication from the master device to the slave device. The data transmission rate of the first USB signal line and the DP signal line is not less than 5Gbps (i.e., high-speed signal transmission line). The first USB signal line may, for example, include a USB 3.1 signal line. Alternatively, in another example, the signal transmission lines may also include a second USB signal line, the data transmission rate of which is less than 5Gbps (i.e., low-speed signal transmission line), and the second USB signal line is directly connected between the first interface 110 and the second interface 120. Examples of the second USB signal line may include a USB 2.0 signal line, a USB 1.0 signal line, etc.

[0083] Connector 800 includes a first interface 810, a second interface 820, a third interface 830, a switching circuit 840, a power supply control circuit 850, an interface control circuit 860, and a signal transmission line 870. The structure and operation of the first interface 810, the second interface 820, the third interface 830, the switching circuit 840, the power supply control circuit 850, the interface control circuit 860, and the signal transmission line 870 are the same as those of the first interface 810, the second interface 820, the third interface 630, the switching circuit 640, the power supply control circuit 650, the interface control circuit 660, and the signal transmission line 670, and will not be described further here.

[0084] The difference between connector 800 and connector 600 is that connector 800 has a clock data reconstruction switch circuit 880. Figure 9 A schematic diagram of an example structure of a clock data reconstruction switch circuit 880 between a first interface and a second interface according to a third embodiment of this specification is shown.

[0085] like Figure 9 As shown, with Figure 6Unlike the clock data reconstruction circuit 680, the clock data reconstruction switching circuit 880 includes all the components of the clock data reconstruction circuit 680, and further includes a channel switching circuit 887 connected via a high-speed signal transmission line between the first clock data recovery circuit 882 and the first signal transmission circuit 883, and between the second clock data recovery circuit 885 and the second signal transmission circuit 886. The channel switching circuit 887 is configured to perform channel switching processing on the signal transmission line based on the orientation of the master and slave devices. The orientation of the master and slave devices can be detected by the interface control circuit using the PD protocol.

[0086] Optionally, in one example, the interface control circuit 860 may have two control ports supporting the PD protocol, wherein one control port is connected to the CC signal terminal of the first interface 110 via a signal line, and the other control port is connected to the two CC signal terminals of the second interface 120 via two signal lines.

[0087] When the master device and slave device are respectively inserted into the first interface and the second interface, the interface control circuit 860 can determine the orientation of the master device and the slave device based on the CC signal received from the CC signal terminals of the first interface 110 and the second interface 120, and send the determined orientation (channel switching control signal) to the channel switching circuit 887. For example, it can be sent to the channel switching circuit 887 through a GPIO (General Purpose Input Output) control line or an I2C control line. Accordingly, the channel switching control signal can be a GPIO signal or an I2C signal.

[0088] Fourth embodiment

[0089] Figure 10 A schematic diagram of the connector 1000 based on the Type-C interface according to the fourth embodiment of this specification is shown. Figure 10 The connector 1000 shown is used in applications where mobile phones and AR glasses work together.

[0090] In this embodiment, the mobile phone acts as the master device, and the first interface is the mobile phone Type-C plug 1010. The AR glasses act as the slave device, and the second interface is the glasses Type-C socket 1020. The charger acts as the power supply device, and the third interface is the charger Type-C socket 1030.

[0091] The signal transmission between the mobile phone Type-C plug 1010 and the glasses Type-C socket 1020 includes a USB 2.0 signal line (second USB signal line), a USB 3.1 signal line (first USB signal line), and a DP signal line. The USB 2.0 signal line is directly connected between the corresponding terminals of the mobile phone Type-C plug 1010 and the glasses Type-C socket 1020, thereby enabling the USB 2.0 signal to be transmitted between the mobile phone Type-C plug 1010 and the glasses Type-C socket 1020 through the USB 2.0 signal line. The signals transmitted by the USB 3.1 signal line and the DP signal line are processed by the clock data reconstruction switch circuit 1080 and then transmitted from the transmitting end to the receiving end.

[0092] The power supply control circuit is implemented using a charger controller 1050. Four signal lines connect the charger controller 1050 to the charger Type-C socket 1030: Charger_USB_CC1, Charger_USB_CC2, USB_DP, and USB_DM. When the power supply device is plugged into the charger Type-C socket 1030, the charger's output power is detected and transmitted to the charger controller 1050 via the aforementioned signal lines. The charger controller 1050 then determines a power supply control command based on the detected output power, the charging power required by the phone, and the operating power of the glasses, and sends this command to the interface control circuit. In one example, the charger controller 1050 can be implemented using a CypressCCG3PA chip.

[0093] The interface control circuit can be implemented using a dual-port Type-C control unit 1060, for example, using a Cypress CCG4 chip. The dual-port Type-C control unit 1060 is connected to the first to third switching circuits 1041-1043 respectively, and is used to control the closing and opening of the first to third switching circuits 1041-1043 according to power supply control commands, thereby realizing the power supply control of the power supply device to the mobile phone and glasses. In addition, the dual-port Type-C control unit 1060 is also connected to the CC_P1 terminal of the mobile phone Type-C plug 1010, and to the two CC terminals (CC1_P2 and CC2_P2) of the glasses Type-C socket 1020. When the mobile phone and glasses are plugged into the mobile phone's Type-C connector 1010 and the glasses' Type-C socket 1020 respectively, the dual-port Type-C control unit 1060 determines the orientation of the phone and glasses based on the CC_P1 signal from the CC_P1 terminal of the mobile phone's Type-C connector 1010 and the CC1_P2 and CC2_P2 signals from the CC1_P2 and CC2_P2 terminals of the glasses' Type-C socket 1020. Then, the dual-port Type-C control unit 1060 transmits the determined orientation to the clock data reconstruction switch circuit 1080 via a GPIO line or an I2C line. The clock data reconstruction switch circuit 1080 performs signal transmission channel switching processing based on the determined orientation.

[0094] The dual-port Type-C control unit 1060, the mobile phone Type-C plug 1010, and the glasses Type-C socket 1020 support the PD protocol. This allows the dual-port Type-C control unit 1060 to communicate with the mobile phone's PD control module to negotiate the glasses' operating mode, power supply requirements, and other settings after the mobile phone and glasses are plugged into the PD plug 1010 and PD socket 1020, respectively. Furthermore, the dual-port Type-C control unit 1060 can also communicate with the glasses' PD control module to ensure normal video and data stream communication between the mobile phone and glasses.

[0095] Fifth Embodiment

[0096] Figure 11 A flowchart of a power supply control method 1100 applied to a connector according to a fifth embodiment of this specification is shown.

[0097] like Figure 11 As shown, at 1100, at the power supply equipment control circuit, in response to detecting that the power supply equipment is inserted into the third interface, the power supply output power of the power supply equipment is detected.

[0098] At 1120, in the power supply equipment control circuit, the power supply control commands for the master and slave devices are determined based on the power supply output power of the power supply equipment, the charging power required by the master device, and the operating power of the slave device. The process for determining the power supply control commands is detailed in the description above.

[0099] At 1130, the power supply equipment control circuit sends the power supply control command to the interface control circuit.

[0100] At 1140, in the interface control circuit, in response to receiving a power supply control command, the switching circuit is controlled to switch the power supply equipment to the master and slave devices. The control process of the switching circuit is described above.

[0101] Sixth Embodiment

[0102] Figure 12 A block diagram of a power supply control device 1200 for a connector according to a sixth embodiment of this specification is shown.

[0103] like Figure 12 As shown, the power supply control device 1200 includes a power output power detection unit 1210, a power supply control command determination unit 1220, a power supply control command sending unit 1230, and a switch circuit control unit 1240. The power output power detection unit 1210, the power supply control command determination unit 1220, and the power supply control command sending unit 1230 constitute a power supply equipment control circuit, or serve as components of a power supply equipment control circuit. The switch circuit control unit 1240 acts as an interface control circuit, or serves as a component of an interface control circuit.

[0104] The power output detection unit 1210 is configured to detect the power output power of a power supply device in response to detecting that the power supply device is inserted into the third interface.

[0105] The power supply control command determination unit 1220 is configured to determine the power supply control command for the master device and the slave device based on the power supply output power of the power supply equipment, the charging power required by the master device, and the operating power of the slave device.

[0106] The power supply control command sending unit 1230 is configured to send power supply control commands to the interface control circuit.

[0107] The switching circuit control unit 1240 is configured to control the switching circuit to supply power to the master and slave devices in response to receiving a power supply control command.

[0108] As referred above Figures 1 to 12This specification describes embodiments of a connector, a power supply control method applied to the connector, and a power supply control device according to embodiments thereof. The details mentioned in the above description of the method embodiments also apply to embodiments of the device described herein. The power supply control device described above can be implemented in hardware, software, or a combination of hardware and software.

[0109] Figure 13 An example hardware structure diagram of a power supply control device 1300 implemented based on a computer system according to an embodiment of this specification is shown. Figure 13 As shown, the power supply control device 1300 may include at least one processor 1310, a memory (e.g., non-volatile memory) 1320, a main memory 1330, and a communication interface 1340, and the at least one processor 1310, memory 1320, main memory 1330, and communication interface 1340 are connected together via a bus 1360. At least one processor 1310 executes a computer program stored or encoded in the memory (i.e., the elements implemented in software above).

[0110] In one embodiment, a computer program is stored in a memory, and when the computer program is executed, at least one processor 1310: on the power supply control circuit side, in response to detecting that the power supply device is inserted into a third interface, detects the power supply output power of the power supply device; determines a power supply control command for the power supply device for the master device and the slave device based on the power supply output power, the charging power required by the master device, and the operating power of the slave device; and sends the power supply control command to the interface control circuit, on the interface control circuit side, in response to receiving the power supply control command, performs switching control on the switching circuit according to the power supply control command to control the power supply of the power supply device to the master device and the slave device.

[0111] It should be understood that when a computer program stored in memory is executed, it causes at least one processor 1310 to perform the above-described combinations of the various embodiments of this specification. Figures 1-12 The description includes various operations and functions.

[0112] According to one embodiment, a program product, such as a computer-readable medium, is provided. The computer-readable medium may have a computer program (i.e., the elements implemented in software as described above), which, when executed by a processor, causes the processor to perform the above-described combinations of the various embodiments of this specification. Figures 1-12 The various operations and functions described. Specifically, a system or apparatus equipped with a computer-readable storage medium storing software program code that implements the functions of any of the embodiments described above, and enabling the computer or processor of the system or apparatus to read and execute the computer program stored in the computer-readable storage medium.

[0113] In this case, the computer program code read from the computer-readable medium itself can perform the functions of any of the embodiments described above, and therefore the computer-readable program code and the computer-readable storage medium storing the computer-readable program code constitute a part of the present invention.

[0114] Examples of computer-readable storage media include floppy disks, hard disks, magneto-optical disks, optical disks (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD-RW), magnetic tapes, non-volatile memory cards, and ROMs. Alternatively, program code can be downloaded from a server computer or the cloud via a communication network.

[0115] According to one embodiment, a computer program product is provided, the computer program product including a computer program, which, when executed by a processor, causes the processor to perform the above-described combinations of the various embodiments of this specification. Figures 1-13 The description includes various operations and functions.

[0116] Those skilled in the art will understand that the various embodiments described above can be modified and varied without departing from the spirit of the invention. Therefore, the scope of protection of this invention should be defined by the appended claims.

[0117] It should be noted that not all steps and units in the above process and system structure diagrams are mandatory; some steps or units can be omitted according to actual needs. The execution order of each step is not fixed and can be determined as needed. The device structure described in the above embodiments can be a physical structure or a logical structure; that is, some units may be implemented by the same physical entity, or some units may be implemented by multiple physical entities, or they may be jointly implemented by certain components in multiple independent devices.

[0118] In the above embodiments, the hardware units or modules can be implemented mechanically or electrically. For example, a hardware unit, module, or processor may include permanent dedicated circuitry or logic (such as a dedicated processor, FPGA, or ASIC) to perform the corresponding operation. The hardware unit or processor may also include programmable logic or circuitry (such as a general-purpose processor or other programmable processor), which can be temporarily configured by software to perform the corresponding operation. The specific implementation method (mechanical, dedicated permanent circuitry, or temporarily configured circuitry) can be determined based on cost and time considerations.

[0119] The specific embodiments described above with reference to the accompanying drawings are exemplary embodiments, but do not represent all embodiments that can be implemented or fall within the scope of the claims. The term "exemplary" as used throughout this specification means "serving as an example, instance, or illustration" and does not imply that it is "preferred" or "advantageous" compared to other embodiments. Specific details are included to provide an understanding of the described techniques. However, these techniques can be practiced without these specific details. In some instances, well-known structures and apparatuses are shown in block diagram form to avoid obscuring the concepts of the described embodiments.

[0120] The foregoing description of this disclosure is provided to enable any person skilled in the art to implement or use this disclosure. Various modifications to this disclosure will be apparent to those skilled in the art, and the general principles defined herein can be applied to other variations without departing from the scope of this disclosure. Therefore, this disclosure is not limited to the examples and designs described herein, but is consistent with the widest scope of the principles and novel features disclosed herein.

Claims

1. A connector, comprising: The first interface is used to connect to the host device; The second interface is used to connect a slave device, which is powered by the master device or the power supply device when it is working. The signal transmission line connected between the first interface and the second interface is configured to transmit data signals and signaling signals between the master device and the slave device. When the master device and the slave device work together, the master device provides content output to the slave device through the signal transmission line. The third interface is used to connect power supply equipment; A switching circuit connected to the first interface, the second interface, and the third interface, the switching circuit comprising: a first switching circuit connected between the power supply port of the first interface and the third switching circuit; a second switching circuit connected between the power supply port of the second interface and the intermediate connection point of the first switching circuit and the third switching circuit; and a third switching circuit connected between the power supply ports of the first interface and the third interface. The power supply control circuit connected to the third interface is configured to, in response to detecting that a power supply device is inserted into the third interface, detect the power supply output power of the power supply device, and determine, based on the power supply output power, the charging power required by the master device, and the operating power of the slave device, a power supply control command for the master device and the slave device; and An interface control circuit connected to the switching circuit and the power supply control circuit is configured to control the power supply of the power supply to the master device and the slave device by switching the switching circuit according to the power supply control command received from the power supply control circuit. The power supply control circuit determines the power supply control commands for the master device and the slave device based on the power output power, the charging power required by the master device, and the operating power of the slave device. Specifically, it is configured as follows: When the power output power of the power supply device is not less than the sum of the charging power required by the master device and the operating power of the slave device, or when the power output power of the power supply device is not less than the sum of the charging power required by the master device and the operating power of the slave device and the master device has a power supply requirement, a power supply control command is determined to instruct that power be supplied to both the master device and the slave device at the same time. When the power output of the power supply device is lower than the sum of the charging power required by the master device and the operating power of the slave device, but not lower than the operating power of the slave device, or when the power output of the power supply device is not lower than the sum of the charging power required by the master device and the operating power of the slave device, and the master device has no power supply requirement, the power supply control command is determined to instruct the slave device to supply power and not to supply power to the master device. When the power output power of the power supply device is lower than the operating power of the slave device but not lower than the charging power required by the master device, or when the power output power of the power supply device is lower than the operating power of the slave device but not lower than the charging power required by the master device and the master device has a power supply demand, the power supply control command is determined to instruct the master device to supply power and not to supply power to the slave device. When the power output of the power supply device is lower than the charging power required by the master device, or when the power output of the power supply device is lower than the operating power of the slave device but not lower than the charging power required by the master device and the master device has no power supply requirement, a power supply control command is determined to indicate that no power supply is supplied to the master device and the slave device. The interface control circuit controls the switching circuit to switch on and off according to the power supply control command, and is specifically configured as follows: The power supply control command is used to instruct that when power is supplied to both the master device and the slave device at the same time, the first switch circuit, the second switch circuit and the third switch circuit shall be closed. The power supply control command is used to instruct that when power is supplied to the slave device and not to the master device, the first switching circuit is disconnected and the second and third switching circuits are closed. The power supply control command is used to instruct that when power is supplied to the master device and not to the slave device, the first switch circuit and the third switch circuit are closed, and the second switch circuit is opened. The power supply control command is used to indicate that when no power is supplied to the master device and the slave device, the third switching circuit shall be disconnected.

2. The connector as claimed in claim 1, wherein, The power supply equipment control circuit determines that the main equipment has a power supply requirement in the following manner: The power difference between the power output power of the power supply equipment and the operating power of the slave device is used to negotiate and determine the power supply with the master device. A pre-negotiated agreement with the main equipment is stipulated, or Determined in response to receiving a power supply request from the master device.

3. The connector as claimed in claim 1, wherein, The data transmission rate of the signal transmission line is not less than 5Gbps, and the connector further includes: The first signal equalization circuit, the first clock data recovery circuit, and the first signal transmission circuit are sequentially connected between the first interface and the second interface via the signal transmission line, and / or A second signal equalization circuit, a second clock data recovery circuit, and a second signal transmission circuit are sequentially connected between the second interface and the first interface via the signal transmission line.

4. The connector as claimed in claim 1, wherein, The first and second interfaces are Type-C interfaces. The signal transmission lines include a first USB signal line, a second USB signal line, and a DP signal line. The first and second USB signal lines are used to enable bidirectional communication between the master device and the slave device. The DP signal line is used to enable unidirectional communication from the master device to the slave device. The data transmission rate of the first USB signal line and the DP signal line is not less than 5Gbps, and the data transmission rate of the second USB signal line is less than 5Gbps. The second USB signal line is connected between the first and second interfaces. The connector also includes: A first signal equalization circuit, a first clock data recovery circuit, and a first signal transmission circuit are sequentially connected between the first interface and the second interface via the first USB signal line and the DP signal line, and / or A second signal equalization circuit, a second clock data recovery circuit, and a second signal transmission circuit are sequentially connected between the second interface and the first interface via the first USB signal line and the DP signal line.

5. The connector of claim 4, further comprising: The channel switching circuit, connected between the first clock data recovery circuit and the first signal transmission circuit and between the second clock data recovery circuit and the second signal transmission circuit via the first USB signal line and / or the DP signal line, is configured to perform channel switching processing on the first USB signal line and the DP signal line according to the orientation of the master device and the slave device.

6. The connector as claimed in claim 5, wherein, The interface control circuit has two control ports supporting the PD protocol. One control port is connected to the CC signal terminal of the first interface via a signal line, and the other control port is connected to the two CC signal terminals of the second interface via two signal lines. The interface control circuit determines the positive / negative insertion state between the master device and the slave device based on the CC signal received from the CC signal terminals of the first interface and the second interface.

7. The connector as claimed in claim 1, wherein, The first interface, the second interface, and / or the third interface are one of the following interfaces: Type A interface, Type B interface, Type C interface, Micro USB interface, Mini USB interface and Lightning interface.

8. A power supply control method for a connector, the connector comprising a first interface, a second interface, and a third interface for connecting a master device, a slave device, and a power supply device respectively; a signal transmission line connected between the first interface and the second interface; a switching circuit connected to the first interface, the second interface, and the third interface; the switching circuit comprising a first switching circuit connected between a power supply port of the first interface and the third switching circuit; a second switching circuit connected between a power supply port of the second interface and an intermediate connection point of the first and third switching circuits; a third switching circuit connected between the power supply ports of the first interface and the third interface; a power supply device control circuit connected to the third interface; and an interface control circuit connected to the switching circuit and the power supply device control circuit; wherein the slave device is powered by the master device or the power supply device during operation; and when the master device connected to the first interface and the slave device connected to the second interface cooperate, the master device provides content output to the slave device through the signal transmission line; the method comprising: At the control circuit of the power supply equipment. In response to detecting that a power supply device is inserted into a third interface, the power supply output power of the power supply device is detected; The power supply control command for the power supply device is determined based on the power output power, the charging power required by the master device, and the operating power of the slave device. as well as Send the power supply control command to the interface control circuit; At the interface control circuit, In response to receiving the power supply control command, the switching circuit is switched on and off according to the power supply control command to control the power supply equipment to the master device and the slave device; The process of determining the power supply control commands for the master device and the slave device based on the power output power, the charging power required by the master device, and the operating power of the slave device includes: When the power output power of the power supply device is not less than the sum of the charging power required by the master device and the operating power of the slave device, or when the power output power of the power supply device is not less than the sum of the charging power required by the master device and the operating power of the slave device and the master device has a power supply requirement, a power supply control command is determined to instruct that power be supplied to both the master device and the slave device simultaneously. When the power output of the power supply device is lower than the sum of the charging power required by the master device and the operating power of the slave device, but not lower than the operating power of the slave device, or when the power output of the power supply device is not lower than the sum of the charging power required by the master device and the operating power of the slave device, and the master device has no power supply requirement, the power supply control command is determined to instruct the slave device to supply power and not to supply power to the master device. When the power output power of the power supply device is lower than the operating power of the slave device but not lower than the charging power required by the master device, or when the power output power of the power supply device is lower than the operating power of the slave device but not lower than the charging power required by the master device and the master device has a power supply demand, the power supply control command is determined to instruct the master device to supply power and not to supply power to the slave device. When the power output power of the power supply device is lower than the operating power of the slave device but not lower than the charging power required by the master device and the master device has no power supply demand, or when the power output power of the power supply device is lower than the charging power required by the master device, a power supply control command is determined to indicate that power is not supplied to the master device and the slave device; wherein, on the interface control circuit side, in response to receiving the power supply control command, the switching circuit is switched according to the power supply control command to control the power supply of the power supply device to the master device and the slave device, including: When the power supply control command is used to instruct that power be supplied to both the master device and the slave device simultaneously, the first switching circuit, the second switching circuit, and the third switching circuit are closed. When the power supply control command is used to instruct that power be supplied to the slave device and not to the master device, the first switching circuit is disconnected and the second switching circuit and the third switching circuit are closed; When the power supply control command is used to instruct that power be supplied to the master device and not to the slave device, the first switch circuit and the third switch circuit are closed, and the second switch circuit is opened. When the power supply control command is used to indicate that power should not be supplied to the master device and the slave device, the third switching circuit is disconnected.

9. An electronic device, comprising: At least one processor; Memory; as well as A computer program stored in the memory, which is executed by the at least one processor to implement the power supply control method as described in claim 8.

10. A computer-readable storage medium storing a computer program that, when executed by a processor, implements the power supply control method as described in claim 8.

11. A computer program product comprising a computer program that, when executed by a processor, implements the power supply control method as described in claim 8.

Citation Information

Patent Citations

  • Power output control method and circuit of charging device, and charging device

    CN107706972A

  • Method, driver and system for transmitting signals

    CN108418582A

  • Mobile power supply and method for supplying power to peripheral equipment

    CN111064243A

  • Connector

    CN209881017U

  • Mobile device and method of managing charging current

    US20160218527A1