CN104837167A - Network switching method - Google Patents

Network switching method Download PDF

Info

Publication number
CN104837167A
CN104837167A CN201510209696.3A CN201510209696A CN104837167A CN 104837167 A CN104837167 A CN 104837167A CN 201510209696 A CN201510209696 A CN 201510209696A CN 104837167 A CN104837167 A CN 104837167A
Authority
CN
China
Prior art keywords
wireless network
priority attribute
network identification
identification
highest
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.)
Pending
Application number
CN201510209696.3A
Other languages
Chinese (zh)
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.)
Shenzhen Jinli Communication Equipment Co Ltd
Original Assignee
Shenzhen Jinli Communication Equipment Co 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 Shenzhen Jinli Communication Equipment Co Ltd filed Critical Shenzhen Jinli Communication Equipment Co Ltd
Priority to CN201510209696.3A priority Critical patent/CN104837167A/en
Publication of CN104837167A publication Critical patent/CN104837167A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention discloses a network switching method. The method comprises the steps of: setting a terminal to an early-warning mode when the terminal is connected to a selected wireless network; based on the early-warning mode, monitoring the process type of an application process executing the current operation; switching from the selected wireless network to the mobile network if the process type exists in a preset process type set. By adopting the network switching method, the leakage of terminal data is avoided, and the safety of the terminal data is improved.

Description

