CN108268091A - A kind of interface protector, mobile terminal and method - Google Patents

A kind of interface protector, mobile terminal and method Download PDF

Info

Publication number
CN108268091A
CN108268091A CN201611264113.8A CN201611264113A CN108268091A CN 108268091 A CN108268091 A CN 108268091A CN 201611264113 A CN201611264113 A CN 201611264113A CN 108268091 A CN108268091 A CN 108268091A
Authority
CN
China
Prior art keywords
interface
infrared
trepanning
mobile terminal
peripheral 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.)
Granted
Application number
CN201611264113.8A
Other languages
Chinese (zh)
Other versions
CN108268091B (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 CN201611264113.8A priority Critical patent/CN108268091B/en
Publication of CN108268091A publication Critical patent/CN108268091A/en
Application granted granted Critical
Publication of CN108268091B publication Critical patent/CN108268091B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1632External expansion units, e.g. docking stations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/81Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer by operating on the power supply, e.g. enabling or disabling power-on, sleep or resume operations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/82Protecting input, output or interconnection devices
    • G06F21/85Protecting input, output or interconnection devices interconnection devices, e.g. bus-connected or in-line devices

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)

Abstract

An embodiment of the present invention provides a kind of interface protector, mobile terminal and methods; infrared receiver trepanning and infrared transmission trepanning are provided on the shell of the interface of mobile terminal; the infrared transmission trepanning is provided with infrared transmission circuit; the infrared receiver trepanning is provided with infrared receiving circuit; the infrared transmission circuit and infrared receiving circuit are connected to the processor of mobile terminal; wherein, the infrared transmission circuit, for emitting infrared light outward through the infrared transmission trepanning;The red reception power transmission road, the infrared light for being used for and being reflected through infrared receiver trepanning reception in the interface for having peripheral equipment close to the mobile terminal generate voltage;The processor, for when judging that the peripheral equipment accesses to the interface according to the voltage, the interface being controlled to power on.The embodiment of the present invention is solving the problems, such as interface into aqueous corrosion so as to fail.

Description

A kind of interface protector, mobile terminal and method
Technical field
The present invention relates to fields of communication technology, more particularly to a kind of interface protector, a kind of mobile terminal and one kind The method of interface protection.
Background technology
Common terminal, majority use USB (Universal Serial Bus, universal serial bus) mouth on the market at present It charges.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 Type-C specifications, two pins of CC1/CC2 can be used for whether detection device has insertion.On mobile terminals Peripheral equipment insertion is detected whether, CC pins acquiescence is pulled up by the electric current of 80uA, so on mother's Type-C mouth Two pins of CC1/CC2 often charge.When USB Type-C sockets enter sweat, steam, impurity etc., if pin electrification can add Corrode between fast CC pins and ground, low impedance path is formed between CC pins and ground, influence equipment and be inserted into detection, cause to miss Sentence.However, charging etching problem currently for CC pins, manufacturer terminal forms the side protected to CC pins not yet at present Case.
Invention content
The embodiment of the present invention provides a kind of interface protector, a kind of mobile terminal and a kind of method of interface protection, with Solve the problems, such as interface into aqueous corrosion so as to fail.
In a first aspect, a kind of interface protector is provided, applied to mobile terminal, in the shell of the interface of mobile terminal On be provided with infrared receiver trepanning and infrared transmission trepanning, the infrared transmission trepanning is provided with infrared transmission circuit, described red Outer receiving opening is provided with infrared receiving circuit, and the infrared transmission circuit and infrared receiving circuit are connected to the place of mobile terminal Device is managed, wherein,
The infrared transmission circuit, for emitting infrared light outward through the infrared transmission trepanning;
The red reception power transmission road, is used for and is having peripheral equipment close to the shifting through infrared receiver trepanning reception The infrared light reflected during the interface of dynamic terminal generates voltage;
The processor, for when judging that the peripheral equipment accesses to the interface according to the voltage, controlling institute Interface is stated to power on.
Second aspect, provides a kind of mobile terminal, and the mobile terminal has above-mentioned interface protector.
The third aspect provides a kind of method of interface protection, applied to mobile terminal, mobile terminal interface it is outer Infrared receiver trepanning and infrared transmission trepanning are provided on shell, the infrared transmission trepanning is provided with infrared transmission circuit, described Infrared receiver trepanning is provided with infrared receiving circuit, and the infrared transmission circuit and infrared receiving circuit are connected to mobile terminal Processor, the method includes:
Emit infrared light outward through the infrared transmission trepanning;
Receive what is reflected in the interface for having peripheral equipment close to the mobile terminal through the infrared receiver trepanning Infrared light generates voltage;
When judging that the peripheral equipment accesses to the interface according to the voltage, the interface is controlled to power on.
The interface protector of the embodiment of the present invention is provided with infrared receiver trepanning on the shell of interface on mobile terminals With infrared transmission trepanning, infrared receiving circuit is enabled to receive infrared light based on infrared receiver trepanning, based on infrared transmission Trepanning enables infrared transmission circuit to send infrared light, wherein peripheral equipment close to when red reception power transmission road being capable of basis The infrared light reflected generates voltage, and the processor of mobile terminal then determines whether that peripheral equipment connects according to the voltage Enter, however, it is determined that there is peripheral equipment access, then control interface powers on.Using the embodiment of the present invention so that the interface of mobile terminal Electriferous state need not be always held at, interface can be reduced and charge risk into aqueous corrosion, with protection interface.
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 structure diagram of interface protector embodiment of the embodiment of the present invention one;
Fig. 2 is a kind of step flow chart of interface protection method embodiment of the embodiment of the present invention two.
Fig. 3 is the block diagram of the mobile terminal of one embodiment of the invention;
Fig. 4 is the structure diagram of the mobile terminal of another 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.
Embodiment one
With reference to Fig. 1, a kind of structure diagram of interface protector embodiment of the present invention is shown, in connecing for mobile terminal Infrared trepanning 101 is provided on the shell of mouth, the infrared trepanning 101 includes infrared transmission trepanning 1011 and infrared receiver trepanning 1012, the infrared transmission opens 1011 holes and is provided with infrared transmission circuit 1021, and the infrared receiver trepanning is provided with infrared connect Circuit 1022 is received, the infrared transmission circuit 1021 and infrared receiving circuit 1022 may be collectively referred to as infrared circuit 102, described red Outer transmission circuit 1021 and infrared receiving circuit 1022 are connected to the processor 103 of mobile terminal,
Specifically, the mobile terminal can be mobile phone, palm PC (Personal Digital Assistant, PDA), camera, wearable device etc. have the mobile terminal of interface, and the interface protector of the embodiment of the present invention can be used for Protect the interface of mobile terminal.
In embodiments of the present invention, it is protected in the interface of mobile terminal with shell, the infrared trepanning 101 on shell includes Infrared transmission trepanning 1011 and infrared receiver trepanning 1012 enable infrared receiving circuit 1022 based on infrared receiver trepanning 1012 Infrared light is enough received, infrared transmission circuit 1021 is enabled to send infrared light based on infrared transmission trepanning 1011, with reference to The processor of two infrared circuits and mobile terminal can detect whether interface of the peripheral equipment close to mobile terminal.
The infrared transmission circuit 1021, for emitting infrared light outward through the infrared transmission trepanning 1011;
The red reception power transmission road 1022, is used for and being received through the infrared receiver trepanning 1012 is having peripheral equipment to lean on The infrared light reflected during the interface of the nearly mobile terminal generates voltage;
In practical applications, peripheral equipment is the equipment for referring to connect with the interface of mobile terminal, and specifically, periphery is set Standby can be the equipment such as charger, charger baby.Certainly, peripheral equipment can also be other setting of being connect with mobile terminal Standby, the embodiment of the present invention does not limit this.
In embodiments of the present invention, infrared circuit is set to after trepanning 101, and specially infrared transmission circuit 1021 is set It is placed in after infrared transmission trepanning 1011, red reception power transmission road 1022 is set to after infrared receiver trepanning 1012.
It should be noted that other than the set-up mode of above-mentioned trepanning and infrared circuit in mobile terminal, can also set In other positions, as long as being able to detect that state of the interface close to the interface of mobile terminal of peripheral equipment, the present invention is real Example is applied not limit this.
In practical applications, infrared circuit is the circuit measured using the physical property of infrared ray.Infrared ray is again Claim infrared light, it is many with properties, the types of infrared sensor such as reflection, refraction, scattering, interference, absorptions.It is for example, infrared Circuit can respectively send and receive infrared light with infrared receiving diode and infrared light-emitting diode.Infrared receiver two Pole pipe and infrared light-emitting diode can send and monitor infrared light, so as to learn that periphery is set according to the infrared light of feedback Standby access situation.
In general, the infrared light of infrared light-emitting diode transmitting specific frequency, infrared receiving diode receives this The infrared light of frequency, when infrared detection direction encounters such as peripheral equipment, infrared light, which reflects, to be received pipe and connects Receive, after processing, by digital sensor interface back to processor, processor i.e. can using infrared return signal come Identify the situation of peripheral equipment access.
Type based on infrared circuit is different, and the situation for generating voltage is also different, so for processor Its based on voltage judge whether there is peripheral equipment access standard it is also different, therefore, when implementing the embodiment of the present invention, answer It is adjusted accordingly when according to actual conditions, the embodiment of the present invention does not limit this.
In one preferred embodiment of the invention, the infrared transmission trepanning 1011 and infrared receiver trepanning 1012 can be with It is closed using transparent material, so that infrared transmission trepanning 1011 and infrared receiver trepanning 1012, are not easy dirty and do not influence Detection result.Specifically, which can be capable of the material of leaded light including light-guiding pillar etc..
The processor 103, for when judging that the peripheral equipment accesses to the interface according to the voltage, controlling The interface powers on.
In one preferred embodiment of the invention, the processor is used to reach preset threshold value in the voltage When, judge that the peripheral equipment accesses to the interface.
Whether the variation of voltage value that the embodiment of the present invention can be generated by infrared circuit in real time determines peripheral circuit Close to the interface of mobile terminal.In a kind of example of the present invention, if voltage value is more than a preset threshold value (such as Close to A values), it is possible to the USB interface for thinking to have peripheral equipment is linked into the interface of mobile terminal, can start at this time as movement The interface power supply of terminal.
In one preferred embodiment of the invention, the processor is used to judge that it is described that the peripheral equipment accesses to Interface controls the CC pins of the Type-C interfaces to power on.
It should be noted that the interface that the interface protector of the embodiment of the present invention includes can be USB Type-C, USB Type-C is the I/O of the terminal devices such as a kind of USB interface popular in current industry and follow-up computer, mobile phone The developing direction of (Input/Output, input/output) interface, USB Type-C can support tow sides to plug, and pass The signal of transmission of data is stronger.
In Type-C specifications, CC pins are used to detect whether peripheral equipment has insertion.To detect on mobile terminals is No to have peripheral equipment insertion, CC pins acquiescence is pulled up by the electric current of 80uA, so the CC1/CC2 on Type-C interfaces two Pin charges.Problem caused by this way is, when USB socket enters sweat, steam, impurity etc., pin electrification can accelerate CC Corrode between pin and ground, low impedance path is formed between CC pins and ground, influence equipment and be inserted into detection, cause to judge by accident.Therefore And the CC pins in the interface of the embodiment of the present invention are set as not charged, are only determined with periphery according to the voltage detected When equipment accesses to the interface of mobile terminal, processor can just be powered on to the CC pins.
Infrared trepanning is distinguished when the interface protector of the embodiment of the present invention can utilize the USB interface of peripheral equipment to be inserted into The characteristics of receiving the infrared light variation of reflection, detects the variation for the infrared light that infrared circuit receives, works as peripheral equipment in real time USB interface close to the interface of mobile terminal when, then infrared light based on reception generates voltage and is sent to mobile terminal Processor if the voltage is more than a preset threshold value (infrared to depend on close values A), has been considered as external USB interface insertion, this When just start CC pin powereds for Type-C interfaces, to carry out follow-up Type-C detections.
Using the interface protector of the embodiment of the present invention, can when the USB interface of no peripheral equipment is inserted into, The CC pins of Type-C interfaces do not have to a direct power supply, and due to the pin that often charges micro-, short (it is micro- that interface has dust, water etc. to cause It is short), accelerate pin corrosion.The embodiment of the present invention is just to start to power when external USB interface is inserted into, in this way can be with effective protection The pin of Type-C interfaces.
The interface protector of the embodiment of the present invention is provided with infrared receiver trepanning on the shell of interface on mobile terminals With infrared transmission trepanning, infrared receiving circuit is enabled to receive infrared light based on infrared receiver trepanning, based on infrared transmission Trepanning enables infrared transmission circuit to send infrared light, wherein peripheral equipment close to when red reception power transmission road being capable of basis The infrared light reflected generates voltage, and the processor of mobile terminal then determines whether that peripheral equipment connects according to the voltage Enter, however, it is determined that there is peripheral equipment access, then control interface powers on.Using the embodiment of the present invention so that the interface of mobile terminal Electriferous state need not be always held at, interface can be reduced and charge risk into aqueous corrosion, with protection interface.
The embodiment of the invention also discloses a kind of mobile terminal, which has the interface protection of above-described embodiment one Device is to include the interface of the mobile terminal, due to for mobile terminal embodiment, the implementation with interface protector Example is substantially similar, so related part illustrates referring to the part of interface protector embodiment, just repeats no more.
Embodiment two
With reference to Fig. 2, a kind of step flow chart of interface protection method embodiment of the present invention, the method application are shown In mobile terminal, infrared receiver trepanning and infrared transmission trepanning are provided on the shell of the interface of mobile terminal, it is described infrared It sends trepanning and is provided with infrared transmission circuit, the infrared receiver trepanning is provided with infrared receiving circuit, the infrared transmission electricity Road and infrared receiving circuit are connected to the processor of mobile terminal, and the method specifically may include steps of:
Step 201, emit infrared light outward through the infrared transmission trepanning;
In embodiments of the present invention, one described interface protector of embodiment is installed on mobile terminals.It is moving Trepanning on the shell of the female (interface) of dynamic terminal, is properly termed as infrared trepanning, and infrared circuit can be enabled red through this Exterior open cell generates voltage to detect the variation of infrared light during interface of the peripheral equipment close to mobile terminal.
Specifically, it is provided with infrared transmission trepanning and infrared receiver trepanning on the shell, wherein being opened through infrared transmission Hole can cause infrared transmission circuit behind to launch infrared light.
Step 202, it is received through the infrared receiver trepanning in the interface for having peripheral equipment close to the mobile terminal The infrared light reflected generates voltage;
Infrared receiving circuit behind can be caused to receive the infrared light of reflection, and generate through infrared receiver trepanning Voltage is sent to the processor of mobile terminal.The processor of mobile terminal obtains the voltage that infrared circuit detects in real time, is used for Judge whether there is peripheral equipment access.
Step 203, it when judging that the peripheral equipment accesses to the interface according to the voltage, controls on the interface Electricity.
In embodiments of the present invention, can peripheral equipment be determined whether according to the voltage that infrared circuit detects USB interface accesses to the interface of mobile terminal, however, it is determined that when peripheral equipment accesses to the interface, can start as mobile terminal Interface power supply.
In one preferred embodiment of the invention, it is described to judge that the step of peripheral equipment accesses to the interface To include:
Judge whether the voltage reaches preset threshold value;
If so, it is determined as that the peripheral equipment accesses to the interface.
In a kind of example of the present invention, the voltage change of infrared sensor can be detected in real time, if voltage is more than one During a threshold value (voltage is close to A values), it is possible to think to have the USB interface of peripheral equipment to be inserted into, can be mobile whole at this time The interface power supply at end.
For embodiment of the method, since it is substantially similar to device embodiment, so description is fairly simple, it is related Part illustrates referring to the part of embodiment of the method.
, can be when the USB interface of no peripheral equipment be inserted into using the embodiment of the present invention, the interface of mobile terminal draws Foot does not have to a direct power supply so that the interface of mobile terminal need not be always held at electriferous state, micro- due to the pin that often charges Short (it is micro- short that interface has dust, water etc. to cause) accelerates pin corrosion, so can reduce interface band using the embodiment of the present invention Electricity into aqueous corrosion risk, with protection interface.
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.
Embodiment three
Fig. 3 is the block diagram of the mobile terminal of another embodiment of the present invention.Mobile terminal 700 shown in Fig. 3 includes:At least One processor 701, memory 702, at least one network interface 704 and other users interface 703.In mobile terminal 700 Various components are coupled by bus system 705.It is understood that bus system 705 is used to implement the company between these components Connect letter.Bus system 705 further includes power bus, controlling bus and status signal bus in addition in addition to including data/address bus.But It is for the sake of clear explanation, various buses is all designated as bus system 705 in figure 3.
Wherein, user interface 703 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 702 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 702 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 702 stores following element, executable modules or data structures or Their subset of person or their superset:Operating system 7021 and application program 7022.
Wherein, operating system 7021 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 7022 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 7022.
In embodiments of the present invention, by calling program or the instruction of the storage of memory 702, specifically, can be application The program stored in program 7022 or instruction, processor 701 are used to emit infrared light outward through the infrared transmission trepanning; The infrared light reflected in the interface for having peripheral equipment close to the mobile terminal is received through the infrared receiver trepanning Generate voltage;When judging that the peripheral equipment accesses to the interface according to the voltage, the interface is controlled to power on.
The method that the embodiments of the present invention disclose can be applied to realize in processor 701 or by processor 701. Processor 701 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 701 or the instruction of software form.Above-mentioned processing Device 701 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 702, and processor 701 reads the information in memory 702, 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, processor 701 is additionally operable to, and judges whether the voltage reaches preset threshold value;If so, it is determined as The peripheral equipment accesses to the interface.
For 700 embodiment of mobile terminal, since it is basicly similar to embodiment of the method, so the comparison of description is simple Single, the relevent part can refer to the partial explaination of embodiments of method.
Using the embodiment of the present invention so that the interface of mobile terminal need not be always held at electriferous state, can reduce and connect Mouth charges the risk into aqueous corrosion, with protection interface.
Example IV
Fig. 4 is the structure diagram of the mobile terminal of another embodiment of the present invention.Specifically, the mobile terminal in Fig. 4 800 can be mobile phone, tablet computer, personal digital assistant (PersonalDigital Assistant, PDA) or vehicle-mounted computer Deng.
Mobile terminal 800 in Fig. 4 includes radio frequency (RadioFrequency, RF) circuit 810, memory 820, input list Member 830, display unit 840, processor 860, voicefrequency circuit 870, WiFi (WirelessFidelity) module 880 and power supply 890。
Wherein, input unit 830 can be used for receiving number input by user or character information and generation and mobile terminal The related signal input of 800 user setting and function control.Specifically, in the embodiment of the present invention, which can To include touch panel 831.Touch panel 831, 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 831 such as finger, stylus), and according to advance The formula of setting drives corresponding attachment device.Optionally, touch panel 831 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 860 is given again, and can be received the order that processor 860 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 831.In addition to touch panel 831, input unit 830 can also include other input equipments 832, other input equipments 832 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 840 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 800.Display unit 840 may include display panel 841, optionally, LCD or organic hairs may be used Display panel 841 is configured in the forms such as optical diode (OrganicLight-EmittingDiode, OLED).
It should be noted that touch panel 831 can cover display panel 841, touch display screen is formed, when the touch display screen is examined It measures and on it or after neighbouring touch operation, sends processor 860 to determine the type of touch event, be followed by subsequent processing device 860 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 860 is the control centre of mobile terminal 800, utilizes various interfaces and connection whole mobile phone Various pieces are stored by running or performing the software program being stored in first memory 821 and/or module and call Data in second memory 822 perform the various functions of mobile terminal 800 and processing data, so as to mobile terminal 800 Carry out integral monitoring.Optionally, processor 860 may include one or more processing units.
In embodiments of the present invention, by calling store the first memory 821 in software program and/or module and/ Or the data in the second memory 822, processor 860 are used to emit infrared light outward through the infrared transmission trepanning; The infrared light reflected in the interface for having peripheral equipment close to the mobile terminal is received through the infrared receiver trepanning Generate voltage;When judging that the peripheral equipment accesses to the interface according to the voltage, the interface is controlled to power on.
Optionally, the processor 860 is additionally operable to, and judges whether the voltage reaches preset threshold value;If so, sentence It is set to the peripheral equipment and accesses to the interface.
For 800 embodiment of mobile terminal, since it is basicly similar to embodiment of the method, so the comparison of description is simple Single, the relevent part can refer to the partial explaination of embodiments of method.
Using the embodiment of the present invention so that the interface of mobile terminal need not be always held at electriferous state, can reduce and connect Mouth charges the risk into aqueous corrosion, with protection interface.
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 interface protector, applied to mobile terminal, which is characterized in that set on the shell of the interface of mobile terminal There are infrared receiver trepanning and infrared transmission trepanning, the infrared transmission trepanning is provided with infrared transmission circuit, the infrared receiver Trepanning is provided with infrared receiving circuit, and the infrared transmission circuit and infrared receiving circuit are connected to the processor of mobile terminal, Wherein,
The infrared transmission circuit, for emitting infrared light outward through the infrared transmission trepanning;
The red reception power transmission road is used for and is received through the infrared receiver trepanning having peripheral equipment close to described mobile whole The infrared light reflected during the interface at end generates voltage;
The processor, for when judging that the peripheral equipment accesses to the interface according to the voltage, being connect described in control Mouth powers on.
2. interface protector according to claim 1, which is characterized in that the infrared receiver trepanning and infrared transmission are opened It is closed using transparent material in hole.
3. interface protector according to claim 2, which is characterized in that the transparent material includes light-guiding pillar.
4. interface protector according to claim 1, which is characterized in that the interface is Type-C interfaces.
5. interface protector according to claim 1, which is characterized in that the processor is used to reach in the voltage During preset threshold value, judge that the peripheral equipment accesses to the interface.
6. interface protector according to claim 4, which is characterized in that the CC pins of the Type-C interfaces not on Electricity, the CC pins include CC1 pins and CC2 pins.
7. the interface protector according to claim 1 or 6, which is characterized in that the processor is used for according to the electricity When pressure judges that the peripheral equipment accesses to the interface, the CC pins of the Type-C interfaces is controlled to power on.
8. a kind of mobile terminal, which is characterized in that the mobile terminal has the interface protection dress as described in claim 1-7 It puts.
9. a kind of method of interface protection, applied to mobile terminal, which is characterized in that set on the shell of the interface of mobile terminal It is equipped with infrared receiver trepanning and infrared transmission trepanning, the infrared transmission trepanning is provided with infrared transmission circuit, described infrared to connect It receives trepanning and is provided with infrared receiving circuit, the infrared transmission circuit and infrared receiving circuit are connected to the processing of mobile terminal Device, the method includes:
Emit infrared light outward through the infrared transmission trepanning;
Received through the infrared receiver trepanning reflected when there is interface of the peripheral equipment close to the mobile terminal it is infrared Light generates voltage;
When judging that the peripheral equipment accesses to the interface according to the voltage, the interface is controlled to power on.
10. according to the method described in claim 9, it is characterized in that, described judge that the peripheral equipment accesses to the interface The step of include:
Judge whether the voltage reaches preset threshold value;
If so, it is determined as that the peripheral equipment accesses to the interface.
CN201611264113.8A 2016-12-30 2016-12-30 A kind of interface protector, mobile terminal and method Active CN108268091B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611264113.8A CN108268091B (en) 2016-12-30 2016-12-30 A kind of interface protector, mobile terminal and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611264113.8A CN108268091B (en) 2016-12-30 2016-12-30 A kind of interface protector, mobile terminal and method

