CN106658615B - A kind of method and device switching communication network - Google Patents

A kind of method and device switching communication network Download PDF

Info

Publication number
CN106658615B
CN106658615B CN201610952177.0A CN201610952177A CN106658615B CN 106658615 B CN106658615 B CN 106658615B CN 201610952177 A CN201610952177 A CN 201610952177A CN 106658615 B CN106658615 B CN 106658615B
Authority
CN
China
Prior art keywords
network
classification
network classification
terminal
communication network
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.)
Active
Application number
CN201610952177.0A
Other languages
Chinese (zh)
Other versions
CN106658615A (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 CN201610952177.0A priority Critical patent/CN106658615B/en
Publication of CN106658615A publication Critical patent/CN106658615A/en
Application granted granted Critical
Publication of CN106658615B publication Critical patent/CN106658615B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • H04W36/0022Control or signalling for completing the hand-off for data sessions of end-to-end connection for transferring data sessions between adjacent core network technologies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0055Transmission or use of information for re-establishing the radio link
    • H04W36/0066Transmission or use of information for re-establishing the radio link of control information between different types of networks in order to establish a new radio link in the target network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/14Reselecting a network or an air interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals

Abstract

The embodiment of the invention discloses a kind of method and devices for switching communication network, wherein this method comprises: determining target network classification corresponding with the operation when detecting that terminal applies execute the operation of access network;Obtain the network connection information of present communications network;According to the network connection information, the network classification of present communications network is determined;If judging, the network classification of present communications network is different from target network classification, and controlling terminal switches to the communication network that network classification is the target network classification.Therefore, the operation for the access network that the embodiment of the present invention can be different according to performed by terminal applies, is switched to different classes of communication network, to improve the flexibility of the network connection of terminal.

Description

A kind of method and device switching communication network
Technical field
The invention belongs to field of communication technology more particularly to a kind of method and devices for switching communication network.
Background technique
With the continuous development of types of applications technology, various applications are installed in intelligent mobile terminal.Pass through fortune These applications of row, different functions may be implemented in intelligent terminal, to provide convenience for user.Currently, most of terminal Its complete application function is just able to achieve using requiring to be connected to network.
However, during actual use, the flexibility of the network connection of terminal is poor.For example, being connected to some in terminal In the case where WLAN, all networking operations are carried out under the network environment of some WLAN in terminal 's.
Summary of the invention
The embodiment of the present invention provides a kind of method and device for switching communication network, can improve the spirit of the network connection of terminal Activity.
The embodiment of the present invention the following technical schemes are provided:
A method of switching communication network, comprising:
When detecting that terminal applies execute the operation of access network, target network class corresponding with the operation is determined Not;
Obtain the network connection information of present communications network;
According to the network connection information, the network classification of present communications network is determined;
If judging, the network classification of present communications network is different from the target network classification, and controlling terminal switches to Network classification is the communication network of the target network classification.
The embodiment of the present invention also the following technical schemes are provided:
A kind of device switching communication network, comprising:
First determination unit, for determining and the operation when detecting that terminal applies execute the operation of access network Corresponding target network classification;
Acquiring unit, for obtaining the network connection information of present communications network;
Second determination unit, for determining the network classification of present communications network according to the network connection information;
First control unit, if for judging that the network classification of present communications network is different from the target network class Not, then controlling terminal switches to the communication network that network classification is the target network classification.
The method and device of switching communication network provided in an embodiment of the present invention accesses net when detecting that terminal applies execute When the operation of network, determined to operate corresponding target network classification with this first by terminal.Then, terminal obtains Current Communication Network The network connection information of network, and determine therefrom that the network classification of present communications network.Finally, terminal judges present communications network Whether both network classification and target network classification are consistent.If terminal judges that the two is inconsistent, controlling terminal is switched to net Network classification is the communication network of target network classification.Therefore, the embodiment of the present invention can be according to the difference performed by terminal applies Access network operation, different classes of communication network is switched to, to improve the flexibility of the network connection of terminal.
Detailed description of the invention
With reference to the accompanying drawing, by the way that detailed description of specific embodiments of the present invention, technical solution of the present invention will be made And its advantages are apparent.
Fig. 1 is the flow diagram of the method for switching communication network provided in an embodiment of the present invention.
Fig. 2 is another flow diagram of the method for switching communication network provided in an embodiment of the present invention.
Fig. 3 is the structural schematic diagram of the device of switching communication network provided in an embodiment of the present invention.
Fig. 4 is another structural schematic diagram of the device of switching communication network provided in an embodiment of the present invention.
Fig. 5 is the structural schematic diagram of mobile terminal provided in an embodiment of the present invention.
Specific embodiment
Schema is please referred to, wherein identical component symbol represents identical component, the principle of the present invention is to implement one It is illustrated in computing environment appropriate.The following description be based on illustrated by the specific embodiment of the invention, should not be by It is considered as the limitation present invention other specific embodiments not detailed herein.
It will be detailed below.
Referring to Fig. 1, Fig. 1 is the flow diagram of the method for switching communication network provided in an embodiment of the present invention, specifically Process may include:
In step s101, when detecting that terminal applies execute the operation of access network, determination is corresponding with the operation Target network classification.
It is understood that the executing subject of the embodiment of the present invention can be the terminal devices such as smart phone, tablet computer.
For example, being equipped with various applications on intelligent mobile terminal, most of terminal applies require to be connected to net Network is just able to achieve its complete function.However, in actual use, the flexibility of the network connection of terminal is poor.For example, working as When terminal is connected to some WLAN, then the networking operation applied in terminal just all can only be in some WLAN Network environment under carry out.
To solve the above-mentioned problems, in the step S101 of the embodiment of the present invention, when terminal detects that application therein is held When the operation of row access network, target network classification corresponding with the operation of the access network can be determined by terminal first. For example, can first be determined and the account register pair by terminal when terminal applies execute the networking operation that account logs in The target network classification answered.
It should be noted that network classification may include: mobile data network, private radio local area network and public wireless The classifications such as local area network.Wherein the network of mobile data network classification may include such as 3rd generation mobile communication technology network (3-rd Generation Mobile Communication Technology, abbreviation 3G) and fourth generation mobile communication technology network (4- Th Generation Mobile Communication Technology, abbreviation 4G) etc..And private radio local area network can be with WLAN including being such as deployed in family or company.Public WLAN then can be deployment AT STATION or the fields such as subway In WLAN, etc., be not specifically limited herein.
In step s 102, the network connection information of present communications network is obtained.
In step s 103, according to the network connection information, the network classification of present communications network is determined.
For example, step S102 and S103 can be specifically included:
After terminal determines the corresponding target network classification of the access operation of network with application execution, it can trigger end End obtains the network connection information of its present communications network, and determines therefrom that out the network classification of present communications network.
Then, terminal may determine that present communications network network classification and both above-mentioned target network classifications whether one It causes.
If terminal judges that the network classification of present communications network is consistent with above-mentioned target network classification, terminal continues to make With present communications network.
In step S104, if judging, the network classification of present communications network is different from target network classification, controls Terminal switches to the communication network that network classification is the target network classification.
For example, if terminal judges that the network classification of present communications network and above-mentioned target network classification are inconsistent, this When can control terminal be switched to network classification be above-mentioned target network classification communication network.
For example, terminal detects some to apply executing and requires connect to the account register of network, and determine with The corresponding target network classification of account register is mobile data network classification.Later, terminal is current logical according to what is got The network connection information of communication network determines that the network classification of present communications network is WLAN classification.Terminal is according to it The information determined judges that WLAN classification and mobile data network classification belonging to present communications network are different It causes, communication network can be switched to mobile data network by WLAN with triggering terminal at this time.
It is understood that terminal in the embodiment of the present invention can be different according to performed by terminal applies networking behaviour Make to be alternatively coupled to different classes of communication network, so as to improve terminal network connection flexibility.
It can be seen from the above, the method for switching communication network provided in this embodiment, when detecting that terminal applies execute access When the operation of network, determined to operate corresponding target network classification with this first by terminal.Then, terminal obtains present communications The network connection information of network, and determine therefrom that the network classification of present communications network.Finally, terminal judges present communications network Network classification and both target network classifications it is whether consistent.If terminal judges that the two is inconsistent, controlling terminal is switched to Network classification is the communication network of target network classification.Therefore, the embodiment of the present invention can be according to performed by terminal applies not The operation of same access network, is switched to different classes of communication network, to improve the flexibility of the network connection of terminal.
The method in a preferred embodiment to switching communication network is described in further detail below.
Referring to Fig. 2, Fig. 2 is another flow diagram of the method for switching communication network provided in an embodiment of the present invention, Detailed process may include:
In step s 201, when detecting the operation of application execution access network, terminal is determined corresponding with the operation Target network classification.
For example, can be triggered when terminal detects that some is applied when execution needs to access the account register of network Terminal determines target network classification corresponding with the account register.
It should be noted that network classification may include: mobile data network, private radio local area network and public wireless The classifications such as local area network.Wherein the network of mobile data network classification may include such as 3G network and 4G network.And private radio Local area network may include the WLAN for being deployed in family or company.Public WLAN then can be deployment AT STATION or WLAN, etc. in the places such as subway, is not specifically limited herein.
In possible embodiment, the operation of an access network can correspond to one or more network classifications.It visits Ask that network classification corresponding to the operation of network can also be modified according to actual service condition.For example, when terminal receives It, can be according to the instruction to access to being used to indicate to access network when operating the instruction that corresponding network classification is modified Network classification corresponding to the operation of network is modified, etc..
In a kind of possible embodiment, the step of above-mentioned terminal determines target network classification corresponding with the operation May include:
Terminal detects in default inquiry table whether record network classification corresponding with the operation;
If it is detected that network classification corresponding with the operation is recorded in default inquiry table, it will net corresponding with the operation Network classification is determined as target network classification.
For example, terminal can pre-generate an inquiry table, and the inquiry table is determined as default inquiry table.Then, eventually End can preset setting network classification corresponding from different operations in inquiry table at this.For example, terminal setting in application The corresponding network classification such as account register and payment operation be mobile data network classification, and with download pictures, browsing The corresponding network classification of the operation such as news and viewing network video is WLAN classification, etc..
Based on this, when terminal detects application execution networking operation, can be detected in default inquiry table with triggering terminal is It is no to record network classification corresponding with the networking operation.It is recorded in default inquiry table and the networking operation pair if detected The network classification answered, then network classification corresponding with the networking operation can be determined as target network classification by terminal.
In a kind of possible embodiment, if a terminal detects that being grasped without recording with the networking in default inquiry table Make corresponding network classification, then terminal can also further determine in the following way target network classification:
If it is detected that not recording network classification corresponding with the operation in default inquiry table, detect corresponding with the operation It whether include preset keyword information in terminal applies interface;
If it is detected that including preset keyword information in terminal applies corresponding with operation interface, obtains and closed with default The corresponding network classification of key word information;
Network classification corresponding with preset keyword information is determined as target network classification.
For example, terminal can also be further in default inquiry table when no record network classification corresponding with the operation Whether detect in terminal applies corresponding with operation interface includes preset keyword message.For example, terminal can be to the behaviour Whether the terminal applies interface where making carries out Text region, to detect in the terminal applies interface where the operation comprising such as remaining Volume, the preset keyword message such as transfer accounts, pay the bill and collect money.
If terminal is detected comprising preset keyword message in the terminal applies interface where the operation, then terminal can It, then again will be corresponding with the preset keyword message first to obtain network classification corresponding with the preset keyword message Network classification is determined as target network classification.
In a kind of possible embodiment, terminal can preset different keyword messages, and be arranged and these The corresponding network classification of keyword message.Then, keyword message and the other mapping table of network class can be generated in terminal. Based on this, terminal can inquire the mapping table, to obtain network classification corresponding from different preset keyword information, etc. Deng.
If terminal detect in the terminal applies interface where the operation not comprising preset keyword message namely this When terminal can not determine target network classification corresponding with the operation, then in this case, terminal can continue to use Its current communication network.
In step S202, terminal obtains the network connection information of present communications network, and according to the network connection information, Determine the network classification of present communications network.
For example, in step s 201 terminal define target network classification corresponding with the networking operation of application execution it Afterwards, the network connection information of its available present communications network of terminal, and determine therefrom that out the network class of present communications network Not.
Then, terminal may determine that whether both network classification and target network classification of present communications network are consistent.
If terminal judges that both is consistent, terminal can continue to use present communications network.For example, terminal is according to it The network connection information of the present communications network got determines that present communications network is the network of WLAN classification. And the target network classification that terminal is determined is also WLAN classification, then terminal can continue to use current wireless office Domain net.
If terminal judges that both is inconsistent, S203 is entered step.
In step S203, if judging, the network classification of present communications network is different from the target network classification, eventually End obtains the network classification of accessible communication network.
For example, the network classification for the present communications network that terminal uses is WLAN classification, and what terminal was determined Target network classification is mobile data network classification.So, terminal will judge the network classification of its present communications network not It is same as target network classification.In this case, the network classification of its available accessible communication network of terminal.For example, Terminal can first obtain the network connection information of its accessible communication network, then obtain each accessible communication network accordingly The network classification of network.
It whether include target network class in the network classification of the accessible communication network of terminal detection in step S204 Not.
In step S205, if it is detected that include target network classification in the network classification of accessible communication network, Terminal switches to the communication network that network classification is the target network classification.
In step S206, if it is detected that do not include target network classification in the network classification of accessible communication network, Then terminal uses present communications network.
For example, step S204, S205 and S206 may include:
After getting the network classification of its accessible communication network, terminal can detecte these accessible communications It whether include target network classification in the network classification of network.That is, terminal can detecte in its accessible communication network Whether include target network classification communication network.
If terminal judge include in its accessible communication network target network classification communication network, this When can control terminal be switched to network classification be target network classification communication network.
If terminal is judged not including the communication network for having target network classification in its accessible communication network, Terminal can continue to use its current communication network.
In a kind of possible embodiment, if terminal judges there are multiple communication networks in its accessible communication network The network classification of network is target network classification, then terminal can also be chosen according to certain preset strategy and access therein One communication network.
For example, the target network classification that terminal is determined is mobile data network classification, and terminal can access 3G at this time Network or 4G network.In this case, terminal can be specifically chosen access 3G network or 4G according to certain preset strategy Network.For example, terminal can choose access that strongest mobile data network of signal strength.For another example, terminal also can choose The most fast communication network, etc. of network transmission speed is accessed, preset strategy is not specifically limited herein.
It is understood that terminal can be according to performed different operation be applied, and selection switches in the embodiment of the present invention To different classes of communication network, to improve the flexibility of the network connection of terminal.
In addition, due to using different communication networks to the different networking operation of terminal applies, such as account register and When payment operation, terminal will use or be switched to corresponding mobile data network, then also having correspondingly improved terminal use The safety of network.Because relative to WLAN, especially common WLAN, what mobile operator was provided Mobile data network has used the preferable authentication mode of safety and cryptographic means, and network attack person is not easily accessed mobile data Network carries out monitoring or injection attacks, so that the safety for user provides preferable protection.
It can be seen from the above, the method for switching communication network provided in this embodiment, when detecting that terminal applies execute access When the operation of network, determined to operate corresponding target network classification with this first by terminal.Then, terminal obtains present communications The network connection information of network, and determine therefrom that the network classification of present communications network.Finally, terminal judges present communications network Network classification and both target network classifications it is whether consistent.If terminal judges that the two is inconsistent, controlling terminal is switched to Network classification is the communication network of target network classification.Therefore, the embodiment of the present invention can be according to performed by terminal applies not The operation of same access network, is switched to different classes of communication network, to improve the flexibility of the network connection of terminal.
For convenient for better implementing the method for switching communication network provided in an embodiment of the present invention, the embodiment of the present invention also mentioned For a kind of device of method based on above-mentioned switching communication network.The wherein method of the meaning of noun and above-mentioned switching communication network In it is identical, specific implementation details can be with reference to the explanation in embodiment of the method.
Referring to Fig. 3, Fig. 3 is the structural schematic diagram of the device of switching communication network provided in an embodiment of the present invention.Switching The device 300 of communication network may include: the first determination unit 301, acquiring unit 302, the second determination unit 303, Yi Ji One control unit 304.
First determination unit 301, for determining and the behaviour when detecting that terminal applies execute the operation of access network Make corresponding target network classification.
For example, can be determined when terminal detects the operation of some application execution access network with the first of triggering terminal Unit 301 determines target network classification corresponding with the operation of the access network.For example, when terminal detects that some application is held When row needs to access the account register of network, it can be determined and the account register pair by the first determination unit 301 The network classification answered, and determine it as target network classification.
It should be noted that network classification may include: mobile data network, private radio local area network and public wireless The classifications such as local area network.Wherein the network of mobile data network classification may include such as 3G network and 4G network.And private radio Local area network may include the WLAN for being deployed in family or company.Public WLAN then can be deployment AT STATION or WLAN, etc. in the places such as subway, is not specifically limited herein.
For example, the first determination unit 301 determines that network classification corresponding with account register is mobile data network Classification, then mobile data network classification will be determined as target network classification by the first determination unit 301.
Acquiring unit 302, for obtaining the network connection information of present communications network.
Second determination unit 303, for determining the network classification of present communications network according to the network connection information.
For example, the first determination unit 301 determine target network classification corresponding with the operation of application access network it Afterwards, the network connection information of present communications network can be first obtained by acquiring unit 302, then by 303 basis of the second determination unit The network connection information determines the network classification of terminal present communications network.
First control unit 304, if for judging that the network classification of present communications network is different from the target network Classification, then controlling terminal switches to the communication network that network classification is the target network classification.
For example, determining target network classification corresponding with the operation of application access network and present communications in terminal After the network classification of network, terminal may determine that whether the network classification of present communications network and target network classification are consistent.
If it is judged that both the network classification of present communications network and target network classification are consistent, then terminal can not It must be switched to the communication network of other classifications, but continue to use present communications network.
If it is judged that the network classification and both target network classifications of present communications network are inconsistent, such as present communications The network classification of network is WLAN classification, and target network classification is mobile data network classification, then at this time can be with Terminal is switched to the communication network that network classification is target network classification by the first control unit 304 of triggering terminal.For example, the Terminal is switched to mobile data network, etc. by WLAN by one control unit 304.
In a kind of possible embodiment, the first determination unit 301 can be determined as follows out target network Classification:
It detects in default inquiry table and whether records network classification corresponding with the operation;
If it is detected that network classification corresponding with the operation is recorded in default inquiry table, it will be corresponding with the operation Network classification be determined as target network classification.
For example, terminal can pre-generate an inquiry table, and the inquiry table is determined as default inquiry table.Then, eventually End can preset setting network classification corresponding from different networking operations in inquiry table at this.For example, terminal setting with answer Be mobile data network classification with the corresponding network classification such as middle account register and payment operation, and with download pictures, Browsing the corresponding network classification of the operation such as news and viewing network video is WLAN classification, etc..
Based on this, when terminal detects application execution networking operation, can be examined with the first determination unit 301 of triggering terminal It surveys in default inquiry table and whether records network classification corresponding with the networking operation.It is recorded in default inquiry table if detected There is network classification corresponding with the networking operation, then the first determination unit 301 can will net corresponding with the networking operation Network classification is determined as target network classification, etc..
In a kind of possible embodiment, first control unit 304 can be specifically used for:
Obtain the network classification of the accessible communication network of terminal;
It whether detects in the network classification of the accessible communication network comprising the target network classification;
If it is detected that including the target network classification in the network classification of the accessible communication network, end is controlled End switches to the communication network that network classification is the target network classification.
For example, the second determination unit 303 determines that the network classification for the present communications network that terminal uses is wireless local area Net classification, and the target network classification that the first determination unit 301 is determined is mobile data network classification.Based on this, terminal is sentenced The network classification of disconnected present communications network out is different from target network classification.In this case, the first control unit of terminal The network classification of 304 its available accessible communication network.For example, first control unit 304, which can first obtain it, to be connect Then the network connection information of the communication network entered obtains the network classification of each accessible communication network accordingly.
After getting the network classification of accessible communication network, first control unit 304 can detecte terminal can It whether include target network classification in the network classification of the communication network of access.That is, terminal detects its accessible communication network In network whether include target network classification communication network.
If terminal detects the communication network in its accessible communication network comprising target network classification, then the first control Unit 304 processed can control the communication network that terminal is switched to the target network classification.For example, terminal uses 4G to move originally Dynamic data network, but detect that wherein some application execution plays the operation of network video in sometime terminal, at this time eventually End detects to include a WLAN in its accessible communication network, then first control unit 304 can incite somebody to action Terminal is by 4G network switching to WLAN.
It is understood that terminal in the embodiment of the present invention can be different according to performed by terminal applies networking behaviour Make to be alternatively coupled to different classes of communication network, so as to improve terminal network connection flexibility.
Referring to Figure 4 together, Fig. 4 is another structural representation of the device of switching communication network provided in an embodiment of the present invention Figure.In a preferred embodiment, the device 300 for switching communication network can also include: third determination unit 305 and the second control Unit 306 processed.
Third determination unit 305, for if it is detected that not recording network class corresponding with the operation in default inquiry table Not, then whether detect in terminal applies interface corresponding with the operation includes preset keyword information;If it is detected that with described It operates comprising preset keyword information in corresponding terminal applies interface, then obtains network class corresponding with preset keyword information Not;The network classification corresponding with preset keyword information is determined as target network classification.
For example, the first determination unit 301 detect do not recorded in default inquiry table with application networking operation it is corresponding Network classification, then can also further trigger the terminal applies where the detection of third determination unit 305 networking operation at this time It whether include preset keyword information in interface.For example, preset keyword information may include remaining sum, transfer accounts, pays the bill and receive Money, etc. is not specifically limited herein.
If third determination unit 305 detects in the terminal applies interface where the networking operation comprising preset keyword Information, then terminal can first obtain network classification corresponding with the preset keyword message, it then again will be preset with this The corresponding network classification of keyword message is determined as target network classification.
In a kind of possible embodiment, terminal can preset different keyword messages, and be arranged and these The corresponding network classification of keyword message.Then, keyword message and the other mapping table of network class can be generated in terminal. Based on this, the third determination unit 305 of terminal can inquire the mapping table, to obtain and different preset keyword information Corresponding network classification, etc..
Second control unit 306, for if it is detected that not including institute in the network classification of the accessible communication network Target network classification is stated, then controlling terminal uses present communications network.
For example, first control unit 304, which detects in the accessible communication network of terminal, does not include target network classification Communication network then can continue to use present communications network by 306 controlling terminal of the second control unit at this time, without being switched to Other communication networks.
It can be seen from the above, the device of switching communication network provided in this embodiment, when detecting that terminal applies execute access When the operation of network, determined to operate corresponding target network classification with this first by terminal.Then, terminal obtains present communications The network connection information of network, and determine therefrom that the network classification of present communications network.Finally, terminal judges present communications network Network classification and both target network classifications it is whether consistent.If terminal judges that the two is inconsistent, controlling terminal is switched to Network classification is the communication network of target network classification.Therefore, the embodiment of the present invention can be according to performed by terminal applies not The operation of same access network, is switched to different classes of communication network, to improve the flexibility of the network connection of terminal.
The embodiment of the present invention also provides a kind of mobile terminal, such as tablet computer, mobile phone mobile terminal.Referring to Fig. 5, figure 5 be mobile terminal structure schematic diagram provided in an embodiment of the present invention.The mobile terminal 500 may include radio frequency (RF, Radio Frequency) circuit 501, include one or more memory 502, the input unit of computer readable storage medium 503, display unit 504, sensor 505, voicefrequency circuit 506, Wireless Fidelity (WiFi, Wireless Fidelity) module 507, the components such as processor 508 and the power supply 509 of processing core are included one or more than one.Those skilled in the art Member is appreciated that mobile terminal structure shown in Fig. 5 does not constitute the restriction to mobile terminal, may include more than illustrating Or less component, perhaps combine certain components or different component layouts.
Radio circuit 501 can be used for receiving and sending messages or communication process in signal send and receive, particularly, by base station Downlink information receive after, transfer to one or more than one processor 508 processing;In addition, the data for being related to uplink are sent To base station.In general, radio circuit 501 includes but is not limited to antenna, at least one amplifier, tuner, one or more oscillations Device, subscriber identity module (SIM, Subscriber Identity Module) card, transceiver, coupler, low noise amplification Device (LNA, Low Noise Amplifier), duplexer etc..In addition, radio circuit 501 can also by wireless communication with network It is communicated with other equipment.Any communication standard or agreement, including but not limited to global system for mobile telecommunications can be used in the wireless communication System (GSM, Global System of Mobile communication), general packet radio service (GPRS, General Packet Radio Service), CDMA (CDMA, Code Division Multiple Access), wideband code division it is more Location (WCDMA, Wideband Code Division Multiple Access), long term evolution (LTE, Long Term Evolution), Email, short message service (SMS, Short Messaging Service) etc..
Memory 502 can be used for storing application program and data.It include that can hold in the application program that memory 502 stores Line code.Application program can form various functional modules.Processor 508 is stored in the application journey of memory 502 by operation Sequence, thereby executing various function application and data processing.Memory 502 can mainly include storing program area and storing data Area, wherein storing program area can application program needed for storage program area, at least one function (such as sound-playing function, Image player function etc.) etc.;Storage data area, which can be stored, uses created data (such as audio number according to mobile terminal According to, phone directory etc.) etc..In addition, memory 502 may include high-speed random access memory, it can also include non-volatile deposit Reservoir, for example, at least a disk memory, flush memory device or other volatile solid-state parts.Correspondingly, memory 502 can also include Memory Controller, to provide the access of processor 508 and input unit 503 to memory 502.
Input unit 503 can be used for receiving number, character information or the user's characteristic information (such as fingerprint) of input, and Generate keyboard related with user setting and function control, mouse, operating stick, optics or trackball signal input.Specifically Ground, in a specific embodiment, input unit 503 may include touch sensitive surface and other input equipments.Touch sensitive surface, Referred to as touch display screen or Trackpad, collect user on it or nearby touch operation (such as user using finger, touching The operations of any suitable object or attachment on touch sensitive surface or near touch sensitive surface such as pen), and according to preset Formula drives corresponding attachment device.Optionally, touch sensitive surface may include both touch detecting apparatus and touch controller. Wherein, the touch orientation of touch detecting apparatus detection user, and touch operation bring signal is detected, transmit a signal to touch Controller;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processing Device 508, and order that processor 508 is sent can be received and executed.Furthermore, it is possible to using resistance-type, condenser type, infrared ray And the multiple types such as surface acoustic wave realize touch sensitive surface.In addition to touch sensitive surface, input unit 503 can also include other inputs Equipment.Specifically, other input equipments can include but is not limited to physical keyboard, function key (such as volume control button, switch Key etc.), fingerprint recognition mould group, trace ball, mouse, one of operating stick etc. or a variety of.
Display unit 504 can be used for showing information input by user or the information and mobile terminal that are supplied to user Various graphical user interface, these graphical user interface can be made of figure, text, icon, video and any combination thereof. Display unit 504 may include display panel.Optionally, liquid crystal display (LCD, Liquid Crystal can be used Display), the forms such as Organic Light Emitting Diode (OLED, Organic Light-Emitting Diode) configure display surface Plate.Further, touch sensitive surface can cover display panel, after touch sensitive surface detects touch operation on it or nearby, Processor 508 is sent to determine the type of touch event, is followed by subsequent processing device 508 according to the type of touch event in display panel It is upper that corresponding visual output is provided.Although touch sensitive surface and display panel are realized as two independent components in Fig. 5 Input and input function, but in some embodiments it is possible to it is touch sensitive surface and display panel is integrated and realize and input and defeated Function out.
Mobile terminal may also include at least one sensor 505, such as optical sensor, motion sensor and other sensings Device.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel, and proximity sensor can close display surface when mobile terminal is moved in one's ear Plate and/or backlight.As a kind of motion sensor, gravity accelerometer can detect in all directions (generally three axis) The size of acceleration can detect that size and the direction of gravity when static, the application that can be used to identify mobile phone posture is (such as vertical and horizontal Shield switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;As for movement The other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor that terminal can also configure, it is no longer superfluous herein It states.
Voicefrequency circuit 506 can provide the audio interface between user and mobile terminal by loudspeaker, microphone.Audio-frequency electric The audio data received can be converted into electric signal by road 506, be transferred to loudspeaker, and it is defeated to be converted to voice signal by loudspeaker Out;On the other hand, the voice signal of collection is converted to electric signal by microphone, is converted to audio after being received by voicefrequency circuit 506 Data, then by after the processing of audio data output processor 508, such as another mobile terminal is sent to through radio circuit 501, or Person exports audio data to memory 502 to be further processed.Voicefrequency circuit 506 is also possible that earphone jack, to mention For the communication of peripheral hardware earphone and mobile terminal.
Wireless Fidelity (WiFi) belongs to short range wireless transmission technology, and mobile terminal can be with by wireless fidelity module 507 Help user to send and receive e-mail, browse webpage and access streaming video etc., it provides wireless broadband internet for user Access.Although Fig. 5 shows wireless fidelity module 507, but it is understood that, and it is not belonging to the necessary structure of mobile terminal At can according to need within the scope of not changing the essence of the invention and omit completely.
Processor 508 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part by running or execute the application program being stored in memory 502, and is called and is stored in memory 502 Data execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Optionally, it handles Device 508 may include one or more processing cores;Preferably, processor 508 can integrate application processor and modulation /demodulation processing Device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is mainly located Reason wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 508.
Mobile terminal further includes the power supply 509 (such as battery) powered to all parts.Preferably, power supply can pass through electricity Management system and processor 508 are logically contiguous, to realize management charging, electric discharge and power consumption by power-supply management system The functions such as management.Power supply 509 can also include one or more direct current or AC power source, recharging system, power supply event Hinder the random components such as detection circuit, power adapter or inverter, power supply status indicator.
Although being not shown in Fig. 5, mobile terminal can also include camera, bluetooth module etc., and details are not described herein.
Specifically in the present embodiment, processor 508 in mobile terminal can according to following instruction, by one or one with On the corresponding executable code of process of application program be loaded into memory 502, and be stored in by processor 508 to run Application program in memory 502, to realize various functions:
When detecting that terminal applies execute the operation of access network, target network class corresponding with the operation is determined Not;Obtain the network connection information of present communications network;According to the network connection information, the network of present communications network is determined Classification;If judging, the network classification of present communications network is different from the target network classification, and controlling terminal switches to net Network classification is the communication network of the target network classification.
Processor 508 may include: when executing the step of above-mentioned determination target network classification corresponding with the operation It detects in default inquiry table and whether records network classification corresponding with the operation;If it is detected that being recorded in default inquiry table Network classification corresponding with the operation is then determined as target network classification by network classification corresponding with the operation.
Processor 508 is also used to realize following functions: if it is detected that not recording in default inquiry table corresponding with the operation Network classification, then whether detect in corresponding with operation terminal applies interface includes preset keyword information;If detection Out include preset keyword information in terminal applies interface corresponding with the operation, then obtains corresponding with preset keyword information Network classification;The network classification corresponding with preset keyword information is determined as target network classification.
Processor 508 switches to the communication network that network classification is the target network classification in the above-mentioned controlling terminal of execution Step when, may include: the network classification for obtaining the accessible communication network of terminal;Detect the accessible communication network Network classification in whether include the target network classification;If it is detected that in the network classification of the accessible communication network Comprising the target network classification, then controlling terminal switches to the communication network that network classification is the target network classification.
Processor 508 is also used to realize following functions: if it is detected that in the network classification of the accessible communication network Not comprising the target network classification, then controlling terminal uses present communications network.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, it may refer to the detailed description of the method above with respect to switching communication network, details are not described herein again.
Switching communication network in the device and foregoing embodiments of the switching communication network provided in an embodiment of the present invention Method belong to same design, the method that the switching communication network can be run on the device of the switching communication network is real Either offer method in example is applied, specific implementation process is detailed in the embodiment of the method for the switching communication network, herein no longer It repeats.
It should be noted that for the method for switching communication network described in the embodiment of the present invention, this field common test Personnel are understood that realize all or part of the process of the method for switching communication network described in the embodiment of the present invention, are that can pass through Computer program is completed to control relevant hardware, and the computer program can be stored in a computer-readable storage medium In, it such as stores in memory, and executed by least one processor, in the process of implementation may include such as the switching communication network The process of the embodiment of the method for network.Wherein, the storage medium can be magnetic disk, CD, read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory) etc..
For the device of the switching communication network of the embodiment of the present invention, each functional module be can integrate at one It handles in chip, is also possible to modules and physically exists alone, a mould can also be integrated in two or more modules In block.Above-mentioned integrated module both can take the form of hardware realization, can also be realized in the form of software function module. It, can also be with if the integrated module is realized and when sold or used as an independent product in the form of software function module It is stored in a computer readable storage medium, the storage medium is for example read-only memory, disk or CD etc..
It is provided for the embodiments of the invention the method, apparatus and mobile terminal progress of a kind of switching communication network above It is discussed in detail, used herein a specific example illustrates the principle and implementation of the invention, above embodiments Explanation be merely used to help understand method and its core concept of the invention;Meanwhile for those skilled in the art, foundation Thought of the invention, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification is not It is interpreted as limitation of the present invention.

Claims (10)

1. a kind of method for switching communication network, which is characterized in that the described method includes:
When detecting that terminal applies execute the operation of access network, detects and whether recorded and the operation in default inquiry table Corresponding network classification a, wherein terminal applies correspond to the operation of multiple access networks;
If it is detected that network classification corresponding with the operation is recorded in default inquiry table, it will net corresponding with the operation Network classification is determined as target network classification;
Obtain the network connection information of present communications network;
According to the network connection information, the network classification of present communications network is determined;
If judging, the network classification of present communications network is different from the target network classification, and controlling terminal switches to network Classification is the communication network of the target network classification.
2. the method for switching communication network according to claim 1, which is characterized in that in detecting default inquiry table whether After recording the other step of network class corresponding with the operation, further includes:
If it is detected that not recording network classification corresponding with the operation in default inquiry table, detect corresponding with the operation It whether include preset keyword information in terminal applies interface;
If it is detected that including preset keyword information in terminal applies interface corresponding with the operation, obtain and default key The corresponding network classification of word information;
The network classification corresponding with preset keyword information is determined as target network classification.
3. the method for switching communication network according to claim 2, which is characterized in that the controlling terminal switches to network Classification is the communication network of the target network classification, comprising:
Obtain the network classification of the accessible communication network of terminal;
It whether detects in the network classification of the accessible communication network comprising the target network classification;
If it is detected that including the target network classification in the network classification of the accessible communication network, controlling terminal is cut Shift to the communication network that network classification is the target network classification.
4. the method for switching communication network according to claim 3, which is characterized in that detecting the accessible communication After the step of whether including the target network classification in the network classification of network, further includes:
If it is detected that not including the target network classification, controlling terminal in the network classification of the accessible communication network Use present communications network.
5. a kind of device for switching communication network, which is characterized in that described device includes:
First determination unit, for when detecting that terminal applies execute the operation of access network, detecting in default inquiry table to be It is no to record network classification corresponding with the operation, wherein a terminal applies correspond to the operation of multiple access networks;If inspection Measure and record network classification corresponding with the operation in default inquiry table, then will network classification corresponding with the operation it is true It is set to target network classification;
Acquiring unit, for obtaining the network connection information of present communications network;
Second determination unit, for determining the network classification of present communications network according to the network connection information;
First control unit, if for judging that the network classification of present communications network is different from the target network classification, Controlling terminal switches to the communication network that network classification is the target network classification.
6. the device of switching communication network according to claim 5, which is characterized in that described device further include: third is true Order member, is used for
If it is detected that not recording network classification corresponding with the operation in default inquiry table, detect corresponding with the operation It whether include preset keyword information in terminal applies interface;
If it is detected that including preset keyword information in terminal applies interface corresponding with the operation, obtain and default key The corresponding network classification of word information;
The network classification corresponding with preset keyword information is determined as target network classification.
7. the device of switching communication network according to claim 6, which is characterized in that the first control unit is used for:
Obtain the network classification of the accessible communication network of terminal;
It whether detects in the network classification of the accessible communication network comprising the target network classification;
If it is detected that including the target network classification in the network classification of the accessible communication network, controlling terminal is cut Shift to the communication network that network classification is the target network classification.
8. the device of switching communication network according to claim 7, which is characterized in that described device further include:
Second control unit, for if it is detected that not including the target network in the network classification of the accessible communication network Network classification, then controlling terminal uses present communications network.
9. a kind of mobile terminal, including memory, processor, which is characterized in that the processor is by calling the memory The computer program of middle storage, for executing such as the described in any item methods of Claims 1-4.
10. a kind of storage medium, is stored with computer program, wherein the computer program executes computer as weighed Benefit requires 1 to 4 described in any item methods.
CN201610952177.0A 2016-10-26 2016-10-26 A kind of method and device switching communication network Active CN106658615B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610952177.0A CN106658615B (en) 2016-10-26 2016-10-26 A kind of method and device switching communication network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610952177.0A CN106658615B (en) 2016-10-26 2016-10-26 A kind of method and device switching communication network

