Patent ID: 11074212

Abstract:
A method for controlling a Type C USB interface includes disconnecting a shielding housing of a Type C USB interface (J1) from the ground of an electronic device, obtaining a level (V12) of the shielding housing, determining, based on the obtained level (V12), whether an external device is plugged into or unplugged from the Type C USB interface (J1); outputting a signal to a CC pin of the Type C USB interface (J1) when it is determined that the external device is plugged into the Type C USB interface (J1) of the electronic device; and stopping outputting the signal to the CC pin of the Type C USB interface (J1) when it is determined that the an external device is unplugged from the Type C USB interface (J1) of the electronic device or that no the external device is connected to the Type C USB interface (J1).