Summary of the invention
The present invention, just based on the problems referred to above, has proposed a kind of new technical scheme, can when first connection wireless device, automatically connect, and does not need user manually to select, thereby promotes user's experience.
In view of this, the present invention proposes a kind of terminal, comprising: start unit, for when receiving the order of the wireless module that starts described terminal by communication, starts described wireless module; Whether search unit, there are other wireless devices for search; The first judging unit, when searching described other wireless devices at described search unit, judges whether described search unit is to search for first; Selected cell, for when judgment result is that of described the first judging unit is, described other wireless devices that search from described search unit according to predetermined manner, select a targeted wireless device, and described terminal is connected with described targeted wireless device.
In this technical scheme, when user starts after wireless module by communication (as NFC mode), can search for other wireless devices, if current search detected, be that terminal is searched for first, can automatically from other wireless devices that search, select a wireless device to connect, like this, can avoid user manually to connect again, reduce user's operation, promoted user's experience.Wherein, wireless device comprises bluetooth equipment and WIFI equipment etc.
In technique scheme, preferably, also comprise: the second judging unit, for judging whether described terminal and described targeted wireless device successfully connect; Acquiring unit, when judgment result is that of described the second judging unit is, obtains the device name of described targeted wireless device; Tip element, for carrying out voice message according to described device name.
In this technical scheme, when the wireless module of terminal and other wireless device successful connections, voice message goes out the title of the equipment of successful connection, for user, confirms.Like this, user without bright screen operation, just can realize and automatically be connected to other wireless devices in whole connection procedure.
In technique scheme, preferably, also comprise: display unit, when the determination result is NO at described the second judging unit, light the screen of described terminal, and show described other wireless devices that search out.
In this technical scheme, when with other wireless device connection failures, light the screen of terminal, and demonstrate the wireless device searching, for user, further carry out manual operation.
In technique scheme, preferably, also comprise: state holding unit, when not searching described other wireless devices at described search unit, keeps the open mode of described wireless module.
In this technical scheme, when not searching wireless device, keep the open mode of this terminal wireless module, to wait for the connection of other wireless devices.
In technique scheme, preferably, described predetermined manner comprises the number of described other wireless devices that the described search unit of statistics searches, when described other wireless devices are one, directly using described other wireless devices as described targeted wireless device, and at described other wireless devices while being a plurality of, the signal strength signal intensity of all wireless devices in described other wireless devices is contrasted, and from described all wireless devices, select a wireless device that signal strength signal intensity is the strongest as described targeted wireless device.
According to a further aspect in the invention, also provide a kind of wireless device method of attachment, having comprised: when receiving the order of the wireless module that starts described terminal by communication, started described wireless module; Whether search there are other wireless devices; When searching described other wireless devices, judge whether it is to search for first; Judgment result is that it is while searching for first, according to predetermined manner, from described other wireless devices that search, select a targeted wireless device, and described terminal is connected with described targeted wireless device.
In this technical scheme, when user starts after wireless module by communication (as NFC mode), can search for other wireless devices, if current search detected, be that terminal is searched for first, can automatically from other wireless devices that search, select a wireless device to connect, like this, can avoid user manually to connect again, reduce user's operation, promoted user's experience.Wherein, wireless device comprises bluetooth equipment and WIFI equipment etc.
In technique scheme, preferably, also comprise: judge whether described terminal and described targeted wireless device successfully connect; Judgment result is that while being, obtaining the device name of described targeted wireless device; According to described device name, carry out voice message.
In this technical scheme, when the wireless module of terminal and other wireless device successful connections, voice message goes out the title of the equipment of successful connection, for user, confirms.Like this, user without bright screen operation, just can realize and automatically be connected to other wireless devices in whole connection procedure.
In technique scheme, preferably, also comprise: in described terminal with described targeted wireless device is unsuccessful while connecting, light the screen of described terminal, and show described other wireless devices that search out.
In this technical scheme, when with other wireless device connection failures, light the screen of terminal, and demonstrate the wireless device searching, for user, further carry out manual operation.
In technique scheme, preferably, also comprise: when not searching described other wireless devices, keep the open mode of described wireless terminal.
In this technical scheme, when not searching wireless device, keep the open mode of this terminal wireless equipment, to wait for the connection of other wireless devices.
In technique scheme, preferably, described predetermined manner comprises the number of described other wireless devices that the described search unit of statistics searches, when described other wireless devices are one, directly using described other wireless devices as described targeted wireless device, and at described other wireless devices while being a plurality of, the signal strength signal intensity of all wireless devices in described other wireless devices is contrasted, and from described all wireless devices, select a wireless device that signal strength signal intensity is the strongest as described targeted wireless device.
By above technical scheme, can when first connection wireless device, automatically connect, do not need user manually to select, thereby promote user's experience.
Embodiment
In order more clearly to understand above-mentioned purpose of the present invention, feature and advantage, below in conjunction with the drawings and specific embodiments, the present invention is further described in detail.It should be noted that, in the situation that not conflicting, the application's embodiment and the feature in embodiment can combine mutually.
A lot of details have been set forth in the following description so that fully understand the present invention; but; the present invention can also adopt other to be different from other modes described here and implement, and therefore, protection scope of the present invention is not subject to the restriction of following public specific embodiment.
Fig. 1 shows the block diagram of terminal according to an embodiment of the invention.
As shown in Figure 1, terminal 100 according to an embodiment of the invention, comprising: start unit 102, for when receiving the order of the wireless module that starts described terminal by communication, starts described wireless module; Whether search unit 104, there are other wireless devices for search; The first judging unit 106, when searching described other wireless devices at described search unit 104, judges whether described search unit 104 is to search for first; Selected cell 108, for when judgment result is that of described the first judging unit 106 is, described other wireless devices that search from described search unit according to predetermined manner, select a targeted wireless device, and described terminal is connected with described targeted wireless device.
In this technical scheme, when user starts after wireless module by communication (as NFC mode), can search for other wireless devices, if current search detected, be that terminal is searched for first, can automatically from other wireless devices that search, select a wireless device to connect, like this, can avoid user manually to connect again, reduce user's operation, promoted user's experience.Wherein, wireless device comprises bluetooth equipment and WIFI equipment etc.
In technique scheme, preferably, also comprise: the second judging unit 110, for judging whether described terminal and described targeted wireless device successfully connect; Acquiring unit 112, when judgment result is that of described the second judging unit 110 is, obtains the device name of described targeted wireless device; Tip element 114, for carrying out voice message according to described device name.
In this technical scheme, when the wireless module of terminal and other wireless device successful connections, voice message goes out the title of the equipment of successful connection, for user, confirms.Like this, user without bright screen operation, just can realize and automatically be connected to other wireless devices in whole connection procedure.
In technique scheme, preferably, also comprise: display unit 116, when the determination result is NO at described the second judging unit 110, light the screen of described terminal, and show described other wireless devices that search out.
In this technical scheme, when with other wireless device connection failures, light the screen of terminal, and demonstrate the wireless device searching, for user, further carry out manual operation.
In technique scheme, preferably, also comprise: state holding unit 118, when not searching described other wireless devices at described search unit 104, keeps the open mode of described wireless module.
In this technical scheme, when not searching wireless device, keep the open mode of this terminal wireless module, to wait for the connection of other wireless devices.
In technique scheme, preferably, described predetermined manner comprises the number of described other wireless devices that the described search unit of statistics searches, when described other wireless devices are one, directly using described other wireless devices as described targeted wireless device, and at described other wireless devices while being a plurality of, the signal strength signal intensity of all wireless devices in described other wireless devices is contrasted, and from described all wireless devices, select a wireless device that signal strength signal intensity is the strongest as described targeted wireless device.
Fig. 2 shows the flow chart of wireless device method of attachment according to an embodiment of the invention.
As shown in Figure 2, wireless device method of attachment according to an embodiment of the invention, comprising:step 202, when receiving the order of the wireless module that starts described terminal by communication, starts described wireless module;Step 204, whether search there are other wireless devices;Step 206, when searching described other wireless devices, judges whether it is to search for first;Step 208 judgment result is that it is while searching for first, is selected a targeted wireless device according to predetermined manner, and described terminal is connected with described targeted wireless device from described other wireless devices that search.
In this technical scheme, when user starts after wireless module by communication (as NFC mode), can search for other wireless devices, if current search detected, be that terminal is searched for first, can automatically from other wireless devices that search, select a wireless device to connect, like this, can avoid user manually to connect again, reduce user's operation, promoted user's experience.Wherein, wireless device comprises bluetooth equipment and WIFI equipment etc.
In technique scheme, preferably, also comprise: judge whether described terminal and described targeted wireless device successfully connect; Judgment result is that while being, obtaining the device name of described targeted wireless device; According to described device name, carry out voice message.
In this technical scheme, when the wireless module of terminal and other wireless device successful connections, voice message goes out the title of the equipment of successful connection, for user, confirms.Like this, user without bright screen operation, just can realize and automatically be connected to other wireless devices in whole connection procedure.
In technique scheme, preferably, also comprise: in described terminal with described targeted wireless device is unsuccessful while connecting, light the screen of described terminal, and show described other wireless devices that search out.
In this technical scheme, when with other wireless device connection failures, light the screen of terminal, and demonstrate the wireless device searching, for user, further carry out manual operation.
In technique scheme, preferably, also comprise: when not searching described other wireless devices, keep the open mode of described wireless module.
In this technical scheme, when not searching wireless device, keep the open mode of this terminal wireless module, to wait for the connection of other wireless devices.
In technique scheme, preferably, described predetermined manner comprises the number of described other wireless devices that the described search unit of statistics searches, when described other wireless devices are one, directly using described other wireless devices as described targeted wireless device, and at described other wireless devices while being a plurality of, the signal strength signal intensity of all wireless devices in described other wireless devices is contrasted, and from described all wireless devices, select a wireless device that signal strength signal intensity is the strongest as described targeted wireless device.
Fig. 3 shows the structure chart of terminal according to an embodiment of the invention.
As shown in Figure 3, terminal 300 comprises that wireless communication module 302(comprises NFC module according to an embodiment of the invention), wireless device link block 304(comprises bluetooth link block) and voice cue module 306.
Wherein, wireless communication module 302 is mainly to provide the practical operation of user to outside NFC label, when external label being detected and open bluetooth order, calls wireless device link block 304.
Wireless device link block 304 is mainly to scan peripheral equipment list after being opened, and completes after scanning, finds the strongest the connecting of signal strength signal intensity from list of devices.
Voice cue module 306, when wireless device successful connection, voice message user, points out out the title of the wireless device of connection.
Communication take below as NFC mode, and wireless device is that bluetooth equipment is example, describes technical scheme of the present invention in detail.
Fig. 4 shows the particular flow sheet of wireless device method of attachment according to an embodiment of the invention.
As shown in Figure 4, the idiographic flow of wireless device method of attachment is as follows according to an embodiment of the invention:
Step 402, terminal scanning NFC label.
Step 404, reads the label substance of NFC label, reading label substance when starting bluetooth equipment, opens bluetooth equipment.
Step 406, the bluetooth equipment of scanning periphery, obtains bluetooth equipment list, and the quantity of adding up bluetooth equipment in bluetooth equipment list.When bluetooth equipment only has one, enter step 408, at bluetooth equipment, while being a plurality of, enter step 410, when not searching bluetooth equipment, enter step 412.
Step 408, is connected with a bluetooth equipment unique in bluetooth equipment list.
Step 410 finds the bluetooth equipment that signal strength signal intensity is the strongest from bluetooth equipment list, and is connected with it.Like this, can avoid user manually to connect again, reduce user's operation, promote user's experience.
Step 412, keeps bluetooth equipment open mode, to wait for the connection of other wireless devices.
Step 414, judge whether with bluetooth equipment list in bluetooth equipment successful connection, judgment result is that while being, enter step 416, when the determination result is NO, enter step 418.
Step 416, with bluetooth equipment list in bluetooth equipment successful connection time, voice message user.Like this, user without bright screen operation, just can realize and automatically be connected to other wireless devices in whole connection procedure.
Step 418, with bluetooth equipment list in bluetooth equipment connection failure time, light the screen of terminal, and demonstrate the bluetooth equipment list searching, for user, further carry out manual operation.
More than be described with reference to the accompanying drawings technical scheme of the present invention, by technical scheme of the present invention, can when first connection wireless device, have automatically connected, do not needed user manually to select, thereby promoted user's experience.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.