First electronic device, second electronic device, cable, and power supply system

By using independent power modules and return grounds in the power supply equipment, the communication module and power module are powered and returned separately, which solves the communication interference problem caused by ground pressure differences during high-power power supply, improves the recognition accuracy of communication signals and the communication effect of the power supply process.

WO2025208977A1PCT designated stage Publication Date: 2025-10-09HUAWEI TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/144625
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-04-30
Filing Date
2024-12-31
Publication Date
2025-10-09

AI Technical Summary

Technical Problem

During high-power power supply, the ground pressure difference between the power supply equipment and the powered equipment increases, causing the ground pressure of the powered equipment to be higher than that of the power supply equipment, affecting the recognition of communication signals and interfering with communication.

Method used

By using independent first and second power supply modules and corresponding return grounds in the power supply equipment, power is supplied to the communication module and the power module respectively, and current is returned through independent return grounds, the power supply and return ground of the communication path and the power path are separated, avoiding interference of the power path on the communication path.

Benefits of technology

It effectively avoids the interference of the power path on the communication path, improves the communication effect, and enhances the accuracy of communication signal recognition during the power supply process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024144625_09102025_PF_FP_ABST
    Figure CN2024144625_09102025_PF_FP_ABST
Patent Text Reader

Abstract

The present application is applicable to the technical field of terminals, and specifically relates to a first electronic device, a second electronic device, a cable, and a power supply system. The power supply system may comprise a power source module and a return ground which correspond to a communication path, and a power source module and a return ground which correspond to a power path. The power source module corresponding to the communication path is independent of the power source module corresponding to the power path, and the return ground corresponding to the communication path is independent of the return ground corresponding to the power path, so as to separate a power supply circuit of the communication path from a power supply circuit of the power path, i.e., to separate the power source module and the return ground of a communication module from the power source module and the return ground of a power module, so that the communication module and the power module can have independent power supply sources, and the power supply sources can have independent return grounds, so that the impact of a ground potential difference generated by a large current in the power path on the communication path can be reduced during high-power supply, and thus an electronic device can accurately identify communication signals, improving a communication effect, and improving user experience.
Need to check novelty before this filing date? Find Prior Art

Description

First electronic device, second electronic device, cable and power supply system

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on April 1, 2024, with application number 202410399026.1 and application name “Power supply equipment, powered equipment, cable and power supply system”, and claims priority to the Chinese patent application filed with the State Intellectual Property Office on April 30, 2024, with application number 202410548782.6 and application name “First electronic device, second electronic device, cable and power supply system”. The entire contents of these two Chinese patent applications are incorporated by reference into this application. Technical Field

[0002] The present application belongs to the field of terminal technology, and in particular relates to a first electronic device, a second electronic device, a cable, and a power supply system. Background Art

[0003] With the rapid development of power supply technology, the power of powered devices is increasing. To ensure the operation of these devices, they must be supplied with high-power power by power supply equipment. However, in current power supply solutions, the high current generated in the line during high-power supply increases the ground voltage difference between the power supply equipment and the powered device. This causes the ground pressure of the powered device to be higher than that of the power supply equipment, affecting the powered device's ability to recognize communication signals and thus interfering with communications. Summary of the Invention

[0004] In a first aspect, an embodiment of the present application provides a first electronic device, the first electronic device including a first communication module, a first power module, a first power supply module, a second power supply module, a first return ground, a second return ground, a first contact, and a second contact, wherein the first communication module is connected to the first power supply module, the first communication module is also connected to the first return ground, the first power supply module is connected to the first return ground, the first power supply module is also connected to the first contact, the first power module is connected to the second power supply module, the first power module is also connected to the second return ground, the second power supply module is connected to the second return ground, and the second power supply module is also connected to the second contact;

[0005] The first power module is configured to provide power to the first communication module and to provide power to the second communication module in the second electronic device through the first contact;

[0006] The second power module is configured to provide power to the first power module and to provide power to the second power module in the second electronic device through the second contact;

[0007] The first return ground is used to return the current provided by the first power module;

[0008] The second return ground is used to return the current provided by the second power module.

[0009] In the first electronic device provided above, during the power supply process, the first power module can be used to provide electrical energy to the first communication module and the second communication module, and the second power module can be used to provide electrical energy to the first power module and the second power module. The current provided by the first power module can be returned through the first return ground, while the current provided by the second power module can be returned through the second return ground. This allows the communication module and the power module to be powered by two independent power modules and to return current through two independent return grounds, thereby separating the power supply and return ground in the communication path and the power path, thereby preventing interference of the power path with the communication path.

[0010] It should be understood that the first power module may be power module A1 (e.g., a DBUS power module), and the second power module may be power module A2 (e.g., a PBUS power module). The first return ground may be return ground A1 (e.g., DGND-1), and the second return ground may be return ground A2 (e.g., PGND-1). The first contact may be contact A1 (e.g., DBUS-1), and the second contact may be contact A2 (e.g., PBUS-1).

[0011] In some embodiments, the first electronic device further includes a third contact, and the third contact is connected to the first communication module;

[0012] The first communication module is further configured to communicate with the second electronic device through the third contact.

[0013] It should be understood that the third contact can be a contact connected to a signal line within the cable. The third contact can be contact A3 or contact A4. For example, when contact A3 is connected to a signal line within the cable, contact A3 can be the third contact. For example, when contact A4 is connected to a signal line within the cable, contact A4 can be the third contact.

[0014] In some other embodiments, the first electronic device further includes a first plug-in detection module, the first plug-in detection module is connected to the first power module, and the first plug-in detection module is further connected to the first return ground;

[0015] The first power supply module is further configured to provide power to the first plug detection module;

[0016] The first plug-in / out detection module is configured to detect the plug-in or plug-out status of the second electronic device.

[0017] The first electronic device provided in this embodiment may be provided with a first plug-in detection module. The first plug-in detection module may be provided with power via the first power module and may return current via the first return ground. The first plug-in detection module may be used to detect the insertion or removal status of the second electronic device.

[0018] It should be understood that the second electronic device being in the plugged-in state may mean that the second electronic device is connected to the first electronic device, and the second electronic device being in the unplugged state may mean that the second electronic device is disconnected from the first electronic device.

[0019] In one example, the first plug-in detection module is connected to the third contact;

[0020] The first plug-in / out detection module is further configured to determine the plug-in or plug-out status of the second electronic device according to the electrical level on the third contact.

[0021] It should be understood that when the second electronic device is not inserted, the power module connected to the third contact (e.g., contact A3) can be a power supply Vp-11. At this time, there is only a pull-up resistor Rp-11 in the communication line where contact A3 is located. When the second electronic device is inserted, that is, when the second electronic device is connected to the first electronic device via a cable, the second electronic device can be connected to contact A3 in the first electronic device via contact B3 and a signal line. At this time, contact B3 is connected to the ground via a pull-down resistor Rd-21, resulting in an increase in the pull-down resistor Rd-21 in the second electronic device on the communication line where contact A3 is located, thereby causing the level on contact A3 to drop. After the second electronic device is inserted, if the second electronic device is unplugged again, at this time, the pull-down resistor Rd-21 in the second electronic device will be reduced on the communication line where contact A3 is located, thereby causing the level on contact A3 to rise. Therefore, the first plug-in detection module can obtain the level on the third contact and can determine the insertion or unplugging status of the second electronic device based on the level on the third contact.

[0022] In a possible implementation, the first plug-in detection module is further configured to determine that the second electronic device supporting dual power supply has been plugged in when it is determined that the electrical level on the third contact is within a first range.

[0023] It should be noted that the first range may be a preset range B. The preset range B may be a preset range corresponding to the voltage level on the third contact when the second electronic device supporting dual power is plugged in. The preset range B may be determined based on the pull-down resistor Rd-21 in the second electronic device supporting dual power, the communication line on which the third contact is located, and the voltage provided by the power supply connected to the third contact (e.g., power supply Vp-11).

[0024] In one example, the first plug-in detection module is further configured to determine that the second electronic device supporting dual power supply has been plugged in when it is determined that the electrical level on the third contact is within the first range and lasts for a duration greater than or equal to a first threshold.

[0025] In the first electronic device provided in this example, to reduce misidentification of the insertion status caused by level jitter and improve the accuracy of determining the insertion status of the second electronic device, the first plug detection module can determine the insertion status of the second electronic device based on the level on the third contact and the duration of the level. The first threshold can be a preset duration B.

[0026] In some embodiments, the first communication module is further used to control the first power module to output power to the second electronic device when it is determined that the second electronic device supporting dual power supply has been inserted, so as to provide power to the second communication module in the second electronic device through the first power module.

[0027] In the first electronic device provided in this embodiment, the first communication module may have a control function. When determining that a second electronic device supporting dual power supplies has been inserted, the first communication module may control the first power module to provide power to the second communication module in the second electronic device, so that the first communication module in the first electronic device can communicate with the second communication module in the second electronic device.

[0028] It should be noted that the first electronic device may further include a control module. When determining that a second electronic device supporting dual power supplies has been inserted, the control module of the first electronic device may control the first power module to provide power to the second communication module in the second electronic device, so that the first communication module in the first electronic device can communicate with the second communication module in the second electronic device.

[0029] That is, the control function in the first electronic device may be performed by the first communication module, or may be performed by the control module in the first electronic device.

[0030] In other embodiments, the first communication module is further used to obtain first information sent by the second electronic device, and when it is determined that the second electronic device supporting dual power supply has been inserted, control the second power supply module to output power to the second electronic device according to the first information, so as to provide power to the second power module in the second electronic device through the second power supply module.

[0031] In the first electronic device provided in this embodiment, when the first communication module communicates with the second communication module, the first communication module can obtain first information sent by the second electronic device (i.e., information for controlling the second power module to output power to the second electronic device). Upon determining that a second electronic device supporting dual power supplies has been inserted, the first communication module can control the second power module to supply power to the second power module in the second electronic device based on the first information, thereby powering the communication module and the power module through two independent power modules, reducing the impact of the power path on the communication path and improving communication quality.

[0032] In a possible implementation, the first plug-in detection module is further configured to determine that the second electronic device supporting dual power supply has been unplugged when it is determined that the electrical level on the third contact is within a second range.

[0033] It should be noted that the second range may be a preset range C. The preset range C may be a preset range corresponding to the voltage level on the third contact when the second electronic device supporting dual power is unplugged. The preset range C may be determined based on the voltage provided by the communication line on which the third contact is located and the power supply connected to the third contact (e.g., power supply Vp-11).

[0034] In another possible implementation, the first plug-in detection module is further configured to determine that the second electronic device supporting dual power supply has been unplugged when it is determined that the electrical level on the third contact is within the second range and lasts for a period greater than or equal to a second threshold.

[0035] In the first electronic device provided by this implementation, to reduce misidentification of the unplugged state due to level jitter and improve the accuracy of determining the unplugged state of the second electronic device, the first plug detection module can determine the plugged state of the second electronic device based on the level on the third contact and the duration of the level. The second threshold can be a preset duration C.

[0036] In some embodiments, the first communication module is further configured to control the first power module and the second power module to stop supplying power to the second electronic device when it is determined that the second electronic device supporting dual power supply has been unplugged. That is, when it is determined that the second electronic device is unplugged, the first power module and the second power module may stop supplying power.

[0037] In a possible implementation, the first plug-in detection module is further configured to determine that the second electronic device supporting a single power supply has been plugged in when it is determined that the electrical level on the third contact is within a third range.

[0038] It should be noted that the third range may be a preset range A. The preset range A may be a preset range corresponding to the voltage level on the third contact when the second electronic device supporting a single power supply is plugged in. The preset range A may be determined based on the pull-down resistor Rd-21 in the second electronic device supporting a single power supply, the communication line on which the third contact is located, and the voltage provided by the power supply connected to the third contact (e.g., power supply Vp-11).

[0039] It should be noted that the pull-down resistance Rd-21 in the second electronic device supporting a single power supply is different from the pull-down resistance Rd-21 in the second electronic device supporting a dual power supply. The preset range A and the preset range B do not overlap.

[0040] In another possible implementation, the first plug-in detection module is further configured to determine that the second electronic device supporting a single power supply has been plugged in when it is determined that the electrical level on the third contact is within the third range and lasts for a duration greater than or equal to a third threshold.

[0041] In the first electronic device provided by this implementation, to reduce misidentification of the insertion status caused by level jitter and improve the accuracy of determining the insertion status of the second electronic device, the first plug detection module can determine the insertion status of the second electronic device based on the level on the third contact and the duration of the level. The third threshold can be a preset duration A.

[0042] In some embodiments, the first communication module is further used to control the second power module to output power to the second electronic device when it is determined that the second electronic device supporting a single power supply has been inserted, so as to provide power to the second electronic device through the second power module.

[0043] In the first electronic device provided in this embodiment, when it is determined that a second electronic device that supports a single power supply has been inserted, it can be determined that the second electronic device can only obtain the power provided by the second power module. At this time, the second power module can provide power to each module in the second electronic device (such as the second communication module and the second power module, etc.).

[0044] In a possible implementation, the first plug-in detection module is further configured to determine that the second electronic device supporting a single power supply has been unplugged when it is determined that the electrical level on the third contact is within a fourth range.

[0045] It should be noted that the fourth range may be the preset range C or another range. The fourth range may be determined based on the voltage provided by the communication line where the third contact is located and the power supply connected to the third contact (eg, power supply Vp-11).

[0046] In another possible implementation, the first plug-in detection module is further configured to determine that the second electronic device supporting a single power supply has been unplugged when it is determined that the electrical level on the third contact is within the fourth range and lasts for a period greater than or equal to a fourth threshold.

[0047] In the first electronic device provided by this implementation, to reduce misidentification of the unplugged state due to level jitter and improve the accuracy of determining the unplugged state of the second electronic device, the first plug detection module can determine the plugged state of the second electronic device based on the level on the third contact and the duration of the level. The fourth threshold can be a preset duration C or other duration, which can be determined based on actual scenarios.

[0048] In some embodiments, the first communication module is further configured to control the second power supply module to stop outputting power to the second electronic device when it is determined that the second electronic device supporting a single power supply has been unplugged.

[0049] In a possible implementation, the first electronic device further includes a fourth contact, and the fourth contact is connected to the first plug detection module;

[0050] The fourth contact is used to connect to the first chip in the cable;

[0051] The first plug-in detection module is further configured to determine whether the first chip exists in the cable connected to the first electronic device based on the electrical level on the fourth contact.

[0052] It should be noted that the fourth contact can be contact A4 or contact A3. Specifically, when the third contact is contact A3, the fourth contact can be contact A4. That is, when the first electronic device is connected to the signal line in the cable via contact A3, the first electronic device can also be connected to the first chip in the cable via contact A4. When the third contact is contact A4, the fourth contact can be contact A3. That is, when the first electronic device is connected to the signal line in the cable via contact A4, the first electronic device can also be connected to the first chip in the cable via contact A3.

[0053] In one example, the first plug-in detection module is further configured to determine that the first chip exists in the cable connected to the first electronic device when it is determined that the electrical level on the fourth contact is within a fifth range.

[0054] It should be noted that the first chip may be a chip in the cable connected to the first electronic device. The fifth range may be a preset range D. The preset range D may be a preset range corresponding to the electrical level on the fourth contact when the first chip connected to the first electronic device is present in the cable. The preset range D may be determined based on the resistance Ra-1 in the first chip, the communication line where the fourth contact is located, and the voltage provided by the power supply connected to the fourth contact (e.g., power supply Vp-12).

[0055] In a possible implementation, the first electronic device further includes a voltage conversion module;

[0056] The first communication module is further used to obtain second information sent by the second electronic device when it is determined that the first chip exists in the cable connected to the first electronic device, and switch the power module connected to the fourth contact from the first power submodule to the second power submodule according to the second information, so as to provide power to the first chip through the second power submodule. The first power submodule and the second power submodule are obtained by the voltage conversion module in the first electronic device converting the first power module.

[0057] The first power submodule may be a power supply Vp-12 corresponding to the fourth contact. The second power submodule may be a power supply VCL-12 corresponding to the fourth contact. When the first electronic device supports dual power supplies, the power supplies Vp-12 and VCL-12 corresponding to the fourth contact may be obtained by converting the first power module by a voltage conversion module in the first electronic device.

[0058] It should be understood that the voltage conversion module converting the first power module may refer to the voltage conversion module converting the voltage or power provided by the first power module. That is, the first power submodule and the second power submodule may be obtained by converting the power provided by the first power module by the voltage conversion module.

[0059] In some embodiments, the first communication module is further configured to switch the power module connected to the fourth contact from the second power submodule to the first power submodule when it is determined that the second electronic device has been unplugged.

[0060] In a second aspect, an embodiment of the present application provides a second electronic device, the second electronic device including a second communication module, a second power module, a third return ground, a fourth return ground, a fifth contact, and a sixth contact, the second communication module being connected to the third return ground, the second communication module being further connected to the fifth contact, the second power module being connected to the fourth return ground, and the second power module being further connected to the sixth contact;

[0061] The second communication module is configured to obtain electrical energy provided by the first power module in the first electronic device through the fifth contact;

[0062] The second power module is configured to obtain electrical energy provided by the second power module in the first electronic device through the sixth contact;

[0063] The third return ground is used to return the current provided by the first power module;

[0064] The fourth return ground is used to return the current provided by the second power module.

[0065] In the second electronic device provided above, during the power supply process, the first power module in the first electronic device can provide electrical energy to the second communication module in the second electronic device, and the second power module in the first electronic device can provide electrical energy to the second power module in the second electronic device. The current provided by the first power module to the second communication module can be returned through a third return path, while the current provided by the second power module to the second power module can be returned through a fourth return path. This allows the second communication module and the second power module to be powered by two independent power modules and to return current through two independent return paths, thereby separating the power supply and return paths in the communication path and the power path, thereby avoiding interference of the power path with the communication path and improving communication effects.

[0066] It should be understood that the third return ground may be return ground B1 (e.g., DGND-2), the fourth return ground may be return ground B2 (e.g., PGND-2), the fifth contact may be contact B1 (e.g., DBUS-2), and the sixth contact may be contact B2 (e.g., PBUS-2).

[0067] In some embodiments, the second electronic device further includes a seventh contact, and the seventh contact is connected to the second communication module;

[0068] The second communication module is further configured to communicate with the first electronic device through the seventh contact.

[0069] It should be understood that the seventh contact can be a contact connected to a signal line within the cable. The seventh contact can be contact B3 or contact B4. For example, when contact B3 is connected to a signal line within the cable, contact B3 can be the seventh contact. For example, when contact B4 is connected to a signal line within the cable, contact B4 can be the seventh contact.

[0070] In some other embodiments, the second electronic device further includes a second plug-in detection module, the second plug-in detection module is connected to the fifth contact, and the second plug-in detection module is further connected to the third return ground;

[0071] The second plug-in / out detection module is configured to obtain the electrical energy provided by the first power module in the first electronic device through the fifth contact, and to detect the plug-in or plug-out status of the first electronic device.

[0072] The second electronic device provided in this embodiment may be provided with a second plug-in detection module. The second plug-in detection module can obtain power from the first power module in the first electronic device via the fifth contact and return current via the third return ground. The second plug-in detection module can be used to detect whether the first electronic device is plugged in or unplugged.

[0073] It should be understood that the first electronic device being in the plugged-in state may mean that the first electronic device is connected to the second electronic device, and the first electronic device being in the unplugged state may mean that the first electronic device is disconnected from the second electronic device.

[0074] In some embodiments, the second plug detection module is connected to the seventh contact;

[0075] The second plug-in / out detection module is further configured to determine the insertion or removal status of the first electronic device based on the power-on or power-off status of the fifth contact and the electrical level on the seventh contact; or, further configured to determine the insertion or removal status of the first electronic device based on the power-on or power-off status of the sixth contact and the electrical level on the seventh contact.

[0076] It should be noted that the fifth contact being in the power-on state may mean that there is electricity on the fifth contact, and the fifth contact being in the power-off state may mean that there is no electricity on the fifth contact.

[0077] It should be understood that when the second electronic device supports dual power supplies, when the first electronic device supports a single power supply and is plugged in, the second power supply module in the first electronic device can provide power to the second electronic device via contact A2 (e.g., PBUS-1) and contact B2 (e.g., PBUS-2). That is, when the second electronic device supports dual power supplies, if the first electronic device supports a single power supply and is plugged in, PBUS-2 (i.e., the sixth contact) in the second electronic device is powered on; and if the first electronic device supports a single power supply and is unplugged, PBUS-2 in the second electronic device is powered off.

[0078] When the second electronic device supports dual power, and the first electronic device supports dual power, the first power module in the first electronic device can provide power to the second electronic device via contact A1 (e.g., DBUS-1) and contact B1 (e.g., DBUS-2). That is, when the second electronic device supports dual power, if the first electronic device supports dual power is plugged in, DBUS-2 (i.e., the fifth contact) in the second electronic device is powered on; if the first electronic device supports dual power is unplugged, DBUS-2 in the second electronic device is powered off.

[0079] When the second electronic device is an electronic device that supports dual power supplies, if the first electronic device that supports dual power supplies is in an inserted state, the first electronic device can also control the second power module in the first electronic device to provide power to the second power module of the second electronic device through contact A2 (e.g., PBUS-1) and contact B2 (e.g., PBUS-2) based on information sent by the second electronic device. Therefore, when the first electronic device that supports dual power supplies is in an unplugged state, PBUS-2 (i.e., the sixth contact) in the second electronic device is in a powered-off state.

[0080] In addition, when the first electronic device is not inserted, the contact B3 (i.e., the seventh contact) in the second electronic device can be connected to the ground through the pull-down resistor Rd-21, that is, there is no voltage in the communication line where the contact B3 in the second electronic device is located, resulting in a small level on the communication line where the contact B3 is located, for example, it can be 0.

[0081] When the first electronic device is inserted, contact A3 in the first electronic device can be connected to contact B3 via a signal line, so that the communication line on which contact B3 resides and the communication line on which contact A3 reside form the same communication line. Because power source Vp-11 is present in the communication line on which contact A3 resides, a voltage is present on the communication line on which contact B3 resides, causing the voltage level on contact B3 to rise. For example, the voltage level on contact B3 may become the same as the voltage level on contact A3, i.e., the voltage level on contact B3 may rise to within the preset range A or the preset range B.

[0082] Therefore, in the second electronic device provided in this embodiment, the second plug-in detection module can determine the insertion or unplugging state of the first electronic device based on the power-on or power-off state of the fifth contact (e.g., DBUS-2) and the level on the seventh contact (e.g., contact B3); or, it can determine the insertion or unplugging state of the first electronic device based on the power-on or power-off state of the sixth contact (e.g., PBUS-2) and the level on the seventh contact.

[0083] In a possible implementation, the second plug-in detection module is further configured to determine that the first electronic device supporting dual power supply has been plugged in when it is determined that the fifth contact is in a powered-on state and the electrical level on the seventh contact is within a sixth range.

[0084] When the second electronic device is an electronic device supporting dual power supplies, the sixth range may be the preset range B.

[0085] In another possible implementation, the second plug-in detection module is further used to determine that the first electronic device supporting dual power supply has been inserted when it is determined that the fifth contact is in a powered-on state and the duration of the electrical level on the seventh contact being in the sixth range is greater than or equal to a sixth threshold.

[0086] In the second electronic device provided by this implementation, to reduce misidentification of the insertion status caused by level jitter and improve the accuracy of determining the insertion status of the first electronic device, the second plug detection module can determine the insertion status of the first electronic device based on the level on the seventh contact and the duration of the level. The sixth threshold can be a preset duration B or another duration.

[0087] In some embodiments, the second electronic device further includes an eighth contact and a voltage conversion module;

[0088] The second communication module is also used to control the eighth contact to be connected to the third power submodule when it is determined that the first electronic device supporting dual power supply has been inserted. The third power submodule is obtained by the voltage conversion module in the second electronic device converting the first power module.

[0089] It should be understood that the eighth contact can be contact B4 or contact B3. Specifically, when the seventh contact is contact B3, the eighth contact can be contact B4. That is, when the second electronic device is connected to the signal line in the cable via contact B3, the second electronic device can also be connected to the second chip in the cable via contact B4. When the seventh contact is contact B4, the eighth contact can be contact B3. That is, when the second electronic device is connected to the signal line in the cable via contact B4, the second electronic device can also be connected to the second chip in the cable via contact B3.

[0090] In the second electronic device provided in this embodiment, the second communication module may have a control function. Upon determining that the first electronic device supporting dual power supplies has been inserted, the second communication module may control the eighth contact to connect to the third power submodule, thereby detecting, via the third power submodule, whether the second chip connected to the second electronic device is present in the cable.

[0091] It should be understood that the second electronic device may also include a control module. When determining that the first electronic device supporting dual power supply has been inserted, the control module in the second electronic device may control the eighth contact to be connected to the third power submodule, so as to detect, via the third power submodule, whether the chip connected to the second electronic device is present in the cable.

[0092] That is, the control function in the second electronic device may be performed by the second communication module in the second electronic device, or may be performed by the control module in the second electronic device.

[0093] In other embodiments, the second communication module is further used to send first information to the first electronic device when it is determined that the first electronic device supporting dual power supply has been inserted, and the first information is used to instruct the second power module in the first electronic device to provide power to the second power module in the second electronic device.

[0094] In the second electronic device provided in this embodiment, when it is determined that the first electronic device that supports dual power supplies has been inserted, the second communication module can send first information to the first electronic device to instruct the second power module in the first electronic device to provide power to the second power module, so that the second communication module and the second power module can be powered by different power modules, reducing the impact of the power path on the communication path and improving the communication effect.

[0095] In a possible implementation, the second plug-in detection module is further configured to determine that the first electronic device supporting a single power supply has been plugged in when it is determined that the sixth contact is in a powered-on state and the electrical level on the seventh contact is within a seventh range.

[0096] When the second electronic device is an electronic device supporting dual power supplies, the seventh range may be the preset range A.

[0097] In another possible implementation, the second plug-in detection module is further used to determine that the first electronic device supporting a single power supply has been inserted when it is determined that the sixth contact is in a powered-on state and the duration of the electrical level on the seventh contact being in the seventh range is greater than or equal to a seventh threshold.

[0098] In the second electronic device provided by this implementation, to reduce misidentification of the insertion status caused by level jitter and improve the accuracy of determining the insertion status of the first electronic device, the second plug detection module can determine the insertion status of the first electronic device based on the level on the seventh contact and the duration of the level. The seventh threshold can be a preset duration A or another duration.

[0099] In a possible implementation, the second plug-in detection module is further configured to determine that the first electronic device has been unplugged when detecting that the fifth contact or the sixth contact is in a power-off state, or when detecting that the level on the seventh contact is within an eighth range.

[0100] It should be noted that the eighth range may be the preset range E.

[0101] In another possible implementation, the second plug-in detection module is further configured to determine that the first electronic device has been unplugged when detecting that the electrical level on the seventh contact is within the eighth range and lasts for a duration greater than or equal to an eighth threshold.

[0102] In the second electronic device provided by this implementation, to reduce misidentification of the unplugged state due to level jitter and improve the accuracy of determining the plugged state of the first electronic device, the second plug detection module can determine the unplugged state of the first electronic device based on the level on the seventh contact and the duration of the level. The eighth threshold can be a preset duration E.

[0103] In some embodiments, the second electronic device further includes an eighth contact, and the eighth contact is connected to the second plug detection module;

[0104] The eighth contact is used to connect to the second chip in the cable;

[0105] The second plug-in detection module is further configured to determine whether the second chip exists in the cable connected to the second electronic device based on the electrical level on the eighth contact.

[0106] It should be understood that the second chip can be a chip connected to the second electronic device in the cable. When the first electronic device is not inserted, the eighth contact (e.g., contact B4) can be connected to ground via a pull-down resistor Rd-22. In addition, the power supply Vp-22 and power supply VCL-22 corresponding to contact B4 are both without voltage, and the power supply Vp-22 and power supply VCL-22 are disconnected from the communication line where the second chip is located, resulting in a small level on the power line C4 corresponding to the second chip, for example, 0. After the first electronic device is in the inserted state, the second electronic device can connect contact B4 to the power supply Vp-22. At this time, the power module (e.g., a PBUS power module or a DBUS power module) in the first electronic device can provide power to the power supply Vp-22 through the cable, so that there is a voltage on the power line C4 connected to the second chip, thereby causing the level on the communication path where the second chip is located to rise, causing the level on the eighth contact to rise. Therefore, the second plug detection module can determine whether there is a second chip connected to the second electronic device in the cable based on the level on the eighth contact.

[0107] In a possible implementation, the second plug-and-unplug detection module is further configured to determine that the second chip exists in the cable connected to the second electronic device when detecting that the electrical level on the eighth contact is within a ninth range.

[0108] It should be noted that the ninth range may be the preset range F.

[0109] In some embodiments, the second electronic device includes a voltage conversion module;

[0110] The second communication module is further used to switch the power module connected to the eighth contact from the third power submodule to the fourth power submodule when it is determined that the second chip exists in the cable connected to the second electronic device, so as to provide power to the second chip through the fourth power submodule. The third power submodule and the fourth power submodule are obtained by the voltage conversion module in the second electronic device from the first power module.

[0111] In a possible implementation, the second plug-in detection module is further configured to determine that the first electronic device has been unplugged when detecting that the electrical level on the eighth contact is within a tenth range.

[0112] It should be noted that the tenth range may be the preset range G.

[0113] In some embodiments, the second communication module is further used to send second information to the first electronic device when it is determined that there is a first chip in the cable connected to the second electronic device, and the second information is used to instruct the first electronic device to provide power to the first chip in the cable.

[0114] In a third aspect, an embodiment of the present application provides a cable, the cable comprising a first power line, a second power line, a fifth return ground corresponding to the first power line, and a sixth return ground corresponding to the second power line;

[0115] The first power line is used to connect to the first contact in the first electronic device and to connect to the fifth contact in the second electronic device;

[0116] The second power line is used to connect to the second contact point in the first electronic device and to connect to the sixth contact point in the second electronic device.

[0117] In the cable provided above, during the power supply process, the electric energy provided by the first power module can be transmitted through the first power line in the cable, and the electric energy provided by the second power module can be transmitted through the second power line in the cable. The current provided by the first power module can be returned through the fifth return ground, while the current provided by the second power module can be returned through the sixth return ground. This allows the communication module and the power module to be powered by two independent power modules and to return current through two independent return grounds, thereby separating the power supply and return ground in the communication path and the power path, thereby preventing interference of the power path on the communication path and improving the communication effect.

[0118] In some embodiments, the cable further comprises a signal line;

[0119] The signal line is used to connect to the third contact of the first electronic device and to connect to the seventh contact of the second electronic device.

[0120] In some other embodiments, the cable further includes a first chip and a second chip, the first chip is connected to the signal line, and the second chip is connected to the signal line.

[0121] In some embodiments, the cable further includes a third power line connected to the first chip and a fourth power line connected to the second chip;

[0122] The third power line is used to connect to the fourth contact in the first electronic device;

[0123] The fourth power line is used to connect to the eighth contact in the second electronic device.

[0124] In a fourth aspect, an embodiment of the present application provides a power supply system, including a first electronic device, a second electronic device, and a cable connecting the first electronic device and the second electronic device;

[0125] The first electronic device includes a first communication module, a first power module, a first power supply module, a second power supply module, a first return ground, a second return ground, a first contact, and a second contact; the first communication module is connected to the first power supply module, the first communication module is also connected to the first return ground, the first power supply module is connected to the first return ground, the first power supply module is also connected to the first contact, the first power module is connected to the second power supply module, the first power module is also connected to the second return ground, the second power supply module is connected to the second return ground, and the second power supply module is also connected to the second contact;

[0126] The second electronic device includes a second communication module, a second power module, a third return ground, a fourth return ground, a fifth contact, and a sixth contact, wherein the second communication module is connected to the third return ground, the second communication module is also connected to the fifth contact, the second power module is connected to the fourth return ground, and the second power module is also connected to the sixth contact;

[0127] The cable includes a first power line, a second power line, a fifth return ground corresponding to the first power line, and a sixth return ground corresponding to the second power line;

[0128] The first power line is used to connect the first contact in the first electronic device and the fifth contact in the second electronic device;

[0129] The second power line is used to connect the second contact in the first electronic device and the sixth contact in the second electronic device;

[0130] The first power module is configured to provide power to the first communication module, and to provide power to the second communication module via the first contact, the first power line, and the fifth contact;

[0131] The second power module is configured to provide power to the first power module, and to provide power to the second power module via the second contact, the second power line, and the sixth contact;

[0132] The first return ground, the third return ground, and the fifth return ground are used to return the current provided by the first power module;

[0133] The second return ground, the fourth return ground, and the sixth return ground are used to return the current provided by the second power module.

[0134] In a fifth aspect, an embodiment of the present application provides a power supply method, applied to a second electronic device, the method comprising:

[0135] detecting a power-on or power-off state of a first preset contact in the second electronic device, and detecting a voltage level on a second preset contact in the second electronic device;

[0136] When detecting the power-on state of the first preset contact and the electrical level on the second preset contact is within a first preset range, determining that the first electronic device has been inserted, and controlling the third pre-contact in the second electronic device to be connected to a third power submodule, the first electronic device is an electronic device for outputting electrical energy to the second electronic device, the third power submodule is obtained by the second electronic device from converting the power module in the first electronic device, and the third preset contact is used to connect to the second chip in the cable;

[0137] detecting the electrical level on the third preset contact;

[0138] When it is detected that the electrical level on the third preset contact is within a second preset range, the power module connected to the third preset contact is switched from the third power submodule to the fourth power submodule, so as to output electrical energy to the second chip through the fourth power submodule. The fourth power submodule is obtained by the second electronic device from converting the power module in the first electronic device.

[0139] It should be noted that the first preset contact may be the fifth contact (e.g., DBUS-2) or the sixth contact (e.g., PBUS-2). The second preset contact may be the seventh contact (e.g., contact B3). The third preset contact may be the eighth contact (e.g., contact B4). The first preset range may be preset range A or preset range B. The second preset range may be preset range F. The third power submodule may be the power supply Vp-22 corresponding to the eighth contact. The fourth power submodule may be the power supply VCL-22 corresponding to the eighth contact.

[0140] In the power supply method provided above, the second electronic device can detect the power-on or power-off state of the first preset contact in the second electronic device, and can detect the electrical level on the second preset contact in the second electronic device to determine whether the first electronic device is in an inserted state. When it is detected that the first electronic device is in an inserted state, the second electronic device can control the third pre-contact in the second electronic device to be connected to the third power submodule, so as to detect whether there is a second chip connected to the second electronic device in the cable through the third power submodule. When there is a second chip connected to the second electronic device in the cable, that is, when the electrical level on the third preset contact is within the second preset range, the power module connected to the third preset contact is switched from the third power submodule to the fourth power submodule, so as to output electrical energy to the second chip through the fourth power submodule, so that the second electronic device can communicate with the second chip.

[0141] In some embodiments, the second electronic device is an electronic device that supports dual power supplies, the first electronic device is an electronic device that supports dual power supplies, and the third power submodule and the fourth power submodule are obtained by the second electronic device by converting the first power module in the first electronic device.

[0142] In a possible implementation, the method further includes:

[0143] When the power-on state of the first preset contact is detected and the electrical level on the second preset contact is within the first preset range, first information is sent to the first electronic device, where the first information is used to instruct the second power module in the first electronic device to output electrical energy to the second electronic device.

[0144] In another possible implementation, the method further includes:

[0145] When it is determined that the first chip is present in the cable, second information is sent to the first electronic device, where the second information is used to instruct a first power module in the first electronic device to output power to the first chip.

[0146] In one example, the second information is used to instruct the first electronic device to switch the power module connected to the contacts connected to the first chip from the first power submodule to the second power submodule, so as to provide power to the first chip through the second power submodule, and the first power submodule and the second power submodule are obtained by the first electronic device converting the first power module.

[0147] In some embodiments, when detecting the power-on state of the first preset contact and the voltage level on the second preset contact is within a first preset range, controlling the third pre-contact in the second electronic device to be connected to the third power submodule includes:

[0148] When the power-on state of the first preset contact is detected, the electrical level on the second preset contact is within the first preset range, and the duration for which the electrical level on the second preset contact is within the first preset range is greater than or equal to a first preset threshold, the third pre-contact in the second electronic device is controlled to be connected to the third power submodule.

[0149] It should be noted that the first preset threshold may be preset duration A, or may be preset duration B. For example, when the first preset range is preset range A, the first preset threshold may be preset duration A. For example, when the first preset range is preset range B, the first preset threshold may be preset duration B.

[0150] In some embodiments, the method further comprises:

[0151] When the power-off state of the first preset contact is detected, or when the level on the second preset contact is detected to be within the third preset range, or when the level on the third preset contact is detected to be within the fourth preset range, it is determined that the first electronic device has been unplugged.

[0152] It should be noted that the third preset range may be preset range E. The fourth preset range may be preset range G.

[0153] In one example, when detecting that the electrical level on the second preset contact point is within a third preset range, determining that the first electronic device has been unplugged includes:

[0154] When it is detected that the electrical level on the second preset contact is within the third preset range, and the duration for which the electrical level on the second preset contact is within the third preset range is greater than or equal to a second preset threshold, it is determined that the first electronic device has been unplugged.

[0155] It should be noted that the second preset threshold may be a preset time length E.

[0156] In the sixth aspect, an embodiment of the present application provides a second electronic device, comprising a memory, a processor, and a computer program stored in the memory and runnable on the processor. When the processor executes the computer program, the second electronic device implements the power supply method described in any one of the fifth aspects above.

[0157] In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program. When the computer program is executed by a computer, the computer implements the power supply method described in any one of the above-mentioned fifth aspects.

[0158] In an eighth aspect, an embodiment of the present application provides a computer program product, which, when executed on a second electronic device, enables the second electronic device to execute the power supply method described in any one of the fifth aspects above.

[0159] It can be understood that the beneficial effects of the sixth to eighth aspects mentioned above can be found in the relevant description of the fifth aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0160] FIG1 is a schematic diagram of a power supply system;

[0161] FIG2 is a schematic diagram of a high-power power supply scenario;

[0162] FIG3 is a schematic structural diagram of a second electronic device provided in an embodiment of the present application;

[0163] FIG4 is a structural diagram 1 of a power supply system provided in an embodiment of the present application;

[0164] FIG5 is a second structural diagram of a power supply system provided in an embodiment of the present application;

[0165] 6 is a first schematic diagram of a voltage level change when a first electronic device detects the insertion or removal status of a second electronic device and detects a cable marker chip in a cable connected to the first electronic device, according to an embodiment of the present application;

[0166] 7 is a second schematic diagram of a first electronic device detecting the insertion or removal status of a second electronic device and detecting level changes when a cable marker chip in a cable connected to the first electronic device is detected, according to an embodiment of the present application;

[0167] 8 is a schematic diagram of level changes when a second electronic device detects an insertion or removal state of a first electronic device provided by an embodiment of the present application;

[0168] FIG9 is a schematic diagram of electrical level changes when a second electronic device detects a cable marker chip connected to the second electronic device in a cable, provided by an embodiment of the present application. DETAILED DESCRIPTION

[0169] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or collections thereof.

[0170] It will also be understood that the term "and / or" used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.

[0171] As used in this specification and the appended claims, the term "if" can be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.

[0172] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0173] References to "one embodiment" or "some embodiments" in this specification mean that one or more embodiments of the present application include a particular feature, structure, or characteristic described in conjunction with that embodiment. Thus, phrases such as "in one embodiment," "in some embodiments," "in other embodiments," and "in other embodiments" appearing in different places in this specification do not necessarily refer to the same embodiment, but rather mean "one or more but not all embodiments," unless otherwise specifically emphasized. The terms "including," "comprising," "having," and variations thereof all mean "including but not limited to," unless otherwise specifically emphasized.

[0174] In addition, the “plurality” mentioned in the embodiments of the present application should be interpreted as two or more.

[0175] The business scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Ordinary technicians in this field will know that with the evolution of network architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0176] Please refer to FIG1 , which shows a schematic structural diagram of a power supply system.

[0177] As shown in Figure 1, a general power supply system may include electronic device A, electronic device B, and a cable connecting electronic device A and electronic device B (for example, it may be referred to as cable A). Electronic device A may be a power supply device, which may refer to a device for providing electrical energy, that is, electronic device A may be an electronic device that provides electrical energy to other electronic devices, for example, electronic device A may be an adapter or charger connected to a power source. Electronic device B may be a powered device, which may refer to a device that receives electrical energy, that is, electronic device B may be an electronic device that obtains electrical energy from electronic device A or other power supply devices, for example, electronic device B may be a smart screen or smart TV.

[0178] Electronic device A (i.e., power supply device) may include a communication module (hereinafter referred to as communication module A), a power module (hereinafter referred to as power module A), a power supply module, a return ground (hereinafter referred to as return ground A, which may be shown as GND-A in FIG1 ), and an interface (hereinafter referred to as interface A). The communication module A and the power module A may be connected to the power supply module respectively. Both the communication module A and the power module A may be powered by the power supply module, i.e., the power supply module may be used to provide electrical energy to the communication module A and the power module A. The communication module A, the power module A, and the power supply module may be connected to the return ground A (i.e., GND-A) respectively to return current through GND-A.

[0179] The communication module A and the power module can also be connected to the interface A respectively. Interface A can be connected to the interface of the electronic device B (hereinafter referred to as interface B) via cable A. Interface A may include one or more contacts. For example, interface A may include contacts for transmitting power and contacts for communication, etc. Similarly, interface B may include one or more contacts. For example, interface B may include contacts for transmitting power and contacts for communication, etc.

[0180] Electronic device B (i.e., powered device) may include a communication module (hereinafter referred to as communication module B), a power module (hereinafter referred to as power module B), a return ground (hereinafter referred to as return ground B, which may be shown as GND-B in Figure 1), and an interface B. The communication module B and the power module B may be connected to the interface B, respectively. Interface B may be connected to the interface A in the electronic device A via a cable A, thereby enabling the connection between electronic devices A and B to be achieved via cable A.

[0181] After electronic device B is connected to electronic device A through cable A, the power module in electronic device A can provide power to the communication module B and power module B in electronic device B through interface A, cable A and interface B, and the communication module A in electronic device A and the communication module B in electronic device B can communicate through interface A, cable A and interface B.

[0182] Communication module B and power module B can each be connected to return ground B (i.e., GND-B) to allow current to flow back through GND-B. Furthermore, GND-B can also be connected to GND-A to return the current provided by the power module in electronic device A to electronic device B to GND-A in electronic device A.

[0183] It should be understood that electronic device B may further include a voltage conversion module. The voltage conversion module may be connected to interface B, GND-B, communication module B, and power module B. When electronic device B obtains power from the power module in electronic device A through interface B, electronic device B may convert the voltage provided by the power module in electronic device A through the voltage conversion module and use the converted voltage to power communication module B and power module B.

[0184] It should be noted that the communication module A or the communication module B can be a digital communication module or other communication modules. The power module A or the power module B can include a drive module or other functional modules. The voltage conversion module can include a direct current-direct current converter (DC-DC) module or an alternating current-direct current converter (AC-DC) module. Among them, other functional modules can refer to other functional modules other than communication functions, which can be determined according to the actual scenario.

[0185] Cable A may include a power line, a signal line and a return ground (hereinafter referred to as the return ground C, which may be shown as GND-C in Figure 1). The power line in cable A can be connected to the contacts in interface A for transmitting electric energy, and can be connected to the contacts in interface B for transmitting electric energy. The power line in cable A can be used to transmit the electric energy provided by the power module in electronic device A to electronic device B, for example, to the communication module B and power module B in electronic device B. The signal line in cable A can be connected to the contacts in interface A for communication, and can be connected to the contacts in interface B for communication. The signal line in cable A can be used to realize communication between electronic device A and electronic device B. The return ground C (i.e., GND-C) in cable A can be connected to GND-A and GND-B, and can be used for current return.

[0186] In addition, cable A may also include one or more electronically marked cable (Emarker) chips, or cable marker chips (cable marker chips will be used as an example for exemplary description below). FIG1 is an example of two cable marker chips for exemplary description. The cable marker chip may store various attribute information of cable A. For example, the attribute information may include one or more of the power transmission capability, data transmission capability, identity (ID), number of cable marker chips included in the cable, and temperature of cable A. Electronic device A and / or electronic device B may communicate with the cable marker chip to read various attribute information of cable A, and may adjust the voltage / current and / or communication signal according to the read attribute information.

[0187] It should be noted that the return ground (e.g., GND-A, GND-B, and GND-C) can refer to a reference point with zero potential or the common end of a circuit (e.g., a power circuit or a signal circuit). For a power supply, the return ground can be the negative terminal of the power supply. For communication signals, the return ground can be the ground reference point for the communication signal, that is, the return ground can provide a common reference potential for all communication signals in an electronic device.

[0188] That is, in the power supply system described above, electronic device A (i.e., the power supply device) and electronic device B (i.e., the powered device) each have a single return ground, and cable A also has a single power line and a single return ground. This means that each module in the power supply device shares a single return ground, and each module in the powered device shares a single return ground. Each module in the power supply device and each module in the powered device are powered by a single power module within the power supply device.

[0189] With the rapid development of power supply technology, the power of powered devices is increasing. To ensure the use of powered devices, high-power power supply is required. In the above power supply system, because electronic device A, electronic device B, and cable A each have a single return ground, the power supply and communication signals share a single return ground. When high-power power is supplied, the high current generated in the line increases the ground voltage difference between the power supply device and the powered device. This causes the actual return ground voltage of the powered device to be higher than the return ground voltage of the power supply device, affecting the powered device's recognition of communication signals and thus interfering with communications.

[0190] For example, please refer to Figure 2, which shows a schematic diagram of a scenario when high-power power is supplied. It should be understood that conductors such as the power line (which can be shown as VBUS in Figure 2, that is, the connection between the contact (such as contact A1) for transmitting power in interface A of electronic device A and the contact (such as contact B1) for transmitting power in interface B of electronic device B) and the return ground line (which can be shown as the connection between GND-A in electronic device A and GND-B in electronic device B in Figure 2) generally have impedance, but the resistance is relatively small. In Figure 2, the resistance of the power line is R1 and the resistance of the return ground line is R2 as an example for exemplary explanation.

[0191] As shown in Figure 2, during high-power supply, the power module in electronic device A will provide a large current, such as I1, to electronic device B. This large current will cause a voltage difference on return ground B (i.e., GND-B) in electronic device B. For example, the voltage on GND-B in electronic device B will be I1*R2, resulting in the voltage on GND-B being higher than the voltage on GND-A in electronic device A. For example, the voltage on GND-A may be 0V.

[0192] It should be understood that the recognition of the communication signal on the signal line (which can be shown as the signal line for sending data (transmitter, TX) and the signal line for receiving data (receiver, RX) in FIG2) by electronic device B is based on the voltage on GND-B as a reference point, that is, the voltage on the signal line recognized by electronic device B can be the difference between the voltage detected on the signal line and the voltage on GND-B. For example, in a scenario where the voltage of 2V and above is a high level, as shown in FIG2, when the voltage of the communication signal sent by electronic device A on the signal line is 3V, if I1 is small, the voltage on GND-B (I1*R2) is also small. At this time, the voltage on the signal line recognized by electronic device B (3V-I1*R2) can be close to 3V. Therefore, electronic device B can determine that the communication signal recognized on the signal line is a high level higher than 2V. If I1 is large, the voltage (I1*R2) on GND-B is also large, which will cause (3V-I1*R2) to be less than 3V. For example, it may cause (3V-I1*R2) to be less than 2V. At this time, the voltage (3V-I1*R2) recognized by electronic device B on the signal line is less than 2V. Therefore, electronic device B can determine that the communication signal recognized on the signal line is a low level below 2V, that is, it mistakenly identifies the high level of 3V as a low level of less than 2V. In other words, when I1 is large, the voltage on GND-B in electronic device B will be large, causing the high-level communication signal sent by electronic device A on the signal line to be mistakenly identified by electronic device B as a low-level communication signal, resulting in misidentification of the communication signal and affecting the communication effect.

[0193] In order to solve the above problems, an embodiment of the present application provides a first electronic device, a second electronic device, a cable and a power supply system. The power supply system may include a first electronic device, a second electronic device, and a cable connecting the first electronic device and the second electronic device. The first electronic device may include a first communication module, a first power module, a first power module, a second power module, a first return ground, a second return ground, a first contact and a second contact. The second electronic device may include a second communication module, a second power module, a third return ground, a fourth return ground, a fifth contact and a sixth contact. The cable may include a first power line, a second power line, a fifth return ground corresponding to the first power line, and a sixth return ground corresponding to the second power line. The first power line can be used to connect the first contact in the first electronic device and the fifth contact in the second electronic device. The second power line can be used to connect the second contact in the first electronic device and the sixth contact in the second electronic device.

[0194] The first power module can be connected to the first communication module and the first contact respectively. The first power module can be used to provide power to the first communication module and to provide power to the second communication module in the second electronic device through the first contact, the first power line and the fifth contact.

[0195] The second power module can be connected to the first power module and the second contact respectively. The second power module can be used to provide power to the first power module and can provide power to the second power module in the second electronic device through the second contact, the second power line and the sixth contact.

[0196] In addition, the first communication module and the first power supply module can be connected to the first return ground respectively to return the current provided by the first power supply module through the first return ground. The first power module and the second power supply module can be connected to the second return ground respectively to return the current provided by the second power supply module through the second return ground. The second communication module can be connected to the third return ground to return the current provided by the first power supply module through the third return ground. The third return ground can be connected to the fifth return ground and the first return ground, and can return the current provided by the first power supply module to the first return ground. The second power module can be connected to the fourth return ground to return the current provided by the second power supply module through the fourth return ground. The fourth return ground can be connected to the sixth return ground and the second return ground, and can return the current provided by the second power supply module to the second return ground.

[0197] That is to say, the power supply system provided in the embodiment of the present application can separate the power supply circuits of the communication path and the power path, that is, it can separate the power supply module and the return ground of the communication module and the power module, so that the communication module and the power module can have independent power supplies, and each power supply can have an independent return ground, so that when high-power power is supplied, the impact of the ground pressure difference generated by the large current in the power path on the communication path can be reduced, so that the second electronic device can accurately identify the communication signal, which can improve the communication effect, enhance the user experience, and has strong ease of use and practicality.

[0198] In the embodiment of the present application, the first electronic device may be an adapter or charger connected to a power source. The second electronic device may be an electronic device such as a smart screen, a smart TV, or an in-vehicle device that requires a power source for use. The embodiment of the present application does not impose any restrictions on the specific type of the second electronic device.

[0199] The second electronic device involved in the embodiment of the present application is first introduced below. Please refer to FIG3 , which shows a schematic structural diagram of the second electronic device 300 .

[0200] The second electronic device 300 may include a processor 310, an external memory interface 320, an internal memory 321, a universal serial bus (USB) interface 330, an antenna 1, an antenna 2, a mobile communication module 340, a wireless communication module 350, an audio module 360, a speaker 360A, a sensor module 370, and a display screen 380. The sensor module 370 may include a pressure sensor 370A, a temperature sensor 370B, a touch sensor 370C, and the like.

[0201] It should be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the second electronic device 300. In other embodiments of the present application, the second electronic device 300 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0202] The processor 310 may include one or more processing units. For example, the processor 310 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.

[0203] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.

[0204] Processor 310 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 310 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 310. If processor 310 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 310 latency, and thus improves system efficiency.

[0205] In some embodiments, the processor 310 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface.

[0206] The USB interface 330 is an interface that complies with USB standards and may be a Mini USB interface, a Micro USB interface, a USB Type-C interface, or the like. The USB interface 330 can be used to connect a charger to power the second electronic device 300 and to transfer data between the second electronic device 300 and peripheral devices. It can also be used to connect headphones to play audio. This interface can also be used to connect to other terminal devices, such as AR devices.

[0207] It is understood that the interface connection relationship between the modules illustrated in the embodiment of the present application is merely an illustrative description and does not constitute a structural limitation on the second electronic device 300. In other embodiments of the present application, the second electronic device 300 may also adopt a different interface connection method from the above embodiment, or a combination of multiple interface connection methods.

[0208] The wireless communication function of the second electronic device 300 can be implemented through the antenna 1, the antenna 2, the mobile communication module 340, the wireless communication module 350, the modem processor and the baseband processor.

[0209] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in second electronic device 300 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.

[0210] The mobile communication module 340 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the second electronic device 300. The mobile communication module 340 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 340 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 340 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 340 can be set in the processor 310. In some embodiments, at least some of the functional modules of the mobile communication module 340 can be set in the same device as at least some of the modules of the processor 310.

[0211] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs the sound signal through the audio device or displays an image or video through the display screen 380. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 310 and be provided in the same device as the mobile communication module 340 or other functional modules.

[0212] The wireless communication module 350 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., applied on the second electronic device 300. The wireless communication module 350 can be one or more devices integrating at least one communication processing module. The wireless communication module 350 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 310. The wireless communication module 350 can also receive the signal to be sent from the processor 310, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0213] In some embodiments, the antenna 1 of the second electronic device 300 is coupled to the mobile communication module 340, and the antenna 2 is coupled to the wireless communication module 350, so that the second electronic device 300 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).

[0214] The second electronic device 300 implements display functions through a GPU, a display screen 380, and an application processor. The GPU is a microprocessor for image processing that connects the display screen 380 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 310 may include one or more GPUs that execute program instructions to generate or change display information.

[0215] The display screen 380 is used to display images, videos, and the like. The display screen 380 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-oLed, or a quantum dot light-emitting diode (QLED). In some embodiments, the second electronic device 300 may include one or N display screens 380, where N is a positive integer greater than one.

[0216] The digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. For example, when the second electronic device 300 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

[0217] Video codecs are used to compress or decompress digital video. The second electronic device 300 may support one or more video codecs. Thus, the second electronic device 300 can play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0218] The NPU is a neural network (NN) computing processor. Drawing on the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it rapidly processes input information and can continuously self-learn. The NPU can enable intelligent cognitive applications in the second electronic device 300, such as image recognition, face recognition, speech recognition, and text comprehension.

[0219] The external memory interface 320 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the second electronic device 300. The external memory card communicates with the processor 310 via the external memory interface 320 to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.

[0220] The internal memory 321 can be used to store computer executable program codes, which include instructions. The internal memory 321 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the second electronic device 300 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 321 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 310 executes various functional applications and data processing of the second electronic device 300 by running instructions stored in the internal memory 321 and / or instructions stored in a memory provided in the processor.

[0221] The second electronic device 300 can implement audio functions such as music playback and recording through the audio module 360, the speaker 360A, and the application processor.

[0222] The audio module 360 ​​is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 360 ​​can also be used to encode and decode audio signals. In some embodiments, the audio module 360 ​​can be provided in the processor 310, or some functional modules of the audio module 360 ​​can be provided in the processor 310.

[0223] The speaker 360A, also called a "speaker", is used to convert audio electrical signals into sound signals. The second electronic device 300 can listen to music through the speaker 360A.

[0224] Pressure sensor 370A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 370A can be located on display screen 380. There are many types of pressure sensors 370A, such as resistive, inductive, and capacitive. A capacitive pressure sensor can include at least two parallel plates made of conductive material. When force is applied to pressure sensor 370A, the capacitance between the electrodes changes. The second electronic device 300 determines the intensity of the pressure based on the change in capacitance. When a touch operation is applied to display screen 380, the second electronic device 300 detects the intensity of the touch operation based on pressure sensor 370A. The second electronic device 300 can also calculate the location of the touch based on the detection signal from pressure sensor 370A. In some embodiments, touch operations applied to the same touch location but with different touch intensities can correspond to different operation instructions. For example, when a touch operation with an intensity less than a first pressure threshold is applied to a short message application icon, a command to view short messages is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to a short message application icon, a command to create a new short message is executed.

[0225] Temperature sensor 370B is used to detect temperature. In some embodiments, second electronic device 300 uses the temperature detected by temperature sensor 370B to implement a temperature management strategy. For example, when the temperature reported by temperature sensor 370B exceeds a threshold, second electronic device 300 reduces the performance of a processor located near temperature sensor 370B to reduce power consumption and implement thermal protection.

[0226] Touch sensor 370C, also known as a "touch device," can be disposed on display screen 380. The touch sensor 370C and display screen 380 form a touch screen, also known as a "touch screen." Touch sensor 370C is used to detect touch operations applied thereto or in the vicinity thereof. Touch sensor 370C can transmit the detected touch operations to an application processor to determine the type of touch event. Visual output related to the touch operations can be provided via display screen 380. In other embodiments, touch sensor 370C can also be disposed on the surface of second electronic device 300, at a location different from that of display screen 380.

[0227] The software system of the second electronic device 300 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. For example, the software system of the second electronic device 300 may adopt an Android operating system (OS), a Harmony OS, or an iOS operating system with a layered architecture.

[0228] The power supply system provided in the embodiment of the present application will be described below with reference to the accompanying drawings and specific application scenarios.

[0229] Please refer to FIG4 , which shows a structural diagram 1 of a power supply system provided in an embodiment of the present application.

[0230] As shown in Figure 4, power supply system 400 may include a first electronic device 410, a second electronic device 420, and a cable 430 for connecting the first electronic device 410 and the second electronic device 420. The first electronic device 410 may be a power supply device, and the second electronic device 420 may be a power receiving device. That is, when the first electronic device 410 is connected to the second electronic device 420 via cable 430, the first electronic device 410 may provide power to the second electronic device 420 via cable 430, and the second electronic device 420 may receive power from the first electronic device 410 via cable 430.

[0231] The first electronic device 410 may include a communication module (hereinafter referred to as a first communication module), a power module (hereinafter referred to as a first power module), two power supply modules (hereinafter referred to as power supply module A1 and power supply module A2), two return grounds (hereinafter referred to as return ground A1 and return ground A2), and two contacts (hereinafter referred to as contacts A1 and contacts A2).

[0232] One of power module A1 and power module A2 can be used to provide power to the communication path, while the other can be used to provide power to the power path. One of return ground A1 and return ground A2 can be the return ground corresponding to the communication path, while the other can be the return ground corresponding to the power path. That is, one of return ground A1 and return ground A2 can be used to return current in the communication path, while the other can be used to return current in the power path. One of contacts A1 and contact A2 can be the contact corresponding to power module A1, while the other can be the contact corresponding to power module A2.

[0233] It should be understood that a contact refers to a device that can achieve signal or power transmission after contact. For example, a contact can be a pin in an interface.

[0234] For example, the power module A1 may be used to provide power for the communication path, and the power module A2 may be used to provide power for the power path.

[0235] For example, the power module A1 may be used to provide power to the power path, and the power module A2 may be used to provide power to the communication path.

[0236] For example, the return ground A1 may be used to return the current in the communication path, and the return ground A2 may be used to return the current in the power path.

[0237] For example, the return ground A1 may be used to return the current in the power path, and the return ground A2 may be used to return the current in the communication path.

[0238] For example, the contact A1 may be a contact corresponding to the power module A1, and the contact A2 may be a contact corresponding to the power module A2.

[0239] For example, the contact A1 may be a contact corresponding to the power module A2, and the contact A2 may be a contact corresponding to the power module A1.

[0240] The following example illustrates power module A1 as providing power to the communication path, power module A2 as providing power to the power path, return ground A1 as returning current in the communication path, return ground A2 as returning current in the power path, contact A1 as the corresponding contact for power module A1, and contact A2 as the corresponding contact for power module A2. Figure 4 illustrates power module A1 as a DBUS power module, power module A2 as a PBUS power module, return ground A1 as DGND-1, return ground A2 as PGND-1, contact A1 as DBUS-1, and contact A2 as PBUS-1.

[0241] As shown in Figure 4, the first communication module can be connected to power module A1 (i.e., DBUS power module) and return ground A1 (i.e., DGND-1). Power module A1 can be connected to DGND-1. The first power module can be connected to power module A2 (i.e., PBUS power module) and return ground A2 (i.e., PGND-1). Power module A2 can be connected to PGND-1. The DBUS power module can also be connected to contact A1 (i.e., DBUS-1), and the PBUS power module can also be connected to contact A2 (i.e., PBUS-1).

[0242] During the power supply process, the DBUS power module can be used to provide power to the first communication module, and the PBUS power module can be used to provide power to the first power module. The current provided by the DBUS power module can be returned through DGND-1, and the current provided by the PBUS power module can be returned through PGND-1. This allows the first communication module and the first power module to be powered by two independent power modules and to return current through two independent return grounds, thereby separating the power supply and return ground in the communication path and the power path, thereby preventing interference between the power path and the communication path.

[0243] It should be understood that the first electronic device 410 may further include at least one voltage conversion module (not shown in FIG. 4 ). For example, it may include a voltage conversion module A1 and a voltage conversion module A2. The voltage conversion module A1 may be connected to the DBUS power module and the first communication module respectively. The first electronic device 410 may convert the voltage provided by the DBUS power module using the voltage conversion module A1, and may provide electrical energy to the first communication module through the converted voltage. The voltage conversion module A1 may also be connected to the return ground A1 to achieve current reflux. The voltage conversion module A2 may be connected to the PBUS power module and the first power module respectively. The first electronic device 410 may convert the voltage provided by the PBUS power module using the voltage conversion module A2, and may provide electrical energy to the first power module through the converted voltage. The voltage conversion module A2 may also be connected to the return ground A2 to achieve current reflux.

[0244] As shown in Figure 4, the second electronic device 420 may include a communication module (hereinafter referred to as a second communication module), a power module (hereinafter referred to as a second power module), two return grounds (hereinafter referred to as return ground B1 and return ground B2), and two contacts (hereinafter referred to as contacts B1 and contacts B2).

[0245] One of contact B1 and contact B2 can be a contact corresponding to a communication path, and the other can be a contact corresponding to a power path. One of return ground B1 and return ground B2 can be a return ground corresponding to a communication path, and the other can be a return ground corresponding to a power path. One of return ground B1 and return ground B2 can be connected to return ground A1 in the first electronic device 410, and the other can be connected to return ground A2 in the first electronic device 410.

[0246] For example, the contact B1 may be a contact corresponding to a communication path, and the contact B2 may be a contact corresponding to a power path.

[0247] For example, the contact B1 may be a contact corresponding to a power path, and the contact B2 may be a contact corresponding to a communication path.

[0248] For example, the return ground B1 may be used to return the current in the communication path, and the return ground B2 may be used to return the current in the power path.

[0249] For example, the return ground B1 may be used to return the current in the power path, and the return ground B2 may be used to return the current in the communication path.

[0250] The following example illustrates contact B1 as the communication path, contact B2 as the power path, return ground B1 for returning current in the communication path, and return ground B2 for returning current in the power path. Figure 4 illustrates this using return ground B1 as DGND-2, return ground B2 as PGND-2, contact B1 as DBUS-2, and contact B2 as PBUS-2.

[0251] As shown in Figure 4, the second communication module can be connected to contact B1 (i.e., DBUS-2) and return ground B1 (i.e., DGND-2). DGND-2 can be connected to DGND-1. The second power module can be connected to contact B2 (i.e., PBUS-2) and return ground B2 (i.e., PGND-2). PGND-2 can be connected to PGND-1.

[0252] It should be understood that the second electronic device 420 may further include at least one voltage conversion module. For example, it may include a voltage conversion module B1 and a voltage conversion module B2 (only the voltage conversion module B2 is shown in FIG4 ). The voltage conversion module B1 may be connected to the contact B1 and the second communication module respectively. The second communication module may be connected to the contact B1 through the voltage conversion module B1. The voltage conversion module B2 may also be connected to the return ground B1. The voltage conversion module B2 may be connected to the contact B2 and the second power module respectively. The second power module may be connected to the contact B2 through the voltage conversion module B2. The voltage conversion module B2 may also be connected to the return ground B2.

[0253] As shown in FIG. 4 , the cable 430 may include two power lines (hereinafter referred to as power line C1 and power line C2 ) and two return grounds (hereinafter referred to as return ground C1 and return ground C2 ).

[0254] One of power line C1 and power line C2 can be the power line corresponding to the communication path, and the other can be the power line corresponding to the power path. One of return ground C1 and return ground C2 can correspond to power line C1, and the other can correspond to power line C2. That is, one of return ground C1 and return ground C2 can be used to return current in the communication path, and the other can be used to return current in the power path.

[0255] For example, the power line C1 may be a power line corresponding to a communication path, and the power line C2 may be a power line corresponding to a power path.

[0256] For example, the power line C1 may be a power line corresponding to a power path, and the power line C2 may be a power line corresponding to a communication path.

[0257] For example, the return ground C1 may correspond to the power line C1 , and the return ground C2 may correspond to the power line C2 .

[0258] For example, the return ground C1 may correspond to the power line C2, and the return ground C2 may correspond to the power line C1.

[0259] The following example illustrates power line C1 as the power line corresponding to the communication path, power line C2 as the power line corresponding to the power path, return ground C1 corresponding to power line C1, and return ground C2 corresponding to power line C2. In Figure 4, return ground C1 is DGND-3, and return ground C2 is PGND-3.

[0260] As shown in Figure 4, when a first electronic device 410 is connected to a second electronic device 420 via a cable 430, power line C1 can be used to connect contact A1 (i.e., DBUS-1) in the first electronic device 410 and contact B1 (i.e., DBUS-2) in the second electronic device 420. Power line C2 can be used to connect contact A2 (i.e., PBUS-1) in the first electronic device 410 and contact B2 (i.e., PBUS-2) in the second electronic device 420. DGND-3 can be connected to DGND-1 and DGND-2, respectively, and PGND-3 can be connected to PGND-1 and PGND-2, respectively.

[0261] As shown in Figure 4, when the first electronic device 410 provides power to the second electronic device 420 via the cable 430, the DBUS power module in the first electronic device 410 can provide power to the second communication module in the second electronic device 420 via DBUS-1, power line C1, and DBUS-2. The PBUS power module in the first electronic device 410 can provide power to the second power module in the second electronic device 420 via PBUS-1, power line C2, and PBUS-2.

[0262] It should be understood that when the second electronic device 420 obtains power from the DBUS power module via DBUS-1, power line C1, and DBUS-2, the voltage conversion module B1 in the second electronic device 420 can convert the voltage provided by the DBUS power module and provide power to the second communication module via the converted voltage. When the second electronic device 420 obtains power from the PBUS power module via PBUS-1, power line C2, and PBUS-2, the voltage conversion module B2 in the second electronic device 420 can convert the voltage provided by the PBUS power module and provide power to the second power module via the converted voltage.

[0263] Among them, the current provided by the DBUS power module to the second communication module in the second electronic device 420 can flow back to DGND-1 via DGND-2 and DGND-3, and the current provided by the PBUS power module to the second power module in the second electronic device 420 can flow back to PGND-1 via PGND-2 and PGND-3, so that the second communication module and the second power module can be powered by two independent power modules, and the current can be returned through two independent return grounds to separate the power supply and return ground in the communication path and the power path, which can avoid interference of the power path on the communication path and ensure the communication effect.

[0264] From the above description, it can be seen that the power supply system provided in the embodiment of the present application can separate the power supply circuits of the communication path and the power path, that is, it can separate the power supply module and the return ground of the communication module and the power module, so that the communication module and the power module can have independent power supplies, and each power supply can have an independent return ground, so that when high-power power supply is performed, the impact of the ground pressure difference generated by the large current in the power path on the communication path can be reduced, so that the second electronic device can accurately identify the communication signal, which can improve the communication effect and enhance the user experience.

[0265] In one example, contact A1 (i.e., DBUS-1), contact A2 (i.e., PBUS-1), contact B1 (i.e., DBUS-2), and contact B2 (i.e., PBUS-2) may each refer to a pin in an interface. That is, the first electronic device 410 may include at least one interface. For example, as shown in FIG4 , the first electronic device 410 may include an interface A, and interface A may include a pin corresponding to contact A1 (which may be shown as DBUS-1 in FIG4 ) and a pin corresponding to contact A2 (which may be shown as PBUS-1 in FIG4 ).

[0266] Similarly, the second electronic device 420 may include at least one interface. For example, as shown in FIG4 , the second electronic device 420 may include an interface B, and the interface B may include a pin corresponding to the contact B1 (which may be shown as DBUS-2 in FIG4 ) and a pin corresponding to the contact B2 (which may be shown as PBUS-2 in FIG4 ).

[0267] In some embodiments, the first electronic device 410 and the second electronic device 420 may further include contacts for communication, respectively.

[0268] The contact points for communication in the first electronic device 410 may be connected to the first communication module in the first electronic device 410. The contact points for communication in the second electronic device 420 may be connected to the second communication module in the second electronic device 420. That is, the first communication module and the second communication module may communicate via the contact points for communication in the first electronic device 410 and the contact points for communication in the second electronic device 420.

[0269] The contacts used for communication in the first electronic device 410 may also be connected to the power module A1 so that the power module A1 provides power to the contacts used for communication in the first electronic device 410 .

[0270] For example, the cable 430 may further include a signal line. The signal line may be used to connect the contact points for communication in the first electronic device 410 and the contact points for communication in the second electronic device 420, thereby enabling communication between the first electronic device 410 and the second electronic device 420 via the contact points for communication and the signal line in the cable 430, for example, enabling communication between the first communication module in the first electronic device 410 and the second communication module in the second electronic device 420.

[0271] It should be noted that the contacts used for communication may refer to pins in an interface.

[0272] Exemplarily, the interface A in the first electronic device 410 may further include a communication pin (eg, may be referred to as a communication pin A), and the communication pin A may be a contact point used for communication in the first electronic device 410 .

[0273] For example, as shown in Figure 4, interface A in the first electronic device 410 may include a pin corresponding to contact A1 (i.e., DBUS-1), a pin corresponding to contact A2 (i.e., PBUS-1), and a communication pin A corresponding to the contact used for communication (which may be shown as pin A in Figure 4).

[0274] Exemplarily, the interface B in the second electronic device 420 may further include a communication pin (eg, may be referred to as a communication pin B), and the communication pin B may be a contact point in the second electronic device 420 for communication.

[0275] For example, as shown in Figure 4, interface B in the second electronic device 420 may include a pin corresponding to contact B1 (i.e., DBUS-2), a pin corresponding to contact B2 (i.e., PBUS-2), and a communication pin B corresponding to the contact used for communication (which can be shown as pin B in Figure 4).

[0276] Exemplarily, the first electronic device 410 may further include an interface C, which may include a communication pin A. The communication pin A may be a contact point in the first electronic device 410 for communication.

[0277] Exemplarily, the second electronic device 420 may further include an interface D, which may include a communication pin B. The communication pin B may be a contact point in the second electronic device 420 for communication.

[0278] That is, the contact used for communication in the first electronic device 410 and contact A1 (i.e., DBUS-1) and contact A2 (i.e., PBUS-1) can be pins in the same interface, or pins in different interfaces, which can be determined based on the actual scenario, and the embodiments of the present application do not impose any restrictions on this. Similarly, the contact used for communication in the second electronic device 420 and contact B1 (i.e., DBUS-2) and contact B2 (i.e., PBUS-2) can be pins in the same interface, or pins in different interfaces.

[0279] In some embodiments, the cable 430 may further include one or more cable marker chips. The cable marker chips may store various attribute information of the cable 430. For example, the cable marker chips may store one or more of the following information: the power transmission capability, data transmission capability, ID, number of cable marker chips included in the cable, and temperature.

[0280] The cable marker chip can be connected to a signal line within the cable 430. Specifically, when the first electronic device 410 and the second electronic device 420 are connected, the cable marker chip can be connected to a communication contact in the first electronic device 410 via the signal line, and / or can be connected to a communication contact in the second electronic device 420 via the signal line. Therefore, the first electronic device 410 and / or the second electronic device 420 can communicate with the cable marker chip via the communication contacts and the signal line within the cable 430, thereby reading the attribute information of the cable 430 stored in the cable marker chip, adjusting the voltage / current based on the read attribute information, and / or adjusting the communication signal based on the read attribute information, etc.

[0281] For example, as shown in FIG4 , the cable 430 may include two cable marker chips (which may be shown as cable marker-1 and cable marker-2 in FIG4 ). Cable marker-1 and cable marker-2 may be respectively connected to signal lines in the cable 430. Therefore, when the first electronic device 410 is connected to the second electronic device 420 via the cable 430, cable marker-1 and cable marker-2 may be connected to contacts for communication in the first electronic device 410 via the signal lines, so that the first electronic device 410 can communicate with cable marker-1 and / or cable marker-2 via the contacts for communication and the signal lines, thereby reading the attribute information of the cable 430 stored in cable marker-1 and / or cable marker-2. Similarly, cable marker-1 and cable marker-2 can be connected to the contacts for communication in the second electronic device 420 via a signal line, so that the second electronic device 420 can communicate with cable marker-1 and / or cable marker-2 via the contacts for communication and the signal line, thereby reading the attribute information of the cable 430 stored in cable marker-1 and / or cable marker-2.

[0282] The following description uses the example of cable 430 including two cable marker chips, cable marker-1 and cable marker-2, as an example. It should be understood that when cable 430 includes cable marker-1 and cable marker-2, cable marker-1 and cable marker-2 can be disposed at both ends of cable 430. Furthermore, when first electronic device 410 is connected to second electronic device 420 via cable 430, cable marker-1 can be connected to the electronic device in first electronic device 410 and second electronic device 420 that is closer to cable marker-1, and cable marker-2 can be connected to the electronic device in first electronic device 410 and second electronic device 420 that is closer to cable marker-2.

[0283] For example, as shown in FIG4 , when a first electronic device 410 and a second electronic device 420 are connected via a cable 430, cable marker-1 within cable 430 may be a cable marker chip closer to the first electronic device 410, and cable marker-2 within cable 430 may be a cable marker chip closer to the second electronic device 420. Cable marker-1 may be connected to the first electronic device 410, and cable marker-2 may be connected to the second electronic device 420.

[0284] In some embodiments, the first electronic device 410 may include two contacts for communication. For example, it may include contact A3 and contact A4. Contact A3 and contact A4 may be connected to the first communication module, respectively. The first electronic device 410 may be connected to a signal line in the cable 430 via either contact A3 or contact A4, and the signal line in the cable 430 may be connected to a contact for communication in the second electronic device 420, thereby enabling communication between the first communication module in the first electronic device 410 and the second communication module in the second electronic device 420 via either contact A3 or contact A4.

[0285] In some embodiments, the second electronic device 420 may include two contacts for communication. For example, it may include contact B3 and contact B4. Contact B3 and contact B4 may be connected to the second communication module, respectively. The second electronic device 420 may be connected to the signal line in the cable 430 via either contact B3 or contact B4. The signal line in the cable 430 may be connected to the contact for communication in the first electronic device 410, thereby enabling communication between the second communication module in the second electronic device 420 and the first communication module in the first electronic device 410 via either contact B3 or contact B4.

[0286] It should be noted that when the first electronic device 410 includes contact A3 and contact A4, and the second electronic device 420 includes contact B3 and contact B4, either contact A3 or contact A4 can be connected to either contact B3 or contact B4 via a signal line in the cable 430 to achieve communication between the first communication module in the first electronic device 410 and the second communication module in the second electronic device 420.

[0287] For example, the contact A3 may be connected to the contact B3 via a signal line in the cable 430 , so that communication between the first communication module and the second communication module is achieved through the contact A3 , the signal line, and the contact B3 .

[0288] For example, the contact A4 may be connected to the contact B4 via a signal line in the cable 430 , so that communication between the first communication module and the second communication module is achieved through the contact A4 , the signal line, and the contact B4 .

[0289] For example, the contact A3 may be connected to the contact B4 via a signal line in the cable 430 , so that communication between the first communication module and the second communication module is achieved through the contact A3 , the signal line, and the contact B4 .

[0290] For example, the contact A4 may be connected to the contact B3 via a signal line in the cable 430 , so that communication between the first communication module and the second communication module is achieved through the contact A4 , the signal line, and the contact B3 .

[0291] In one example, cable 430 may include a power line connected to cable marker-1 (hereinafter referred to as power line C3) and a power line connected to cable marker-2 (hereinafter referred to as power line C4). Power line C3 connected to cable marker-1 can be connected to a communication contact in first electronic device 410 or a communication contact in second electronic device 420. Power line C4 connected to cable marker-2 can be connected to a communication contact in second electronic device 420 or a communication contact in first electronic device 410. When first electronic device 410 is connected to cable 430, cable marker-1 can receive power from first electronic device 410 via power line C3, or cable marker-2 can receive power from first electronic device 410 via power line C4. After second electronic device 420 receives power, cable marker-2 can receive power from second electronic device 420 via power line C4, or cable marker-1 can receive power from second electronic device 420 via power line C3.

[0292] For example, when the power line C3 is connected to the contact for communication in the first electronic device 410, the power line C4 can be connected to the contact for communication in the second electronic device 420, cable marker-1 can obtain power from the first electronic device 410 through the power line C3, and cable marker-2 can obtain power from the second electronic device 420 through the power line C4.

[0293] For example, when the power line C3 is connected to the contact for communication in the second electronic device 420, the power line C4 can be connected to the contact for communication in the first electronic device 410, cable marker-1 can obtain power from the second electronic device 420 through the power line C3, and cable marker-2 can obtain power from the first electronic device 410 through the power line C4.

[0294] For example, when first electronic device 410 is connected to second electronic device 420 via cable 430, cable marker-1 can be connected to the electronic device closer to cable marker-1 among first electronic device 410 and second electronic device 420 via power cable C3. That is, cable marker-1 can obtain power from the electronic device closer to cable marker-1 among first electronic device 410 and second electronic device 420. Cable marker-2 can be connected to the electronic device closer to cable marker-2 among first electronic device 410 and second electronic device 420 via power cable C4. That is, cable marker-2 can obtain power from the electronic device closer to cable marker-2 among first electronic device 410 and second electronic device 420.

[0295] For example, as shown in Figure 4, when the first electronic device 410 is connected to the second electronic device 420 via the cable 430, if cable marker-1 is closer to the first electronic device 410 and cable marker-2 is closer to the second electronic device 420, cable marker-1 can be connected to the first electronic device 410 via the power line C3, thereby obtaining power from the first electronic device 410, and cable marker-2 can be connected to the second electronic device 420 via the power line C4, thereby obtaining power from the second electronic device 420.

[0296] For example, when the first electronic device 410 is connected to the second electronic device 420 via the cable 430, if the cable marker-1 is closer to the second electronic device 420 and the cable marker-2 is closer to the first electronic device 410, the cable marker-1 can be connected to the second electronic device 420 via the power cable C3, thereby obtaining power from the second electronic device 420, and the cable marker-2 can be connected to the first electronic device 410 via the power cable C4, thereby obtaining power from the first electronic device 410.

[0297] The following description uses the example of a situation where a first electronic device 410 is connected to a second electronic device 420 via a cable 430, with cable marker-1 being closer to the first electronic device 410 and cable marker-2 being closer to the second electronic device 420. In other words, cable marker-1 can be connected to the first electronic device 410 via power cable C3, and cable marker-2 can be connected to the second electronic device 420 via power cable C4.

[0298] Exemplarily, when the first electronic device 410 includes contact A3 and contact A4, and the second electronic device 420 includes contact B3 and contact B4, when one of contact A3 and contact A4 is connected to one of contact B3 and contact B4 through a signal line, the other of contact A3 and contact A4 can be connected to cable marker-1 through power line C3, and the other of contact B3 and contact B4 can be connected to cable marker-2 through power line C4.

[0299] That is, cable marker-1 can obtain power from the power module in the first electronic device 410 via power cable C3 and one of contacts A3 and A4. After the second electronic device 420 obtains power, for example, after the power module in the first electronic device 410 provides power to the second electronic device 420, cable marker-2 can obtain power from the second electronic device 420 via power cable C4 and one of contacts B3 and B4.

[0300] For example, when contact A3 is connected to contact B3 via a signal line in cable 430, contact A4 can be connected to cable marker-1 in cable 430 via power line C3, and contact B4 can be connected to cable marker-2 in cable 430 via power line C4. Therefore, when the power module (e.g., DBUS power module) in first electronic device 410 provides power to the second communication module in second electronic device 420, cable marker-1 can obtain power from the DBUS power module via contact A4 and power line C3. After second electronic device 420 obtains power from the DBUS power module in first electronic device 410, cable marker-2 can obtain power from second electronic device 420 via contact B4 and power line C4.

[0301] For example, when contact A4 is connected to contact B4 via a signal line in cable 430, contact A3 can be connected to cable marker-1 in cable 430 via power line C3, and contact B3 can be connected to cable marker-2 in cable 430 via power line C4. Therefore, when the power module (e.g., DBUS power module) in first electronic device 410 provides power to the second communication module in second electronic device 420, cable marker-1 can obtain power from the DBUS power module via contact A3 and power line C3. After second electronic device 420 obtains power from the DBUS power module in first electronic device 410, cable marker-2 can obtain power from second electronic device 420 via contact B3 and power line C4.

[0302] In some embodiments, the first electronic device 410 and the second electronic device 420 may each include a plug detection module. The plug detection module (hereinafter referred to as plug detection module A) in the first electronic device 410 may be connected to a power module and a return ground corresponding to a communication path in the first electronic device 410. The plug detection module (hereinafter referred to as plug detection module B) in the second electronic device 420 may be connected to a contact point and a return ground corresponding to the communication path in the second electronic device 420.

[0303] For example, as shown in Figure 4, when the power module corresponding to the communication path in the first electronic device 410 is the power module A1 (i.e., the DBUS power module), the return ground corresponding to the communication path in the first electronic device 410 is the return ground A1 (i.e., DGND-1), the contact corresponding to the communication path in the second electronic device 420 is the contact B1 (i.e., DBUS-2), and the return ground corresponding to the communication path in the second electronic device 420 is the return ground B1 (i.e., DGND-2), the plug detection module A can be connected to the DBUS power module and DGND-1. The plug detection module B can be connected to DBUS-2 and DGND-2. During the power supply process, the plug detection module A can be powered by the DBUS power module and can return current through DGND-1. The plug detection module B can obtain the electrical energy provided by the DBUS power module through DBUS-2 and can return current through DGND-2.

[0304] In an example, the plug detection module A may also be connected to contacts used for communication in the first electronic device 410 , for example, may be connected to contact A3 and / or contact A4 in the first electronic device 410 .

[0305] In an example, the plug detection module B may also be connected to contacts used for communication in the second electronic device 420 , for example, may be connected to contact B3 and / or contact B4 in the second electronic device 420 .

[0306] In the embodiment of the present application, the plug-in / out detection module A can be used to detect the insertion or removal status of the second electronic device 420. Alternatively, the plug-in / out detection module A can be used to detect whether a cable marker chip connected to the first electronic device 410 is present in the cable 430. Alternatively, the plug-in / out detection module A can be used to detect the insertion or removal status of the second electronic device 420 and to detect whether a cable marker chip connected to the first electronic device 410 is present in the cable 430.

[0307] The plug-in / out detection module B can be used to detect the insertion or removal status of the first electronic device 410. Alternatively, the plug-in / out detection module B can be used to detect whether a cable marker chip connected to the second electronic device 420 is present in the cable 430. Alternatively, the plug-in / out detection module B can be used to detect the insertion or removal status of the first electronic device 410 and to detect whether a cable marker chip connected to the second electronic device 420 is present in the cable 430.

[0308] The following will be exemplified by an example in which the plug-in detection module A is used to detect the insertion or removal status of the second electronic device 420 and to detect whether there is a cable marker chip connected to the first electronic device 410 in the cable 430; and the plug-in detection module B is used to detect the insertion or removal status of the first electronic device 410 and to detect whether there is a cable marker chip connected to the second electronic device 420 in the cable 430.

[0309] The following will describe, with reference to the accompanying drawings, a process in which the plug-in detection module A detects the insertion or removal status of the second electronic device 420 and detects whether a cable marker chip connected to the first electronic device 410 is present in the cable 430, and a process in which the plug-in detection module B detects the insertion or removal status of the first electronic device 410 and detects whether a cable marker chip connected to the second electronic device 420 is present in the cable 430.

[0310] Please refer to Figure 5, which shows a second structural diagram of a power supply system provided by an embodiment of the present application. In this schematic diagram, the first electronic device 410 and the second electronic device 420 shown in Figure 4 are both electronic devices that support dual power supplies for exemplary description. In addition, in this schematic diagram, the first electronic device 410 includes contact A3 (which can be shown as CL-11 in Figure 5) and contact A4 (which can be shown as CL-12 in Figure 5), the second electronic device 420 includes contact B3 (which can be shown as CL-21 in Figure 5) and contact B4 (which can be shown as CL-21 in Figure 5), the power module A1 (i.e., the DBUS power module) is used to provide power to the communication path, the power module A2 (i.e., the PBUS power module) is used to provide power to the power path, and the cable 430 includes cable marker-1 and cable marker-2 as an example for exemplary description.

[0311] It should be noted that, for the first electronic device 410 (i.e., the power supply device), supporting dual power supplies may mean that the first electronic device 410 includes a DBUS power module and a PBUS power module, and supporting single power supplies may mean that the first electronic device 410 only includes a PBUS power module. For the second electronic device 420 (i.e., the powered device), supporting dual power supplies means that the second electronic device 420 can receive power provided by the DBUS power module and can receive power provided by the PBUS power module, and supporting single power supplies means that the second electronic device 420 can only receive power provided by the PBUS power module.

[0312] As shown in Figure 5, the first communication module and plug detection module A in the first electronic device 410 can be connected to contact A3 and contact A4, respectively. That is, the first communication module can be connected to contact A3 and contact A4, respectively, and plug detection module A can be connected to contact A3 and contact A4, respectively. The second communication module and plug detection module B in the second electronic device 420 can be connected to contact B3 and contact B4, respectively. That is, the second communication module can be connected to contact B3 and contact B4, respectively, and plug detection module B can be connected to contact B3 and contact B4, respectively. The DBUS power supply module can be used to provide power to the first communication module, plug detection module A, the second communication module, and plug detection module B.

[0313] Among them, the voltage conversion module (e.g., voltage conversion module A1) in the first electronic device 410 can convert the voltage provided by the DBUS power module to obtain the power supply Vp-11 and power supply VCL-11 corresponding to contact A3, and the power supply Vp-12 and power supply VCL-12 corresponding to contact A4 as shown in Figure 5. When the DBUS power module provides power to the second electronic device 420, the voltage conversion module (e.g., voltage conversion module B1) in the second electronic device 420 can convert the voltage provided by the DBUS power module to obtain the power supply Vp-21 and power supply VCL-21 corresponding to contact B3, and the power supply Vp-22 and power supply VCL-22 corresponding to contact B4 as shown in Figure 5.

[0314] It should be understood that when the first electronic device 410 does not provide power to the second electronic device 420, the power supply Vp-21, power supply VCL-21, power supply Vp-22, and power supply VCL-22 shown in FIG5 may be without power. However, when the DBUS power module in the first electronic device 410 provides power to the second electronic device 420, the power supply Vp-21, power supply VCL-21, power supply Vp-22, and power supply VCL-22 shown in FIG5 may be with power.

[0315] As shown in FIG5 , the power source connected to contact A3 can be switched between power source Vp-11 and power source VCL-11. For example, switching between power source Vp-11 and power source VCL-11 can be achieved using a single-pole double-throw switch or a single-pole triple-throw switch, or switching can be achieved using other methods. The power source connected to contact A4 can also be switched between power source Vp-12 and power source VCL-12. For example, switching between power source Vp-12 and power source VCL-12 can be achieved using a single-pole double-throw switch or a single-pole triple-throw switch, or switching can be achieved using other methods.

[0316] Among them, a pull-up resistor Rp-11 can be provided between contact A3 and power supply Vp-11. A pull-up resistor Rp-12 can be provided between contact A4 and power supply Vp-12. Power supply VCL-11 and power supply VCL-12 can both be connected to return ground A1 (i.e., DGND-1). It should be understood that the pull-up resistor Rp-11 and the pull-up resistor Rp-12 can be the same or different. The specific resistance value of the pull-up resistor Rp-11 and the specific resistance value of the pull-up resistor Rp-12 can be determined according to the actual scenario, and the embodiments of the present application do not impose any restrictions on this.

[0317] The power source connected to contact B3 can switch between power source Vp-21, power source VCL-21, and pull-down resistor Rd-21. For example, switching between power source Vp-21, power source VCL-21, and pull-down resistor Rd-21 can be achieved using a switch in the circuit containing power source Vp-21, a switch in the circuit containing power source VCL-21, and a switch in the circuit containing pull-down resistor Rd-21. For example, switching between power source Vp-21, power source VCL-21, and pull-down resistor Rd-21 can be achieved using a single-pole, three-throw switch.

[0318] The power source connected to contact B4 can also be switched between power source Vp-22, power source VCL-22, and pull-down resistor Rd-22. For example, switching between power source Vp-22, power source VCL-22, and pull-down resistor Rd-22 can be achieved by using a switch in the circuit where power source Vp-22 resides, a switch in the circuit where power source VCL-22 resides, and a switch in the circuit where pull-down resistor Rd-22 resides. For example, switching between power source Vp-22, power source VCL-22, and pull-down resistor Rd-22 can be achieved by using a single-pole, three-throw switch.

[0319] Among them, a pull-up resistor Rp-21 can be provided between contact B3 and power supply Vp-21. A pull-up resistor Rp-22 can be provided between contact B4 and power supply Vp-22. Power supply VCL-21, power supply VCL-22, pull-down resistor Rd-21 and pull-down resistor Rd-22 can all be connected to return ground B1 (i.e., DGND-2). It should be understood that the pull-up resistor Rp-21 and the pull-up resistor Rp-22 can be the same or different. The specific resistance value of the pull-up resistor Rp-21 and the specific resistance value of the pull-up resistor Rp-22 can be determined according to the actual scenario, and the embodiments of the present application do not impose any restrictions on this.

[0320] It should be noted that the pull-down resistor Rd-21 and the pull-down resistor Rd-22 may refer to the resistance of the second electronic device 420. The pull-down resistor Rd-21 and the pull-down resistor Rd-22 may be the same or different. The specific resistance of the pull-down resistor Rd-21 and the specific resistance of the pull-down resistor Rd-22 may be determined according to the actual scenario, and the embodiments of the present application are not limited to this. For example, when the second electronic device 420 is an electronic device that supports a single power supply, the resistance of the pull-down resistor Rd-21 may be M1, and the resistance of the pull-down resistor Rd-22 may be M2. For example, when the second electronic device 420 is an electronic device that supports a dual power supply, the resistance of the pull-down resistor Rd-21 may be M3, and the resistance of the pull-down resistor Rd-22 may be M4. M1 and M3 are different, and M2 and M4 are different. The specific values ​​of M1, M2, M3, and M4 may be determined according to the actual scenario.

[0321] As shown in Figure 5, cable marker-1 in cable 430 can be provided with a pull-down resistor Ra-1, and cable marker-1 can be connected to the return ground C1 (i.e., DGND-3) through the pull-down resistor Ra-1. Cable marker-2 in cable 430 can be provided with a pull-down resistor Ra-2, and cable marker-2 can also be connected to DGND-3 through the pull-down resistor Ra-2. It should be understood that the pull-down resistor Ra-1 and the pull-down resistor Ra-2 can be the same or different. The specific resistance value of the pull-down resistor Ra-1 and the specific resistance value of the pull-down resistor Ra-2 can be determined according to the actual scenario, and the embodiments of the present application do not impose any restrictions on this.

[0322] It should be understood that cable marker-1 and cable marker-2 may include a physical layer, a protocol layer, and an application layer, respectively.

[0323] When the first electronic device 410 is connected to the second electronic device 420 via the cable 430, the first communication module can be connected to the signal line in the cable 430 via the contact A3 or the contact A4. The plug detection module A can be connected to the signal line in the cable 430 via the contact A3 or the contact A4. The contact point for connecting the first communication module to the signal line in the cable 430 and the contact point for connecting the plug detection module A to the signal line in the cable 430 are the same. For example, when the first communication module is connected to the signal line in the cable 430 via the contact A3, the plug detection module A can be connected to the signal line in the cable 430 via the contact A3.

[0324] When the first electronic device 410 is connected to the second electronic device 420 via the cable 430, the second communication module can be connected to the signal line in the cable 430 via the contact B3 or the contact B4. The plug detection module B can be connected to the signal line in the cable 430 via the contact B3 or the contact B4. The contact point for connecting the second communication module to the signal line in the cable 430 is the same as the contact point for connecting the plug detection module B to the signal line in the cable 430. For example, when the second communication module is connected to the signal line in the cable 430 via the contact B3, the plug detection module B can be connected to the signal line in the cable 430 via the contact B3.

[0325] Figure 5 uses the example in which the first communication module and the plug-in detection module A are both connected to the signal line in the cable 430 through contact A3 (i.e., CL-11 in Figure 5), and the second communication module and the plug-in detection module B are both connected to the signal line in the cable 430 through contact B3 (i.e., CL-21 in Figure 5) as an example for exemplary explanation.

[0326] When the first communication module and plug detection module A are connected to the signal line in cable 430 via contact A3, the first communication module and plug detection module A can also connect to cable marker-1 in cable 430 via contact A4 (i.e., CL-12 in FIG. 5 ). When the second communication module and plug detection module B are connected to the signal line in cable 430 via contact B3, the second communication module and plug detection module B can also connect to cable marker-2 in cable 430 via contact B4 (i.e., CL-22 in FIG. 5 ).

[0327] Initially, for example, when first electronic device 410 has not yet provided power to second electronic device 420 via cable 430, contact A3 in first electronic device 410 can be connected to power source Vp-11 via pull-up resistor Rp-11, and contact A4 in first electronic device 410 can be connected to power source Vp-12 via pull-up resistor Rp-12. Contact B3 in second electronic device 420 can be connected to ground (e.g., DGND-2) via pull-down resistor Rd-21, and contact B4 in second electronic device 420 can also be connected to DGND-2 via pull-down resistor Rd-22. Cable marker-1 in cable 430 can be connected to ground (e.g., DGND-3) via pull-down resistor Ra-1, and cable marker-2 in cable 430 can also be connected to DGND-3 via pull-down resistor Ra-2.

[0328] When the first electronic device 410 provides power to the second electronic device 420, the DBUS power module can be used to provide power to the first communication module and the plug detection module A, and can also provide power to the second communication module and the plug detection module B via the power line C1 (which can be shown as DBUS in FIG. 5 ). The PBUS power module can be used to provide power to the first power module, and can also provide power to the second power module via the power line C2 (which can be shown as PBUS in FIG. 5 ).

[0329] 5 , the following are respectively described: 1. The plugging and unplugging detection module A detects the insertion or unplugging status of the second electronic device 420 and detects whether there is a cable marker-1 connected to the first electronic device 410 in the cable 430; 2. The plugging and unplugging detection module B detects the insertion or unplugging status of the first electronic device 410 and detects whether there is a cable marker-2 connected to the second electronic device 420 in the cable 430.

[0330] 1. The plug-in / plug-out detection module A detects whether the second electronic device 420 is plugged in or unplugged, and detects whether there is a cable marker-1 connected to the first electronic device 410 in the cable 430.

[0331] Illustratively, the plug-in / plug-out detection module A may detect the electrical level on the signal line, and may determine the plug-in or plug-out status of the second electronic device 420 according to the electrical level on the signal line.

[0332] It should be noted that when the first communication module is connected to the signal line in the cable 430 via contact A3, the voltage level on the signal line is the same as the voltage level on contact A3. When the first communication module is connected to the signal line in the cable 430 via contact A4, the voltage level on the signal line is the same as the voltage level on contact A4. Therefore, when the first communication module is connected to the signal line in the cable 430 via contact A3, the plugging and unplugging detection module A can detect the voltage level on contact A3 and can determine the insertion or unplugging status of the second electronic device 420 based on the voltage level on contact A3. When the first communication module is connected to the signal line in the cable 430 via contact A4, the plugging and unplugging detection module A can detect the voltage level on contact A4 and can determine the insertion or unplugging status of the second electronic device 420 based on the voltage level on contact A4.

[0333] That is, when the first communication module shown in Figure 5 is connected to the signal line in the cable 430 through the contact A3, the plug-in detection module A can detect the level on the contact A3 and can determine the insertion or unplugging status of the second electronic device 420 based on the level on the contact A3.

[0334] As shown in Figure 5, when the second electronic device 420 is not inserted, the power module connected to contact A3 may be power supply Vp-11. In this case, the communication line where contact A3 is located only has pull-up resistor Rp-11. However, when the second electronic device 420 is inserted, that is, when the second electronic device 420 is connected to the first electronic device 410 via cable 430, the second electronic device 420 can be connected to contact A3 in the first electronic device 410 via contact B3 and the signal line. At this time, contact B3 is connected to ground via pull-down resistor Rd-21. This causes the pull-down resistor Rd-21 in the second electronic device 420 to increase in the communication line where contact A3 is located, causing the voltage level at contact A3 to decrease. If the second electronic device 420 is removed after being inserted, the pull-down resistor Rd-21 in the second electronic device 420 is reduced in the communication line where contact A3 is located, causing the voltage level at contact A3 to increase.

[0335] Based on this, the embodiment of the present application can determine the preset range corresponding to the voltage level on contact A3 when the second electronic device 420 is in the plugged-in state based on the pull-down resistor Rd-21 in the second electronic device 420, the communication line on which contact A3 is located, and the voltage provided by the power supply Vp-11. Therefore, the plug detection module A can determine whether the second electronic device 420 is in the plugged-in state based on whether the voltage level detected on contact A3 is within the preset range.

[0336] For example, for a second electronic device 420 that supports a single power supply, the preset range corresponding to the electrical level on contact A3 when the second electronic device 420 is in the inserted state can be determined as preset range A based on the pull-down resistance Rd-21 (for example, M1) in the second electronic device 420, the communication line where contact A3 is located, and the voltage provided by the power supply Vp-11.

[0337] For example, for a second electronic device 420 that supports dual power supplies, the preset range corresponding to the electrical level on contact A3 when the second electronic device 420 is in the inserted state can be determined to be preset range B based on the pull-down resistance Rd-21 (for example, M3) in the second electronic device 420, the communication line where contact A3 is located, and the voltage provided by the power supply Vp-11.

[0338] For example, when the second electronic device 420 is unplugged, the preset range corresponding to the voltage level on the contact A3 can be determined as the preset range C according to the communication line where the contact A3 is located and the voltage provided by the power supply Vp-11.

[0339] It should be understood that the preset range A, the preset range B, and the preset range C are different from each other, and there is no overlap between the preset range A, the preset range B, and the preset range C. The specific values ​​of the preset range A, the preset range B, and the preset range C can be determined according to actual scenarios and are not limited in this embodiment of the present application.

[0340] When the plug-in detection module A detects that the electrical level on contact A3 is within the preset range A, the plug-in detection module A can determine that the second electronic device 420 supporting a single power supply has been plugged in. When the plug-in detection module A detects that the electrical level on contact A3 is within the preset range B, the plug-in detection module A can determine that the second electronic device 420 supporting a dual power supply has been plugged in. When the plug-in detection module A detects that the electrical level on contact A3 is within the preset range C, the plug-in detection module A can determine that the second electronic device 420 supporting a single power supply or a dual power supply has been unplugged.

[0341] It should be noted that when the first electronic device 410 is an electronic device that supports dual power supplies (i.e., includes a DBUS power module and a PBUS power module), the power supply Vp-11 can be provided by the DBUS power module in the first electronic device 410. That is, the voltage conversion module (e.g., voltage conversion module A1) in the first electronic device 410 can convert the voltage provided by the DBUS power module to obtain the power supply Vp-11, as well as the power supplies VCL-11, Vp-12, and VCL-12 shown in FIG5 . When the first electronic device 410 is an electronic device that supports a single power supply (i.e., includes only one power module, such as a PBUS power module), the power supply Vp-11 can be provided by the PBUS power module in the first electronic device 410. That is, the voltage conversion module (e.g., voltage conversion module A2) in the first electronic device 410 can convert the voltage provided by the PBUS power module to obtain the power supply Vp-11, as well as the power supplies VCL-11, Vp-12, and VCL-12 shown in FIG5 .

[0342] That is, when the first electronic device 410 is an electronic device supporting a single power supply, the voltage provided by the power supply Vp-11 can be determined based on the PBUS power module in the first electronic device 410. When the first electronic device 410 is an electronic device supporting a dual power supply, the voltage provided by the power supply Vp-11 can be determined based on the DBUS power module in the first electronic device 410. The following description will be given using the example of the first electronic device 410 being an electronic device supporting a dual power supply.

[0343] For example, in order to reduce the misidentification of the plug-in or unplug-out status caused by level jitter and improve the accuracy of determining the plug-in or unplug-out status of the second electronic device 420, the plug-in detection module A can determine the plug-in or unplug-out status of the second electronic device 420 based on the level on contact A3 and the duration of the level.

[0344] For example, when the plug-in detection module A detects that the level on contact A3 is within the preset range A, and the duration of the level on contact A3 being within the preset range A is greater than or equal to the preset duration A, the plug-in detection module A can determine that the second electronic device 420 supporting a single power supply has been inserted.

[0345] For example, when the plug-in detection module A detects that the level on contact A3 is within the preset range B, and the duration of the level on contact A3 being within the preset range B is greater than or equal to the preset duration B, the plug-in detection module A can determine that the second electronic device 420 supporting dual power supply has been inserted.

[0346] For example, when the plug-in detection module A detects that the level on contact A3 is within the preset range C, and the duration of the level on contact A3 being within the preset range C is greater than or equal to the preset duration C, the plug-in detection module A can determine that the second electronic device 420 supporting single power supply or dual power supply has been unplugged.

[0347] It should be noted that the preset duration A and the preset duration B can be referred to as the insertion debounce time, and the preset duration C can be referred to as the unplugging debounce time. The preset duration A, the preset duration B, and the preset duration C can be the same or different from each other, or the insertion debounce time can be the same time, and the unplugging debounce time can be different from the insertion debounce time, that is, the preset duration A and the preset duration B can be the same, and the preset duration C can be different from the preset duration A. The specific values ​​of the preset duration A, the preset duration B, and the preset duration C can be determined according to the actual scenario, and the embodiments of the present application do not limit this.

[0348] For example, it can be determined according to an actual scenario that the preset duration A and the preset duration B are the same, and the preset duration C is different from the preset duration A, and the maximum and minimum values ​​of the preset duration A (which can be shown as tDebouncePlugin in Table 1) and the preset duration C (which can be shown as tDebouncePullout in Table 1) can be as shown in the following Table 1:

[0349] Table 1

[0350] In some embodiments, the plugging and unplugging detection module A can also detect the electrical level on power line C3 connected to cable marker-1, and can determine whether cable marker-1 connected to the first electronic device 410 exists within the cable 430 based on the electrical level on power line C3. It should be noted that when the plugging and unplugging detection module A is connected to power line C3 via contact A3, the electrical level on power line C3 is the same as the electrical level on contact A3. When the plugging and unplugging detection module A is connected to power line C3 via contact A4, the electrical level on power line C3 is the same as the electrical level on contact A4. Therefore, when the plugging and unplugging detection module A is connected to power line C3 via contact A3, the plugging and unplugging detection module A can detect the electrical level on contact A3, and can determine whether cable marker-1 connected to the first electronic device 410 exists within the cable 430 based on the electrical level on contact A3, for example, determining whether cable marker-1 exists at the near end of the cable 430. When the plug detection module A is connected to the power line C3 through the contact A4, the plug detection module A can detect the level on the contact A4 and determine whether there is a cable marker-1 connected to the first electronic device 410 in the cable 430 according to the level on the contact A4.

[0351] For example, when the plug detection module A shown in FIG5 is connected to the signal line in the cable 430 via contact A3, the plug detection module A can be connected to the power line C3 via contact A4. In this case, the plug detection module A can determine whether the second electronic device 420 is plugged in or unplugged based on the level on contact A3, and can determine whether the cable marker-1 connected to the first electronic device 410 is present in the cable 430 based on the level on contact A4.

[0352] As shown in Figure 5, cable marker-1 can be connected to ground via a pull-down resistor Ra-1. Initially, contact A4 can be connected to power supply Vp-12 via a pull-up resistor Rp-12. Therefore, when first electronic device 410 is connected to cable 430 and cable marker-1 is present within cable 430, contact A4 in first electronic device 410 will connect to the resistor Ra-1 within cable marker-1. This will increase the resistance Ra-1 within cable marker-1 on the communication line where contact A4 is located, causing the voltage level on the communication line where contact A4 is located to drop, i.e., causing the voltage level at contact A4 to drop.

[0353] Based on this, embodiments of the present application can determine, based on the resistance Ra-1 within cable marker-1, the communication line on which contact A4 is located, and the voltage provided by power supply Vp-12, a preset range (e.g., referred to as preset range D) corresponding to the electrical level at contact A4 when cable marker-1 is present within cable 430. Therefore, plugging and unplugging detection module A can detect whether the electrical level at contact A4 is within preset range D to determine whether cable marker-1 connected to first electronic device 410 is present within cable 430.

[0354] For example, when the plugging detection module A detects that the electrical level at contact A4 is within the preset range D, the plugging detection module A can determine that cable marker-1 connected to the first electronic device 410 is present in the cable 430. When the plugging detection module A detects that the electrical level at contact A4 is not within the preset range D, the plugging detection module A can determine that cable marker-1 connected to the first electronic device 410 is not present in the cable 430.

[0355] It should be understood that the preset range D can be specifically determined according to the actual scenario, and the embodiments of the present application are not limited to this.

[0356] The following describes respectively: (1) the power-on or power-off process of the first electronic device 410 when the insertion or removal state of the second electronic device 420 supporting a single power supply is detected; (2) the power-on or power-off process of the first electronic device 410 when the insertion or removal state of the second electronic device 420 supporting a dual power supply is detected.

[0357] (1) When the insertion or removal of the second electronic device 420 supporting a single power supply is detected, the power-on or power-off process of the first electronic device 410