A kind of method for switching network
Technical field
The present invention relates to electronic technology field, particularly relate to a kind of method for switching network.
Background technology
Along with electronics technology is constantly developed and perfect, the terminal such as mobile phone and panel computer has become a part indispensable in people's life, and people not only can utilize these terminals to carry out communication, can also carry out file transfer, make a video recording, play games.
Nowadays along with the development of technology, user can use terminal to surf the Net whenever and wherever possible, and along with the area coverage of wireless network increasing, for user use terminal surf the Net bring great convenience.But belong to the wireless network that public place (such as: dining room, bus, park etc.) provides due to wireless network that most time user is used outside, thus user in public places in terminal carry out some individual operation, such as: to other terminal transmission personal data, delivery operation etc., easily be subject to the attack of virus, cause the leakage of data, reduce the fail safe of terminal data, have impact on the use to terminal.
Summary of the invention
The embodiment of the present invention provides a kind of method for switching network, can avoid the leakage of terminal data, improves the fail safe of terminal data.
Embodiments provide a kind of method for switching network, can comprise:
When being connected to selected wireless network, terminal pattern is set to modes of warning;
Based on described modes of warning, monitor the process type of the application process performing current operation;
If described process type is present in default process type set, then switch to mobile network from described selected wireless network.
In embodiments of the present invention, when being connected to selected wireless network, by terminal pattern is set to modes of warning, with based on modes of warning, monitor the process type of the application process performing current operation, if process type is present in default process type set, then selected wireless network is switched to mobile network.By arranging modes of warning and default process type set, application processes can monitor in modes of warning, ensure that application process can perform in the mobile network of safety, improve the fail safe of terminal data.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of a kind of method for switching network that the embodiment of the present invention provides;
Fig. 2 is the schematic flow sheet of the another kind of method for switching network that the embodiment of the present invention provides;
Fig. 3 is the structural representation of a kind of terminal that the embodiment of the present invention provides;
Fig. 4 is the structural representation of the another kind of terminal that the embodiment of the present invention provides;
Fig. 5 is the structural representation of the first network linkage unit that the embodiment of the present invention provides;
Fig. 6 is the structural representation of another terminal that the embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The method for switching network that the embodiment of the present invention provides can be applied to the scene of carrying out network switching when performing terminal applies process, such as: when terminal is connected to selected wireless network, terminal pattern is set to modes of warning by described terminal, based on described modes of warning, described terminal monitoring performs the process type of the application process of current operation, if described process type is present in default process type set, then described terminal switches to the scene etc. of mobile network from described selected wireless network.By arranging modes of warning and default process type set, application processes can monitor in modes of warning, ensure that application process can perform in the mobile network of safety, improve the fail safe of terminal data.
The terminal that the embodiment of the present invention relates to can comprise: computer, panel computer, smart mobile phone, notebook computer, palmtop PC and mobile internet device (MID) etc. possess the terminal equipment of wireless Internet access and mobile Internet access function.
Below in conjunction with accompanying drawing 1 and accompanying drawing 2, the method for switching network that the embodiment of the present invention provides is described in detail.
Refer to Fig. 1, for embodiments providing a kind of schematic flow sheet of method for switching network.As shown in Figure 1, the described method of the embodiment of the present invention can comprise the following steps S101-step S103.
S101, when being connected to selected wireless network, is set to modes of warning by terminal pattern;
Concrete, when terminal is connected to selected wireless network, such as: the wireless network manually selected by user or by terminal automatically select connect wireless network etc., terminal pattern can be set to modes of warning by described terminal, be understandable that, described modes of warning is used to indicate the application process that real-time listening is performed user operation by described terminal.
S102, based on described modes of warning, monitors the process type of the application process performing current operation;
Concrete, based on described modes of warning, described terminal can monitor the process type of the application process performing current operation, such as: important personal data are transferred to other terminal by the current calling data transmission application process that needs, or current needs are opened and are paid application process to carry out delivery operation etc., and described terminal obtains the process type of the application process performing current operation.
S103, if described process type is present in default process type set, then switches to mobile network from described selected wireless network;
Concrete, the default process type set needing handover network can be previously provided with in described terminal, when described terminal monitoring belongs in described default process type set to described process type, described selected wireless network can be switched to mobile network by described terminal.
In embodiments of the present invention, wireless network is all expressed as Wireless Fidelity (Wireless-Fidelity, Wi-Fi), described mobile network is expressed as the data service that each operator provides, such as: general packet radio service technology (General Packet Radio Service, GPRS), G mobile communication (3 rdgeneration, 3G), forth generation mobile communication technology (The 4 thgeneration Mobile Communication Technology, 4G) etc.
In embodiments of the present invention, when being connected to selected wireless network, by terminal pattern is set to modes of warning, with based on modes of warning, monitor the process type of the application process performing current operation, if process type is present in default process type set, then selected wireless network is switched to mobile network.By arranging modes of warning and default process type set, application processes can monitor in modes of warning, ensure that application process can perform in the mobile network of safety, improve the fail safe of terminal data.
Refer to Fig. 2, for embodiments providing the schematic flow sheet of another kind of method for switching network.As shown in Figure 2, the described method of the embodiment of the present invention can comprise the following steps S201-step S211.
S201, obtains current attachable wireless network list;
Concrete, when the radio network functions that user opens a terminal, described terminal can obtain current attachable wireless network list.
S202, judges at least one wireless network identification whether storing history connection in described wireless network list;
Concrete, described terminal can judge at least one wireless network identification whether storing history connection in described wireless network list, if so, then proceeds to and performs step S203; If not, then execution step S204 is proceeded to.
S203, obtains the priority attribute of each wireless network identification at least one wireless network identification described, connects to select wireless network corresponding to the highest wireless network identification of priority attribute;
Concrete, user can arrange priority attribute by the wireless network of terminal to selected connection, comprise the wireless network that wireless network and the history of current connection are connected, described priority attribute is for representing user according to the level of security of wireless network to the attribute set by described wireless network identification, such as: priority attribute can be divided into individual, work, public three attribute, " individual " is expressed as the wireless network in user family, " work " is expressed as the wireless network in user job place, " public " is expressed as the wireless network that user goes out in public places, wherein, terminal can default setting be wireless network corresponding to the wireless network identification of " individual ", the rank of its priority attribute is the highest, next is " work ", finally " public ", if therefore current at least one wireless network identification storing history and connect, described terminal can select wireless network corresponding to the highest-ranking wireless network identification of priority attribute to connect.
Be understandable that, when described wireless network list stores the wireless network identification of multiple history connection simultaneously, and the rank that there is two or more priority attribute in the wireless network identification that connects of described multiple history is identical and when being the highest wireless network identification, described terminal can be chosen according to default network the wireless network that condition selects wireless network identification corresponding in the wireless network identification that described priority attribute is the highest and connect.Further, described terminal can obtain the priority attribute of each wireless network identification at least one wireless network identification described, and search the highest wireless network identification of priority attribute, obtain the mark quantity of the highest wireless network identification of described priority attribute, when described mark quantity is more than or equal to two, described terminal can be chosen according to default network the wireless network that condition selects wireless network identification corresponding in the wireless network identification that described priority attribute is the highest and connect, described default network is chosen signal strength signal intensity that condition is specifically as follows wireless network and is connected at least one condition in number of times with history, or be the self-defined score information arranged in described priority attribute, namely user's history is the score information that the wireless network identification of equal priority attribute is arranged respectively.Optionally, when described default network choose condition be signal strength signal intensity to be connected in number of times with history at least one condition time, described terminal can select signal strength signal intensity the highest wireless network that wireless network identification is corresponding to connect in the wireless network identification that described priority attribute is the highest; Or the wireless network that described terminal can select history to connect a maximum wireless network identification of number of times corresponding in the wireless network identification that described priority attribute is the highest connects; Or described terminal can signal strength signal intensity be selected the highest in the wireless network identification that described priority attribute is the highest and the wireless network that history connects a maximum wireless network identification of number of times corresponding connects.And when to choose condition be the self-defined score information arranged in described priority attribute to described default network, wireless network corresponding to a described terminal wireless network identification can self-defined score information being selected the highest in the wireless network identification that described priority attribute is the highest connects.
Certainly; above three kinds of priority attributes are only and illustrate; specifically more priority attribute can be set according to the concrete condition of wireless network; or one or both priority attributes are only set; all belong to the protection range of the embodiment of the present invention; specific implementation can be identical with the setting up procedure of above-mentioned three kinds of priority attributes, do not repeat at this.
S204, obtains the wireless network identification selected in described wireless network list, connects with the wireless network corresponding to described selected wireless network identification, and stores for the priority attribute set by described selected wireless network identification;
Concrete, if when not storing at least one wireless network identification of history connection in the current attachable wireless network list obtained, described terminal can obtain wireless network identification user-selected in described Wi-Fi list, connect with the wireless network corresponding to described selected wireless network identification, user can also be obtained for the priority attribute set by described selected wireless network identification simultaneously, and priority attribute set by corresponding stored and described selected wireless network identification.
S205, when being connected to selected wireless network, judges whether described selected wireless network belongs to the wireless network of first kind priority attribute;
Concrete, because the level of security of the wireless network being in public place is lower, therefore the embodiment of the present invention limits scene set terminal pattern being set to modes of warning further, when described terminal is connected to described selected wireless network, described terminal first can judge whether described selected wireless network belongs to the wireless network of first kind priority attribute, wherein, described first kind priority attribute is for representing the priority attribute set by the wireless network being in public place, namely the wireless network that the wireless network identification of " public " is corresponding is set to, if, then proceed to and perform step S206.
S206, is set to modes of warning by terminal pattern;
Concrete, if described selected wireless network belongs to the wireless network of first kind priority attribute, then described terminal pattern is just set to modes of warning by described terminal.If what connect is the wireless network of other priority attribute, then can without the need to opening modes of warning.
S207, based on described modes of warning, monitors the process type of the application process performing current operation;
Concrete, based on described modes of warning, described terminal can monitor the process type of the application process performing current operation, such as: important personal data are transferred to other terminal by the current calling data transmission application process that needs, or current needs are opened and are paid application process to carry out delivery operation etc., and described terminal obtains the process type of the application process performing current operation.
S208, if described process type is present in default process type set, then output switching information;
S209, when receiving the confirmation feedback information to described switch prompting information, switches to mobile network from described selected wireless network;
Concrete, the default process type set needing handover network can be previously provided with in described terminal, when described terminal monitoring belongs in described default process type set to described process type, described selected wireless network can be switched to mobile network by described terminal.
Further, if described process type is present in default process type set, then described terminal can first output switching information, just can run after needing to switch to mobile network to point out the application process of the current operation of user, and the button of " confirming to switch " can be provided, described terminal is when receiving the confirmation feedback information to described switch prompting information, and described selected wireless network just can be switched to described mobile network by described terminal.
S210, at the end of listening to described application process, switches to described selected wireless network from described mobile network;
Concrete, at the end of described terminal monitoring to described application process, described mobile network can be switched to described selected wireless network by described terminal, think user's saving network flow, certainly, if described terminal moves to other place, such as during this period: in other public place, family or office etc., then need to re-execute the process selecting wireless network, its detailed process see the above-mentioned description to wireless network selection course, can not repeat at this.
S211, when disconnecting the connection with described selected wireless network, removes described modes of warning;
Concrete, when described terminal disconnects the connection with described selected wireless network, described terminal can remove described modes of warning, namely the application process of operation is no longer monitored, and upper once open connecting wireless network time, again need carry out the judgement of the priority attribute of wireless network, to determine whether again described terminal pattern to be set to described modes of warning.
In embodiments of the present invention, wireless network is all expressed as Wi-Fi, and described mobile network is expressed as the data service that each operator provides, such as: GPRS, 3G, 4G etc.
In embodiments of the present invention, when being connected to selected wireless network, by terminal pattern is set to modes of warning, with based on modes of warning, monitor the process type of the application process performing current operation, if process type is present in default process type set, then selected wireless network is switched to mobile network.By arranging modes of warning and default process type set, application processes can monitor in modes of warning, ensure that application process can perform in the mobile network of safety, improve the fail safe of terminal data; By arranging priority attribute to wireless network identification, the reliability of connected wireless network can be determined according to user-defined priority attribute, to select the need of entering modes of warning to carry out network switching, the basis based on terminal data safety improves the execution efficiency of terminal applies process; By at the end of application process, automatically mobile network being switched to wireless network, can be user's saving network flow, promotes Consumer's Experience, and then improves the intelligent of terminal.
Below in conjunction with accompanying drawing 3-accompanying drawing 5, the terminal that the embodiment of the present invention provides is described in detail.It should be noted that, the terminal shown in accompanying drawing 3-accompanying drawing 5, for performing Fig. 1 of the present invention and method embodiment illustrated in fig. 2, for convenience of explanation, illustrate only the part relevant to the embodiment of the present invention, concrete ins and outs do not disclose, and please refer to the embodiment shown in Fig. 1 and Fig. 2 of the present invention.
Refer to Fig. 3, for embodiments providing a kind of structural representation of terminal.As shown in Figure 3, the described terminal 1 of the embodiment of the present invention can comprise: mode setting unit 11, type monitoring unit 12 and network switch unit 13.
Mode setting unit 11, for when being connected to selected wireless network, is set to modes of warning by terminal pattern;
In specific implementation, when described terminal 1 is connected to selected wireless network, such as: the wireless network manually selected by user or the wireless network etc. connected by the automatic selection of described terminal 1, terminal pattern can be set to modes of warning by described mode setting unit 11, be understandable that, described modes of warning is used to indicate the application process that real-time listening is performed user operation by described type monitoring unit 12.
Type monitoring unit 12, for based on described modes of warning, monitors the process type of the application process performing current operation;
In specific implementation, based on described modes of warning, described type monitoring unit 12 can monitor the process type of the application process performing current operation, such as: important personal data are transferred to other terminal by the current calling data transmission application process that needs, or current needs are opened and are paid application process to carry out delivery operation etc., and described type monitoring unit 12 obtains the process type of the application process performing current operation.
Network switch unit 13, if be present in default process type set for described process type, then switches to mobile network from described selected wireless network;
In specific implementation, the default process type set needing handover network can be previously provided with in described terminal 1, when described terminal 1 listen to described process type belong in described default process type set time, described selected wireless network can be switched to mobile network by described network switch unit 13.
In embodiments of the present invention, wireless network is all expressed as Wi-Fi, and described mobile network is expressed as the data service that each operator provides, such as: GPRS, 3G, 4G etc.
In embodiments of the present invention, when being connected to selected wireless network, by terminal pattern is set to modes of warning, with based on modes of warning, monitor the process type of the application process performing current operation, if process type is present in default process type set, then selected wireless network is switched to mobile network.By arranging modes of warning and default process type set, application processes can monitor in modes of warning, ensure that application process can perform in the mobile network of safety, improve the fail safe of terminal data.
Refer to Fig. 4, for embodiments providing the structural representation of another kind of terminal.As shown in Figure 4, the described terminal 1 of the embodiment of the present invention can comprise: mode setting unit 11, type monitoring unit 12, network switch unit 13, mark judging unit 14, first network linkage unit 15, second network linkage unit 16, network attribute judging unit 17, first notification unit 18, second notification unit 19 and mode release unit 20.
Mark judging unit 14, for obtaining current attachable wireless network list, and judges at least one wireless network identification whether storing history connection in described wireless network list;
In specific implementation, when user open a terminal 1 radio network functions time, described mark judging unit 14 can obtain current attachable wireless network list, and described mark judging unit 14 can judge at least one wireless network identification whether storing history connection in described wireless network list.
First network linkage unit 15, if judge that the judged result whether storing at least one wireless network identification that history connects in described wireless network list is yes for described mark judging unit 14, then obtain the priority attribute of each wireless network identification at least one wireless network identification described, connect to select wireless network corresponding to the highest wireless network identification of priority attribute;
In specific implementation, user can arrange priority attribute by the wireless network of terminal 1 to selected connection, comprise the wireless network that wireless network and the history of current connection are connected, described priority attribute is for representing user according to the level of security of wireless network to the attribute set by described wireless network identification, such as: priority attribute can be divided into individual, work, public three attribute, " individual " is expressed as the wireless network in user family, " work " is expressed as the wireless network in user job place, " public " is expressed as the wireless network that user goes out in public places, wherein, terminal 1 can default setting be wireless network corresponding to the wireless network identification of " individual ", the rank of its priority attribute is the highest, next is " work ", finally " public ", if therefore current at least one wireless network identification storing history and connect, described first network linkage unit 15 can select wireless network corresponding to the highest-ranking wireless network identification of priority attribute to connect.
Certainly; above three kinds of priority attributes are only and illustrate; specifically more priority attribute can be set according to the concrete condition of wireless network; or one or both priority attributes are only set; all belong to the protection range of the embodiment of the present invention; specific implementation can be identical with the setting up procedure of above-mentioned three kinds of priority attributes, do not repeat at this.
Concrete, please also refer to Fig. 5, for embodiments providing the structural representation of first network linkage unit.As shown in Figure 5, described first network linkage unit 15 can comprise:
Attribute acquiring unit 151, if judge that the judged result whether storing at least one wireless network identification that history connects in described wireless network list is yes for described mark judging unit, then obtain the priority attribute of each wireless network identification at least one wireless network identification described;
Number obtainment unit 152, for searching the highest wireless network identification of priority attribute, and obtains the mark quantity of the highest wireless network identification of described priority attribute;
3rd network connection unit 153, for when described mark quantity is more than or equal to two, chooses according to default network the wireless network that condition selects wireless network identification corresponding in the wireless network identification that described priority attribute is the highest and connects;
In specific implementation, when described wireless network list stores the wireless network identification of multiple history connection simultaneously, and the rank that there is two or more priority attribute in the wireless network identification that connects of described multiple history is identical and when being the highest wireless network identification, described 3rd network connection unit 153 can be chosen according to default network the wireless network that condition selects wireless network identification corresponding in the wireless network identification that described priority attribute is the highest and connect.Further, described attribute acquiring unit 151 can obtain the priority attribute of each wireless network identification at least one wireless network identification described, described number obtainment unit 152 searches the highest wireless network identification of priority attribute, obtain the mark quantity of the highest wireless network identification of described priority attribute, when described mark quantity is more than or equal to two, described 3rd network connection unit 153 can be chosen according to default network the wireless network that condition selects wireless network identification corresponding in the wireless network identification that described priority attribute is the highest and connect, described default network is chosen signal strength signal intensity that condition is specifically as follows wireless network and is connected at least one condition in number of times with history, or be the self-defined score information arranged in described priority attribute, namely user's history is the score information that the wireless network identification of equal priority attribute is arranged respectively.Optionally, when described default network choose condition be signal strength signal intensity to be connected in number of times with history at least one condition time, described 3rd network connection unit 153 can select signal strength signal intensity the highest wireless network that wireless network identification is corresponding to connect in the wireless network identification that described priority attribute is the highest; Or the wireless network that described 3rd network connection unit 153 can select history to connect a maximum wireless network identification of number of times corresponding in the wireless network identification that described priority attribute is the highest connects; Or described 3rd network connection unit 153 can signal strength signal intensity be selected the highest in the wireless network identification that described priority attribute is the highest and the wireless network that history connects a maximum wireless network identification of number of times corresponding connects.And when to choose condition be the self-defined score information arranged in described priority attribute to described default network, wireless network corresponding to described 3rd network connection unit 153 wireless network identification can self-defined score information being selected the highest in the wireless network identification that described priority attribute is the highest connects.
Second network linkage unit 16, if judge that the judged result whether storing at least one wireless network identification that history connects in described wireless network list is no for described mark judging unit 14, then obtain the wireless network identification selected in described wireless network list, connect with the wireless network corresponding to described selected wireless network identification, and store for the priority attribute set by described selected wireless network identification;
In specific implementation, if when not storing at least one wireless network identification of history connection in the current attachable wireless network list obtained, described second network linkage unit 16 can obtain wireless network identification user-selected in described Wi-Fi list, connect with the wireless network corresponding to described selected wireless network identification, user can also be obtained for the priority attribute set by described selected wireless network identification simultaneously, and priority attribute set by corresponding stored and described selected wireless network identification.
Network attribute judging unit 17, for when being connected to selected wireless network, judges whether described selected wireless network belongs to the wireless network of first kind priority attribute;
In specific implementation, because the level of security of the wireless network being in public place is lower, therefore the embodiment of the present invention limits scene set terminal pattern being set to modes of warning further, when described terminal 1 is connected to described selected wireless network, described network attribute judging unit 17 first can judge whether described selected wireless network belongs to the wireless network of first kind priority attribute, wherein, described first kind priority attribute is for representing the priority attribute set by the wireless network being in public place, namely the wireless network that the wireless network identification of " public " is corresponding is set to.
First notification unit 18, if judge that the judged result whether described selected wireless network belongs to the wireless network of first kind priority attribute is yes for described network attribute judging unit 17, then notify that described mode setting unit 11 performs and terminal pattern is set to modes of warning;
Mode setting unit 11, for being set to modes of warning by terminal pattern;
In specific implementation, if described selected wireless network belongs to the wireless network of first kind priority attribute, then described terminal pattern is just set to modes of warning by described mode setting unit 11.If what connect is the wireless network of other priority attribute, then can without the need to opening modes of warning.
Type monitoring unit 12, for based on described modes of warning, monitors the process type of the application process performing current operation;
In specific implementation, based on described modes of warning, described type monitoring unit 12 can monitor the process type of the application process performing current operation, such as: important personal data are transferred to other terminal by the current calling data transmission application process that needs, or current needs are opened and are paid application process to carry out delivery operation etc., and described type monitoring unit 12 obtains the process type of the application process performing current operation.
Second notification unit 19, if be present in default process type set for described process type, then output switching information, and when receiving the confirmation feedback information to described switch prompting information, notifying that described network switch unit 13 performs and switching to mobile network from described selected wireless network;
Network switch unit 13, for switching to mobile network from described selected wireless network;
In specific implementation, the default process type set needing handover network can be previously provided with in described terminal 1, when described terminal 1 listen to described process type belong in described default process type set time, described selected wireless network can be switched to mobile network by described network switch unit 13.
Further, if described process type is present in default process type set, then described second notification unit 19 can first output switching information, just can run after needing to switch to mobile network to point out the application process of the current operation of user, and the button of " confirming to switch " can be provided, described terminal 1 is when receiving the confirmation feedback information to described switch prompting information, and described selected wireless network just can be switched to described mobile network by described network switch unit 13.
Described network switch unit 13, also at the end of listening to described application process, switches to described selected wireless network from described mobile network;
In specific implementation, at the end of described terminal 1 listens to described application process, described mobile network can be switched to described selected wireless network by described network switch unit 13, think user's saving network flow, certainly, if described terminal 1 moves to other place, such as during this period: in other public place, family or office etc., then need to re-execute the process selecting wireless network, its detailed process see the above-mentioned description to wireless network selection course, can not repeat at this.
Mode release unit 20, for when disconnecting the connection with described selected wireless network, removes described modes of warning;
In specific implementation, when described terminal 1 disconnects the connection with described selected wireless network, described mode release unit 20 can remove described modes of warning, namely the application process of operation is no longer monitored, and upper once open connecting wireless network time, again need carry out the judgement of the priority attribute of wireless network, to determine whether again described terminal pattern to be set to described modes of warning.
In embodiments of the present invention, wireless network is all expressed as Wi-Fi, and described mobile network is expressed as the data service that each operator provides, such as: GPRS, 3G, 4G etc.
In embodiments of the present invention, when being connected to selected wireless network, by terminal pattern is set to modes of warning, with based on modes of warning, monitor the process type of the application process performing current operation, if process type is present in default process type set, then selected wireless network is switched to mobile network.By arranging modes of warning and default process type set, application processes can monitor in modes of warning, ensure that application process can perform in the mobile network of safety, improve the fail safe of terminal data; By arranging priority attribute to wireless network identification, the reliability of connected wireless network can be determined according to user-defined priority attribute, to select the need of entering modes of warning to carry out network switching, the basis based on terminal data safety improves the execution efficiency of terminal applies process; By at the end of application process, automatically mobile network being switched to wireless network, can be user's saving network flow, promotes Consumer's Experience, and then improves the intelligent of terminal.
Refer to Fig. 6, for embodiments providing the structural representation of another kind of terminal.As shown in Figure 6, this terminal comprises: at least one processor 601, such as CPU, input equipment 603, output equipment 604, memory 605, at least one communication bus 602.Wherein, communication bus 602 is for realizing the connection communication between these assemblies.Wherein, memory 605 can be high-speed RAM memory, also can be non-labile memory (non-volatile memory), such as at least one magnetic disc store.Memory 605 can also be optionally that at least one is positioned at the storage device away from aforementioned processor 601.Wherein processor 601 can terminal described by composition graphs 3-Fig. 5, store batch processing code, and processor 601 calls the program code stored in memory 605, for performing following operation in memory 605:
When being connected to selected wireless network, terminal pattern is set to modes of warning;
Based on described modes of warning, monitor the process type of the application process performing current operation;
If described process type is present in default process type set, then switch to mobile network from described selected wireless network.
In an alternate embodiment of the invention, before being connected to wireless network, processor 601 calls the program code stored in memory 605 and also performs following steps:
Control inputs equipment 603 obtains current attachable wireless network list, and judges at least one wireless network identification whether storing history connection in described wireless network list;
If so, then control inputs equipment 603 obtains the priority attribute of each wireless network identification at least one wireless network identification described, connects to select wireless network corresponding to the highest wireless network identification of priority attribute;
If not, then control inputs equipment 603 obtains the wireless network identification selected in described wireless network list, connect with the wireless network corresponding to described selected wireless network identification, and store for the priority attribute set by described selected wireless network identification.
In an alternate embodiment of the invention, processor 601 calls the program code stored in memory 605 and performs the priority attribute that control inputs equipment 603 obtains each wireless network identification at least one wireless network identification described, during to be connected to wireless network corresponding to priority attribute the highest wireless network identification, specifically perform following steps:
Obtain the priority attribute of each wireless network identification at least one wireless network identification described;
Search the wireless network identification that priority attribute is the highest, and obtain the mark quantity of the highest wireless network identification of described priority attribute;
When described mark quantity is more than or equal to two, control inputs equipment 603 is chosen according to default network the wireless network that condition selects wireless network identification corresponding in the wireless network identification that described priority attribute is the highest and is connected.
In an alternate embodiment of the invention, described default network chooses condition is signal strength signal intensity is connected in number of times at least one condition with history; Or,
It is the self-defined score information arranged in described priority attribute that described default network chooses condition.
In an alternate embodiment of the invention, when described default network choose condition be signal strength signal intensity to be connected in number of times with history at least one condition time, processor 601 call the program code stored in memory 605 perform control inputs equipment 603 according to default network choose wireless network that condition selects wireless network identification corresponding in the wireless network identification that described priority attribute is the highest connect time, specifically perform following steps:
Control inputs equipment 603 selects signal strength signal intensity the highest wireless network that wireless network identification is corresponding to connect in the wireless network identification that described priority attribute is the highest; Or,
The wireless network that control inputs equipment 603 selects history to connect a maximum wireless network identification of number of times corresponding in the wireless network identification that described priority attribute is the highest connects; Or,
Control inputs equipment 603 selects signal strength signal intensity the highest in the wireless network identification that described priority attribute is the highest and the wireless network that history connects a maximum wireless network identification of number of times corresponding connects.
In an alternate embodiment of the invention, when to choose condition be the self-defined score information arranged in described priority attribute to described default network, processor 601 call the program code stored in memory 605 perform control inputs equipment 603 according to default network choose wireless network that condition selects wireless network identification corresponding in the wireless network identification that described priority attribute is the highest connect time, specifically perform following steps:
Wireless network corresponding to control inputs equipment 603 wireless network identification selecting self-defined score information the highest in the wireless network identification that described priority attribute is the highest connects.
In an alternate embodiment of the invention, processor 601 calls before the program code stored in memory 605 performs terminal pattern is set to modes of warning, also performs following steps:
Judge whether described selected wireless network belongs to the wireless network of first kind priority attribute;
If so, step terminal pattern being set to modes of warning is then performed;
Wherein, described first kind priority attribute is for representing the priority attribute set by the wireless network being in public place.
In an alternate embodiment of the invention, processor 601 calls before the program code stored in memory 605 performs and switch to mobile network from described selected wireless network, also performs following steps:
Control output equipment 604 output switching information, and when input equipment 603 receives the confirmation feedback information to described switch prompting information, perform the step switching to mobile network from described selected wireless network.
In an alternate embodiment of the invention, processor 601 calls the program code stored in memory 605 and also performs following steps:
At the end of listening to described application process, switch to described selected wireless network from described mobile network.
In an alternate embodiment of the invention, processor 601 calls the program code stored in memory 605 and also performs following steps:
When disconnecting the connection with described selected wireless network, remove described modes of warning.
In embodiments of the present invention, when being connected to selected wireless network, by terminal pattern is set to modes of warning, with based on modes of warning, monitor the process type of the application process performing current operation, if process type is present in default process type set, then selected wireless network is switched to mobile network.By arranging modes of warning and default process type set, application processes can monitor in modes of warning, ensure that application process can perform in the mobile network of safety, improve the fail safe of terminal data; By arranging priority attribute to wireless network identification, the reliability of connected wireless network can be determined according to user-defined priority attribute, to select the need of entering modes of warning to carry out network switching, the basis based on terminal data safety improves the execution efficiency of terminal applies process; By at the end of application process, automatically mobile network being switched to wireless network, can be user's saving network flow, promotes Consumer's Experience, and then improves the intelligent of terminal.
Module described in the embodiment of the present invention or unit, universal integrated circuit can be passed through, such as CPU (Central Processing Unit, central processing unit), or realized by ASIC (Application SpecificIntegrated Circuit, application-specific integrated circuit (ASIC)).
Step in embodiment of the present invention method can be carried out order according to actual needs and be adjusted, merges and delete.
Module in embodiment of the present invention terminal or unit can carry out merging, divide and deleting according to actual needs.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosedly be only present pre-ferred embodiments, certainly can not limit the interest field of the present invention with this, therefore according to the equivalent variations that the claims in the present invention are done, still belong to the scope that the present invention is contained.

Claims (10)

1. a method for switching network, is characterized in that, comprising:
When being connected to selected wireless network, terminal pattern is set to modes of warning;
Based on described modes of warning, monitor the process type of the application process performing current operation;
If described process type is present in default process type set, then switch to mobile network from described selected wireless network.
2. method according to claim 1, is characterized in that, described before being connected to wireless network, also comprises:
Obtain current attachable wireless network list, and judge at least one wireless network identification whether storing history connection in described wireless network list;
If so, then obtain the priority attribute of each wireless network identification at least one wireless network identification described, connect to select wireless network corresponding to the highest wireless network identification of priority attribute;
If not, then obtain the wireless network identification selected in described wireless network list, connect with the wireless network corresponding to described selected wireless network identification, and store for the priority attribute set by described selected wireless network identification.
3. method according to claim 2, is characterized in that, the priority attribute of each wireless network identification at least one wireless network identification described in described acquisition, to be connected to wireless network corresponding to the highest wireless network identification of priority attribute, comprising:
Obtain the priority attribute of each wireless network identification at least one wireless network identification described;
Search the wireless network identification that priority attribute is the highest, and obtain the mark quantity of the highest wireless network identification of described priority attribute;
When described mark quantity is more than or equal to two, chooses according to default network the wireless network that condition selects wireless network identification corresponding in the wireless network identification that described priority attribute is the highest and connect.
4. method according to claim 3, is characterized in that, it is signal strength signal intensity is connected in number of times at least one condition with history that described default network chooses condition; Or,
It is the self-defined score information arranged in described priority attribute that described default network chooses condition.
5. method according to claim 4, it is characterized in that, when described default network choose condition be signal strength signal intensity to be connected in number of times with history at least one condition time, described basis is preset network and is chosen the wireless network that condition selects wireless network identification corresponding in the wireless network identification that described priority attribute is the highest and connect, and comprising:
In the wireless network identification that described priority attribute is the highest, select signal strength signal intensity the highest wireless network that wireless network identification is corresponding to connect; Or,
The wireless network selecting history to connect a maximum wireless network identification of number of times corresponding in the wireless network identification that described priority attribute is the highest connects; Or,
In the wireless network identification that described priority attribute is the highest, select signal strength signal intensity the highest and the wireless network that history connects the maximum wireless network identification of number of times corresponding connects.
6. method according to claim 4, it is characterized in that, when to choose condition be the self-defined score information arranged in described priority attribute to described default network, described basis is preset network and is chosen the wireless network that condition selects wireless network identification corresponding in the wireless network identification that described priority attribute is the highest and connect, and comprising:
In the wireless network identification that described priority attribute is the highest, select wireless network corresponding to a highest wireless network identification of self-defined score information to connect.
7. method according to claim 1, is characterized in that, described terminal pattern is set to modes of warning before, also comprise:
Judge whether described selected wireless network belongs to the wireless network of first kind priority attribute;
If so, step terminal pattern being set to modes of warning is then performed;
Wherein, described first kind priority attribute is for representing the priority attribute set by the wireless network being in public place.
8. method according to claim 1, is characterized in that, described switch to mobile network from described selected wireless network before, also comprise:
Output switching information, and when receiving the confirmation feedback information to described switch prompting information, perform the step switching to mobile network from described selected wireless network.
9. method according to claim 1, is characterized in that, also comprises:
At the end of listening to described application process, switch to described selected wireless network from described mobile network.
10. method according to claim 1, is characterized in that, also comprises:
When disconnecting the connection with described selected wireless network, remove described modes of warning.
CN201510209696.3A 2015-04-29 2015-04-29 Network switching method Pending CN104837167A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510209696.3A CN104837167A (en) 2015-04-29 2015-04-29 Network switching method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510209696.3A CN104837167A (en) 2015-04-29 2015-04-29 Network switching method

Publications (1)

Publication Number Publication Date
CN104837167A true CN104837167A (en) 2015-08-12

Family

ID=53814742

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510209696.3A Pending CN104837167A (en) 2015-04-29 2015-04-29 Network switching method

Country Status (1)

Country Link
CN (1) CN104837167A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106714181A (en) * 2016-12-07 2017-05-24 广东欧珀移动通信有限公司 Method and apparatus for accessing WiFi hotspot
CN107105517A (en) * 2017-04-20 2017-08-29 北京小米移动软件有限公司 Method for connecting network and device
CN107181624A (en) * 2017-06-30 2017-09-19 联想(北京)有限公司 A kind of method for connecting network, electronic equipment and computer-readable storage medium
CN107274178A (en) * 2017-07-21 2017-10-20 广东欧珀移动通信有限公司 Method for switching network and Related product
CN107391543A (en) * 2017-05-24 2017-11-24 阿里巴巴集团控股有限公司 The kind identification method and device of a kind of hotspot
CN108173909A (en) * 2017-12-15 2018-06-15 北京臻迪科技股份有限公司 Method of data synchronization, mobile terminal and computer readable storage medium
CN109587053A (en) * 2018-12-28 2019-04-05 Oppo广东移动通信有限公司 Network shunt method and relevant device
WO2019134227A1 (en) * 2018-01-08 2019-07-11 平安科技(深圳)有限公司 Network switching method, computer readable storage medium, terminal apparatus, and device
CN110769477A (en) * 2019-10-31 2020-02-07 广州富港万嘉智能科技有限公司 Method for selecting wireless communication network by wireless networking transaction equipment, computer readable storage medium and self-service vending machine
CN113365322A (en) * 2021-06-03 2021-09-07 北京千丁互联科技有限公司 Network switching method and device, security flat panel and readable storage medium
CN113852962A (en) * 2021-08-20 2021-12-28 荣耀终端有限公司 Network connection control method, device, storage medium and software program product

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1941978A (en) * 2005-09-05 2007-04-04 Lg电子株式会社 Mobile communication terminal holding wireless data business and its method
CN104025551A (en) * 2012-01-03 2014-09-03 阿尔卡特朗讯公司 Secure data transmission

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1941978A (en) * 2005-09-05 2007-04-04 Lg电子株式会社 Mobile communication terminal holding wireless data business and its method
CN104025551A (en) * 2012-01-03 2014-09-03 阿尔卡特朗讯公司 Secure data transmission

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106714181A (en) * 2016-12-07 2017-05-24 广东欧珀移动通信有限公司 Method and apparatus for accessing WiFi hotspot
CN107105517A (en) * 2017-04-20 2017-08-29 北京小米移动软件有限公司 Method for connecting network and device
CN107391543B (en) * 2017-05-24 2020-08-14 阿里巴巴集团控股有限公司 Wireless hotspot type identification method and device
CN107391543A (en) * 2017-05-24 2017-11-24 阿里巴巴集团控股有限公司 The kind identification method and device of a kind of hotspot
CN107181624A (en) * 2017-06-30 2017-09-19 联想(北京)有限公司 A kind of method for connecting network, electronic equipment and computer-readable storage medium
CN107274178B (en) * 2017-07-21 2020-07-17 Oppo广东移动通信有限公司 Network switching method and related product
CN107274178A (en) * 2017-07-21 2017-10-20 广东欧珀移动通信有限公司 Method for switching network and Related product
CN108173909A (en) * 2017-12-15 2018-06-15 北京臻迪科技股份有限公司 Method of data synchronization, mobile terminal and computer readable storage medium
WO2019134227A1 (en) * 2018-01-08 2019-07-11 平安科技(深圳)有限公司 Network switching method, computer readable storage medium, terminal apparatus, and device
CN109587053A (en) * 2018-12-28 2019-04-05 Oppo广东移动通信有限公司 Network shunt method and relevant device
CN109587053B (en) * 2018-12-28 2021-09-07 Oppo广东移动通信有限公司 Network shunting method and related equipment
CN110769477A (en) * 2019-10-31 2020-02-07 广州富港万嘉智能科技有限公司 Method for selecting wireless communication network by wireless networking transaction equipment, computer readable storage medium and self-service vending machine
CN113365322A (en) * 2021-06-03 2021-09-07 北京千丁互联科技有限公司 Network switching method and device, security flat panel and readable storage medium
CN113365322B (en) * 2021-06-03 2022-11-29 北京千丁互联科技有限公司 Network switching method and device, security flat panel and readable storage medium
CN113852962A (en) * 2021-08-20 2021-12-28 荣耀终端有限公司 Network connection control method, device, storage medium and software program product

Similar Documents

Publication Publication Date Title
CN104837167A (en) Network switching method
CN104967990A (en) Terminal
US8130738B2 (en) Mobile device services acquisition
CN107566015B (en) Antenna control method, antenna control device, storage medium and electronic equipment
CN111093235B (en) Network switching method, equipment and storage medium
CN107147450B (en) Radio frequency interference processing method, device, storage medium and terminal
CN107241771A (en) Method for switching network, mobile terminal and computer-readable recording medium
CN105791560A (en) Data network access control method and user terminal
CN107852762A (en) Manage method, bluetooth master and the device of bluetooth connection
CN108601017B (en) Network searching control method based on user terminal and user terminal
CN103887571A (en) Charging mode switching method and charging mode switching device
CN111866976B (en) Network switching method and device
CN104469871A (en) Communication network switching method and device
CN110913447B (en) Network control method, network control device, storage medium and electronic equipment
CN105530383A (en) Scene mode switching method and mobile terminal
CN108432292A (en) A kind of WiFi connection methods and equipment
CN106102107B (en) A kind of processing incoming call and terminal
CN108572866B (en) Application program management method, application program management device and mobile terminal
CN106022108A (en) Synchronous management method and terminal device
CN104375854B (en) A kind of application updates method for down loading and user terminal
CN107820289A (en) A kind of WIFI network switching method, device, terminal and medium
CN111273769B (en) Equipment control method and device, electronic equipment and storage medium
CN101651973A (en) Network switching method for mobile communication equipment terminals and system thereof
CN106576277B (en) Method and device for controlling communication connection
CN112888026B (en) Redirection failure processing method and device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150812