CN108595352B - Protection method and device for mobile terminal - Google Patents

Protection method and device for mobile terminal Download PDF

Info

Publication number
CN108595352B
CN108595352B CN201810458328.6A CN201810458328A CN108595352B CN 108595352 B CN108595352 B CN 108595352B CN 201810458328 A CN201810458328 A CN 201810458328A CN 108595352 B CN108595352 B CN 108595352B
Authority
CN
China
Prior art keywords
mobile terminal
mode
detection module
channel detection
configuration channel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810458328.6A
Other languages
Chinese (zh)
Other versions
CN108595352A (en
Inventor
钟文博
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201810458328.6A priority Critical patent/CN108595352B/en
Publication of CN108595352A publication Critical patent/CN108595352A/en
Application granted granted Critical
Publication of CN108595352B publication Critical patent/CN108595352B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/102Program control for peripheral devices where the programme performs an interfacing function, e.g. device driver

Abstract

The invention provides a method and a device for protecting a mobile terminal. The mobile terminal is provided with a configuration channel detection module, and is characterized in that the configuration channel detection module is in an uplink port mode, and the method comprises the following steps: receiving an operation instruction for switching the mode of the configuration channel detection module; switching the working mode of the configuration channel detection module from the uplink port mode to a dual-role port mode according to the operation instruction; and when the service state of the mobile terminal is detected to meet a preset condition, switching the working mode of the configuration channel detection module from the dual-role port mode to the uplink port mode. In the embodiment of the invention, the mobile terminal is defaulted as the slave equipment, so that the problems that the working mode of the channel detection module is wrongly configured by misjudgment caused by the fact that impurities or liquid enters the USB Type-C interface, and the mobile terminal cannot be charged can be avoided.

Description

Protection method and device for mobile terminal
Technical Field
The present invention relates to the field of mobile terminal technologies, and in particular, to a method and an apparatus for protecting a mobile terminal.
Background
A new generation of USB (Universal Serial Bus) TYPE-C interface has the advantages of supporting forward and reverse insertion, stronger power transmission, faster data transmission speed, slimmer design, and the like, and thus gradually becomes a standard interface of a mobile terminal.
The CC (Configuration Channel) detection module connected with the USB TYPE-C interface supports three modes: DFP (Down-stream Facing Port), the mobile terminal can only be a master device; UFP (Up-streaming facing Port), the mobile terminal can only be a slave device; DRP (Dual Role Port), the mobile terminal can be used as both a master and a slave. In general, a CC detection module inside a mobile terminal is set to a DRP mode by default, and when the mobile terminal is used as a slave device (Sink), the mobile terminal can be normally charged. However, when conductive impurities or liquid enter the usb type-C interface of the mobile terminal, the mobile terminal may be mistakenly determined to be used as a master device (Source), and in such a case, the charger is inserted, and normal charging cannot be performed.
Disclosure of Invention
The embodiment of the invention provides a method and a device for protecting a mobile terminal, which aim to solve the problem that when impurities or liquid enter a USBTYPE-C interface of the mobile terminal, the mobile terminal can be mistakenly judged to be used as a main device (Source) and cannot be normally charged.
In order to solve the above technical problem, an embodiment of the present invention provides a method for protecting a mobile terminal, where the mobile terminal is provided with a configuration channel detection module, and the configuration channel detection module is in an uplink port mode, and the method includes:
receiving an operation instruction for switching the mode of the configuration channel detection module;
switching the working mode of the configuration channel detection module from the uplink port mode to a dual-role port mode according to the operation instruction;
and when the service state of the mobile terminal is detected to meet a preset condition, switching the working mode of the configuration channel detection module from the dual-role port mode to the uplink port mode.
The embodiment of the present invention further provides a protection device for a mobile terminal, where the mobile terminal is provided with a configuration channel detection module, and the device is characterized in that the configuration channel detection module is in an uplink port mode, and the device includes:
an operation instruction receiving module, configured to receive an operation instruction for mode switching of the configuration channel detection module;
the first mode switching module is used for switching the working mode of the configuration channel detection module from the uplink port mode to a dual-role port mode according to the operation instruction;
and the second mode switching module is used for switching the working mode of the configuration channel detection module from the dual-role port mode to the uplink port mode when the service state of the mobile terminal is detected to meet a preset condition.
The embodiment of the present invention further provides a mobile terminal, which includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, and when the computer program is executed by the processor, the steps of the protection method for the mobile terminal are implemented.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the protection method for a mobile terminal are implemented as described above.
In the embodiment of the invention, the mobile terminal is provided with a configuration channel detection module, and the configuration channel detection module is in an uplink port mode. When the mobile terminal receives an operation instruction for switching the mode of the configuration channel detection module, the working mode of the configuration channel detection module is switched from the uplink port mode to the dual-role port mode according to the operation instruction, and at the moment, the mobile terminal can be used as a slave device or a master device, and can be used as the master device for transmitting data to an external device or supplying power to the external device. And when the condition that the state of the mobile terminal meets the preset condition is detected, the working mode of the configuration channel detection module is switched to an uplink port mode from a double-role port mode, namely, the working mode is switched to a slave device, and the mobile terminal can be charged. Because mobile terminal defaults as the slave unit, therefore can avoid impurity or liquid to get into the USB Type-C interface and the mode of misjudgment configuration passageway detection module that leads to, the unable problem of charging of mobile terminal.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
Fig. 1 is a flowchart illustrating steps of a method for protecting a mobile terminal according to a first embodiment of the present invention;
fig. 2 is a hardware block diagram of a configuration channel detection module according to a first embodiment of the present invention;
fig. 3 is a hardware block diagram of an uplink port mode of a configuration channel detection module according to a first embodiment of the present invention;
fig. 4 is a block diagram of a protection device of a mobile terminal according to a second embodiment of the present invention;
fig. 5 is a schematic diagram of a hardware structure of a mobile terminal according to a third embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
Referring to fig. 1, a flowchart illustrating steps of a method for protecting a mobile terminal according to an embodiment of the present invention is shown. The mobile terminal is provided with a configuration channel detection module, and the configuration channel detection module is in an uplink port mode, and the method comprises the following steps:
step 101, receiving an operation instruction for switching the mode of the configuration channel detection module.
In this embodiment, a configuration channel detection module, that is, a CC detection module, is arranged in the mobile terminal and is used to detect USB connection, detect positive and negative insertions, establish and manage connection between USB devices between data and VBUS, and the like. Referring to the hardware block diagram of the configuration channel detection module shown in fig. 2, when an external device is connected to the CC1 and CC2 pins of the mobile terminal, it can be determined whether the mobile terminal is a master device (Source) or a slave device (Sink) according to the voltages of CC1 and CC 2. For example, when detecting that CC1 or CC2 is grounded through the pull-down resistor Rd, the operation mode of the CC detection module is an uplink port (UFP) mode; when the CC1 or the CC2 is detected to be connected with a 5V power supply through the pull-up resistor Rp, the working mode of the CC detection module is a downlink port (DFP) mode. The CC detection module may switch between the DFP mode and the UFP mode every 50ms, i.e. the operation mode of the CC detection module is a Dual Role Port (DRP) mode. The current detection unit in fig. 2 is configured to determine a current output capability of the mobile terminal according to a resistance value of the pull-up resistor Rp; and determining the current output capability of the external equipment according to the resistance value of the pull-down resistor Rd. Optionally, the usb type-C interface of the mobile terminal is connected to an external device, where the external device includes at least one of an earphone, a display, and a usb disk.
When the mobile terminal is initialized, the working mode of the CC detection module is set to the UFP mode, see the hardware block diagram of the uplink port mode of the configuration channel detection module shown in fig. 3, and the mobile terminal is set as a slave device by default, and can receive data, charge, and the like. And the user switches the working mode of the CC detection module according to the requirement, and the mobile terminal receives the operation instruction of mode switching.
Optionally, a mode switching control is arranged on a display interface of the mobile terminal, and an operation instruction for starting the mode switching control is received. Specifically, a mode switching control may be displayed on a screen of the mobile terminal, where an off state of the mode switching control corresponds to the UFP mode, and an on state corresponds to the DRP mode. And the default of the mode switching control is in a closed state, and when the CC detection module needs to be switched in a mode, the mobile terminal receives an operation instruction for starting the mode switching control.
And step 102, switching the working mode of the configuration channel detection module from the uplink port mode to a dual-role port mode according to the operation instruction.
In this embodiment, after receiving an operation instruction for mode switching of the CC detection module, the working mode of the CC detection module is switched from the UFP mode to the DRP mode. Referring to fig. 2, when the CC detection module is in the UFP mode, the switch connects the pull-down resistor and the CC pin together; when the CC detection module is in a DRP mode, the switch is periodically switched between the connection of the pull-down resistor and the CC pin and the connection of the pull-up resistor and the CC pin.
And 103, when the service state of the mobile terminal is detected to meet a preset condition, switching the working mode of the configuration channel detection module from the dual-role port mode to the uplink port mode.
In this embodiment, the CC detection module is in the DRP mode, and the mobile terminal may serve as a master device to transmit data to an external device and charge the external device; the mobile terminal can also be used as a slave device to charge the mobile terminal. And when detecting that the use state of the mobile terminal meets a preset condition, switching the working mode of the CC detection module from the DRP mode to the UFP mode. Optionally, the preset condition includes at least one of that the configuration channel detection module is in the dual-role port mode and the duration of the configuration channel detection module not serving as a master device exceeds a set duration or that an operation instruction for closing the mode switching control is received. For example, if the CC detection module is in the DRP mode and the duration that the mobile terminal is not used as the master device exceeds the set duration by 5min, the operating mode of the CC detection module is switched to the UFP mode. The set duration is not limited in detail in the embodiment of the invention, and can be set according to actual conditions.
In summary, in the embodiments of the present invention, the mobile terminal is provided with the configuration channel detection module, and the configuration channel detection module is in the uplink port mode. When the mobile terminal receives an operation instruction for switching the mode of the configuration channel detection module, the working mode of the configuration channel detection module is switched from the uplink port mode to the dual-role port mode according to the operation instruction, and at the moment, the mobile terminal can be used as a slave device or a master device, and can be used as the master device for transmitting data to an external device or supplying power to the external device. And when the condition that the state of the mobile terminal meets the preset condition is detected, the working mode of the configuration channel detection module is switched to an uplink port mode from a double-role port mode, namely the mobile terminal is switched to a slave device, and charging can be carried out. Because mobile terminal defaults as the slave unit, therefore can avoid impurity or liquid to get into the USB Type-C interface and the mode of misjudgment configuration passageway detection module that leads to, the unable problem of charging of mobile terminal.
Example two
Referring to fig. 4, a protection device for a mobile terminal according to an embodiment of the present invention is shown, where a configuration channel detection module is disposed in the mobile terminal, and the configuration channel detection module is in an uplink port mode, and the protection device includes an operation instruction receiving module 201, a first mode switching module 202, and a second mode switching module 203:
an operation instruction receiving module 201, configured to receive an operation instruction for mode switching of the configuration channel detection module;
a first mode switching module 202, configured to switch a working mode of the configuration channel detection module from the uplink port mode to a dual-role port mode according to the operation instruction;
a second mode switching module 203, configured to switch the working mode of the configuration channel detection module from the dual role port mode to the uplink port mode when it is detected that the use state of the mobile terminal meets a preset condition.
Optionally, a mode switching control is arranged on a display interface of the mobile terminal;
the operation instruction receiving module 201 is configured to receive an operation instruction for starting the mode switching control.
Optionally, the preset condition includes at least one of that the configuration channel detection module is in the dual-role port mode and the duration of the configuration channel detection module not serving as a master device exceeds a set duration or that an operation instruction for closing the mode switching control is received.
Optionally, the USB Type-C interface of the mobile terminal is connected to an external device, where the external device includes at least one of an earphone, a display, and a USB disk.
The mobile terminal provided by the embodiment of the present invention can implement each process implemented by the mobile terminal in the method embodiment of fig. 1, and is not described herein again in order to avoid repetition. In the embodiment of the invention, the mobile terminal is defaulted as the slave equipment, so that the problems that the mode of configuring the channel detection module is misjudged due to the fact that impurities or liquid enters the USB Type-C interface, and the mobile terminal cannot be charged can be solved.
EXAMPLE III
Figure 5 is a schematic diagram of a hardware configuration of a mobile terminal implementing various embodiments of the present invention,
the mobile terminal 300 includes, but is not limited to: radio frequency unit 301, network module 302, audio output unit 303, input unit 304, sensor 305, display unit 306, user input unit 307, interface unit 308, memory 309, processor 310, and power supply 311. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 5 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 310 is configured to receive an operation instruction for mode switching of the configuration channel detection module; switching the working mode of the configuration channel detection module from the uplink port mode to a dual-role port mode according to the operation instruction; and when the service state of the mobile terminal is detected to meet a preset condition, switching the working mode of the configuration channel detection module from the dual-role port mode to the uplink port mode.
In the embodiment of the invention, the mobile terminal is defaulted as the slave equipment, so that the problems that the mode of configuring the channel detection module is misjudged due to the fact that impurities or liquid enters the USB Type-C interface, and the mobile terminal cannot be charged can be solved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 301 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 310; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 301 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 301 can also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access through the network module 302, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 303 may convert audio data received by the radio frequency unit 301 or the network module 302 or stored in the memory 309 into an audio signal and output as sound. Also, the audio output unit 303 may also provide audio output related to a specific function performed by the mobile terminal 300 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 303 includes a speaker, a buzzer, a receiver, and the like.
The input unit 304 is used to receive audio or video signals. The input Unit 304 may include a Graphics Processing Unit (GPU) 3041 and a microphone 3042, and the Graphics processor 3041 processes image data of a still picture or video obtained by an image capturing apparatus (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 306. The image frames processed by the graphic processor 3041 may be stored in the memory 309 (or other storage medium) or transmitted via the radio frequency unit 301 or the network module 302. The microphone 3042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 301 in case of the phone call mode.
The mobile terminal 300 also includes at least one sensor 305, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 3061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 3061 and/or a backlight when the mobile terminal 300 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 305 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The Display unit 306 may include a Display panel 3061, and the Display panel 3061 may be configured in the form of a liquid Crystal Display (L acquired Crystal Display, L CD), an Organic light Emitting Diode (O L ED), or the like.
The user input unit 307 may be used to receive input numeric or character information and generate control signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 307 includes a touch panel 3071 and other input devices 3072. The touch panel 3071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 3071 (e.g., operations by a user on or near the touch panel 3071 using a finger, a stylus, or any suitable object or attachment). The touch panel 3071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 310, and receives and executes commands sent by the processor 310. In addition, the touch panel 3071 may be implemented using various types, such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 307 may include other input devices 3072 in addition to the touch panel 3071. In particular, other input devices 3072 may include, but are not limited to, a physical control pad, a function control (e.g., volume control button, switch button, etc.), a trackball, a mouse, and a joystick, which are not described herein.
Further, the touch panel 3071 may be overlaid on the display panel 3061, and when the touch panel 3071 detects a touch operation on or near the touch panel, the touch operation is transmitted to the processor 310 to determine the type of the touch event, and then the processor 310 provides a corresponding visual output on the display panel 3061 according to the type of the touch event. Although the touch panel 3071 and the display panel 3061 are shown as two separate components in fig. 3 to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 3071 and the display panel 3061 may be integrated to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 308 is an interface through which an external device is connected to the mobile terminal 300. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 308 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 300 or may be used to transmit data between the mobile terminal 300 and external devices.
The memory 309 may be used to store software programs as well as various data. The memory 309 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 309 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 310 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 309 and calling data stored in the memory 309, thereby performing overall monitoring of the mobile terminal. Processor 310 may include one or more processing units; preferably, the processor 310 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 310.
The mobile terminal 300 may further include a power supply 311 (such as a battery) for supplying power to various components, and preferably, the power supply 311 may be logically connected to the processor 310 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the mobile terminal 300 includes some functional modules that are not shown, and thus, the detailed description thereof is omitted.
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes a processor 310, a memory 309, and a computer program stored in the memory 309 and capable of running on the processor 310, where the computer program, when executed by the processor 310, implements each process of the above-mentioned embodiment of the protection method for a mobile terminal, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned embodiment of the protection method for a mobile terminal, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (6)

1. A protection method of a mobile terminal is provided with a configuration channel detection module, and is characterized in that the configuration channel detection module is in an uplink port mode, and the method comprises the following steps:
receiving an operation instruction for switching the mode of the configuration channel detection module;
switching the working mode of the configuration channel detection module from the uplink port mode to a dual-role port mode according to the operation instruction;
when the service state of the mobile terminal is detected to meet a preset condition, switching the working mode of the configuration channel detection module from the dual-role port mode to the uplink port mode;
a mode switching control is arranged on a display interface of the mobile terminal, and the receiving of the operation instruction for switching the mode of the configuration channel detection module includes:
receiving an operation instruction for starting the mode switching control;
the preset condition comprises that the configuration channel detection module is in the dual-role port mode and the time length of the mobile terminal which is not used as the main equipment exceeds the set time length.
2. The method according to claim 1, wherein the USB Type-C interface of the mobile terminal is connected to an external device, and the external device comprises at least one of an earphone, a display, and a USB disk.
3. A protection device of a mobile terminal is provided with a configuration channel detection module, and is characterized in that the configuration channel detection module is in an uplink port mode, and the device comprises:
an operation instruction receiving module, configured to receive an operation instruction for mode switching of the configuration channel detection module;
the first mode switching module is used for switching the working mode of the configuration channel detection module from the uplink port mode to a dual-role port mode according to the operation instruction;
the second mode switching module is used for switching the working mode of the configuration channel detection module from the dual-role port mode to the uplink port mode when the service state of the mobile terminal is detected to meet a preset condition;
a mode switching control is arranged on a display interface of the mobile terminal;
the operating instruction receiving module is used for receiving an operating instruction for starting the mode switching control;
the preset condition comprises that the configuration channel detection module is in the dual-role port mode and the time length of the mobile terminal which is not used as the main equipment exceeds the set time length.
4. The apparatus of claim 3, wherein the USB Type-C interface of the mobile terminal is connected to an external device, and the external device comprises at least one of an earphone, a display, and a USB flash disk.
5. A mobile terminal, characterized in that it comprises a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the protection method of a mobile terminal according to any one of claims 1 to 2.
6. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the protection method of a mobile terminal according to any one of claims 1 to 2.
CN201810458328.6A 2018-05-14 2018-05-14 Protection method and device for mobile terminal Active CN108595352B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810458328.6A CN108595352B (en) 2018-05-14 2018-05-14 Protection method and device for mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810458328.6A CN108595352B (en) 2018-05-14 2018-05-14 Protection method and device for mobile terminal

Publications (2)

Publication Number Publication Date
CN108595352A CN108595352A (en) 2018-09-28
CN108595352B true CN108595352B (en) 2020-07-31

Family

ID=63637499

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810458328.6A Active CN108595352B (en) 2018-05-14 2018-05-14 Protection method and device for mobile terminal

Country Status (1)

Country Link
CN (1) CN108595352B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114116546A (en) * 2021-11-19 2022-03-01 Oppo广东移动通信有限公司 Device unplugging reporting method and device, computer readable medium and electronic device
CN114236240B (en) * 2022-02-25 2023-10-20 荣耀终端有限公司 Liquid inlet detection circuit and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105098273A (en) * 2015-07-20 2015-11-25 小米科技有限责任公司 Charging method and device
CN106469129A (en) * 2016-08-31 2017-03-01 乐视控股(北京)有限公司 A kind of equipment method of attachment and device
CN107480084A (en) * 2017-07-26 2017-12-15 深圳天珑无线科技有限公司 Type C mobile terminals charge and data transmission method, device and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20160092671A (en) * 2015-01-28 2016-08-05 삼성전자주식회사 Electronic device and method for managing power
CN105680510A (en) * 2016-01-29 2016-06-15 宇龙计算机通信科技(深圳)有限公司 Charging control method and charging control device used for electronic equipment
CN105975039A (en) * 2016-04-29 2016-09-28 乐视控股(北京)有限公司 Method and device for controlling power supply of Type-C interface, and electronic equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105098273A (en) * 2015-07-20 2015-11-25 小米科技有限责任公司 Charging method and device
CN106469129A (en) * 2016-08-31 2017-03-01 乐视控股(北京)有限公司 A kind of equipment method of attachment and device
CN107480084A (en) * 2017-07-26 2017-12-15 深圳天珑无线科技有限公司 Type C mobile terminals charge and data transmission method, device and storage medium

Also Published As

Publication number Publication date
CN108595352A (en) 2018-09-28

Similar Documents

Publication Publication Date Title
CN108255378B (en) Display control method and mobile terminal
CN108777731B (en) Key configuration method and device, mobile terminal and storage medium
CN109560591B (en) Charging method, device and terminal
CN108881617B (en) Display switching method and mobile terminal
CN108767919B (en) Charging device, terminal equipment and charging method
CN111106821B (en) Touch control method and wearable device
CN110891217B (en) Earphone, earphone control method and electronic equipment
CN109888928B (en) Terminal and wireless charging control method
US11653227B2 (en) Method of controlling radio resource management measurement of neighboring cell, mobile communication terminal, and network side device
CN109639887B (en) Control method and terminal equipment
CN111651387B (en) Interface circuit and electronic equipment
CN109150221B (en) Master-slave switching method for wearable equipment and related product
US20230037238A1 (en) Audio output mode switching method and electronic device
CN108536349B (en) Icon management method and mobile terminal
CN108448177B (en) Charging method and terminal
CN109151741B (en) Multimedia message receiving method and terminal
CN108595352B (en) Protection method and device for mobile terminal
CN108540642B (en) Mobile terminal and operation method thereof
CN108388400B (en) Operation processing method and mobile terminal
CN110190641B (en) Charging control circuit, terminal equipment and data line
CN111181218A (en) Charging prompting method, electronic device and medium
CN108777627B (en) Power supply method and device
CN107769324B (en) Charging method, charger, mobile terminal and server
CN110673761A (en) Detection method of touch key and terminal equipment thereof
CN107995372B (en) False touch grounding identification processing method and circuit and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant