Summary of the invention
Method and wireless terminal that the embodiment of the invention provides a kind of terminal wireless to connect when having realized that terminal detects operation push-button and is in the state of carrying out trigger action, namely automatically start wireless search and set up wireless connections.
The invention provides the method that a kind of terminal wireless connects, the method comprises:
First terminal detects the state of operation push-button;
When operation push-button is in the state of carrying out trigger action, trigger wireless search;
Search for attachable wireless terminal, obtain Search Results;
The wireless connections of the second wireless terminal in foundation and the Search Results.
More preferably, when described Search Results was an attachable wireless terminal, selecting this wireless terminal was described the second wireless terminal.
More preferably, when described Search Results is a plurality of attachable wireless terminal, detect default connection mode, when described connection mode is first mode, detect whether comprise having the wireless terminal that connects history in the described Search Results,
If exist one to have the wireless terminal that connects history, selecting this wireless terminal is described the second wireless terminal;
If exist a plurality of have connect historical wireless terminals, show the described Search Results of output, the wireless terminal that is triggered in the Search Results of detection display output and to select it be described the second wireless terminal.
More preferably, when described Search Results is a plurality of attachable wireless terminal, detect default connection mode, if when described connection mode is the second pattern,
Show the described Search Results of output;
The wireless terminal that is triggered in the Search Results of detection display output and to select it be described the second wireless terminal.
More preferably, the state that described operation push-button is carried out trigger action is that described operation push-button is carried out the default action that drags, described demonstration is exported described Search Results and is comprised: the related described operation push-button of the Search Results of described demonstration output, and follow synchronously described operation push-button and carry out and describedly drag action and show output.
More preferably, described operation push-button is system-level suspension icon.
The present invention also provides a kind of wireless terminal, and this terminal comprises:
Detection module is for detection of the state of operation push-button;
Trigger module is used for when described detection module detects operation push-button and is in the state of carrying out trigger action, and the triggering search module carries out wireless search;
Search module is used for searching for attachable wireless terminal, obtains Search Results;
The wireless connections module is used for the wireless connections of the second wireless terminal of foundation and described Search Results.
Therefore, in some feasible execution modes of the present invention, when having realized that terminal detects operation push-button and is in the state of carrying out trigger action, namely automatically start wireless search and set up wireless connections, be convenient to user's operation, promoted user's experience.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
Fig. 1 is the method flow diagram of an embodiment of the method that connects of a kind of terminal wireless of the present invention.As shown in Figure 1, this program switching method may further comprise the steps:
Step S101, first terminal detects the state of operation push-button.
In the present embodiment, operation push-button can present for any form for user's operation such as icon, button.
Step S102 when operation push-button is in the state of carrying out trigger action, triggers wireless search.
When the state that detects operation push-button when first terminal is in the state of carrying out trigger action, namely by the attachable wireless terminal of wireless search, wherein, be in the state of carrying out trigger action and be the default trigger action of execution, can comprise the dragging of operation push-button, click, any default form such as double-click is in order to trigger wireless search, also can be specially the preset path that operation push-button drags or be dragged to predeterminable area etc.Terminal detects operation push-button and carries out default trigger action, namely scans attachable wireless terminal.Wireless mode can be WIFI, bluetooth etc.
Step S103 searches for attachable wireless terminal, obtains Search Results.
Step S104, the wireless connections of the second wireless terminal in foundation and the Search Results.
In the present embodiment, when having realized that terminal detects operation push-button and is in the state of carrying out trigger action, namely automatically start wireless search and set up wireless connections, be convenient to user's operation, promoted user's experience.
Fig. 2 is the method flow diagram of the another embodiment of the method that connects of a kind of terminal wireless of the present invention, and as shown in Figure 2, the method that this terminal wireless connects may further comprise the steps:
Step S201, first terminal detects the state of operation push-button.
In the present embodiment, operation push-button can present for any form for user's operation such as icon, button.
Step S202 when operation push-button is in the state of carrying out trigger action, triggers wireless search.
When the state that detects operation push-button when first terminal is in the state of carrying out trigger action, namely by the attachable wireless terminal of wireless search, wherein, be in the state of carrying out trigger action and be the default trigger action of execution, can comprise the dragging of operation push-button, click, any default form such as double-click is in order to trigger wireless search, also can be specially the preset path that operation push-button drags or be dragged to predeterminable area etc.Terminal detects operation push-button and carries out default trigger action, namely scans attachable wireless terminal.Wireless mode can be WIFI, bluetooth etc.
Step S203 searches for attachable wireless terminal, obtains Search Results.
In this preferred embodiment, can according to concrete Search Results, enter different treatment steps.Concrete, when the Search Results that obtains during for an attachable wireless terminal only, enter step S204; Otherwise, namely when the Search Results that obtains is a plurality of attachable wireless terminal, enter step S205.
Step S204, Search Results are an attachable wireless terminal, and selecting this wireless terminal is the second wireless terminal.
When the Search Results of step S203 during for an attachable wireless terminal only, can directly give tacit consent to will this unique attachable wireless terminal as the second wireless terminal.
Step S205, Search Results are a plurality of attachable wireless terminals, detect default connection mode.
As more excellent mode, can provide the connection mode of many cover preset rules independently to select for the user.When the Search Results of step S203 is a plurality of attachable wireless terminal, according to the connection mode of user preset, enter different treatment steps, two kinds of connection modes provided herein are illustrated.
Step S206, connection mode are first mode.
Search Results is a plurality of attachable wireless terminals, and detecting default connection mode is first mode, namely enters step S207.
Step S207 judges whether only exist to have a wireless terminal that connects history in the Search Results.
What deserves to be explained is, after first terminal and other wireless terminal wireless connections, be about to be saved in historical record with the link information (such as device id, IP address etc.) of the wireless terminal of its wireless connections.Under this first mode, can whether be present in the historical record according to a plurality of wireless terminals that connect that search, if only exist one to have the wireless terminal that connects history, then enter step S208, otherwise, namely there are a plurality of wireless terminals that connect history that have, enter step S210.
Step S208, selecting only to exist a wireless terminal with connection history is the second wireless terminal.
Step S209, connection mode are the second pattern.
Search Results is a plurality of attachable wireless terminals, and detecting default connection mode is the second pattern, namely enters step S210.
Step S210 shows the output Search Results.
Concrete, can be any display formats such as the name list that can connect wireless terminal, icon.
Step S211, detecting the wireless terminal that is triggered in the Search Results of output and selecting it is the second wireless terminal.
Concrete, according to the Search Results that shows output, detect the wireless terminal that is triggered of user selection, this trigger action can for the title of clicking or drag corresponding wireless terminal, icon etc., be elected it as second wireless terminal according to user's selection.
Step S212, the wireless connections of the second wireless terminal in foundation and the Search Results.
In this preferred embodiment, according to the difference of Search Results, enter different treatment steps, correspondence obtains the selection result of S204 or S208 or S211, and sets up wireless connections with the second wireless terminal of its selection.
As an execution mode, the state that operation push-button is carried out trigger action among the step S201 can be carried out the default action that drags for operation push-button, and wherein button is carried out sliding path that trigger action can set in advance for the user, fixed point path etc.Simultaneously, show that the Search Results of output can operation associated button, follow synchronously operation push-button and carry out and drag action and show output.As shown in Figure 3, Figure 4, trigger button 20 and show with the form of system-level suspension button, when the user drags when triggering button 20, the action that drags that the Search Results 30 that shows output is followed operation push-button 20 synchronously shows.The Search Results that demonstrates in this example presents with the form of tabulation, but content of the present invention is not limited to this kind way of realization.
Another embodiment according to a kind of terminal wireless connection provided by the invention, when having realized that terminal detects operation push-button and is in the state of carrying out trigger action, namely automatically start wireless search and set up wireless connections, and further provide according to Search Results and automatically selected neatly the second wireless terminal, and the flexible convenient manner that triggers search, be convenient to user's operation, promoted user's experience.
Fig. 5 is the structural representation of the first embodiment of a kind of wireless terminal of the present invention.As shown in Figure 5, this wireless terminal 300 comprises:
Detection module 301 is for detection of the state of operation push-button.
Wherein, operation push-button can present for any form for user's operation such as icon, button.
Trigger module 302 is used for when detection module detects operation push-button and is in the state of carrying out trigger action, and the triggering search module carries out wireless search.
When the state that detects operation push-button when the detection module 301 of first terminal is in the state of carrying out trigger action, namely by the attachable wireless terminal of wireless search, wherein, be in the state of carrying out trigger action and be the default trigger action of execution, can comprise the dragging of operation push-button, click, any default form such as double-click is in order to trigger wireless search, also can be specially the preset path that operation push-button drags or be dragged to predeterminable area etc.Terminal detects operation push-button and carries out default trigger action, namely scans attachable wireless terminal.Wireless mode can be WIFI, bluetooth etc.
Search module 303 is used for searching for attachable wireless terminal, obtains Search Results.
Wireless connections module 304 is used for the wireless connections of the second wireless terminal of foundation and Search Results.
According to the embodiment of a kind of wireless terminal provided by the invention, when having realized that terminal detects operation push-button and is in the state of carrying out trigger action, namely automatically start wireless search and set up wireless connections, be convenient to user's operation, promoted user's experience.
Fig. 6 is the structural representation of the second embodiment of a kind of wireless terminal of the present invention.As shown in Figure 6, this wireless terminal 400 comprises:
Detection module 401 is for detection of the state of operation push-button;
Trigger module 402 is used for when detection module detects operation push-button and is in the state of carrying out trigger action, and the triggering search module carries out wireless search;
Search module 403 is used for searching for attachable wireless terminal, obtains Search Results;
First selects module 404, is used for when the Search Results of search module is an attachable wireless terminal, and selecting this wireless terminal is the second wireless terminal, and notice wireless connections module.
When the Search Results of search module during for an attachable wireless terminal only, can directly give tacit consent to will this unique attachable wireless terminal as the second wireless terminal.
Wireless connections module 405 is used for the wireless connections of the second wireless terminal of foundation and Search Results.
According to the second embodiment of a kind of wireless terminal provided by the invention, when having realized that terminal detects operation push-button and is in the state of carrying out trigger action, namely automatically start wireless search and set up wireless connections, be convenient to user's operation, promoted user's experience.
Fig. 7 is the structural representation of the 3rd embodiment of a kind of wireless terminal provided by the invention.As shown in Figure 7, this wireless terminal 500 comprises:
Detection module 501 is for detection of the state of operation push-button.
Trigger module 502 is used for when detection module detects operation push-button and is in the state of carrying out trigger action, and the triggering search module carries out wireless search.
Search module 503 is used for searching for attachable wireless terminal, obtains Search Results.
Second selects module 504, the Search Results that is used for when search module is a plurality of attachable wireless terminals, and second pattern that is designated of connection mode module, Search Results is exported to the display module of terminal, the wireless terminal that is triggered in the Search Results of detection display module output and to select it be the second wireless terminal.
The 3rd selects module 506, and the Search Results that is used for when search module is a plurality of attachable wireless terminals, and the connection mode module be designated first mode, detect and whether comprise in the Search Results and be stored in the wireless terminal that connects history module,
If exist one to have the wireless terminal that connects history, selecting this wireless terminal is the second wireless terminal;
If there are a plurality of wireless terminals that connect history that have, Search Results is exported to the display module of terminal; The wireless terminal that is triggered in the Search Results of detection display module output and to select it be the second wireless terminal.
Connection mode module 505, the sign that is used for storing connection mode.
Connect history module 507, be used for storage and have the wireless terminal information that connects history.
Wireless connections module 509 is used for the wireless connections of the second wireless terminal of foundation and Search Results.
Display module 508 is used for output display.
This wireless terminal realizes that wireless connections corresponding to the another embodiment of said method, do not repeat them here.
The state that operation push-button is carried out trigger action is that operation push-button is carried out the default action that drags, the display module that Search Results exports terminal to comprises: the operation associated button of Search Results of display module output, and follow synchronously operation push-button and carry out and drag action and show output.
Above-described embodiment according to portable terminal provided by the invention, when having realized that terminal detects operation push-button and is in the state of carrying out trigger action, namely automatically start wireless search and set up wireless connections, and further provide according to Search Results and automatically selected neatly the second wireless terminal, and the flexible convenient manner that triggers search, be convenient to user's operation, promoted user's experience.
In several embodiment that the application provides, should be understood that described terminal and method can realize by another way.For example, device embodiment described above only is schematic, for example, the division of module, only be that a kind of logic function is divided, during actual the realization other dividing mode can be arranged, for example a plurality of modules or assembly can in conjunction with or can be integrated in another equipment, or some features can ignore, or do not carry out.Another point, the shown or coupling each other discussed or direct-coupling or communication connection can be by some communication interfaces, indirect coupling or the communication connection of device or module can be electrically, machinery or other form.
Described module as separating component explanation can or can not be physically to separate also, and the parts that show as module can be or can not be physical locations also.Can select according to the actual needs wherein some or all of, module realizes the purpose of the present embodiment scheme.
In addition, each functional module in each embodiment of the present invention can be integrated in the processing module, also can be that the independent physics of modules exists, also can two or more module integrations in a module.
It should be noted that at last: above each embodiment is not intended to limit only in order to technical scheme of the present invention to be described; Although with reference to aforementioned each embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment puts down in writing, and perhaps some or all of technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the scope of various embodiments of the present invention technical scheme.