[0358] In one possible implementation, upon detecting that a second electronic device 420 supporting a single power supply has been inserted, the first electronic device 410 can control the power module A2 (i.e., the PBUS power module) to output power to the second electronic device 420, thereby providing power to the various modules in the second electronic device 420 (e.g., the second communication module, the second power module, and the plug detection module B, etc.) through the PBUS power module. The second electronic device 420 supporting a single power supply may include a voltage conversion module. At this time, the voltage conversion module in the second electronic device 420 can convert the voltage provided by the PBUS power module to obtain the power supply Vp-21, power supply VCL-21, power supply Vp-22, and power supply VCL-22 shown in Figure 5.

[0359] In some embodiments, the first electronic device 410 may further include a control module (hereinafter referred to as control module A). Upon detecting that a second electronic device 420 supporting a single power supply has been inserted, the control module A in the first electronic device 410 may control the PBUS power module to output power to the second electronic device 420.

[0360] It should be understood that when the first electronic device 410 is an electronic device that supports dual power supplies, the control module A can be connected to the DBUS power module and the PBUS power module. The control module A can also be connected to the return ground A1 (i.e., DGND-1). The DBUS power module can be used to provide power to the control module A. When the first electronic device 410 is an electronic device that supports a single power supply, the control module A can be connected to the PBUS power module. The PBUS power module can be used to provide power to the control module A.

[0361] In some embodiments, the control module A and the first communication module can be the same module, that is, the first communication module can also have a control function. When detecting that the second electronic device 420 supporting a single power supply has been inserted, the first communication module in the first electronic device 410 can control the PBUS power module to output power to the second electronic device 420.

[0362] The control functions of the first electronic device 410 described below may all be performed by the control module A or the first communication module in the first electronic device 410 .

[0363] It should be understood that after the second communication module in the second electronic device 420 is provided with power through the PBUS power module, the second communication module can communicate with the first communication module in the first electronic device 410 .

[0364] In some embodiments, when it is determined that there is a cable marker-1 connected to the first electronic device 410 in the cable 430, the first electronic device 410 can switch the power supply connected to the contact A4 from the power supply Vp-12 to the power supply VCL-12 according to the information sent by the second electronic device 420 (hereinafter referred to as information A), so as to provide power to the cable marker-1 through the power supply VCL-12, so that the first electronic device 410 or the second electronic device 420 can communicate with the cable marker-1 to read the attribute information in the cable marker-1.

[0365] The information A may be used to instruct the first electronic device 410 to switch the power source connected to the contact A4 to the power source VCL-12, so as to provide power to the cable marker-1 through the power source VCL-12.

[0366] In one example, upon determining that cable marker-1 connected to first electronic device 410 is present in cable 430, first electronic device 410 may transmit information (hereinafter referred to as information C) indicating the presence of cable marker-1 in cable 430 to second electronic device 420 via the first communication module. After second electronic device 420 obtains information C, it may determine that cable marker-1 is present in cable 430. At this point, second electronic device 420 may transmit information A to the first communication module via the second communication module.

[0367] In another example, after the second electronic device 420 detects the presence of a cable marker chip (e.g., cable marker-2) connected to the second electronic device 420 in the cable 430, the second electronic device 420 may communicate with the cable marker-2 to read attribute information from the cable marker-2. The attribute information from the cable marker-2 may include the number of cable marker chips in the cable 430. When the second electronic device 420 determines that the cable marker-1 connected to the first electronic device 410 is present in the cable 430 based on the number of cable marker chips read, the second electronic device 420 may send information A to the first communication module via the second communication module.

[0368] It should be understood that after the first electronic device 410 obtains information A, the control module A or the first communication module in the first electronic device 410 can switch the power supply connected to contact A4 from power supply Vp-12 to power supply VCL-12 according to information A, so as to provide power to cable marker-1 through power supply VCL-12.

[0369] In some embodiments, upon detecting that a second electronic device 420 supporting a single power source has been unplugged, the first electronic device 410 can control the PBUS power module to stop supplying power to the second electronic device 420 and switch the power source connected to contact A4 from power source VCL-12 to power source Vp-12. At this point, because the resistance Ra-1 within cable marker-1 is reduced on the communication line where contact A4 is located, the voltage level at contact A4 is restored to the level before the second electronic device 420 was plugged in.

[0370] Please refer to Figure 6, which shows a schematic diagram of a first electronic device detecting the insertion or removal of a second electronic device according to an embodiment of the present application. In this diagram, the second electronic device 420 is an electronic device that supports a single power supply. When the first electronic device 410 is connected to the second electronic device 420 via a cable 430, the first electronic device 410 can be connected to the signal line in the cable 430 via contact A3, and can be connected to the power line C3 in the cable 430 via contact A4.

[0371] As shown in Figure 6, the plug-in and unplug detection module A can monitor the level changes on contact A3 and the level changes on contact A4 to determine the insertion or unplugging status of the second electronic device 420 based on the level changes on contact A3, and can determine whether there is a cable marker-1 connected to the first electronic device 410 in the cable 430 based on the level changes on contact A4.

[0372] When it is detected that the electrical level on contact A3 (which can be shown as A3 level in FIG6 ) drops to within the preset range A, the plug-in detection module A can start the insertion timing and can continuously monitor the electrical level on contact A3. When it is detected that the electrical level on contact A3 is within the preset range A for a duration greater than or equal to the preset duration A (which can be shown as tDebouncePlugin-A in FIG6 ), the plug-in detection module A can determine that the second electronic device 420 supporting a single power supply has been inserted. When it is determined that the second electronic device 420 supporting a single power supply has been inserted, the first electronic device 410 can control the PBUS power module to output electrical energy to the second electronic device 420 (which can be shown as power-on in FIG6 ) to provide electrical energy to each module in the second electronic device 420 through the PBUS power module.

[0373] When the electrical level at contact A4 (shown as level A4 in FIG. 6 ) is detected to fall within a preset range D, the plugging and unplugging detection module A can determine that cable marker-1 is present in cable 430. At this point, the first electronic device 410 can switch the power source connected to contact A4 from power source Vp-12 to power source VCL-12 based on information A sent by the second electronic device 420, thereby providing power to cable marker-1 through power source VCL-12.

[0374] It should be understood that, as shown in Figure 5 , when power is supplied to cable marker-1 via power supply VCL-12, there is no pull-up resistor Rp-12 in the communication line between power supply VCL-12 and cable marker-1. In this case, the voltage level at contact A4 will rise. The voltage level at contact A4 after the voltage level rises can be determined based on the voltage supplied by power supply VCL-12. Figure 6 illustrates the example where the voltage level at contact A4 when power is supplied to cable marker-1 via power supply VCL-12 is the same as the voltage level at contact A4 when power is supplied to contact A4 via power supply Vp-11 (i.e., no cable marker-1 is connected).

[0375] When the electrical level on contact A3 is detected to be within the preset range C, the plug-in detection module A may start the pull-out timing and may continue to measure the electrical level on contact A3. When the plug-in detection module A detects that the electrical level on contact A3 is within the preset range C for a duration greater than or equal to the preset duration C (shown as tDebouncePullout-C in FIG. 6 ), the plug-in detection module A may determine that the second electronic device 420 supporting a single power supply has been unplugged. When it is determined that the second electronic device 420 supporting a single power supply has been unplugged, the first electronic device 410 can control the PBUS power module to stop outputting power to the second electronic device (which can be shown as power-off in Figure 6) to stop providing power to the various modules in the second electronic device 420, and can switch the power supply connected to contact A4 from power supply VCL-12 to power supply Vp-12 to stop supplying power to cable marker-1 through power supply VCL-12. At this time, since there is no resistor Ra-1 in cable marker-1 on the communication line where contact A4 is located, the electrical level on contact A4 can be restored to the level before power supply Vp-12 was switched to power supply VCL-12.

[0376] (2) When the insertion or removal of the second electronic device 420 supporting dual power is detected, the power-on or power-off process of the first electronic device 410

[0377] In another possible implementation, when the first electronic device 410 is an electronic device that supports dual power supplies, upon detecting that the second electronic device 420 that supports dual power supplies has been inserted, the first electronic device 410 can control the power module A1 (i.e., the DBUS power module) to output power to the second electronic device 420, so as to provide power to the second communication module in the second electronic device 420 through the DBUS power module.

[0378] After the second communication module in the second electronic device 420 is supplied with power through the DBUS power module, the second communication module can communicate with the first communication module of the first electronic device 410 .

[0379] In one example, when it is determined that there is a cable marker-1 connected to the first electronic device 410 in the cable 430, the first electronic device 410 can switch the power supply connected to the contact A4 from the power supply Vp-12 to the power supply VCL-12 according to the information A sent by the second electronic device 420, so as to provide power to the cable marker-1 through the power supply VCL-12, so that the first electronic device 410 or the second electronic device 420 can communicate with the cable marker-1 to read the attribute information in the cable marker-1.

[0380] It should be noted that the method for obtaining information A can refer to the method for obtaining information A mentioned above. For the sake of brevity, it will not be repeated here.

[0381] In another example, upon detecting that a second electronic device 420 supporting dual power supplies has been inserted, the first electronic device 410 may further control the power module A2 (i.e., the PBUS power module) to output power to the second electronic device 420 based on information B sent by the second electronic device 420, thereby providing power to the second power module in the second electronic device 420 via the PBUS power module. Information B may be used to instruct the PBUS power module of the first electronic device 410 to output power to the second electronic device 420. For more information on information B, please refer to the subsequent description.

[0382] It should be noted that the first electronic device 410 may switch the power source connected to contact A4 to power source VCL-12 before controlling the PBUS power module to output power to the second electronic device 420. That is, the first electronic device 410 may first switch the power source connected to contact A4 from power source Vp-12 to power source VCL-12 according to information A, and then control the PBUS power module to output power to the second electronic device 420 according to information B.

[0383] That is, when the first electronic device 410 provides power to the second electronic device 420 through the cable 430, if it is detected that there is a cable marker-1 connected to the first electronic device 410 in the cable 430, the first electronic device 410 can first switch the power supply connected to the contact A4 from the power supply Vp-12 to the power supply VCL-12, so as to provide power to the cable marker-1 through the power supply VCL-12, so that the first electronic device 410 and / or the second electronic device 420 can read the attribute information in the cable marker-1, so that when it is determined that the second electronic device 420 supporting dual power supplies has been inserted, the PBUS power module can be controlled to output power to the second electronic device 420 according to the read attribute information.

[0384] In some embodiments, upon detecting that the second electronic device 420 supporting dual power is unplugged, the first electronic device 410 may control the PBUS power module to stop supplying power to the second electronic device 420, and may also control the DBUS power module to stop supplying power to the second electronic device 420. Furthermore, the first electronic device 410 may switch the power source connected to contact A4 from power source VCL-12 to power source Vp-12, thereby stopping power supply to cable marker-1 through power source VCL-12.

[0385] Please refer to Figure 7, which shows a second schematic diagram of the level change when a first electronic device detects the insertion or removal status of a second electronic device according to an embodiment of the present application. In this schematic diagram, the second electronic device 420 is an electronic device that supports dual power supplies. When the first electronic device 410 is connected to the second electronic device 420 via a cable 430, the first electronic device 410 can be connected to the signal line in the cable 430 via contact A3, and can be connected to the power line C3 in the cable 430 via contact A4.

[0386] As shown in Figure 7, the plug-in and unplug detection module A can monitor the level changes on contact A3 and the level changes on contact A4 to determine the insertion or unplugging status of the second electronic device 420 based on the level changes on contact A3, and can determine whether there is a cable marker-1 connected to the first electronic device 410 in the cable 430 based on the level changes on contact A4.

[0387] When it is detected that the level on contact A3 (which can be shown as A3 level in Figure 7) drops to within the preset range B, the plug detection module A can start the insertion timing and can continuously monitor the level on contact A3. When it is detected that the level on contact A3 is within the preset range B for a duration greater than or equal to the preset duration B (which can be shown as tDebouncePlugin-B in Figure 7), the plug detection module A can determine that the second electronic device 420 supporting dual power has been inserted. After determining that the second electronic device 420 supporting dual power has been inserted, the first electronic device 410 can control the DBUS power module to output power to the second electronic device 420 (which can be shown as power-on in Figure 7) to provide power to the second communication module in the second electronic device 420 through the DBUS power module.

[0388] When it is detected that the electrical level at contact A4 (which may be shown as A4 level in FIG. 7 ) has dropped to within a preset range D, the plugging and unplugging detection module A may determine that cable marker-1 connected to the first electronic device 410 is present in the cable 430. Upon determining that cable marker-1 is present in the cable 430, the first electronic device 410 may switch the power source connected to contact A4 from power source Vp-12 to power source VCL-12 based on the information A sent by the second electronic device 420, thereby providing power to the cable marker-1 via power source VCL-12, thereby enabling the first electronic device 410 and / or the second electronic device 420 to communicate with the cable marker-1.

[0389] In addition, after determining that the second electronic device 420 that supports dual power supply has been inserted, the first electronic device 410 can also control the PBUS power module to output power to the second electronic device 420 according to the information B sent by the second electronic device 420 (which can be shown as power-on in Figure 7) to provide power to the second power module in the second electronic device 420 through the PBUS power module.

[0390] When the voltage level on contact A3 is detected to be within the preset range C, the plug-in detection module A may start a pull-out timer and may continuously monitor the voltage level on contact A3. When the voltage level on contact A3 is detected to be within the preset range C for a duration greater than or equal to the preset duration C (shown as tDebouncePullout-C in FIG. 7 ), the plug-in detection module A may determine that the second electronic device 420 supporting dual power supply has been unplugged.

[0391] When it is determined that the second electronic device 420 supporting dual power supply has been unplugged, the first electronic device 410 can control the DBUS power module to stop outputting power to the second electronic device 420 (which can be shown as power-off in Figure 7), and can control the PBUS power module to stop outputting power to the second electronic device 420 (which can be shown as power-off in Figure 7), and can switch the power supply connected to contact A4 from power supply VCL-12 to power supply Vp-12. At this time, the level on contact A4 can be restored to the level before power supply Vp-12 is switched to power supply VCL-12.

[0392] 2. The plug-in / plug-out detection module B detects the plug-in or plug-out status of the first electronic device 410 and detects whether there is a cable marker-2 connected to the second electronic device 420 in the cable 430.

[0393] It should be understood that when the second electronic device 420 is an electronic device that supports a single power supply, regardless of whether the first electronic device 410 is an electronic device that supports a single power supply or a dual power supply, the first electronic device 410 can provide power to the second electronic device 420. However, when the second electronic device 420 is an electronic device that supports a dual power supply, if the first electronic device 410 is an electronic device that supports a single power supply, the first electronic device 410 will be unable to provide power to the second electronic device 420. In other words, when the second electronic device 420 is an electronic device that supports a dual power supply, in order for the first electronic device 410 to be able to provide power to the second electronic device 420, the first electronic device 410 must be an electronic device that supports a dual power supply.

[0394] That is, when the second electronic device 420 needs to obtain power from the first electronic device 410, if the second electronic device 420 is an electronic device that supports a single power supply, the second electronic device 420 does not need to determine whether the first electronic device 410 is an electronic device that supports a single power supply or an electronic device that supports dual power supplies, but only needs to determine the insertion or removal status of the first electronic device 410. If the second electronic device 420 is an electronic device that supports dual power supplies, when determining the insertion or removal status of the first electronic device 410, the second electronic device 420 also needs to determine whether the first electronic device 410 is an electronic device that supports a single power supply or an electronic device that supports dual power supplies.

[0395] It should be noted that when the first electronic device 410 is an electronic device that supports a single power supply, upon determining that the second electronic device 420 is in the plugged-in state, the first electronic device 410 can provide power to the various modules in the second electronic device 420 (e.g., the second communication module, the second power module, and the plug detection module B, etc.) through the PBUS power module. That is, when the first electronic device 410 that supports a single power supply is in the plugged-in state, the PBUS power module in the first electronic device 410 can provide power to the second electronic device 420 through contact A2 (i.e., PBUS-1) and contact B2 (i.e., PBUS-2). Therefore, when the first electronic device 410 that supports a single power supply is in the plugged-in state, PBUS-2 in the second electronic device 420 is in the powered-on state. When the first electronic device 410 that supports a single power supply is in the unplugged state, PBUS-2 in the second electronic device 420 is in the powered-off state.

[0396] When the first electronic device 410 supports dual power, upon determining that the second electronic device 420 supporting a single power is inserted, the first electronic device 410 may provide power to the second communication module in the second electronic device 420 via the PBUS power module. Alternatively, when the first electronic device 410 supports dual power, upon determining that the second electronic device 420 supporting a dual power is inserted, the first electronic device 410 may first provide power to the second communication module in the second electronic device 420 via the DBUS power module. That is, when the first electronic device 410 supporting dual power is inserted, the DBUS power module in the first electronic device 410 may provide power to the second electronic device 420 via contact A1 (i.e., DBUS-1) and contact B1 (i.e., DBUS-2), or the PBUS power module in the first electronic device 410 may provide power to the second electronic device 420 via contact A2 (i.e., PBUS-1) and contact B2 (i.e., PBUS-2). Therefore, when the first electronic device 410 supporting dual power is in the plugged-in state, the PBUS-2 or DBUS-2 in the second electronic device 420 is in the powered-on state. When the first electronic device 410 supporting dual power is unplugged, the PBUS-2 and DBUS-2 in the second electronic device 420 are in the powered-off state.

[0397] It should be understood that PBUS-2 being in a powered-on state may mean that there is power on PBUS-2. DBUS-2 being in a powered-on state may mean that there is power on DBUS-2. PBUS-2 being in a powered-off state may mean that there is no power on PBUS-2. DBUS-2 being in a powered-off state may mean that there is no power on DBUS-2. In addition, as shown in FIG5 , when the first electronic device 410 is not inserted, the contact B3 in the second electronic device 420 can be connected to the ground via the pull-down resistor Rd-21, that is, there is no voltage in the communication line where the contact B3 in the second electronic device 420 is located, resulting in a smaller level on the communication line where the contact B3 is located, for example, it can be 0. Similarly, the contact B4 in the second electronic device 420 can be connected to the ground via the pull-down resistor Rd-22, that is, there is no voltage in the communication line where the contact B4 is located, resulting in a reduced level on the communication line where the contact B4 is located, for example, it can be 0.

[0398] When the first electronic device 410 is in the inserted state, contact A3 in the first electronic device 410 can be connected to contact B3 or contact B4 via a signal line, so that the communication line on which contact B3 or contact B4 is located forms the same communication line as the communication line on which contact A3 is located. Because the power supply Vp-11 is present in the communication line on which contact A3 is located, a voltage is present in the communication line on which contact B3 or contact B4 is located, causing the voltage level on contact B3 or contact B4 to rise. For example, the voltage level on contact B3 or contact B4 may become the same as the voltage level on contact A3, i.e., the voltage level on contact B3 or contact B4 may rise to within the preset range A or the preset range B.

[0399] In summary, when the second electronic device 420 is an electronic device that supports a single power supply, the plug-in detection module B can determine the insertion or removal status of the first electronic device 410 based on whether PBUS-2 is in a powered state and the level on contact B3 or contact B4. When the second electronic device 420 is an electronic device that supports a dual power supply, the plug-in detection module B can determine the insertion or removal status of the first electronic device 410 based on whether DBUS-2 is in a powered state and the level on contact B3 or contact B4; alternatively, the plug-in detection module B can determine the insertion or removal status of the first electronic device 410 based on whether PBUS-2 is in a powered state and the level on contact B3 or contact B4.

[0400] For example, when the second communication module is connected to the signal line in the cable 430 via the contact B3, and the second electronic device 420 is an electronic device supporting a single power supply, the plug-in detection module B can determine the insertion or removal status of the first electronic device 410 based on whether PBUS-2 is in a powered-on state and the level on the contact B3. When the second electronic device 420 is an electronic device supporting a dual power supply, the plug-in detection module B can determine the insertion or removal status of the first electronic device 410 based on whether DBUS-2 is in a powered-on state and the level on the contact B3, or can determine the insertion or removal status of the first electronic device 410 based on whether PBUS-2 is in a powered-on state and the level on the contact B3.

[0401] For example, when the second communication module is connected to the signal line in the cable 430 via the contact B4, and the second electronic device 420 is an electronic device supporting a single power supply, the plug-in detection module B can determine the insertion or removal status of the first electronic device 410 based on whether PBUS-2 is in a powered-on state and the level on the contact B4. When the second electronic device 420 is an electronic device supporting a dual power supply, the plug-in detection module B can determine the insertion or removal status of the first electronic device 410 based on whether DBUS-2 is in a powered-on state and the level on the contact B4, or can determine the insertion or removal status of the first electronic device 410 based on whether PBUS-2 is in a powered-on state and the level on the contact B4.

[0402] The following description will be given by taking the example of the second communication module being connected to the signal line in the cable 430 via the contact B3.

[0403] In one example, when the second electronic device 420 is an electronic device supporting a single power supply, when it is detected that PBUS-2 is in a powered-on state and the voltage level on contact B3 is within a preset range A, the plug-in detection module B can determine that the first electronic device 410 has been plugged in. When it is detected that PBUS-2 is in a powered-off state or the voltage level on contact B3 is within a preset range E, the plug-in detection module B can determine that the first electronic device 410 has been unplugged.

[0404] For example, when determining whether the first electronic device 410 is plugged in based on whether PBUS-2 is powered on and the level on contact B3 is within a preset range A, the plug detection module B may first detect whether PBUS-2 is powered on. When PBUS-2 is detected to be powered on, the plug detection module B may detect whether the level on contact B3 is within a preset range A. When the level on contact B3 is within the preset range A, the plug detection module B may determine that the first electronic device 410 is plugged in. Similarly, when determining whether the first electronic device 410 is plugged in based on whether DBUS-2 is powered on and the level on contact B3 is within a preset range B, the plug detection module B may first detect whether DBUS-2 is powered on. When DBUS-2 is detected to be powered on, the plug detection module B may detect whether the level on contact B3 is within a preset range B. When the level on contact B3 is within the preset range B, the plug detection module B may determine that the first electronic device 410 supporting dual power supply is plugged in.

[0405] In another example, when the second electronic device 420 is an electronic device that supports dual power, when it is detected that DBUS-2 is in a powered-on state and the voltage level on contact B3 is within a preset range B, the plug-in detection module B can determine that the first electronic device 410 that supports dual power has been plugged in. When it is detected that DBUS-2 is in a powered-off state or when it is detected that PBUS-2 is in a powered-off state, the plug-in detection module B can determine that the first electronic device 410 that supports dual power has been unplugged. Alternatively, when the voltage level on contact B3 is within a preset range E, the plug-in detection module B can determine that the first electronic device 410 that supports dual power has been unplugged.

[0406] In another example, when the second electronic device 420 is an electronic device supporting dual power supplies, when it is detected that PBUS-2 is in a powered-on state and the voltage level on contact B3 is within a preset range B, the plug-in detection module B can determine that the first electronic device 410 supporting a single power supply has been plugged in. When it is detected that PBUS-2 is in a powered-off state, or when the voltage level on contact B3 is within a preset range E, the plug-in detection module B can determine that the first electronic device 410 supporting a single power supply has been unplugged.

[0407] In some embodiments, in order to reduce the misidentification of the plug-in or unplug-out status caused by level jitter and to improve the accuracy of determining the plug-in or unplug-out status of the first electronic device 410, the plug-in detection module B can determine the plug-in or unplug-out status of the first electronic device 410 based on the level on contact B3 and the duration of the level.

[0408] That is, when the second electronic device 420 is an electronic device supporting a single power supply, upon detecting that PBUS-2 is powered on, the plug-in detection module B may detect the electrical level on contact B3. Upon detecting that the electrical level on contact B3 is within a preset range A, and that the duration of the electrical level on contact B3 being within the preset range A is greater than or equal to the preset duration A, the plug-in detection module B may determine that the first electronic device 410 has been plugged in.

[0409] When the second electronic device 420 is an electronic device that supports dual power supplies, when it is detected that DBUS-2 is in the power-on state, the plug-in detection module B can detect the electrical level on contact B3. When it is detected that the electrical level on contact B3 is within the preset range B, and the duration of the electrical level on contact B3 being within the preset range B is greater than or equal to the preset duration B, the plug-in detection module B can determine that the first electronic device 410 that supports dual power supplies has been inserted. When the second electronic device 420 is an electronic device that supports dual power supplies, when it is detected that PBUS-2 is in the power-on state, the plug-in detection module B can detect the electrical level on contact B3. When it is detected that the electrical level on contact B3 is within the preset range B, and the duration of the electrical level on contact B3 being within the preset range B is greater than or equal to the preset duration B, the plug-in detection module B can determine that the first electronic device 410 that supports single power supplies has been inserted.

[0410] When the plug-in detection module B determines whether the first electronic device 410 is unplugged based on the level on the contact B3, when it is detected that the level on the contact B3 is within the preset range E for a duration greater than or equal to the preset time length E, the plug-in detection module B can determine that the first electronic device 410 has been unplugged.

[0411] Among them, the preset range E and the preset duration E can be specifically determined according to the actual scenario, and the embodiment of the present application does not limit this.

[0412] It should be understood that when the second electronic device 420 is an electronic device that supports dual power supplies, if it is detected that the first electronic device 410 that supports a single power supply has been inserted, since the first electronic device 410 that supports a single power supply cannot provide power to the second electronic device 420 that supports dual power supplies, the second electronic device 420 can output a prompt message at this time. The prompt message can be used to indicate that power cannot be provided to the second electronic device 420 through the first electronic device 410.

[0413] Please refer to Figure 8, which shows a schematic diagram of the level change when the second electronic device detects the insertion or removal status of the first electronic device provided in an embodiment of the present application. The schematic diagram uses the example of the second communication module being connected to the signal line in the cable 430 via contact B3 as an example.

[0414] When the second electronic device 420 is an electronic device that supports a single power supply, the plug-in detection module B can detect the power-on or power-off status of PBUS-2 and can monitor the level change on contact B3 to determine the insertion or removal status of the first electronic device 410 based on the power-on or power-off status of PBUS-2 and the level change on contact B3.

[0415] As shown in (a) of Figure 8 , when PBUS-2 is detected to be in the power-on state, the plug detection module B can detect the voltage level on contact B3. When the voltage level on contact B3 (which can be shown as B3 level in Figure 8 ) is detected to rise to within the preset range A, the plug detection module B can start the insertion timing and can continuously monitor the voltage level on contact B3. When it is detected that the voltage level on contact B3 is within the preset range A for a duration greater than or equal to the preset duration A (which can be shown as tDebouncePlugin-A in Figure 8 ), the plug detection module B can determine that the first electronic device 410 has been inserted.

[0416] When the voltage level on contact B3 is detected to have dropped to a preset range E, the plug-in / unplug detection module B may start a pull-out timer and may continuously monitor the voltage level on contact B3. When the voltage level on contact B3 is detected to be within the preset range E for a duration greater than or equal to the preset duration E (shown as tDebouncePullout-E in FIG. 8 ), the plug-in / unplug detection module B may determine that the first electronic device 410 has been unplugged. Alternatively, when the plug-in / unplug detection module B detects that PBUS-2 is in a power-off state, the plug-in / unplug detection module B may determine that the first electronic device 410 has been unplugged.

[0417] When the second electronic device 420 is an electronic device that supports dual power supplies, the plug-in detection module B can detect the power-on or power-off status of DBUS-2 and monitor the level change on contact B3 to determine the insertion or removal status of the first electronic device 410 based on the power-on or power-off status of DBUS-2 and the level change on contact B3.

[0418] Alternatively, when the second electronic device 420 is an electronic device that supports dual power supplies, the plug-in detection module B can detect the power-on or power-off status of PBUS-2 and monitor the level change on contact B3 to determine the insertion or removal status of the first electronic device 410 based on the power-on or power-off status of PBUS-2 and the level change on contact B3.

[0419] As shown in (b) of Figure 8 , when DBUS-2 is detected to be in the power-on state, the plug-in detection module B can detect the voltage level on contact B3. When it is detected that the voltage level on contact B3 rises to within the preset range B, the plug-in detection module B can start the insertion timing and can continuously monitor the voltage level on contact B3. When it is detected that the voltage level on contact B3 is within the preset range B for a duration greater than or equal to the preset duration B (which can be shown as tDebouncePlugin-B in Figure 8 ), the plug-in detection module B can determine that the first electronic device 410 supporting dual power supply has been inserted.

[0420] When the electrical level on contact B3 is detected to have dropped to a preset range E, the plug-in detection module B may start a pull-out timer and may continuously monitor the electrical level on contact B3. When the electrical level on contact B3 is detected to be within the preset range E for a duration greater than or equal to the preset duration E, the plug-in detection module B may determine that the first electronic device 410 supporting dual power supplies has been unplugged. Alternatively, when the plug-in detection module B detects that DBUS-2 is powered off or PBUS-2 is powered off, the plug-in detection module B may determine that the first electronic device 410 supporting dual power supplies has been unplugged.

[0421] As shown in (c) of FIG8 , when it is detected that PBUS-2 is in the powered state, the plug detection module B can detect the voltage level on the contact B3. When it is detected that the voltage level on the contact B3 is within the preset range B for a duration greater than or equal to the preset duration B, the plug detection module B can determine that the first electronic device 410 supporting a single power supply has been plugged in.

[0422] When the electrical level on contact B3 is detected to have dropped to a preset range E, the plug-in detection module B may start a timer for unplugging and may continuously monitor the electrical level on contact B3. When the electrical level on contact B3 is detected to be within the preset range E for a duration greater than or equal to the preset duration E, the plug-in detection module B may determine that the first electronic device 410 supporting a single power supply has been unplugged. Alternatively, when the plug-in detection module B detects that PBUS-2 is powered off, the plug-in detection module B may determine that the first electronic device 410 supporting a single power supply has been unplugged.

[0423] It should be noted that when the second electronic device 420 is an electronic device that supports a single power supply, the second electronic device 420 may include a voltage conversion module. Upon determining that the first electronic device 410 has been inserted, the second electronic device 420 may obtain power from the PBUS power module in the first electronic device 410. After obtaining power from the PBUS power module, the voltage conversion module in the second electronic device 420 may convert the voltage provided by the PBUS power module to obtain power Vp-21 and power VCL-21 corresponding to contact B3, and power Vp-22 and power VCL-22 corresponding to contact B4, as shown in FIG5 .

[0424] When the second electronic device 420 is an electronic device that supports dual power supplies, the second electronic device 420 may include multiple voltage conversion modules, such as a voltage conversion module B1 and a voltage conversion module B2. When it is determined that the first electronic device 410 that supports dual power supplies has been inserted, the second electronic device 420 may obtain the power provided by the DBUS power module in the first electronic device 410. After obtaining the power provided by the DBUS power module, the voltage conversion module (such as the voltage conversion module B1) in the second electronic device 420 may convert the voltage provided by the DBUS power module to obtain the power supply Vp-21 and power supply VCL-21 corresponding to the contact B3 shown in Figure 5, and the power supply Vp-22 and power supply VCL-22 corresponding to the contact B4.

[0425] That is to say, the power supply Vp-21, power supply VCL-21, power supply Vp-22, and power supply VCL-22 shown in Figure 5 can be obtained by converting the voltage provided by the PBUS power supply module in the first electronic device 410 by the voltage conversion module B1 in the second electronic device 420, or can be obtained by converting the voltage provided by the DBUS power supply module in the first electronic device 410 by the voltage conversion module in the second electronic device 420.

[0426] In some embodiments, when it is determined that the first electronic device 410 has been inserted, the second electronic device 420 can open the Vp-22 pull-up path of the contact B4 within the preset time A to detect whether there is a cable marker-2 connected to the second electronic device 420 in the cable 430 through the power supply Vp-22.

[0427] For example, upon determining that the first electronic device 410 has been inserted, the second electronic device 420 may further close the path where the pull-down resistor Rd-22 corresponding to the contact B4 is located within a preset time A. That is, upon determining that the first electronic device 410 has been inserted, the second electronic device 420 may connect the contact B4 to the power source Vp-22 within the preset time A and may disconnect the path where the pull-down resistor Rd-22 is located. For example, the switch of the path where the pull-down resistor Rd-22 is located may be disconnected to reduce the impact of the path where the pull-down resistor Rd-22 is located on the voltage level on the contact B4.

[0428] In some embodiments, the second electronic device 420 may further include a control module (hereinafter referred to as control module B). Upon determining that the first electronic device 410 has been inserted, the control module B may connect the contact B4 to the power source Vp-22 within a preset time A. Alternatively, upon determining that the first electronic device 410 has been inserted, the control module B may connect the contact B4 to the power source Vp-22 within a preset time A and may disconnect the path where the pull-down resistor Rd-22 is located.

[0429] It should be understood that the control module B can be connected to the contact B1. The control module B can obtain power provided by the power module (e.g., PBUS power module or DBUS power module) in the first electronic device 410 through the contact B1. In addition, the control module B can also be connected to the return ground B1 (i.e., DGND-2).

[0430] In some embodiments, the control module B and the second communication module may be the same module, i.e., the second communication module may also have a control function. Upon determining that the first electronic device 410 has been inserted, the second communication module may connect contact B4 to the power source Vp-22 within a preset time A. Alternatively, upon determining that the first electronic device 410 has been inserted, the second communication module may connect contact B4 to the power source Vp-22 within a preset time A and may disconnect the path where the pull-down resistor Rd-22 is located.

[0431] The control functions of the second electronic device 420 described below can all be performed by the control module B or the second communication module in the second electronic device 420.

[0432] It should be understood that the preset time A can be determined specifically according to the actual scenario, and the embodiment of the present application does not limit this. For example, the preset time A can be determined to be 0 according to the actual scenario.

[0433] Illustratively, the plugging and unplugging detection module B may detect the electrical level on the contact B4 and determine whether there is a cable marker-2 connected to the second electronic device 420 in the cable 430 according to the electrical level on the contact B4.

[0434] As shown in Figure 5, when the first electronic device 410 is not plugged in, contact B4 is connected to ground via pull-down resistor Rd-22. Furthermore, power supply Vp-22 and power supply VCL-22 corresponding to contact B4 are both voltage-free, and power supply Vp-22 and power supply VCL-22 are disconnected from the communication path where cable marker-2 is located. This results in a low voltage level on power line C4 corresponding to cable marker-2, for example, 0. After the first electronic device 410 is plugged in, the second electronic device 420 can connect contact B4 to power supply Vp-22. At this point, the power module (e.g., a PBUS power module or a DBUS power module) in the first electronic device 410 can provide power to power supply Vp-22 via cable 430, causing a voltage to appear on power line C4 connected to cable marker-2, thereby increasing the voltage level on the communication path where cable marker-2 is located.

[0435] When the second communication module is connected to the power line C4 via contact B4, the voltage level on the power line C4 is the same as the voltage level on contact B4. Therefore, the plug-in detection module B can detect the voltage level on contact B4 and determine whether cable marker-2 is present in the cable 430 based on the voltage level on contact B4.

[0436] Therefore, when the second electronic device 420 supporting a single power supply or the second electronic device 420 supporting a dual power supply determines that the first electronic device 410 is in an inserted state, the plug-in detection module B in the second electronic device 420 can determine whether there is a cable marker-2 connected to the second electronic device 420 in the cable 430 based on the level on the contact B4.

[0437] In this embodiment of the present application, based on the resistance Ra-2 within cable marker-2, the communication line on which contact B4 is located, and the voltage provided by power supply Vp-22, the predetermined range (e.g., predetermined range F) corresponding to the voltage level at contact B4 when cable marker-2 connected to second electronic device 420 is present within cable 430 can be determined. Therefore, based on whether the voltage level at contact B4 is within predetermined range F, plug detection module B can determine whether cable marker-2 connected to second electronic device 420 is present within cable 430.

[0438] Illustratively, when the plug detection module B detects that the electrical level on the contact B4 is within the preset range F within the preset time B, the plug detection module B may determine that cable marker-2 connected to the second electronic device 420 is present in the cable 430. When the plug detection module B does not detect that the electrical level on the contact B4 is within the preset range F within the preset time B, the plug detection module B may determine that cable marker-2 connected to the second electronic device 420 is not present in the cable 430.

[0439] It should be understood that the preset time B can be determined specifically based on the actual scenario, and the embodiments of the present application are not limited to this. For example, the preset time B can be determined to be 0 based on the actual scenario. In addition, the preset range F can also be determined specifically based on the actual scenario, and the embodiments of the present application are not limited to this.

[0440] In some embodiments, upon determining that cable marker-2 is connected to second electronic device 420 within cable 430, second electronic device 420 may close the pull-up path of Vp-22 of contact B4 and open the path of VCL-22 corresponding to contact B4. Specifically, second electronic device 420 may switch the power source connected to contact B4 from power source Vp-22 to power source VCL-22, thereby providing power to cable marker-2 within cable 430 via power source VCL-22. This allows second electronic device 420 to communicate with cable marker-2, thereby enabling second electronic device 420 to read attribute information stored in cable marker-2 and configure the communication address of cable marker-2, etc.

[0441] In one example, when the second electronic device 420 is an electronic device that supports a single power supply, after the second electronic device 420 is connected to the first electronic device 410 via the cable 430, the various modules in the second electronic device 420 (e.g., the second communication module, the second power module, and the plug detection module B) can be powered by the PBUS power module in the first electronic device 410. That is, the power of the power source Vp-22 and the power source VCL-22 corresponding to the contact B4 can be provided by the PBUS power module in the first electronic device 410.

[0442] After the second communication module in the second electronic device 420 receives power from the PBUS power module in the first electronic device 410, the second communication module in the second electronic device 420 can communicate with the first communication module in the first electronic device 410. Therefore, when the second electronic device 420 determines that cable marker-1, which is connected to the first electronic device 410, is still present in the cable 430, the second electronic device 420 can send information A to the first electronic device 410. Information A can be used to instruct the first electronic device 410 to provide power to cable marker-1 in the cable 430, enabling the second electronic device 420 to communicate with cable marker-1 in the cable 430. This allows the second electronic device 420 to read the attribute information in cable marker-1 and configure the communication address of cable marker-1, etc. For example, information A can be used to instruct the first electronic device 410 to switch the power source connected to contact A4 from Vp-11 to power source VCL-11, so that power can be supplied to cable marker-1 in the cable 430 via power source VCL-11.

[0443] It should be understood that the second electronic device 420 can determine whether there is a cable marker-1 connected to the first electronic device 410 in the cable 430 based on the information C sent by the first electronic device 410 to the second electronic device 420, or the second electronic device 420 can determine whether there is a cable marker-1 connected to the first electronic device 410 in the cable 430 by reading the attribute information in the cable marker-2.

[0444] That is, when the first electronic device 410 detects the presence of cable marker-1 connected to the first electronic device 410 in the cable 430, the first electronic device 410 may send information C to the second electronic device 420. The information C may be used to inform the second electronic device 420 that the first electronic device 410 has detected the presence of cable marker-1 connected to the first electronic device 410 in the cable 430. Therefore, the second electronic device 420 may determine that the cable marker-1 connected to the first electronic device 410 is present in the cable 430 based on the information C.

[0445] Alternatively, after the second electronic device 420 provides power to cable marker-2 via power supply VCL-22, the second electronic device 420 can communicate with cable marker-2 to read attribute information stored in cable marker-2. This attribute information may include the number of cable marker chips in cable 430. Therefore, based on the number of cable marker chips read, the second electronic device 420 can determine whether cable marker-1 is present in cable 430. For example, if the number of cable marker chips read by the second electronic device 420 is two, the second electronic device 420 can determine that cable marker-1, connected to the first electronic device 410, is present in cable 430.

[0446] In another example, when the second electronic device 420 and the first electronic device 410 are both electronic devices that support dual power supplies, after the second electronic device 420 is connected to the first electronic device 410 via the cable 430, the second communication module and the plug detection module B in the second electronic device 420 can be powered by the DBUS power module in the first electronic device 410. That is, the power of the power source Vp-22 and the power source VCL-22 corresponding to the contact B4 can be provided by the DBUS power module in the first electronic device 410.

[0447] After the second communication module in the second electronic device 420 obtains power from the DBUS power module in the first electronic device 410, the second communication module in the second electronic device 420 can also communicate with the first communication module in the first electronic device 410. Therefore, when the second electronic device 420 determines that cable marker-1 connected to the first electronic device 410 is still present in the cable 430, the second electronic device 420 can send information A to the first electronic device 410, thereby instructing the first electronic device 410 to provide power to the cable marker-1 in the cable 430. For example, the information A instructs the first electronic device 410 to switch the power source connected to contact A4 from Vp-11 to power source VCL-11, so that power is supplied to the cable marker-1 in the cable 430 via power source VCL-11. This allows the second electronic device 420 to communicate with the cable marker-1 in the cable 430, thereby enabling the second electronic device 420 to read the attribute information in the cable marker-1 and configure the communication address of the cable marker-1.

[0448] It should be understood that when the second electronic device 420 determines that the cable 430 includes cable marker-1 and cable marker-2, the second electronic device 420 can first communicate with cable marker-2 to read the attribute information stored in cable marker-2 and configure the communication address of cable marker-2. Subsequently, the second electronic device 420 can communicate with cable marker-1 to read the attribute information stored in cable marker-1 and configure the communication address of cable marker-1, and so on.

[0449] In another example, when the second electronic device 420 and the first electronic device 410 are both electronic devices supporting dual power supplies, when the second electronic device 420 detects that the first electronic device 410 has been plugged in, the second electronic device 420 may further send information B to the first electronic device 410. The information B may be used to instruct the PBUS power module in the first electronic device 410 to output power to the second power module in the second electronic device 420, so that power is provided to the second power module via the PBUS power module.

[0450] In some embodiments, when determining that the cable marker-2 connected to the second electronic device 420 exists in the cable 430, the plug detection module B may further determine whether the first electronic device 410 is unplugged according to the level on the contact B4.

[0451] For example, when the plug detection module B detects that the level on the contact B4 is within the preset range G, the plug detection module B can determine that the first electronic device 410 is unplugged. It should be understood that the preset range G can be determined according to the actual scenario and is not limited in this embodiment of the present application.

[0452] Please refer to Figure 9, which shows a schematic diagram of electrical level changes when a second electronic device detects a cable marker chip in a cable, according to an embodiment of the present application. This diagram, taking first electronic device 410 and second electronic device 420 as examples, illustrates the electrical level changes when plug detection module B detects the presence of cable marker-2 in cable 430, which is connected to second electronic device 420.

[0453] As shown in FIG9 , when the second electronic device 420 is an electronic device supporting dual power supplies, when the plug detection module B detects that DBUS-2 is in a powered-on state, the plug detection module B can detect the level on contact B3 (which can be shown as B3 level in FIG9 ). When the level on contact B3 is detected to rise to within a preset range B, the plug detection module B can determine that the first electronic device 410 supporting dual power supplies has been inserted.