Publications (2)

Publication Number Publication Date
CN106658615A CN106658615A (en) 2017-05-10
CN106658615B true CN106658615B (en) 2019-09-13

Family

ID=58821361

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610952177.0A Active CN106658615B (en) 2016-10-26 2016-10-26 A kind of method and device switching communication network

Country Status (1)

Country Link
CN (1) CN106658615B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107426779A (en) * 2017-07-31 2017-12-01 合肥龙图腾信息技术有限公司 A kind of smart mobile phone WIFI and data network connection switching method and system
CN111050370A (en) * 2020-01-16 2020-04-21 惠州Tcl移动通信有限公司 Network switching method and device, storage medium and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1802009A (en) * 2005-01-05 2006-07-12 国际商业机器公司 Method and system for carrying out switching between two communication modes of WLAN
CN103906193A (en) * 2012-12-26 2014-07-02 上海贝尔股份有限公司 Method for configuring user equipment for discovery and selection of access network type
CN104821992A (en) * 2015-05-25 2015-08-05 广东欧珀移动通信有限公司 Method and device for automatically switching network connection type of mobile phone
CN105049617A (en) * 2015-07-01 2015-11-11 中科创达软件股份有限公司 Mobile communication terminal network switching method, system and mobile communication terminal
CN105163359A (en) * 2015-09-21 2015-12-16 联想(北京)有限公司 Network mode switching method and mobile communication terminal
CN105245731A (en) * 2015-11-11 2016-01-13 上海斐讯数据通信技术有限公司 Method and system for controlling excessive consumption of mobile phone traffic

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1802009A (en) * 2005-01-05 2006-07-12 国际商业机器公司 Method and system for carrying out switching between two communication modes of WLAN
CN103906193A (en) * 2012-12-26 2014-07-02 上海贝尔股份有限公司 Method for configuring user equipment for discovery and selection of access network type
CN104821992A (en) * 2015-05-25 2015-08-05 广东欧珀移动通信有限公司 Method and device for automatically switching network connection type of mobile phone
CN105049617A (en) * 2015-07-01 2015-11-11 中科创达软件股份有限公司 Mobile communication terminal network switching method, system and mobile communication terminal
CN105163359A (en) * 2015-09-21 2015-12-16 联想(北京)有限公司 Network mode switching method and mobile communication terminal
CN105245731A (en) * 2015-11-11 2016-01-13 上海斐讯数据通信技术有限公司 Method and system for controlling excessive consumption of mobile phone traffic

