Specific embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following
When description is related to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous
Key element.Implementation method described in following exemplary embodiment does not represent the institute consistent with the application
There is implementation method.Conversely, they are only with described in detail in such as appended claims, the application
The example of the consistent apparatus and method of a little aspects.
It is the purpose only merely for description specific embodiment in term used in this application, and is not intended to be limiting
The application." one kind ", " institute of the singulative used in the application and appended claims
State " and " being somebody's turn to do " be also intended to include most forms, unless context clearly shows that other implications.Should also
Work as understanding, term "and/or" used herein refers to and associated lists item comprising one or more
Purpose any or all may combine.
It will be appreciated that though may describe various using term first, second, third, etc. in the application
Information, but these information should not necessarily be limited by these terms.These terms only be used for by same type of information that
This is distinguished.For example, in the case where the application scope is not departed from, the first information can also be referred to as
Two information, similarly, the second information can also be referred to as the first information.Depending on linguistic context, as in this institute
Use word " if " can be construed to " and ... when " or " when ... when " or " response
In it is determined that ".
Need to set up more than one interface channel between two equipment in many business scenarios, such as Fig. 1 institutes
Show, network 100 includes the first equipment 101, the second equipment 102, the first equipment 101 and second sets
Standby 102 can have and set up more than one interface channel (such as wired paths a, wireless mobile lead in figure
The ability of road b, short-distance wireless passage c).Wired paths a can be USB passages etc., wireless to move
Dynamic passage b can be GSM, 3G, 4G passage etc..Short-distance wireless passage c can be WIFI passages,
Bluetooth channels, infrared channel, NFC passages, RFID passages etc..First equipment 101 and the second equipment 102
Can be various smart machines, for example, mobile phone, panel computer, computer, intelligent earphone, intelligent television,
Car machine in intelligent watch, automobile etc..
In other business scenarios, network 100 can also include server (not shown), the
One equipment 101 and the second equipment 102 have the energy that wireless mobile channels b is set up with server 103 respectively
Power.
The equipment that the first equipment 101 is connected as the request for setting up short-distance wireless passage in below describing,
Second equipment 102 is used as connected equipment, it is worthwhile to note that an equipment in some scenarios can be only
Possess the function of the first equipment 101 or the second equipment 102, under other scenes, can be provided simultaneously with
The function of the first equipment 101 and the second equipment 102.When two equipment rooms set up short-distance wireless passage,
The connection point identification that first equipment 101 is issued according to the second equipment 102 is connected with the second equipment 102.
When setting up different short-distance wireless passages, connection point identification can be with difference, for example, setting up WIFI
During passage, connection point identification can be the second equipment 102 issue SSID (Service SetIdentifier,
Service set);When Bluetooth channels are set up, wireless connection point identification can be that the second equipment 102 is sent out
The MAC Address of this equipment of cloth;The connection point identification of other short-distance wireless passages disobeys secondary enumerating.
The application provides the equipment room method of setting up short-distance wireless passage, can improve set up short distance without
The efficiency of line passage.
Fig. 2 describes its operation principle from the side of the first equipment 101.
S201, at least one radio channel link information, the channel radio are received from the interface channel set up
Road link information includes the connection point identification in the second equipment 102, and connection point identification is used for identifying wherein
One tie point of short-distance wireless passage.
S202, if searching the tie point matched with received connection point identification, according to institute
The radio channel link information for receiving sets up short-distance wireless passage with the tie point.
It can be seen that, because the application is without artificial selection tie point or manually enters password, therefore can accomplish
Quickly set up short-distance wireless passage.
Except the step shown in Fig. 2, in some have certain requirements occasion to security, the application can be with
Security is ensured by authentication, before short-distance wireless passage is set up, can be verified and be set up short distance
From the legitimacy of the equipment involved by radio channel.If authentication passes through, the first equipment 101
Radio channel link information can automatically be obtained;If authentication fails, the first equipment 101 is still needed to
To set up short with the second equipment 102 by way of user's artificial selection tie point and input connection password
Apart from radio channel.
The account that to the mode of equipment validity checking to be verified can be the equipment for checking to be verified is
No is registered legal account;Or whether terminal device is belonged under same account name or interlock account name
Under;Or whether the connection point list of the connection of the first equipment of permission 101 recorded on server is sky etc..
According to the demand of different business scene, can be to the first equipment 101 and the second equipment 102 wherein
One of whether be that validated user is verified, it is also possible to legitimate verification is carried out to two equipment.Therefore
Used as an example, when the first equipment 101 needs to be verified identity, the first equipment 101 can be by certainly
The authentication mark of body carries out identity by the equipment that the interface channel set up issues responsible authentication
Checking.
In an example, the scheme disclosed in Fig. 2 is applied to two equipment rooms and sets up certain short distance first
In the case of radio channel, after being successfully established, can be by the nothing corresponding to the short-distance wireless passage
Line link information is preserved.Therefore, short-distance wireless interface channel is either still set up again first, can
To first look for the corresponding radio channel link information that whether has been stored with, if it is not, by itself
Authentication mark issues the connected equipment or the server by the interface channel set up to be carried out
Authentication;If finding stored radio channel link information, just can be wireless according to what is stored
Link information realizes automatic connection.When according to the radio channel link information for being stored and the second equipment 102
It is not connected with when successfully, then deletes preserved radio channel link information.
It is therefore seen that, be replaced when the first equipment 101, system reboot, account password are changed etc. it is various can
Can cause under the scene that stored radio channel link information is cleared, the application can be realized easily
The automatic connection of various short-distance wireless passages.
In one embodiment, can be by the sender of radio channel link information as responsible authentication
Equipment.If for example, the first equipment 101 is to server request radio channel link information, by servicing
Device is authenticated to the identity of the first equipment 101;If again for example, the first equipment 101 is to the second equipment
102 request radio channel link informations, then carry out identity and recognize by 102 pairs of the first equipment 101 of the second equipment
Card.Server can be physically integrated in the first equipment 101 or the second equipment 102, it is also possible to solely
Stand on the second equipment 101 and the second equipment 102.
In step s 201, the first equipment 101 gets channel radio by the interface channel set up
Road link information.The situation of the interface channel transmission radio channel link information to having set up is lifted below
Example explanation.The interface channel set up can include at least one with lower channel:It is wired paths a, wireless
Movable passageway b, short-distance wireless passage c.
S201a, radio channel link information is received by the wireless mobile channels b for having set up.
As one embodiment, can be completed to issue radio channel by server by utilizing wireless mobile channels b
The function of link information.
On the server record radio channel link information mode can be configured in advance it is good, or
Server is sometime being uploaded to (for example, it may be the second equipment 102 is being stepped on by the second equipment 102
During record server, radio channel link information is uploaded to server).
The information of the radio channel tie point recorded on server can only include one of which short distance
Required information when radio channel is set up, it is also possible to built including two kinds or more short-distance wireless passages
Immediately required information.For example, the radio channel link information recorded on server can be and second
Equipment 102 sets up SSID the and WIFI passwords used in WIFI passages;Can also be the second equipment 102
MAC Address and bluetooth password;Again or, can be recorded with both of which.Connected for other radio channels
Information is not illustrated successively.
Server issues radio channel link information has various situations to the first equipment 101, for example, can be
The authentication of the first equipment 101 by when issue, or the first equipment 101 when necessary to server send out
The request for obtaining radio channel tie point is sent, server is issued when the request is received.
The radio channel link information that first equipment 101 is received from server can be that to set up one of which short
Apart from the radio channel link information of the information required for radio channel, or two kinds or more.Root
Different according to the radio channel link information for being issued, when S202 is performed, the first equipment 101 sets up short distance
Process from radio channel can be with difference.
For example, the first equipment 101 receive be one of which radio channel link information (such as SSID and
WIFI passwords), then connection point identification of first equipment 101 in the radio channel link information for receiving
Whether (such as SSID) search has the tie point of matching, if it has, then by radio channel link information (example
Such as, WIFI passwords and SSID) the second equipment 102 is issued, connection is set up in request.It is short when setting up first
After radio channel, then first the second short-distance wireless of short-distance wireless Path Setup by having set up
Passage (reference can be made to hereafter S201c parts describe).
If again for example, the first equipment 101 receive be more than one radio channel link information (for example
SSID and WIFI passwords, MAC Address and bluetooth password), then can be according to the radio channel for being received
Link information directly sets up more than one radio channel.After the completion of foundation, if there is other to be set up
Radio channel link information, then can by the interface channel set up (the wired paths a that has for example connected,
Wireless mobile channels b, and wherein one short-distance wireless passage c) for having set up obtains corresponding nothing
Line passage link information.Detailed process can be found in the application S201a/S according to selected channel type
Corresponding contents in 201b/S201c.
S201b, radio channel link information is obtained by the wired paths a for having set up.
As one embodiment, tested setting up the equipment identities involved by short-distance wireless passage in server
After card passes through, the first equipment 101 and the second equipment 102 can be notified;Or will by the first equipment 101
The authentication mark of itself is carried issues the request authentication of the second equipment 102 in the request.Second sets
Standby 102 after the message being verified is obtained, can be by the wired paths a that has connected to the first equipment
101 send radio channel link information, and transmitted radio channel link information can be that one of which is treated
Information corresponding to the short-distance wireless passage of foundation, or two or more is to be set up short
Apart from the information corresponding to radio channel.
It is logical that first equipment 101 sets up one or more short-distance wireless after radio channel link information is received
Road.After the completion of foundation, if there is other radio channel link informations to be set up, can be by built
Vertical interface channel (wired paths a, the wireless mobile channels b for for example having connected, and wherein one
The short-distance wireless passage c) of foundation obtains corresponding radio channel link information.Detailed process can join
See the application S201a/S 201b/S201c appropriate section contents.
S201c, the short-distance wireless passage c set up by one of them connect letter obtaining radio channel
Breath.
When having had built up one or more than one short distances between the first equipment 101 and the second equipment 102
From radio channel c, if there is other short-distance wireless passages to be set up, the second equipment 102 is led to
After the short-distance wireless passage set up by the nothing corresponding at least one short-distance wireless passage to be set up
Line passage link information issues the first equipment 101.First equipment 101 passes through the short-distance wireless set up
After passage receives radio channel link information, the company matched with received connection point identification is searched
Connection password (if necessary to input connection password, is then sent to the second equipment 102) by contact, sets up phase
The short-distance wireless passage answered.
By the announcement of S201a, S 201b, S201c parts above, it can be seen that different when selecting
When the interface channel set up transmits the short-distance wireless passage of varying number, a plurality of short-distance wireless is set up
The process of passage can be with difference.For example, the interface channel that can have been set up by same is received
All radio channel link informations to be set up, then the first equipment 101 can directly set up a plurality of short distance
Radio channel.Can before any short-distance wireless passage is not set up, by wireless mobile channels from
Server receives at least one radio channel link information, or is connect from the second equipment 102 by wired paths
Receive at least one radio channel link information;After at least one short-distance wireless passage is set up, by it
In a short-distance wireless passage receive next short-distance wireless passage to be set up from the second equipment 102
Wireless corresponding passage link information.Various design cycles can change according to business demand, herein
Will not enumerate.
Some business scenarios can verify connection password when certain short-distance wireless passage is set up.Connection is close
The flow that code is sent to the first equipment 101 can be otherwise varied according to actual business scenario, in some fields
Scape, can together be packaged in radio channel when step 201 is performed by connection password and connection point identification
The first equipment 101 is sent in link information;In other scenes, connection password and connection point identification can
Being different acquisition flows.The description of several different handling processes property as an example is exemplified below, but
It is not limited to listed several flows.
For example, when user sets up radio channel and connects first, can be by connection password and connection point identification
The first equipment 101 is issued after packing.
Again for example, user can be after connection password and connection point identification be got only to tie point mark first
Knowledge is stored, when user next time sets up short-distance wireless with the tie point corresponding to this is connected point identification
During connection, the first equipment 101 asks to connect password again, and now the interface channel again by having set up will
The first equipment 101 is issued with the connection password being connected corresponding to point identification.
In addition, connection password can also be previously stored in the first equipment 101 locally by certain mode,
After the first equipment 101 gets connection point identification, closed with the corresponding of connection password according to connection point identification
Tie up to the connection password corresponding to local lookup.For example, can be in the login service of the first equipment 101
Password locally downloading storage will be connected during device, connection password can carry the label for recognizing the connection password,
When server is handed down to the connection point identification of the first equipment 101, can be by the mark of corresponding connection password
Label are handed down to the first equipment 101 together, and the first equipment 101 obtains stored connection password according to label
Etc..
Fig. 3 is that the workflow of the second equipment 102 as connected equipment in the embodiment of the present application is illustrated.
S301, the connection that at least one radio channel link information of the second equipment 102 is passed through to have set up
Passage is sent to the first equipment 101.It should be noted that performing the process of S301 upper by server
Literary S201a parts have been described above, and are not repeated to disclose in this example.The correlation of radio channel link information
Definition refers to described above.
S302, when the radio channel link information of the transmission of the first equipment 101 is received, if received
To connection point identification match with the connection point identification in this equipment, then according to radio channel link information
Set up the short-distance wireless passage of the tie point and the first equipment 101.
Except the step shown in Fig. 3, in some have certain requirements occasion to security, the application can be with
Security is ensured by authentication, before short-distance wireless passage is set up, can be verified and be set up short distance
From the legitimacy of the equipment involved by radio channel.If authentication passes through, the second equipment 102
Radio channel link information can be sent.
Mutually echoed with the scheme disclosed in S201a, S201b, S201c above, in different situations second
Equipment 102 is different in the implementation procedure of S301.It can be seen from the above description that radio channel connection letter
The content that breath can be disclosed according to S201a parts issues the first equipment 101 by server, it is also possible to pass through
Radio channel link information is issued the first equipment 101 by the second equipment 102.Accordingly, as example, the
Two equipment 102 can perform the process of following S301a, S301b, S301c.
By wireless mobile channels can be uploaded to radio channel link information by S301a, the second equipment 102
Server, then issue the first equipment 101 by wireless mobile channels by server.For example, can be
Radio channel link information is uploaded during two equipment, 102 login service device, naturally it is also possible to notify in server
The action for uploading is performed during the second equipment 102.The need for practical business scene, the second equipment 102
One or more radio channel link information can be uploaded.
Second equipment 102 can also carry out the process disclosed in S301b.
S301b, server to setting up after the authentication involved by short-distance wireless passage passes through,
Notify the second equipment 102, the second equipment 102 is by the wired paths set up by least one channel radio
Road link information issues the first equipment 101.
Second equipment 102 can also perform the process disclosed in S301c.
S301c, the first equipment 101 can ask second to set by the short-distance wireless passage c having built up
Standby 102 send radio channel link information, and the second equipment 102 after receiving the request, will be wireless accordingly
Passage link information is sent to the first equipment 101 by having set up short-distance wireless passage c.
It is to be appreciated that the function that the function that is completed of the first equipment 101 and the second equipment 102 are completed
Same equipment can be simultaneously integrated in, the equipment is respectively completed the first equipment when different roles are performed
The function of 101 function or the second equipment 102.
In one example, the process that figure 2 above, Fig. 3 are described can be applied to set up each for the first time short
During apart from radio channel, after certain short-distance wireless passage is established, the first equipment 101 can be preserved
The radio channel link information of the short-distance wireless passage, to be connected this with the second equipment 102 next time
Connection can be automatically set up during tie point, correlated process refers to the similar flow of prior art.
Fig. 4 is one diagram of application example of the application.The scheme of the application is applied to mutually in this example
In networking automotive system 400.System 400 be based on Android operation system or other can open automatic input without
The operating system of line passage link information.
System 400 includes mobile phone 401, car machine 402, Cloud Server 403.Mobile phone 401 and car machine
402 functions that can have both completed the first equipment 101, it is also possible to complete the function of the second equipment 102.Figure
Only described in 4 mobile phone 401 as the first equipment 401, car machine 402 as the second equipment 402 flow.
The short-distance wireless passage to be set up needed for this example includes WIFI passages and Bluetooth channels.
Mobile phone 401 and car machine 402 are applied by the App in the machine, respectively by wireless mobile channels
(being described by taking 4G passages as an example below) interacts with Cloud Server 403.In addition, on mobile phone 401
Application to be set up waiting can be controlled according to the quantity of the short-distance wireless function of being opened on mobile phone 401
The quantity of short-distance wireless passage is set up, user can in advance open WIFI and bluetooth connection interface in this example,
It is using short-distance wireless passage to be set up at present is set after the connecting interface for retrieving WIFI and bluetooth
WIFI and Bluetooth channels.
In the S401 stages, car machine 402 by logging in Cloud Server 403, by the connection point identification of WIFI
Cloud Server 403 is uploaded to WIFI passwords.
In the S402 stages, when driver is initially opened the application on mobile phone 401, mobile phone 401 is by answering
Cloud Server 403 is issued with by account and password, request is logged in.
In the S403 stages, the account that the checking mobile phone 401 of Cloud Server 403 sends logs in when institute with car machine
Whether the account for using is consistent, if unanimously, be verified, the car machine 402 that then will be preserved
WIFI connects point identification and WIFI passwords issue mobile phone 401.
In the S404 stages, mobile phone 401 is according to the WIFI connection point identifications and WIFI passwords for receiving to car machine
402 initiate WIFI connections.
In the S405 stages, after the checking WIFI passwords of car machine 402 pass through, the connection for responding mobile phone 401 please
Ask, set up the success of WIFI passages.
In the S406 stages, the WIFI passages that mobile phone 401 passes through to have set up ask MAC ground to car machine 402
Location and bluetooth password, and the accounts information of itself is issued into car machine 402.
In S407 stages, the account and native login Cloud Server 403 of the checking mobile phone 401 of car machine 402
Account it is identical, then MAC Address and bluetooth password are issued into mobile phone 401 by WIFI passages.
In the S408 stages, MAC Address and bluetooth password are issued car machine 402 and ask connection by mobile phone 401
Bluetooth channels.
WIFI is set up after S409 stages, the checking bluetooth password of car machine 402 with mobile phone 401 to be connected.
Except the process described by the S401-409 stages, mobile phone 401 can also be successfully established WIFI passages
Afterwards, WIFI connection point identification and WIFI passwords are preserved;After Bluetooth channels are successfully established, parking machine is protected
402 MAC Address and bluetooth password.Mobile phone 401 can also be set up in WIFI passages or Bluetooth channels
During failure, user's artificial selection is pointed out to connect point identification by App, and typing connection password comes again by hand
It is secondary to attempt connection.
Embodiment with the foregoing method for setting up short-distance wireless passage is corresponding, present invention also provides building
The embodiment of the device of vertical short-distance wireless passage.
The embodiment that the application sets up the device of short-distance wireless passage can apply mechanical, electrical in mobile phone, car
Depending on the smart machines such as, wrist-watch.Device embodiment can be realized by software, it is also possible to by hardware or
The mode of person's software and hardware combining is realized.As a example by implemented in software, as the device on a logical meaning,
It is by corresponding computer program instructions in nonvolatile memory by the processor of smart machine where it
Read and run in internal memory what is formed.From for hardware view, as shown in figure 5, for the application sets up short
Apart from a kind of hardware structure diagram of smart machine where the device of radio channel, except the treatment shown in Fig. 5
Outside device, internal memory, network interface and nonvolatile memory, the intelligence in embodiment where device
Equipment can also include other hardware generally according to the actual functional capability of the smart machine, and this is repeated no more.
Fig. 6 is refer to, the device 600 of short-distance wireless passage is set up, including:
Communication module 601, for receiving at least one radio channel connection letter from the interface channel set up
Breath, and link block is transmitted to, radio channel link information includes the connection point identification in the second equipment;
Link block 602, for searching the tie point matched with received connection point identification
When, short-distance wireless passage is set up according to radio channel link information and tie point.
In one embodiment, the interface channel set up can include at least one with lower channel:It is wired
Passage, wireless mobile channels, short-distance wireless passage.
The interface channel that communication module 601 can have been set up by same connects from the second equipment or server
Receive the radio channel link information of one or more.Alternatively, it is also possible to do not set up any short distance without
Before line passage, communication module 601 receives radio channel link information by wireless mobile channels from server,
Or receive the radio channel link information from the second equipment by wired paths;It is short setting up at least one
After radio channel, communication module 601 is set by wherein one short-distance wireless passage from described second
It is standby to receive the radio channel link information.
In one embodiment, device 600 can also include memory module (not shown), be used for
Storage radio link channel information;Communication module 601 can not also store wireless connection and lead in memory module
During road information, the authentication mark that will set up the device of short-distance wireless passage passes through the connection set up
Passage issues the second equipment or the server and carries out authentication.
In addition, device 600 can also include processing module (not shown), for setting up short distance
After radio channel, by the radio channel link information corresponding to the short-distance wireless passage in a storage module
Storage;And short distance ought next time be set up according to the radio channel link information for being stored and the second equipment
During radio channel, if do not set up the radio channel link information that successfully, will be stored in memory module deleted.
Short-distance wireless passage can include following at least one:It is WIFI passages, Bluetooth channels, infrared logical
Road, NFC passages;The connection point identification can include:Service set, MAC Address.
According to different connection requirements, radio channel link information can also include be connected point identification it is right
The connection password answered.
Link block 602 be additionally operable to be received from the interface channel set up by communication module 601 obtain with
The corresponding connection password of connection point identification;Or according to connection point identification and the corresponding relation for being connected password, from
Locally obtain the connection password.
Fig. 7 is another device 700 for setting up short-distance wireless passage, and the equipment for being connected with request is built
Vertical at least one short-distance wireless passage;Including:
Communication module 701, at least one radio channel link information in the second equipment to be passed through
The interface channel of foundation is sent to the first equipment, and radio channel link information includes the connection in the second equipment
Point identification;
Link block 702, for connecting letter when at least one radio channel for receiving the transmission of the first equipment
During breath, if the connection point identification and the carried in the radio channel link information that sends of first equipment
Connection point identification in one equipment matches, then the radio channel link information for being sent according to the first equipment is built
Found the short-distance wireless passage of the tie point and the first equipment.
Communication module 701 may be located in the second equipment, and now, the interface channel set up can be had
Line passage or short-distance wireless passage.In addition, communication module 701 can also be located on server, now,
The interface channel set up can be wireless mobile channels.At least one of the second equipment that server sends
Identification information can be manually configured in being sent to the server on server or by connected equipment.
The device 600 of short-distance wireless passage is set up in design and set up the device of short-distance wireless passage
When 700, two functions of device can be applied by App, it is also possible to by open the corresponding interface
Operating system is realized, and the function of two devices can be integrated in same equipment, it is also possible to loaded respectively
In different equipment, depending on the function of being completed needed for visual specific equipment.
The function of unit and the implementation process of effect specifically refer to correspondence in the above method in said apparatus
The implementation process of step, will not be repeated here.
For device embodiment, because it corresponds essentially to embodiment of the method, so related part ginseng
See the part explanation of embodiment of the method.Device embodiment described above be only it is schematical,
It is wherein described as separating component illustrate unit can be or may not be it is physically separate, make
For the part that unit shows can be or may not be physical location, you can with positioned at a place,
Or can also be distributed on multiple NEs.Can select according to the actual needs part therein or
Person whole modules realize the purpose of application scheme.Those of ordinary skill in the art are not paying creativeness
In the case of work, you can to understand and implement.
The preferred embodiment of the application is the foregoing is only, is not used to limit the application, it is all at this
Within the spirit and principle of application, any modification, equivalent substitution and improvements done etc. should be included in
Within the scope of the application protection.