CN107341122A - Equipment access processing method, equipment access processing unit and mobile terminal - Google Patents
Equipment access processing method, equipment access processing unit and mobile terminal Download PDFInfo
- Publication number
- CN107341122A CN107341122A CN201710610576.3A CN201710610576A CN107341122A CN 107341122 A CN107341122 A CN 107341122A CN 201710610576 A CN201710610576 A CN 201710610576A CN 107341122 A CN107341122 A CN 107341122A
- Authority
- CN
- China
- Prior art keywords
- peripheral interface
- impedance characteristic
- equipment
- database
- mobile terminal
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/40—Bus structure
- G06F13/4063—Device-to-bus coupling
- G06F13/4068—Electrical coupling
- G06F13/4086—Bus impedance matching, e.g. termination
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/16—Sound input; Sound output
- G06F3/162—Interface to dedicated audio devices, e.g. audio drivers, interface to CODECs
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- General Health & Medical Sciences (AREA)
- Human Computer Interaction (AREA)
- Computer Hardware Design (AREA)
- Telephone Function (AREA)
Abstract
The invention discloses a kind of equipment access processing method, equipment access processing unit, mobile terminal and computer-readable recording medium, wherein, the equipment access processing method includes:Receiving device feature obtains instruction;Under the instruction that the equipment feature obtains instruction, the impedance characteristic of the Peripheral Interface of presently described mobile terminal is obtained, wherein, the Peripheral Interface is used to connect external equipment;The impedance characteristic is stored in default database;When the interruption related to the Peripheral Interface produces, the impedance characteristic of the Peripheral Interface is detected;If the currently detected impedance characteristic in the database be present, it is determined that recognize external equipment and accessed from the Peripheral Interface.Technical scheme provided by the invention can effectively improve the access recognition capability of external equipment by using mobile terminal.
Description
Technical field
The present invention relates to technical field of mobile terminals, and in particular to a kind of equipment access processing method, equipment access processing
Device, mobile terminal and computer-readable recording medium.
Background technology
With the development of mobile Internet, social degree of opening also more and more higher, user passes through mobile terminal (such as hand
Machine, tablet personal computer, wearable device etc.) many things can be done, for example listen music.
Generally, the production firm of mobile terminal can be that each mobile terminal matches corresponding earphone, but often user understands root
According to the demand optional equipment earphone of oneself, for example, the earphone of the uncomfortable ear type of some users and be accustomed to the earphone of ear-shield type, then
May optional equipment ear-shield type earphone, or user is desirable for the ear of different type or model in some cases
Machine, or production firm matched earphone damage after, user need to buy new matching earphone.
Because existing earphone species are various, therefore, easily there are indivedual earphones (wired earphone) in access mobile terminal
Earphone interface after, situation about can not be recognized by mobile terminal causes to perplex to user.
The content of the invention
In view of this, the present invention provides a kind of equipment access processing method, equipment access processing unit, mobile terminal and meter
Calculation machine readable storage medium storing program for executing, to improve the access recognition capability of external equipment by using mobile terminal.
First aspect present invention provides equipment access processing method, including:
Receiving device feature obtains instruction;
Under the instruction that the equipment feature obtains instruction, the impedance for obtaining the Peripheral Interface of presently described mobile terminal is special
Sign, wherein, the Peripheral Interface is used to connect external equipment;
The impedance characteristic is stored in default database;
When the interruption related to the Peripheral Interface produces, the impedance characteristic of the Peripheral Interface is detected;
If the currently detected impedance characteristic in the database be present, it is determined that recognize external equipment from described
Peripheral Interface accesses.
It is described to obtain presently described mobile terminal in the first possible implementation based on first aspect present invention
Peripheral Interface impedance characteristic, including:
The magnitude of voltage of the mic pins of presently described Peripheral Interface is detected, using the magnitude of voltage detected as presently described shifting
The impedance characteristic of the Peripheral Interface of dynamic terminal.
The first possible implementation based on first aspect present invention, in second of possible implementation, institute
State and the impedance characteristic is stored in default database, including:
The voltage range for including the magnitude of voltage based on the magnitude of voltage generation detected, stores institute in default database
State voltage range.
Based on first aspect present invention, the either possible implementation of the first of first aspect present invention or this hair
Second of possible implementation of bright first aspect, in the third possible implementation, in database described in storage
Impedance characteristic, also include before:
The facility information of the external equipment of input is received, wherein, the facility information includes:Device type;
It is described the impedance characteristic is stored in default database to include:It is outer by what is be currently received in database
If the facility information of equipment and the impedance characteristic associated storage;
The determination recognizes the external equipment from Peripheral Interface access, is:Based on currently detected impedance
The facility information of feature association, accessed it is determined that recognizing counterpart external device from the Peripheral Interface.
Second aspect of the present invention provides a kind of equipment access processing unit, including:
First receiving unit, obtain and instruct for receiving device feature;
Acquiring unit, the equipment feature for being received in first receiving unit are obtained under the instruction of instruction, obtained
The impedance characteristic of the Peripheral Interface of presently described mobile terminal, wherein, the Peripheral Interface is used to connect external equipment;
Memory cell, the impedance characteristic got for storing the acquiring unit in default database;
Detection unit, for when the interruption generation related to the Peripheral Interface, detecting the impedance of the Peripheral Interface
Feature;
Determining unit, for when the currently detected impedance characteristic of the detection unit in the database being present
When, accessed it is determined that recognizing external equipment from the Peripheral Interface.
Based on second aspect of the present invention, in the first possible implementation, the acquiring unit is specifically used for:Detection
The magnitude of voltage of the mic pins of presently described Peripheral Interface, the peripheral hardware using the magnitude of voltage detected as presently described mobile terminal
The impedance characteristic of interface.
The first possible implementation based on second aspect of the present invention, in second of possible implementation, institute
Stating memory cell includes:
Generation unit, the voltage model that the magnitude of voltage generation for being detected based on the acquiring unit includes the magnitude of voltage
Enclose;
Sub- memory cell, for storing the voltage range in default database.
Based on second aspect of the present invention, the either possible implementation of the first of second aspect of the present invention or this hair
Second of possible implementation of bright second aspect, in the third possible implementation, the equipment access processing dress
Putting also includes:
Second access unit, the facility information of the external equipment for receiving input, wherein, the facility information includes:
Device type;
The memory cell is specifically used for:In database, the peripheral hardware that presently described second receiving unit receives is set
The impedance characteristic associated storage that standby facility information is got with presently described acquiring unit;
The determining unit is specifically used for:When the currently detected resistance of the detection unit in the database being present
During anti-feature, based on the facility information associated with the currently detected impedance characteristic, it is determined that recognizing counterpart external device
Accessed from the Peripheral Interface.
Third aspect present invention provides a kind of mobile terminal, including memory, and processor and storage are on a memory and can
The computer program run on a processor, realize during above-mentioned computing device above computer program above-mentioned first aspect or
The equipment access processing method referred in any possible implementation of above-mentioned first aspect.
Fourth aspect present invention provides a kind of computer-readable recording medium, is stored with the computer-readable recording medium
Computer program, above computer program realize any of above-mentioned first aspect or above-mentioned first aspect when being executed by processor
The equipment access processing method referred in possible implementation.
Therefore in the present invention program when the interruption related to the Peripheral Interface of mobile terminal produces, based on current
The impedance characteristic of the Peripheral Interface identifies whether have external equipment to be accessed from the Peripheral Interface, therefore, can be in advance in database
Store common impedance characteristic so that can be identified when common external equipment accesses from the Peripheral Interface.In addition, this hair
Bright scheme will obtain impedance characteristic and the deposit of the Peripheral Interface of current mobile terminal when receiving the acquisition instruction of equipment feature
In database, therefore user can obtain instruction after external equipment is accessed into the Peripheral Interface by inputting the said equipment feature
Actively acquisition and storage of the triggering to the impedance characteristic of Peripheral Interface so that when the external equipment subsequently accesses from the Peripheral Interface
It can be identified, so as to effectively increase the access recognition capability of external equipment by using mobile terminal.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, without having to pay creative labor, may be used also
To obtain other accompanying drawings according to these accompanying drawings.
Fig. 1 is equipment access processing method one embodiment schematic flow sheet provided by the invention;
Fig. 2 is that equipment provided by the invention accesses processing unit one embodiment structural representation;
Fig. 3 is mobile terminal one embodiment structural representation provided by the invention.
Embodiment
To enable goal of the invention, feature, the advantage of the present invention more obvious and understandable, below in conjunction with the present invention
Accompanying drawing in embodiment, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described reality
It is only part of the embodiment of the present invention to apply example, and not all embodiments.Based on the embodiment in the present invention, the common skill in this area
The every other embodiment that art personnel are obtained under the premise of creative work is not made, belong to the model that the present invention protects
Enclose.
A kind of equipment access processing method provided in an embodiment of the present invention is described below, referring to Fig. 1, of the invention
Equipment access processing method in embodiment includes:
Step 101, receiving device feature obtain instruction;
In the embodiment of the present invention, the input interface that equipment feature obtains instruction can be provided the user, the input interface can
To show as the default virtual key in the default application interface of mobile terminal, or, the input interface can also show as position
In the default virtual key of mobile terminal main interface, or, the input interface can also show as a physical button, not do herein
Limit.User can be inputted the said equipment feature by the input interface and obtain instruction, the execution of triggering following step.
Step 102, under the instruction that the said equipment feature obtains instruction, obtain the Peripheral Interface of current above-mentioned mobile terminal
Impedance characteristic;
In the embodiment of the present invention, Peripheral Interface is the interface for connecting external equipment, so that earphone, self-shooting bar etc. are outside
Equipment can be connected by the Peripheral Interface with mobile terminal.
In a step 102, the impedance characteristic for obtaining the Peripheral Interface of current above-mentioned mobile terminal (namely obtains above-mentioned peripheral hardware
The real-time impedance characteristic of interface).
Optionally, the impedance characteristic of the current Peripheral Interface of above-mentioned mobile terminal of above-mentioned acquisition includes:Detection is current above-mentioned
The magnitude of voltage of the mic pins of Peripheral Interface, the resistance using the magnitude of voltage detected as the Peripheral Interface of current above-mentioned mobile terminal
Anti- feature.Specifically, mic pins (namely the microphone of the current above-mentioned Peripheral Interface of ADC voltage detection methods detection can be used
Pin) magnitude of voltage.
Certainly, in the embodiment of the present invention, other manner can also be used to obtain the Peripheral Interface of current above-mentioned mobile terminal
Impedance characteristic, for example, it is also possible to the magnitude of voltage of the mic pins of current above-mentioned Peripheral Interface be detected, based on the voltage detected
It is worth computing impedance value, the impedance characteristic using the impedance value being calculated as the Peripheral Interface of current above-mentioned mobile terminal.This hair
Bright embodiment is not defined to the specific implementation of the impedance characteristic for the Peripheral Interface for obtaining current above-mentioned mobile terminal.
Step 103, above-mentioned impedance characteristic is stored in default database;
In the embodiment of the present invention, the impedance characteristic that step 102 is obtained is stored in default database.Further, in step
In the case that the impedance characteristic of rapid 102 detection is magnitude of voltage, it is contemplated that magnitude of voltage there may exist floating, therefore, in step 103
In, the voltage range for including the magnitude of voltage can be first generated on the basis of the magnitude of voltage that step 102 detects, by the voltage range
It is stored in above-mentioned database.Specifically, step 103 may include:Included based on the magnitude of voltage generation that step 102 detects above-mentioned
The voltage range of magnitude of voltage, above-mentioned voltage range is stored in default database.Optionally, it is above-mentioned based on the voltage detected
Voltage range of the value generation comprising above-mentioned magnitude of voltage includes:The magnitude of voltage detected is subtracted into default first deviation, obtained
The minimum value of voltage range;The magnitude of voltage detected is added into default second deviation, obtains the maximum of voltage range;Base
In obtain above-mentioned minimum value and above-mentioned maximum generation include above-mentioned magnitude of voltage voltage range.Wherein, above-mentioned first deviation
Can be with identical with above-mentioned second deviation, can also be different, it can specifically be set according to the actual requirements.
In the embodiment of the present invention, the normal impedance feature of Peripheral Interface can be stored in above-mentioned database in advance, with after an action of the bowels
Continue and can be directly identified in the Peripheral Interface of common or standard external equipment access mobile terminal, without user actively
Trigger the acquisition and storage of impedance characteristic.Wherein, the normal impedance feature of above-mentioned Peripheral Interface refers to common or standard outer
If equipment accesses the Peripheral Interface of mobile terminal, the impedance characteristic of the Peripheral Interface.
Step 104, when the interruption related to above-mentioned Peripheral Interface produces, detect the impedance characteristic of above-mentioned Peripheral Interface;
In the embodiment of the present invention, when the interruption related to above-mentioned Peripheral Interface produces, show may currently there is outside to set
It is standby to access above-mentioned Peripheral Interface, but not can determine that the interruption must be caused by external equipment accesses above-mentioned Peripheral Interface.
Now detect the impedance characteristic of above-mentioned Peripheral Interface, such as the magnitude of voltage of the mic pins of the current above-mentioned Peripheral Interface of detection.
It should be noted that the type of the impedance characteristic detected at step 104 and impedance acquired in step 102
The type of feature is consistent, if for example, step 102 obtain impedance characteristic be mic pins magnitude of voltage, accordingly, step 104
The impedance characteristic detected is also the magnitude of voltage of mic pins.
If currently detected impedance characteristic be present in step 105, above-mentioned database, it is determined that recognize external equipment from
Above-mentioned Peripheral Interface access;
, can when the impedance characteristic that step 104 detects can be found in above-mentioned database in the embodiment of the present invention
Accessed it is determined that recognizing external equipment from above-mentioned Peripheral Interface.So that impedance characteristic is magnitude of voltage as an example, if being deposited in above-mentioned database
Store up following voltage range:[1.2,1.5], [1.7,1.8], the magnitude of voltage that step 104 detects is 1.3, because step 104 detects
The magnitude of voltage arrived is in the range of [1.2,1.5], then it is assumed that currently detected impedance characteristic in above-mentioned database be present, now may be used
Accessed it is determined that recognizing external equipment from above-mentioned Peripheral Interface.
Further, in the embodiment of the present invention, user by equipment feature except that can obtain instruction triggers impedance characteristic
Outside obtaining and storing, the facility information (such as device type, model etc.) of accessed external equipment can also be inputted, so as to
By impedance characteristic and the facility information associated storage of counterpart external device.Specifically, it can also include before step 103:Connect
The facility information of the external equipment of input is received, wherein, the said equipment information includes:Device type, it is, of course, also possible to including equipment
Model or other information.Further, step 103 includes:In database, by the facility information for the peripheral apparatus being currently received
With above-mentioned impedance characteristic associated storage.In step 105, above-mentioned determination recognizes sets from the outside of above-mentioned Peripheral Interface access
It is standby, be:Based on the facility information associated with currently detected impedance characteristic, it is determined that recognizing counterpart external device from above-mentioned outer
If interface accesses.
It should be noted that the equipment access processing method in the embodiment of the present invention can be applied to equipment access processing unit
In, the said equipment access processing unit can be integrated in mobile terminal (such as mobile phone, tablet personal computer etc.) or miscellaneous equipment, herein
It is not construed as limiting.
Therefore in the embodiment of the present invention when the interruption related to the Peripheral Interface of mobile terminal produces, based on working as
The impedance characteristic of the preceding Peripheral Interface identifies whether have external equipment to be accessed from the Peripheral Interface, therefore, can be in advance in database
The common impedance characteristic of middle storage so that can be identified when common external equipment accesses from the Peripheral Interface.In addition, this
Scheme of the invention by the impedance characteristic for the Peripheral Interface for obtaining current mobile terminal and is deposited when receiving the acquisition instruction of equipment feature
Enter in database, therefore user can be referred to after external equipment is accessed into the Peripheral Interface by inputting the said equipment feature and obtaining
Order actively acquisition and storage of the triggering to the impedance characteristic of Peripheral Interface so that the external equipment subsequently accesses from the Peripheral Interface
When can be identified, so as to effectively increase the access recognition capability of external equipment by using mobile terminal.
Embodiment two
The embodiment of the present invention also provides a kind of equipment access processing unit, as shown in Fig. 2 the equipment in the embodiment of the present invention
Access processing unit 200 includes:
First receiving unit 201, obtain and instruct for receiving device feature;
Acquiring unit 202, the equipment feature for being received in the first receiving unit 201 are obtained under the instruction of instruction, obtained
The impedance characteristic of the Peripheral Interface of presently described mobile terminal is taken, wherein, the Peripheral Interface is used to connect external equipment;
Memory cell 203, the impedance characteristic got for storing acquiring unit 202 in default database;
Detection unit 204, for when the interruption generation related to the Peripheral Interface, detecting the resistance of the Peripheral Interface
Anti- feature;
Determining unit 205, for when the currently detected impedance characteristic of detection unit 204 in the database being present
When, accessed it is determined that recognizing external equipment from the Peripheral Interface.
Optionally, acquiring unit 202 is specifically used for:The magnitude of voltage of the mic pins of presently described Peripheral Interface is detected, will be examined
Impedance characteristic of the magnitude of voltage measured as the Peripheral Interface of presently described mobile terminal.
Optionally, memory cell 203 includes:Generation unit, for the magnitude of voltage generation detected based on acquiring unit 202
Include the voltage range of the magnitude of voltage;Sub- memory cell, for storing the voltage range in default database.
Optionally, the equipment access processing unit in the embodiment of the present invention also includes:Second access unit, it is defeated for receiving
The facility information of the external equipment entered, wherein, the facility information includes:Device type.Memory cell 203 is specifically used for:
In database, facility information and the presently described acquiring unit of the peripheral apparatus that presently described second receiving unit is received obtain
The impedance characteristic associated storage got.Determining unit 205 is specifically used for:It is current when detection unit 204 in the database be present
During the impedance characteristic detected, based on the facility information associated with the currently detected impedance characteristic, it is determined that identification
Accessed to counterpart external device from the Peripheral Interface.
It should be noted that the equipment access processing unit in the embodiment of the present invention can be integrated in mobile terminal (such as hand
Machine, tablet personal computer etc.) or miscellaneous equipment in, be not construed as limiting herein.
Therefore in the embodiment of the present invention when the interruption related to the Peripheral Interface of mobile terminal produces, based on working as
The impedance characteristic of the preceding Peripheral Interface identifies whether have external equipment to be accessed from the Peripheral Interface, therefore, can be in advance in database
The common impedance characteristic of middle storage so that can be identified when common external equipment accesses from the Peripheral Interface.In addition, this
Scheme of the invention by the impedance characteristic for the Peripheral Interface for obtaining current mobile terminal and is deposited when receiving the acquisition instruction of equipment feature
Enter in database, therefore user can be referred to after external equipment is accessed into the Peripheral Interface by inputting the said equipment feature and obtaining
Order actively acquisition and storage of the triggering to the impedance characteristic of Peripheral Interface so that the external equipment subsequently accesses from the Peripheral Interface
When can be identified, so as to effectively increase the access recognition capability of external equipment by using mobile terminal.
Embodiment three
The embodiment of the present invention provides a kind of mobile terminal, referring to Fig. 3, the mobile terminal in the embodiment of the present invention includes:
Memory 301, one or more processors 302 (one is only shown in Fig. 3) and is stored on memory 301 and can be in processor
The computer program of upper operation.Wherein:Memory 301 is used to store software program and module, and processor 302 is deposited by operation
The software program and unit in memory 301 are stored up, so as to perform various function application and data processing.Specifically, handle
Device 302 realizes following steps when being stored in the above computer program of memory 301 by operation:
Receiving device feature obtains instruction;
Under the instruction that the equipment feature obtains instruction, the impedance for obtaining the Peripheral Interface of presently described mobile terminal is special
Sign, wherein, the Peripheral Interface is used to connect external equipment;
The impedance characteristic is stored in default database;
When the interruption related to the Peripheral Interface produces, the impedance characteristic of the Peripheral Interface is detected;
If the currently detected impedance characteristic in the database be present, it is determined that recognize external equipment from described
Peripheral Interface accesses.
Assuming that above-mentioned is the first possible embodiment, then provided based on the first possible embodiment
Second of possible embodiment in, the impedance characteristic of the Peripheral Interface for obtaining presently described mobile terminal, including:
The magnitude of voltage of the mic pins of presently described Peripheral Interface is detected, using the magnitude of voltage detected as presently described shifting
The impedance characteristic of the Peripheral Interface of dynamic terminal.
It is described in the third the possible embodiment provided based on above-mentioned second possible embodiment
The impedance characteristic is stored in default database, including:
The voltage range for including the magnitude of voltage based on the magnitude of voltage generation detected, stores institute in default database
State voltage range.
In the first above-mentioned possible implementation or above-mentioned second of possible implementation, or the above-mentioned 3rd
In the 4th kind of possible embodiment provided based on the possible implementation of kind, the impedance is stored in database
Before feature, processor 302 also realizes following steps when being stored in the above computer program of memory 301 by operation:
The facility information of the external equipment of input is received, wherein, the facility information includes:Device type;
It is described the impedance characteristic is stored in default database to include:It is outer by what is be currently received in database
If the facility information of equipment and the impedance characteristic associated storage;
The determination recognizes the external equipment from Peripheral Interface access, is:Based on currently detected impedance
The facility information of feature association, accessed it is determined that recognizing counterpart external device from the Peripheral Interface.
Further, as shown in figure 3, above-mentioned mobile terminal may also include:One or more input equipments 303 (only show in Fig. 3
Go out one) and one or more output equipments 304 (one is only shown in Fig. 3).Memory 301, processor 302, input equipment
303 and output equipment 304 connected by bus 305.
It should be appreciated that in embodiments of the present invention, alleged processor 302 can be CPU (Central
Processing Unit, CPU), the processor can also be other general processors, digital signal processor (Digital
Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit,
ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other FPGAs
Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at
It can also be any conventional processor etc. to manage device.
Input equipment 303 can include keyboard, Trackpad, fingerprint adopt sensor (finger print information that is used to gathering user and
The directional information of fingerprint), microphone etc., output equipment 304 can include display, loudspeaker etc..
Memory 304 can include read-only storage and random access memory, and provide instruction sum to processor 301
According to.Part or all of memory 304 can also include nonvolatile RAM.For example, memory 304 may be used also
With the information of storage device type.
Therefore in the embodiment of the present invention when the interruption related to the Peripheral Interface of mobile terminal produces, based on working as
The impedance characteristic of the preceding Peripheral Interface identifies whether have external equipment to be accessed from the Peripheral Interface, therefore, can be in advance in database
The common impedance characteristic of middle storage so that can be identified when common external equipment accesses from the Peripheral Interface.In addition, this
Scheme of the invention by the impedance characteristic for the Peripheral Interface for obtaining current mobile terminal and is deposited when receiving the acquisition instruction of equipment feature
Enter in database, therefore user can be referred to after external equipment is accessed into the Peripheral Interface by inputting the said equipment feature and obtaining
Order actively acquisition and storage of the triggering to the impedance characteristic of Peripheral Interface so that the external equipment subsequently accesses from the Peripheral Interface
When can be identified, so as to effectively increase the access recognition capability of external equipment by using mobile terminal.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each work(
Can unit, module division progress for example, in practical application, can be as needed and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of said apparatus are divided into different functional units or module, more than completion
The all or part of function of description.Each functional unit, module in embodiment can be integrated in a processing unit, also may be used
To be that unit is individually physically present, can also two or more units it is integrated in a unit, it is above-mentioned integrated
Unit can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.In addition, each function list
Member, the specific name of module are not limited to the protection domain of the application also only to facilitate mutually distinguish.Said system
The specific work process of middle unit, module, the corresponding process in preceding method embodiment is may be referred to, will not be repeated here.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and is not described in detail or remembers in some embodiment
The part of load, it may refer to the associated description of other embodiments.
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.
In embodiment provided by the present invention, it should be understood that disclosed apparatus and method, others can be passed through
Mode is realized.For example, system embodiment described above is only schematical, for example, the division of above-mentioned module or unit,
Only a kind of division of logic function, can there is an other dividing mode when actually realizing, such as multiple units or component can be with
With reference to or be desirably integrated into another system, or some features can be ignored, or not perform.It is another, it is shown or discussed
Mutual coupling or direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING of device or unit or
Communication connection, can be electrical, mechanical or other forms.
The above-mentioned 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 the mesh of this embodiment scheme according to the actual needs
's.
If above-mentioned integrated unit is realized in the form of SFU software functional unit and is used as independent production marketing or use
When, it can be stored in a computer read/write memory medium.Based on such understanding, the present invention realizes above-described embodiment side
All or part of flow in method, by computer program the hardware of correlation can also be instructed to complete, above-mentioned computer
Program can be stored in a computer-readable recording medium, and the computer program can be achieved above-mentioned each when being executed by processor
The step of individual embodiment of the method.Wherein, above computer program includes computer program code, and above computer program code can
Think source code form, object identification code form, executable file or some intermediate forms etc..Above computer computer-readable recording medium can be with
Including:Any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic disc, the light of above computer program code can be carried
Disk, computer storage, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random
Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that above computer
The content that computer-readable recording medium includes can carry out appropriate increase and decrease according to legislation in jurisdiction and the requirement of patent practice, such as
In some jurisdictions, according to legislation and patent practice, computer-readable medium does not include being electric carrier signal and telecommunications letter
Number.
Above above-described embodiment is merely illustrative of the technical solution of the present invention, rather than its limitations;Although with reference to foregoing reality
Example is applied the present invention is described in detail, it will be understood by those within the art that:It still can be to foregoing each
Technical scheme described in embodiment is modified, or carries out equivalent substitution to which part technical characteristic;And these are changed
Or replace, the essence of appropriate technical solution is departed from the spirit and scope of various embodiments of the present invention technical scheme, all should
Within protection scope of the present invention.
Claims (10)
- A kind of 1. equipment access processing method, it is characterised in that including:Receiving device feature obtains instruction;Under the instruction that the equipment feature obtains instruction, the impedance characteristic of the Peripheral Interface of presently described mobile terminal is obtained, Wherein, the Peripheral Interface is used to connect external equipment;The impedance characteristic is stored in default database;When the interruption related to the Peripheral Interface produces, the impedance characteristic of the Peripheral Interface is detected;If the currently detected impedance characteristic in the database be present, it is determined that recognize external equipment from the peripheral hardware Interface accesses.
- 2. equipment access processing method according to claim 1, it is characterised in that described to obtain presently described mobile terminal Peripheral Interface impedance characteristic, including:The magnitude of voltage of the mic pins of presently described Peripheral Interface is detected, using the magnitude of voltage detected as presently described mobile whole The impedance characteristic of the Peripheral Interface at end.
- 3. equipment access processing method according to claim 2, it is characterised in that described to be stored in default database The impedance characteristic, including:The voltage range for including the magnitude of voltage based on the magnitude of voltage generation detected, stores the electricity in default database Press scope.
- 4. the equipment access processing method according to any one of claims 1 to 3, it is characterised in that described in database Before storing the impedance characteristic, in addition to:The facility information of the external equipment of input is received, wherein, the facility information includes:Device type;It is described the impedance characteristic is stored in default database to include:In database, the peripheral hardware being currently received is set Standby facility information and the impedance characteristic associated storage;The determination recognizes the external equipment from Peripheral Interface access, is:Based on currently detected impedance characteristic The facility information of association, accessed it is determined that recognizing counterpart external device from the Peripheral Interface.
- 5. a kind of equipment accesses processing unit, it is characterised in that including:First receiving unit, obtain and instruct for receiving device feature;Acquiring unit, the equipment feature for being received in first receiving unit are obtained under the instruction of instruction, are obtained current The impedance characteristic of the Peripheral Interface of the mobile terminal, wherein, the Peripheral Interface is used to connect external equipment;Memory cell, the impedance characteristic got for storing the acquiring unit in default database;Detection unit, for when the interruption generation related to the Peripheral Interface, detecting the impedance characteristic of the Peripheral Interface;Determining unit, for when the currently detected impedance characteristic of the detection unit in the database be present, really Surely external equipment is recognized to access from the Peripheral Interface.
- 6. equipment according to claim 5 accesses processing unit, it is characterised in that the acquiring unit is specifically used for:Inspection The magnitude of voltage of the mic pins of presently described Peripheral Interface is surveyed, using the magnitude of voltage detected as the outer of presently described mobile terminal If the impedance characteristic of interface.
- 7. equipment according to claim 6 accesses processing unit, it is characterised in that the memory cell includes:Generation unit, the voltage range that the magnitude of voltage generation for being detected based on the acquiring unit includes the magnitude of voltage;Sub- memory cell, for storing the voltage range in default database.
- 8. the equipment access processing unit according to any one of claim 5 to 7, it is characterised in that at the equipment access Reason device also includes:Second access unit, the facility information of the external equipment for receiving input, wherein, the facility information includes:Equipment Type;The memory cell is specifically used for:In database, peripheral apparatus that presently described second receiving unit is received The impedance characteristic associated storage that facility information is got with presently described acquiring unit;The determining unit is specifically used for:When existing in the database, the currently detected impedance of the detection unit is special During sign, based on the facility information associated with the currently detected impedance characteristic, it is determined that recognizing counterpart external device from institute State Peripheral Interface access.
- 9. a kind of mobile terminal, including memory, processor and storage are on a memory and the calculating that can run on a processor Machine program, it is characterised in that realized described in the computing device during computer program following such as any one of Claims 1-4 The step of methods described.
- 10. a kind of computer-readable recording medium, computer program is stored with the computer-readable recording medium, its feature It is, is realized when the computer program is executed by processor such as the step of any one of Claims 1-4 methods described.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710610576.3A CN107341122B (en) | 2017-07-25 | 2017-07-25 | Equipment access processing method, equipment access processing unit and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710610576.3A CN107341122B (en) | 2017-07-25 | 2017-07-25 | Equipment access processing method, equipment access processing unit and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107341122A true CN107341122A (en) | 2017-11-10 |
CN107341122B CN107341122B (en) | 2019-08-27 |
Family
ID=60216448
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710610576.3A Active CN107341122B (en) | 2017-07-25 | 2017-07-25 | Equipment access processing method, equipment access processing unit and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107341122B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108427649A (en) * | 2018-01-16 | 2018-08-21 | 广州杰赛科技股份有限公司 | Access management method, terminal device, system and the storage medium of USB interface |
CN108664430A (en) * | 2018-05-21 | 2018-10-16 | Oppo广东移动通信有限公司 | Recognition methods, device, storage medium and the electronic equipment of equipment |
CN109889487A (en) * | 2018-12-29 | 2019-06-14 | 北京奇安信科技有限公司 | The processing method and processing device of external equipment access terminal |
CN111624462A (en) * | 2020-04-23 | 2020-09-04 | 上海机电工程研究所 | Weapon system PCB detection method, system, medium and equipment based on big data |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6069960A (en) * | 1996-09-05 | 2000-05-30 | Sony Corporation | Connector device for information-handling apparatus and connector device for stereophonic audio/video apparatus |
CN101069410A (en) * | 2004-10-25 | 2007-11-07 | 诺基亚公司 | Detection, identification and operation of peripherals connected via an audio/video-plug to an electronic device |
CN101179871A (en) * | 2006-11-10 | 2008-05-14 | 鸿富锦精密工业(深圳)有限公司 | Earphone and audio play device |
CN101431708A (en) * | 2008-12-10 | 2009-05-13 | 深圳华为通信技术有限公司 | Terminal and method for recognizing headphone type |
CN102413239A (en) * | 2011-11-15 | 2012-04-11 | 惠州Tcl移动通信有限公司 | Mobile phone and method for detecting earphone mode of mobile phone |
CN202385280U (en) * | 2012-01-16 | 2012-08-15 | 广东欧珀移动通信有限公司 | Portable detecting device for automatically identifying headphone type |
CN202425016U (en) * | 2012-01-11 | 2012-09-05 | 广东欧珀移动通信有限公司 | Circuit for identifying earphone type intelligently |
CN103945310A (en) * | 2014-04-29 | 2014-07-23 | 华为终端有限公司 | Transmission method, mobile terminal, multi-channel earphones and audio playing system |
CN104754461A (en) * | 2013-12-30 | 2015-07-01 | 联想(北京)有限公司 | Matched headset recognizing method and device and electronic device |
CN105100477A (en) * | 2015-07-28 | 2015-11-25 | 努比亚技术有限公司 | Terminal prompt device and method |
-
2017
- 2017-07-25 CN CN201710610576.3A patent/CN107341122B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6069960A (en) * | 1996-09-05 | 2000-05-30 | Sony Corporation | Connector device for information-handling apparatus and connector device for stereophonic audio/video apparatus |
CN101069410A (en) * | 2004-10-25 | 2007-11-07 | 诺基亚公司 | Detection, identification and operation of peripherals connected via an audio/video-plug to an electronic device |
CN101179871A (en) * | 2006-11-10 | 2008-05-14 | 鸿富锦精密工业(深圳)有限公司 | Earphone and audio play device |
CN101431708A (en) * | 2008-12-10 | 2009-05-13 | 深圳华为通信技术有限公司 | Terminal and method for recognizing headphone type |
CN102413239A (en) * | 2011-11-15 | 2012-04-11 | 惠州Tcl移动通信有限公司 | Mobile phone and method for detecting earphone mode of mobile phone |
CN202425016U (en) * | 2012-01-11 | 2012-09-05 | 广东欧珀移动通信有限公司 | Circuit for identifying earphone type intelligently |
CN202385280U (en) * | 2012-01-16 | 2012-08-15 | 广东欧珀移动通信有限公司 | Portable detecting device for automatically identifying headphone type |
CN104754461A (en) * | 2013-12-30 | 2015-07-01 | 联想(北京)有限公司 | Matched headset recognizing method and device and electronic device |
CN103945310A (en) * | 2014-04-29 | 2014-07-23 | 华为终端有限公司 | Transmission method, mobile terminal, multi-channel earphones and audio playing system |
CN105100477A (en) * | 2015-07-28 | 2015-11-25 | 努比亚技术有限公司 | Terminal prompt device and method |
Non-Patent Citations (1)
Title |
---|
张大伟: "《移动开发 深入理解Android 卷3》", 31 August 2015, 机械工业出版社 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108427649A (en) * | 2018-01-16 | 2018-08-21 | 广州杰赛科技股份有限公司 | Access management method, terminal device, system and the storage medium of USB interface |
CN108664430A (en) * | 2018-05-21 | 2018-10-16 | Oppo广东移动通信有限公司 | Recognition methods, device, storage medium and the electronic equipment of equipment |
CN108664430B (en) * | 2018-05-21 | 2020-09-08 | Oppo广东移动通信有限公司 | Equipment identification method and device, storage medium and electronic equipment |
CN109889487A (en) * | 2018-12-29 | 2019-06-14 | 北京奇安信科技有限公司 | The processing method and processing device of external equipment access terminal |
CN111624462A (en) * | 2020-04-23 | 2020-09-04 | 上海机电工程研究所 | Weapon system PCB detection method, system, medium and equipment based on big data |
Also Published As
Publication number | Publication date |
---|---|
CN107341122B (en) | 2019-08-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107341122A (en) | Equipment access processing method, equipment access processing unit and mobile terminal | |
CN107360536A (en) | Control method, terminal device and the computer-readable recording medium of terminal device | |
CN107547759A (en) | A kind of quality detecting method and device to contact staff's call | |
CN107610698A (en) | A kind of method for realizing Voice command, robot and computer-readable recording medium | |
CN109145800B (en) | Fingerprint template updating method and related product | |
CN107193527A (en) | A kind of audio control method, terminal and computer-readable recording medium | |
CN107920162A (en) | Control method, mobile terminal and the computer-readable recording medium of alarm clock | |
CN106406867A (en) | Android system-based screen reading method and apparatus | |
CN107484190A (en) | Method for connecting network, mobile terminal and computer-readable recording medium | |
CN107451244A (en) | File naming method, mobile terminal and computer-readable recording medium | |
CN109376700A (en) | Fingerprint identification method and Related product | |
CN107222898A (en) | Method for switching network, mobile terminal and computer-readable recording medium | |
CN107317928A (en) | Information processing method, mobile terminal and computer-readable recording medium | |
CN107634901A (en) | Session expression pushing method and device and terminal equipment | |
CN107895575A (en) | Screen recording method, screen recording device and electric terminal | |
CN109376702A (en) | Fingerprint identification method and Related product | |
CN107784596A (en) | Insurance kind state information statistics method, terminal device and the storage medium of declaration form | |
CN107506697A (en) | Anti-fake processing method and related product | |
CN108733799A (en) | A kind of method for processing report data, device and terminal | |
CN110221696A (en) | Eyeball tracking method and Related product | |
CN107645583A (en) | A kind of contact sequencing method, mobile terminal and computer-readable recording medium | |
CN107864295A (en) | Call control method, mobile terminal and computer-readable recording medium | |
WO2015135362A1 (en) | Interaction method and apparatus | |
CN107330058A (en) | Application searches method, mobile terminal and computer-readable recording medium | |
CN108520186A (en) | Record screen method, mobile terminal and computer readable storage 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 | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: Guangdong OPPO Mobile Communications Co., Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |