A kind of quick method and electronic equipment for establishing connection
Technical field
The present invention relates to network technique field, more particularly to a kind of quick method and electronic equipment for establishing connection.
Background technology
With the continuous development of scientific technology, electronic technology has also obtained development at full speed, and the species of electronic product is also got over
Come more, people have also enjoyed the various facilities that development in science and technology is brought.Present people can be set by various types of electronics
It is standby to enjoy the comfortable life brought with development in science and technology.Such as the electronic equipment such as mobile phone have become people life in one not
Can or scarce part, people it can be strengthened with other people in a manner of making a phone call, send short messages etc. by electronic equipments such as mobile phones
Between contact.
Current most of company and home wireless network are both configured to use open WEP(Wired
Equivalent Privacy, Wired Equivalent Privacy)Encrypted environment, that is, allow other people to search the access point and disclose
SSID(Service Set Identifier, service set)Mark, this be by wireless router carry out SSID broadcast and
WEP encrypts to realize, but so security is poor for electronic equipment.
Therefore, some electronic equipments can hide SSID marks, other electronic equipments connect if it is desired to being established with the electronic equipment
Connect, it is necessary to which user can establish connection after being manually entered corresponding SSID marks.It is slower to establish the speed of connection, electronic equipment
The less efficient of information is obtained, because being that user is manually entered, the accuracy of the information of acquisition is relatively low.And also to user with
Carry out larger inconvenience.
The content of the invention
The embodiment of the present invention provides a kind of quick method and electronic equipment for establishing connection, for solving to build in the prior art
Less efficient technical problem during vertical connection.
A kind of quick method for establishing connection, the method are applied on the first electronic equipment, first electronic equipment
Including wireless communication module and dio Output Modules;The described method includes:
It is main access point to be set first electronic equipment based on the wireless communication module, with season first electricity
Sub- equipment hides the link information for accessing first electronic equipment;
The link information is encoded according to pre-defined rule, generates the first coding information;
First coding information is played by the dio Output Modules, so that the second electronic equipment passes through mould of recording
Block obtains first coding information, and can be based on the company for parsing the link information completion and first electronic equipment
Connect.
Preferably, the link information is encoded according to pre-defined rule, the first coding information is generated, including:By institute
State link information to be encoded according to dual tone multi-frequency dtmf rule, generate first coding information.
Preferably, prior to, concurrently with, or after first coding information is played by the dio Output Modules, also wrap
Include:The address information of first electronic equipment is played by the dio Output Modules.
Preferably, first coding information is being played so that second electronic equipment by the dio Output Modules
After completing the connection with first electronic equipment, further include:
The first request message is sent to second electronic equipment, with to first data of the second electronic equipment requests;
Obtain first data that second electronic equipment is sent.
Preferably, first data are to be needed when opening the first application by applying corresponding first with described first
The data that Peripheral Interface obtains, first application is installed in second electronic equipment, to second electronic equipment
Before sending the first request message, further include:In first electronic equipment virtually corresponding second is applied with described first
Using;
First data that second electronic equipment is sent are obtained, including:First data are obtained, so that user
It can be applied according to first data using described second.
A kind of quick method for establishing connection, applied to the second electronic equipment, second electronic equipment includes recording mould
Block, the described method comprises the following steps:
The first coding information of the first electronic equipment broadcasting is obtained by the recording module;
First coding information is parsed, determines corresponding link information;
Connection with first electronic equipment is completed according to the link information.
Preferably, first coding information includes the first quantity encoded sub information, wherein each two encoded sub information
Output time between there is preset duration interval, in obtain that first electronic equipment plays by the recording module the
After one coding information, further include:
It is SSID coding letters to determine the preceding default quantity encoded sub information in the first quantity encoded sub information
Breath;
When the default quantity is less than first quantity, determine remaining encoded sub information for cipher coding letter
Breath.
Preferably, parsing first coding information, determines corresponding link information, including:According to DTMF principles, parsing
First coding information, determines corresponding SSID information, or determines the corresponding SSID information and encrypted message.
Preferably, after the connection with first electronic equipment is completed according to the link information, further include:
The second request message is sent to first electronic equipment, with to second data of the first electronic equipment requests;
Obtain second data that first electronic equipment is sent.
Preferably, second data are to be needed when opening the 3rd application by corresponding with the described 3rd application
The data that second Peripheral Interface obtains, the 3rd application is installed in first electronic equipment, to first electronics
Before equipment sends the second request message, further include:It is virtually corresponding with the described 3rd application in second electronic equipment
4th application;
Second data that first electronic equipment is sent are obtained, including:Second data are obtained, so that user
The 3rd application can be opened according to second data.
A kind of electronic equipment, the electronic equipment include wireless communication module and dio Output Modules;The electronic equipment
Further include:
Setup module, is main access point for being set first electronic equipment based on the wireless communication module, together
Season, first electronic equipment hid the link information for accessing first electronic equipment;
Generation module, for the link information to be encoded according to pre-defined rule, generates the first coding information;
Output module, for playing first coding information by the dio Output Modules, so that the second electronics
Equipment obtains first coding information by recording module, and can be based on parsing the link information completion and described first
The connection of electronic equipment.
Preferably, the generation module is specifically used for:The link information is compiled according to dual tone multi-frequency dtmf rule
Code, generates first coding information.
Preferably, the output module is additionally operable to:First electronic equipment is played by the dio Output Modules
Address information.
Preferably, the electronic equipment further includes the first sending module and the first acquisition module;
First sending module is used to send the first request message to second electronic equipment, with electric to described second
Sub- the first data of device request;
First acquisition module obtains first data that second electronic equipment is sent.
Preferably, first data are to be needed when opening the first application by applying corresponding first with described first
The data that Peripheral Interface obtains, first application are installed in second electronic equipment, and the electronic equipment further includes the
One operation module, for virtually being applied in first electronic equipment with the described first application corresponding second;
First acquisition module is specifically used for:First data are obtained, are allowed the user to according to the described first number
Applied according to using described second.
A kind of electronic equipment, the electronic equipment include recording module, and the electronic equipment further includes:
Second acquisition module, the first coding for obtaining the first electronic equipment broadcasting by the recording module are believed
Breath;
Parsing module, for parsing first coding information, determines corresponding link information;
Link block, for completing the connection with first electronic equipment according to the link information.
Preferably, first coding information includes the first quantity encoded sub information, wherein each two encoded sub information
Output time between there is preset duration interval, the electronic equipment further includes the first determining module and the second determining module;
First determining module is used to determine the preceding default quantity coding in the first quantity encoded sub information
Sub-information is SSID encoded sub informations;
Second determining module is used for when the default quantity is less than first quantity, determines remaining coding
Information is cipher coding sub-information.
Preferably, the parsing module is specifically used for:According to DTMF principles, first coding information is parsed, is determined pair
The SSID information answered, or determine the corresponding SSID information and encrypted message.
Preferably, the electronic equipment further includes the second sending module and the 3rd acquisition module;
Second sending module is used to send the second request message to first electronic equipment, with electric to described first
Sub- the second data of device request;
3rd acquisition module is used to obtain second data that first electronic equipment is sent.
Preferably, second data are to be needed when opening the 3rd application by corresponding with the described 3rd application
The data that second Peripheral Interface obtains, the 3rd application are installed in first electronic equipment, and the electronic equipment also wraps
The second operation module is included, for virtually being applied in second electronic equipment with the described 3rd application the corresponding 4th;
3rd acquisition module is specifically used for:Second data are obtained, are allowed the user to according to the described second number
Applied according to opening the described 3rd.
The embodiment of the present invention provides a kind of quick method for establishing connection, and the method can be applied to the first electronic equipment
On, first electronic equipment includes wireless communication module and dio Output Modules, and the method may include following steps:Base
It is main access point to set first electronic equipment in the wireless communication module, is hidden with season first electronic equipment
For accessing the link information of first electronic equipment;The link information is encoded according to pre-defined rule, generation the
One coding information;First coding information is played by dio Output Modules, so that the second electronic equipment passes through mould of recording
Block obtains first coding information, and can be based on the company for parsing the link information completion and first electronic equipment
Connect.
In the embodiment of the present invention, first electronic equipment can control the link information to be in hidden state, other
Electronic equipment can not search the link information when searching for wireless access point, and first electronic equipment can export described
First coding information, second electronic equipment are needed after first coding information is received by first coding information
Parsed, connected after determining the corresponding link information with first electronic equipment foundation.In this way, described first
Electronic equipment conceals the link information, other electronic equipments will not be made to search the link information, described in preliminary guarantee
The safety of first electronic equipment, second electronic equipment can be compiled after first coding information is received by described first
Code information is parsed, and is connected so as to be established with first electronic equipment, i.e. second electronic equipment can be automatically according to
First coding information obtains the link information, establishes and connects with first electronic equipment automatically, manual without user
Relevant information is inputted, the efficiency that electronic equipment obtains information is higher, and the accuracy of the information of acquisition is also higher, meanwhile, without use
Family is manually entered, and improves user experience.
Also, in the embodiment of the present invention, second electronic equipment needed after first coding information is received by
First coding information could be established with first electronic equipment after being parsed and connected, if can not parse, Huo Zhewu
Method correctly parses, and cannot all establish and connect with first electronic equipment, can be further ensured that the safety of electronic equipment, ensure
System reliability, avoids system under attack.
Brief description of the drawings
Fig. 1 is a kind of broad flow diagram of the quick method for establishing connection in the embodiment of the present invention;
Fig. 2 is a kind of broad flow diagram of the quick method for establishing connection in the embodiment of the present invention;
Fig. 3 is the structure chart of a kind of electronic equipment in the embodiment of the present invention;
Fig. 4 is the structure chart of a kind of electronic equipment in the embodiment of the present invention.
Embodiment
The embodiment of the present invention provides a kind of quick method for establishing connection, and the method can be applied to the first electronic equipment
On, first electronic equipment includes wireless communication module and dio Output Modules, and the method may include following steps:Base
It is main access point to set first electronic equipment in the wireless communication module, is hidden with season first electronic equipment
For accessing the link information of first electronic equipment;The link information is encoded according to pre-defined rule, generation the
One coding information;First coding information is played by dio Output Modules, so that the second electronic equipment passes through mould of recording
Block obtains first coding information, and can be based on the company for parsing the link information completion and first electronic equipment
Connect.
In the embodiment of the present invention, first electronic equipment can control the link information to be in hidden state, other
Electronic equipment can not search the link information when searching for wireless access point, and first electronic equipment can export described
First coding information, second electronic equipment are needed after first coding information is received by first coding information
Parsed, connected after determining the corresponding link information with first electronic equipment foundation.In this way, described first
Electronic equipment conceals the link information, other electronic equipments will not be made to search the link information, described in preliminary guarantee
The safety of first electronic equipment, second electronic equipment can be compiled after first coding information is received by described first
Code information is parsed, and is connected so as to be established with first electronic equipment, i.e. second electronic equipment can be automatically according to
First coding information obtains the link information, establishes and connects with first electronic equipment automatically, manual without user
Relevant information is inputted, the efficiency that electronic equipment obtains information is higher, and the accuracy of the information of acquisition is also higher, meanwhile, without use
Family is manually entered, and improves user experience.
Also, in the embodiment of the present invention, second electronic equipment needed after first coding information is received by
First coding information could be established with first electronic equipment after being parsed and connected, if can not parse, Huo Zhewu
Method correctly parses, and cannot all establish and connect with first electronic equipment, can be further ensured that the safety of electronic equipment, ensure
System reliability, avoids system under attack.
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, the technical solution in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
Part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
All other embodiments obtained without creative efforts, belong to the scope of protection of the invention.
In the embodiment of the present invention, first electronic equipment can be PC(Personal computer), notebook, PAD(Tablet electricity
Brain), the different electronic equipment of mobile phone etc., the invention is not limited in this regard.
In the embodiment of the present invention, second electronic equipment can be PC(Personal computer), notebook, PAD(Tablet electricity
Brain), the different electronic equipment of mobile phone etc., the invention is not limited in this regard.
In addition, the terms "and/or", is only a kind of incidence relation for describing affiliated partner, represents there may be
Three kinds of relations, for example, A and/or B, can represent:Individualism A, while there are A and B, these three situations of individualism B.Separately
Outside, character "/" herein, it is a kind of relation of "or" to typically represent forward-backward correlation object.
The preferred embodiment of the present invention is described in detail below in conjunction with the accompanying drawings.
Embodiment one
Refer to Fig. 1, the embodiment of the present invention provides a kind of quick method for establishing connection, and the method can be applied to the
In one electronic equipment, first electronic equipment can include wireless communication module and dio Output Modules, and the method can be with
Comprise the following steps:
Step 101:It is main access point to be set first electronic equipment based on the wireless communication module, with season institute
State the first electronic equipment and hide link information for accessing first electronic equipment.
In the embodiment of the present invention, because wireless network transmissions have a certain distance limitation, therefore described first can be controlled
The distance between electronic equipment and second electronic equipment are in the range of a pre-determined distance, so that the second electronic equipment energy
It is enough to establish wireless connection with first electronic equipment.
Preferably, in the embodiment of the present invention, the wireless communication module can be WIFI(A kind of wireless interconnection technologies)Mould
Block, or can also be other wireless communication modules.
Setting themselves can be AP host by first electronic equipment(Main access point), other electronic equipments can connect
Enter the main access point, so as to fulfill the communication between first electronic equipment.
So, in the embodiment of the present invention, first electronic equipment can have wireless access function, i.e., described first electricity
Sub- equipment can be a wireless access point.
The main access point can have the corresponding link information, such as the link information can include connection account
Information, or connection account information and encrypted message.For example, the connection account information can be specifically SSID information.Other electricity
Sub- equipment can be established according to the link information and first electronic equipment and connected after the link information is obtained.
In the embodiment of the present invention, first electronic equipment can control the link information to be in hidden state first,
It can forbid broadcasting the link information.For example, first electronic equipment can be configured, make at the link information
In unjust open state, in this way, other electronic equipments can not just search the link information when searching for wireless access point, from
So, second electronic equipment can not also search the link information.
The link information is hidden, can ensure the security of first electronic equipment to a certain extent.
Step 102:The link information is encoded according to pre-defined rule, generates the first coding information.
In the embodiment of the present invention, first electronic equipment can be encoded the link information, generation described the
One coding information, wherein, first electronic equipment can be encoded the link information according to the pre-defined rule.
Preferably, in the embodiment of the present invention, the link information is encoded according to pre-defined rule, the coding of generation first
Information, can be specifically according to DTMF by the link information(Dual-tone multifrequency, dual-tone multifrequency)Mode
To be encoded, first coding information is generated.That is, described pre-defined rule can be specifically DTMF rules.
Dual-tone multifrequency(DTMF)Be it is a kind of carry out numeral method with tone in voice channel, it can be for simulating
Voice channel transmits signaling.
So-called dual-tone multifrequency, refers to be overlapped with the higher signal of the frequency signal relatively low with a frequency.For example, number
Word " 4 " can be 770HZ low frequency signal and 1309HZ high-frequency signal superposition, digital " 3 " can be the low frequency letter of 697HZ
Number and 1477HZ the superposition of high-frequency signal etc..
In the embodiment of the present invention, DTMF can be extended, be folded with a high-frequency signal and a low frequency signal
Add, can not only represent a numeral, can also represent a letter.Preferably, in the embodiment of the present invention, using DTMF side
Formula, can characterize all 10 numerals and 26 English alphabets.
In the embodiment of the present invention, if the link information includes the SSID information, then, by the link information
Encoded according to pre-defined rule, generate the first coding information, can be specifically that the SSID information pair is determined in a manner of DTMF
The SSID coding informations answered.
In the embodiment of the present invention, if the link information includes the SSID information and the encrypted message, then,
The link information is encoded according to pre-defined rule, the first coding information is generated, is determined in a manner of DTMF
The corresponding SSID coding informations of the SSID information, and determine the corresponding cipher coding information of the encrypted message.
For example, the link information includes the SSID information and the encrypted message, the SSID information is, for example,
" 3344 ", the encrypted message are, for example, " 34343344 ", then first electronic equipment can determine the SSID information
Corresponding SSID coding informations, and can determine the corresponding cipher coding information of the encrypted message.
For example, the relation of the SSID coding informations and the SSID information is as shown in table 1:
Table 1
For example, the encrypted message and the relation of the cipher coding information are as shown in table 2:
Table 2
As can be seen from Table 1 and Table 2, each numeral is characterized by two audio signals.First electronics
Equipment naturally can be encoded the link information to determine according to the pre-defined rule after the link information is determined
Corresponding first coding information.In the embodiment of the present invention, the link information is preferably made of numeral and/or letter.
Step 103:First coding information is played by the dio Output Modules, so that the second electronic equipment leads to
Cross recording module and obtain first coding information, and the parsing link information can be based on and complete to set with first electronics
Standby connection.
First electronic equipment can be exported after first coding information is determined by the dio Output Modules
First coding information, specifically, can play first coding information by the dio Output Modules.In this way,
Second electronic equipment is after first coding information is obtained, it becomes possible to first coding information parsed,
The link information can be obtained after parsing, so that second electronic equipment can be according to the link information and described first
Electronic equipment establishes wireless connection.Specifically, second electronic equipment can obtain first coding by recording module
Information.
For example, first electronic equipment can play first coding information, so described second electronic equipment can
To receive first coding information by the recording module.
In the embodiment of the present invention, the first quantity encoded sub information can be included in first coding information, it is described
First electronic equipment is when exporting the first quantity encoded sub information, between the output time of each two encoded sub information all
Preset duration interval can be provided with, can not correctly be parsed to avoid second electronic equipment.
There can be a default quantity in the embodiment of the present invention, such as in second electronic equipment, second electronics is set
Standby to determine in the first quantity encoded sub information of acquisition, the preceding default quantity encoded sub information is described
SSID coding informations, if the default quantity is less than first quantity, then, remaining encoded sub information is exactly described close
Code coding information.
Preferably, in the embodiment of the present invention, before first coding information is played by the dio Output Modules,
Simultaneously or after, first electronic equipment can also play the ground of first electronic equipment by the dio Output Modules
Location information, specifically, described address information can be the IP of first electronic equipment(Internetworking protocol)Address information.
The purpose for playing described address information be in order to accelerate second electronic equipment and first electronic equipment it
Between connection, after knowing link information and the described address information at the same time, second electronic equipment can quickly with
First electronic equipment establishes connection.
Second electronic equipment can be solved first coding information after first coding information is obtained
The link information is obtained after analysis, so that second electronic equipment can be automatically electric with described first according to the link information
Sub- equipment establishes connection, and without being needed as in the prior art, user is manually entered account and password could be with the described first electricity
Sub- equipment establishes connection, it is clear that has saved the operating time than in the prior art, has improved the treatment effeciency of electronic equipment, also improve
The accuracy of information input.
In the embodiment of the present invention, first coding information is played, can play the SSID coding informations, or can be with
It is to play the SSID coding informations and the cipher coding information.
Further, in an alternative embodiment of the invention, first coding is being played by the dio Output Modules
Information can also include so that after second electronic equipment completion and the connection of first electronic equipment:To described
Two electronic equipments send the first request message, to first data of the second electronic equipment requests, to obtain second electronics
First data that equipment is sent.
That is, after first electronic equipment and second electronic equipment establish connection, first electronic equipment and
Data can be transmitted between second electronic equipment.Wherein, between first electronic equipment and second electronic equipment
Data transfer can be transmitted in both directions.
If for example, first electronic equipment wants to obtain first data in second electronic equipment, that
First electronic equipment can send first request message, second electronic equipment to second electronic equipment
When receiving first request message, first data sending can give to first electronic equipment, described first
Electronic equipment can obtain first data that second electronic equipment is sent.
Preferably, second electronic equipment can determine to can be used in first shared in the data of itself storage first
Sharing data, such as second electronic equipment actively can send corresponding first description information of first sharing data
The first of the first electronic equipment transmission can also be being obtained to first electronic equipment, or second electronic equipment
First description information is sent to first electronic equipment after description information request message.First electronic equipment exists
After obtaining first description information, it is possible to know which data can be used for sharing in second electronic equipment, so that,
First electronic equipment can select oneself required data in first sharing data.
For example, first electronic equipment determines that oneself needs first data in first sharing data, that
First electronic equipment can send first request message to second electronic equipment, so that first electronics
Equipment can obtain first data that second electronic equipment is sent.
Further, in an alternative embodiment of the invention, the first application, institute can be installed in second electronic equipment
Stating the use of the first application needs to obtain external data, example by means of the first Peripheral Interface in second electronic equipment
Such as, first data can be the number for needing to obtain by first Peripheral Interface in opening first application
According to.
For example, first application can be the first camera application, then, the use of the first camera application is just
Need by means of obtaining external data using corresponding first Peripheral Interface with first camera, so as to complete to clap
Take the photograph.For example, first data need to obtain by first Peripheral Interface when can be and open the first camera application
The data taken, i.e., described first data can be the view data that first Peripheral Interface obtains.
If not installing first application in first electronic equipment, or even do not have in first electronic equipment yet
First Peripheral Interface, and first electronic equipment needs to apply using described first, then, preferably, described
It can be fictionalized in one electronic equipment according to the described first application and described first the corresponding second application of application.If for example,
First application is the first camera application, then, it can fictionalize corresponding second in first electronic equipment
Camera application.
First electronic equipment can open second application, for example, first electronic equipment opens described the
While two applications or afterwards, first electronic equipment can send first request to second electronic equipment and disappear
Breath.Second electronic equipment, can be by described in first Peripheral Interface acquisition after first request message is obtained
First data, and the first data transmission can be given to first electronic equipment, in this way, first electronic equipment can
To obtain first data after second application is opened.
If for example, first application is the first camera application, second application is the described second shooting
Head application, first data are the described image data obtained by first Peripheral Interface, then, first electronics
For equipment while the second camera application is opened or afterwards, can send described first to second electronic equipment please
Seek message.Second electronic equipment can be obtained after first request message is obtained by first Peripheral Interface
Described image data, and the first data transmission can be given to first electronic equipment, in this way, first electronic equipment
First data can be obtained after the second camera application is opened, for the use using first electronic equipment
For family, its effect in first electronic equipment as truly having camera, it is clear that can improve user experience.And
And number is transmitted due to establishing connection between first electronic equipment and second electronic equipment in the embodiment of the present invention
According to efficiency it is also higher.
Embodiment two
Fig. 2 is referred to, the embodiment of the present invention provides a kind of quick method for establishing connection, and the method can be applied to institute
The second electronic equipment is stated, second electronic equipment can include recording module.The main flow of the method is as follows:
Step 201:The first coding information of the first electronic equipment broadcasting is obtained by the recording module.
Second electronic equipment can first pass through the recording module and obtain and first electronic equipment relevant the
One coding information.
In the embodiment of the present invention, why the recording module is used, be because second electronic equipment is obtaining
Also need to parse first coding information after first coding information, therefore using the recording module by described in
First coding information can be easy to second electronic equipment to have enough time to be parsed after being recorded, and avoid described second
The memory function of electronic equipment is limited and forgets first coding information.
In the embodiment of the present invention, first electronic equipment can play first coding information.
In the embodiment of the present invention, first coding information can be dtmf code information.
In the embodiment of the present invention, first electronic equipment can be used as a main access point.Therefore, in step 301
First coding information, can be specifically and main relevant first coding information of access point.
In the embodiment of the present invention, first coding information is obtained, can be specifically to obtain and first electronic equipment
Relevant SSID coding informations, or can also be obtain with the relevant SSID coding informations of first electronic equipment and
Cipher coding information.
Step 202:First coding information is parsed, determines corresponding link information.
Second electronic equipment can be solved first coding information after first coding information is obtained
Analysis, may thereby determine that the link information corresponding with first coding information.
In the embodiment of the present invention, second electronic equipment can be come by first coding information according to DTMF principles
Parsed.
Optionally, in the embodiment of the present invention, the first quantity coding letter can be included in first coding information
Breath, second electronic equipment can first confirm which is encoded in the encoded sub information after the encoded sub information is obtained
Sub-information corresponds to the SSID coding informations, which encoded sub information corresponds to the cipher coding information.
For example, can be preset with a default quantity in second electronic equipment, second electronic equipment is obtaining institute
When stating encoded sub information, there is the sequencing of an acquisition, then, second electronic equipment can determine first to obtain described
The default quantity encoded sub information corresponds to the SSID coding informations, at this time, if the default quantity is less than described
First quantity, then, the remaining encoded sub information can correspond to the cipher coding information.
For example, the default default quantity is 4 in second electronic equipment, second electronic equipment obtains altogether
12 encoded sub informations.So, second electronic equipment can determine preceding 4 codings letter in 12 encoded sub informations
Breath corresponds to the SSID coding informations, and default quantity described at this time is less than first quantity, and second electronic equipment exists
Still there is encoded sub information remaining after determining the SSID coding informations, therefore, second electronic equipment can determine remaining 8
A encoded sub information corresponds to the cipher coding information.
Second electronic equipment can be solved the SSID coding informations after the SSID coding informations are determined
Analysis, obtains the corresponding SSID information.
, can be by institute or second electronic equipment is after the definite SSID coding informations and the cipher coding information
State SSID coding informations and the cipher coding information is parsed, obtain the corresponding SSID information and the password
Information.
Optionally, in the embodiment of the present invention, the first quantity coding letter can be included in first coding information
Breath, second electronic equipment first can be parsed the encoded sub information after the encoded sub information is obtained, can be with
The first quantity connection sub-information is obtained, second electronic equipment can determine the first quantity connection sub-information
In which connection sub-information correspond to the SSID information, which connect sub-information correspond to the encrypted message.
For example, can be preset with a default quantity in second electronic equipment, second electronic equipment is obtaining institute
When stating encoded sub information, there is the sequencing of an acquisition, then, second electronic equipment is by first coding information
After being parsed, the order of each connection sub-information of acquisition can be consistent with corresponding encoded sub information.So, second electricity
The default quantity connection sub-information that sub- equipment can determine first to obtain corresponds to the SSID information, at this time, such as
Quantity is preset described in fruit and is less than first quantity, then, the remaining connection sub-information can correspond to the password
Information.
For example, the default default quantity is 4 in second electronic equipment, second electronic equipment obtains altogether
12 connection sub-informations.So, second electronic equipment can determine preceding 4 connexons letter in this 12 connection sub-informations
Breath corresponds to the SSID information, and default quantity described at this time is less than first quantity, and second electronic equipment is determining
Still there is connexon remnant information after the SSID information, therefore, second electronic equipment can determine remaining 8 connexons
Information corresponds to the encrypted message.
Step 203:Connection with first electronic equipment is completed according to the link information.
Second electronic equipment, can be directly according to link information completion and institute after the link information is obtained
The connection of the first electronic equipment is stated, the link information is manually entered without user, is saved for second electronic equipment
The time of acquisition of information has been saved, because being manually entered without user, has improved information accuracy, has improved second electronic equipment
Treatment effeciency, decrease workload for a user.
Further, in an alternative embodiment of the invention, complete to set with first electronics in second electronic equipment
After standby connection, it can also include:The second request message is sent to first electronic equipment, to be set to first electronics
The second data of standby request, obtain second data that first electronic equipment is sent.
That is, after first electronic equipment and second electronic equipment establish connection, first electronic equipment and
Data can be transmitted between second electronic equipment.Wherein, between first electronic equipment and second electronic equipment
Data transfer can be transmitted in both directions.
If for example, second electronic equipment wants to obtain second data in first electronic equipment, that
Second electronic equipment can send second request message, first electronic equipment to first electronic equipment
When receiving second request message, second data sending can give to second electronic equipment, described second
Electronic equipment can obtain second data that first electronic equipment is sent.
Preferably, first electronic equipment can determine to can be used in second shared in the data of itself storage first
Sharing data, such as first electronic equipment actively can send corresponding second description information of second sharing data
The second of the second electronic equipment transmission can also be being obtained to second electronic equipment, or first electronic equipment
Second description information is sent to second electronic equipment after description information request message.Second electronic equipment exists
After obtaining second description information, it is possible to know which data can be used for sharing in first electronic equipment, so that,
Second electronic equipment can select oneself required data in second sharing data.
For example, second electronic equipment determines that oneself needs second data in second sharing data, that
Second electronic equipment can send second request message to first electronic equipment, so that second electronics
Equipment can obtain second data that first electronic equipment is sent.
Further, in an alternative embodiment of the invention, the 3rd application, institute can be installed in first electronic equipment
Stating the use of the 3rd application needs to obtain external data by means of the second Peripheral Interface in first electronic equipment, example
Such as, second data can be the number for needing to obtain by second Peripheral Interface in opening the 3rd application
According to.
For example, the 3rd application can be the 3rd camera application, then, the use of the 3rd camera application is just
Need by means of obtaining external data using corresponding second Peripheral Interface with the 3rd camera, so as to complete to clap
Take the photograph.For example, second data need to obtain by second Peripheral Interface when can be and open the 3rd camera application
The data taken, i.e., described second data can be the view data that second Peripheral Interface obtains.
If not installing the 3rd application in second electronic equipment, or even do not have in second electronic equipment yet
Second Peripheral Interface, and second electronic equipment needs to use the described 3rd application, then, preferably, described the
It can be fictionalized in two electronic equipments according to the described 3rd application and the corresponding 4th application of the described 3rd application.If for example,
3rd application is the 3rd camera application, then, it can fictionalize the corresponding 4th in first electronic equipment
Camera application.
Second electronic equipment can open the 4th application, for example, second electronic equipment opens described the
While four applications or afterwards, second electronic equipment can send second request to first electronic equipment and disappear
Breath.First electronic equipment, can be by described in second Peripheral Interface acquisition after second request message is obtained
Second data, and second data can be transferred to second electronic equipment, in this way, second electronic equipment can
To obtain second data after the 4th application is opened.
If for example, the 3rd application is the 3rd camera application, the 4th application is the described 4th shooting
Head application, second data are the described image data obtained by second Peripheral Interface, then, second electronics
For equipment while the 4th camera application is opened or afterwards, can send described second to first electronic equipment please
Seek message.First electronic equipment can be obtained after second request message is obtained by second Peripheral Interface
Described image data, and second data can be transferred to second electronic equipment, in this way, second electronic equipment
Second data can be obtained after the 4th camera application is opened, for the use using second electronic equipment
For family, its effect in second electronic equipment as truly having camera, it is clear that can improve user experience.And
And number is transmitted due to establishing connection between first electronic equipment and second electronic equipment in the embodiment of the present invention
According to efficiency it is also higher.
Embodiment three
First electronic equipment is mobile phone, and second electronic equipment is also mobile phone.First electronic equipment can be with
Including wireless communication module and dio Output Modules, second electronic equipment can include recording module.
Setting themselves can be AP host by first electronic equipment(Main access point), other electronic equipments can connect
Enter the main access point, so as to fulfill the communication between first electronic equipment.
In the embodiment of the present invention, first electronic equipment can control the link information to be in hidden state first,
It can forbid broadcasting the link information.For example, first electronic equipment can be configured, make at the link information
In unjust open state, in this way, other electronic equipments can not just search the link information when searching for wireless access point, from
So, second electronic equipment can not also search the link information.
In the embodiment of the present invention, the main access point can have the corresponding link information, such as the link information
It can include connection account information, or connection account information and encrypted message.For example, the connection account information can be specifically
SSID information.Other electronic equipments, can be according to the link information and first electronics after the link information is obtained
Equipment establishes connection.
First electronic equipment can be encoded the link information, generate the first coding information.
Specifically, first electronic equipment can be encoded the link information in a manner of DTMF, generation
First coding information.In the embodiment of the present invention, first electronic equipment can be believed the SSID in a manner of DTMF
Breath is encoded, and generates corresponding SSID coding informations, and the encrypted message is encoded, and generates corresponding cipher coding
Information.
In the embodiment of the present invention, the SSID information is, for example, " 3344 ", and the encrypted message is, for example, " 34343344 ",
So, after first electronic equipment is encoded, the relation of the SSID coding informations and the SSID information can be as
Shown in table 1, the relation of the encrypted message and the cipher coding information can be as shown in table 2.
First electronic equipment is encoding the link information according to DTMF rules, generation first coding
After information, first coding information can be played by the dio Output Modules.
For example, first electronic equipment can play out the SSID coding informations and the encrypted message, this
Sample, second electronic equipment can be compiled after first coding information is obtained by the recording module by described first
Code information is parsed, and the link information can be obtained after parsing, so that second electronic equipment can be according to described
Link information is established with first electronic equipment and connected.
In the embodiment of the present invention, after first electronic equipment plays out first coding information, described
Two electronic equipments can obtain first coding information by the recording module.
In the embodiment of the present invention, the first quantity encoded sub information can be included in first coding information, it is described
First electronic equipment is when playing the first quantity encoded sub information, between the output time of each two encoded sub information all
Preset duration interval can be provided with, can not correctly be parsed to avoid second electronic equipment.
In the embodiment of the present invention, the first quantity encoded sub information can be included in first coding information, it is described
Which encoded sub information pair in the encoded sub information can be first confirmed after the encoded sub information is obtained for second electronic equipment
SSID coding informations described in Ying Yu, which encoded sub information correspond to the cipher coding information.
For example, can be preset with a default quantity in second electronic equipment, second electronic equipment is obtaining institute
When stating encoded sub information, there is the sequencing of an acquisition, then, second electronic equipment can determine first to obtain described
The default quantity encoded sub information corresponds to the SSID coding informations, at this time, if the default quantity is less than described
First quantity, then, the remaining encoded sub information can correspond to the cipher coding information.
For example, the default default quantity is 4 in second electronic equipment, second electronic equipment obtains altogether
12 encoded sub informations.So, second electronic equipment can determine preceding 4 codings letter in 12 encoded sub informations
Breath corresponds to the SSID coding informations, and default quantity described at this time is less than first quantity, and second electronic equipment exists
Still there is encoded sub information remaining after determining the SSID coding informations, therefore, second electronic equipment can determine remaining 8
A encoded sub information corresponds to the cipher coding information.
Second electronic equipment, can be by described in after the definite SSID coding informations and the cipher coding information
SSID coding informations and the cipher coding information are parsed, and obtain the corresponding SSID information and the message in cipher
Breath.
Second electronic equipment, can be directly according to after the SSID information and the encrypted message is obtained
SSID information and the encrypted message are established with first electronic equipment to be connected.
After first electronic equipment and second electronic equipment establish connection, first electronic equipment and described
Data can be transmitted between second electronic equipment.Wherein, the number between first electronic equipment and second electronic equipment
Can be transmitted in both directions according to transmission.
By the dio Output Modules play first coding information so that second electronic equipment complete with
After the connection of first electronic equipment, it can also include:To second electronic equipment send the first request message, with to
Second electronic equipment requests, first data, obtain first data that second electronic equipment is sent.
Example IV
First electronic equipment is mobile phone, and second electronic equipment is also mobile phone.First electronic equipment can be with
Including wireless communication module and dio Output Modules, second electronic equipment can include recording module.
Setting themselves can be AP host by first electronic equipment(Main access point), other electronic equipments can connect
Enter the main access point, so as to fulfill the communication between first electronic equipment.
In the embodiment of the present invention, first electronic equipment can control the link information to be in hidden state first,
It can forbid broadcasting the link information.For example, first electronic equipment can be configured, make at the link information
In unjust open state, in this way, other electronic equipments can not just search the link information when searching for wireless access point, from
So, second electronic equipment can not also search the link information.
In the embodiment of the present invention, the main access point can have the corresponding link information, such as the link information
It can include connection account information, or connection account information and encrypted message.For example, the connection account information can be specifically
SSID information.Other electronic equipments, can be according to the link information and first electronics after the link information is obtained
Equipment establishes connection.
First electronic equipment can be encoded the link information, generate the first coding information.
Specifically, first electronic equipment can be encoded the link information in a manner of DTMF, generation
First coding information.In the embodiment of the present invention, first electronic equipment can be believed the SSID in a manner of DTMF
Breath is encoded, and generates corresponding SSID coding informations, and the encrypted message is encoded, and generates corresponding cipher coding
Information.
In the embodiment of the present invention, the SSID information is, for example, " 3344 ", and the encrypted message is, for example, " 34343344 ",
So, after first electronic equipment is determined, the relation of the SSID coding informations and the SSID information can be as
Shown in table 1, the relation of the encrypted message and the cipher coding information can be as shown in table 2.
First electronic equipment is encoding the link information according to DTMF rules, generation first coding
After information, first coding information can be played by the dio Output Modules.
For example, first electronic equipment can play out the SSID coding informations and the encrypted message, this
Sample, second electronic equipment can be parsed first coding information after first coding information is obtained,
The link information can be obtained after parsing, so that second electronic equipment can be according to the link information and described first
Electronic equipment establishes connection.
In the embodiment of the present invention, after first electronic equipment plays out first coding information, described
Two electronic equipments can obtain first coding information by the recording module.
In the embodiment of the present invention, the first quantity encoded sub information can be included in first coding information, it is described
First electronic equipment is when playing the first quantity encoded sub information, between the output time of each two encoded sub information all
Preset duration interval can be provided with, can not correctly be parsed to avoid second electronic equipment.
In the embodiment of the present invention, the first quantity encoded sub information can be included in first coding information, it is described
The encoded sub information can first be parsed after the encoded sub information is obtained, can obtain institute by the second electronic equipment
State the first quantity connection sub-information, second electronic equipment can determine which first quantity connects in sub-information
Connection sub-information corresponds to the SSID information, which connection sub-information corresponds to the encrypted message.
For example, can be preset with a default quantity in second electronic equipment, second electronic equipment is obtaining institute
When stating encoded sub information, there is the sequencing of an acquisition, then, second electronic equipment is by first coding information
After being parsed, the order of each connection sub-information of acquisition can be consistent with corresponding encoded sub information.So, second electricity
The default quantity connection sub-information that sub- equipment can determine first to obtain corresponds to the SSID information, at this time, such as
Quantity is preset described in fruit and is less than first quantity, then, the remaining connection sub-information can correspond to the password
Information.
For example, the default default quantity is 4 in second electronic equipment, second electronic equipment obtains altogether
12 connection sub-informations.So, second electronic equipment can determine preceding 4 connexons letter in this 12 connection sub-informations
Breath corresponds to the SSID information, and default quantity described at this time is less than first quantity, and second electronic equipment is determining
Still there is connexon remnant information after the SSID information, therefore, second electronic equipment can determine remaining 8 connexons
Information corresponds to the encrypted message.
Second electronic equipment, can be directly according to after the SSID information and the encrypted message is obtained
SSID information and the encrypted message are established with first electronic equipment to be connected.
In the embodiment of the present invention, the 3rd application can be installed in first electronic equipment, the 3rd application makes
External data is obtained with needs by means of the second Peripheral Interface in first electronic equipment.For example, the second data can
Be open it is described 3rd application when need by second Peripheral Interface obtain data.
For example, the 3rd application can be the 3rd camera application, then, the use of the 3rd camera application is just
Need by means of obtaining external data using corresponding second Peripheral Interface with the 3rd camera, so as to complete to clap
Take the photograph.For example, the second data need to obtain by second Peripheral Interface when can be and open the 3rd camera application
Data, i.e., described second data can be the view data that second Peripheral Interface obtains.
3rd application is not installed in second electronic equipment, or even also without described in second electronic equipment
Second Peripheral Interface, and second electronic equipment needs to use the described 3rd application, then, preferably, second electricity
It can be fictionalized in sub- equipment according to the described 3rd application and the corresponding 4th application of the described 3rd application.It is if for example, described
3rd application is the 3rd camera application, then, corresponding 4th shooting can be fictionalized in first electronic equipment
Head application.
After first electronic equipment establishes connection with second electronic equipment, second electronic equipment is opening institute
While stating the application of the 4th camera or afterwards, second request message can be sent to first electronic equipment.It is described
First electronic equipment can obtain described image number after second request message is obtained by second Peripheral Interface
According to, and second data can be transferred to second electronic equipment, in this way, second electronic equipment can beaten
Second data are obtained after opening the 4th camera application, for the user using second electronic equipment, its
Effect in second electronic equipment as truly having camera, it is clear that can improve user experience.It is also, of the invention real
Apply in example due to establishing connection between first electronic equipment and second electronic equipment, transmit the efficiency of data also compared with
It is high.
Embodiment five
Fig. 3 is referred to, the embodiment of the present invention provides a kind of electronic equipment, and the electronic equipment can include wireless telecommunications mould
Block and dio Output Modules, the electronic equipment can also include setup module 301, generation module 302 and output module 303.
Preferably, the electronic equipment can also include the first sending module 304, the first acquisition module 305 and the first behaviour
Make module 306.
The setup module 301 can be used for based on the wireless communication module will first electronic equipment set based on
Access point, the link information for accessing first electronic equipment is hidden with season first electronic equipment.
The generation module 302 can be used for being encoded the link information according to pre-defined rule, and generation first is compiled
Code information.
The generation module 302 specifically can be used for being compiled the link information according to dual tone multi-frequency dtmf rule
Code, generates first coding information.
The output module 303 can be used for playing first coding information by the dio Output Modules, so that
Obtain the second electronic equipment and first coding information is obtained by recording module, and can be based on parsing the link information completion
With the connection of first electronic equipment.
The output module 303 can be also used for playing the ground of first electronic equipment by the dio Output Modules
Location information.
First sending module 304 can be used for sending the first request message to second electronic equipment, with to institute
State second the first data of electronic equipment requests.
First acquisition module 305 can be used for obtaining first data that second electronic equipment is sent.
First acquisition module 305 specifically can be used for obtaining first data, allow the user to according to
First data are applied using described second.
In the embodiment of the present invention, first data be open first application when need by with described first application pair
The data that the first Peripheral Interface answered obtains, first application are installed in second electronic equipment, first operation
Module 306 can be used for virtually applying with the described first application corresponding second in first electronic equipment.
Preferably, the electronic equipment described in embodiment five is set with embodiment one to the first electronics described in example IV
Standby can be same electronic equipment, and the second electronic equipment described in embodiment five is with embodiment one to described in example IV
Second electronic equipment can be same electronic equipment.
Embodiment six
Fig. 4 is referred to, the embodiment of the present invention provides a kind of electronic equipment, and the electronic equipment can include recording module.
The electronic equipment can include the second acquisition module 401, parsing module 402 and link block 403.
Preferably, the electronic equipment can also include the first determining module 404, the second determining module 405, second is sent
Module 406, the 3rd acquisition module 407 and the second operation module 408.
Second acquisition module 401 can be used for obtaining what first electronic equipment played by the recording module
First coding information.
The parsing module 402 can be used for parsing first coding information, determine corresponding link information.
The parsing module 402 specifically can be used for, according to DTMF principles, parsing first coding information, determine to correspond to
SSID information, or determine the corresponding SSID information and encrypted message.
The link block 403 can be used for completing the connection with first electronic equipment according to the link information.
In the embodiment of the present invention, first coding information includes the first quantity encoded sub information, and wherein each two is compiled
There is preset duration interval, first determining module 404 is determined for described between the output time of numeral information
Preceding default quantity encoded sub information in one quantity encoded sub information is SSID encoded sub informations.
In the embodiment of the present invention, first coding information includes the first quantity encoded sub information, and wherein each two is compiled
There is preset duration interval, second determining module 405 can be used for when described default between the output time of numeral information
When quantity is less than first quantity, it is cipher coding sub-information to determine remaining encoded sub information.
Second sending module 406 can be used for sending the second request message to first electronic equipment, with to institute
State first the second data of electronic equipment requests.
3rd acquisition module 407 can be used for obtaining second data that first electronic equipment is sent.
3rd acquisition module 407 specifically can be used for obtaining second data, allow the user to according to
Second data open the 3rd application.
In the embodiment of the present invention, second data are to be needed when opening the 3rd application by being answered with the described 3rd
The data obtained with corresponding second Peripheral Interface, the 3rd application are installed in first electronic equipment, and described second
Operation module 408 can be used for virtually applying with the described 3rd application the corresponding 4th in second electronic equipment.
The embodiment of the present invention provides a kind of quick method for establishing connection, and the method can be applied to the first electronic equipment
On, first electronic equipment includes wireless communication module and dio Output Modules, and the method may include following steps:Base
It is main access point to set first electronic equipment in the wireless communication module, is hidden with season first electronic equipment
For accessing the link information of first electronic equipment;The link information is encoded according to pre-defined rule, generation the
One coding information;First coding information is played by dio Output Modules, so that the second electronic equipment passes through mould of recording
Block obtains first coding information, and can be based on the company for parsing the link information completion and first electronic equipment
Connect.
In the embodiment of the present invention, first electronic equipment can control the link information to be in hidden state, other
Electronic equipment can not search the link information when searching for wireless access point, and first electronic equipment can export described
First coding information, second electronic equipment are needed after first coding information is received by first coding information
Parsed, connected after determining the corresponding link information with first electronic equipment foundation.In this way, described first
Electronic equipment conceals the link information, other electronic equipments will not be made to search the link information, described in preliminary guarantee
The safety of first electronic equipment, second electronic equipment can be compiled after first coding information is received by described first
Code information is parsed, and is connected so as to be established with first electronic equipment, i.e. second electronic equipment can be automatically according to
First coding information obtains the link information, establishes and connects with first electronic equipment automatically, manual without user
Relevant information is inputted, the efficiency that electronic equipment obtains information is higher, and the accuracy of the information of acquisition is also higher, meanwhile, without use
Family is manually entered, and improves user experience.
Also, in the embodiment of the present invention, second electronic equipment needed after first coding information is received by
First coding information could be established with first electronic equipment after being parsed and connected, if can not parse, Huo Zhewu
Method correctly parses, and cannot all establish and connect with first electronic equipment, can be further ensured that the safety of electronic equipment, ensure
System reliability, avoids system under attack.
It is apparent to those skilled in the art that for convenience and simplicity of description, only with above-mentioned each function
The division progress of module, can be as needed and by above-mentioned function distribution by different function moulds for example, in practical application
Block is completed, i.e., the internal structure of device is divided into different function modules, to complete all or part of work(described above
Energy.The specific work process of the system, apparatus, and unit of foregoing description, may be referred to corresponding in preceding method embodiment
Journey, details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method can be with
Realize by another way.For example, device embodiment described above is only schematical, for example, the module or
The division of unit, is only a kind of division of logic function, can there is other dividing mode, such as multiple units when actually realizing
Or component can combine or be desirably integrated into another system, or some features can be ignored, or not perform.It is another, institute
Display or the mutual coupling, direct-coupling or communication connection discussed can be by some interfaces, device or unit
INDIRECT COUPLING or communication connection, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separate, be shown as unit
The component shown may or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
In network unit.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
In addition, each functional unit in each embodiment of the application can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units integrate in a unit.Above-mentioned integrated list
Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If the 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 technical solution of the application is substantially
The part to contribute in other words to the prior art or all or part of the technical solution can be in the form of software products
Embody, which is stored in a storage medium, including some instructions are used so that a computer
Equipment(Can be personal computer, server, or network equipment etc.)Or processor(processor)It is each to perform the application
The all or part of step of embodiment the method.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage
(ROM, Read-Only Memory), random access memory(RAM, Random Access Memory), magnetic disc or CD
Etc. it is various can be with the medium of store program codes.
The above, above example are implemented above only the technical solution of the application to be described in detail
The explanation of example is only intended to help the method and its core concept for understanding the present invention, should not be construed as limiting the invention.This
Those skilled in the art the invention discloses technical scope in, the change or replacement that can readily occur in should all be covered
Within protection scope of the present invention.