Summary of the invention
The technical problem to be solved in the present invention is, for the defects of prior art, provides a kind of place recognition methods and mobile phone based on Bluetooth of mobile phone, and it has increased mobile phone and utilizes bluetooth to carry out the new function of place identification, provide users with the convenient.
The technical scheme that technical solution problem of the present invention adopts is as follows:
A kind of place recognition methods based on Bluetooth of mobile phone wherein, comprises step:
A, in mobile phone pre-stored and place name that the Bluetooth adapter appointed place is corresponding, and the definition expanded function corresponding with this place name;
B, the Bluetooth adapter by mobile phone timing search periphery; When mobile phone entered described appointed place scope, automatic search arrived the corresponding Bluetooth adapter with described appointed place; And automatically complete pairing with the corresponding Bluetooth adapter of this appointed place; After completing pairing, mobile phone is trusted devices with this Bluetooth adapter mandate, can directly connect this adapter when mobile phone searches the Bluetooth address of this equipment again, skips the operation in pairing stage;
C, transfer the pre-stored place name corresponding with Bluetooth adapter that search, and the expanded function corresponding with this place name, automatically carry out expanded function and set and change;
Wherein, the expanded function that the definition in described steps A and this place name are corresponding comprises: definition according to different place names switch different contextual models, definition switches different Mobile phone cards according to different place names or definition is forwarded to mobile phone according to different place names the landline telephone of site.
Described place recognition methods based on Bluetooth of mobile phone wherein, also comprised step: a1, places corresponding Bluetooth adapter in each appointed place before steps A, and logical mobile phone is authorized to be trusted devices with the Bluetooth adapter pairing of described appointed place.
Described place recognition methods based on Bluetooth of mobile phone wherein, also comprises step: a2, starts the place identification function as required between steps A and step a1, mark the place name corresponding with the Bluetooth adapter of described appointed place.
Described place recognition methods based on Bluetooth of mobile phone, wherein, the expanded function that the definition in described steps A and this place name are corresponding comprises: definition is switched different contextual models according to different place names.
Described place recognition methods based on Bluetooth of mobile phone, wherein, the expanded function that the definition in described steps A and this place name are corresponding also comprises: definition is switched different Mobile phone cards according to different place names.
Described place recognition methods based on Bluetooth of mobile phone, wherein, described step C also comprises: be prompted to the user and entered this appointed place, and the setting of prompting user expanded function is changed.
Described place recognition methods based on Bluetooth of mobile phone, wherein, also comprise step: D after described step C, when mobile phone leaves described appointed place scope, automatically disconnect with the Bluetooth adapter that automatically is connected before, and the prompting user leaves the mark place, and automatically the change expansion arranges function to default setting and is prompted to the user.
A kind of mobile phone wherein, comprising:
Memory module is used for place name pre-stored and that the Bluetooth adapter appointed place is corresponding;
Module is set, is used for the definition expanded function corresponding with described place name;
Search module is for the Bluetooth adapter of timing search periphery; When mobile phone entered described appointed place scope, automatic search arrived the corresponding Bluetooth adapter with described appointed place;
Transfer and function change module, be used for transferring the pre-stored place name corresponding with this Bluetooth adapter, and the expanded function corresponding with this place name, automatically carry out expanded function and set change;
Wherein, the expanded function that described definition and described place name are corresponding comprises: definition according to different place names switch different contextual models, definition switches different Mobile phone cards according to different place names or definition is forwarded to mobile phone according to different place names the landline telephone of site.
Described mobile phone wherein, also comprises:
Be authorized trusted module, be used for the Bluetooth adapter pairing of described appointed place is authorized to be trusted devices; Can directly connect this adapter when mobile phone searches the Bluetooth address of this equipment again, skip the operation in pairing stage;
The place identification module is used for starting the place identification function as required, marks the place name corresponding with the Bluetooth adapter of described appointed place.
Described mobile phone wherein, also comprises:
Cancels module, be used for when mobile phone leaves described appointed place scope, automatically disconnect with the Bluetooth adapter that automatically is connected before, and the prompting user leaves the mark place, automatic change to expand function be set to default setting and be prompted to the user.
Place recognition methods and mobile phone based on Bluetooth of mobile phone provided by the present invention, utilize the existing Bluetooth function of mobile phone, allow mobile phone connect corresponding Bluetooth adapter by bluetooth, by distinguishing different Bluetooth adapter, under cell phone software is controlled, in order to point out user mobile phone to be in different positions, realize the identification to several appointed places (being the place that Bluetooth adapter is placed).The different location that judgement identifies according to mobile phone, mobile phone can be according to the relevant setting of demand change of user preset.It has increased mobile phone and utilizes bluetooth to carry out the new function of place identification, provide users with the convenient.
Embodiment
A kind of place recognition methods and mobile phone based on Bluetooth of mobile phone provided by the present invention, clearer, clear and definite for making purpose of the present invention, technical scheme and advantage, developing simultaneously referring to accompanying drawing, the present invention is described in more detail for embodiment.Should be appreciated that specific embodiment described herein only in order to explain the present invention, is not intended to limit the present invention.
A kind of place recognition methods based on Bluetooth of mobile phone that the invention process provides as shown in Figure 1, comprises the following steps:
Step S110, place corresponding Bluetooth adapter in each appointed place, and logical mobile phone is authorized to be trusted devices with the Bluetooth adapter pairing of described appointed place.
During concrete enforcement, as shown in Figure 2, user mobile phone 900 is with Bluetooth function, and wherein, appointed place 1 be that the place of user preset is such as being family, placement Bluetooth adapter A; Bluetooth adapter B is placed such as being in automobile in appointed place 2; Bluetooth adapter C is placed such as being office in appointed place 3.Its Bluetooth adapter A, B, C meet Bluetooth specification (comprising 1.1,2.0,2.1 various bluetooth protocol version), and are the equipment that has unique Bluetooth address.
In this step S110 after mobile phone power-on 900, opened bluetooth function, open simultaneously Bluetooth adapter A, after both complete pairing, mobile phone is authorized this Bluetooth adapter A and is trusted devices, can directly connect this adapter A when mobile phone searches the Bluetooth address of this equipment again so, skip the operation in pairing stage.
Step S120, start the place identification function as required, mark the place name corresponding with the Bluetooth adapter of described appointed place.
As mentioned above, after being made as trusted devices, whether cell phone software prompting user starts the place referential function, if the user selects " be ", cell phone software prompting this moment user can mark this place 1, and the user can mark according to the idea of oneself this place name (in family).
Step S130, in mobile phone pre-stored and place name that the Bluetooth adapter appointed place is corresponding, and the definition expanded function corresponding with this place name.
Wherein, the expanded function that described definition and this place name are corresponding comprises: definition is switched different contextual models, definition according to different place names and is switched landline telephone that different Mobile phone cards or definition be forwarded to mobile phone according to different place names the site etc. according to different place names.
Connect as mentioned above, just store after marking the place name corresponding with the Bluetooth adapter of described appointed place, and define expanded function corresponding to this place name.Such as switching contextual model (changing the tinkle of bells, volume, vibrating mode), double-card mobile phone can switch or close certain sim card, perhaps mobile phone is forwarded to the landline telephone of site.
Bluetooth adapter A is held open state, and is positioned over the place 1 (in family) of user annotation.Same method, complete the pairing of mobile phone and Bluetooth adapter B, Bluetooth adapter C, authorize the action that arranges for trusting, mark place and expanded function setting are held open state and are positioned over respectively place 2 (in the compartment) and place 3 (in office).
Step S140, the Bluetooth adapter by mobile phone timing search periphery; When mobile phone entered described appointed place scope, automatic search arrived the corresponding Bluetooth adapter with described appointed place.And automatically complete pairing with the corresponding Bluetooth adapter of this appointed place.
Step S150, transfer the pre-stored place name corresponding with Bluetooth adapter that search, and the expanded function corresponding with this place name, automatically carry out expanded function and set and change.And be prompted to the user and entered this appointed place, and prompting user expanded function is set and is changed.
For example, referring to Fig. 2, the user mobile phone bluetooth is held open state, when the user from the appointed place 1 family, in 2 automobiles of place, the place outside 3 offices of place entered the appointed place at 1,2,3 o'clock.Mobile phone can arrive corresponding adapter by automatic search.In the compartment that enters place 2 automobiles, mobile phone will be completed the pairing with the corresponding Bluetooth adapter B of this appointed place 2 automatically, automatic connection of Bluetooth adapter B, this moment, cell phone software detected the link of Bluetooth adapter B, the prompting user enters in 2 automobiles of place, mobile phone will according to preset before the user, carry out expanded function and set change, and be prompted to the user automatically.
Step S160, when mobile phone leaves described appointed place scope, automatically disconnect with the Bluetooth adapter that automatically is connected before, and the prompting user leaves the mark place, automatically change to expand and function be set to default setting and be prompted to the user.
For example, referring to Fig. 2, the user mobile phone bluetooth is held open state, as the user from the appointed place 1, when 2,3 place was left, mobile phone can disconnect with the Bluetooth adapter that automatically is connected before, cell phone software prompting this moment user leaves the mark place of appointment, and mobile phone will change expansion and function is set to default setting and is prompted to the user.
Therefore the present invention utilizes mobile phone hardware and software resource, coordinates from the different Bluetooth adapter that is dynamically connected to identify the different location.And be prompted to the user, automatically realize the change of expanded function according to user's preset value.And Bluetooth adapter need to be held open state as the place sign always.Can select other bluetooth equipment of class2 level, its power is at-6~4dBm, and therefore coverage can indicate the place the scope judgement of 10 meters 10 meters left and right, provides users with the convenient.
Based on the place recognition methods based on Bluetooth of mobile phone of above-described embodiment, the embodiment of the present invention also provides a kind of mobile phone 900, as shown in Figure 3, comprising:
Memory module 910 is used for place name pre-stored and that the Bluetooth adapter appointed place is corresponding.
Module 920 is set, is used for arranging the expanded function corresponding with described place name; Such as switching contextual model (changing the tinkle of bells, volume, vibrating mode), double-card mobile phone can switch or close certain sim card, perhaps mobile phone is forwarded to the landline telephone of site.
Search module 930 is for the Bluetooth adapter of timing search periphery; When mobile phone entered described appointed place scope, automatic search arrived the corresponding Bluetooth adapter with described appointed place;
Transfer and function change module 940, be used for transferring the pre-stored place name corresponding with this Bluetooth adapter, and the expanded function corresponding with this place name, automatically carry out expanded function and set change.
Be authorized trusted module 950, be used for the Bluetooth adapter pairing of described appointed place is authorized to be trusted devices;
Place identification module 960 is used for starting the place identification function as required, marks the place name corresponding with the Bluetooth adapter of described appointed place.
Described mobile phone wherein, also comprises:
Cancels module 970, be used for when mobile phone leaves described appointed place scope, automatically disconnect with the Bluetooth adapter that automatically is connected before, and the prompting user leaves the mark place, automatic change to expand function be set to default setting and be prompted to the user.
Place recognition methods and mobile phone based on Bluetooth of mobile phone provided by the present invention, utilize the existing Bluetooth function of mobile phone, allow mobile phone connect corresponding Bluetooth adapter by bluetooth, by distinguishing different Bluetooth adapter, under cell phone software is controlled, in order to point out user mobile phone to be in different positions, realize the identification to several appointed places (being the place that Bluetooth adapter is placed).The different location that judgement identifies according to mobile phone, mobile phone can be according to the relevant setting of demand change of user preset.It has increased mobile phone and utilizes bluetooth to carry out the new function of place identification, provide users with the convenient.
Should be understood that, application of the present invention is not limited to above-mentioned giving an example, and for those of ordinary skills, can be improved according to the above description or conversion, and all these improve and conversion all should belong to the protection range of claims of the present invention.