CN107357747A - A kind of recognition methods of interfaces for external devices and mobile terminal - Google Patents

A kind of recognition methods of interfaces for external devices and mobile terminal Download PDF

Info

Publication number
CN107357747A
CN107357747A CN201710522510.9A CN201710522510A CN107357747A CN 107357747 A CN107357747 A CN 107357747A CN 201710522510 A CN201710522510 A CN 201710522510A CN 107357747 A CN107357747 A CN 107357747A
Authority
CN
China
Prior art keywords
voltage
magnitude
mobile terminal
value set
instruction
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
CN201710522510.9A
Other languages
Chinese (zh)
Other versions
CN107357747B (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 CN201710522510.9A priority Critical patent/CN107357747B/en
Publication of CN107357747A publication Critical patent/CN107357747A/en
Application granted granted Critical
Publication of CN107357747B publication Critical patent/CN107357747B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/385Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices

Landscapes

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

Abstract

The present invention provides a kind of interfaces for external devices and knows method for distinguishing and mobile terminal, is related to communication technical field, solves the problems, such as that existing accuracy when being communicatively coupled by USB is low.This method includes:Target voltage values are determined from default voltage value set according to preset rules, voltage value set includes at least one magnitude of voltage;Based on target voltage values default instruction of shaking hands is sent to external equipment;Detect whether to receive the confirmation instruction that external equipment is sent based on instruction of shaking hands;If receiving confirmation instruction, successful connection is confirmed.So, when connection failure, other magnitudes of voltage continued on in voltage value set send instruction of shaking hands to external equipment, to realize the external equipment that can connect different magnitudes of voltage, improve accuracy during usb communication connection.

Description

A kind of recognition methods of interfaces for external devices and mobile terminal
Technical field
The present invention relates to recognition methods and the mobile terminal of communication technical field, more particularly to a kind of interfaces for external devices.
Background technology
With the development of science and technology, the use of mobile terminal is also more and more extensive, for example, mobile phone, tablet personal computer (Tablet Personal Computer), laptop computer (Laptop Computer), personal digital assistant (personal Digital assistant, PDA), mobile Internet access device (Mobile Internet Device, MID) or wearable device (Wearable Device) etc..For more user-friendly mobile terminal, at present, frequently by USB (general serials Bus, Universal Serial Bus) mobile terminal is connected by connecting line with external equipment, such as OTG (On-The-Go) connections Line, external equipment have USB flash disk, mobile hard disk, key mouse, digital equipment etc..But because the impedance of different connecting lines is inconsistent, outside It is different to connect the parameter of equipment, high so as to cause voltage to float, the accuracy of communication connection is low.
The content of the invention
The embodiment of the present invention provides a kind of interfaces for external devices and knows method for distinguishing and mobile terminal, to solve existing pass through The problem of accuracy when USB is communicatively coupled is low.
In a first aspect, the embodiments of the invention provide a kind of interfaces for external devices to know method for distinguishing, applied to mobile terminal, Including:
Target voltage values are determined from default voltage value set according to preset rules, the voltage value set is included at least One magnitude of voltage;
Based on the target voltage values default instruction of shaking hands is sent to external equipment;
Detect whether to receive the confirmation instruction that the external equipment is sent based on the instruction of shaking hands;
If receiving the confirmation instruction, successful connection is confirmed.
Second aspect, the embodiment of the present invention also provide a kind of mobile terminal, including:
Determining module, for determining target voltage values, the voltage from default voltage value set according to preset rules Value set includes at least one magnitude of voltage;
Sending module, for sending default instruction of shaking hands to external equipment based on the target voltage values;
Detection module, referred to for detecting whether receiving the external equipment based on the confirmation that the instruction of shaking hands is sent Order;
Confirm module, if for receiving the confirmation instruction, confirm successful connection.
The third aspect, the embodiment of the present invention additionally provide a kind of mobile terminal, including processor, memory, are stored in institute The interfaces for external devices recognizer that can be run on memory and on the processor is stated, the interfaces for external devices identifies quilt Realize that above-mentioned interfaces for external devices knows method for distinguishing during the computing device.
Fourth aspect, also a kind of computer-readable recording medium of the embodiment of the present invention, the computer-readable recording medium On be stored with interfaces for external devices recognizer, the interfaces for external devices recognizer is realized above-mentioned outer when being executed by processor Connect equipment interface and know method for distinguishing.
In the embodiment of the present invention, target voltage values, the electricity are determined from default voltage value set according to preset rules Pressure value set includes at least one magnitude of voltage;Based on the target voltage values default instruction of shaking hands is sent to external equipment;Detection Whether the mobile terminal receives the confirmation instruction that the external equipment is sent based on the instruction of shaking hands;It is if described mobile whole Termination receives the confirmation instruction, confirms successful connection.So, when connection failure, its in voltage value set is continued on His magnitude of voltage sends instruction of shaking hands to external equipment, to realize the external equipment that can connect different magnitudes of voltage, improves USB progress Accuracy during communication connection.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, needed for being described below to the embodiment of the present invention The accompanying drawing to be used is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, For those of ordinary skill in the art, without having to pay creative labor, can also be obtained according to these accompanying drawings Obtain other accompanying drawings.
Fig. 1 is the schematic flow sheet for the interfaces for external devices knowledge method for distinguishing that the present invention applies example offer;
Fig. 2 is mobile terminal provided in an embodiment of the present invention and external equipment connection diagram;
Fig. 3 is the schematic flow sheet that interfaces for external devices provided in an embodiment of the present invention knows method for distinguishing;
Fig. 4 is the first schematic diagram of mobile terminal provided in an embodiment of the present invention;
Fig. 5 is the first schematic diagram of determining module in mobile terminal provided in an embodiment of the present invention;
Fig. 6 is the second schematic diagram of determining module in mobile terminal provided in an embodiment of the present invention;
Fig. 7 is the schematic diagram of the determination sub-module of mobile terminal kind provided in an embodiment of the present invention;
Fig. 8 is mobile terminal structure schematic diagram provided in an embodiment of the present invention;
Fig. 9 is the structure chart of mobile terminal provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme 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, rather than whole embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made Example, belongs to the scope of protection of the invention.
Referring to Fig. 1, Fig. 1 is the schematic flow sheet of the recognition methods of interfaces for external devices provided in an embodiment of the present invention, such as Shown in Fig. 1, comprise the following steps:
Step 101, target voltage values, the voltage value set are determined from default voltage value set according to preset rules Including at least one magnitude of voltage.
In the step, voltage value set includes multiple magnitudes of voltage, and target voltage is a magnitude of voltage in voltage value set, Target voltage values can be determined according to preset rules.The determination process of target voltage values can be by the way of poll i.e. The magnitude of voltage inquired about successively in voltage value set;The determination process of target voltage values can also be first according to magnitude of voltage logical address Or the successful connection number of magnitude of voltage is ranked up to each magnitude of voltage, target electricity is then determined according to the order of arrangement successively Pressure value.So, different magnitudes of voltage can be used to send instruction of shaking hands to external equipment, to complete mobile terminal and external equipment Be successfully connected, improve the accuracy of communication connection.
Step 102, sent based on the target voltage values to external equipment and preset instruction of shaking hands.
In the step, as shown in Fig. 2 mobile terminal is connected by data wire with external equipment, mobile terminal is set to external Available electricity, and data protocol transmission is carried out, wherein external equipment can be flash disk, mouse, keyboard etc..Control mobile terminal defeated Go out target voltage values, and instruction of shaking hands is sent to external equipment using target voltage values transmission Handshake Protocol, if the mesh Magnitude of voltage is marked within the range of voltage values of normal Handshake Protocol, mobile terminal can receives external equipment and is based on instruction of shaking hands The confirmation instruction of transmission, to confirm successful connection.For example, the range of voltage values of normal Handshake Protocol is 175mV~525mV, such as Fruit target voltage values are 300mV, then can realize shaking hands between mobile terminal and external equipment.If 250mV now be present Floating high voltage, i.e., 250mV offset voltage relative to the magnitude of voltage of normal Handshake Protocol be present, then actual magnitude of voltage is 550mV, it is not belonging in the range of voltage values of normal Handshake Protocol, then the connection failure between mobile terminal and external equipment.
Whether step 103, the detection mobile terminal receive the external equipment and shake hands what instruction was sent based on described Confirm instruction;
In the step, if the target voltage values in step 102 belong to the range of voltage values of normal Handshake Protocol, it can receive The confirmation instruction sent to external equipment based on the instruction of shaking hands, and perform the process of step 104.
If step 104, the mobile terminal receive the confirmation instruction, successful connection is confirmed.
In the step, if receiving confirmation instruction, then it represents that mobile terminal and external equipment successful connection, now can Carry out data transmission between mobile terminal and external equipment.If do not receive confirm instruction if repeat step 101 to Step 103, wherein, target voltage values are redefined when performing step 101, and before the target voltage values newly determined are replaced it Target voltage values, and the target voltage values for controlling newly to determine continue the operation of step 102.So, when connection failure, constantly Instruction of shaking hands is sent to external equipment using other magnitudes of voltage in voltage value set, different magnitudes of voltage can be connected to realize External equipment, improve accuracy during usb communication connection.
In the embodiment of the present invention, the mobile terminal for performing above-mentioned steps can be mobile phone, tablet personal computer (Tablet Personal Computer), laptop computer (Laptop Computer), personal digital assistant (personal digital Assistant, abbreviation PDA), mobile Internet access device (Mobile Internet Device, MID) or wearable device (Wearable Device) etc..
The recognition methods of the interfaces for external devices of the embodiment of the present invention, according to preset rules from default voltage value set Target voltage values are determined, the voltage value set includes at least one magnitude of voltage;Based on the target voltage values to external equipment Send default instruction of shaking hands;Detect whether the mobile terminal receives the external equipment based on the instruction transmission of shaking hands Confirm instruction;If the mobile terminal receives the confirmation instruction, confirm successful connection, otherwise, repeat above-mentioned steps. So, when connection failure, other magnitudes of voltage continued on in voltage value set send instruction of shaking hands to external equipment, with reality The external equipment of different magnitudes of voltage can be now connected, improves accuracy during usb communication connection.
Referring to Fig. 3, Fig. 3 is the flow signal of the recognition methods of another interfaces for external devices provided in an embodiment of the present invention Figure, as shown in figure 3, comprising the following steps:
Step 301, the logical address for obtaining each magnitude of voltage in the voltage value set.
In the step, each magnitude of voltage can correspond to a logical address, to be moved easily terminal according to logical address more Fresh target magnitude of voltage.
Step 302, the logical address sequence based on each magnitude of voltage are addressed, to determine the target voltage values.
In the step, the magnitude of voltage in the logical address exception call voltage value set of magnitude of voltage is as target voltage Value, and control and send instruction of shaking hands with the target voltage values, if sent in the external equipment that do not receive interior at regular intervals Confirmation instruction, then continue next addressing, to determine new target voltage values.Hereby, it is achieved that mesh is constantly adjusted during connection failure Magnitude of voltage is marked, until mobile terminal and external equipment successful connection.
Step 303, sent based on the target voltage values to external equipment and preset instruction of shaking hands.
In the step, as shown in Fig. 2 mobile terminal is connected by data wire with external equipment, mobile terminal is set to external Available electricity, and data protocol transmission is carried out, wherein external equipment can be flash disk, mouse, keyboard etc..Control mobile terminal defeated Go out target voltage values, and instruction of shaking hands is sent to external equipment using target voltage values transmission Handshake Protocol, if the mesh Magnitude of voltage is marked within the range of voltage values of normal Handshake Protocol, mobile terminal can receives external equipment and is based on instruction of shaking hands The confirmation instruction of transmission, to confirm successful connection.For example, the range of voltage values of normal Handshake Protocol is 175mV~525mV, such as Fruit target voltage values are 300mV, then can realize shaking hands between mobile terminal and external equipment.If 250mV now be present Floating high voltage be 250mV offset voltage relative to the magnitude of voltage of normal Handshake Protocol be present, then actual magnitude of voltage is 550mV, it is not belonging in the range of voltage values of normal Handshake Protocol, then the connection failure between mobile terminal and external equipment.
Step 304, detect whether to receive the confirmation instruction that the external equipment is sent based on the instruction of shaking hands;
In the step, if the target voltage values in step 303 belong to the range of voltage values of normal Handshake Protocol, it can receive The confirmation instruction sent to external equipment based on the instruction of shaking hands, and perform the process of step 305.
If step 305, receiving the confirmation instruction, successful connection is confirmed.
In the step, if receiving confirmation instruction, then it represents that mobile terminal and external equipment successful connection, now can Carry out data transmission between mobile terminal and external equipment.If do not receive confirm instruction if repeat step 301 to Step 304, wherein, perform step 301 and step 302 redefines target voltage values, and the target voltage values newly determined are replaced Alternatively preceding target voltage values, and the target voltage values for controlling newly to determine continue the operation of step 303.So, when connection is lost When losing, other magnitudes of voltage continued on in voltage value set send instruction of shaking hands to external equipment, can be connected not with realizing With the external equipment of magnitude of voltage, accuracy during usb communication connection is improved.
Optionally, described the step of target voltage values are determined from default voltage value set according to preset rules, including: Obtain the successful connection number of each magnitude of voltage in the voltage value set;According to the successful connection number of each magnitude of voltage Determine the target voltage values.
In the embodiment, screening target voltage values are carried out according to the screening strategy of the successful connection number of magnitude of voltage, its The mode of realization can screen successful connection number to be more than or equal to the magnitude of voltage of certain threshold value as voltage value set, so Determine target voltage values successively by way of addressing afterwards, so, the high efficiency of usb communication connection can be improved.
Optionally, the step of successful connection number according to each magnitude of voltage determines the target voltage values, Including:Successful connection number based on each magnitude of voltage carries out descending arrangement, to obtain first order order;Based on described First order order is inquired about successively, to obtain the target voltage values.
In the embodiment, by preferentially regarding the magnitude of voltage of successful connection often as target voltage values, then basis The descending arrangement screening magnitude of voltage of the successful connection number of magnitude of voltage, so as to reduce connection number, improves the height of usb communication connection Effect property.
Optionally, the step of confirmation successful connection, including:Confirm successful connection, and export default prompting message, institute Stating default prompting message includes following one or more:Voice message message, text prompt message and picture cues message.
The embodiment, when successful connection export voice, writings and image prompting message, remind customer mobile terminal with External equipment successful connection, there is good reminding effect, improve Consumer's Experience.
The interfaces for external devices of the embodiment of the present invention knows method for distinguishing, and when connection failure, electricity is inquired about using query strategy Magnitude of voltage in pressure value set sends instruction of shaking hands to external equipment, to realize the external equipment that can connect different magnitudes of voltage, Improve Accuracy and high efficiency during usb communication connection.
Referring to Fig. 4, Fig. 4 is a kind of mobile terminal 400 provided in an embodiment of the present invention, as shown in figure 4, mobile terminal 400 Including:
Determining module 401, for determining target voltage values, the electricity from default voltage value set according to preset rules Pressure value set includes at least one magnitude of voltage;
Sending module 402, for sending default instruction of shaking hands to external equipment based on the target voltage values;
Detection module 403, for detecting whether receiving the confirmation that the external equipment is sent based on the instruction of shaking hands Instruction;
Confirm module 404, if for receiving the confirmation instruction, confirm successful connection.
Optionally, as shown in figure 5, the determining module 401 includes:
First acquisition submodule 4011, for obtaining the logical address of each magnitude of voltage in the voltage value set;
Submodule 4012 is addressed, is addressed for the logical address sequence based on each magnitude of voltage, with described in determination Target voltage values.
Optionally, as shown in fig. 6, the determining module 401 includes:
Second acquisition submodule 4013, for obtaining the successful connection number of each magnitude of voltage in the voltage value set;
Determination sub-module 4014, for determining the target voltage according to the successful connection number of each magnitude of voltage Value.
Optionally, as shown in fig. 7, the determination sub-module 4014 includes:
Sequencing unit 40141, descending arrangement is carried out for the successful connection number based on each magnitude of voltage, to obtain First order order;
Query unit 40142, for being inquired about successively based on first order order, to obtain the target voltage Value.
Optionally, the confirmation module 404 is specifically used for:
Confirm successful connection, and export default prompting message, the default prompting message includes following a kind of or more Kind:
Voice message message, text prompt message and picture cues message.
Mobile terminal 400 also includes processor, memory, is stored on the memory and can transport on the processor Capable interfaces for external devices recognizer, realized when the interfaces for external devices recognizer is by the computing device Fig. 1 and Fig. 3 interfaces for external devices identification embodiment of the method each process, and can improve usb communication connection when accuracy and High efficiency, to avoid repeating, repeat no more here.
The embodiment of the present invention also includes computer-readable recording medium, and external set is stored with computer-readable recording medium Standby interface recognizer, the interfaces for external devices recognizer realize Fig. 1 and Fig. 3 interfaces for external devices when being executed by processor Each process of the embodiment of the method for identification, and identical technique effect can be reached, to avoid repeating, repeat no more here.Its In, described computer-readable recording medium, as read-only storage (Read-Only Memory, abbreviation ROM), arbitrary access are deposited Reservoir (Random Access Memory, abbreviation RAM), magnetic disc or CD etc..Referring to Fig. 8, Fig. 8 is that the present invention implements to provide A kind of mobile terminal structure chart, as shown in figure 8, mobile terminal 800 includes:At least one processor 801, memory 802, At least one network interface 804 and user interface 803.Each component in mobile terminal 800 is coupling in by bus system 805 Together.It is understood that bus system 805 is used to realize the connection communication between these components.Bus system 805 is total except data are included Outside line, in addition to power bus, controlling bus and status signal bus in addition.But for the sake of clear explanation, in fig. 8 will be each Kind of bus is all designated as bus system 805, wherein, user interface 803 can include display, keyboard or pointing device (for example, Mouse, trace ball (track ball), touch-sensitive plate or touch-screen etc..
It is appreciated that the memory 802 in the embodiment of the present invention can be volatile memory or nonvolatile memory, Or it may include both volatibility and nonvolatile memory.Wherein, nonvolatile memory can be read-only storage (Read- Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable Device (Erasable PROM, EPROM), Electrically Erasable Read Only Memory (Electrically EPROM, EEPROM) or Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), and it is used as outside high Speed caching.By exemplary but be not restricted explanation, the RAM of many forms can use, such as static RAM (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links Dynamic random access memory (Synchlink DRAM, SLDRAM) and direct rambus random access memory (Direct Rambus RAM, DRRAM).The memory 802 of system and method described herein be intended to including but not limited to these and it is any its It is adapted to the memory of type.
In some embodiments, memory 802 stores following element, can perform module or data structure, or Their subset of person, or their superset:Operating system 8021 and application program 8022.
Wherein, operating system 8021, comprising various system programs, such as ccf layer, core library layer, driving layer etc., it is used for Realize various basic businesses and the hardware based task of processing.Application program 8022, include various application programs, such as media Player (Media Player), browser (Browser) etc., for realizing various applied business.Realize the embodiment of the present invention The program of method may be embodied in application program 8022.
In embodiments of the present invention, by calling program or the instruction of the storage of memory 802, specifically, can be application The program stored in program 8022 or instruction, processor 801 are used for:
Target voltage values are determined from default voltage value set according to preset rules, the voltage value set is included at least One magnitude of voltage;Based on the target voltage values default instruction of shaking hands is sent to external equipment;Detect whether to receive outside described Connect the confirmation instruction that equipment is sent based on the instruction of shaking hands;If receiving the confirmation instruction, successful connection is confirmed.
The method that the embodiments of the present invention disclose can apply in processor 801, or be realized by processor 801. Processor 801 is probably a kind of IC chip, has the disposal ability of signal.In implementation process, the above method it is each Step can be completed by the integrated logic circuit of the hardware in processor 801 or the instruction of software form.Above-mentioned processing Device 801 can be general processor, digital signal processor (Digital Signal Processor, DSP), special integrated electricity Road (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field Programmable Gate Array, FPGA) either other PLDs, discrete gate or transistor logic, Discrete hardware components.It can realize or perform disclosed each method, step and the logic diagram in the embodiment of the present invention.It is general Processor can be microprocessor or the processor can also be any conventional processor etc..With reference to institute of the embodiment of the present invention The step of disclosed method, can be embodied directly in hardware decoding processor and perform completion, or with the hardware in decoding processor And software module combination performs completion.Software module can be located at random access memory, flash memory, read-only storage, may be programmed read-only In the ripe storage medium in this area such as memory or electrically erasable programmable memory, register.The storage medium is located at Memory 802, processor 801 read the information in memory 802, with reference to the step of its hardware completion above method.Specifically, Interfaces for external devices recognizer is stored with the computer-readable recording medium, interfaces for external devices recognizer is by processor 801 realize each step of the embodiment of the method such as the identification of above-mentioned interfaces for external devices when performing.
It is understood that embodiments described herein can use hardware, software, firmware, middleware, microcode or its Combine to realize.Realized for hardware, processing unit can be realized in one or more application specific integrated circuit (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general processor, In controller, microcontroller, microprocessor, other electronic units for performing the application function or its combination.
Realized for software, this paper skill can be realized by performing the module (such as process, function etc.) of this paper functions Art.Software code is storable in memory and passes through computing device.Memory can be within a processor or outside processor Realize in portion.
Optionally, processor 801 performs described determines target voltage according to preset rules from default voltage value set The step of value, including:Obtain the logical address of each magnitude of voltage in the voltage value set;Based on patrolling for each magnitude of voltage Collect address sequence to be addressed, to determine the target voltage values.
Optionally, processor 801 performs described determines target voltage according to preset rules from default voltage value set The step of value, including:Obtain the successful connection number of each magnitude of voltage in the voltage value set;According to each magnitude of voltage Successful connection number determine the target voltage values.
Optionally, processor 801 performs the successful connection number according to each magnitude of voltage and determines the target The step of magnitude of voltage, including:Successful connection number based on each magnitude of voltage carries out descending arrangement, to obtain first order Sequentially;Inquired about successively based on first order order, to obtain the target voltage values.
Optionally, processor 801 performs the step of confirmation successful connection, including:Confirm successful connection, and export pre- If prompting message, the default prompting message includes following one or more:Voice message message, text prompt message and Picture cues message.
Mobile terminal 800 can realize each process of interfaces for external devices knowledge method for distinguishing in previous embodiment, to keep away Exempt to repeat, repeat no more here.And mobile terminal 800 can improve Accuracy and high efficiency when usb communication connects.
Referring to Fig. 9, Fig. 9 is the structure chart for the mobile terminal that the present invention implements offer, group in above-described embodiment can be realized The details for the method that part is shown, and reach identical effect.As shown in figure 9, mobile terminal 900 includes radio frequency (Radio Frequency, RF) circuit 910, memory 920, input block 930, display unit 940, processor 950, voicefrequency circuit 960, Communication module 970, power supply 980 and modulus detection circuit 990, wherein analog to digital conversion circuit are used to convert analog signals into numeral Signal output is to processor 950.
Wherein, input block 930 can be used for the numeral or character information for receiving user's input, and generation and mobile terminal The signal input that 900 user is set and function control is relevant.Specifically, in the embodiment of the present invention, the input block 930 can With including contact panel 931.Contact panel 931, also referred to as touch-screen, collect touch operation of the user on or near it (for example user uses the operations of any suitable object or annex on contact panel 931 such as finger, stylus), and according to advance The formula of setting drives corresponding attachment means.Optionally, contact panel 931 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, Give the processor 950 again, and the order sent of reception processing device 950 and can be performed.Furthermore, it is possible to using resistance-type, The polytypes such as condenser type, infrared ray and surface acoustic wave realize contact panel 931.Except contact panel 931, input block 930 can also include other input equipments 932, and other input equipments 932 can include but is not limited to physical keyboard, function key One or more in (such as volume control button, switch key etc.), trace ball, mouse, action bars etc..
Wherein, display unit 940 can be used for display by the information of user's input or be supplied to information and the movement of user The various menu interfaces of terminal 900.Display unit 940 may include display panel 941, optionally, can use LCD or organic hairs The forms such as optical diode (Organic Light-Emitting Diode, OLED) configure display panel 941.
It should be noted that contact panel 931 can cover display panel 941, touch display screen is formed, when the touch display screen is examined After measuring the touch operation on or near it, processor 950 is sent to determine the type of touch event, is followed by subsequent processing device 950 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 conventional control viewing area.The Application Program Interface viewing area And arrangement mode of the conventional 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 element such as the icon comprising at least one application program and/or widget desktop controls.The Application Program Interface viewing area It can also be the empty interface not comprising any content.The conventional control viewing area is used to show the higher control of utilization rate, for example, Application icons such as settings button, interface numbering, scroll bar, phone directory icon etc..
Wherein processor 950 is the control centre of mobile terminal 900, utilizes various interfaces and connection whole mobile phone Various pieces, by running or performing the software program and/or module that are stored in first memory 921, and call storage Data in second memory 922, the various functions and processing data of mobile terminal 900 are performed, so as to mobile terminal 900 Carry out integral monitoring.Optionally, processor 950 may include one or more processing units.
In embodiments of the present invention, mobile terminal 900 also includes:Store the first memory 921 or second memory 922 Interfaces for external devices recognizer that is interior and being run on processor 950, interfaces for external devices recognizer is by processor 950 Following steps are realized during execution:Target voltage values, the magnitude of voltage are determined from default voltage value set according to preset rules Set includes at least one magnitude of voltage;Based on the target voltage values default instruction of shaking hands is sent to external equipment;Described in detection Whether mobile terminal receives the confirmation instruction that the external equipment is sent based on the instruction of shaking hands;If the mobile terminal connects The confirmation instruction is received, confirms successful connection.
Optionally, processor 950 performs described determines target voltage according to preset rules from default voltage value set The step of value, including:Obtain the logical address of each magnitude of voltage in the voltage value set;Based on patrolling for each magnitude of voltage Collect address sequence to be addressed, to determine the target voltage values.
Optionally, processor 950 performs described determines target voltage according to preset rules from default voltage value set The step of value, including:Obtain the successful connection number of each magnitude of voltage in the voltage value set;According to each magnitude of voltage Successful connection number determine the target voltage values.
Optionally, processor 950 performs the successful connection number according to each magnitude of voltage and determines the target The step of magnitude of voltage, including:Successful connection number based on each magnitude of voltage carries out descending arrangement, to obtain first order Sequentially;Inquired about successively based on first order order, to obtain the target voltage values.
Optionally, processor 950 performs the step of confirmation successful connection, including:Confirm successful connection, and export pre- If prompting message, the default prompting message includes following one or more:Voice message message, text prompt message and Picture cues message.
Mobile terminal 900 can realize each process of interfaces for external devices knowledge method for distinguishing in previous embodiment, to keep away Exempt to repeat, repeat no more here.And mobile terminal 900 can improve Accuracy and high efficiency when usb communication connects.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein Member and algorithm steps, it can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually Performed with hardware or software mode, application-specific and design constraint depending on technical scheme.Professional and technical personnel Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed The scope of the present 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, the corresponding process in preceding method embodiment is may be referred to, will not be repeated here.
In embodiment provided herein, it should be understood that disclosed apparatus and method, others can be passed through Mode is realized.For example, device embodiment described above is only schematical, for example, the division of the unit, is only A kind of division of logic function, can there is an other dividing mode when actually realizing, 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, shown or discussed is mutual Between coupling or direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, device or unit Connect, can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize scheme of the embodiment of the present invention according to the actual needs Purpose.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.
If the function is realized in the form of SFU software functional unit and is used as independent production marketing or in use, can be with It is stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words The part to be contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter Calculation machine software product is stored in a storage medium, including some instructions are causing a computer equipment (can be People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the present invention. And foregoing storage medium includes:USB flash disk, mobile hard disk, ROM, RAM, magnetic disc or CD etc. are various can be with store program codes Medium.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be defined by scope of the claims.

Claims (12)

1. a kind of interfaces for external devices knows method for distinguishing, applied to mobile terminal, it is characterised in that including:
Target voltage values are determined from default voltage value set according to preset rules, the voltage value set includes at least one Magnitude of voltage;
Based on the target voltage values default instruction of shaking hands is sent to external equipment;
Detect whether to receive the confirmation instruction that the external equipment is sent based on the instruction of shaking hands;
If receiving the confirmation instruction, successful connection is confirmed.
2. according to the method for claim 1, it is characterised in that it is described according to preset rules from default voltage value set The step of determining target voltage values, including:
Obtain the logical address of each magnitude of voltage in the voltage value set;
Logical address sequence based on each magnitude of voltage is addressed, to determine the target voltage values.
3. according to the method for claim 1, it is characterised in that it is described according to preset rules from default voltage value set The step of determining target voltage values, including:
Obtain the successful connection number of each magnitude of voltage in the voltage value set;
The target voltage values are determined according to the successful connection number of each magnitude of voltage.
4. according to the method for claim 3, it is characterised in that the successful connection number according to each magnitude of voltage The step of determining the target voltage values, including:
Successful connection number based on each magnitude of voltage carries out descending arrangement, to obtain first order order;
Inquired about successively based on first order order, to obtain the target voltage values.
5. according to the method for claim 1, it is characterised in that described the step of confirming successful connection, including:
Confirm successful connection, and export default prompting message, the default prompting message includes following one or more:
Voice message message, text prompt message and picture cues message.
A kind of 6. mobile terminal, it is characterised in that including:
Determining module, for determining target voltage values, the magnitude of voltage collection from default voltage value set according to preset rules Conjunction includes at least one magnitude of voltage;
Sending module, for sending default instruction of shaking hands to external equipment based on the target voltage values;
Detection module, for detecting whether receiving the confirmation instruction that the external equipment is sent based on the instruction of shaking hands;
Confirm module, if for receiving the confirmation instruction, confirm successful connection.
7. mobile terminal according to claim 6, it is characterised in that the determining module includes:
First acquisition submodule, for obtaining the logical address of each magnitude of voltage in the voltage value set;
Submodule is addressed, is addressed for the logical address sequence based on each magnitude of voltage, to determine the target voltage Value.
8. mobile terminal according to claim 6, it is characterised in that the determining module includes:
Second acquisition submodule, for obtaining the successful connection number of each magnitude of voltage in the voltage value set;
Determination sub-module, for determining the target voltage values according to the successful connection number of each magnitude of voltage.
9. mobile terminal according to claim 8, it is characterised in that the determination sub-module includes:
Sequencing unit, descending arrangement is carried out for the successful connection number based on each magnitude of voltage, to obtain first order Sequentially;
Query unit, for being inquired about successively based on first order order, to obtain the target voltage values.
10. mobile terminal according to claim 6, it is characterised in that the confirmation module is specifically used for:
Confirm successful connection, and export default prompting message, the default prompting message includes following one or more:
Voice message message, text prompt message and picture cues message.
11. a kind of mobile terminal, it is characterised in that including processor, memory is stored on the memory and can be described The interfaces for external devices recognizer run on processor, realized when the interfaces for external devices identification is by the computing device The step of interfaces for external devices as any one of claim 1 to 5 knows method for distinguishing.
12. a kind of computer-readable recording medium, it is characterised in that external set is stored with the computer-readable recording medium Standby interface recognizer, realized when the interfaces for external devices recognizer is executed by processor as any in claim 1 to 5 The step of interfaces for external devices described in knows method for distinguishing.
CN201710522510.9A 2017-06-30 2017-06-30 Identification method of external equipment interface and mobile terminal Active CN107357747B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710522510.9A CN107357747B (en) 2017-06-30 2017-06-30 Identification method of external equipment interface and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710522510.9A CN107357747B (en) 2017-06-30 2017-06-30 Identification method of external equipment interface and mobile terminal

Publications (2)

Publication Number Publication Date
CN107357747A true CN107357747A (en) 2017-11-17
CN107357747B CN107357747B (en) 2020-02-28

Family

ID=60274137

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710522510.9A Active CN107357747B (en) 2017-06-30 2017-06-30 Identification method of external equipment interface and mobile terminal

Country Status (1)

Country Link
CN (1) CN107357747B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110016334A1 (en) * 2009-07-20 2011-01-20 Texas Instruments Incorporated Auto-Detect Polling for Correct Handshake to USB Client
US20130002192A1 (en) * 2011-06-30 2013-01-03 Standard Microsystems Corporation Method and system for sampling multiple profiles in a charging port without host intervention
CN104092274A (en) * 2014-07-29 2014-10-08 深圳市至高通信技术发展有限公司 Intelligent charger with output voltage changing function
CN206099470U (en) * 2016-10-26 2017-04-12 深圳市龙威盛电子科技有限公司 A conversion equipment for quick charger
CN106849270A (en) * 2017-03-31 2017-06-13 深圳市金立通信设备有限公司 Terminal and charging method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110016334A1 (en) * 2009-07-20 2011-01-20 Texas Instruments Incorporated Auto-Detect Polling for Correct Handshake to USB Client
US20130002192A1 (en) * 2011-06-30 2013-01-03 Standard Microsystems Corporation Method and system for sampling multiple profiles in a charging port without host intervention
CN104092274A (en) * 2014-07-29 2014-10-08 深圳市至高通信技术发展有限公司 Intelligent charger with output voltage changing function
CN206099470U (en) * 2016-10-26 2017-04-12 深圳市龙威盛电子科技有限公司 A conversion equipment for quick charger
CN106849270A (en) * 2017-03-31 2017-06-13 深圳市金立通信设备有限公司 Terminal and charging method

Also Published As

Publication number Publication date
CN107357747B (en) 2020-02-28

Similar Documents

Publication Publication Date Title
CN107678641A (en) A kind of method and mobile terminal into target display interface
CN106648416A (en) Method for starting application and mobile terminal
CN106504777A (en) A kind of processing method of recording data and mobile terminal
CN107179865A (en) A kind of page switching method and terminal
CN106445235A (en) Touch starting position identification method and mobile terminal
CN106973167A (en) A kind of income prompting method and mobile terminal
CN106527906A (en) Picture capture method and mobile terminal
CN107172346A (en) A kind of weakening method and mobile terminal
CN105243345A (en) Accidental touch preventing method for electronic equipment and electronic equipment
CN106951165A (en) A kind of word editing method and mobile terminal
CN107404577A (en) A kind of image processing method, mobile terminal and computer-readable recording medium
CN106354303A (en) Photographed method of mobile terminal and mobile terminal
CN107423018A (en) A kind of multi-screen display method and terminal
CN106851001A (en) A kind of information processing method and mobile terminal
CN107479822A (en) A kind of data inputting method and terminal
CN107329586A (en) A kind of data inputting method, mobile terminal and computer-readable recording medium
CN106911897A (en) A kind of determination method and mobile terminal for shooting focus
CN106557259A (en) A kind of operational approach and mobile terminal of mobile terminal
CN106874046A (en) The operating method and mobile terminal of a kind of application program
CN107194907A (en) A kind of sectional drawing synthetic method and mobile terminal
CN107422970A (en) A kind of unlocking method and mobile terminal
CN106775378A (en) A kind of method and mobile terminal for determining input method candidate word
CN106231113A (en) A kind of Dialing Method and mobile terminal
CN107329687A (en) The display methods and mobile terminal of a kind of virtual input keyboard
CN107454321A (en) A kind of image pickup method, mobile terminal and computer-readable recording medium

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