[0454] When it is determined that the first electronic device 410 supporting dual power supplies has been inserted, the second electronic device 420 can open the Vp-22 pull-up path of the contact B4 within a preset time A (which can be shown as tVpDebounce in Figure 9) and can close the path where the pull-down resistor Rd-22 is located, that is, the contact B4 can be connected to the power supply Vp-22 to detect whether there is a cable marker-2 connected to the second electronic device 420 in the cable 430 through the power supply Vp-22.

[0455] When the plug-in detection module B detects that the voltage level on contact B4 (shown as B4 level in FIG. 9 ) is within a preset range F within a preset time B (shown as tVclDebounce in FIG. 9 ), the plug-in detection module B can determine that cable marker-2 is present in cable 430. At this point, the second electronic device 420 can close the pull-up path Vp-22 of contact B4 and open the path corresponding to VCL-22 of contact B4. In other words, the power source connected to contact B4 can be switched from power source Vp-22 to power source VCL-22, so that power can be supplied to cable marker-2 in cable 430 via power source VCL-22.

[0456] Upon determining that the first electronic device 410 supporting dual power supplies has been inserted, the second electronic device 420 may send information B to the first electronic device 410. After receiving information B, the first electronic device 410 may control the PBUS power module to output power to the second power module in the second electronic device 420. The first electronic device 410 may control the PBUS power module to output power to the second power module in the second electronic device 420 based on information B after the second electronic device 420 provides power to the cable marker-2 in the cable 430 via the power supply VCL-22.

[0457] When the plug-in detection module B detects that the DBUS power module is powered off, that is, when it detects that the contact B1 (for example, DBUS-2) is in the power-off state, the plug-in detection module B can determine that the first electronic device 410 is disconnected, that is, it can determine that the first electronic device 410 is in the unplugged state.

[0458] Alternatively, when the plug detection module B detects that the PBUS power module is powered off, that is, when it detects that the contact B2 (eg, PBUS-2) is in a powered-off state, the plug detection module B may determine that the first electronic device 410 is unplugged.

[0459] Alternatively, when the plug-in detection module B detects that the level on contact B3 is powered off, that is, when it is detected that the level on contact B3 is within the preset range E, and the duration of the level on contact B3 within the preset range E is greater than or equal to the preset duration E (which can be shown as tDebouncePullout-E in Figure 9), the plug-in detection module B can determine that the first electronic device 410 is in an unplugged state.

[0460] Alternatively, when the plug detection module B detects that the level on the contact B4 is powered off, that is, when the level on the contact B4 is detected to be within the preset range G, the plug detection module B can determine that the first electronic device 410 is in the unplugged state.

[0461] It should be understood that in a typical power supply system, when cable marker-1 and cable marker-2 are present within the cable, the power supply / powered device needs to access the near-end cable marker chip. It must first shut down the power to the far-end cable marker chip via a protocol command. Then, it must turn on the power to the near-end cable marker chip to establish communication between the power supply / powered device and the near-end cable marker chip. In other words, in a typical power supply system, accessing the cable marker chip requires a complex power-up / power-down process, as well as a communication handoff. This results in a lengthy communication process between the power supply / powered device and the cable marker chip.

[0462] In an embodiment of the present application, when the cable 430 includes cable marker-1 and cable marker-2, when the first electronic device 410 provides power to the second electronic device 420 through the cable 430, the first electronic device 410 can also provide power to the cable marker-1 near the first electronic device 410. After the second electronic device 420 obtains power from the first electronic device 410, it can provide power to the cable marker-2 near the second electronic device 420, so that cable marker-1 and cable marker-2 can be powered on at the same time, which can simplify the communication process between the first electronic device 410 and cable marker-1 / cable marker-2, and can simplify the communication process between the second electronic device 420 and cable marker-1 / cable marker-2, thereby shortening the communication time.

[0463] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0464] Those skilled in the art will appreciate that the units of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0465] In the embodiments provided in the present application, it should be understood that the disclosed electronic devices (such as the first electronic device and the second device) can be implemented in other ways. For example, the electronic device embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some ports, devices or units, which can be electrical, mechanical or other forms.

[0466] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0467] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present application, and should all be included in the scope of protection of the present application.

Claims

1. A first electronic device, characterized in that: The first electronic device includes a first communication module, a first power module, a first power supply module, a second power supply module, a first return ground, a second return ground, a first contact, and a second contact; the first communication module is connected to the first power supply module, the first communication module is also connected to the first return ground, the first power supply module is connected to the first return ground, the first power supply module is also connected to the first contact, the first power module is connected to the second power supply module, the first power module is also connected to the second return ground, the second power supply module is connected to the second return ground, and the second power supply module is also connected to the second contact; The first power module is configured to provide power to the first communication module and to provide power to the second communication module in the second electronic device through the first contact; The second power module is configured to provide power to the first power module and to provide power to the second power module in the second electronic device through the second contact; The first return ground is used to return the current provided by the first power module; The second return ground is used to return the current provided by the second power module.

2. The first electronic device according to claim 1, wherein: The first electronic device further includes a third contact, wherein the third contact is connected to the first communication module; The first communication module is further configured to communicate with the second electronic device through the third contact.

3. The first electronic device according to claim 2, wherein: The first electronic device further includes a first plug-in detection module, the first plug-in detection module is connected to the first power module, and the first plug-in detection module is also connected to the first return ground; The first power supply module is further configured to provide power to the first plug detection module; The first plug-in / out detection module is configured to detect the plug-in or plug-out status of the second electronic device.

4. The first electronic device according to claim 3, wherein: The first plug detection module is connected to the third contact; The first plug-in / out detection module is further configured to determine the plug-in or plug-out status of the second electronic device according to the electrical level on the third contact.

5. The first electronic device according to claim 4, characterized in that The first plug-in detection module is further configured to determine that the second electronic device supporting dual power supply has been plugged in when it is determined that the electrical level on the third contact is within a first range.

6. The first electronic device according to claim 5, characterized in that The first plug-in detection module is further configured to determine that the second electronic device supporting dual power supply has been plugged in when it is determined that the electrical level on the third contact is within the first range and lasts for a period greater than or equal to a first threshold.

7. The first electronic device according to claim 5 or 6, characterized in that: When the first plug-in detection module determines that the second electronic device supporting dual power supplies has been plugged in, the first power module outputs power to the second electronic device.

8. The first electronic device according to any one of claims 5 to 7, characterized in that: The first communication module is further configured to obtain first information sent by the second electronic device, and when determining that the second electronic device supporting dual power supplies has been inserted, control the second power supply module to output power to the second electronic device according to the first information.

9. The first electronic device according to any one of claims 4 to 8, characterized in that: The first plug-in detection module is further configured to determine that the second electronic device supporting dual power supply has been unplugged when it is determined that the electrical level on the third contact is within a second range.

10. The first electronic device according to claim 9, characterized in that: The first plug-in detection module is further configured to determine that the second electronic device supporting dual power supply has been unplugged when it is determined that the electrical level on the third contact is within the second range and lasts for a period greater than or equal to a second threshold.

11. The first electronic device according to claim 9 or 10, characterized in that: When the first plug-in detection module determines that the second electronic device supporting dual power supplies has been unplugged, the first power module and the second power module stop outputting power to the second electronic device.

12. The first electronic device according to claim 4, wherein: The first plug-in detection module is further configured to determine that the second electronic device supporting a single power supply has been plugged in when it is determined that the electrical level on the third contact is within a third range.

13. The first electronic device according to claim 12, wherein: The first plug-in detection module is further configured to determine that the second electronic device supporting a single power supply has been plugged in when it is determined that the electrical level on the third contact is within the third range and lasts for a duration greater than or equal to a third threshold.

14. The first electronic device according to claim 12 or 13, characterized in that: When the first plug-in detection module determines that the second electronic device supporting a single power supply has been plugged in, the second power supply module outputs power to the second electronic device.

15. The first electronic device according to any one of claims 12 to 14, characterized in that: The first plug-in detection module is further configured to determine that the second electronic device supporting a single power supply has been unplugged when it is determined that the electrical level on the third contact is within a fourth range.

16. The first electronic device according to claim 15, characterized in that: The first plug-in detection module is further configured to determine that the second electronic device supporting a single power supply has been unplugged when it is determined that the electrical level on the third contact is within the fourth range and lasts for a duration greater than or equal to a fourth threshold.

17. The first electronic device according to claim 15 or 16, characterized in that: When the first plug-in detection module determines that the second electronic device supporting a single power supply has been unplugged, the second power supply module stops outputting power to the second electronic device.

18. The first electronic device according to any one of claims 3 to 17, characterized in that: The first electronic device further includes a fourth contact, wherein the fourth contact is connected to the first plug detection module; The fourth contact is used to connect to the first chip in the cable; The first plug-in detection module is further configured to determine whether the first chip exists in the cable connected to the first electronic device based on the electrical level on the fourth contact.

19. The first electronic device according to claim 18, wherein: The first plug-in detection module is further configured to determine that the first chip exists in the cable connected to the first electronic device when it is determined that the electrical level on the fourth contact is within a fifth range.

20. The first electronic device according to claim 18 or 19, characterized in that: The first electronic device further includes a voltage conversion module; The first communication module is further used to obtain second information sent by the second electronic device when it is determined that the first chip exists in the cable connected to the first electronic device, and switch the power module connected to the fourth contact from the first power submodule to the second power submodule according to the second information, so as to provide power to the first chip through the second power submodule. The first power submodule and the second power submodule are obtained by the voltage conversion module in the first electronic device converting the first power module.

21. The first electronic device according to claim 20, characterized in that The first communication module is further configured to switch the power module connected to the fourth contact from the second power submodule to the first power submodule when it is determined that the second electronic device has been unplugged.

22. The first electronic device according to any one of claims 1 to 21, characterized in that: The contacts are pins.

23. A second electronic device, characterized in that: The second electronic device includes a second communication module, a second power module, a third return ground, a fourth return ground, a fifth contact, and a sixth contact, wherein the second communication module is connected to the third return ground, the second communication module is also connected to the fifth contact, the second power module is connected to the fourth return ground, and the second power module is also connected to the sixth contact; The second communication module is configured to obtain electrical energy provided by the first power module in the first electronic device through the fifth contact; The second power module is configured to obtain electrical energy provided by the second power module in the first electronic device through the sixth contact; The third return ground is used to return the current provided by the first power module; The fourth return ground is used to return the current provided by the second power module.

24. The second electronic device according to claim 23, characterized in that The second electronic device further includes a seventh contact, wherein the seventh contact is connected to the second communication module; The second communication module is further configured to communicate with the first electronic device through the seventh contact.

25. The second electronic device according to claim 24, characterized in that The second electronic device further includes a second plug-in detection module, the second plug-in detection module is connected to the fifth contact, and the second plug-in detection module is also connected to the third return ground; The second plug-in / out detection module is configured to obtain the electrical energy provided by the first power module in the first electronic device through the fifth contact, and to detect the plug-in or plug-out status of the first electronic device.

26. The second electronic device according to claim 25, characterized in that The second plug detection module is connected to the seventh contact; The second plug-in / out detection module is further configured to determine the insertion or removal status of the first electronic device based on the power-on or power-off status of the fifth contact and the electrical level on the seventh contact; or, further configured to determine the insertion or removal status of the first electronic device based on the power-on or power-off status of the sixth contact and the electrical level on the seventh contact.

27. The second electronic device according to claim 26, characterized in that The second plug-in detection module is further configured to determine that the first electronic device supporting dual power supply has been plugged in when it is determined that the fifth contact is in a powered-on state and the electrical level on the seventh contact is within a sixth range.

28. The second electronic device according to claim 27, characterized in that The second plug-in detection module is further configured to determine that the first electronic device supporting dual power supply has been inserted when it is determined that the fifth contact is in a powered-on state and the duration of the electrical level on the seventh contact being within the sixth range is greater than or equal to a sixth threshold.

29. The second electronic device according to claim 28, characterized in that The second electronic device further includes an eighth contact and a voltage conversion module; The second communication module is also used to control the eighth contact to be connected to the third power submodule when it is determined that the first electronic device supporting dual power supply has been inserted. The third power submodule is obtained by the voltage conversion module in the second electronic device converting the first power module.

30. The second electronic device according to claim 28 or 29, characterized in that: The second communication module is further used to send first information to the first electronic device when it is determined that the first electronic device supporting dual power supply has been inserted, and the first information is used to instruct the second power module in the first electronic device to provide power to the second power module in the second electronic device.

31. The second electronic device according to claim 26, characterized in that The second plug-in detection module is further configured to determine that the first electronic device supporting a single power supply has been plugged in when it is determined that the sixth contact is in a powered-on state and the electrical level on the seventh contact is within a seventh range.

32. The second electronic device according to claim 31, characterized in that The second plug-in detection module is further configured to determine that the first electronic device supporting a single power supply has been inserted when it is determined that the sixth contact is in a powered-on state and the duration of the electrical level on the seventh contact being in the seventh range is greater than or equal to a seventh threshold.

33. The second electronic device according to any one of claims 25 to 32, characterized in that: The second plug-in detection module is further configured to determine that the first electronic device has been unplugged when detecting that the fifth contact or the sixth contact is in a power-off state, or when detecting that the electrical level on the seventh contact is within an eighth range.

34. The second electronic device according to claim 33, characterized in that The second plug-in detection module is further configured to determine that the first electronic device has been unplugged when detecting that the electrical level on the seventh contact is within the eighth range and lasts for a duration greater than or equal to an eighth threshold.

35. The second electronic device according to any one of claims 25 to 32, characterized in that: The second electronic device further includes an eighth contact, wherein the eighth contact is connected to the second plug detection module; The eighth contact is used to connect to the second chip in the cable; The second plug-in detection module is further configured to determine whether the second chip exists in the cable connected to the second electronic device based on the electrical level on the eighth contact.

36. The second electronic device according to claim 35, characterized in that The second plug-in detection module is further configured to determine that the second chip exists in the cable connected to the second electronic device when detecting that the electrical level on the eighth contact is within a ninth range.

37. The second electronic device according to claim 36, characterized in that The second electronic device includes a voltage conversion module; The second communication module is further used to switch the power module connected to the eighth contact from the third power submodule to the fourth power submodule when it is determined that the second chip exists in the cable connected to the second electronic device, so as to provide power to the second chip through the fourth power submodule. The third power submodule and the fourth power submodule are obtained by the voltage conversion module in the second electronic device from the first power module.

38. The second electronic device according to any one of claims 29, 35 to 37, characterized in that: The second plug-in / out detection module is further configured to determine that the first electronic device has been unplugged when detecting that the electrical level on the eighth contact is within a tenth range.

39. The second electronic device according to any one of claims 23 to 38, characterized in that: The second communication module is further configured to send second information to the first electronic device when it is determined that the first chip is stored in the cable connected to the second electronic device, wherein the second information is configured to instruct the first electronic device to provide power to the first chip in the cable.

40. The second electronic device according to any one of claims 23 to 39, characterized in that: The contacts are pins.

41. A cable, characterized in that: The cable includes a first power line, a second power line, a fifth return ground corresponding to the first power line, and a sixth return ground corresponding to the second power line; The first power line is used to connect to the first contact in the first electronic device and to connect to the fifth contact in the second electronic device; The second power line is used to connect to the second contact point in the first electronic device and to connect to the sixth contact point in the second electronic device.

42. The cable according to claim 41, wherein The cable also includes a signal line; The signal line is used to connect to the third contact of the first electronic device and to connect to the seventh contact of the second electronic device.

43. The cable according to claim 42, wherein: The cable further includes a first chip and a second chip, wherein the first chip is connected to the signal line, and the second chip is connected to the signal line.

44. The cable according to claim 43, wherein The cable further includes a third power line connected to the first chip and a fourth power line connected to the second chip; The third power line is used to connect to the fourth contact in the first electronic device; The fourth power line is used to connect to the eighth contact in the second electronic device.

45. The cable according to any one of claims 41 to 44, characterized in that The contacts are pins.

46. ​​A power supply system, characterized in that: comprising a first electronic device, a second electronic device, and a cable connecting the first electronic device and the second electronic device; The first electronic device includes a first communication module, a first power module, a first power supply module, a second power supply module, a first return ground, a second return ground, a first contact, and a second contact; the first communication module is connected to the first power supply module, the first communication module is also connected to the first return ground, the first power supply module is connected to the first return ground, the first power supply module is also connected to the first contact, the first power module is connected to the second power supply module, the first power module is also connected to the second return ground, the second power supply module is connected to the second return ground, and the second power supply module is also connected to the second contact; The second electronic device includes a second communication module, a second power module, a third return ground, a fourth return ground, a fifth contact, and a sixth contact, wherein the second communication module is connected to the third return ground, the second communication module is also connected to the fifth contact, the second power module is connected to the fourth return ground, and the second power module is also connected to the sixth contact; The cable includes a first power line, a second power line, a fifth return ground corresponding to the first power line, and a sixth return ground corresponding to the second power line; The first power line is used to connect the first contact in the first electronic device and the fifth contact in the second electronic device; The second power line is used to connect the second contact in the first electronic device and the sixth contact in the second electronic device; The first power module is configured to provide power to the first communication module, and to provide power to the second communication module via the first contact, the first power line, and the fifth contact; The second power module is configured to provide power to the first power module, and to provide power to the second power module via the second contact, the second power line, and the sixth contact; The first return ground, the third return ground, and the fifth return ground are used to return the current provided by the first power module; The second return ground, the fourth return ground, and the sixth return ground are used to return the current provided by the second power module.

47. The power supply system according to claim 46, characterized in that: The contacts are pins.

48. A power supply method, characterized in that: Applied to a second electronic device, the method includes: detecting a power-on or power-off state of a first preset contact in the second electronic device, and detecting a voltage level on a second preset contact in the second electronic device; When detecting the power-on state of the first preset contact and the electrical level on the second preset contact is within a first preset range, determining that the first electronic device has been inserted, and controlling the third preset contact in the second electronic device to be connected to a third power submodule, the first electronic device is an electronic device for outputting electrical energy to the second electronic device, the third power submodule is obtained by the second electronic device from converting the power module in the first electronic device, and the third preset contact is used to connect to the second chip in the cable; detecting the electrical level on the third preset contact; When it is detected that the electrical level on the third preset contact is within a second preset range, the power module connected to the third preset contact is switched from the third power submodule to the fourth power submodule, so as to output electrical energy to the second chip through the fourth power submodule. The fourth power submodule is obtained by the second electronic device from converting the power module in the first electronic device.

49. The method according to claim 48, characterized in that The second electronic device is an electronic device supporting dual power supplies, the first electronic device is an electronic device supporting dual power supplies, and the third power submodule and the fourth power submodule are obtained by the second electronic device by converting the first power module in the first electronic device.

50. The method according to claim 49, wherein The method further comprises: When the power-on state of the first preset contact is detected and the electrical level on the second preset contact is within the first preset range, first information is sent to the first electronic device, where the first information is used to instruct the second power module in the first electronic device to output electrical energy to the second electronic device.

51. The method according to claim 49 or 50, characterized in that The method further comprises: When it is determined that the first chip is present in the cable, second information is sent to the first electronic device, where the second information is used to instruct a first power module in the first electronic device to output power to the first chip.

52. The method according to claim 51, characterized in that The second information is used to instruct the first electronic device to switch the power module connected to the contacts connected to the first chip from the first power sub-module to the second power sub-module, so as to provide power to the first chip through the second power sub-module. The first power sub-module and the second power sub-module are obtained by the first electronic device converting the first power module.

53. The method according to any one of claims 48 to 52, characterized in that When detecting the power-on state of the first preset contact and the electrical level on the second preset contact is within a first preset range, controlling the third preset contact in the second electronic device to be connected to the third power submodule includes: When the power-on state of the first preset contact is detected, the electrical level on the second preset contact is within the first preset range, and the duration for which the electrical level on the second preset contact is within the first preset range is greater than or equal to the first preset threshold, the third preset contact in the second electronic device is controlled to be connected to the third power submodule.

54. The method according to any one of claims 48 to 53, characterized in that The method further comprises: When the power-off state of the first preset contact is detected, or when the level on the third preset contact is detected to be within the fourth preset range, or when the level on the second preset contact is detected to be within the third preset range, it is determined that the first electronic device has been unplugged.

55. The method according to claim 54, characterized in that The step of determining that the first electronic device has been unplugged when detecting that the electrical level on the second preset contact point is within a third preset range includes: When it is detected that the electrical level on the second preset contact is within the third preset range, and the duration for which the electrical level on the second preset contact is within the third preset range is greater than or equal to a second preset threshold, it is determined that the first electronic device has been unplugged.

56. The method according to any one of claims 48 to 55, characterized in that The default contacts are pins.

57. A second electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the second electronic device implements the power supply method according to any one of claims 48 to 56.

58. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a computer, the computer is caused to implement the power supply method according to any one of claims 48 to 56.

Citation Information

Patent Citations

  • First electronic device, second electronic device, cable and power supply system

    CN118572870B

  • Automobile electronic equipment and vehicle

    CN110691018A

  • Terminal charging system, terminal charging method and storage medium

    CN115882534A

  • Electronic tag chip and charging cable

    CN116522983A

  • First electronic device, second electronic device, cable and power supply system

    CN118572870A