Publications (2)

Publication Number Publication Date
CN108268091A true CN108268091A (en) 2018-07-10
CN108268091B CN108268091B (en) 2019-11-15

Family

ID=62753811

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611264113.8A Active CN108268091B (en) 2016-12-30 2016-12-30 A kind of interface protector, mobile terminal and method

Country Status (1)

Country Link
CN (1) CN108268091B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020019170A1 (en) * 2018-07-24 2020-01-30 华为技术有限公司 Terminal, and type c interface anti-corrosion method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202094400U (en) * 2011-06-17 2011-12-28 林松 Safety socket of electric shock prevention
CN203561972U (en) * 2013-11-01 2014-04-23 上海全一通讯技术有限公司 Gesture sensing system of handheld electronic equipment
CN203645722U (en) * 2013-12-24 2014-06-11 广东欧珀移动通信有限公司 Mobile terminal improving user experiences of data line insertion and extraction and system
CN204030150U (en) * 2014-07-21 2014-12-17 遵义师范学院 Infrared tube electric shock preventing socket circuit for household electrical appliance
CN204347067U (en) * 2014-10-28 2015-05-20 尚学友 A kind of identifiable design measurement socket

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202094400U (en) * 2011-06-17 2011-12-28 林松 Safety socket of electric shock prevention
CN203561972U (en) * 2013-11-01 2014-04-23 上海全一通讯技术有限公司 Gesture sensing system of handheld electronic equipment
CN203645722U (en) * 2013-12-24 2014-06-11 广东欧珀移动通信有限公司 Mobile terminal improving user experiences of data line insertion and extraction and system
CN204030150U (en) * 2014-07-21 2014-12-17 遵义师范学院 Infrared tube electric shock preventing socket circuit for household electrical appliance
CN204347067U (en) * 2014-10-28 2015-05-20 尚学友 A kind of identifiable design measurement socket

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020019170A1 (en) * 2018-07-24 2020-01-30 华为技术有限公司 Terminal, and type c interface anti-corrosion method
EP3812909A4 (en) * 2018-07-24 2021-07-07 Honor Device Co., Ltd. Terminal, and type c interface anti-corrosion method
RU2764146C1 (en) * 2018-07-24 2022-01-13 Хонор Дивайс Ко., Лтд. Terminal and type c interface corrosion protection method
US11947481B2 (en) 2018-07-24 2024-04-02 Honor Device Co., Ltd. Terminal and type C interface anti-corrosion method

Also Published As

Publication number Publication date
CN108268091B (en) 2019-11-15

Similar Documents

Publication Publication Date Title
CN106844265B (en) A kind of control method and mobile terminal of general-purpose serial bus USB interface
CN108268389A (en) The insertion detection method and mobile terminal of a kind of equipment
CN106648857B (en) A kind of open method and mobile terminal of the OTG function of mobile terminal
CN108536055B (en) A kind of mobile terminal and detection method
CN106527802A (en) Detection method and mobile terminal
CN107819922B (en) A kind of relaying method of adjustment, wireless headset and the mobile terminal of wireless headset
CN108268388A (en) A kind of Type-C interface protective circuits and method, mobile terminal
CN108268403A (en) A kind of Type-C interface protective circuits and method, mobile terminal
CN108833625A (en) sensor control circuit and electronic device
CN109088961A (en) sensor control circuit and electronic device
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
CN108268089A (en) A kind of interface protector, mobile terminal and method
CN108268395A (en) A kind of method and mobile terminal of data communication
CN108268090A (en) A kind of interface protector, mobile terminal and method
CN108270253A (en) A kind of charging method and mobile terminal
CN108268411A (en) The method and mobile terminal of a kind of data transmission
CN108268091B (en) A kind of interface protector, mobile terminal and method
CN106055071B (en) A kind of display control method and mobile terminal of notification message
CN106684967B (en) A kind of charging method and mobile terminal of mobile terminal
CN106878551A (en) A kind of power switch method and mobile terminal
CN107817896B (en) A kind of exchange method based on wireless headset, wireless headset and mobile terminal
CN107482736B (en) A kind of method for preventing USB interface short circuit from burning and electronic equipment
CN108270255B (en) A kind of charging method and mobile terminal
CN108268803A (en) A kind of interface protector, mobile terminal and method

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