Also Published As

Publication number Publication date
CN106658615A (en) 2017-05-10

Similar Documents

Publication Publication Date Title
CN104519485B (en) Communication means, device and system between a kind of terminal
CN103455603B (en) Web page contents caching, webpage loading method, device and terminal unit
CN104901991B (en) Virtual resource transfer method, device and system
CN107800651A (en) Closing application program method, apparatus, storage medium and electronic equipment
CN104850406B (en) A kind of method and apparatus for switching the page
CN107172266A (en) Method for controlling fingerprint identification and Related product
CN104298666B (en) Webpage sharing method and device
CN104123276B (en) The hold-up interception method of pop-up, device and system in a kind of browser
CN106358225B (en) A kind of processing method of network data, device and mobile terminal
CN106529312B (en) A kind of authority control method of mobile terminal, device and mobile terminal
CN106534093B (en) A kind of processing method of terminal data, apparatus and system
CN107357725A (en) Application testing method and device
CN106131930A (en) A kind of WiFi network connection control method, device and terminal
CN106527949A (en) Fingerprint unlocking method and device and terminal
CN106850983A (en) One kind puts out screen control method, device and terminal
CN104699501B (en) A kind of method and device for running application program
CN106254910A (en) A kind of method and apparatus recording image
CN106775267A (en) A kind of method and apparatus of the function menu for showing game plug-in unit
CN107172671A (en) A kind of channel switching method, device, storage medium and terminal
CN106529332B (en) A kind of authority control method of mobile terminal, device and mobile terminal
CN107219951A (en) Touch screen control method, device, storage medium and terminal device
CN106658623A (en) Hotspot network switching method and terminal equipment
CN105739839B (en) The selection method and device of multimedia menu item
CN107171740A (en) Radio frequency interference processing method, device, storage medium and terminal
CN107276602A (en) Radio frequency interference processing method, device, storage medium and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

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

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

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

Applicant before: Guangdong OPPO Mobile Communications Co., Ltd.

GR01 Patent grant
GR01 Patent grant