Electronic device supporting type-c connection and method thereof
By confirming the battery power supply capability before the Try.SRC state, the problem of unexpected shutdown of USB Type-C DRP devices due to battery power not being restored in the Try.SRC state is solved, and stable connection and normal operation of electronic devices are achieved.
Patent Information
- Application Number
- CN202011405182.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-02
- Publication Date
- 2025-10-24
- Estimated Expiration
- 2040-12-02
AI Technical Summary
In USB Type-C Dual Role Port (DRP) devices, unexpected shutdowns due to battery failure in the Try.SRC state can occur, especially when connecting electronic devices such as laptops to other devices, resulting in improper role assignments.
Before entering the Try.SRC state, the system first detects whether the battery has the power supply capability, including confirming whether the power module has a qualified output voltage and the battery status is normal. Only after ensuring that the battery has the power supply capability can the role assignment be performed.
This avoids unexpected shutdown issues caused by insufficient power supply capacity of the power module in the Try.SRC state, ensuring stable connection and normal operation of electronic devices.
Smart Images

Figure CN114583772B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to an electronic device supporting USB Type-C specification and a method thereof, and more particularly to an electronic device supporting a dual role port (DRP) and a method thereof. BACKGROUND
[0002] USB Type-C, also known as USB-C, is a hardware medium form of Universal Serial Bus (USB) that is characterized by the fact that the top and bottom ends are identical in appearance. The design of cables, sockets and plugs that meet the USB Type-C specification is more robust and easier to use than cables that use other USB specifications such as Micro-A, Type-A and Type-B. For example, a Type-A plug can only be inserted into a Type-A socket in one direction, while a Type-C can be inserted into a device regardless of its front or back side. This design can avoid the trouble and inconvenience caused by the user inserting the USB device into the connection port incorrectly.
[0003] According to the USB Type-C Specification Version 1.0 published by the USB Implementers Forum (USB-IF), when two electronic devices are connected together via a USB Type-C cable, the possible roles can be divided into Host (or "power sourcing") and Device (or "power sink"). If it is for charging purposes, the role of Host is called Source, the role of Device is called Sink, and the direction of charging is "Source charges Device". Electronic devices supporting Type-C connection can be divided into Downstream Facing Port (DFP), Upstream Facing Port (UFP) and Dual Role Port (DRP), where DFP is as Host (Source when charging) role, UFP is as Device (Sink when charging) role, and DRP can be both Host (Source when charging) or Device (Sink when charging). Therefore, in the application of charging, a typical DFP can be, for example, a source adapter, because it is always the one that provides power; a typical UFP can be, for example, a flash drive, a portable drive or a mouse, because they are always the one that receives power; a typical DRP can be, for example, a mobile power bank, because it can be the one that provides power (itself when charging) or the one that receives power (charges another device). Some mobile devices, such as laptops or mobile phones, can also be DRP.
[0004] In the context of charging, when a DFP is connected with a UFP, it is clear that the DFP will act as the Source to supply power to the UFP as the Sink. When both connected devices are DFPs or UFPs, the connection between the devices cannot be established. When a DRP is connected with a DFP, the DFP will act as the Source to supply power to the DRP as the Sink. When a DRP is connected with a UFP, the DRP will act as the Source to supply power to the UFP as the Sink. When both connected devices are DRPs, according to the definition of the USB Type-C Specification Version 1.0, the two devices will switch between Host and Device. The time point of switching and the role assignment are like tossing a coin, and only when the connection is successfully established, the relationship between the two ends is determined. This behavior can cause great confusion to users. For example, when a mobile phone and a power bank, both of which are Type-C DRPs, are connected, the power bank may help the mobile phone charge, or the mobile phone may help the power bank charge. However, it is not reasonable for the mobile phone to help the power bank charge.
[0005] To solve the problem of role assignment not meeting the use context, the USB Type-C Specification Version 1.1 introduces two types of DRPs, Try.SRC and Try.SNK. Specifically, a Try.SRC type of DRP will try to switch itself to Source even if it is initially determined to be Sink, and see if the opposite end will comply and switch from Source to Sink. A Try.SNK DRP will try to switch itself to Sink even if it is initially determined to be Source, and see if the opposite end will comply and switch from Sink to Source. The mechanism of Try.SRC or Try.SNK to try to switch roles can help ensure that the role played by the DRP is reasonable. In general, since power banks and laptops are often used to charge mobile phones, power banks and laptops are often set as Try.SRC type of DRP, and mobile phones are usually set as Try.SNK DRP.
[0006] Certain DRP devices of Try.SRC type, such as notebook computers, are configured to enter a power saving mode before being shipped. In the power saving mode, the battery of the DRP device does not output voltage or current to ensure that the DRP device has enough power to boot up when received by a consumer. When a first electronic device (e.g., a notebook computer) in the power saving mode is connected to a second electronic device via a USB Type-C connection and initiates a boot-up procedure, the first electronic device enters the Try.SRC state and triggers the battery to exit the power saving mode, which can take a certain amount of time. Since the first electronic device attempts to be a Source in the Try.SRC state, if the battery of the first electronic device has not exited the power saving mode and thus has not restored its power supply capability, the ongoing boot-up procedure of the first electronic device can be terminated and the first electronic device can unexpectedly shut down.
[0007] Therefore, there is a need for an electronic device and a method thereof supporting the USB Type-C specification and the DRP to avoid the above-mentioned problem that can occur in the Try.SRC state of the DRP device. SUMMARY
[0008] The present disclosure provides an electronic device and a method thereof supporting the USB Type-C specification and the DRP, which can avoid the problem that can occur in the Try.SRC state by ensuring that the battery of the electronic device has a power supply capability before entering the Try.SRC state.
[0009] An embodiment of the present disclosure provides an electronic device supporting Type-C connection, comprising: a dual role port (DRP); and a controller coupled to the DRP and configured to: detect whether the DRP is connected to a counterpart device; in response to detecting that the DRP is connected to the counterpart device, detect whether the DRP is connected to a pull-up resistor on the counterpart device; in response to detecting that the DRP is connected to the pull-up resistor on the counterpart device, determine whether the electronic device has a power supply capability; and in response to determining that the electronic device has the power supply capability, query the counterpart device whether the counterpart device supports a sink role.
[0010] In some embodiments of the above electronic device, the electronic device further comprises a power module, and wherein determining whether the electronic device has the power supply capability comprises: querying the power module whether the power module has a qualified output voltage; in response to the power module responding that the power module does not have the qualified output voltage, querying the power module whether a battery status of the power module is normal; and in response to the power module responding that the battery status is normal, causing the power module to open a power gating.
[0011] An embodiment of the present invention discloses a method for supporting Type-C connections, comprising: detecting whether a DRP of an electronic device is connected to a peer device; in response to detecting that the dual-role port is connected to the peer device, detecting whether the dual-role port is connected to a pull-up resistor on the peer device; in response to detecting that the dual-role port is connected to the pull-up resistor on the peer device, confirming whether the electronic device has power supply capability; and after confirming that the electronic device has power supply capability, inquiring the peer device whether it supports the Sink role.
[0012] In certain embodiments of the above method, confirming whether the electronic device has power supply capability includes: inquiring whether the power module has a qualified output voltage; if the power module responds that the output voltage is not qualified, inquiring whether the battery status of the power module is normal; if the power module responds that the battery status is normal, turning on power gating. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] The present disclosure will be better understood from the following description of exemplary embodiments with accompanying drawings. In addition, it should be understood that in the flowcharts of the present disclosure, the execution order of each block may be changed, and / or certain blocks may be changed, deleted, or combined.
[0014] Figure 1 FIG. 1 is a hardware architecture diagram of a first electronic device 100 supporting Type-C DRP according to an embodiment of the present invention.
[0015] Figure 2 FIG. 1 is a schematic diagram illustrating a state in which the first electronic device 100 is successfully connected to the UFP device 200 at the other end according to an embodiment of the present invention.
[0016] Figure 3 FIG. 1 is a schematic diagram illustrating a state in which the first electronic device 100 is successfully connected to the DFP device 300 at the other end according to an embodiment of the present invention.
[0017] Figure 4 FIG. 1 is a schematic diagram illustrating a state in which the first electronic device 100 is successfully connected to the second electronic device 400 at the other end according to an embodiment of the present invention.
[0018] Figure 5 According to the embodiment of the present invention, Figures 1-4 The process 500 starts from the first electronic device 100 connecting to the peer device and ends with the Source / Sink role allocation of both ends, which symbolizes the various states that the first electronic device 100 needs to go through and the conditions that need to be met for transitions between the various states.
[0019] Figure 6 According to the embodiment of the present invention, Figure 5FIG. 6 is a flowchart of a method 600 required to be performed by the power module to confirm that the power module has power supply capability.
[0020] wherein:
[0021] 100: first electronic device;
[0022] 101: controller;
[0023] 102: power module;
[0024] 103: USB Type-C port;
[0025] 104, 105: switch;
[0026] 106, 107: pull-up resistor;
[0027] 108, 109: pull-down resistor;
[0028] 200: UFP device;
[0029] 201: controller;
[0030] 202: power module;
[0031] 208: pull-down resistor;
[0032] 300: DFP device;
[0033] 301: controller;
[0034] 302: power module;
[0035] 306: pull-up resistor;
[0036] 400: second electronic device;
[0037] 401: controller;
[0038] 402: power module;
[0039] 404: switch;
[0040] 406: pull-up resistor;
[0041] 408: pull-down resistor;
[0042] 500: flow;
[0043] 501-506: state;
[0044] C511-C515: condition;
[0045] 600: flowchart;
[0046] 601-605: step. DETAILED DESCRIPTION
[0047] Figure 1 Figure 1 illustrates a hardware architecture diagram of a first electronic device 100 supporting Type-C DRP according to an embodiment of the present application. As shown in Figure 1, the first electronic device 100 includes a controller 101, a power module 102, a USB Type-C port 103, a switch 104, a switch 105, a pull-up resistor 106, a pull-up resistor 107, a pull-down resistor 108, and a pull-down resistor 109. Figure 1
[0048] According to an embodiment of the present application, the first electronic device 100 can be, for example, a notebook computer configured as a DRP of Try.SRC type. The controller 101 can be any device or combination thereof for performing operations, judgments, and issuing instructions to other electronic components, such as a central processing unit (CPU), a microprocessor, a controller, a microcontroller, or a state machine, without being limited thereto; the power module 102 can include one or more batteries and a power management IC (PMIC), wherein the battery can be a rechargeable and dischargeable storage battery, such as a lithium-ion secondary battery, a lithium-ion polymer secondary battery, a nickel-hydrogen rechargeable battery, or the like.
[0049] The controller 101 is coupled to the power module 102, so that the power module 102 can control its charging and discharging according to the instructions from the controller 101. Specifically, according to the instructions from the controller 101, the power module 102 can accumulate the power provided by an external power source or a counterpart device via the VBUS line as shown in Figure 1 into the battery of the power module 102, or output the power accumulated in the battery to the counterpart device. In addition, the controller 101 can issue instructions to the power module 102 to inquire whether the power module 102 currently has power supply capability. Figure 1 On the Type-C cable and its corresponding USB Type-C port 103, two configuration channels (CCs) for detecting the connection state of the counterpart device are included, as shown by CC1 and CC2 in Figure 1. The power module 102 can be coupled to CC1 and CC2, respectively, so that the controller 101 can detect the connection state of the counterpart device by the current on the CC1 or CC2 line. Between the power module 102 and CC1 / CC2, there are pull-up resistors 106 and 107 with resistance values Rp, respectively. On the other hand, CC1 and CC2 can be coupled to the ground potential, as shown in Figure 1.
[0050] Figure 1 Figure 1 Between the ground potential GND and CC1 / CC2, there are pull-down resistors 108 and 109 with resistance values Rd, respectively.
[0051] Between the pull-up resistor 106 and the pull-down resistor 108 on CC1, there is a switch 104 for connecting or disconnecting the path from CC1 coupled to the power module 102 through the pull-up resistor 106 and from CC1 coupled to the ground potential GND through the pull-down resistor 108. The controller 101 is coupled to the switch 104 to drive the switch 104 to connect or disconnect the path between the pull-up resistor 106 or the pull-down resistor 108 and CC1. Similarly, between the pull-up resistor 107 and the pull-down resistor 109 on CC2, there is a switch 105 for connecting or disconnecting the path from CC2 coupled to the power module 102 through the pull-up resistor 107 and from CC2 coupled to the ground potential GND through the pull-down resistor 109. The controller 101 is coupled to the switch 105 to drive the switch 105 to connect or disconnect the path between the pull-up resistor 107 or the pull-down resistor 109 and CC2.
[0052] When the first electronic device 100 is connected to the opposite device through the Type-C cable, the controller 101 can detect through CC1 / CC2 whether the opposite device connects to CC1 / CC2 through the pull-up resistor or the pull-down resistor, thereby determining the connection state between the first electronic device 100 and the opposite device and the roles of each other. Then, the controller 101 determines whether to drive the power module 102 to output the power accumulated in the battery to the opposite device according to the connection state between the first electronic device 100 and the opposite device and the roles of each other detected from CC1 / CC2.
[0053] In order to determine the appropriate role allocation between the devices, the controller 101 drives the switch 104 (the switch 105) to switch between being connected to the pull-up resistor 106 (the pull-up resistor 107) or being connected to the pull-down resistor 108 (the pull-down resistor 109) until the connection is successfully established. The connection is successfully established on the premise that there is a current that can pass through the pull-up resistor of one of the devices, through one of CC1 or CC2, and finally through the pull-down resistor of the other device to the ground.
[0054] Figure 2 The schematic diagram when the first electronic device 100 is successfully connected to the opposite UFP device 200 is shown according to the embodiment of the present application. As shown in FIG. 2, the first electronic device 100 is connected to the opposite UFP device 200 through the Type-C cable, and the controller 101 of the first electronic device 100 is connected to the controller 201 of the opposite UFP device 200 through the CC1 / CC2. Figure 2As shown, the UFP device 200 (such as a flash drive, a mobile hard drive, or a mouse) connected to the first electronic device 100 only provides a pull-down resistor 208, but no pull-up resistor. The controller 101 can drive the switch 104 to switch between connecting to the pull-up resistor 106 or connecting to the pull-down resistor 108. When the switch 104 is switched to connect to the pull-up resistor 106, current will flow from the power module 102 of the first electronic device 100, through the pull-up resistor 106 and CC1, to the pull-down resistor 208 of the UFP device 200, and finally to the ground. Therefore, the controller 101 can detect the pull-down resistor 208 of the other end through the current on CC1, determine that the other end is a device acting as a sink, and therefore drive the power module 102 to supply power to the power module 202 of the UFP device 200 through VBUS.
[0055] In some embodiments, the power module 102 can output power to the power module 202 by turning on a Metal-Oxide-Semiconductor Field-Effect Transistor (MOSFET) switch on VBUS. Therefore, before the controller 101 detects the pull-down resistor 208 on CC1 (and the controller 201 detects the pull-up resistor 106 on CC1), the MOSFET switch on VBUS will not be turned on, and the power module 102 will not supply power to the power module 202 via VBUS.
[0056] Figure 3 FIG. 1 is a schematic diagram illustrating a state in which the first electronic device 100 is successfully connected to the DFP device 300 at the other end according to an embodiment of the present invention. Figure 3 As shown, the DFP device 300 (e.g., a power adapter) connected to the first electronic device 100 only provides a pull-up resistor 306, without a pull-down resistor. The controller 101 can control the switch 104 to switch between connecting to the pull-up resistor 106 or the pull-down resistor 108. When the switch 104 is connected to the pull-down resistor 108, current flows from the power module 302 of the DFP device 300, through the pull-up resistor 306 and CC1, to the pull-down resistor 108 of the first electronic device 100, and finally to ground. Therefore, the controller 101 can detect the pull-up resistor 306 on the other end through the current on CC1 and determine that the other end is acting as a source. The controller 301 can also detect the pull-down resistor 108 on CC1 and determine that it is acting as a source. Therefore, the controller 301 controls the power module 302 to supply power to the power module 102 of the first electronic device 100 via VBUS.
[0057] In some embodiments, the power module 302 can output power to the power module 102 by turning on the MOSFET switch on VBUS. Therefore, before the controller 301 detects the pull-down resistor 108 on CC1 (and the controller 101 detects the pull-up resistor 306 on CC1), the MOSFET switch on VBUS will not be turned on, and the power module 302 will not supply power to the power module 102 via VBUS.
[0058] Figure 4 FIG. 4 is a schematic diagram illustrating a state in which the first electronic device 100 is successfully connected to the second electronic device 400 at the other end according to an embodiment of the present invention. Figure 4 As shown, the second electronic device 400 connected to the first electronic device 100 also includes a DRP device including a switch 404, a pull-up resistor 406, and a pull-down resistor 408. Therefore, both the first electronic device 100 and the second electronic device 400 will attempt to switch between the pull-up resistor and the pull-down resistor until a connection is successfully established.
[0059] In an embodiment of the present invention, the first electronic device 100 is assumed to be relatively inclined to act as a Source, and is therefore set to a Try.SRC type DRP. As a Try.SRC type DRP, even if at the beginning, the switch 104 randomly chooses to connect the configuration channel CC1 to the pull-down resistor 108, and the switch 404 randomly chooses to connect the configuration channel CC1 to the pull-up resistor 406, in this case where the two ends appear to be paired, the first electronic device 100 will still try to switch itself to the Source to see whether the second electronic device 400 at the other end will switch from Source to Sink accordingly. When the first electronic device 100 becomes the Source as expected, and the second electronic device 400 becomes the Sink, as shown in FIG. Figure 4 As shown, the switch 104 at this time selects to connect the configuration channel CC1 to the pull-up resistor 106, while the switch 404 selects to connect the configuration channel CC1 to the pull-down resistor 408. And, similar to Figure 2 and Figure 3 In the illustrated embodiment, current flows from the power module 102 of the first electronic device 100, through the pull-up resistor 106 and CC1, to the pull-down resistor 408 of the second electronic device 400, and finally to ground. Based on the current flowing through CC1, the controller 101 detects the presence of the pull-down resistor 408, while the controller 401 detects the presence of the pull-up resistor 106. Consequently, the controller 101 determines that the first electronic device 100 and the second electronic device 400 are acting as the source and sink, respectively. Therefore, the battery module 102 supplies power to the power module 402 via VBUS.
[0060] In some embodiments, the power module 102 can output power to the power module 402 by turning on the MOSFET switch on VBUS. Therefore, before the controller 101 detects the pull-down resistor 408 on CC1 (and the controller 401 detects the pull-up resistor 106 on CC1), the MOSFET switch on VBUS will not be turned on, and the power module 102 will not supply power to the power module 402 via VBUS.
[0061] about Figure 2 、 Figure 3 and Figure 4 It should be noted that since the Type-C connection allows for both forward and reverse insertion, CC1 in these figures can be replaced with CC2. Accordingly, switch 104, pull-up resistor 106, and pull-down resistor 108 can be replaced with switch 105, pull-up resistor 107, and pull-down resistor 109, respectively.
[0062] Figure 5 The process 500 is illustrated according to an embodiment of the present invention, starting from the first electronic device 100 connecting to the peer device in Figures 1-4, to the completion of determining the Source / Sink role assignment at both ends, representing the various states that the first electronic device 100 needs to go through and the conditions that need to be met for transitions between the various states. Figure 5 As shown, process 500 includes states 501-506, wherein the condition to be met for state 501 to transition to state 502 is C511, the condition to be met for state 502 to transition to state 503 is C512, the condition to be met for state 503 to transition to state 504 is C513, the condition to be met for state 503 to transition to state 505 is C514, and the condition to be met for state 505 to transition to state 506 is C515.
[0063] The following is matched Figure 5 , which lists the description of conditions C511-C515 in process 500.
[0064]
[0065]
[0066] At Figure 5 In the illustrated embodiment, the first electronic device 100 is in state 501 when it is just connected to the peer device. In state 501, namely Unattached.SNK, the first electronic device 100 is waiting to detect the presence of the peer Source. In this state, CC1 and CC2 must each be grounded through a pull-down resistor. Specifically, Figure 1Switch 104 in FIG. 1A needs to be selected to connect to pull-down resistor 108, and switch 105 needs to be selected to connect to pull-down resistor 109. In response to C511 being achieved, i.e., when controller 101 detects the pull-up resistor of the opposite device from CC1 or CC2, it indicates the existence of the opposite Source, and then it is switched to state 502.
[0067] In state 502, AttachWait.SNK, controller 101 has detected the pull-up resistor of the opposite device, and is waiting for power supply from the opposite device on VBUS. In this state, CC1 and CC2 still need to be grounded through pull-down resistors respectively. Specifically, Figure 1 Switch 104 in FIG. 1A still needs to be selected to connect to pull-down resistor 108, and switch 105 still needs to be selected to connect to pull-down resistor 109. In response to C512 being achieved, i.e., controller 101 has detected the pull-up resistor of the opposite device from CC1 or CC2 for a first time interval (e.g., 100-200 milliseconds, which is not limited in the present application), and has detected the power supply from the opposite device on VBUS, and has also confirmed that power module 102 has the power supply capability, then it is switched to state 503.
[0068] In state 503, Try.SRC, controller 101 is inquiring whether the opposite device supports Sink role. In this state, Figure 1 Switch 104 in FIG. 1A needs to be switched to pull-up resistor 106, and switch 105 needs to be switched to pull-up resistor 107. At the same time, the voltage on VBUS is adjusted to 0V, i.e., the first electronic device 100 and the opposite device do not supply power to each other. In response to C513 being achieved, i.e., controller 101 detects the pull-down resistor of the opposite device from CC1 or CC2, then it is switched to state 504. Otherwise, in response to C514 being achieved, i.e., controller 101 has not detected the pull-down resistor of the opposite device for a second time interval (e.g., 75-150 milliseconds, which is not limited in the present application), then it is switched to state 505.
[0069] In state 504, Attached.SRC, the first electronic device 100 is operating as Source role. In this state, Figure 1 Switch 104 in FIG. 1A is selected to connect to pull-up resistor 106, and power module 102 supplies power to the opposite device.
[0070] In state 505, TryWait.SNK, the first electronic device 100 cannot be Source, and is waiting to be Sink. In this state, CC1 and CC2 need to be grounded through pull-down resistors respectively. Specifically, Figure 1The switch 104 in the C515 needs to be selected to connect to the pull-down resistor 108, and the switch 105 needs to be selected to connect to the pull-down resistor 109. In addition, the first electronic device 100 and the peer device do not supply power to each other. In response to the C515 being achieved, that is, the controller 101 has continuously detected the pull-up resistor of the peer device from the CC1 or CC2 and detected the power supply from the peer from the VBUS for a first time interval (for example, 100-200 milliseconds, which is not limited by the present application), the state 506 is switched to.
[0071] In the state 506, Attached.SNK, the first electronic device 100 is operating as a Sink role. In this state, the power module 102 receives power supply from the peer device, and Figure 1 The switch 104 in the C515 needs to be selected to connect to the pull-down resistor 108, and the switch 105 needs to be selected to connect to the pull-down resistor 109, so that the CC1 and the CC2 are each grounded through the pull-down resistor.
[0072] Figure 6 The method 600 of confirming that the power module has power supply capability required in the C512 is shown according to an embodiment of the present application. Figure 5 The method 600 of confirming that the power module has power supply capability required in the C512 is shown according to an embodiment of the present application. Figure 6 As shown, the method 600 of confirming that the power module has power supply capability includes steps 601-605.
[0073] In step 601, the controller 101 inquires the power module 102 to detect whether the power module 102 has a qualified output voltage at present. If yes (that is, there is a qualified output voltage), step 602 is entered; if no (that is, there is no qualified output voltage), step 603 is entered.
[0074] In step 602, the power module 102 returns to the controller 101 that the power supply capability is normal, so that the controller 101 knows that one of the conditions in the C512 has been achieved.
[0075] In step 603, the controller 101 detects whether the battery state is normal through the power module 102. If yes (that is, the power state is normal), step 604 is entered; if no (that is, the power state is abnormal), step 605 is entered.
[0076] In step 604, the controller 101 drives the power module 102 to open the power gating, so that the power module 102 has a qualified output voltage.
[0077] At step 605, the power module 102 returns the battery status abnormality to the controller 101, and the first electronic device 100 can then send a warning corresponding to the battery status abnormality to the user (for example, the battery status indicator light flashes or is bright red, which is not limited by the present application) to remind the user to eliminate the hardware problem first.
[0078] According to the above description, the present application ensures that the battery of the electronic device has power supply capability before entering the Try.SRC state, thereby avoiding problems that can be caused by insufficient power supply capability of the power module in the Try.SRC state.
[0079] In the present specification and the sequence numbers in the patent application range, such as "first", "second", and the like, are only for the convenience of description, and do not have the order of precedence between each other.
[0080] The above paragraphs are described using multiple levels. Obviously, the teachings herein can be implemented in various ways, and any specific architecture or function disclosed in the examples is only a representative case. According to the teachings herein, any person of ordinary skill in the art should understand that each level disclosed herein can be implemented independently or two or more levels can be combined.
[0081] Although the present disclosure has been disclosed as above with examples, it is not intended to limit the present disclosure, and any person of ordinary skill in the art can make some changes and modifications without departing from the spirit and scope of the present disclosure, therefore the protection scope of the invention shall be subject to the definition of the claims.
Claims
1.A Type-C connection supported electronic device, comprising: a dual role port; a power module; a battery; and a controller coupled to the dual role port and configured to: detect whether the dual role port is connected to a counterpart device; in response to detecting that the dual role port is connected to the counterpart device, detect whether the dual role port is connected to a pull-up resistor on the counterpart device; in response to detecting that the dual role port is connected to the pull-up resistor on the counterpart device, determine whether the electronic device has power supply capability; wherein the determination of whether the electronic device has power supply capability comprises: detecting whether the power module has qualified output voltage; if it is detected that the power module does not have qualified output voltage, detecting whether the battery status is normal through the power module; if the battery status is normal, driving the power module to open a power gate; after determining that the electronic device has power supply capability, inquiring whether the counterpart device supports becoming a power receiving role; wherein the electronic device is a notebook computer. 2.A Type-C connection supported method applied to an electronic device, the electronic device comprising a dual role port, a power module and a battery, the method comprising: detecting whether the dual role port of the electronic device is connected to a counterpart device; in response to detecting that the dual role port is connected to the counterpart device, detecting whether the dual role port is connected to a pull-up resistor on the counterpart device; in response to detecting that the dual role port is connected to the pull-up resistor on the counterpart device, determining whether the electronic device has power supply capability; wherein the determination of whether the electronic device has power supply capability comprises: detecting whether the power module has qualified output voltage; if it is detected that the power module does not have qualified output voltage, detecting whether the battery status is normal through the power module; if the battery status is normal, driving the power module to open a power gate; after determining that the electronic device has power supply capability, inquiring whether the counterpart device supports becoming a power receiving role; wherein the electronic device is a notebook computer.
Citation Information
Patent Citations
Controller, control method, and control program
CN110865702A