CN108268389A - The insertion detection method and mobile terminal of a kind of equipment - Google Patents
The insertion detection method and mobile terminal of a kind of equipment Download PDFInfo
- Publication number
- CN108268389A CN108268389A CN201611264036.6A CN201611264036A CN108268389A CN 108268389 A CN108268389 A CN 108268389A CN 201611264036 A CN201611264036 A CN 201611264036A CN 108268389 A CN108268389 A CN 108268389A
- Authority
- CN
- China
- Prior art keywords
- type
- pins
- interfaces
- mobile terminal
- equipment
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/10—Program control for peripheral devices
- G06F13/12—Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor
- G06F13/122—Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor where hardware performs an I/O function other than control of data transfer
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2213/00—Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F2213/0042—Universal serial bus [USB]
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
An embodiment of the present invention provides the insertion detection method and mobile terminal of a kind of equipment, the method includes:When the predeterminable event for detecting the mobile terminal with Type C interface triggers, the CC pins of the Type C interface is controlled to charge;The Type C interface is made using the CC pins to be inserted into detection; mobile terminal allow when predeterminable event triggers; just the CC pins of Type C interface are powered on; it need not be always maintained at electriferous state; reduce the time of CC pins electrification; avoid due to CC pins charge always and caused by interface corrode, so as to the situation of testing result inaccuracy occur, enhance the protection to Type C interface.
Description
Technical field
Insertion detection method and movement the present embodiments relate to electronic technology field more particularly to a kind of equipment is whole
End.
Background technology
USB (Universal Serial Bus, universal serial bus) is an external bus standard, for specification electricity
Being connected and communicate with for the terminal devices such as brain, mobile phone and external equipment, is a kind of interfacing applied in the communications field, includes
The interface type of a variety of different models such as USB Type-C or specification.USB Type-C are one kind popular in current industry
The development side of I/O (Input/Output, the input/output) interface of terminal devices such as USB interface and follow-up computer, mobile phone
To USB Type-C can support tow sides to plug, and the signal for transmitting data is stronger.
In USB Type-C interface specifications, CC pins can be used for having detected whether equipment (including CC1/CC2 pins)
It is inserted into.On the mobile terminal using Type-C interfaces, it is also to be drawn by CC that mobile terminal, which has detected whether that external equipment is inserted into,
The current source of foot/voltage source pull-up is realized.Therefore, the CC pins on the Type-C interfaces of mobile terminal usually require to protect always
Hold electriferous state.
But in the actual use process, Type-C interfaces are particularly easy to dirty, for example, fiber, environment on clothes
In impurity and the sweat such as dust, steam etc. can accelerate the corrosion of the CC pins of electrification, on CC pins and ground into incoming interface
Between form low impedance path, so as to influence detection of the CC pins to the equipment of insertion, be susceptible to the situation of erroneous judgement.
Invention content
The embodiment of the present invention provides a kind of the insertion detection method and mobile terminal of equipment, to solve the CC of Type-C interfaces
Pin charges and is susceptible to corrosion always, the problem of influencing the detection to the equipment of insertion.
In a first aspect, an embodiment of the present invention provides a kind of insertion detection method of equipment, including:
When the predeterminable event for detecting the mobile terminal with Type-C interfaces triggers, the Type-C interfaces are controlled
CC pins charge;
The Type-C interfaces are made using the CC pins to be inserted into detection.
Second aspect, the embodiment of the present invention additionally provide a kind of mobile terminal, including:
Micro-control unit, in the predeterminable event triggering for detecting the mobile terminal with Type-C interfaces, controlling
The CC pins electrification of the Type-C interfaces;
Type-C detection chips, for making to be inserted into detection to the Type-C interfaces using the CC pins.
In this way, in embodiments of the present invention, when the predeterminable event for detecting the mobile terminal with Type-C interfaces triggers
When, the CC pins of the Type-C interfaces is controlled to charge, then the Type-C interfaces are made using the CC pins to be inserted into inspection
It surveys so that mobile terminal just can power on the CC pins of Type-C interfaces, when predeterminable event triggers without being always maintained at band
Electricity condition, reduce CC pins electrification time, avoid due to CC pins charge always and caused by interface corrode, so as to go out
The situation of existing testing result inaccuracy, enhances the protection to Type-C interfaces.
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 flow chart of the insertion detection method of equipment of first embodiment of the invention;
Fig. 2 is a kind of flow chart of the insertion detection method of equipment of second embodiment of the invention;
Fig. 3 is the block diagram of the mobile terminal of third embodiment of the invention;
Fig. 4 is the block diagram of the mobile terminal of fourth embodiment of the invention;
Fig. 5 is the structure diagram of the mobile terminal of fifth embodiment of the invention.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is part of the embodiment 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.
First embodiment
With reference to Fig. 1, show a kind of flow chart of the insertion detection method of equipment of first embodiment of the invention, specifically may be used
To include the following steps:
Step 101, when the predeterminable event for detecting the mobile terminal with Type-C interfaces triggers, described in control
The CC pins electrification of Type-C interfaces;
In embodiments of the present invention, the mobile terminal can be the electronic equipment for having Type-C interfaces, for example, intelligence
Mobile phone, tablet computer etc., the embodiment of the present invention are not construed as limiting the concrete type of mobile terminal.
Type-C is a kind of connecting interface of USB interface, regardless of tow sides can be inserted into, size be about 8.3mm ×
2.5mm supports the functions such as charging, data transmission, the display output of USB standard as other interfaces.
In general, Type-C interfaces can include Type-C female seats and Type-C male connectors, wherein, Type C female seats include 24
Pin (PIN), wherein 2 CC pins;And Type C male connectors are then to include 22 pins, reduce one compared with Type C female seats
To D+/D- pins, Type C male connectors also include 2 CC pins.
In USB Type-C interface specifications, CC pins can be used for having detected whether equipment (including CC1/CC2 pins)
It is inserted into;On the mobile terminal using Type-C interfaces, mobile terminal can be pulled up real by current source/voltage source of CC pins
Now the insertion of external equipment is detected.
Cause in order to avoid the CC pins of Type-C interfaces due to charging always in external sweat, steam, impurity etc.
Into after Type-C interfaces, the corrosion to Type-C interfaces is caused, in embodiments of the present invention, the CC pins of Type-C interfaces exist
Non-charged state is kept under default conditions.But only in the predeterminable event triggering for detecting mobile terminal, just described in control
CC pins charge.
In embodiments of the present invention, the predeterminable event can refer under usual situation, and movement is inserted into when there is external equipment
Recurrent event before terminal.For example, movement is inserted into using USB flash drive (USB flash disk, abbreviation USB flash disk) in user
Before terminal reads data, it usually needs light mobile terminal screen and searched in file.It therefore, can be by mobile terminal
Bright screen is as one of predeterminable event.After mobile terminal bright screen, user is operated it is possible that external equipment can be inserted into, in order to protect
Can correctly Type-C interfaces be made to be inserted into detection by demonstrate,proving CC pins, and the CC pins can be controlled to charge at this time.
Certainly, those skilled in the art can also set other events as predeterminable event, for example, when Type-C interfaces
Voltage changes etc., and the embodiment of the present invention is not construed as limiting this.
Step 102, the Type-C interfaces are made using the CC pins to be inserted into detection.
In embodiments of the present invention, after the CC pins electrification of mobile terminal control Type-C interfaces, the CC pins are just
Can be to whether thering are external equipment insertion Type-C interfaces to be detected, and perform subsequent operation according to testing result.
In general, in the case where OTG functions are opened, mobile terminal act not only as slave device Slave receive it is external its
The data of his equipment transmission are also used as main equipment Host and transmit data to other equipment.
OTG is the abbreviation of On-The-Go, is the technology that developed recently gets up, be mainly used in a variety of different equipment or
The connection of mobile equipment room, carries out data exchange.Using OTG technologies, equipment room can be realized in the case of no main equipment
Data transmission, realize the purpose by enriching the function of intelligent terminal to intelligent terminal expanding USB interface accessory.Example
Such as, by extending remote controler accessory, mobile phone, tablet computer can be become universal remote control use.
Therefore, in embodiments of the present invention, the CC pins of mobile terminal are when making to be inserted into detection, when judging have outside to set
During standby insertion Type-C interfaces, be inserted into device type and direction of insertion can also be detected, that is, it is that master sets to judge the equipment
Standby or slave device and the equipment are that positive direction is inserted into or negative direction is inserted into.
In embodiments of the present invention, when the predeterminable event for detecting the mobile terminal with Type-C interfaces triggers, control
The CC pins electrification of the Type-C interfaces is made, then the Type-C interfaces are made using the CC pins to be inserted into detection, are made
It obtains mobile terminal just to power on the CC pins of Type-C interfaces when predeterminable event triggers, without being always maintained at electrification shape
State, reduce CC pins electrification time, avoid due to CC pins charge always and caused by interface corrode, so as to examine
The situation of result inaccuracy is surveyed, enhances the protection to Type-C interfaces.
Second embodiment
With reference to Fig. 2, show a kind of flow chart of the insertion detection method of equipment of second embodiment of the invention, specifically may be used
To include the following steps:
Step 201, when the predeterminable event for detecting the mobile terminal with Type-C interfaces triggers, the microcontroller list
Member sends instruction information to the Type-C detection chips;
In embodiments of the present invention, the mobile terminal can be the electronic equipment for having Type-C interfaces, for example, intelligence
Mobile phone, tablet computer etc., the embodiment of the present invention are not construed as limiting the concrete type of mobile terminal.
Type-C is a kind of connecting interface of USB interface, regardless of tow sides can be inserted into, support USB standard charging,
The functions such as data transmission, display output.
In general, Type-C interfaces can include Type-C female seats and Type-C male connectors;The Type-C female seats and Type-C
Male connector includes 2 CC pins, and the CC pins can be used for having detected whether that external equipment is inserted into the Type-C interfaces.
In embodiments of the present invention, mobile terminal has a micro-control unit (Microcontroller Unit, abbreviation
MCU) and Type-C detection chips (Type C detection IC), when the predeterminable event for detecting mobile terminal triggers, institute
Instruction information can be sent to the Type-C detection chips by stating micro-control unit.The predeterminable event can include mobile terminal
The voltage of the Type-C interfaces of bright screen or mobile terminal changes.
In the concrete realization, the voltage change of Type-C interfaces has been often as caused by external main equipment insertion
The variation of VBUS (one of pin of Type-C interfaces) voltage.When there is the Type-C interfaces that external power supply is inserted into mobile terminal,
Mobile terminal can drag down the level of VBUS pins automatically, and so as to form a pressure difference, touching makes voltage change.
Certainly, those skilled in the art can also select other events as predeterminable event, the embodiment of the present invention to this not
It is construed as limiting.
Step 202, the Type-C detection chips are according to the instruction information control CC pin electrifications;
In embodiments of the present invention, the CC pins of Type-C interfaces keep not charged by default.When Type-C is examined
The instruction information that chip receives micro-control unit transmission is surveyed, when learning that predeterminable event is triggered, the CC pins can be controlled
Electrification.
In the concrete realization, after predeterminable event is triggered, the electronics in mobile terminal circuit can be controlled to be collected at CC
Pin charges CC pins.
Step 203, the Type-C interfaces are made using the CC pins to be inserted into detection;
In embodiments of the present invention, after the CC pins electrification of mobile terminal control Type-C interfaces, the CC pins are just
Can be to whether thering are external equipment insertion Type-C interfaces to be detected, and perform subsequent operation according to testing result.
In the concrete realization, when predeterminable event screen event bright for mobile terminal, the CC pins inspection may be used
Whether survey has equipment to be inserted into the Type-C interfaces, if so, the type and direction of insertion of the equipment can be further detected,
Judge that the equipment is main equipment or slave device and the equipment is that positive direction is inserted into or negative direction is inserted into.
When the predeterminable event be Type-C interfaces voltage change when, generally it can be thought that had external power supply or its
The main equipment of his type inserts Type-C interfaces.At this point it is possible to using the direction of insertion of the CC pins detection device, that is, sentence
The equipment of breaking is that positive direction is inserted into or negative direction is inserted into.
Step 204, when equipment, which has been not detected, in the CC pins is inserted into the Type-C interfaces, the CC pins are controlled
Power-off.
In embodiments of the present invention, when Type-C detection chips are in the information for receiving predeterminable event and being triggered, and control
After the electrification of CC pins, if confirming that no equipment is inserted into Type-C interfaces after testing, the CC pins can be controlled to power off, make CC
Pin keeps non-charged state when no equipment is inserted into.
In embodiments of the present invention, when the predeterminable event for detecting mobile terminal triggers, Type-C interfaces can be controlled
CC pins electrification, and to Type-C interfaces make be inserted into detection;If equipment, which has been not detected, is inserted into the Type-C interfaces, can
To make power down process to CC pins, make CC pins when no equipment is inserted into, keep non-charged state, reduce the electrification of CC pins
Time, avoid due to CC pins charge always and caused by interface corrode, so as to the situation of testing result inaccuracy occur,
Enhance the protection to Type-C interfaces.
It should be noted that for embodiment of the method, in order to be briefly described, therefore it is all expressed as to a series of action group
It closes, but those skilled in the art should know, the embodiment of the present invention is not limited by described sequence of movement, because according to
According to the embodiment of the present invention, certain steps may be used other sequences or be carried out at the same time.Secondly, those skilled in the art also should
Know, embodiment described in this description belongs to preferred embodiment, and the involved action not necessarily present invention is implemented
Necessary to example.
3rd embodiment
With reference to Fig. 3, the block diagram of the mobile terminal of third embodiment of the invention is shown, the mobile terminal 300 specifically may be used
To include such as lower part:
Micro-control unit 301, in the predeterminable event triggering for detecting the mobile terminal with Type-C interfaces, controlling
Make the CC pins electrification of the Type-C interfaces;
Type-C detection chips 302, for making to be inserted into detection to the Type-C interfaces using the CC pins.
In embodiments of the present invention, the micro-control unit 301, for sending instruction information to Type-C detection cores
Piece 302;
The Type-C detection chips 302, for according to the instruction information control CC pin electrifications.
In embodiments of the present invention, the predeterminable event can include the bright screen of mobile terminal, the Type-C detection chips
302 are additionally operable to detect whether that equipment is inserted into the Type-C interfaces using the CC pins, if so, detecting the equipment
Type and direction of insertion.
In embodiments of the present invention, the Type-C detection chips 302 are additionally operable to be not detected in the CC pins and set
During the standby insertion Type-C interfaces, the CC pins is controlled to power off.
In embodiments of the present invention, the predeterminable event further includes the voltage change of Type-C interfaces, the Type-C inspections
Survey the direction of insertion that chip 302 is additionally operable to use the CC pins detection device.
Mobile terminal 300 can realize each process that mobile terminal is realized in the embodiment of the method for Fig. 1 to Fig. 2, to keep away
Exempt to repeat, which is not described herein again.The embodiment of the present invention, when the predeterminable event for detecting the mobile terminal with Type-C interfaces touches
During hair, the CC pins of the Type-C interfaces is controlled to charge, then the Type-C interfaces are inserted into using the CC pins
Detection so that mobile terminal just can power on the CC pins of Type-C interfaces, when predeterminable event triggers without being always maintained at
Electriferous state, reduce CC pins electrification time, avoid due to CC pins charge always and caused by interface corrode, so as to
There is the situation of testing result inaccuracy, enhance the protection to Type-C interfaces.
Fourth embodiment
Fig. 4 is a kind of block diagram of mobile terminal of fourth embodiment of the invention.Mobile terminal 400 shown in Fig. 4 includes:Extremely
A few processor 401, memory 402, at least one network interface 404 and user interface 403.It is each in mobile terminal 400
A component is coupled by bus system 405.It is understood that bus system 405 is used to implement the connection between these components
Communication.Bus system 405 further includes power bus, controlling bus and status signal bus in addition in addition to including data/address bus.But
For the sake of clear explanation, various buses are all designated as bus system 405 in Fig. 4.
Wherein, user interface 403 can include display, keyboard or pointing device (for example, mouse, trace ball
(trackball), touch-sensitive plate or touch screen etc..
It is appreciated that the memory 402 in the embodiment of the present invention can be volatile memory or nonvolatile memory,
Or it may include both volatile and non-volatile memories.Wherein, nonvolatile memory can be read-only memory (Read-
OnlyMemory, ROM), programmable read only memory (ProgrammableROM, PROM), Erasable Programmable Read Only Memory EPROM
(ErasablePROM, EPROM), electrically erasable programmable read-only memory (ElectricallyEPROM, EEPROM) dodge
It deposits.Volatile memory can be random access memory (RandomAccessMemory, RAM), be used as external slow at a high speed
It deposits.By exemplary but be not restricted explanation, the RAM of many forms can be used, such as static RAM
(StaticRAM, SRAM), dynamic random access memory (DynamicRAM, DRAM), Synchronous Dynamic Random Access Memory
(SynchronousDRAM, SDRAM), double data speed synchronous dynamic RAM (DoubleDataRate
SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links
Dynamic random access memory (SynchlinkDRAM, SLDRAM) and direct rambus random access memory
(DirectRambusRAM, DRRAM).The memory 402 of the system and method for description of the embodiment of the present invention is intended to include but unlimited
In the memory of these and any other suitable type.
In some embodiments, memory 402 stores following element, executable modules or data structures or
Their subset of person or their superset:Operating system 4021 and application program 4022.
Wherein, operating system 4021 comprising various system programs, such as ccf layer, core library layer, driving layer etc., are used for
Realize various basic businesses and the hardware based task of processing.Application program 4022 includes various application programs, such as media
Player (MediaPlayer), browser (Browser) etc., are used to implement various applied business.Realize embodiment of the present invention side
The program of method may be embodied in application program 4022.
In embodiments of the present invention, by calling program or the instruction of the storage of memory 402, specifically, can be application
The program stored in program 4022 or instruction, processor 401, which is used to work as, detects the pre- of the mobile terminal with Type-C interfaces
If event triggers, the CC pins of the Type-C interfaces is controlled to charge;The Type-C interfaces are made using the CC pins
It is inserted into detection.
The method that the embodiments of the present invention disclose can be applied to realize in processor 401 or by processor 401.
Processor 401 may be a kind of IC chip, have the processing capacity of signal.During realization, the above method it is each
Step can be completed by the integrated logic circuit of the hardware in processor 401 or the instruction of software form.Above-mentioned processing
Device 401 can be general processor, digital signal processor (DigitalSignalProcessor, DSP), application-specific integrated circuit
(ApplicationSpecific IntegratedCircuit, ASIC), ready-made programmable gate array
(FieldProgrammableGateArray, FPGA) either other programmable logic device, discrete gate or transistor logic
Device, discrete hardware components.It can realize or perform disclosed each method, step and the box in the embodiment of the present invention
Figure.General processor can be microprocessor or the processor can also be any conventional processor etc..With reference to the present invention
The step of method disclosed in embodiment, can be embodied directly in hardware decoding processor and perform completion or use decoding processor
In hardware and software module combination perform completion.Software module can be located at random access memory, and flash memory, read-only memory can
In the storage medium of this fields such as program read-only memory or electrically erasable programmable memory, register maturation.The storage
Medium is located at memory 402, and processor 401 reads the information in memory 402, and the step of the above method is completed with reference to its hardware
Suddenly.
It is understood that the embodiment of the present invention description these embodiments can use hardware, software, firmware, middleware,
Microcode or combination is realized.For hardware realization, processing unit can be realized in one or more application-specific integrated circuits
(ApplicationSpecificIntegratedCircuits, ASIC), digital signal processor
(DigitalSignalProcessing, DSP), digital signal processing appts (DSPDevice, DSPD), programmable logic device
(ProgrammableLogicDevice, PLD), field programmable gate array (Field-ProgrammableGateArray,
FPGA), general processor, controller, microcontroller, microprocessor, other electronics lists for performing function of the present invention
In first or combination.
For software implementations, can by perform the module (such as process, function etc.) of function described in the embodiment of the present invention come
Realize the technology described in the embodiment of the present invention.Software code is storable in memory and is performed by processor.Memory can
With portion realizes in the processor or outside the processor.
Optionally, the processor 401 is additionally operable to:Detect whether that equipment is inserted into the Type-C using the CC pins
Interface;If so, detect the type and direction of insertion of the equipment.
Optionally, the processor 401 is additionally operable to:The CC pins is controlled to power off.
Optionally, the processor 401 is additionally operable to:Using the direction of insertion of the CC pins detection device.
Mobile terminal 400 can realize each process that mobile terminal is realized in previous embodiment, be repeated to avoid, here
It repeats no more.The embodiment of the present invention can control the CC of Type-C interfaces when the predeterminable event for detecting mobile terminal triggers
Pin charges, and Type-C interfaces are made to be inserted into detection;If equipment, which has been not detected, is inserted into the Type-C interfaces, can be right
CC pins make power down process, make CC pins when no equipment is inserted into, keep non-charged state, reduce CC pins electrification when
Between, avoid due to CC pins charge always and caused by interface corrode, so as to the situation of testing result inaccuracy occur, enhance
Protection to Type-C interfaces.
5th embodiment
Fig. 5 is the structure diagram of the mobile terminal of fifth embodiment of the invention.Specifically, the mobile terminal 500 in Fig. 5
Can be mobile phone, tablet computer, personal digital assistant (PersonalDigital Assistant, PDA) or vehicle-mounted computer etc..
Mobile terminal 500 in Fig. 5 includes radio frequency (RadioFrequency, RF) circuit 510, memory 520, input list
Member 530, display unit 540, processor 560, voicefrequency circuit 570, WiFi (WirelessFidelity) module 580 and power supply
590。
Wherein, input unit 530 can be used for receiving number input by user or character information and generation and mobile terminal
The related signal input of 500 user setting and function control.Specifically, in the embodiment of the present invention, which can
To include touch panel 531.Touch panel 531, also referred to as touch screen collect user on it or neighbouring touch operation
(for example user uses the operations of any suitable object or attachment on touch panel 531 such as finger, stylus), and according to advance
The formula of setting drives corresponding attachment device.Optionally, touch panel 531 may include touch detecting apparatus and touch controller
Two parts.Wherein, the touch orientation of touch detecting apparatus detection user, and the signal that touch operation is brought is detected, by signal
Send touch controller to;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate,
The processor 560 is given again, and can be received the order that processor 560 is sent and be performed.Furthermore, it is possible to using resistance-type,
The multiple types such as condenser type, infrared ray and surface acoustic wave realize touch panel 531.In addition to touch panel 531, input unit
530 can also include other input equipments 532, other input equipments 532 can include but is not limited to physical keyboard, function key
It is one or more in (such as volume control button, switch key etc.), trace ball, mouse, operating lever etc..
Wherein, display unit 540 can be used for display by information input by user or be supplied to information and the movement of user
The various menu interfaces of terminal 500.Display unit 540 may include display panel 541, optionally, LCD or organic hairs may be used
Display panel 541 is configured in the forms such as optical diode (OrganicLight-EmittingDiode, OLED).
It should be noted that touch panel 531 can cover display panel 541, touch display screen is formed, when the touch display screen is examined
It measures and on it or after neighbouring touch operation, sends processor 560 to determine the type of touch event, be followed by subsequent processing device
560 provide corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and common control viewing area.The Application Program Interface viewing area
And arrangement mode of the common control viewing area does not limit, can be arranged above and below, left-right situs etc. can distinguish two it is aobvious
Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with
The interface elements such as the icon comprising at least one application program and/or widget desktop controls.The Application Program Interface viewing area
Or the empty interface not comprising any content.The common control viewing area is used to show the higher control of utilization rate, for example,
Application icons such as button, interface number, scroll bar, phone directory icon etc. are set.
Wherein processor 560 is the control centre of mobile terminal 500, utilizes various interfaces and connection whole mobile phone
Various pieces are stored by running or performing the software program being stored in first memory 521 and/or module and call
Data in second memory 522 perform the various functions of mobile terminal 500 and processing data, so as to mobile terminal 500
Carry out integral monitoring.Optionally, processor 560 may include one or more processing units.
In embodiments of the present invention, by calling store the first memory 521 in software program and/or module and/
Or the data in the second memory 522, processor 560, which is used to work as, detects the default of the mobile terminal with Type-C interfaces
When event triggers, the CC pins of the Type-C interfaces is controlled to charge;The Type-C interfaces are inserted using the CC pins
Enter detection.
Optionally, the processor 560 is additionally operable to:Detect whether that equipment is inserted into the Type-C using the CC pins
Interface;If so, detect the type and direction of insertion of the equipment.
Optionally, the processor 560 is additionally operable to:The CC pins is controlled to power off.
Optionally, the processor 560 is additionally operable to:Using the direction of insertion of the CC pins detection device.
As it can be seen that the embodiment of the present invention can control Type-C interfaces when the predeterminable event for detecting mobile terminal triggers
CC pins electrification, and to Type-C interfaces make be inserted into detection;If equipment, which has been not detected, is inserted into the Type-C interfaces, can
To make power down process to CC pins, make CC pins when no equipment is inserted into, keep non-charged state, reduce the electrification of CC pins
Time, avoid due to CC pins charge always and caused by interface corrode, so as to the situation of testing result inaccuracy occur,
Enhance the protection to Type-C interfaces.
Those of ordinary skill in the art may realize that the embodiment with reference to disclosed in the embodiment of the present invention describes each
Exemplary unit and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These
Function is performed actually with hardware or software mode, specific application and design constraint depending on technical solution.Profession
Technical staff can realize described function to each specific application using distinct methods, but this realization should not
Think beyond the scope of this invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit can refer to the corresponding process in preceding method embodiment, and details are not described herein.
In embodiment provided by the present invention, it should be understood that disclosed device and method can pass through others
Mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only
A kind of division of logic function, can there is an other dividing mode in actual implementation, for example, multiple units or component can combine or
Person is desirably integrated into another system or some features can be ignored or does not perform.Another point, shown or discussed is mutual
Between coupling, direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, device or unit
It connects, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separate, be shown as unit
The component shown may or may not be physical unit, you can be located at a place or can also be distributed to multiple
In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also
That each unit is individually physically present, can also two or more units integrate in a unit.
If the function is realized in the form of SFU software functional unit and is independent product sale or in use, can be with
It is stored in a computer read/write memory medium.Based on such understanding, technical scheme of the present invention is substantially in other words
The part contribute to the prior art or the part of the technical solution can be embodied in the form of software product, the meter
Calculation machine software product is stored in a storage medium, is used including some instructions so that a computer equipment (can be
People's computer, server or network equipment etc.) perform all or part of the steps of the method according to each embodiment of the present invention.
And aforementioned storage medium includes:USB flash disk, mobile hard disk, ROM, RAM, magnetic disc or CD etc. are various can to store program code
Medium.
The above description is merely a specific embodiment, but protection scope of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in change or replacement, should all contain
Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.
Claims (10)
1. a kind of insertion detection method of equipment, which is characterized in that including:
When the predeterminable event for detecting the mobile terminal with Type-C interfaces triggers, the CC of the Type-C interfaces is controlled to draw
Tape electricity;
The Type-C interfaces are made using the CC pins to be inserted into detection.
2. according to the method described in claim 1, it is characterized in that, there is the mobile terminal micro-control unit and Type-C to examine
Chip is surveyed, the described the step of CC pins of the Type-C interfaces is controlled to charge includes:
The micro-control unit sends instruction information to the Type-C detection chips;
The Type-C detection chips are according to the instruction information control CC pin electrifications.
3. according to the method described in claim 2, it is characterized in that, the predeterminable event include the bright screen of mobile terminal, it is described to adopt
The step of being made to the Type-C interfaces with the CC pins and be inserted into detection includes:
Detect whether that equipment is inserted into the Type-C interfaces using the CC pins;
If so, detect the type and direction of insertion of the equipment.
4. according to the method described in claim 3, it is characterized in that, when the CC pins have been not detected described in equipment insertion
During Type-C interfaces, the method further includes:
The CC pins is controlled to power off.
5. according to the method described in claim 2, it is characterized in that, the voltage that the predeterminable event includes Type-C interfaces becomes
Change, described the step of being made to the Type-C interfaces using the CC pins and be inserted into detection includes:
Using the direction of insertion of the CC pins detection device.
6. a kind of mobile terminal, which is characterized in that including:
Micro-control unit, in the predeterminable event triggering for detecting the mobile terminal with Type-C interfaces, described in control
The CC pins electrification of Type-C interfaces;
Type-C detection chips, for making to be inserted into detection to the Type-C interfaces using the CC pins.
7. mobile terminal according to claim 6, which is characterized in that
The micro-control unit, for sending instruction information to the Type-C detection chips;
The Type-C detection chips, for according to the instruction information control CC pin electrifications.
8. mobile terminal according to claim 7, which is characterized in that the predeterminable event includes the bright screen of mobile terminal, institute
Type-C detection chips are stated to be additionally operable to detect whether that equipment is inserted into the Type-C interfaces using the CC pins, if so,
Detect the type and direction of insertion of the equipment.
9. mobile terminal according to claim 8, which is characterized in that the Type-C detection chips are additionally operable in the CC
When the equipment insertion Type-C interfaces have been not detected in pin, the CC pins is controlled to power off.
10. mobile terminal according to claim 7, which is characterized in that the predeterminable event includes the electricity of Type-C interfaces
Buckling, the Type-C detection chips are additionally operable to the direction of insertion using the CC pins detection device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611264036.6A CN108268389A (en) | 2016-12-30 | 2016-12-30 | The insertion detection method and mobile terminal of a kind of equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611264036.6A CN108268389A (en) | 2016-12-30 | 2016-12-30 | The insertion detection method and mobile terminal of a kind of equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108268389A true CN108268389A (en) | 2018-07-10 |
Family
ID=62753778
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611264036.6A Pending CN108268389A (en) | 2016-12-30 | 2016-12-30 | The insertion detection method and mobile terminal of a kind of equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108268389A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109189617A (en) * | 2018-07-27 | 2019-01-11 | 维沃移动通信有限公司 | A kind of universal serial bus c-type interface detection method and terminal |
CN109462104A (en) * | 2018-11-23 | 2019-03-12 | 上海机器人产业技术研究院有限公司 | A kind of OTG line of Type-C interface |
CN111433756A (en) * | 2018-07-24 | 2020-07-17 | 华为技术有限公司 | Terminal and Type C interface anti-corrosion method |
CN111752362A (en) * | 2019-03-29 | 2020-10-09 | 北京小米移动软件有限公司 | Method, device and storage medium for preventing interface from being corroded |
CN111988549A (en) * | 2020-07-21 | 2020-11-24 | 深圳市金锐显数码科技有限公司 | Television USB seat power supply method and device |
CN112165136A (en) * | 2020-09-30 | 2021-01-01 | 努比亚技术有限公司 | Interface arrangement and mobile terminal charge |
CN113641609A (en) * | 2021-06-29 | 2021-11-12 | 荣耀终端有限公司 | Interface circuit, electronic device, and insertion recognition method |
CN116501534A (en) * | 2023-06-27 | 2023-07-28 | 荣耀终端有限公司 | Charging abnormality management method and related device |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101673174A (en) * | 2009-08-18 | 2010-03-17 | 宇龙计算机通信科技(深圳)有限公司 | Method, system and mobile terminal for providing user interface |
CN101763299A (en) * | 2008-12-23 | 2010-06-30 | 比亚迪股份有限公司 | Method and device for testing universal series bus equipment |
CN103618356A (en) * | 2013-12-03 | 2014-03-05 | Tcl通讯(宁波)有限公司 | Charging system for mobile terminal and charging method thereof |
CN104951034A (en) * | 2015-07-16 | 2015-09-30 | 广东欧珀移动通信有限公司 | Mobile terminal and USB interface mode control method and device thereof |
CN205305074U (en) * | 2015-12-30 | 2016-06-08 | 歌尔声学股份有限公司 | Earphone with buffer memory function |
CN105760229A (en) * | 2016-02-15 | 2016-07-13 | 广东欧珀移动通信有限公司 | Method and device for cleaning backstage running programs and mobile terminal |
CN106127058A (en) * | 2016-06-29 | 2016-11-16 | 爱德华·斯沃博达 | Method for improving safety of intelligent automation equipment |
CN205721762U (en) * | 2016-03-31 | 2016-11-23 | 维沃移动通信有限公司 | The interface circuit of general-purpose serial bus USB interface and portable terminal |
-
2016
- 2016-12-30 CN CN201611264036.6A patent/CN108268389A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101763299A (en) * | 2008-12-23 | 2010-06-30 | 比亚迪股份有限公司 | Method and device for testing universal series bus equipment |
CN101673174A (en) * | 2009-08-18 | 2010-03-17 | 宇龙计算机通信科技(深圳)有限公司 | Method, system and mobile terminal for providing user interface |
CN103618356A (en) * | 2013-12-03 | 2014-03-05 | Tcl通讯(宁波)有限公司 | Charging system for mobile terminal and charging method thereof |
CN104951034A (en) * | 2015-07-16 | 2015-09-30 | 广东欧珀移动通信有限公司 | Mobile terminal and USB interface mode control method and device thereof |
CN205305074U (en) * | 2015-12-30 | 2016-06-08 | 歌尔声学股份有限公司 | Earphone with buffer memory function |
CN105760229A (en) * | 2016-02-15 | 2016-07-13 | 广东欧珀移动通信有限公司 | Method and device for cleaning backstage running programs and mobile terminal |
CN205721762U (en) * | 2016-03-31 | 2016-11-23 | 维沃移动通信有限公司 | The interface circuit of general-purpose serial bus USB interface and portable terminal |
CN106127058A (en) * | 2016-06-29 | 2016-11-16 | 爱德华·斯沃博达 | Method for improving safety of intelligent automation equipment |
Non-Patent Citations (1)
Title |
---|
无名: "USB3.1TypeC的引脚定义,工作流程", 《HTTP://WWW.GJYMK.COM/SHOWNEWS.ASP?ID=258》 * |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111433756A (en) * | 2018-07-24 | 2020-07-17 | 华为技术有限公司 | Terminal and Type C interface anti-corrosion method |
US11947481B2 (en) | 2018-07-24 | 2024-04-02 | Honor Device Co., Ltd. | Terminal and type C interface anti-corrosion method |
CN111433756B (en) * | 2018-07-24 | 2022-01-28 | 荣耀终端有限公司 | Terminal and Type C interface anti-corrosion method |
CN109189617B (en) * | 2018-07-27 | 2021-06-29 | 维沃移动通信有限公司 | Universal serial bus C-type interface detection method and terminal |
CN109189617A (en) * | 2018-07-27 | 2019-01-11 | 维沃移动通信有限公司 | A kind of universal serial bus c-type interface detection method and terminal |
CN109462104A (en) * | 2018-11-23 | 2019-03-12 | 上海机器人产业技术研究院有限公司 | A kind of OTG line of Type-C interface |
CN111752362A (en) * | 2019-03-29 | 2020-10-09 | 北京小米移动软件有限公司 | Method, device and storage medium for preventing interface from being corroded |
CN111752362B (en) * | 2019-03-29 | 2022-08-19 | 北京小米移动软件有限公司 | Method, device and storage medium for preventing interface from being corroded |
CN111988549A (en) * | 2020-07-21 | 2020-11-24 | 深圳市金锐显数码科技有限公司 | Television USB seat power supply method and device |
CN112165136A (en) * | 2020-09-30 | 2021-01-01 | 努比亚技术有限公司 | Interface arrangement and mobile terminal charge |
CN112165136B (en) * | 2020-09-30 | 2023-05-19 | 努比亚技术有限公司 | Charging interface device and mobile terminal |
CN113641609A (en) * | 2021-06-29 | 2021-11-12 | 荣耀终端有限公司 | Interface circuit, electronic device, and insertion recognition method |
CN116501534A (en) * | 2023-06-27 | 2023-07-28 | 荣耀终端有限公司 | Charging abnormality management method and related device |
CN116501534B (en) * | 2023-06-27 | 2024-04-02 | 荣耀终端有限公司 | Charging abnormality management method and related device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108268389A (en) | The insertion detection method and mobile terminal of a kind of equipment | |
CN106844265B (en) | A kind of control method and mobile terminal of general-purpose serial bus USB interface | |
CN106208206B (en) | A kind of wireless charging method and mobile terminal | |
CN106786960A (en) | Charge control method, device and terminal | |
CN106648857A (en) | Method for starting OTG function of mobile terminal and mobile terminal | |
CN108268403A (en) | A kind of Type-C interface protective circuits and method, mobile terminal | |
CN108268411A (en) | The method and mobile terminal of a kind of data transmission | |
CN108268402A (en) | Protection circuit, guard method and the mobile terminal of Type-C interfaces | |
CN108268405A (en) | Protection circuit, guard method and the mobile terminal of Type-C interfaces | |
CN105811543A (en) | Electric quantity display method of mobile power source, mobile terminal and mobile power source | |
CN108268395A (en) | A kind of method and mobile terminal of data communication | |
CN108270253A (en) | A kind of charging method and mobile terminal | |
CN108268089A (en) | A kind of interface protector, mobile terminal and method | |
CN106684967B (en) | A kind of charging method and mobile terminal of mobile terminal | |
US20090265749A1 (en) | Wireless display system | |
CN108268090A (en) | A kind of interface protector, mobile terminal and method | |
CN108270255B (en) | A kind of charging method and mobile terminal | |
CN108268091B (en) | A kind of interface protector, mobile terminal and method | |
CN108268397A (en) | The processing method and mobile terminal of a kind of access device | |
CN108268408A (en) | Protection circuit, guard method and the mobile terminal of Type-C interfaces | |
CN107482736B (en) | A kind of method for preventing USB interface short circuit from burning and electronic equipment | |
CN108271092A (en) | The processing method and mobile terminal of a kind of access device | |
CN108268410B (en) | A kind of method and mobile terminal of data communication | |
CN108268396A (en) | The processing method and mobile terminal of a kind of access device | |
CN106708512A (en) | Mobile terminal and method for starting OTG function of 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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180710 |
|
RJ01 | Rejection of invention patent application after publication |