Communication control method and first electronic equipment

By applying different voltage signals to the Type-C interface, the electromigration problem of the CC pin is solved, improving the reliability and compatibility of electronic devices and ensuring normal communication and charging of devices in different scenarios.

CN119597133APending Publication Date: 2025-03-11VIVO MOBILE COMM CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411717362.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-27
Publication Date
2025-03-11

AI Technical Summary

Technical Problem

The CC pin of the USB Type-C interface maintains a high voltage for an extended period in standby mode, which can lead to electromigration problems and cause device failure.

Method used

By controlling the processing chip to apply different voltage signals, including constant voltage signals and rectangular wave signals, to the second end of the pull-up resistor, the voltage of the first pin of the Type-C interface is reduced, thus slowing down the electromigration speed.

Benefits of technology

It improves the electromigration problem of the Type-C interface, enhances the reliability and compatibility of electronic devices, and ensures normal communication and charging of devices in different scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119597133A_ABST
    Figure CN119597133A_ABST
Patent Text Reader

Abstract

The invention discloses a communication control method and first electronic equipment, and belongs to the technical field of communication. The communication control method comprises the steps that the control processing chip applies a first voltage signal to the second end of the pull-up resistor, the first voltage signal is a constant voltage signal with the voltage value being a first voltage value, or the first voltage signal is a rectangular wave signal with the voltage value being a second voltage value and a third voltage value, and the second voltage value is smaller than the third voltage value; under the condition that the first electronic equipment is connected with second electronic equipment through the Type-C interface, the control processing chip applies a second voltage signal to the second end of the pull-up resistor; wherein the second voltage signal is a constant voltage signal with the voltage value being a fourth voltage value, the fourth voltage value is larger than the first voltage value, and the fourth voltage value is larger than or equal to the third voltage value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of communication technology, and specifically relates to a communication control method and a first electronic device. Background Art

[0002] Universal Serial Bus (USB) Type-C, as a new generation of universal serial bus hardware interface, is widely used in mobile phones, tablet computers, laptops and other devices.

[0003] In addition to the symmetrical physical structure of USB Type-C, the roles of devices at both ends of the connection are interchangeable, and the role communication is divided into two aspects: data and power.

[0004] Among them, when the power supply device is in standby mode, it will drive the Configuration Channel Pin (CC Pin) in Type-C to always maintain a state of 1.7V~5.5V. Maintaining this voltage for a long time will cause electromigration problems in the CC Pin, and eventually cause failure of the source device. Summary of the invention

[0005] The purpose of the embodiments of the present application is to provide a communication control method and a first electronic device, which can improve the problem of electromigration of CC Pin.

[0006] In a first aspect, an embodiment of the present application provides a communication control method for a first electronic device, the first electronic device comprising a pull-up resistor, a Type-C interface and a processing chip, the first end of the pull-up resistor being connected to the first pin of the Type-C interface, the second end of the pull-up resistor being connected to the processing chip, the communication control method comprising: controlling the processing chip to apply a first voltage signal to the second end of the pull-up resistor, the first voltage signal being a constant voltage signal having a voltage value of the first voltage value, or the first voltage signal being a rectangular wave signal having voltage values ​​of a second voltage value and a third voltage value, the second voltage value being less than the third voltage value; when the first electronic device is connected to the second electronic device via the Type-C interface, controlling the processing chip to apply a second voltage signal to the second end of the pull-up resistor; wherein the second voltage signal is a constant voltage signal having a voltage value of a fourth voltage value, the fourth voltage value being greater than the first voltage value, and the fourth voltage value being greater than or equal to the third voltage value.

[0007] In a second aspect, an embodiment of the present application provides a first electronic device, comprising: a Type-C interface; a pull-up resistor, a first end of the pull-up resistor being connected to a first pin of the Type-C interface, and a processing chip being connected to a second end of the pull-up resistor, for applying a first voltage signal to the second end of the pull-up resistor, wherein the first voltage signal is a constant voltage signal having a voltage value of the first voltage value, or the first voltage signal is a rectangular wave signal having voltage values ​​of the second voltage value and the third voltage value, and the second voltage value is less than the third voltage value; and when the first electronic device is connected to the second electronic device via the Type-C interface, applying a second voltage signal to the second end of the pull-up resistor; wherein the second voltage signal is a constant voltage signal having a voltage value of a fourth voltage value, the fourth voltage value is greater than the first voltage value, and the fourth voltage value is greater than or equal to the third voltage value.

[0008] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the method of the first aspect are implemented.

[0009] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method of the first aspect are implemented.

[0010] In a fifth aspect, an embodiment of the present application provides a chip, the chip including a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the method of the first aspect.

[0011] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method of the first aspect.

[0012] In an embodiment of the present application, a communication control method is proposed. By running the above-mentioned communication control method, the processing chip is controlled to apply a first voltage signal to the second end of the pull-up resistor. Before the first electronic device is connected to the second electronic device through the Type-C interface, the voltage on the first pin of the Type-C interface can be maintained at a low state. When the voltage on the first pin of the Type-C interface is maintained at a low state, the electromigration speed can be reduced, the electromigration problem existing on the first pin can be improved, and the reliability of the first electronic device can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 It is a schematic diagram of the connection between a source device and a sink device provided in some embodiments of the present application;

[0014] Figure 2It is a working principle diagram of a source end device and a sink end device provided in some embodiments of the present application;

[0015] Figure 3 is a flowchart of a communication control method provided by some embodiments of the present application;

[0016] Figure 4 is a schematic diagram of connection between a first electronic device and a second electronic device provided in some embodiments of the present application;

[0017] Figure 5 is one of the schematic diagrams of the first voltage signal provided in some embodiments of the present application;

[0018] Figure 6 This is a second schematic diagram of a first voltage signal provided in some embodiments of the present application;

[0019] Figure 7 is a topological schematic diagram of a first electronic device provided in some embodiments of the present application;

[0020] Figure 8 is a schematic block diagram of an electronic device in an embodiment of the present application;

[0021] Fig. 9 It is a schematic diagram of the hardware structure of the electronic device in the embodiment of the present application.

[0022] Attached Figure 1 , Figure 2 , Figure 4 and Figure 7 Markings:

[0023] 100 source end device, 102 source end protocol integrated chip, 1022 pull-up resistor, 1024 first logic and CC detection chip, 1026 first communication chip, K first switch, 200 sink end device, 202 sink end protocol integrated chip, 2022 pull-down resistor, 2024 second logic and CC detection chip, 2026 second communication chip, Vbus power supply end, 402 Type-C interface, 700 first electronic device, 702 processing chip. DETAILED DESCRIPTION

[0024] The embodiments of the present application will be described in detail below. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and should not be construed as limitations on the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0025] The term "first" or "second" in the specification and claims of this application may include one or more of the features explicitly or implicitly. In the description of this application, unless otherwise specified, "plurality" means two or more. In addition, "and / or" in the specification and claims means at least one of the connected objects, and the character " / " generally means that the objects connected before and after are in an "or" relationship.

[0026] In the description of this application, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.

[0027] The following describes the role confirmation in the Type-C interface.

[0028] like Figure 1 and Figure 2 As shown, the source device 100, that is, the device end providing power, includes a source end protocol integrated chip 102 and a first switch K, and the sink device 200, that is, the device end consuming power or the device being charged includes a sink end protocol integrated chip 202, wherein the source device 100 and the sink device 200 are connected via a Type-C interface.

[0029] Specifically, the source-end protocol integrated chip 102 integrates a pull-up resistor 1022, a first logic and CC detection chip 1024, and a first communication chip 1026. The Vbus terminal of the source-end protocol integrated chip 102 outputs on or off to drive the first switch K to be turned on and off. The sink-end protocol integrated chip 202 integrates a pull-down resistor 2022, a second logic and CC detection chip 2024, and a second communication chip 2026.

[0030] Among them, the first configuration channel pin and the second configuration channel pin of the source device 100 are pulled high by the pull-up resistor 1022. The monitored first configuration channel pin or the second configuration channel pin is always at a high level when nothing is connected. Once the sink device 200 is connected, the voltage of the first configuration channel pin or the second configuration channel pin is pulled down by the pull-down resistor 2022. Since there is only one configuration channel pin cable in the cable, the source device 100 can distinguish which configuration channel pin is pulled low. The voltage of the first configuration channel pin or the second configuration channel pin of the sink device 200 is also monitored. Once it is found that a configuration channel pin is pulled high, its voltage level allows the sink device 200 to know the current supply capacity of the source device 100.

[0031] Specifically, there are three levels of bus current capability defined. The lowest configuration channel pin voltage (about 0.41V) corresponds to the default USB power specification (500mA for USB 2.0 or 900mA for USB 3.0), and the higher configuration channel pin voltage (about 0.92V) corresponds to a current capability of 1.5A. If the configuration channel pin voltage is about 1.68V, the corresponding maximum current supply capability is 3A.

[0032] Its specific current supply capability is shown in Table 1.

[0033] Table 1

[0034]

[0035] Among them, the electromigration of the configuration channel pins refers to the electrochemical migration between the end pins. Specifically, the metal ions on the end pins migrate to the cathode, reduce and deposit to form dendrites, and grow toward the anode. The electrochemical migration will eventually cause a short-circuit leakage current in the circuit, thereby causing system failure.

[0036] Specifically, the distance between adjacent end pins is close and there is a voltage difference, forming a strong electric field. At the same time, there is an air liquid film on the end pins and the surface of the rubber core. The end pins with higher potential will be electrolyzed by the solution, and the formed ions will migrate to the end pins with lower potential, causing the insulation performance between the conductors to drop rapidly, damaging the conductors, and ultimately causing the equipment to fail.

[0037] The communication control method and the first electronic device provided in the embodiments of the present application are described in detail below through specific embodiments and their application scenarios in combination with the accompanying drawings.

[0038] In some embodiments of the present application, Figure 3 , Figure 4 and Figure 7As shown, a communication control method is proposed for a first electronic device, the first electronic device includes a pull-up resistor 1022, a Type-C interface 402 and a processing chip 702, a first end of the pull-up resistor 1022 is connected to a first pin of the Type-C interface 402, and a second end of the pull-up resistor 1022 is connected to the processing chip 702, and the communication control method includes:

[0039] Step 302, the control processing chip applies a first voltage signal to the second end of the pull-up resistor, the first voltage signal is a constant voltage signal with a voltage value of the first voltage value, or the first voltage signal is a rectangular wave signal with voltage values ​​of a second voltage value and a third voltage value, and the second voltage value is less than the third voltage value.

[0040] Step 304, when the first electronic device is connected to the second electronic device through the Type-C interface, the control processing chip applies a second voltage signal to the second end of the pull-up resistor; wherein the second voltage signal is a constant voltage signal whose voltage value is a fourth voltage value, the fourth voltage value is greater than the first voltage value, and the fourth voltage value is greater than or equal to the third voltage value.

[0041] In some embodiments of the present application, the first electronic device may be a device that provides power, and the second electronic device may be understood as a power-consuming device or a device that is charged.

[0042] In some embodiments of the present application, the constant voltage signal can be understood as that, as time changes, the voltage value of the second voltage signal remains at a fourth voltage value.

[0043] In an embodiment of the present application, a communication control method is proposed. By running the above-mentioned communication control method, the processing chip is controlled to apply a first voltage signal to the second end of the pull-up resistor. Before the first electronic device is connected to the second electronic device through the Type-C interface, the voltage on the first pin of the Type-C interface can be maintained at a low state. When the voltage on the first pin of the Type-C interface is maintained at a low state, the electromigration speed can be reduced, the electromigration problem existing on the first pin can be improved, and the reliability of the first electronic device can be improved.

[0044] In the above embodiment, the first voltage signal is a constant voltage signal with a voltage value of the first voltage value. In this process, the electric field between the first terminal pin and the ground can be reduced, thereby reducing the electromigration speed, delaying the electromigration problem of the first terminal pin, and further reducing the failure rate of the product.

[0045] In the above embodiment, the first voltage signal is a rectangular wave signal having voltage values ​​of the second voltage value and the third voltage value, and the second voltage value is less than the third voltage value. In this process, the DC electric field between the first end pin and the ground is reduced by means of a rectangular wave voltage, thereby reducing the electromigration speed, delaying the electromigration problem of the first end pin, and thereby reducing the failure rate of the product.

[0046] In the above embodiment, when the first electronic device is connected to the second electronic device through the Type-C interface, the second voltage signal is applied to the second end of the pull-up resistor by controlling the processing chip so as to increase the voltage at the first end pin, so that the Type-C interface is compatible with the Type-C specification and achieves compatibility with existing electronic devices.

[0047] Among them, GND represents ground.

[0048] In some embodiments of the present application, a voltage value of a first pin is obtained; when the voltage value of the first pin decreases from a first voltage value or the voltage value of the first pin decreases from a third voltage value, it is determined that the first electronic device is connected to the second electronic device through a Type-C interface.

[0049] In this embodiment, it can be seen from the above that when the first electronic device and the second electronic device are connected via the Type-C interface, the first end pin will be connected to the pull-down resistor, and the second end of the pull-down resistor is grounded. Therefore, when the first electronic device and the second electronic device are connected via the Type-C interface, the voltage value of the first pin will decrease. Therefore, when it is detected that the voltage value of the first pin decreases from the first voltage value or the voltage value of the first pin decreases from the third voltage value, it is considered that the first electronic device and the second electronic device are connected via the Type-C interface. At this time, a second voltage signal is applied to the second end of the pull-up resistor by controlling the processing chip so as to increase the voltage at the first end pin, so that the Type-C interface is compatible with the Type-C specification.

