Nothing Special   »   [go: up one dir, main page]

CN105530383B - A kind of profile switching method and mobile terminal - Google Patents

A kind of profile switching method and mobile terminal Download PDF

Info

Publication number
CN105530383B
CN105530383B CN201610109594.9A CN201610109594A CN105530383B CN 105530383 B CN105530383 B CN 105530383B CN 201610109594 A CN201610109594 A CN 201610109594A CN 105530383 B CN105530383 B CN 105530383B
Authority
CN
China
Prior art keywords
wireless network
contextual model
attribute information
characteristic attribute
pattern
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201610109594.9A
Other languages
Chinese (zh)
Other versions
CN105530383A (en
Inventor
李宗源
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610109594.9A priority Critical patent/CN105530383B/en
Publication of CN105530383A publication Critical patent/CN105530383A/en
Application granted granted Critical
Publication of CN105530383B publication Critical patent/CN105530383B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions

Landscapes

  • Engineering & Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention discloses a kind of profile switching method and mobile terminal, wherein method includes:When wireless network linkage function is in opening, the characteristic attribute information of each wireless network in the wireless network list under current environment is obtained;The characteristic attribute information of each wireless network in the wireless network list and the default contextual model table of comparisons determine target context pattern;If the target context pattern is different from situation of presence pattern, by the situation of presence pattern switching to the target context pattern.The embodiment of the present invention is according to the characteristic attribute information automatic switching situation pattern of wireless network, it is possible to increase intelligent, the flexibility of mobile terminal, is user-friendly.

Description

A kind of profile switching method and mobile terminal
Technical field
The present invention relates to technical field of mobile terminals, and in particular to a kind of profile switching method and mobile terminal.
Background technology
With the fast development of mobile communication technology and becoming increasingly popular for mobile terminal, mobile terminal turns into people's day Often one of instrument essential in life.Mobile terminal has provided the user the different contextual models applied to different scenes, User can be different according to the occasion at residing environment or place, different contextual models set, such as in office or meeting The contextual model of mobile terminal is arranged to silent mode by room, to ensure that incoming call or message the tinkle of bells do not influence other people;In life field Close or family is set to bell mode, so that user incoming call answering or can check message in time.If ring residing for mobile terminal Border or place occasion change, then the contextual model that user needs to switch mobile terminal is to adapt to be presently in environment, user Contextual model by entering mobile terminal switches interface come manual switching contextual model, for a user, inconvenient for use;To moving For dynamic terminal, lack of wisdom, flexibility.
The content of the invention
The embodiment of the present invention provides a kind of profile switching method and mobile terminal, according to the characteristic attribute of wireless network Information automatic switching situation pattern, it is possible to increase intelligent, the flexibility of mobile terminal, be user-friendly.
First aspect of the embodiment of the present invention provides a kind of profile switching method, including:
When wireless network linkage function is in opening, obtain each in the wireless network list under current environment The characteristic attribute information of wireless network;
The characteristic attribute information of each wireless network in the wireless network list and the control of default contextual model Table determines target context pattern, the default contextual model table of comparisons include a variety of contextual models and with a variety of scene moulds The characteristic attribute information of wireless network corresponding to every kind of contextual model in formula;
If the target context pattern is different from situation of presence pattern, by the situation of presence pattern switching to the mesh Mark contextual model.
With reference in a first aspect, in the first mode in the cards of first aspect of the embodiment of the present invention, the basis The characteristic attribute information of each wireless network in the wireless network list and the default contextual model table of comparisons determine target feelings Scape pattern, including:
By the characteristic attribute information of each wireless network in the wireless network list respectively with default contextual model pair Matched according to every kind of contextual model in table;
If the wireless network list matches with certain contextual model in the default contextual model table of comparisons, and phase The number of the wireless network of matching exceedes predetermined threshold value, then the contextual model is defined as into target context pattern.
May be real with reference to the first mode in the cards of first aspect, second in first aspect of the embodiment of the present invention In existing mode, the characteristic attribute information of each wireless network by the wireless network list respectively with default scene After every kind of contextual model in pattern collation table is matched, in addition to:
If the wireless network list matches with least two contextual models in the default contextual model table of comparisons, Then detect to whether there is in the default contextual model table of comparisons and match with the current characteristic attribute information for being connected wireless network Contextual model;
If in the presence of with the current contextual model for being connected the characteristic attribute information of wireless network and matching, will with it is described The contextual model that the characteristic attribute information of current connection wireless network matches determines target context pattern.
May be real with reference to second of mode in the cards of first aspect, the in first aspect of the embodiment of the present invention the 3rd In existing mode, it whether there is in the detection default contextual model table of comparisons and the current feature category for being connected wireless network After the contextual model of property information match, in addition to:
If in the absence of with the current contextual model for being connected the characteristic attribute information of wireless network and matching, obtain respectively Take the number of the wireless network that every kind of contextual model matches with the wireless network list at least two contextual model;
The number of the wireless network to match at least two contextual model with the wireless network list is most Contextual model determine target context pattern.
With reference to first aspect, first aspect the first to the third mode in the cards, in present example first In 4th kind of mode in the cards of aspect, the characteristic attribute information includes service set and/or physical address identifies.
Second aspect of the embodiment of the present invention provides a kind of mobile terminal, including:
Information acquisition unit, for when wireless network linkage function is in opening, obtaining the nothing under current environment The characteristic attribute information of each wireless network in line network list;
Target determination unit, for each wireless network in the wireless network list characteristic attribute information and The default contextual model table of comparisons determines target context pattern, the default contextual model table of comparisons include a variety of contextual models and The characteristic attribute information of wireless network corresponding with every kind of contextual model in a variety of contextual models;
Mode switch element, if different from situation of presence pattern for the target context pattern, work as cause by described in Scape pattern switching is to the target context pattern.
With reference to second aspect, in the first mode in the cards of second aspect of the embodiment of the present invention, the target Determining unit includes:
Matching unit, for by the characteristic attribute information of each wireless network in the wireless network list respectively with advance If every kind of contextual model in the contextual model table of comparisons is matched;
First determining unit, if for certain feelings in the wireless network list and the default contextual model table of comparisons Scape patterns match, and the number of the wireless network to match exceedes predetermined threshold value, then the contextual model is defined as into target feelings Scape pattern.
May be real with reference to the first mode in the cards of second aspect, second in second aspect of the embodiment of the present invention In existing mode, the target determination unit also includes:
Detection unit, if at least two feelings in the wireless network list and the default contextual model table of comparisons Scape patterns match, then detect and whether there is in the default contextual model table of comparisons and the current feature category for being connected wireless network The contextual model of property information match;
Second determining unit, if in the presence of with the current feelings for being connected the characteristic attribute information of wireless network and matching Scape pattern, then the contextual model to match with the current characteristic attribute information for being connected wireless network is determined into target context mould Formula.
May be real with reference to second of mode in the cards of second aspect, the in second aspect of the embodiment of the present invention the 3rd In existing mode, the target determination unit also includes:
Number acquiring unit, if in the absence of matching with the current characteristic attribute information for being connected wireless network Contextual model, then every kind of contextual model at least two contextual model is obtained respectively and is matched with the wireless network list Wireless network number;
3rd determining unit, for the nothing that will be matched at least two contextual model with the wireless network list The largest number of contextual models of gauze network determine target context pattern.
With reference to second aspect, second aspect the first to the third mode in the cards, in present example second In 4th kind of mode in the cards of aspect, the characteristic attribute information includes service set and/or physical address identifies.
In embodiments of the present invention, by when wireless network linkage function is in opening, obtaining under current environment Wireless network list in each wireless network characteristic attribute information, and each wireless network in wireless network list The characteristic attribute information of network and the default contextual model table of comparisons determine target context pattern, and in target context pattern and work as cause In the case of scape pattern difference, situation of presence pattern switching to target context pattern to adapt to current environment, is realized according to nothing The characteristic attribute information automatic switching situation pattern of gauze network, without the manually operated switching of user, it is possible to increase mobile terminal Intelligent, flexibility, is user-friendly.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet for the profile switching method that the embodiment of the present invention one provides;
Fig. 2 is the schematic flow sheet for the profile switching method that the embodiment of the present invention two provides;
Fig. 3 is the schematic flow sheet for the profile switching method that the embodiment of the present invention three provides;
Fig. 4 is a kind of structural representation of mobile terminal provided in an embodiment of the present invention;
Fig. 5 is the structural representation for the target determination unit that embodiment illustrated in fig. 4 provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made Embodiment, belong to the scope of protection of the invention.
The embodiment of the present invention provides a kind of profile switching method and mobile terminal, can apply to mobile terminal to feelings The scene that scape pattern switches over, for example, when the wireless network linkage function of mobile terminal is in opening, the movement Terminal obtains the characteristic attribute information of each wireless network in the wireless network list under current environment;The mobile terminal root Target is determined according to the characteristic attribute information and the default contextual model table of comparisons of each wireless network in the wireless network list Contextual model, the default contextual model table of comparisons include a variety of contextual models and with every kind of feelings in a variety of contextual models The characteristic attribute information of wireless network corresponding to scape pattern;If the target context pattern is different from situation of presence pattern, institute State scene of the mobile terminal by the situation of presence pattern switching to the target context pattern.The embodiment of the present invention is according to wireless The characteristic attribute information automatic switching situation pattern of network, without the manually operated switching of user, it is user-friendly, improves simultaneously Intelligent, the flexibility of mobile terminal.
Mobile terminal can include but is not limited to mobile phone, tablet personal computer, personal digital assistant in the embodiment of the present invention (Personal Digital Assistant, PDA), mobile Internet access device (Moblie Internet Device, MID) and The subscriber terminal equipments such as wearable device.It should be noted that the mobile terminal in the embodiment of the present invention has wireless network company Connection function.
Below in conjunction with accompanying drawing 1- accompanying drawings 3, profile switching method provided in an embodiment of the present invention is situated between in detail Continue.
Fig. 1 is referred to, the schematic flow sheet of the profile switching method provided for the embodiment of the present invention one.Such as Fig. 1 institutes Show, the methods described of the embodiment of the present invention may comprise steps of S101- steps S103.
S101, when wireless network linkage function is in opening, obtain in the wireless network list under current environment Each wireless network characteristic attribute information.
Specifically, the mobile terminal in the embodiment of the present invention has wireless network linkage function, current environment can be obtained Under multiple wireless networks and some upper wireless network of authentication connection can be passed through.When the user of the mobile terminal opens institute State the wireless network linkage function of mobile terminal, for example, by shortcut menu or setting options open " WiFi " on mobile phone or " WLAN ", now the wireless network linkage function of the mobile terminal be in opening, the now mobile terminal Some wireless network may be successfully linked up, it is also possible to any one not connected upper wireless network.When the mobile terminal It is every in the wireless network list under the acquisition for mobile terminal current environment when wireless network linkage function is in opening The characteristic attribute information of individual wireless network.The mobile terminal works as front ring by searching for the wireless network under current environment to obtain Wireless network list under border.In embodiments of the present invention, the characteristic attribute information includes service set and/or physically Location identifies.Service set (Service Set Identifier, SSID) is used for distinguishing different networks, can have up to 32 Individual character, it is used for distinguishing different wireless networks in embodiments of the present invention, it is to be understood that SSID is the mark of wireless network Know title.Physical address mark is procotol (Internet Protocol, IP) address of wireless network, if existing identical SSID at least two wireless networks, then at least two wireless network is made a distinction using physical address mark, at this In the case of kind, the characteristic attribute information includes service set and physical address identifies;If in the absence of the wireless of identical SSID It network, then can both be made a distinction according to SSID, can also be made a distinction according to IP address, in this case, the characteristic attribute Information includes service set or physical address identifies.Optionally, the characteristic attribute information can also be other for distinguishing The characteristic information of wireless network, for example, checking password etc. used in connection wireless network.
S102, the characteristic attribute information of each wireless network in the wireless network list and default contextual model The table of comparisons determines target context pattern.
Specifically, the characteristic attribute information of each wireless network of the mobile terminal in the wireless network list Determine target context pattern with the default contextual model table of comparisons, the default contextual model table of comparisons include a variety of contextual models with And the characteristic attribute information of wireless network corresponding with every kind of contextual model in a variety of contextual models.The default scene mould The formula table of comparisons comprises at least silent mode and bell mode, and silent mode closes bell mode, and bell mode opens jingle bell Pattern, the default contextual model may also include outdoor pattern, conference model etc., and each contextual model corresponds to different the tinkle of bells sounds Amount, jingle bell mode.The spy for the wireless network that the default contextual model table of comparisons is set according to user in each contextual model Attribute information generation is levied, optionally, user adds the spy of one or more wireless networks manually in contextual model sets interface Attribute information is levied into the setting options of some contextual model, as the condition for starting the contextual model;Optionally, user In the display interface of wireless network list, the characteristic attribute information of one or more wireless networks is selected, and is added it to In the setting options of some contextual model, as the condition for starting the contextual model.The mobile terminal can be in user During first use wireless network linkage function, it is that each contextual model sets wireless network that user is prompted in the form of dialog box Characteristic attribute information;Or in user's first time switching contextual model, prompt user to set, so as to the follow-up mobile terminal energy Enough automatic switching situation patterns.
S103, if the target context pattern is different from situation of presence pattern, by the situation of presence pattern switching extremely The target context pattern.
Specifically, the characteristic attribute letter of each wireless network in the mobile terminal in the wireless network list When breath determines the target context pattern, mobile terminal situation of presence pattern described in the acquisition for mobile terminal, i.e., described shifting The contextual model that dynamic terminal is currently running.If the target context pattern is different from the situation of presence pattern, the movement Terminal is by situation of presence pattern switching to the target context pattern, so that the contextual model after switching adapts to current environment.If The target context pattern is identical with the situation of presence pattern, then the mobile terminal continues to transport with the situation of presence pattern OK, hand-off process is not done.
In embodiments of the present invention, by when wireless network linkage function is in opening, obtaining under current environment Wireless network list in each wireless network characteristic attribute information, and each wireless network in wireless network list The characteristic attribute information of network and the default contextual model table of comparisons determine target context pattern, and in target context pattern and work as cause In the case of scape pattern difference, situation of presence pattern switching to target context pattern to adapt to current environment, is realized according to nothing The characteristic attribute information automatic switching situation pattern of gauze network, without the manually operated switching of user, it is possible to increase mobile terminal Intelligent, flexibility, is user-friendly.
Fig. 2 is referred to, the schematic flow sheet of the profile switching method provided for the embodiment of the present invention two.Such as Fig. 2 institutes Show, the methods described of the embodiment of the present invention may comprise steps of S201- steps S204.
S201, when wireless network linkage function is in opening, obtain in the wireless network list under current environment Each wireless network characteristic attribute information.
Specifically, the mobile terminal in the embodiment of the present invention has wireless network linkage function, current environment can be obtained Under multiple wireless networks and some upper wireless network of authentication connection can be passed through.When the user of the mobile terminal opens institute State the wireless network linkage function of mobile terminal, for example, by shortcut menu or setting options open " WiFi " on mobile phone or " WLAN ", now the wireless network linkage function of the mobile terminal be in opening, the now mobile terminal Some wireless network may be successfully linked up, it is also possible to any one not connected upper wireless network.When the mobile terminal It is every in the wireless network list under the acquisition for mobile terminal current environment when wireless network linkage function is in opening The characteristic attribute information of individual wireless network.The mobile terminal works as front ring by searching for the wireless network under current environment to obtain Wireless network list under border.In embodiments of the present invention, the characteristic attribute information includes service set and/or physically Location identifies.Service set is used for distinguishing different networks, 32 characters is can have up to, in embodiments of the present invention for area Divide different wireless networks, it is to be understood that SSID is the mark title of wireless network.Physical address mark is wireless network IP address, if identical SSID at least two wireless networks be present, using physical address identify at least two nothing Gauze network makes a distinction, and in this case, the characteristic attribute information includes service set and physical address identifies;If no Identical SSID wireless network be present, then can both be made a distinction according to SSID, can also be made a distinction according to IP address, in this feelings Under condition, the characteristic attribute information includes service set or physical address identifies.Optionally, the characteristic attribute information may be used also Other characteristic informations for being used to distinguish wireless network are thought, for example, checking password etc. used in connection wireless network.
S202, by the characteristic attribute information of each wireless network in the wireless network list respectively with default scene mould Every kind of contextual model in the formula table of comparisons is matched.
Specifically, the mobile terminal divides the characteristic attribute information of each wireless network in the wireless network list Do not matched with every kind of contextual model in the default contextual model table of comparisons, the default contextual model table of comparisons includes a variety of The characteristic attribute information of contextual model and wireless network corresponding with every kind of contextual model in a variety of contextual models.It is described The default contextual model table of comparisons comprises at least silent mode and bell mode, and silent mode closes bell mode, bell mode Bell mode is opened, the default contextual model may also include outdoor pattern, conference model etc., and each contextual model is corresponding not Ringing volume together, jingle bell mode.The nothing that the default contextual model table of comparisons is set according to user in each contextual model The characteristic attribute information generation of gauze network.The mobile terminal by the characteristic attribute information of each wireless network respectively with institute The characteristic attribute information for stating the wireless network under every kind of contextual model in the default contextual model table of comparisons is compared, if described The characteristic attribute information of some or certain several wireless networks in wireless network list and the wireless network under some contextual model Characteristic attribute information it is identical, then this or these wireless network and the contextual model phase in the wireless network list Match somebody with somebody, and then the wireless network list matches with the contextual model.If in the wireless network list some wireless networks with Contextual model A matches, and some wireless networks match with contextual model B, then the wireless network list and two kinds of scene moulds Formula matches.Therefore, matching result may be to match with certain contextual model in the default contextual model, it is also possible to At least two contextual models in the default contextual model match.
S203, if the wireless network list and certain contextual model phase in the default contextual model table of comparisons Match somebody with somebody, and the number of the wireless network to match exceedes predetermined threshold value, then the contextual model is defined as into target context pattern.
If specifically, the wireless network list and certain contextual model phase in the default contextual model table of comparisons Match somebody with somebody, and the number of the wireless network to match exceedes predetermined threshold value, then the contextual model is defined as target by the mobile terminal Contextual model.Wherein, the concrete numerical value of the predetermined threshold value does not limit herein, and the numerical value of the predetermined threshold value is not It is changeless, can correspondingly it be adjusted according to the quantity of the wireless network list.For example, have three in the wireless network list The characteristic attribute information of individual wireless network is identical with the characteristic attribute information of the wireless network under silent mode, and without other wireless Network matches with other contextual models in the default contextual model table of comparisons, and the predetermined threshold value is 1, then by Jing Yin mould Formula is defined as target context pattern.
S204, if the target context pattern is different from situation of presence pattern, by the situation of presence pattern switching extremely The target context pattern.
Specifically, the characteristic attribute letter of each wireless network in the mobile terminal in the wireless network list When breath determines the target context pattern, mobile terminal situation of presence pattern described in the acquisition for mobile terminal, i.e., described shifting The contextual model that dynamic terminal is currently running.If the target context pattern is different from the situation of presence pattern, the movement Terminal is by situation of presence pattern switching to the target context pattern, so that the contextual model after switching adapts to current environment.Example Such as, the target context pattern is silent mode, it can be understood as the mobile terminal is in meeting occasion or office space, and The situation of presence pattern is bell mode, then bell mode is switched into silent mode automatically, avoids bell mode to meeting Or the influence that work is brought.If the target context pattern is identical with the situation of presence pattern, the mobile terminal is with institute State situation of presence pattern to continue to run with, do not do hand-off process.
In embodiments of the present invention, by when wireless network linkage function is in opening, obtaining under current environment Wireless network list in each wireless network characteristic attribute information, and will be in the wireless network list it is each wireless The characteristic attribute information of network is matched with every kind of contextual model in the default contextual model table of comparisons respectively, if described wireless Network list matches with certain contextual model in the default contextual model table of comparisons, and of the wireless network to match Number exceedes predetermined threshold value, then the contextual model is defined as into target context pattern, and in target context pattern and situation of presence mould In the case of formula difference, situation of presence pattern switching to target context pattern to adapt to current environment, is realized according to wireless network The characteristic attribute information automatic switching situation pattern of network, without the manually operated switching of user, it is possible to increase the intelligence of mobile terminal Property, flexibility, are user-friendly.
Fig. 3 is referred to, the schematic flow sheet of the profile switching method provided for the embodiment of the present invention three.Such as Fig. 3 institutes Show, the methods described of the embodiment of the present invention may comprise steps of S301- steps S307.
S301, when wireless network linkage function is in opening, obtain in the wireless network list under current environment Each wireless network characteristic attribute information.
S302, by the characteristic attribute information of each wireless network in the wireless network list respectively with default scene mould Every kind of contextual model in the formula table of comparisons is matched.
The specific implementation process of step S301- steps S302 in the embodiment of the present invention can be found in embodiment illustrated in fig. 2 Step S201- steps S202 specific descriptions, will not be repeated here.
S303, if the wireless network list and at least two contextual model phases in the default contextual model table of comparisons Matching, then detect and whether there is in the default contextual model table of comparisons and the current characteristic attribute information phase for being connected wireless network The contextual model of matching.
If specifically, the wireless network list and at least two contextual models in the default contextual model table of comparisons Match, then mobile terminal described in the acquisition for mobile terminal currently connects the characteristic attribute information of wireless network, described current Connection wireless network is located in the wireless network list, aobvious with other wireless networks difference in the wireless network list Show.The embodiment of the present invention is using the characteristic attribute information of the current connection wireless network as Rule of judgment, the mobile terminal Detect and whether there is in the default contextual model table of comparisons and the current characteristic attribute information phase for being connected wireless network The contextual model matched somebody with somebody.
S304, if in the presence of with the current contextual model for be connected characteristic attribute information of wireless network and matching, general The contextual model to match with the current characteristic attribute information for being connected wireless network determines target context pattern.
If specifically, in the presence of with the current contextual model for being connected the characteristic attribute information of wireless network and matching, The contextual model to match with the current characteristic attribute information for being connected wireless network is determined target feelings by the mobile terminal Scape pattern.
S305, if in the absence of with the current contextual model for being connected the characteristic attribute information of wireless network and matching, The wireless network that every kind of contextual model matches with the wireless network list at least two contextual model is obtained respectively Number.
If specifically, in the absence of with the current contextual model for being connected the characteristic attribute information of wireless network and matching, Then the mobile terminal can not determine target context pattern according to the characteristic attribute information of the current connection wireless network, therefore The mobile terminal determines target context pattern according to the matching result with least two contextual model.The mobile terminal The wireless network that every kind of contextual model matches with the wireless network list at least two contextual model is obtained respectively Number, for example, the wireless network list matches with contextual model A and contextual model B, obtain respectively with contextual model A, The number for the wireless network that contextual model B matches.
S306, by the number of the wireless network to match at least two contextual model with the wireless network list Most contextual models determines target context pattern.
Specifically, the mobile terminal will match at least two contextual model with the wireless network list The largest number of contextual models of wireless network determine target context pattern.For example, the wireless network to match with contextual model A Number be 3, be 5 with the numbers of the contextual model B wireless networks to match, then contextual model B be defined as target feelings Scape pattern.
S307, if the target context pattern is different from situation of presence pattern, by the situation of presence pattern switching extremely The target context pattern.
Specifically, the characteristic attribute letter of each wireless network in the mobile terminal in the wireless network list When breath determines the target context pattern, mobile terminal situation of presence pattern described in the acquisition for mobile terminal, i.e., described shifting The contextual model that dynamic terminal is currently running.If the target context pattern is different from the situation of presence pattern, the movement Terminal is by situation of presence pattern switching to the target context pattern, so that the contextual model after switching adapts to current environment.If The target context pattern is identical with the situation of presence pattern, then the mobile terminal continues to transport with the situation of presence pattern OK, hand-off process is not done.
In the present invention is implemented, by when wireless network linkage function is in opening, obtaining under current environment The characteristic attribute information of each wireless network in wireless network list, and by each wireless network in the wireless network list The characteristic attribute information of network is matched with every kind of contextual model in the default contextual model table of comparisons respectively, if the wireless network Network list matches with least two contextual models in the default contextual model table of comparisons, then according to current connection wireless network The characteristic attribute information of network determines target context pattern, and in the case of target context pattern and situation of presence pattern difference, By situation of presence pattern switching to target context pattern, to adapt to current environment, realize and believed according to the characteristic attribute of wireless network Automatic switching situation pattern is ceased, without the manually operated switching of user, it is possible to increase intelligent, the flexibility of mobile terminal, it is convenient User uses.
Below in conjunction with accompanying drawing 4 and accompanying drawing 5, mobile terminal provided in an embodiment of the present invention is described in detail.Need Illustrate, the electronic equipment shown in accompanying drawing 4 and accompanying drawing 5, the method for performing Fig. 1-embodiment illustrated in fig. 3 of the present invention, be It is easy to illustrate, illustrate only the part related to the embodiment of the present invention, particular technique details does not disclose, refer to the present invention Embodiment shown in Fig. 1-Fig. 3.
Fig. 4 is referred to, is the structural representation of mobile terminal provided in an embodiment of the present invention.As shown in figure 4, the movement Terminal 10 can include information acquisition unit 101, target determination unit 102 and mode switch element 103.
Information acquisition unit 101, for when wireless network linkage function is in opening, obtaining under current environment The characteristic attribute information of each wireless network in wireless network list.
In the specific implementation, the mobile terminal 10 in the embodiment of the present invention has wireless network linkage function, it can obtain and work as Multiple wireless networks under preceding environment simultaneously can pass through some upper wireless network of authentication connection.When the use of the mobile terminal 10 The wireless network linkage function of the mobile terminal 10 is opened at family, such as is opened by shortcut menu or setting options on mobile phone " WiFi " or " WLAN ", now the wireless network linkage function of the mobile terminal 10 be in opening, now institute Some wireless network may have been successfully linked up by stating mobile terminal 10, it is also possible to any one not connected upper wireless network.Work as institute When stating the wireless network linkage function of mobile terminal 10 and being in opening, described information acquiring unit 101 obtains current environment Under wireless network list in each wireless network characteristic attribute information.Described information acquiring unit 101 is worked as by search Wireless network under preceding environment obtains the wireless network list under current environment, and then obtains the spy of each wireless network Levy attribute information.In embodiments of the present invention, the characteristic attribute information includes service set and/or physical address identifies. Service set is used for distinguishing different networks, can have up to 32 characters, is used for distinguishing difference in embodiments of the present invention Wireless network, it is to be understood that SSID be wireless network mark title.Physical address mark is the IP of wireless network Location, if identical SSID at least two wireless networks be present, identified using physical address at least two wireless network Make a distinction, in this case, the characteristic attribute information includes service set and physical address identifies;If phase is not present It with SSID wireless network, then can both be made a distinction according to SSID, can also be made a distinction according to IP address, in this case, The characteristic attribute information includes service set or physical address identifies.Optionally, the characteristic attribute information can also be Other characteristic informations for being used to distinguish wireless network, for example, checking password etc. used in connection wireless network.
Target determination unit 102, the characteristic attribute for each wireless network in the wireless network list are believed Breath and the default contextual model table of comparisons determine target context pattern.
In the specific implementation, each wireless network of the target determination unit 102 in the wireless network list Characteristic attribute information and the default contextual model table of comparisons determine target context pattern, and the default contextual model table of comparisons includes more The characteristic attribute information of kind contextual model and wireless network corresponding with every kind of contextual model in a variety of contextual models.Institute State the default contextual model table of comparisons and comprise at least silent mode and bell mode, silent mode closes bell mode, jingle bell mould Formula opens bell mode, and the default contextual model may also include outdoor pattern, conference model etc., and each contextual model is corresponding Different ringing volume, jingle bell mode.What the default contextual model table of comparisons was set according to user in each contextual model The characteristic attribute information generation of wireless network, optionally, user is in contextual model sets interface, and addition is one or more manually The characteristic attribute information of wireless network is into the setting options of some contextual model, as the bar for starting the contextual model Part;Optionally, user selects the characteristic attribute of one or more wireless networks to believe in the display interface of wireless network list Breath, and add it in the setting options of some contextual model, as the condition for starting the contextual model.The movement Terminal 10 can be when user uses wireless network linkage function for the first time, and prompting user is each scene mould in the form of dialog box Formula sets the characteristic attribute information of wireless network;Or in user's first time switching contextual model, user is prompted to set, with after an action of the bowels Continuing the mobile terminal being capable of automatic switching situation pattern.The concrete structure of the target determination unit 102 can be found in Fig. 5, institute Matching unit 1021, the first determining unit 1022, the determination of detection unit 1023, second can be included by stating target determination unit 102 Unit 1024, the determining unit 1026 of number acquiring unit 1025 and the 3rd.
Matching unit 1021, for the characteristic attribute information of each wireless network in the wireless network list to be distinguished Matched with every kind of contextual model in the default contextual model table of comparisons.
In the specific implementation, the matching unit 1021 is by the feature category of each wireless network in the wireless network list Property information is matched with every kind of contextual model in the default contextual model table of comparisons respectively.The matching unit 1021 is by described in The characteristic attribute information of each wireless network respectively with the nothing under every kind of contextual model in the default contextual model table of comparisons The characteristic attribute information of gauze network is compared, if the feature of some or certain several wireless networks in the wireless network list Attribute information is identical with the characteristic attribute information of the wireless network under some contextual model, then this in the wireless network list Individual or these wireless networks match with the contextual model, and then the wireless network list matches with the contextual model. If some wireless networks match with contextual model A in the wireless network list, some wireless networks and contextual model B phases Match somebody with somebody, then the wireless network list matches with two kinds of contextual models.Therefore, matching result may be and the default scene mould Certain contextual model in formula matches, it is also possible to matches with least two contextual models in the default contextual model.
First determining unit 1022, if for certain in the wireless network list and the default contextual model table of comparisons Kind contextual model matches, and the number of the wireless network to match exceedes predetermined threshold value, then the contextual model is defined as into mesh Mark contextual model.
If in the specific implementation, the wireless network list and certain contextual model in the default contextual model table of comparisons Match, and the number of the wireless network to match exceedes predetermined threshold value, then first determining unit 1022 is by the scene mould Formula is defined as target context pattern.Wherein, the concrete numerical value of the predetermined threshold value does not limit herein, and the predetermined threshold value Numerical value be not changeless, can correspondingly be adjusted according to the quantity of the wireless network list.For example, the wireless network Have that the characteristic attribute information of three wireless networks is identical with the characteristic attribute information of the wireless network under silent mode in network list, And match without other wireless networks with other contextual models in the default contextual model table of comparisons, the predetermined threshold value is 1, then silent mode is defined as target context pattern.
Detection unit 1023, if at least two in the wireless network list and the default contextual model table of comparisons Kind contextual model matches, then detects the spy that whether there is in the default contextual model table of comparisons and be currently connected wireless network The contextual model that sign attribute information matches.
If in the specific implementation, the wireless network list and at least two scenes in the default contextual model table of comparisons Patterns match, then the mobile terminal 10 obtain the characteristic attribute information that the mobile terminal currently connects wireless network, institute State current connection wireless network to be located in the wireless network list, with other wireless network areas in the wireless network list Do not show.The embodiment of the present invention is using the characteristic attribute information of the current connection wireless network as Rule of judgment, the detection Unit 1023 detects whether there is and the current characteristic attribute for being connected wireless network in the default contextual model table of comparisons The contextual model of information match.
Second determining unit 1024, if for matching in the presence of with the current characteristic attribute information for being connected wireless network Contextual model, then the contextual model to match with the current characteristic attribute information for being connected wireless network is determined into target feelings Scape pattern.
If in the specific implementation, in the presence of with the current scene mould for being connected the characteristic attribute information of wireless network and matching Formula, then second determining unit 1024 by with the current scene mould for being connected the characteristic attribute information of wireless network and matching Formula determines target context pattern.
Number acquiring unit 1025, if in the absence of with the current characteristic attribute information phase for being connected wireless network The contextual model matched somebody with somebody, then every kind of contextual model and the wireless network list phase at least two contextual model are obtained respectively The number of the wireless network of matching.
If in the specific implementation, in the absence of with the current scene mould for being connected the characteristic attribute information of wireless network and matching Formula, then second determining unit 1024 target feelings can not be determined according to the characteristic attribute information of the current connection wireless network Scape pattern, therefore the number acquiring unit 1025 obtains every kind of contextual model and institute at least two contextual model respectively The number for the wireless network that wireless network list matches is stated, for example, the wireless network list and contextual model A and scene mould Formula B matches, and obtains the number of the wireless network to match with contextual model A, contextual model B respectively.
3rd determining unit 1026, for will match at least two contextual model with the wireless network list The largest number of contextual models of wireless network determine target context pattern.
In the specific implementation, the 3rd determining unit 1026 by least two contextual model with the wireless network The largest number of contextual models for the wireless network that list matches determine target context pattern.For example, with contextual model A phases The number for the wireless network matched somebody with somebody is 3, and the number with the contextual model B wireless networks to match is 5, then the described 3rd determines Contextual model B is defined as target context pattern by unit 1026.
Mode switch element 103, will be described current if different from situation of presence pattern for the target context pattern Contextual model switches to the target context pattern.
In the specific implementation, each wireless network in the target determination unit 102 in the wireless network list Characteristic attribute information when determining the target context pattern, the mode switch element 103 obtains the mobile terminal and worked as Preceding contextual model, i.e., the contextual model that described mobile terminal is currently running.If the target context pattern and the situation of presence Pattern is different, then the mode switch element 103 is by situation of presence pattern switching to the target context pattern, so that after switching Contextual model adapt to current environment.It is described mobile whole if the target context pattern is identical with the situation of presence pattern End 10 is continued to run with the situation of presence pattern, does not do hand-off process.
In embodiments of the present invention, by when wireless network linkage function is in opening, obtaining under current environment Wireless network list in each wireless network characteristic attribute information, and each wireless network in wireless network list The characteristic attribute information of network and the default contextual model table of comparisons determine target context pattern, and in target context pattern and work as cause In the case of scape pattern difference, situation of presence pattern switching to target context pattern to adapt to current environment, is realized according to nothing The characteristic attribute information automatic switching situation pattern of gauze network, without the manually operated switching of user, it is possible to increase mobile terminal Intelligent, flexibility, is user-friendly.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with The hardware of correlation is instructed to complete by computer program, described program can be stored in a computer read/write memory medium In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
Above disclosure is only preferred embodiment of present invention, can not limit the right model of the present invention with this certainly Enclose, therefore the equivalent variations made according to the claims in the present invention, still belong to the scope that the present invention is covered.

Claims (10)

  1. A kind of 1. profile switching method, it is characterised in that including:
    When wireless network linkage function is in opening, obtain each wireless in the wireless network list under current environment The characteristic attribute information of network;The characteristic attribute information is the characteristic information for distinguishing wireless network;
    The characteristic attribute information of each wireless network in the wireless network list and the default contextual model table of comparisons, will The characteristic attribute information of each wireless network in the wireless network list respectively with it is every in the default contextual model table of comparisons Kind of contextual model is matched, the default contextual model table of comparisons include a variety of contextual models and with a variety of scene moulds The characteristic attribute information of multiple wireless networks corresponding to every kind of contextual model in formula;
    If the wireless network list matches with least two contextual models in the default contextual model table of comparisons, respectively Obtain for the wireless network that every kind of contextual model matches with the wireless network list at least two contextual model Number;
    By the largest number of feelings of the wireless network to match at least two contextual model with the wireless network list Scape pattern determines target context pattern;
    If the target context pattern is different from situation of presence pattern, by the situation of presence pattern switching to the target feelings Scape pattern.
  2. 2. according to the method for claim 1, it is characterised in that each wireless network by the wireless network list After the characteristic attribute information of network is matched with every kind of contextual model in the default contextual model table of comparisons respectively, in addition to:
    If the wireless network list matches with certain contextual model in the default contextual model table of comparisons, and matches The number of wireless network exceed predetermined threshold value, then the contextual model is defined as target context pattern.
  3. 3. according to the method for claim 1, it is characterised in that each wireless network by the wireless network list After the characteristic attribute information of network is matched with every kind of contextual model in the default contextual model table of comparisons respectively, in addition to:
    If the wireless network list matches with least two contextual models in the default contextual model table of comparisons, examine Survey in the default contextual model table of comparisons and whether there is and the current feelings for being connected the characteristic attribute information of wireless network and matching Scape pattern;
    If in the presence of with the current contextual model for be connected characteristic attribute information of wireless network and matching, will with it is described currently The contextual model that the characteristic attribute information of connection wireless network matches determines target context pattern.
  4. 4. according to the method for claim 3, it is characterised in that in the detection default contextual model table of comparisons whether After the contextual model to match with the current characteristic attribute information for being connected wireless network, in addition to:
    If in the absence of with the current contextual model for being connected the characteristic attribute information of wireless network and matching, obtain institute respectively State the number of the wireless network that every kind of contextual model matches with the wireless network list at least two contextual models;
    By the largest number of feelings of the wireless network to match at least two contextual model with the wireless network list Scape pattern determines target context pattern.
  5. 5. according to the method described in claim any one of 1-4, it is characterised in that the characteristic attribute information includes services set mark Know and/or physical address identifies.
  6. A kind of 6. mobile terminal, it is characterised in that including:
    Information acquisition unit, for when wireless network linkage function is in opening, obtaining the wireless network under current environment The characteristic attribute information of each wireless network in network list;The characteristic attribute information is the feature for distinguishing wireless network Information;
    Target determination unit, for the characteristic attribute information of each wireless network in the wireless network list and default The contextual model table of comparisons determines target context pattern, the default contextual model table of comparisons include a variety of contextual models and with institute State the characteristic attribute information of multiple wireless networks corresponding to every kind of contextual model in a variety of contextual models;
    Mode switch element, if different from situation of presence pattern for the target context pattern, by the situation of presence mould Formula switches to the target context pattern;
    The target determination unit includes matching unit, number acquiring unit and the 3rd determining unit;
    The matching unit, for the characteristic attribute information of each wireless network in the wireless network list and default The contextual model table of comparisons, by the characteristic attribute information of each wireless network in the wireless network list respectively with default scene Every kind of contextual model in pattern collation table is matched;
    The number acquiring unit, if at least two in the wireless network list and the default contextual model table of comparisons Kind contextual model matches, and obtains every kind of contextual model and the wireless network list at least two contextual model respectively The number of the wireless network to match;
    3rd determining unit, for the nothing that will be matched at least two contextual model with the wireless network list The largest number of contextual models of gauze network determine target context pattern.
  7. 7. mobile terminal according to claim 6, it is characterised in that the target determination unit also includes:
    First determining unit, if for certain scene mould in the wireless network list and the default contextual model table of comparisons Formula matches, and the number of the wireless network to match exceedes predetermined threshold value, then the contextual model is defined as into target context mould Formula.
  8. 8. mobile terminal according to claim 6, it is characterised in that the target determination unit also includes:
    Detection unit, if at least two scene moulds in the wireless network list and the default contextual model table of comparisons Formula matches, then detects to whether there is in the default contextual model table of comparisons and believe with the current characteristic attribute for being connected wireless network The contextual model of manner of breathing matching;
    Second determining unit, if in the presence of with the current scene mould for being connected the characteristic attribute information of wireless network and matching Formula, then the contextual model to match with the current characteristic attribute information for being connected wireless network is determined into target context pattern.
  9. 9. mobile terminal according to claim 8, it is characterised in that
    The number acquiring unit, if being additionally operable to match in the absence of with the current characteristic attribute information for being connected wireless network Contextual model, then obtain every kind of contextual model and the wireless network list phase at least two contextual model respectively The number for the wireless network matched somebody with somebody.
  10. 10. according to the mobile terminal described in claim any one of 6-9, it is characterised in that the characteristic attribute information includes clothes Business set identifier and/or physical address mark.
CN201610109594.9A 2016-02-26 2016-02-26 A kind of profile switching method and mobile terminal Expired - Fee Related CN105530383B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610109594.9A CN105530383B (en) 2016-02-26 2016-02-26 A kind of profile switching method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610109594.9A CN105530383B (en) 2016-02-26 2016-02-26 A kind of profile switching method and mobile terminal

Publications (2)

Publication Number Publication Date
CN105530383A CN105530383A (en) 2016-04-27
CN105530383B true CN105530383B (en) 2018-03-27

Family

ID=55772348

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610109594.9A Expired - Fee Related CN105530383B (en) 2016-02-26 2016-02-26 A kind of profile switching method and mobile terminal

Country Status (1)

Country Link
CN (1) CN105530383B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105872243A (en) * 2016-05-13 2016-08-17 乐视控股(北京)有限公司 Mobile-phone mode switching method and device based on wireless network
CN105898071B (en) * 2016-05-30 2019-12-24 北京奇虎科技有限公司 Router, server, terminal and terminal contextual model control method and device
CN105898075A (en) * 2016-06-14 2016-08-24 乐视控股(北京)有限公司 Method and device for automatically adjusting contextual model
CN106201418A (en) * 2016-06-27 2016-12-07 捷开通讯(深圳)有限公司 The audio method of adjustment of intelligent mobile terminal and intelligent mobile terminal
CN107707727A (en) * 2016-08-09 2018-02-16 中兴通讯股份有限公司 A kind of method and device for controlling terminal
CN106658668A (en) * 2016-09-08 2017-05-10 北京小米移动软件有限公司 Information processing method and device
WO2019061112A1 (en) * 2017-09-27 2019-04-04 深圳传音通讯有限公司 Switching method and switching apparatus for profiles of smart device
CN110022401A (en) * 2019-01-28 2019-07-16 努比亚技术有限公司 A kind of control parameter setting method, terminal and computer readable storage medium
CN115695655A (en) * 2022-10-26 2023-02-03 润芯微科技(江苏)有限公司 WIFI information based automatic mobile phone muting system and method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006125992A1 (en) * 2005-05-26 2006-11-30 Symbian Software Limited Location based presence and profile selection on a wireless communications device
CN101959321A (en) * 2010-09-17 2011-01-26 惠州Tcl移动通信有限公司 Scene mode switching method based on mobile phone WIFI and mobile phone
CN104683546A (en) * 2013-11-29 2015-06-03 深圳富泰宏精密工业有限公司 Profile switching device and method
CN104717377A (en) * 2015-02-10 2015-06-17 广东欧珀移动通信有限公司 Mobile terminal scene mode switching method and device and mobile terminal
CN105282314A (en) * 2015-02-11 2016-01-27 维沃移动通信有限公司 Mobile terminal mode switching method and mobile terminal thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006125992A1 (en) * 2005-05-26 2006-11-30 Symbian Software Limited Location based presence and profile selection on a wireless communications device
CN101959321A (en) * 2010-09-17 2011-01-26 惠州Tcl移动通信有限公司 Scene mode switching method based on mobile phone WIFI and mobile phone
CN104683546A (en) * 2013-11-29 2015-06-03 深圳富泰宏精密工业有限公司 Profile switching device and method
CN104717377A (en) * 2015-02-10 2015-06-17 广东欧珀移动通信有限公司 Mobile terminal scene mode switching method and device and mobile terminal
CN105282314A (en) * 2015-02-11 2016-01-27 维沃移动通信有限公司 Mobile terminal mode switching method and mobile terminal thereof

Also Published As

Publication number Publication date
CN105530383A (en) 2016-04-27

Similar Documents

Publication Publication Date Title
CN105530383B (en) A kind of profile switching method and mobile terminal
CN102810316B (en) Method for adding background voice during conversation and communication terminal
CN104580717B (en) Call management method and device based on application scenarios
CN105721715B (en) Contextual model switching method, contextual model switching device and terminal
CN107124518A (en) The switching method and switching device of a kind of contextual model
CN104065824B (en) Call block prompting processing method, system and mobile terminal based on mobile terminal
CN105050045B (en) A kind of control method and terminal of the SOT state of termination
CN106529638A (en) Information processing method and device
CN105827776A (en) Telephone number dialing method and mobile terminal
CN107018227A (en) Incoming call processing method and device
CN108702689A (en) Cell accessing method, device and storage medium
CN112770007B (en) Call center outbound based method, device, electronic equipment and computer readable storage medium
CN108234781A (en) Communication means and device
CN105072243B (en) Income prompting method and device
CN105100410B (en) It polymerize the method and device of third party's phone application
CN106572267A (en) Method for automatically changing operating parameters and terminal
CN105657156A (en) Incoming call ring tone customizing method and terminal
CN103974215B (en) Control method of electronic device and electronic equipment
CN112954103B (en) Call communication method, device, storage medium and fixed telephone
CN110166637A (en) A kind of spacing recognition methods and device
CN100536507C (en) System for realizing memory color bell tone and method thereof
GB2453239A (en) Method and apparatus for muting a sounder device
CN101917661B (en) Mobile terminal communication method and mobile terminal
CN108174378A (en) Number identification method, device, terminal and storage medium
CN106131903B (en) A kind of call connection method for building up and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CP01 Change in the name or title of a patent holder
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180327

CF01 Termination of patent right due to non-payment of annual fee