CN106851758A - Communication network changing method and terminal device - Google Patents

Communication network changing method and terminal device Download PDF

Info

Publication number
CN106851758A
CN106851758A CN201710160572.XA CN201710160572A CN106851758A CN 106851758 A CN106851758 A CN 106851758A CN 201710160572 A CN201710160572 A CN 201710160572A CN 106851758 A CN106851758 A CN 106851758A
Authority
CN
China
Prior art keywords
communication network
network address
access
network
target
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.)
Granted
Application number
CN201710160572.XA
Other languages
Chinese (zh)
Other versions
CN106851758B (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 CN201710160572.XA priority Critical patent/CN106851758B/en
Publication of CN106851758A publication Critical patent/CN106851758A/en
Application granted granted Critical
Publication of CN106851758B publication Critical patent/CN106851758B/en
Expired - Fee Related 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/0055Transmission or use of information for re-establishing the radio link
    • H04W36/0077Transmission or use of information for re-establishing the radio link of access information of target access point
    • 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
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • H04W48/14Access restriction or access information delivery, e.g. discovery data delivery using user query or user detection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Landscapes

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

Abstract

The embodiment of the invention discloses a kind of communication network changing method and terminal device, communication network and terminal technical field are applied to, wherein the method includes:When access target network address fails, the access information for not limiting the target communication network for accessing the target network address is inquired about in default database;According to the access information of the target communication network for inquiring, from the communication network of current connection, switching is connected to the target communication network;The target network address is conducted interviews again by the target communication network.The embodiment of the present invention is realized under multi-network environment, and the full-automatic switching of the communication network of limitation is accessed based on network address, simplifies the operation of network switching, improves switch speed, it is ensured that the fast and efficiently accessible access to being limited network address.

Description

Communication network changing method and terminal device
Technical field
The invention belongs to communication network and terminal technical field, more particularly to a kind of communication network changing method and Terminal device.
Background technology
Under many wifi (Wireless Fidelity) network environment, the function of each wifi hotspot may be different.For example:Have Wifi hotspot may restricting user access some specific network address (such as google.com), but network speed is very fast.And have The possible network speed of wifi hotspot is relatively slow (such as vpn), but its access for not having network address is limited.But existing communication network switches skill Art, the speed selection wifi hotspot typically according to network speed, this results in each user and wants to access the ad hoc networks restricteding access During location, must dynamic circuit breaker Kaiyuan on the offensive come wifi network, the wifi for searching then is accessed by artificial control terminal one by one again Focus simultaneously refreshes the mode of access, searches the wifi hotspot that may have access to particular web site, cumbersome and lack efficiency.
The content of the invention
The present invention provides a kind of communication network changing method and terminal device, it is intended to solve existing communication network switching skill Art is cumbersome under many wifi network environment and lacks the technical problem of efficiency.
Embodiment of the present invention first aspect provides a kind of communication network changing method, including:When access target network address is lost When losing, the access information for not limiting the target communication network for accessing the target network address is inquired about in default database;According to The access information of the target communication network for inquiring, from the communication network of current connection, switching is connected to the destinations traffic net Network;The target network address is conducted interviews again by the target communication network.
Embodiment of the present invention second aspect provides a kind of terminal device, including:Information inquiry module, for when access mesh When mark network address fails, the access letter for not limiting the target communication network for accessing the target network address is inquired about in default database Breath;Network handover module, for the access information according to the target communication network for inquiring, from the communication network of current connection, Switching is connected to the target communication network;Access modules, for by the target communication network again to the target network Location conducts interviews.
Knowable to the embodiments of the present invention, communication network switching and terminal device that the present invention is provided, by when visit When asking that target network address fails, automatic inquiry is to access information of the target network address without the target communication network for accessing limitation, and root According to Query Result, switching is connected to the target communication network, then the target network address is entered again by the target communication network Row is accessed, and is realized under multi-network environment, and the full-automatic switching of the communication network of limitation is accessed based on network address, is simplified network and is cut The operation changed, improves switch speed, it is ensured that the fast and efficiently accessible access to being limited network address.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention.
Fig. 1 is that the communication network changing method that first embodiment of the invention is provided realizes schematic flow sheet;
Fig. 2 is that the communication network changing method that second embodiment of the invention is provided realizes schematic flow sheet;
Fig. 3 is the structural representation of the terminal device that third embodiment of the invention is provided;
Fig. 4 is the structural representation of the terminal device that fourth embodiment of the invention is provided;
Fig. 5 shows a kind of hardware structure diagram of terminal device.
Specific embodiment
To enable that goal of the invention of the invention, feature, advantage are more obvious and understandable, below in conjunction with the present invention Accompanying drawing in embodiment, is clearly and completely described to the technical scheme in the embodiment of the present invention, it is clear that described reality It is only a part of embodiment of the invention to apply example, and not all embodiments.Based on the embodiment in the present invention, people in the art The every other embodiment that member is obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
Refer to Fig. 1, the communication network changing method that Fig. 1 is provided for first embodiment of the invention realizes that flow is illustrated Figure, the method can be applied in terminal device, and terminal device includes:Smart mobile phone, panel computer, notebook computer etc. can moved The electronic data-processing equipment used in dynamic, or, other non-electronic data-processing equipments that can be used in movement, such as:Platform Formula computer.The method is mainly included the following steps that:
S101, when access target network address fails, the mesh for not limiting access target network address is inquired about in default database Mark the access information of communication network;
Default database is at least used to record the connecing without one or more communication networks for accessing limitation to target network address Enter information.Access information can be, but not limited to include:The identification information of communication network, the title of corresponding Network Access Point, connect Enter password etc..
When the network address for detecting user accesses operation, obtain the network address and access the target network address that operation is pointed to, according to this Target network address, sends access request, in preset time period, if do not receive the server returning to the server belonging to the target network address The response message returned, then confirm to access target network address failure, and the communication network of current connection has access to limit to the target network address System.Then, inquiry whether there is to the target network address without the target communication network for accessing limitation in default database, if depositing Then obtaining the access information of the target communication network.
S102, the access information according to the target communication network for inquiring, from the communication network of current connection, switching connection To target communication network;
The connection with the current communication network being connected is disconnected, and according to the access information of the target communication network for inquiring, Access request is sent to the Network Access Point of the target communication network, corresponding destinations traffic is accessed with by the Network Access Point Network.
It should be understood that the communication network before switching is not limited to same type of communication with the communication network after switching Network.For example:The communication network after communication network and switching before switching can be cable network or be wireless network, or Communication network before person, or switching is cable network, and the communication network after switching is wireless network.When logical before switching Communication network after communication network and switching is when being wireless network, and the communication network after communication network and switching before switching is not yet Same wireless network is limited to, for example:Communication network before switching can be mobile communication cell network (such as:3G network), Communication network after switching can be wifi wireless networks.
Optionally, if the target communication network for inquiring has multiple, can successively be attempted according to the sequencing of inquiry It is attached with each target communication network for inquiring, until successfully linking up one of communication network.Or, it is also possible to According to signal strength, attempt being attached with each target communication network successively, until successfully linking up one of communication network Network.
Optionally, if not inquiring target communication network, or, each target communication network for inquiring is unavailable, then after Current network connection and display reminding information are held in continuation of insurance, to point out ownership goal network access to be limited, and without candidate communication net Network can use.
S103, target network address is conducted interviews again by target communication network.
When be successfully established with target communication network be connected after, by target communication network, again to belonging to the target network address Server send access request, conducted interviews with to the target network address.
In the embodiment of the present invention, by when access target network address fails, inquiring about to the target network address without access automatically The access information of the target communication network of limitation, and according to Query Result, switching is connected to the target communication network, then passes through The target communication network is conducted interviews to the target network address again, realizes under multi-network environment, and limitation is accessed based on network address The full-automatic switching of communication network, simplifies the operation of network switching, improves switch speed, it is ensured that to being limited the fast of network address Fast, efficiently accessible access.
Refer to Fig. 2, the communication network changing method that Fig. 2 is provided for second embodiment of the invention realizes that flow is illustrated Figure, the method can be applied in terminal device, and terminal device includes:Smart mobile phone, panel computer, notebook computer etc. can moved The electronic data-processing equipment used in dynamic, or, other non-electronic data-processing equipments that can be used in movement, such as:Platform Formula computer.The method is comprised the following steps:
S201, when communication network is connected to, whether the communication network of the current connection of detection limits the network address of access preset Network address in list;
In any time of terminal device operation, in response to the network connection instruction for triggering, the network connection is referred to To communication network be attached, and when the communication network is successfully connected to, whether the communication network that detection is currently connected to There is access to limit to the network address in default list of websites.
It should be understood that including when communication network is connected in this step:After suspension after a while, connection To the situation of communication network, and, the situation of another communication network is connected to from the switching of communication network.
Type in the present embodiment to communication network is not limited, and can have to be by the various wired of grid line access Network is (such as:By the cable network of the connections such as coaxial cable, optical fiber), or various wireless networks are (such as:Mobile communication honeybee Nest network, wifi network, blueteeth network etc.).
Optionally, the network address in list of websites (network address list) can be by User Defined.Specifically, in response to the net of user Location list sets operation, obtains the list of websites and sets the network address that operation is pointed to, and updates list of websites according to the network address for obtaining. Wherein updating includes:Newly-increased, modification, deletion.Network address in list of websites for example can be, but not limited to include Www.googel.com, www.youtube.com etc..
S202, acquisition testing result, and according to testing result, update default database;
Optionally, detect that the network address whether communication network of current connection is limited in the list of websites of access preset specifically may be used Comprise the following steps:
Packet is sent to the server belonging to each network address in list of websites one by one, and to server request return code, Return code can proper communication for mark;If receiving return code in preset duration, it is determined that the communication network of current connection is not Limitation accesses the network address;If not receiving return code in preset duration, it is determined that the communication network limitation of current connection is accessed should Network address.
Testing result includes as obtained by above-mentioned steps:The communication network of current connection is in default list of websites Which network address there is access to limit, and, the communication network of current connection is to which network address in default list of websites without visit Ask limitation.
May be appreciated, it is assumed that terminal device is mobile phone, after mobile phone connects a wifi network, can be from trend network address name The server of each network address in list sends request bag, such as by way of ping, if it is that represent can that server has return code With proper communication, then in " ability " of default this wifi network of data-base recording, record during it can access list Which network address.
Default database can be, but not limited to for recording:Each network address, or many limited without access each network address The access information of individual communication network.Further, can be also used for record has one or more for accessing limitation to lead to each network address The access information of communication network.Wherein, the access information can be, but not limited to include:The identification information of communication network, corresponding net Title, access pin of network access point etc..Wherein, the identification information of communication network can be the name of corresponding Network Access Point Claim or other can the unique mark communication network identity information.
According to testing result, update default database, can only will current connection communication network access information with Corresponding relation between its network address for not limiting access is recorded in default database.Or, it is also possible in default data Recorded respectively in storehouse:Corresponding relation between the access information and its network address for limiting access of the communication network of current connection, with And, network address that currently access information of the communication network of connection does not limit access with it.
Optionally, to avoid duplicate detection, network address detection speed is improved, whether is limited in the communication network of the current connection of detection Before network address in the list of websites of access preset processed, can also be by inquiring about default database, in the list of websites Network address is screened.Specifically, when communication network is connected to, by inquiring about above-mentioned default database, currently being connected Communication network limitation access network address;The network address that communication network limitation according to current connection is accessed, sieves from list of websites Select the network address for needing detection;According to the network address detected the need for filtering out, step S201 is performed:The communication of the current connection of detection Whether network limits the network address in the list of websites of access preset.That is, default in now only needing to detection list of websites Limitation not corresponding with the communication network for currently connecting accesses the network address of record in database.Therefore, survey grid to be checked can be reduced The quantity of location, improves detection speed.
S203, the network address access instruction in response to triggering, obtain the corresponding target network address of network address access instruction;
Network address access instruction can be triggered by user by web page browsing plug-in unit, or, by terminal device detect it is preset Triggered during event.
S204, by inquiring about database, judge whether the communication network of current connection limits access target network address;
If S205, Query Result are the communication network limitation access target network address of current connection, access target net is confirmed Location fails, if the communication network that Query Result is current connection does not limit access target network address, or, without Query Result, then to mesh Mark network address conducts interviews, and judges whether access fails;
Specifically, before being conducted interviews to target network address, inquiring about to limit accessing the target network address from default database Communication network access information, the identification information and the access information for inquiring of the communication network of current connection are carried out Match somebody with somebody.If the information matched comprising the identification information with the current communication network being connected in the access information for inquiring, it is determined that Query Result is the communication network limitation access target network address of current connection, directly judges the failure of access target network address.If inquiry To access information in the information that does not match comprising the identification information with the current communication network being connected, it is determined that Query Result For the communication network of current connection does not limit access target network address, and perform the access operation to target network address.
Or, before being conducted interviews to target network address, inquiry limitation accesses the target network respectively from default database First access information of the communication network of location and do not limit access the target network address communication network the second access information, will The identification information of the communication network of current connection is matched with the first access information and the second access information that inquire respectively. If the information matched comprising the identification information with the current communication network being connected in the first access information, it is determined that Query Result For the communication network of current connection limits access target network address, the failure of access target network address is directly judged.If the second access information In the information that matches comprising the identification information with current communication network be connected, it is determined that Query Result is leading to for current connection Communication network does not limit access target network address, and performs the access operation to target network address, and judges whether access fails.If first The information matched not comprising the identification information with the current communication network being connected in access information and the second access information, then It is determined that without Query Result, then performing the access operation to target network address, and judge whether access fails.
Like this, before access target network address, the default database of inquiry is first passed through, to the communication network of current connection Whether limitation accesses the target network address carries out anticipation, is then chosen whether directly to perform follow-up network switching according to anticipation result Operation, can avoid unnecessary wait, further improve the efficiency of network switching.
S206, when access target network address fails, the communication network for not limiting access target network address is inquired about in database Access information;
If during above-mentioned anticipation, directly judging the failure of access target network address, then the visit to target network address is no longer performed Operation is asked, but the access information of the communication network for not limiting access target network address is directly inquired about in default database.
If during above-mentioned anticipation, not found in database corresponding with the communication network of the network address and current connection Limitation access information, then to target network address server send access request, if in preset time period, being not received by the clothes Business device return web data, or receive other for determine cannot then judge with the information of the server proper communication Access target network address fails, and connecing for the communication network that does not limit access target network address is then inquired about in above-mentioned default database Enter information.
Optionally, when access target network address fails, target network address is updated in list of websites, and is remembered in database The communication network limitation access target network address of the current connection of record.So, even the logical of the present embodiment offer is performed in first time During communication network changing method, when going to step S204 and carrying out anticipation, accuracy anticipation result higher is also can obtain.Together When, the dynamic adjustment to list of websites can also be realized, so as to contribute to upgrading in time to the data in default database, And then improve the efficiency of whole network handover operation.
The signal intensity of each communication network for not limiting access target network address that S207, acquisition are inquired, and determine not limit The access information of the most strong communication network of signal, is the access of target communication network in each communication network of access target network address processed Information;
The signal intensity of each communication network for not limiting access target network address that acquisition is inquired, and according to signal from by force to Weak order, is ranked up to each communication network, the communication network most strong to determine signal, then that the signal is most strong logical The access information of communication network as target communication network access information.
S208, the access information according to the target communication network for inquiring, from the communication network of current connection, switching connection To target communication network;
The connection with the current communication network being connected is disconnected, and according to the access information of the target communication network for inquiring, Access request is sent to the Network Access Point of the target communication network, corresponding destinations traffic is accessed with by the Network Access Point Network.
It should be understood that the communication network before switching is not limited to same type of communication with the communication network after switching Network.For example:The communication network after communication network and switching before switching can be cable network or be wireless network, or Communication network before person, or switching is cable network, and the communication network after switching is wireless network.When logical before switching Communication network after communication network and switching is when being wireless network, and the communication network after communication network and switching before switching is not yet Same wireless network is limited to, for example:Communication network before switching can be mobile communication cell network (such as:3G network), Communication network after switching can be wifi wireless networks.
S209, target network address is conducted interviews again by target communication network.
When be successfully established with target communication network be connected after, by target communication network, again to belonging to the target network address Server send access request, conducted interviews with to the target network address.
Meanwhile, step S201 and S202 are performed, updated with entering Mobile state to the data recorded in default database, to enter One step improves the feasibility and reliability of the target communication network for inquiring.
In the embodiment of the present invention, on the one hand, by when access target network address fails, inquiring about to the target network address automatically Access information without the target communication network for accessing limitation, and according to Query Result, switching is connected to the target communication network, so The target network address is conducted interviews again by the target communication network afterwards, is realized under multi-network environment, accessed based on network address The full-automatic switching of the communication network of limitation, simplifies the operation of network switching, improves switch speed, it is ensured that to being limited net The fast and efficiently accessible access of location.On the other hand, list of websites and default database are updated by dynamic, is suitable for Multi-network environment is continually changing, it is ensured that the lasting feasibility and reliability of network switching.
Fig. 3 is referred to, Fig. 3 is the structural representation of the terminal device that third embodiment of the invention is provided, for the ease of saying It is bright, illustrate only the part related to the embodiment of the present invention.The terminal device of Fig. 3 examples can be foregoing embodiment illustrated in fig. 1 The executive agent of the communication network changing method of offer.The terminal device of Fig. 3 examples, mainly includes:Information inquiry module 31, net Network handover module 32 and access modules 33.Each functional module describes in detail as follows above:
Wherein, information inquiry module 31, for when access target network address fails, being inquired about in default database and not limited System accesses the access information of the target communication network of the target network address;
Network handover module 32, for the access information according to the target communication network for inquiring, from the logical of current connection Communication network, switching is connected to the target communication network;
Access modules 33, for being conducted interviews to the target network address again by the target communication network.
Specifically, default database at least is used to record to target network address without one or more communication networks for accessing limitation The access information of network.Access information can be, but not limited to include:The name of the identification information of communication network, corresponding Network Access Point Title, access pin etc..
When the network address for detecting user accesses operation, obtain the network address and access the target network address that operation is pointed to, according to this Target network address, sends access request, in preset time period, if do not receive the server returning to the server belonging to the target network address The response message returned, then confirm to access target network address failure, and the communication network of current connection has access to limit to the target network address System.Then, information inquiry module 31 is inquired about with the presence or absence of to mesh of the target network address without access limitation in default database Mark communication network, if in the presence of obtaining the access information of the target communication network.Then, network handover module 32 disconnects and works as The connection of the communication network of preceding connection, and according to the access information of the target communication network for inquiring, to the target communication network Network Access Point send access request, access corresponding target communication network with by the Network Access Point.When logical with target After communication network is successfully established connection, access modules 33 pass through target communication network, again to the server belonging to the target network address Access request is sent, is conducted interviews with to the target network address.
Optionally, if information inquiry module 31 does not inquire target communication network, or, each target communication network for inquiring Unavailable, then network handover module 32 continues to keep current network connection and display reminding information, to point out ownership goal Network access is limited, and available without candidate communication network.
The present embodiment details not to the greatest extent, refers to the description of foregoing embodiment illustrated in fig. 1, and here is omitted.
It should be noted that in the implementation method of the terminal device of figure 3 above example, the division of each functional module is only to lift Example explanation, can as needed in practical application, such as the convenient consideration of the realization of the configuration requirement or software of corresponding hardware, And above-mentioned functions distribution is completed by different functional module, will the internal structure of terminal device be divided into different function moulds Block, to complete all or part of function described above.And, in practical application, the corresponding function mould in the present embodiment Block can be realized by corresponding hardware, it is also possible to perform corresponding software by corresponding hardware and complete.What this specification was provided Each embodiment can all apply foregoing description principle, below repeat no more.
In the embodiment of the present invention, by when access target network address fails, inquiring about to the target network address without access automatically The access information of the target communication network of limitation, and according to Query Result, switching is connected to the target communication network, then passes through The target communication network is conducted interviews to the target network address again, realizes under multi-network environment, and limitation is accessed based on network address The full-automatic switching of communication network, simplifies the operation of network switching, improves switch speed, it is ensured that to being limited the fast of network address Fast, efficiently accessible access.
Refer to Fig. 4, the structural representation of the terminal device that fourth embodiment of the invention is provided, for convenience of description, only Show the part related to the embodiment of the present invention.The terminal device of Fig. 4 examples can be earlier figures 1 and embodiment illustrated in fig. 2 The executive agent of the communication network changing method of offer.The terminal device of Fig. 4 examples, sets with the terminal in embodiment illustrated in fig. 3 Standby difference is essentially consisted in:
Further, the terminal device also includes:
Detection module 41, for when communication network is connected to, whether the communication network of the current connection of detection to limit access Network address in default list of websites, and obtain testing result;
Update module 42, for according to the testing result, updating the database;
Wherein, detection module 41 detects the net whether communication network of current connection is limited in the list of websites of access preset Location, specifically includes:Packet is sent to the server belonging to each network address in the list of websites one by one, and to the server request Return code, the return code can proper communication for mark;If receiving the return code in preset duration, it is determined that the current connection Communication network do not limit access the network address;If not receiving the return code in the preset duration, it is determined that the current connection Communication network limitation accesses the network address.
In the present embodiment, default database can be, but not limited to for recording:Each network address, to each network address without access limit The access information of one or more communication networks of system.Further, can be also used for record has what access was limited to each network address The access information of one or more communication networks.Wherein, the access information can be, but not limited to include:The mark letter of communication network Breath, the title of corresponding Network Access Point, access pin etc..Wherein, the identification information of communication network can be corresponding net The title of network access point or other can the unique mark communication network identity information.
Specifically, in any time of terminal device operation, in response to the network connection instruction for triggering, to the network connection Instruct the communication network for pointing to be attached, and when the communication network is successfully connected to, detected currently by detection module 41 Whether the communication network being connected to has access to limit to the network address in default list of websites, and obtains testing result.The detection Result includes:The communication network of current connection has access to limit to which network address in default list of websites, and, currently connect The communication network for connecing is limited which network address in default list of websites without access.
Then, by update module 42, the net that the access information of the communication network of current connection is not limited into access with it Corresponding relation between location is recorded in default database.Or, it is also possible to by update module 42 in default database It is middle to record respectively:Corresponding relation between the access information and its network address for limiting access of the communication network of current connection, and, The network address that the access information of the communication network of current connection does not limit access with it.
Optionally, update module 42 is additionally in response to the list of websites setting operation of user, obtains the list of websites and sets behaviour The network address that work is pointed to, and list of websites is updated according to the network address for obtaining.Wherein updating includes:Newly-increased, modification, deletion.
Further, information inquiry module 31, the target network address is accessed specifically for inquire about do not limit in the database Communication network access information, acquisition inquire does not limit access the target network address each communication network signal intensity, And determine that this does not limit the access information of the most strong communication network of signal in each communication network for accessing the target network address, for this The access information of target communication network.
Further, the terminal device also includes:
Network address looks into sieve module 43, for when communication network is connected to, by inquiring about the database, obtains what is currently connected The network address that communication network limitation is accessed, the network address that the communication network limitation according to the current connection is accessed, from the list of websites The network address for needing detection is filtered out, detection trigger module 41 performs the detection current according to the network address detected the need for filtering out The step of whether communication network of connection limits the network address in the list of websites of access preset.
Specifically, to avoid duplicate detection, improving network address detection speed, the communication of current connection is detected in detection module 41 Before whether network limits the network address in the list of websites of access preset, first pass through network address and look into sieve module 43, be connected to communication During network, by inquiring about above-mentioned default database, the network address that communication network limitation is accessed for currently connecting is obtained, according to current The network address that the communication network limitation of connection is accessed, being filtered out from list of websites needs the network address of detection.Then, detection trigger mould Block 41, according to the network address detected the need for filtering out, whether the communication network of the current connection of detection limits the network address of access preset Network address in list.That is, illogical with what is be currently connected in default database in now only needing to detection list of websites The corresponding limitation of communication network accesses the network address of record.Therefore, the quantity of network address to be detected can be reduced, detection speed is improved.
Further, the terminal device also includes:
Website acquisition module 44, for the network address access instruction in response to triggering, obtains the network address access instruction corresponding Target network address;
Judge module 45, for by inquiring about the database, judging whether the communication network of the current connection limits access The target network address, if the communication network limitation that Query Result is the current connection accesses the target network address, confirms access target Network address fails, and, if the communication network that Query Result is the current connection is not limited accesses the target network address, or, without inquiry As a result, then the target network address is conducted interviews, and judges whether access fails;
Update module 42, is additionally operable to be updated to the target network address in the list of websites, and record should in the database The communication network limitation of current connection accesses the target network address.
Specifically, before being conducted interviews to target network address in response to the network address access instruction for triggering, website acquisition module 44 Obtain the corresponding target network address of the network address access instruction.Then, judge module 45 is inquired about limitation from default database and is accessed The access information of the communication network of the target network address, the identification information of the communication network of current connection and the access for inquiring are believed Breath is matched.If the letter matched comprising the identification information with the current communication network being connected in the access information for inquiring Breath, it is determined that Query Result is the communication network limitation access target network address of current connection, directly judges that access target network address is lost Lose.If the information not matched comprising the identification information with the current communication network being connected in the access information for inquiring, really Determine the communication network that Query Result is current connection and do not limit access target network address, and perform the access operation to target network address.
Or, before being conducted interviews to target network address in response to the network address access instruction for triggering, website acquisition module 44 is obtained Take the corresponding target network address of the network address access instruction.Then, judge module 45 from default database visit respectively by inquiry limitation Ask the communication network of the target network address the first access information and do not limit access the target network address communication network second Access information, letter is accessed by the identification information of the communication network of current connection with the first access information for inquiring and second respectively Breath is matched.If the information matched comprising the identification information with the current communication network being connected in the first access information, Determine the communication network limitation access target network address that Query Result is current connection, directly judge the failure of access target network address.If The information matched comprising the identification information with the current communication network being connected in second access information, it is determined that Query Result is The communication network of current connection does not limit access target network address, and performs the access operation to target network address, and judges that access is No failure.If not comprising the identification information phase with the current communication network being connected in the first access information and the second access information The information of matching, it is determined that without Query Result, then perform the access operation to target network address, and judge whether access fails.
Like this, before the access target network address of access modules 33, the default database of inquiry is first passed through, to current connection Communication network whether limit access the target network address carry out anticipation, chosen whether directly to perform follow-up net according to anticipation result Network handover operation, can avoid unnecessary wait, further improve the efficiency of network switching.
If judge module 45 is during above-mentioned anticipation, the failure of access target network address is directly judged, then no longer perform to mesh The access operation of network address is marked, but direct trigger message enquiry module 31 is inquired about in default database and does not limit access target The access information of the communication network of network address.
If judge module 45 do not found in database during above-mentioned anticipation with the network address and it is current be connected lead to The information that the corresponding limitation of communication network is accessed, then send access request, if in preset time period, not having to the server of target network address Receive the server return web data, or receive other for determine cannot be with the letter of the server proper communication Breath, then judge that access target network address fails, and then trigger message enquiry module 31 is inquired about in above-mentioned default database and do not limited The access information of the communication network of access target network address processed.
Optionally, when judge module 45 judge access target network address fail when, by update module 42 by target network address more It is new into list of websites, and the communication network limitation access target network address of current connection is recorded in database.So, even When first time the communication network changing method that the present embodiment is provided is performed, when triggering judge module 45 carries out anticipation, also may be used Obtain accuracy anticipation result higher.At the same time it can also realize the dynamic adjustment to list of websites, so as to contribute to default Database in data upgrade in time, and then improve the efficiency of whole network handover operation.
The present embodiment details not to the greatest extent, refers to the description of earlier figures 1 and embodiment illustrated in fig. 2, and here is omitted.
In the embodiment of the present invention, on the one hand, by when access target network address fails, inquiring about to the target network address automatically Access information without the target communication network for accessing limitation, and according to Query Result, switching is connected to the target communication network, so The target network address is conducted interviews again by the target communication network afterwards, is realized under multi-network environment, accessed based on network address The full-automatic switching of the communication network of limitation, simplifies the operation of network switching, improves switch speed, it is ensured that to being limited net The fast and efficiently accessible access of location.On the other hand, list of websites and default database are updated by dynamic, is suitable for Multi-network environment is continually changing, it is ensured that the lasting feasibility and reliability of network switching.
Fig. 5 is referred to, Fig. 5 is that the terminal device structure of execution communication network changing method provided in an embodiment of the present invention is shown It is intended to.
Terminal device described in the present embodiment, including:
At least one input equipment 51;At least one output equipment 52;At least one processor 53, such as center treatment Device;And, memory 54.
Above-mentioned input equipment 51, output equipment 52, processor 53 and memory 54 are connected by bus 55.
Wherein, input equipment 51 concretely camera, contact panel, physical button or mouse etc..Output equipment 52 concretely display screens.
Memory 54 can be high random access memory body (RAM, Random Access Memory) memory, also may be used It is non-labile memory (non-volatile memory), such as magnetic disk storage.Memory 54 is used for one group of storage can Configuration processor code, processor 53 is coupled with memory 54, and above-mentioned input equipment 51, output equipment 52 and processor 53 are used to adjust With the executable program code stored in memory 54, following operation is performed:
The code is performed by processor 53, the communication network as described in earlier figures 1 and embodiment illustrated in fig. 2 is performed and is cut Change method.
Specifically, that is, perform when access target network address fails, inquired about in default database and do not limited described in access The access information of the target communication network of target network address;According to the access information of the target communication network for inquiring, connect from currently The communication network for connecing, switching is connected to the target communication network;By the target communication network again to the target network Location conducts interviews.
Further, processor 53 is performed when communication network is connected to, and whether the communication network of the current connection of detection limits Network address in the list of websites of access preset processed;Testing result is obtained, and according to the testing result, updates the database.
Further, whether the communication network of the perform detection of processor 53 currently connection limits the list of websites of access preset In network address, specifically include:Packet is sent to the server belonging to each network address in the list of websites one by one, and to described Server request return code, the return code can proper communication for mark;If receiving the return code in preset duration, Determine that the communication network of the current connection does not limit the access network address;If not receiving the return in the preset duration Code, it is determined that the communication network limitation of the current connection accesses the network address.
Further, processor 53 performs the target inquired about in default database and do not limit and access the target network address The access information of communication network, specifically includes:The communication network for not limiting and accessing the target network address is inquired about in the database The access information of network;The signal intensity for not limiting each communication network for accessing the target network address that acquisition is inquired;Determine institute The access information for not limiting the most strong communication network of signal in each communication network for accessing the target network address is stated, is the target The access information of communication network.
Further, whether the communication network of the perform detection of processor 53 currently connection limits the list of websites of access preset In network address before, also including perform:When communication network is connected to, by inquiring about the database, obtain what is currently connected The network address that communication network limitation is accessed;The network address that communication network limitation according to the current connection is accessed, from network address row Being filtered out in table needs the network address of detection;According to the network address detected the need for filtering out, the logical of the current connection of the detection is performed The step of whether communication network limits the network address in the list of websites of access preset.
Further, processor 53 is performed when access target network address fails, and is inquired about in default database and not limited Before the access information of the target communication network for accessing the target network address, including perform:Network address in response to triggering is accessed and referred to Order, obtains the corresponding target network address of the network address access instruction;By inquiring about the database, the logical of the current connection is judged Whether communication network limits the access target network address;If the communication network limitation that Query Result is the current connection accesses described Target network address, then confirm the failure of access target network address;If Query Result is the communication network of the current connection does not limit access The target network address, or, without Query Result, then being conducted interviews to the target network address, and judges whether access fails.
Further, processor 53 performs the communication network from current connection, and switching is connected to the target communication network Before, also including performing:The target network address is updated in the list of websites, and records described working as in the database The communication network limitation of preceding connection accesses the target network address.
In multiple embodiments provided herein, it should be understood that disclosed terminal device and method, Ke Yitong Other modes are crossed to realize.For example, embodiments described above is only schematical, for example, the division of the module, only Only a kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple module or components can be tied Another system is closed or is desirably integrated into, or some features can be ignored, or do not perform.It is another, it is shown or discussed Coupling each other or direct-coupling or communication linkage can be by some interfaces, the INDIRECT COUPLING or communication chain of module Connect, can be electrical, mechanical or other forms.
The module that is illustrated as separating component can be or may not be it is physically separate, it is aobvious as module The part for showing can be or may not be physical module, you can with positioned at a place, or can also be distributed to multiple On mixed-media network modules mixed-media.Some or all of module therein can be according to the actual needs selected to realize the mesh of this embodiment scheme 's.
In addition, during each functional module in each embodiment of the invention can be integrated in a processing module, it is also possible to It is that modules are individually physically present, it is also possible to which two or more modules are integrated in a module.Above-mentioned integrated mould Block can both be realized in the form of hardware, it would however also be possible to employ the form of software function module is realized.
If the integrated module is to realize in the form of software function module and as independent production marketing or use When, can store in a computer read/write memory medium.Based on such understanding, technical scheme is substantially The part for being contributed to prior art in other words or all or part of the technical scheme can be in the form of software products Embody, the computer software product is stored in a storage medium, including some instructions are used to so that a computer Equipment (can be personal computer, server, or network equipment etc.) performs the complete of each embodiment methods described of the invention Portion or part steps.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey The medium of sequence code.
It should be noted that for foregoing each method embodiment, in order to simplicity is described, therefore it is all expressed as a series of Combination of actions, but those skilled in the art should know, the present invention not by described by sequence of movement limited because According to the present invention, some steps can sequentially or simultaneously be carried out using other.Secondly, those skilled in the art should also know Know, embodiment described in this description belongs to preferred embodiment, and involved action and module might not all be this hairs Necessary to bright.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not have the portion described in detail in certain embodiment Point, may refer to the associated description of other embodiments.
It is more than the description to communication network changing method provided by the present invention and terminal device, for the one of this area As technical staff, according to the embodiment of the present invention thought, will change in specific embodiments and applications, it is comprehensive On, this specification content should not be construed as limiting the invention.

Claims (10)

1. a kind of communication network changing method, it is characterised in that methods described includes:
When access target network address fails, the destinations traffic for not limiting and accessing the target network address is inquired about in default database The access information of network;
According to the access information of the target communication network for inquiring, from the communication network of current connection, switching is connected to the mesh Mark communication network;
The target network address is conducted interviews again by the target communication network.
2. communication network changing method as claimed in claim 1, it is characterised in that methods described also includes:
When communication network is connected to, whether the communication network of the current connection of detection limits the net in the list of websites of access preset Location;
Testing result is obtained, and according to the testing result, updates the database.
3. communication network changing method as claimed in claim 2, it is characterised in that the communication network of the detection currently connection Whether the network address in the list of websites of access preset is limited, is specifically included:
Packet is sent to the server belonging to each network address in the list of websites one by one, and is returned to the server request Code, the return code can proper communication for mark;
If receiving the return code in preset duration, it is determined that the communication network of the current connection does not limit the access net Location;
If not receiving the return code in the preset duration, it is determined that the communication network limitation of the current connection accesses institute State network address.
4. communication network changing method as claimed in claim 2, it is characterised in that the communication network of the detection currently connection Before whether limiting the network address in the list of websites of access preset, also include:
When communication network is connected to, by inquiring about the database, the net that communication network limitation is accessed for currently connecting is obtained Location;
The network address that communication network limitation according to the current connection is accessed, being filtered out from the list of websites needs detection Network address;
According to the network address detected the need for filtering out, whether the communication network for performing the current connection of the detection limits access preset List of websites in network address the step of.
5. the communication network changing method as described in any one of Claims 1-4, it is characterised in that described when access target net Location fail when, inquired about in default database do not limit the target communication network for accessing the target network address access information it Before, including:
In response to the network address access instruction for triggering, the corresponding target network address of the network address access instruction is obtained;
By inquiring about the database, judge whether the communication network of the current connection limits the access target network address;
If the communication network limitation that Query Result is the current connection accesses the target network address, access target network address is confirmed Failure;
If the communication network that Query Result is the current connection does not limit the access target network address, or, without Query Result, then The target network address is conducted interviews, and judges whether access fails.
6. the communication network changing method as described in any one of Claims 1-4, it is characterised in that described from current connection Communication network, before switching is connected to the target communication network, also includes:
The target network address is updated in the list of websites, and records the communication of the current connection in the database Network limitation accesses the target network address.
7. a kind of terminal device, it is characterised in that the terminal device includes:
Information inquiry module, does not limit described in access for when access target network address fails, being inquired about in default database The access information of the target communication network of target network address;
Network handover module, for the access information according to the target communication network for inquiring, from the communication network of current connection, Switching is connected to the target communication network;
Access modules, for being conducted interviews to the target network address again by the target communication network.
8. terminal device as claimed in claim 7, it is characterised in that the terminal device also includes:
Detection module, for when communication network is connected to, whether the communication network of the current connection of detection to limit access preset Network address in list of websites, and obtain testing result;
Update module, for according to the testing result, updating the database;
Wherein, whether the communication network of the current connection of the detection limits the network address in the list of websites of access preset, specific bag Include:
Packet is sent to the server belonging to each network address in the list of websites one by one, and is returned to the server request Code, the return code can proper communication for mark;
If receiving the return code in preset duration, it is determined that the communication network of the current connection does not limit the access net Location;
If not receiving the return code in the preset duration, it is determined that the communication network limitation of the current connection accesses institute State network address.
9. terminal device as claimed in claim 7, it is characterised in that the terminal device also includes:
Network address looks into sieve module, for when communication network is connected to, by inquiring about the database, obtains the communication for currently connecting The network address that network limitation is accessed, the network address that the communication network limitation according to the current connection is accessed, from the list of websites The network address for needing detection is filtered out, the detection module is triggered according to the network address detected the need for filtering out, the detection is performed The step of whether communication network of current connection limits the network address in the list of websites of access preset.
10. the terminal device as described in any one of claim 7 to 9, it is characterised in that
The terminal device also includes:
Website acquisition module, for the network address access instruction in response to triggering, obtains the corresponding target of the network address access instruction Network address;
Judge module, for by inquiring about the database, judging whether the communication network of the current connection limits access institute Target network address is stated, if the communication network limitation that Query Result is the current connection accesses the target network address, confirms to access Target network address fails, and, if the communication network that Query Result is the current connection does not limit the access target network address, Or, without Query Result, then being conducted interviews to the target network address, and judge whether access fails;
The update module, is additionally operable to be updated to the target network address in the list of websites, and remember in the database The communication network limitation for recording the current connection accesses the target network address.
CN201710160572.XA 2017-03-17 2017-03-17 Communication network switching method and terminal equipment Expired - Fee Related CN106851758B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710160572.XA CN106851758B (en) 2017-03-17 2017-03-17 Communication network switching method and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710160572.XA CN106851758B (en) 2017-03-17 2017-03-17 Communication network switching method and terminal equipment

Publications (2)

Publication Number Publication Date
CN106851758A true CN106851758A (en) 2017-06-13
CN106851758B CN106851758B (en) 2021-03-23

Family

ID=59144849

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710160572.XA Expired - Fee Related CN106851758B (en) 2017-03-17 2017-03-17 Communication network switching method and terminal equipment

Country Status (1)

Country Link
CN (1) CN106851758B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107181624A (en) * 2017-06-30 2017-09-19 联想(北京)有限公司 A kind of method for connecting network, electronic equipment and computer-readable storage medium
CN107832329A (en) * 2017-09-26 2018-03-23 中国平安人寿保险股份有限公司 Page resource acquisition methods and terminal device
CN109511146A (en) * 2018-12-29 2019-03-22 联想(北京)有限公司 A kind of connection method, electronic equipment and network access equipment
CN112312507A (en) * 2020-10-12 2021-02-02 广东电网有限责任公司广州供电局 Power grid communication network switching method and device and power grid communication system
CN113992578A (en) * 2021-09-09 2022-01-28 新华三大数据技术有限公司 Method, device and equipment for switching servers by cloud desktop terminal and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060155803A1 (en) * 2002-08-19 2006-07-13 Naoki Muramatsu Communication terminal having a function to inhibit connection to a particular site and program thereof
CN101909110A (en) * 2010-06-17 2010-12-08 惠州Tcl移动通信有限公司 Mobile phone browser connection access method and device
CN103987130A (en) * 2014-05-16 2014-08-13 北京奇虎科技有限公司 Terminal access method, device and system based on WIFI equipment
CN104350802A (en) * 2014-04-16 2015-02-11 华为技术有限公司 Wireless local area network WLAN access method, terminal and server
CN104852915A (en) * 2015-04-30 2015-08-19 广东欧珀移动通信有限公司 Network access control method and device
CN105009682A (en) * 2013-03-14 2015-10-28 高通股份有限公司 Selecting network for wireless device
CN105429800A (en) * 2015-12-03 2016-03-23 小米科技有限责任公司 Network connection processing method and device and terminal equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060155803A1 (en) * 2002-08-19 2006-07-13 Naoki Muramatsu Communication terminal having a function to inhibit connection to a particular site and program thereof
CN101909110A (en) * 2010-06-17 2010-12-08 惠州Tcl移动通信有限公司 Mobile phone browser connection access method and device
CN105009682A (en) * 2013-03-14 2015-10-28 高通股份有限公司 Selecting network for wireless device
CN104350802A (en) * 2014-04-16 2015-02-11 华为技术有限公司 Wireless local area network WLAN access method, terminal and server
CN103987130A (en) * 2014-05-16 2014-08-13 北京奇虎科技有限公司 Terminal access method, device and system based on WIFI equipment
CN104852915A (en) * 2015-04-30 2015-08-19 广东欧珀移动通信有限公司 Network access control method and device
CN105429800A (en) * 2015-12-03 2016-03-23 小米科技有限责任公司 Network connection processing method and device and terminal equipment

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107181624A (en) * 2017-06-30 2017-09-19 联想(北京)有限公司 A kind of method for connecting network, electronic equipment and computer-readable storage medium
CN107832329A (en) * 2017-09-26 2018-03-23 中国平安人寿保险股份有限公司 Page resource acquisition methods and terminal device
CN109511146A (en) * 2018-12-29 2019-03-22 联想(北京)有限公司 A kind of connection method, electronic equipment and network access equipment
CN112312507A (en) * 2020-10-12 2021-02-02 广东电网有限责任公司广州供电局 Power grid communication network switching method and device and power grid communication system
CN113992578A (en) * 2021-09-09 2022-01-28 新华三大数据技术有限公司 Method, device and equipment for switching servers by cloud desktop terminal and storage medium
CN113992578B (en) * 2021-09-09 2023-11-03 新华三大数据技术有限公司 Method, device, equipment and storage medium for switching servers of cloud desktop terminal

Also Published As

Publication number Publication date
CN106851758B (en) 2021-03-23

Similar Documents

Publication Publication Date Title
CN106851758A (en) Communication network changing method and terminal device
CN105338026A (en) Data resource acquisition method, device and system
CN105868679B (en) The dynamic updating method and fingerprint identification device of finger print information
US9262543B2 (en) Orthogonal experimentation in a computing environment
CN102968719B (en) Paying server, terminal and payment channel cut-in method
CN104092787B (en) Based on Network Access Method and the system of DNS
CN107943594A (en) Data capture method and device
CN104156232B (en) The non-linear method and apparatus redirected of the page is used under linear page structure
CN109857760A (en) Quick response search method and device, computer installation and storage medium
CN103500204B (en) A kind of web page browsing backing method, web page server and client
CN103888358A (en) Routing method, device, system and gateway equipment
CN110535901A (en) Service degradation method, apparatus, computer equipment and storage medium
CN105095313A (en) Data access method and equipment
CN104714805B (en) A kind of method and device of the setting menu of control application program
CN107396423A (en) Method for network access and device, storage medium and electronic installation
CN111694756A (en) Application program testing method and device
CN106101989A (en) A kind of method selecting safe unit and mobile terminal
CN1953455A (en) A method, module and server to control access to network resource
CN104812021A (en) Method and device for accessing AC (access controller) by AP (access point)
CN112714480A (en) Cell residence method, device, terminal and storage medium
CN105978852A (en) Network equipment access history information determination method, equipment and switch
CN105630419A (en) Partition view sending method of resource pools and management node
CN107181624A (en) A kind of method for connecting network, electronic equipment and computer-readable storage medium
US8385359B2 (en) Information communication system, connection setting apparatus and non-transitory computer-readable storage medium storing connection setting program
CN108763517A (en) A kind of method and relevant device for deleting metadata

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

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

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

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

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

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210323

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