Patent ID: 11947481
Assignee: HONOR DEVICE CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 0:
1. A terminal, comprising a processor, an interface chip, a motion sensor, and a first USB interface, wherein
the processor is separately connected to the motion sensor and the interface chip; the interface chip is separately connected to the processor and a configuration channel (CC) pin in the first USB interface;
the motion sensor is configured to monitor a motion status of the terminal; and
the processor is configured to control, according to the motion status of the terminal that is detected by the motion sensor, the interface chip to configure the CC pin of the first USB interface to be in a low-level mode when it is determined that the motion status of the terminal changes from a moving state to a static state,
wherein the interface chip is further connected to a VBUS pin in the first USB interface, and is configured to obtain a VBUS voltage of the VBUS pin and the processor is further configured to:
obtain the voltage status of the VBUS pin from the interface chip, wherein the voltage status of the VBUS pin is determined by the interface chip according to whether a VBUS voltage of the VBUS pin is lower than a preset threshold; and
control, when it is determined that the terminal is connected to an external device by using the first USB interface and that the VBUS pin is in a first voltage state in which the VBUS voltage is not lower than the preset threshold, the interface chip to configure the CC pin of the first USB interface to be in a high- and low-level alternate mode.