CN108595352A - A kind of guard method of mobile terminal and device - Google Patents

A kind of guard method of mobile terminal and device Download PDF

Info

Publication number
CN108595352A
CN108595352A CN201810458328.6A CN201810458328A CN108595352A CN 108595352 A CN108595352 A CN 108595352A CN 201810458328 A CN201810458328 A CN 201810458328A CN 108595352 A CN108595352 A CN 108595352A
Authority
CN
China
Prior art keywords
mobile terminal
detection module
channel detection
collocation channel
operational order
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.)
Granted
Application number
CN201810458328.6A
Other languages
Chinese (zh)
Other versions
CN108595352B (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

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The present invention provides a kind of guard method of mobile terminal and devices.Collocation channel detection module is provided in the mobile terminal, which is characterized in that the collocation channel detection module is in uplink port pattern, the method includes:Receive the operational order that pattern switching is carried out to the collocation channel detection module;By the operating mode of the collocation channel detection module it is double role's port modes by the uplink port pattern switching according to the operational order;When detecting that the use state of the mobile terminal meets preset condition, the operating mode of the collocation channel detection module is switched to the uplink port pattern by double role's port modes.In the embodiment of the present invention, since mobile terminal acquiescence to avoid impurity or liquid as that from equipment, can enter caused by USB Type C interface the operating mode for judging collocation channel detection module by accident, the problem of mobile terminal can not charge.

Description

A kind of guard method of mobile terminal and device
Technical field
The present invention relates to the guard method of technical field of mobile terminals more particularly to a kind of mobile terminal and devices.
Background technology
USB (Universal Serial Bus, universal serial bus) TYPE-C interfaces of new generation, which have, supports positive anti-plug, more The advantages that strong power transmission, faster data transmission bauds, more slim design, therefore it is increasingly becoming the mark of mobile terminal Quasi- interface.
CC (Configuration Channel collocation channels) detection module of USB TYPE-C interfaces connection supports three kinds Pattern:DFP (Down-stream Facing Port, downlink port), mobile terminal can only make main equipment;UFP(Up-stream Facing Port, uplink port), mobile terminal can only be made from equipment;DRP (Dual Role Port, double role ports) is moved Dynamic terminal, which can make main equipment also, can make from equipment.Under normal conditions, the CC detection module default settings inside mobile terminal are DRP patterns, when mobile terminal be used as from equipment (Sink) when, can just charge normal.But as the USB of mobile terminal When TYPE-C interfaces enter conductive impurity or liquid, mobile terminal meeting erroneous judgement is used as main equipment (Source), such feelings It is inserted into charger under condition, cannot be charged normal.
Invention content
The embodiment of the present invention provides guard method and the device of a kind of mobile terminal, to solve the USB of mobile terminal When TYPE-C interfaces enter impurity or liquid, mobile terminal meeting erroneous judgement is used as main equipment (Source), cannot normally be filled The problem of electricity.
In order to solve the above-mentioned technical problem, an embodiment of the present invention provides a kind of guard method of mobile terminal, the shiftings It is provided with collocation channel detection module in dynamic terminal, the collocation channel detection module is in uplink port pattern, the method Including:
Receive the operational order that pattern switching is carried out to the collocation channel detection module;
The operating mode of the collocation channel detection module is cut by the uplink port pattern according to the operational order It is changed to double role's port modes;
When detecting that the use state of the mobile terminal meets preset condition, by the collocation channel detection module Operating mode is switched to the uplink port pattern by double role's port modes.
The embodiment of the present invention additionally provides a kind of protective device of mobile terminal, and it is logical that configuration is provided in the mobile terminal Road detection module, which is characterized in that the collocation channel detection module is in uplink port pattern, and described device includes:
Operational order receiving module refers to the operation of collocation channel detection module progress pattern switching for receiving It enables;
First mode handover module, for according to the operational order by the operating mode of the collocation channel detection module It is double role's port modes by the uplink port pattern switching;
Second mode handover module, for when detecting that the use state of the mobile terminal meets preset condition, inciting somebody to action The operating mode of the collocation channel detection module is switched to the uplink port pattern by double role's port modes.
The embodiment of the present invention additionally provides a kind of mobile terminal, including processor, memory and is stored in the memory Computer program that is upper and can running on the processor, is realized as above when the computer program is executed by the processor The step of guard method for the mobile terminal stated.
The embodiment of the present invention additionally provides a kind of computer readable storage medium, is deposited on the computer readable storage medium Computer program is stored up, the step of the guard method such as above-mentioned mobile terminal is realized when the computer program is executed by processor Suddenly.
In embodiments of the present invention, collocation channel detection module is provided in mobile terminal, at collocation channel detection module In uplink port pattern.When mobile terminal, which is received, carries out the operational order of pattern switching to collocation channel detection module, according to Operational order by the operating mode of collocation channel detection module from uplink port pattern switching be double role's port modes, this time shift Dynamic terminal can be used as and from equipment can also be used as main equipment, can be to external equipment transmission data or be outer as main equipment Portion's equipment power supply.And when detecting that the state of mobile terminal meets preset condition, by the Working mould of collocation channel detection module Formula is switched to uplink port pattern from double role's port modes, that is, is switched to from equipment, can charge to mobile terminal.By In mobile terminal acquiescence as from equipment, therefore it can enter to avoid impurity or liquid caused by USB Type-C interfaces and judge by accident The problem of pattern of collocation channel detection module, mobile terminal can not charge.
Description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the present invention Example, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these attached drawings Obtain other attached drawings.
Fig. 1 is a kind of step flow chart of the guard method of mobile terminal of the embodiment of the present invention one;
Fig. 2 is the hardware block diagram of the collocation channel detection module of the embodiment of the present invention one;
Fig. 3 is the hardware block diagram of the uplink port pattern of the collocation channel detection module of the embodiment of the present invention one;
Fig. 4 is a kind of structure diagram of the protective device of mobile terminal of the embodiment of the present invention two;
Fig. 5 is a kind of hardware architecture diagram of mobile terminal of the embodiment of the present invention three.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained without creative efforts Example, shall fall within the protection scope of the present invention.
Embodiment one
Referring to Fig.1, a kind of step flow chart of the guard method of mobile terminal provided in an embodiment of the present invention is shown.Institute It states and is provided with collocation channel detection module in mobile terminal, the collocation channel detection module is in uplink port pattern, described Method includes:
Step 101, the operational order that pattern switching is carried out to the collocation channel detection module is received.
Collocation channel detection module, i.e. CC detection modules are provided in the present embodiment, in mobile terminal, for detecting USB Connection, detects positive anti-plug, establishes and manage the connection etc. of the data and VBUS between USB device.With reference to collocation channel shown in Fig. 2 The hardware block diagram of detection module can be according to CC1 and CC2 when there is CC1 the and CC2 pins that external equipment connects mobile terminal Voltage judge that mobile terminal is main equipment (Source) or from equipment (Sink).For example, when detecting that CC1 or CC2 pass through When pull down resistor Rd ground connection, the operating mode of CC detection modules is uplink port (UFP) pattern;When detecting that CC1 or CC2 pass through When pull-up resistor Rp connection 5V power supplys, the operating mode of CC detection modules is downlink port (DFP) pattern.CC detection modules can be with Switch between DFP patterns and UFP patterns once per 50ms, i.e., the operating mode of CC detection modules is double role ports (DRP) Pattern.Current detecting unit in Fig. 2 determines the current output capability of mobile terminal for the resistance value according to pull-up resistor Rp; According to the resistance value of pull down resistor Rd, the current output capability of external equipment is determined.Optionally, the USB of the mobile terminal Type-C interfaces connect external equipment, and the external equipment includes at least one of earphone, display, USB flash disk.
When mobile terminal initializes, it sets the operating mode of CC detection modules to UFP patterns, matching as shown in Figure 3 Set the hardware block diagram of the uplink port pattern of channel detecting module, mobile terminal default setting be from equipment, can receive data, Charging etc..User switches the operating mode of CC detection modules, the operational order of mobile terminal reception pattern switching according to demand.
Optionally, it is provided with mode toggle control on the display interface of the mobile terminal, receives the unlatching pattern and cuts Change the operational order of control.Specifically, can display mode toggle control on the screen of the mobile terminal, mode toggle control Closed state corresponds to UFP patterns, and open state corresponds to DRP patterns.Mode toggle control acquiescence is closed state, when needing to CC When detection module carries out pattern switching, mobile terminal receives the operational order of open mode toggle control.
Step 102, according to the operational order by the operating mode of the collocation channel detection module by the upstream ends Mouth mold formula is switched to double role's port modes.
In the present embodiment, after receiving the operational order to CC detection modules progress pattern switching, by CC detection modules Operating mode from UFP pattern switchings be DRP patterns.See Fig. 2, when CC detection modules are in UFP patterns, switchs pull down resistor It links together with CC pins;When CC detection modules are in DRP patterns, switch is connecting pull down resistor and CC pins and is connecting Periodical switching is carried out between pull-up resistor and CC pins.
Step 103, when detecting that the use state of the mobile terminal meets preset condition, the collocation channel is examined The operating mode for surveying module is switched to the uplink port pattern by double role's port modes.
In the present embodiment, CC detection modules are in DRP patterns, and mobile terminal can be used as main equipment, be passed to external equipment Transmission of data charges for external equipment;Mobile terminal can also be used as from equipment, charge to mobile terminal.It is moved when detecting When the use state of dynamic terminal meets preset condition, by the operating mode of CC detection modules from DRP pattern switchings be UFP patterns. Optionally, the preset condition includes that the collocation channel detection module is in double role's port modes and is not set as master Standby duration is more than setting duration or receives at least one of the operational order for closing the mode toggle control.Example Such as, CC detection modules are in DRP patterns, and mobile terminal is not more than setting duration 5min as the duration of main equipment, then will The operating mode of CC detection modules is switched to UFP patterns.The embodiment of the present invention does not limit setting duration in detail, can basis Actual conditions are configured.
In conclusion collocation channel detection module is provided in the embodiment of the present invention, in mobile terminal, collocation channel detection Module is in uplink port pattern.When mobile terminal receives the operational order to collocation channel detection module progress pattern switching When, according to operational order by the operating mode of collocation channel detection module from uplink port pattern switching be double role ports mould Formula, mobile terminal can be as can also be used as main equipment from equipment at this time, can be to external equipment transmission number as main equipment It powers according to or for external equipment.And when detecting that the state of mobile terminal meets preset condition, collocation channel is detected into mould The operating mode of block is switched to uplink port pattern from double role's port modes, i.e. mobile terminal is switched to from equipment, Ke Yijin Row charging.Due to mobile terminal acquiescence as from equipment, can entering USB Type-C interfaces to avoid impurity or liquid and The problem of pattern of caused erroneous judgement collocation channel detection module, mobile terminal can not charge.
Embodiment two
With reference to Fig. 4, a kind of protective device of mobile terminal provided in an embodiment of the present invention is shown, in the mobile terminal It is provided with collocation channel detection module, the collocation channel detection module is in uplink port pattern, and described device includes operation Command reception module 201, first mode handover module 202, second mode handover module 203:
Operational order receiving module 201, for receiving the operation for carrying out pattern switching to the collocation channel detection module Instruction;
First mode handover module 202, for according to the operational order by the work of the collocation channel detection module Pattern is double role's port modes by the uplink port pattern switching;
Second mode handover module 203, for when detecting that the use state of the mobile terminal meets preset condition, The operating mode of the collocation channel detection module is switched to the uplink port pattern by double role's port modes.
Optionally, it is provided with mode toggle control on the display interface of the mobile terminal;
The operational order receiving module 201, for receiving the operational order for opening the mode toggle control.
Optionally, the preset condition includes that the collocation channel detection module is in double role's port modes and not Duration as main equipment is more than setting duration or receives in the operational order for closing the mode toggle control at least It is a kind of.
Optionally, the mobile terminal USB Type-C interfaces connect external equipment, the external equipment include earphone, At least one of display, USB flash disk.
Mobile terminal provided in an embodiment of the present invention can realize that mobile terminal is realized each in the embodiment of the method for Fig. 1 Process, to avoid repeating, which is not described herein again.It, can since mobile terminal acquiescence is used as from equipment in the embodiment of the present invention Enter caused by USB Type-C interfaces the pattern for judging collocation channel detection module by accident, mobile terminal to avoid impurity or liquid The problem of can not charging.
Embodiment three
A kind of hardware architecture diagram of Fig. 5 mobile terminals of each embodiment to realize the present invention,
The mobile terminal 300 includes but not limited to:It is radio frequency unit 301, network module 302, audio output unit 303, defeated Enter unit 304, sensor 305, display unit 306, user input unit 307, interface unit 308, memory 309, processor The components such as 310 and power supply 311.It will be understood by those skilled in the art that mobile terminal structure shown in Fig. 5 is not constituted Restriction to mobile terminal, mobile terminal may include than illustrating more or fewer components, either combine certain components or Different component arrangements.In embodiments of the present invention, mobile terminal include but not limited to mobile phone, tablet computer, laptop, Palm PC, car-mounted terminal, wearable device and pedometer etc..
Wherein, processor 310, for receiving the operational order for carrying out pattern switching to the collocation channel detection module; By the operating mode of the collocation channel detection module it is double angles by the uplink port pattern switching according to the operational order Color port mode;When detecting that the use state of the mobile terminal meets preset condition, the collocation channel is detected into mould The operating mode of block is switched to the uplink port pattern by double role's port modes.
In the embodiment of the present invention, since mobile terminal acquiescence is as from equipment, it can enter to avoid impurity or liquid The problem of pattern of erroneous judgement collocation channel detection module caused by USB Type-C interfaces, mobile terminal can not charge.
It should be understood that the embodiment of the present invention in, radio frequency unit 301 can be used for receiving and sending messages or communication process in, signal Send and receive, specifically, by from base station downlink data receive after, to processor 310 handle;In addition, by uplink Data are sent to base station.In general, radio frequency unit 301 includes but not limited to antenna, at least one amplifier, transceiver, coupling Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 301 can also by radio communication system and network and other set Standby communication.
Mobile terminal has provided wireless broadband internet to the user by network module 302 and has accessed, and such as user is helped to receive Send e-mails, browse webpage and access streaming video etc..
It is that audio output unit 303 can receive radio frequency unit 301 or network module 302 or in memory 309 The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 303 can also be provided and be moved The relevant audio output of specific function that dynamic terminal 300 executes is (for example, call signal receives sound, message sink sound etc. Deng).Audio output unit 303 includes loud speaker, buzzer and receiver etc..
Input unit 304 is for receiving audio or video signal.Input unit 304 may include graphics processor (Graphics Processing Unit, GPU) 3041 and microphone 3042, graphics processor 3041 is in video acquisition mode Or the image data of the static images or video obtained by image capture apparatus (such as camera) in image capture mode carries out Reason.Treated, and picture frame may be displayed on display unit 306.Through graphics processor 3041, treated that picture frame can be deposited Storage is sent in memory 309 (or other storage mediums) or via radio frequency unit 301 or network module 302.Mike Wind 3042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be The format output of mobile communication base station can be sent to via radio frequency unit 301 by being converted in the case of telephone calling model.
Mobile terminal 300 further includes at least one sensor 305, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 3061, and proximity sensor can close when mobile terminal 300 is moved in one's ear Display panel 3061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, size and the direction of gravity are can detect that when static, can be used to identify mobile terminal posture (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);It passes Sensor 305 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet Meter, thermometer, infrared sensor etc. are spent, details are not described herein.
Display unit 306 is for showing information input by user or being supplied to the information of user.Display unit 306 can wrap Display panel 3061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode may be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 3061.
User input unit 307 can be used for receiving the number or character information of input, and generate the use with mobile terminal Family is arranged and the related control signal input of function control.Specifically, user input unit 307 include touch panel 3071 with And other input equipments 3072.Touch panel 3071, also referred to as touch screen collect user on it or neighbouring touch operation (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 3071 or in touch panel 3071 Neighbouring operation).Touch panel 3071 may include both touch detecting apparatus and touch controller.Wherein, touch detection Device detects the touch orientation of user, and detects the signal that touch operation is brought, and transmits a signal to touch controller;Touch control Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 310, receiving area It manages the order that device 310 is sent and is executed.Furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Type realizes touch panel 3071.In addition to touch panel 3071, user input unit 307 can also include other input equipments 3072.Specifically, other input equipments 3072 can include but is not limited to physical control disk, functionality controls (such as volume control By control, switch by control etc.), trace ball, mouse, operating lever, details are not described herein.
Further, touch panel 3071 can be covered on display panel 3061, when touch panel 3071 is detected at it On or near touch operation after, send processor 310 to determine the type of touch event, be followed by subsequent processing device 310 according to touch The type for touching event provides corresponding visual output on display panel 3061.Although in figure 3, touch panel 3071 and display Panel 3061 is to realize the function that outputs and inputs of mobile terminal as two independent components, but in some embodiments In, can be integrated by touch panel 3071 and display panel 3061 and realize the function that outputs and inputs of mobile terminal, it is specific this Place does not limit.
Interface unit 308 is the interface that external device (ED) is connect with mobile terminal 300.For example, external device (ED) may include having Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end Mouth, port, the port audio input/output (I/O), video i/o port, earphone end for connecting the device with identification module Mouthful etc..Interface unit 308 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and By one or more elements that the input received is transferred in mobile terminal 300 or can be used in 300 He of mobile terminal Transmission data between external device (ED).
Memory 309 can be used for storing software program and various data.Memory 309 can include mainly storing program area And storage data field, wherein storing program area can storage program area, application program (such as the sound needed at least one function Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 309 may include high-speed random access memory, can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 310 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part by running or execute the software program and/or module that are stored in memory 309, and calls and is stored in storage Data in device 309 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place Reason device 310 may include one or more processing units;Preferably, processor 310 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 310.
Mobile terminal 300 can also include the power supply 311 (such as battery) powered to all parts, it is preferred that power supply 311 Can be logically contiguous by power-supply management system and processor 310, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
In addition, mobile terminal 300 includes some unshowned function modules, details are not described herein.
Preferably, the embodiment of the present invention also provides a kind of mobile terminal, including processor 310, and memory 309 is stored in On memory 309 and the computer program that can be run on the processor 310, the computer program are executed by processor 310 Each process of the guard method embodiment of the above-mentioned mobile terminals of Shi Shixian, and identical technique effect can be reached, to avoid weight Multiple, which is not described herein again.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium Calculation machine program, the computer program realize each mistake of the guard method embodiment of above-mentioned mobile terminal when being executed by processor Journey, and identical technique effect can be reached, to avoid repeating, which is not described herein again.Wherein, the computer-readable storage medium Matter, such as read-only memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic disc or CD etc..
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements include not only those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this There is also other identical elements in the process of element, method, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art Going out the part of contribution can be expressed in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited in above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form, all of these belong to the protection of the present invention.

Claims (10)

1. a kind of guard method of mobile terminal, collocation channel detection module is provided in the mobile terminal, which is characterized in that The collocation channel detection module is in uplink port pattern, the method includes:
Receive the operational order that pattern switching is carried out to the collocation channel detection module;
It is by the uplink port pattern switching by the operating mode of the collocation channel detection module according to the operational order Double role's port modes;
When detecting that the use state of the mobile terminal meets preset condition, by the work of the collocation channel detection module Pattern is switched to the uplink port pattern by double role's port modes.
2. according to the method described in claim 1, being cut it is characterized in that, being provided with pattern on the display interface of the mobile terminal Control is changed, the reception carries out the collocation channel detection module operational order of pattern switching, including:
Receive the operational order for opening the mode toggle control.
3. according to the method described in claim 2, it is characterized in that, the preset condition includes the collocation channel detection module It is not more than setting duration as the duration of main equipment in double role's port modes and the mobile terminal or receives Close at least one of the operational order of the mode toggle control.
4. according to the method described in claim 1, it is characterized in that, the USB Type-C interfaces connection of the mobile terminal is external Equipment, the external equipment include at least one of earphone, display, USB flash disk.
5. a kind of protective device of mobile terminal, collocation channel detection module is provided in the mobile terminal, which is characterized in that The collocation channel detection module is in uplink port pattern, and described device includes:
Operational order receiving module, for receiving the operational order for carrying out pattern switching to the collocation channel detection module;
First mode handover module is used for the operating mode of the collocation channel detection module according to the operational order by institute It is double role's port modes to state uplink port pattern switching;
Second mode handover module will be described for when detecting that the use state of the mobile terminal meets preset condition The operating mode of collocation channel detection module is switched to the uplink port pattern by double role's port modes.
6. device according to claim 5, which is characterized in that be provided with pattern on the display interface of the mobile terminal and cut Change control;
The operational order receiving module, for receiving the operational order for opening the mode toggle control.
7. device according to claim 6, which is characterized in that the preset condition includes the collocation channel detection module It is not more than setting duration as the duration of main equipment in double role's port modes and the mobile terminal or receives Close at least one of the operational order of the mode toggle control.
8. device according to claim 5, which is characterized in that the USB Type-C interfaces connection of the mobile terminal is external Equipment, the external equipment include at least one of earphone, display, USB flash disk.
9. a kind of mobile terminal, which is characterized in that including processor, memory and be stored on the memory and can be described The computer program run on processor is realized when the computer program is executed by the processor as in Claims 1-4 The step of guard method of any one of them mobile terminal.
10. a kind of computer readable storage medium, which is characterized in that store computer journey on the computer readable storage medium Sequence, the computer program realize the protection of mobile terminal according to any one of claims 1 to 4 when being executed by processor The step of method.
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 true CN108595352A (en) 2018-09-28
CN108595352B 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)

Cited By (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
CN114236240A (en) * 2022-02-25 2022-03-25 荣耀终端有限公司 Liquid inlet detection circuit and electronic equipment

Citations (6)

* 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
CN105680510A (en) * 2016-01-29 2016-06-15 宇龙计算机通信科技(深圳)有限公司 Charging control method and charging control device used for electronic equipment
US20160216757A1 (en) * 2015-01-28 2016-07-28 Samsung Electronics Co., Ltd. Electronic device and method for managing power
CN105975039A (en) * 2016-04-29 2016-09-28 乐视控股(北京)有限公司 Method and device for controlling power supply of Type-C interface, and electronic equipment
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

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160216757A1 (en) * 2015-01-28 2016-07-28 Samsung Electronics Co., Ltd. Electronic device and method for managing power
CN105098273A (en) * 2015-07-20 2015-11-25 小米科技有限责任公司 Charging method and device
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
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

Cited By (3)

* 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
CN114236240A (en) * 2022-02-25 2022-03-25 荣耀终端有限公司 Liquid inlet detection circuit and electronic equipment
CN114236240B (en) * 2022-02-25 2023-10-20 荣耀终端有限公司 Liquid inlet detection circuit and electronic equipment

Also Published As

Publication number Publication date
CN108595352B (en) 2020-07-31

Similar Documents

Publication Publication Date Title
CN108108007B (en) A kind of processing method and mobile terminal reducing power consumption
CN108255378A (en) A kind of display control method and mobile terminal
CN108363524B (en) A kind of application icon display methods and mobile terminal
CN109672254A (en) A kind of charging control circuit, terminal device and control method
CN108494030A (en) A kind of wireless charging method, terminal and transmitting end equipment
CN109962514A (en) A kind of charging method and mobile terminal
CN107887947A (en) A kind of guard method of charging port and mobile terminal
CN108898555A (en) A kind of image processing method and terminal device
CN109888928A (en) A kind of terminal and wireless charging control method
CN107834640A (en) A kind of charging method and terminal
CN110267145A (en) A kind of state display method and terminal device
CN110096203A (en) A kind of screenshot method and mobile terminal
CN109739300A (en) A kind of method of controlling antenna and terminal
CN109831359A (en) A kind of detection method and its terminal device of data network connection state
CN109254719A (en) A kind of processing method and mobile terminal of display interface
CN108616650A (en) A kind of dust removal method and mobile terminal
CN109782970A (en) A kind of display methods and terminal
CN108718360A (en) A kind of charging method and mobile terminal
CN108595352A (en) A kind of guard method of mobile terminal and device
CN109980727A (en) A kind of terminal, charger and charge protection method
CN108448177A (en) A kind of charging method and terminal
CN108366166A (en) A kind of operation method and mobile terminal of mobile terminal
CN109950952A (en) A kind of method of supplying power to and mobile terminal
CN110213437A (en) A kind of edit methods and mobile terminal
CN109889942A (en) A kind of Type-C patchcord, control method and terminal device

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