[0050] In this process, the connection between the first electronic device and the second electronic device through the Type-C interface can be detected by detecting the change in the voltage value of the first pin, thereby meeting the control needs in different scenarios.

[0051] In some embodiments of the present application, when the first voltage signal is a constant voltage signal having a voltage value of the first voltage value, the voltage value of the first pin is obtained; when the voltage value of the first pin is less than or equal to a fifth voltage value, it is determined that the first electronic device is connected to the second electronic device through the Type-C interface; wherein the fifth voltage value is less than the first voltage value.

[0052] In this embodiment, the detection of the connection between the first electronic device and the second electronic device through the Type-C interface can also be achieved by detecting the voltage value of the first pin.

[0053] Specifically, when the first voltage signal is a constant voltage signal having a voltage value of the first voltage value, the voltage value of the first pin will remain constant. If the first electronic device is connected to the second electronic device through the Type-C interface, the voltage value of the first pin will decrease. By detecting the voltage value of the first pin, if the voltage value of the first pin is less than or equal to the fifth voltage value, it is considered that the current voltage value of the first pin has decreased, that is, the first pin has been grounded through the pull-down resistor.

[0054] In this process, the connection between the first electronic device and the second electronic device through the Type-C interface can be detected by detecting the voltage value of the first pin, thereby meeting the control needs in different scenarios.

[0055] For example, Figure 5 As shown, taking the first electronic device of 5V3A as an example, the voltage value at the second end of the pull-up voltage is 3.3V, and if the resistance value of the pull-up resistor is 4.7k. Then in the standby state (t0-t1), the pull-up voltage Vp of the first electronic device is 0.6V. Since the second electronic device is not connected, the CC Pin is suspended, and the first logic and CC detection chip of the first electronic device detects that the voltage of the CC Pin is 0.6V, and the CC Pin is also the first end pin.

[0056] The second electronic device access detection process (t1-t2): when the first electronic device and the second electronic device are connected by a wire, the pull-down resistor of the second electronic device is connected to the ground, and the level of the CC Pin will be pulled low. The second logic and CC detection chip of the first electronic device detects that the voltage of the CC Pin is below 0.3V, and then confirms that the second electronic device is connected, and then enters the handshake communication process.

[0057] During the handshake communication process (t2-t3), after the first electronic device detects that the second electronic device is connected, it adjusts the voltage Vp of the second end of the pull-up voltage to 3.3V, and the voltage of the CC Pin is about 1.6V. Subsequently, communication is performed according to the relevant protocol (t3-t4).

[0058] In some embodiments of the present application, when the first voltage signal is a rectangular wave signal having voltage values ​​of a second voltage value and a third voltage value, the voltage value of the first pin is obtained; when the voltage value of the first pin is greater than the second voltage value and less than the third voltage value, it is determined that the first electronic device is connected to the second electronic device through the Type-C interface.

[0059] In this embodiment, when the first voltage signal is a rectangular wave signal having voltage values ​​of the second voltage value and the third voltage value, the voltage input to the second end of the pull-up resistor is at most the third voltage value, and after the first electronic device is connected to the second electronic device through the Type-C interface, the first end pin will be grounded through the pull-down resistor in the second electronic device. At this time, the voltage value of the first pin will decrease and remain between the second voltage value and the third voltage value. Based on this, the voltage value of the first pin can be compared with the second voltage value and the third voltage value, thereby realizing the detection of the connection between the first electronic device and the second electronic device through the Type-C interface. In this process, the control needs in different scenarios are met.

[0060] In some embodiments of the present application, the second voltage value may be 0V, and the third voltage value may be 3.3V.

[0061] For example, Figure 6 As shown, taking the first electronic device of 5V3A as an example, the voltage value at the second end of the pull-up voltage is 3.3V, and the resistance value of the pull-up resistor is 4.7k. Then in the standby stage (t0-t1). The pull-up voltage Vp of the first electronic device is a rectangular wave, with a high level of 3.3V, a low level of 0V, and a duty cycle of less than 50%. Since CCPin is suspended, the voltage of CCPin is consistent with the Vp signal.

[0062] The second electronic device access detection process (t1-t2). When the first electronic device and the second electronic device are connected by wire, the level of CCPin is detected when Vp is at a high level. Since the pull-down resistor of the second electronic device is connected to the ground, the level of CC will be pulled down. The first logic and CC detection chip of the first electronic device detect that the level of CC Pin is around 1.6V, then it is confirmed that the second electronic device is connected, and then the handshake communication process is entered.

[0063] Handshake communication process (t2-t3): After the first electronic device detects that the second electronic device is connected, it adjusts the pull-up voltage Vp to a constant voltage of 3.3 V. Subsequently, communication is performed according to the relevant protocol (t3-t4).

[0064] In the above embodiment, the amplitude of the rectangular wave is consistent with the Type-C specification, and the duty cycle is less than 50%. Through Fourier transform, it can be seen that the DC voltage component of CC will be less than 50% of the amplitude of the rectangular wave.

[0065] In some embodiments of the present application, the fourth voltage value is equal to the third voltage value.

[0066] In this embodiment, since the fourth voltage value is equal to the third voltage value, the communication control method proposed in the present application can be compatible with the second electronic device on the market that complies with the USB-Type C specification.

[0067] In some embodiments of the present application, within one cycle of the rectangular wave signal, the duration that the voltage value of the rectangular wave signal is the third voltage value is a first duration, the duration that the voltage value of the rectangular wave signal is the second voltage value is a second duration, and the ratio of the first duration to the third duration is less than 1 / 2, wherein the third duration is the sum of the first duration and the second duration.

[0068] In this embodiment, the ratio of the first time length to the third time length is limited to be less than 1 / 2, so as to reduce the power consumption of the first electronic device when outputting the first voltage signal.

[0069] In some embodiments of the present application, the ratio of the first duration to the third duration is less than 1 / 3.

[0070] In this embodiment, when the ratio of the first time length to the third time length is less than 1 / 3, the power consumption of the first electronic device when outputting the first voltage signal can be further reduced.

[0071] In some embodiments of the present application, after the control processing chip applies the second voltage signal to the second end of the pull-up resistor, the communication control method further includes: communicating with the second electronic device based on the Type-C interface.

[0072] In this embodiment, communication is performed with the second electronic device based on the Type-C interface so that handshake communication can be performed between the first electronic device and the second electronic device, thereby achieving charging between the two.

[0073] In this embodiment, when the first electronic device and the second electronic device are connected via a Type-C interface, handshake communication can be automatically implemented without the need for the user to manually participate in the handshake communication, thereby improving the communication efficiency between the first electronic device and the second electronic device.

[0074] In some embodiments of the present application, the first electronic device also includes a power supply terminal Vbus, and the first electronic device supplies power to the second electronic device through the power supply terminal Vbus. After the control processing chip outputs a second voltage signal to the second end of the pull-up resistor 1022, the communication control method also includes: when the first signal is detected, cutting off the power supply of the power supply terminal; and controlling the processing chip to apply a first voltage signal to the second end of the pull-up resistor; wherein the first signal is a feedback signal sent to the first electronic device after the second electronic device is charged; or the first signal is a voltage signal on the first pin after the first electronic device is disconnected from the second electronic device.

[0075] In this embodiment, the power supply to the power supply end can be automatically cut off after the second electronic device is charged or the first electronic device is disconnected from the second electronic device.

[0076] In this process, when the charging of the second electronic device is completed but the connection between the first electronic device and the second electronic device is not disconnected, the safety between the first electronic device and the second electronic device can be ensured.

[0077] In addition, when the first electronic device is disconnected from the second electronic device, the power supply to the power supply terminal is cut off so that the power supply terminal is not powered, thereby ensuring the reliability of the first electronic device.

[0078] In some embodiments of the present application, the feedback signal is that the level on the first terminal remains at a high level for 15 milliseconds.

[0079] Exemplarily, the second electronic device actively disconnects the pull-down resistor and disconnects it for more than 15 milliseconds. After the first electronic device detects that the CC high level time is greater than 15 milliseconds, it resets: the power supply of the power supply end is turned off, and the Vp voltage of the first electronic device re-enters the rectangular wave. In this state, if the second electronic device needs to be recharged, it can pull the CC Pin level down to enter the t1-t4 stage.

[0080] In some embodiments of the present application, the first signal is a voltage signal on a first pin after the first electronic device is disconnected from the second electronic device. It is understandable that the voltage on the first pin remains at 3.3V and lasts for 15 milliseconds.

[0081] For example, after the second electronic device is fully charged, the connection between the second electronic device and the first electronic device is disconnected. At this time, the first electronic device detects that the CC level is restored to 3.3V and lasts for more than 15 milliseconds. At this time, the first electronic device is reset.

[0082] The communication control method provided in the embodiment of the present application can be executed by a first electronic device. In the embodiment of the present application, the first electronic device provided in the embodiment of the present application is described by taking the first electronic device executing the communication control method as an example.

[0083] In some embodiments of the present application, Figure 7As shown, a first electronic device 700 is proposed, the first electronic device includes a Type-C interface 402; a pull-up resistor 1022, the first end of the pull-up resistor 1022 is connected to the first pin of the Type-C interface 402; a processing chip 702, connected to the second end of the pull-up resistor 1022, used to apply a first voltage signal to the second end of the pull-up resistor 1022, the first voltage signal is a constant voltage signal with a voltage value of the first voltage value, or the first voltage signal is a rectangular wave signal with voltage values ​​of the second voltage value and the third voltage value, and the second voltage value is less than the third voltage value; and when the first electronic device is connected to the second electronic device through the Type-C interface 402, a second voltage signal is applied to the second end of the pull-up resistor 1022; wherein the second voltage signal is a constant voltage signal with a voltage value of a fourth voltage value, the fourth voltage value is greater than the first voltage value, and the fourth voltage value is greater than or equal to the third voltage value.

[0084] In some embodiments of the present application, the processing chip 702 is also used to: obtain the voltage value of the first pin; and determine that the first electronic device 700 is connected to the second electronic device through the Type-C interface 402 when the voltage value of the first pin decreases from the first voltage value or the voltage value of the first pin decreases from the third voltage value.

[0085] In some embodiments of the present application, when the first voltage signal is a constant voltage signal with a voltage value of the first voltage value, the processing chip 702 is further used to: obtain the voltage value of the first pin; when the voltage value of the first pin is less than or equal to a fifth voltage value, determine that the first electronic device 700 is connected to the second electronic device through the Type-C interface 402; wherein the fifth voltage value is less than the first voltage value.

[0086] In some embodiments of the present application, when the first voltage signal is a rectangular wave signal having voltage values ​​of a second voltage value and a third voltage value, the processing chip 702 is further used to: obtain the voltage value of the first pin; and when the voltage value of the first pin is greater than the second voltage value and less than the third voltage value, determine that the first electronic device 700 is connected to the second electronic device through the Type-C interface 402.

[0087] In some embodiments of the present application, within one cycle of the rectangular wave signal, the duration that the voltage value of the rectangular wave signal is the third voltage value is a first duration, the duration that the voltage value of the rectangular wave signal is the second voltage value is a second duration, and the ratio of the first duration to the third duration is less than 1 / 2, wherein the third duration is the sum of the first duration and the second duration.

[0088] In some embodiments of the present application, after applying the second voltage signal to the second end of the pull-up resistor, the processing chip 702 is further used to: communicate with the second electronic device based on the Type-C interface 402.

[0089] In some embodiments of the present application, the first electronic device also includes a power supply terminal Vbus, and the first electronic device 700 supplies power to the second electronic device through the power supply terminal Vbus. After applying the second voltage signal to the second end of the pull-up resistor 1022, the processing chip 702 is also used to: cut off the power supply of the power supply terminal Vbus when the first signal is detected; and apply the first voltage signal to the second end of the pull-up resistor 1022; wherein the first signal is a feedback signal sent to the first electronic device 700 after the second electronic device is charged; or the first signal is a voltage signal on the first pin after the first electronic device 700 is disconnected from the second electronic device.

[0090] The first electronic device 700 in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0091] The first electronic device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an IOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0092] The first electronic device provided in the embodiment of the present application can achieve Figure 3 The various processes implemented by the communication control method embodiment can achieve the same technical effect. To avoid repetition, they will not be described here.

[0093] like Figure 8 As shown, an embodiment of the present application also provides an electronic device 800, including a processor 802 and a memory 804, wherein the memory 804 stores programs or instructions that can be executed on the processor 802, and when the program or instructions are executed by the processor 802, the various steps of the above-mentioned communication control method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described here.

[0094] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.

[0095] Fig. 9 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0096] like Fig. 9 As shown, the electronic device 900 includes but is not limited to: a radio frequency unit 901, a network module 902, an audio output unit 903, an input unit 904, a sensor 905, a display unit 906, a user input unit 907, an interface unit 908, a memory 909, and a processor 910 and other components.

[0097] Those skilled in the art will appreciate that the electronic device 900 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 910 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig. 9 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0098] In some embodiments of the present application, the first electronic device includes a pull-up resistor, a Type-C interface and a processing chip, the first end of the pull-up resistor is connected to the first pin of the Type-C interface, and the second end of the pull-up resistor is connected to the processing chip, and the processor 910 is used to control the processing chip to apply a first voltage signal to the second end of the pull-up resistor, the first voltage signal is a constant voltage signal with a voltage value of the first voltage value, or the first voltage signal is a rectangular wave signal with voltage values ​​of the second voltage value and the third voltage value, and the second voltage value is less than the third voltage value; when the first electronic device is connected to the second electronic device through the Type-C interface, the processing chip is controlled to apply a second voltage signal to the second end of the pull-up resistor; wherein the second voltage signal is a constant voltage signal with a voltage value of a fourth voltage value, the fourth voltage value is greater than the first voltage value, and the fourth voltage value is greater than or equal to the third voltage value.

[0099] In some embodiments of the present application, the processor 910 is also used to: obtain the voltage value of the first pin; and determine that the first electronic device is connected to the second electronic device through the Type-C interface when the voltage value of the first pin decreases from the first voltage value or the voltage value of the first pin decreases from the third voltage value.

[0100] In some embodiments of the present application, when the first voltage signal is a constant voltage signal having a voltage value of the first voltage value, the processor 910 is further used to: obtain the voltage value of the first pin; and when the voltage value of the first pin is less than or equal to a fifth voltage value, determine that the first electronic device is connected to the second electronic device through the Type-C interface; wherein the fifth voltage value is less than the first voltage value.

[0101] In some embodiments of the present application, when the first voltage signal is a rectangular wave signal having voltage values ​​of a second voltage value and a third voltage value, the voltage value of the first pin is obtained; the processor 910 is also used to: when the voltage value of the first pin is greater than the second voltage value and less than the third voltage value, determine that the first electronic device is connected to the second electronic device through the Type-C interface.

[0102] In some embodiments of the present application, within one cycle of the rectangular wave signal, the duration that the voltage value of the rectangular wave signal is the third voltage value is a first duration, the duration that the voltage value of the rectangular wave signal is the second voltage value is a second duration, and the ratio of the first duration to the third duration is less than 1 / 2, wherein the third duration is the sum of the first duration and the second duration.

[0103] In some embodiments of the present application, after the control processing chip applies the second voltage signal to the second end of the pull-up resistor, the processor 910 is further used to: communicate with the second electronic device based on the Type-C interface.

[0104] In some embodiments of the present application, the Type-C interface also includes a power supply end, and the first electronic device supplies power to the second electronic device through the power supply end. After the control processing chip applies a second voltage signal to the second end of the pull-up resistor, the processor 910 is also used to: cut off the power supply of the power supply end when the first signal is detected; and control the processing chip to apply the first voltage signal to the second end of the pull-up resistor; wherein the first signal is a feedback signal sent to the first electronic device after the second electronic device is charged; or the first signal is a voltage signal on the first pin after the first electronic device is disconnected from the second electronic device.

[0105] It should be understood that in the embodiment of the present application, the input unit 904 may include a graphics processor (Graphics Processing Unit, GPU) 9041 and a microphone 9042, and the graphics processor 9041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 906 may include a display panel 9061, and the display panel 9061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 907 includes a touch panel 9071 and at least one of other input devices 9072. The touch panel 9071 is also called a touch screen. The touch panel 9071 may include two parts: a touch detection device and a touch controller. Other input devices 9072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0106] The memory 909 can be used to store software programs and various data. The memory 909 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 909 may include a volatile memory or a non-volatile memory, or the memory 909 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 909 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0107] The processor 910 may include one or more processing units; optionally, the processor 910 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 910.

[0108] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned communication control method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0109] The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0110] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned communication control method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0111] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0112] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned communication control method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0113] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "including one" do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0114] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the embodiments of the present application are essentially or partly contributed to the prior art can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of each embodiment of the present application.

[0115] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A communication control method, used in a first electronic device, characterized in that: The first electronic device includes a pull-up resistor, a Type-C interface, and a processing chip, wherein a first end of the pull-up resistor is connected to a first pin of the Type-C interface, and a second end of the pull-up resistor is connected to the processing chip, and the communication control method includes: Controlling the processing chip to apply a first voltage signal to the second end of the pull-up resistor, wherein the first voltage signal is a constant voltage signal having a voltage value of the first voltage value, or the first voltage signal is a rectangular wave signal having voltage values ​​of a second voltage value and a third voltage value, and the second voltage value is less than the third voltage value; When the first electronic device is connected to the second electronic device through the Type-C interface, controlling the processing chip to apply a second voltage signal to the second end of the pull-up resistor; The second voltage signal is a constant voltage signal whose voltage value is a fourth voltage value, the fourth voltage value is greater than the first voltage value, and the fourth voltage value is greater than or equal to the third voltage value.

2. The communication control method according to claim 1, characterized in that: Obtaining a voltage value of the first pin; When the voltage value of the first pin decreases from the first voltage value or the voltage value of the first pin decreases from the third voltage value, it is determined that the first electronic device is connected to the second electronic device through the Type-C interface.

3. The communication control method according to claim 1, characterized in that: When the first voltage signal is a constant voltage signal having a voltage value of a first voltage value, obtaining a voltage value of the first pin; When the voltage value of the first pin is less than or equal to the fifth voltage value, determining that the first electronic device is connected to the second electronic device through the Type-C interface; The fifth voltage value is smaller than the first voltage value.

4. The communication control method according to claim 1, characterized in that: When the first voltage signal is a rectangular wave signal having a second voltage value and a third voltage value, obtaining a voltage value of the first pin; When the voltage value of the first pin is greater than the second voltage value and less than the third voltage value, it is determined that the first electronic device is connected to the second electronic device through the Type-C interface.

5. The communication control method according to any one of claims 1 to 4, characterized in that: Within one cycle of the rectangular wave signal, the duration when the voltage value of the rectangular wave signal is the third voltage value is a first duration, the duration when the voltage value of the rectangular wave signal is the second voltage value is a second duration, and the ratio of the first duration to the third duration is less than 1 / 2, wherein the third duration is the sum of the first duration and the second duration.

6. The communication control method according to any one of claims 1 to 4, characterized in that: The first electronic device further includes a power supply terminal, and the first electronic device supplies power to the second electronic device through the power supply terminal. After controlling the processing chip to apply a second voltage signal to the second end of the pull-up resistor, the communication control method further includes: When the first signal is detected, cutting off the power supply of the power supply end; and Controlling the processing chip to apply the first voltage signal to the second end of the pull-up resistor; The first signal is a feedback signal sent to the first electronic device after the second electronic device is charged; or the first signal is a voltage signal on the first pin after the first electronic device is disconnected from the second electronic device.

7. A first electronic device, characterized in that: include: Type-C interface; A pull-up resistor, a first end of the pull-up resistor is connected to the first pin of the Type-C interface; a processing chip connected to the second end of the pull-up resistor, and used for applying a first voltage signal to the second end of the pull-up resistor, wherein the first voltage signal is a constant voltage signal having a voltage value of the first voltage value, or the first voltage signal is a rectangular wave signal having voltage values ​​of a second voltage value and a third voltage value, and the second voltage value is less than the third voltage value; as well as When the first electronic device is connected to the second electronic device through the Type-C interface, applying a second voltage signal to the second end of the pull-up resistor; The second voltage signal is a constant voltage signal whose voltage value is a fourth voltage value, the fourth voltage value is greater than the first voltage value, and the fourth voltage value is greater than or equal to the third voltage value.

8. The first electronic device according to claim 7, characterized in that: The processing chip is also used for: Obtaining a voltage value of the first pin; When the voltage value of the first pin decreases from the first voltage value or the voltage value of the first pin decreases from the third voltage value, it is determined that the first electronic device is connected to the second electronic device through the Type-C interface.

9. The first electronic device according to claim 7, characterized in that: In the case where the first voltage signal is a constant voltage signal whose voltage value is a first voltage value, the processing chip is further used for: Obtaining a voltage value of the first pin; When the voltage value of the first pin is less than or equal to the fifth voltage value, determining that the first electronic device is connected to the second electronic device through the Type-C interface; The fifth voltage value is smaller than the first voltage value.

10. The first electronic device according to claim 7, characterized in that: In the case where the first voltage signal is a rectangular wave signal whose voltage value is a second voltage value and a third voltage value, the processing chip is further used for: Obtaining a voltage value of the first pin; When the voltage value of the first pin is greater than the second voltage value and less than the third voltage value, it is determined that the first electronic device is connected to the second electronic device through the Type-C interface.

11. The first electronic device according to any one of claims 7 to 10, characterized in that: Within one cycle of the rectangular wave signal, the duration when the voltage value of the rectangular wave signal is the third voltage value is a first duration, the duration when the voltage value of the rectangular wave signal is the second voltage value is a second duration, and the ratio of the first duration to the third duration is less than 1 / 2, wherein the third duration is the sum of the first duration and the second duration.

12. The first electronic device according to any one of claims 7 to 10, characterized in that: The first electronic device further includes a power supply terminal, and the first electronic device supplies power to the second electronic device through the power supply terminal. After the second voltage signal is applied to the second end of the pull-up resistor, the processing chip is further used to: When the first signal is detected, cutting off the power supply of the power supply end; and Applying the first voltage signal to the second end of the pull-up resistor; The first signal is a feedback signal sent to the first electronic device after the second electronic device is charged; or the first signal is a voltage signal on the first pin after the first electronic device is disconnected from the second electronic device.

Citation Information

Patent Citations

  • A method for detecting a C-type interface of a universal serial bus and a terminal

    CN109189617A

  • Interface detection module and method, power management chip and electronic equipment

    CN114779915A

  • Access identification method of electronic equipment interface and electronic equipment

    CN116049055A

  • Detection circuit, port module, electronic equipment, detection method and storage medium

    CN118567915A

  • Service Redirect Over USB Type-C

    US20170147526A1