CN109511143A - Network automatic switching method, device, computer equipment and storage medium - Google Patents
Network automatic switching method, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN109511143A CN109511143A CN201811527625.8A CN201811527625A CN109511143A CN 109511143 A CN109511143 A CN 109511143A CN 201811527625 A CN201811527625 A CN 201811527625A CN 109511143 A CN109511143 A CN 109511143A
- Authority
- CN
- China
- Prior art keywords
- network
- application program
- user
- wireless network
- mobile communications
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/0005—Control or signalling for completing the hand-off
- H04W36/0011—Control or signalling for completing the hand-off for data sessions of end-to-end connection
- H04W36/0016—Hand-off preparation specially adapted for end-to-end data sessions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/0005—Control or signalling for completing the hand-off
- H04W36/0083—Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
Abstract
The embodiment of the invention discloses a kind of network automatic switching method, device, computer equipment and storage mediums, wherein the method includes the application programs by being currently running to determine the network type currently connected;When the network type connected be mobile communications network when, if the application program detects wireless network, application program display interface generate switch prompting frame, for selection by the user whether handover network;If receiving the switching command that user selects handover network, which is switched to the wireless network, and close the mobile communications network.The present invention rapidly and accurately can carry out network switching by application program, improve the using experience degree of user, it can be achieved that the effect not turned off using network persistently.
Description
Technical field
The present invention relates to internet area more particularly to a kind of network automatic switching method, device, computer equipment and deposit
Storage media.
Background technique
End application APP is needed to open in the setting of terminal and be moved in not wireless WIFI network in the industry at present
Dynamic communication network, such as 4G/3G network flow, could continue networking operation, the process of network switching is more troublesome at this time, together
When, if application APP is run in the case where being connected to wireless WIFI network, if wireless WIFI network disconnects suddenly, generally
It is all converted directly into mobile communications network, if continuing to run APP in the unwitting situation of user, may result in movement
The network flow of communication network is exceeded.Moreover, when having external public wireless network, if the WLAN of terminal
(Wireless LAN, WLAN) switch is arranged in the state of opening, and terminal can connect public wireless net automatically
Network, but some public wireless networks need to carry out to use after user account logs in, if logged in without user account,
Even if wireless WIFI network in connection, can not normally surf the Internet using APP, while also will affect mobile communications network in beating
The use of open state significantly reduces the using experience degree of user.
Summary of the invention
The embodiment of the present invention provides a kind of network automatic switching method, device, computer equipment and storage medium, can
Facilitate user rapidly and accurately to carry out network switching, improves the using experience degree of user.
In a first aspect, the embodiment of the invention provides a kind of network automatic switching methods, this method comprises:
The network type currently connected is determined by the application program being currently running;
When the network type connected is mobile communications network, if the application program detects wireless network, answering
Generate switch prompting frame with the display interface of program, for selection by the user whether handover network;
If receiving the switching command that user selects handover network, which is switched to the wireless network
Network, and close the mobile communications network.
Second aspect, the embodiment of the invention also provides a kind of network automatic switching control equipment, which includes:
Type determining units determine the network type currently connected for the application program by being currently running;
Prompt unit, for when the network type connected be mobile communications network when, if the application program detects
Wireless network, application program display interface generate switch prompting frame, for selection by the user whether handover network;
Processing unit switches the mobile communications network if selecting the switching command of handover network for receiving user
For the wireless network, and close the mobile communications network.
The third aspect, the embodiment of the invention also provides a kind of computer equipments comprising memory and processor, it is described
Computer program is stored on memory, the processor realizes the above method when executing the computer program.
Fourth aspect, the embodiment of the invention also provides a kind of computer readable storage medium, the storage medium storage
There is computer program, the computer program can realize the above method when being executed by a processor.
The embodiment of the invention provides a kind of network automatic switching method, device, computer equipment and storage mediums.Its
In, which comprises the network type currently connected is determined by the application program being currently running;When the network class connected
When type is mobile communications network, if the application program detects wireless network, switching is generated in the display interface of application program
Prompting frame, for selection by the user whether handover network;If receiving the switching command that user selects handover network, which is led to
Communication network is switched to the wireless network, and closes the mobile communications network.The embodiment of the present invention can rapidly and accurately pass through
Application program carries out network switching, improves the using experience degree of user, it can be achieved that the effect not turned off using network persistently.
Detailed description of the invention
Technical solution in order to illustrate the embodiments of the present invention more clearly, below will be to needed in embodiment description
Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, general for this field
For logical technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of network automatic switching method provided in an embodiment of the present invention;
Fig. 1 a is a kind of application scenarios schematic diagram of network automatic switching method provided in an embodiment of the present invention;
Fig. 2 is a kind of sub-process schematic diagram of network automatic switching method provided in an embodiment of the present invention;
Fig. 3 is a kind of another sub-process schematic diagram of network automatic switching method provided in an embodiment of the present invention;
Fig. 4 is a kind of schematic block diagram of network automatic switching control equipment provided in an embodiment of the present invention;
Fig. 5 is a kind of schematic frame of the prompt unit unit of network automatic switching control equipment provided in an embodiment of the present invention
Figure;
Fig. 6 is a kind of the another schematic of the prompt unit unit of network automatic switching control equipment provided in an embodiment of the present invention
Block diagram;
Fig. 7 is a kind of computer equipment structure composition schematic diagram provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " and "comprising" instruction
Described feature, entirety, step, operation, the presence of element and/or component, but one or more of the other feature, whole is not precluded
Body, step, operation, the presence or addition of element, component and/or its set.
It is also understood that mesh of the term used in this description of the invention merely for the sake of description specific embodiment
And be not intended to limit the present invention.As description of the invention and it is used in the attached claims, unless on
Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
Fig. 1 and Fig. 1 a is please referred to, Fig. 1 is a kind of exemplary flow of network automatic switching method provided by the embodiments of the present application
Figure, Fig. 1 a is the schematic diagram of a scenario of network automatic switching method in the embodiment of the present application.The network automatic switching method is applied to
In terminal 10.The terminal 10 can select the most suitably to be connected to the network according to the application program having by itself.Even
When valid wireless network 20, then the wireless network 20 is connected, and if application program when detecting that wireless network is non-serviceable
It waits, connection mobile network 30 is switched to, thus to improve the using experience degree of user.
Referring to Fig. 1, Fig. 1 is a kind of schematic flow diagram of network automatic switching method provided in an embodiment of the present invention.It should
Method may operate in smart phone (such as Android phone, IOS mobile phone), tablet computer, laptop and intelligence and set
In the terminals such as standby.As shown in Figure 1, the step of this method includes step S101~S103.
Step S101 determines the network type currently connected by the application program being currently running.
In the present embodiment, application program refer to installation at the terminal can application for users to use.Under normal circumstances,
When user operates application program in the terminal, which is to be in the state of operation, and the application program being currently running can
To determine the network type of the current connected network of terminal, in order to which user carries out normal networking operation.Network type can
To include wireless network, such as WIFI network;It can also include mobile communications network, such as 4G/3G/2G network mobile network.
For example, wechat APP is when user is operating wechat APP and chats or browse wechat and push away text
The application program of operation, wechat APP can then determine that the network type currently connected is wireless network or mobile communication at this time
Network.
Step S102, when the network type connected is mobile communications network, if the application program detects wirelessly
Network, application program display interface generate switch prompting frame, for selection by the user whether handover network.
In the present embodiment, when the network type connected is mobile communications network, then show terminal operating at this time
Application program be that upper net operation is being carried out by mobile data flow, for the ease of carrying out network switching in time, reduce movement
Whether the use of data traffic, the application program real-time detection for needing to be currently running have wireless network to be attached for terminal.
As further, as shown in Fig. 2, the step 102 can specifically include step S201~S203.
Step S201, when the network type connected is mobile communications network, if the application program detects wirelessly
Network, obtains the attribute information of the wireless network, and the attribute information includes at least network name.
In the present embodiment, when the network type connected is mobile communications network, if the application program detects
Wireless network, the attribute information of the available wireless network, to determine if being to belong to common home network or work
Network still falls within common network.Under normal circumstances, when belonging to common network, terminal can be directly connected to the network.
Attribute information can be the mark that can show that the uniqueness of the wireless network, can be the net of the wireless network under normal circumstances
Network name is also possible to the information such as the IP address of the wireless network.
Step S202 judges that the attribute information whether there is the presupposed information data in presupposed information database
Library includes multiple preset attribute information.
In the present embodiment, presupposed information database refers to the database for placing multiple preset attribute information, user
It can be arranged accordingly according to self-demand.It, can should for example, after user's wireless network use at home
Wireless network is set as common home network or job network, at the same be the attribute information of the wireless network is put into it is default
In information database, certainly, user can also be set to common network, at this time would not believe the attribute of the wireless network
Breath is put into presupposed information database.
Step S203, if the attribute information is not present in presupposed information database, in the display interface of application program
Generate switch prompting frame, for selection by the user whether handover network.
In the present embodiment, if the attribute information is not present in presupposed information database, show the wireless network
For common network, switch prompting frame, the switch prompting can be generated on the display interface for the application program being currently running at this time
It include the selection information that handover network is chosen whether for user on frame.
As further, the method also includes following steps:
Step S203a controls the aobvious of the application program if the attribute information is not present in presupposed information database
Show that interface jumps to web log-on page, so that user inputs network log-on message.
In the present embodiment, if the attribute information is not present in presupposed information database, show the wireless network
For common network, and some common networks may be carried out logging in and can be used, and in order to not influence user's use, be needed
The display interface of application program is directly jumped into web log-on page after user's selection, so that user logs in.
Wherein, if the network log-on message of user's input matches with default log-on message associated by the wireless network,
Execute the step S203.
In addition, executing the step S103 if the attribute information is present in presupposed information database.Wherein, if institute
It states attribute information to be present in presupposed information database, then shows that the wireless network is the common network of user, at this time then directly
Mobile communication was played in execution is switched to wireless network, mobile communications network is simultaneously closed off, to reduce mobile communications network
It uses, saves mobile data flow for user, reduce the operation of user.
As another embodiment, as shown in figure 3, the step S102 can specifically include step S301~S303.
Step S301, when the network type connected is mobile communications network, if the application program detects wirelessly
Network, the quantity of the wireless network confirmly detected.
Wherein, when the network type connected is mobile communications network, the number for the wireless network that can be confirmly detected
Amount, in order to recommend user according to the correlation properties of wireless network, to facilitate user to select optimal wireless network, Neng Gouti
The using experience degree of high user.
Step S302 exists when the quantity at least two of detected wireless network according to the size of signal strength
Display is ranked up to all wireless networks in the prompting frame that the display interface of application program generates, whether is cut for selection by the user
Switching network and the specific wireless network of selection.
It wherein, can be according to the big of the signal strength of wireless network when detected wireless network at least two
It is small to be ranked up to select for user.Can which wireless network for selection by the user in the prompting frame that display interface at this time generates
Network can not select handover network for user, greatly facilitate the use of user.
Step S303 is cut when the quantity of the wireless network detected is one in the display interface generation of application program
Change prompting frame, for selection by the user whether handover network.
Wherein, if the wireless network detected only one when, then being raw directly on the display interface of application program
At switch prompting frame, to be selected for user.
The mobile communications network is switched to institute if receiving the switching command that user selects handover network by step S103
Wireless network is stated, and closes the mobile communications network.
In the present embodiment, if receiving the switching command that user selects handover network, show that user is switching
Selection is carried out in prompting frame and carries out network switching, mobile network communication can be switched to wireless network at this time, and closing should
Mobile communications network, to prevent mobile communications network from continued in the unwitting situation of user using to increase mobile number
According to the loss of flow.
As further, the method can with the following steps are included:
Step S104, when the network type connected is wireless network, if the application program detects current nothing
Gauze network disconnects, and detects whether new wireless network.
In the present embodiment, when the network type connected is wireless network, if the application program detection being currently running
It is disconnected to current wireless network, then new wireless network can be first detected whether, to be selected accordingly again.
Step S105 generates determination in the display interface of the application program and mentions if detecting not new wireless network
Show frame, whether confirms for selection by the user using mobile communications network.
In the present embodiment, it if detecting not new wireless network, is generated in the display interface of the application program true
Determine prompting frame, whether confirmed for selection by the user using mobile communications network, to avoid excessive use mobile communications network
Caused by mobile data flow it is exceeded.Especially when application program is video player, it is possible to prevente effectively from above-mentioned
Problem is configured according to user demand and actual conditions.
Step S106 is instructed if receiving user's confirmation using the confirmation of mobile communications network, is opened and is connected mobile logical
Communication network.
In the present embodiment, if user needs to open mobile communications network, confirmed according to the user received use at this time
The confirmation of mobile communications network instructs, and mobile communications network can be opened and connect, so that the application program for being can be in movement
The case where carrying out networking operation and use under communication network, avoiding user's suspension, improves the using experience degree of user.
In addition, can go to execute step S102, whether switch for selection by the user if detecting new wireless network
New wireless network, or be switched to mobile communications network.
As further, if detecting not new wireless network, the method also includes:
Step S107 determines used network flow magnitude in the preset time period before current wireless network disconnects;
Step S108 keeps current network connection state if the network flow magnitude is more than preset threshold;
If the network flow magnitude is not above preset threshold, the step S105 is executed.
To sum up, the embodiment of the present invention rapidly and accurately can carry out network switching by application program, improve user's
Using experience degree is, it can be achieved that the effect not turned off using network persistently.
Those having ordinary skill in the art is understood that realize all or part of the process in above-described embodiment method, is that can lead to
Computer program is crossed to instruct relevant hardware and complete, the program can be stored in a computer-readable storage medium
In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) etc..
Referring to Fig. 4, a kind of corresponding above-mentioned network automatic switching method, the embodiment of the present invention also propose that a kind of network is automatic
Switching device, the device 100 include: type determining units 101, prompt unit 102 and processing unit 103.
The type determining units 101 determine the network type currently connected for the application program by being currently running.
In the present embodiment, application program refer to installation at the terminal can application for users to use.Under normal circumstances,
When user operates application program in the terminal, which is to be in the state of operation, and the application program being currently running can
To determine the network type of the current connected network of terminal, in order to which user carries out normal networking operation.Network type can
To include wireless network, such as WIFI network;It can also include mobile communications network, such as 4G/3G/2G network mobile network.
The prompt unit 102, for when the network type connected be mobile communications network when, if the application program
Detect wireless network, application program display interface generate switch prompting frame, for selection by the user whether handover network.
In the present embodiment, when the network type connected is mobile communications network, then show terminal operating at this time
Application program be that upper net operation is being carried out by mobile data flow, for the ease of carrying out network switching in time, reduce movement
Whether the use of data traffic, the application program real-time detection for needing to be currently running have wireless network to be attached for terminal.
As further, as shown in figure 5, the prompt unit 102 can specifically include: information acquisition unit 201 is believed
Cease judging unit 202 and the first generation unit 203.
The information acquisition unit 201, for when the network type connected be mobile communications network when, if the application
Programmable detection obtains the attribute information of the wireless network to wireless network, and the attribute information includes at least network name.
In the present embodiment, when the network type connected is mobile communications network, if the application program detects
Wireless network, the attribute information of the available wireless network, to determine if being to belong to common home network or work
Network still falls within common network.Under normal circumstances, when belonging to common network, terminal can be directly connected to the network.
Attribute information can be the mark that can show that the uniqueness of the wireless network, can be the net of the wireless network under normal circumstances
Network name is also possible to the information such as the IP address of the wireless network.
The information judging unit 202, for judging that the attribute information whether there is the institute in presupposed information database
Stating presupposed information database includes multiple preset attribute information.
In the present embodiment, presupposed information database refers to the database for placing multiple preset attribute information, user
It can be arranged accordingly according to self-demand.It, can should for example, after user's wireless network use at home
Wireless network is set as common home network or job network, at the same be the attribute information of the wireless network is put into it is default
In information database, certainly, user can also be set to common network, at this time would not believe the attribute of the wireless network
Breath is put into presupposed information database.
First generation unit 203 is being applied if being not present in presupposed information database for the attribute information
The display interface of program generates switch prompting frame, for selection by the user whether handover network.
In the present embodiment, if the attribute information is not present in presupposed information database, show the wireless network
For common network, switch prompting frame, the switch prompting can be generated on the display interface for the application program being currently running at this time
It include the selection information that handover network is chosen whether for user on frame.
As further, if the attribute information is not present in presupposed information database, the prompt unit 102 is also
Including with lower unit:
Page control unit 203a, the display interface for controlling the application program jump to web log-on page, with
Network log-on message is inputted for user.
In the present embodiment, if the attribute information is not present in presupposed information database, show the wireless network
For common network, and some common networks may be carried out logging in and can be used, and in order to not influence user's use, be needed
The display interface of application program is directly jumped into web log-on page after user's selection, so that user logs in.
Wherein, if the network log-on message of user's input matches with default log-on message associated by the wireless network,
Execute the generation unit 203.
In addition, executing the processing unit 103 if the attribute information is present in presupposed information database.Wherein, if
The attribute information is present in presupposed information database, then shows that the wireless network is the common network of user, then straight at this time
It connects to execute to play mobile communication and is switched to wireless network, mobile communications network is simultaneously closed off, to reduce mobile communications network
Use, for user save mobile data flow, reduce the operation of user.
As another embodiment, as shown in fig. 6, the prompt unit 102 specifically can also include: quantity determination unit
301, sequencing display unit 302 and the second generation unit 303.
The quantity determination unit 301, for when the network type connected be mobile communications network when, if the application
Programmable detection is to wireless network, the quantity of the wireless network confirmly detected.
Wherein, when the network type connected is mobile communications network, the number for the wireless network that can be confirmly detected
Amount, in order to recommend user according to the correlation properties of wireless network, to facilitate user to select optimal wireless network, Neng Gouti
The using experience degree of high user.
The sequencing display unit 302, for when the quantity at least two of detected wireless network, according to letter
The size of number intensity is ranked up display to all wireless networks in the prompting frame that the display interface of application program generates, for
User chooses whether handover network and the specific wireless network of selection.
It wherein, can be according to the big of the signal strength of wireless network when detected wireless network at least two
It is small to be ranked up to select for user.Can which wireless network for selection by the user in the prompting frame that display interface at this time generates
Network can not select handover network for user, greatly facilitate the use of user.
Second generation unit 303, for when the quantity of the wireless network detected be one when, in application program
Display interface generate switch prompting frame, for selection by the user whether handover network.
Wherein, if the wireless network detected only one when, then being raw directly on the display interface of application program
At switch prompting frame, to be selected for user.
The processing unit 103, if the switching command of handover network is selected for receiving user, by the mobile radio communication
Network is switched to the wireless network, and closes the mobile communications network.
In the present embodiment, if receiving the switching command that user selects handover network, show that user is switching
Selection is carried out in prompting frame and carries out network switching, mobile network communication can be switched to wireless network at this time, and closing should
Mobile communications network, to prevent mobile communications network from continued in the unwitting situation of user using to increase mobile number
According to the loss of flow.
As further, described device 100 be may further include the following units:
Network detection unit 104, for when the network type connected be wireless network when, if the application program detect
It is disconnected to current wireless network, detects whether new wireless network.
In the present embodiment, when the network type connected is wireless network, if the application program detection being currently running
It is disconnected to current wireless network, then new wireless network can be first detected whether, to be selected accordingly again.
Prompting frame generation unit 105, if for detecting not new wireless network, in display circle of the application program
Whether face, which generates, determines prompting frame, confirm for selection by the user using mobile communications network.
In the present embodiment, it if detecting not new wireless network, is generated in the display interface of the application program true
Determine prompting frame, whether confirmed for selection by the user using mobile communications network, to avoid excessive use mobile communications network
Caused by mobile data flow it is exceeded.Especially when application program is video player, it is possible to prevente effectively from above-mentioned
Problem is configured according to user demand and actual conditions.
Network connection unit 106 is opened simultaneously if being instructed for receiving user's confirmation using the confirmation of mobile communications network
Connect mobile communications network.
In the present embodiment, if user needs to open mobile communications network, confirmed according to the user received use at this time
The confirmation of mobile communications network instructs, and mobile communications network can be opened and connect, so that the application program for being can be in movement
The case where carrying out networking operation and use under communication network, avoiding user's suspension, improves the using experience degree of user.
In addition, can go to execute the prompt unit 102, for selection by the user if detecting new wireless network
The new wireless network whether switched, or it is switched to mobile communications network.
As further, if detecting not new wireless network, described device 100 can also include:
Flow determination unit 107, for determining used net in the preset time period before current wireless network disconnects
Network flow value.Wherein, pass through the statistics of used network flow magnitude within a preset period of time, it can be determined that user is in current nothing
The case where line uses network flow in the case where being connected to the network.
Holding unit 108 keeps current network connection state if being more than preset threshold for the network flow magnitude.
Wherein, if network flow magnitude is more than preset threshold, in order to avoid mobile network's usage amount causes mobile expense super using excessive
Mark needs to keep at this time current network connection state constant.
In addition, the prompting frame generation unit 105 is executed, to mention if the network flow magnitude is not above preset threshold
Awake user chooses whether to carry out network switching.
It should be noted that it is apparent to those skilled in the art that, above-mentioned network automatic switching control equipment
100 and each unit specific implementation process, can with reference to the corresponding description in preceding method embodiment, for convenience of description and
Succinctly, details are not described herein.
As seen from the above, in hardware realization, the above type determining units 101, prompt unit 102 and processing unit
103 etc. can be embedded in the form of hardware or the device reported a case to the security authorities independently of life insurance in, network can also be stored in a software form
In the memory of automatic switching control equipment, the corresponding operation of above each unit is executed so that processor calls.The processor can be with
For central processing unit (CPU), microprocessor, single-chip microcontroller etc..
Above-mentioned network automatic switching control equipment can be implemented as a kind of form of computer program, and computer program can be such as
It is run in computer equipment shown in Fig. 7.
Fig. 7 is a kind of structure composition schematic diagram of computer equipment of the present invention.The equipment can be terminal, wherein terminal
Smart phone, tablet computer, laptop, desktop computer, personal digital assistant and wearable device etc. be can be with logical
The electronic equipment of telecommunication function.
Referring to Fig. 7, which includes processor 402, memory, the memory connected by system bus 401
Reservoir 404 and network interface 405, wherein memory may include non-volatile memory medium 403 and built-in storage 404.
The non-volatile memory medium 403 can storage program area 4031 and computer program 4032, the computer program
4032 are performed, and processor 402 may make to execute a kind of network automatic switching method.
The processor 402 supports the operation of entire computer equipment 400 for providing calculating and control ability.
The built-in storage 404 provides environment for the operation of the computer program 4032 in non-volatile memory medium 403, should
When computer program 4032 is executed by processor 402, processor 402 may make to execute a kind of network automatic switching method.
The network interface 405 is used to carry out network communication with other equipment.It will be understood by those skilled in the art that in Fig. 7
The structure shown, only the block diagram of part-structure relevant to application scheme, does not constitute and is applied to application scheme
The restriction of computer equipment 400 thereon, specific computer equipment 400 may include more more or fewer than as shown in the figure
Component perhaps combines certain components or with different component layouts.
Wherein, the processor 402 is for running computer program 4032 stored in memory, to realize as above-mentioned
The step of network automatic switching method in embodiment.
It should be appreciated that in the embodiment of the present application, processor 402 can be central processing unit (Central
Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital
Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit,
ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic
Device, discrete gate or transistor logic, discrete hardware components etc..Wherein, general processor can be microprocessor or
Person's processor is also possible to any conventional processor etc..
Those of ordinary skill in the art will appreciate that be realize above-described embodiment method in all or part of the process,
It is that relevant hardware can be instructed to complete by computer program.The computer program can be stored in a storage medium,
The storage medium is computer readable storage medium.The computer program is held by least one processor in the computer system
Row, to realize the process step of the embodiment of the above method.
Therefore, the present invention also provides a kind of storage mediums.The storage medium can be computer readable storage medium.This is deposited
Storage media is stored with computer program, which execute processor as in above-described embodiment
The step of network automatic switching method.
The storage medium can be USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), magnetic disk
Or the various computer readable storage mediums that can store program code such as CD.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware
With the interchangeability of software, each exemplary composition and step are generally described according to function in the above description.This
A little functions are implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Specially
Industry technical staff can use different methods to achieve the described function each specific application, but this realization is not
It is considered as beyond the scope of this invention.
In several embodiments provided by the present invention, it should be understood that disclosed device and method can pass through it
Its mode is realized.For example, the apparatus embodiments described above are merely exemplary.For example, the division of each unit, only
Only a kind of logical function partition, there may be another division manner in actual implementation.Such as multiple units or components can be tied
Another system is closed or is desirably integrated into, or some features can be ignored or not executed.
The steps in the embodiment of the present invention can be sequentially adjusted, merged and deleted according to actual needs.This hair
Unit in bright embodiment device can be combined, divided and deleted according to actual needs.In addition, in each implementation of the present invention
Each functional unit in example can integrate in one processing unit, is also possible to each unit and physically exists alone, can also be with
It is that two or more units are integrated in one unit.
If the integrated unit is realized in the form of SFU software functional unit and when sold or used as an independent product,
It can store in one storage medium.Based on this understanding, technical solution of the present invention is substantially in other words to existing skill
The all or part of part or the technical solution that art contributes can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, terminal or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in various equivalent modifications or replace
It changes, these modifications or substitutions should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with right
It is required that protection scope subject to.
Claims (10)
1. a kind of network automatic switching method, which is characterized in that the described method includes:
The network type currently connected is determined by the application program being currently running;
When the network type connected is mobile communications network, if the application program detects wireless network, journey is being applied
The display interface of sequence generates switch prompting frame, for selection by the user whether handover network;
If receiving the switching command that user selects handover network, which is switched to the wireless network, and
Close the mobile communications network.
2. the method as described in claim 1, which is characterized in that described to work as connected network type for mobile communications network
When, if the application program detects wireless network, switch prompting frame is generated in the display interface of application program, for user's choosing
Select whether handover network the step of, comprising:
When the network type connected is mobile communications network, if the application program detects wireless network, described in acquisition
The attribute information of wireless network, the attribute information include at least network name;
Judge that the attribute information whether there is in presupposed information database, the presupposed information database includes multiple default
Attribute information;
If the attribute information is not present in presupposed information database, switch prompting is generated in the display interface of application program
Frame, for selection by the user whether handover network.
3. method according to claim 2, which is characterized in that the method also includes:
If the attribute information is not present in presupposed information database, the display interface for controlling the application program jumps to net
Network login page, so that user inputs network log-on message;
Wherein, it if the network log-on message of user's input matches with default log-on message associated by the wireless network, executes
The display interface in application program generates switch prompting frame, for selection by the user whether handover network the step of.
4. the method as described in claim 1, which is characterized in that described to work as connected network type for mobile communications network
When, if the application program detects wireless network, switch prompting frame is generated in the display interface of application program, for user's choosing
Select whether handover network the step of, comprising:
When the network type connected is mobile communications network, if the application program detects wireless network, detection is determined
The quantity of the wireless network arrived;
When the quantity at least two of detected wireless network, according to the size of signal strength application program display
Interface generate prompting frame in display is ranked up to all wireless networks, for selection by the user whether handover network and selection
Specific wireless network.
5. method as claimed in claim 4, which is characterized in that the method also includes:
When the quantity of the wireless network detected is one, switch prompting frame is generated in the display interface of application program, for
User chooses whether handover network.
6. the method as described in claim 1, which is characterized in that the method also includes:
When the network type connected is wireless network, if the application program detects that current wireless network disconnects, inspection
Whether survey has new wireless network;
If detecting not new wireless network, is generated in the display interface of the application program and determine prompting frame, for user
It chooses whether confirmation and uses mobile communications network;
If receiving user's confirmation to instruct using the confirmation of mobile communications network, opens and connect mobile communications network.
7. method as claimed in claim 6, which is characterized in that the method also includes:
If detecting not new wireless network, used net in the preset time period before current wireless network disconnects is determined
Network flow value;
If the network flow magnitude is more than preset threshold, current network connection state is kept;
If the network flow magnitude is not above preset threshold, executes the display interface in the application program and generate determination
Prompting frame, the step of whether confirmation using mobile communications network for selection by the user.
8. a kind of network automatic switching control equipment, which is characterized in that described device includes:
Type determining units determine the network type currently connected for the application program by being currently running;
Prompt unit, for when the network type connected be mobile communications network when, if the application program detects wirelessly
Network, application program display interface generate switch prompting frame, for selection by the user whether handover network;
The mobile communications network is switched to institute if selecting the switching command of handover network for receiving user by processing unit
Wireless network is stated, and closes the mobile communications network.
9. a kind of computer equipment, which is characterized in that the computer equipment includes memory and processor, on the memory
It is stored with computer program, the processor is realized as described in any one of claim 1-7 when executing the computer program
Method.
10. a kind of computer readable storage medium, which is characterized in that the storage medium is stored with computer program, the meter
Calculation machine program makes the processor execute such as method of any of claims 1-7 when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811527625.8A CN109511143A (en) | 2018-12-13 | 2018-12-13 | Network automatic switching method, device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811527625.8A CN109511143A (en) | 2018-12-13 | 2018-12-13 | Network automatic switching method, device, computer equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109511143A true CN109511143A (en) | 2019-03-22 |
Family
ID=65752376
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811527625.8A Pending CN109511143A (en) | 2018-12-13 | 2018-12-13 | Network automatic switching method, device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109511143A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115002850A (en) * | 2021-12-14 | 2022-09-02 | 荣耀终端有限公司 | Network switching method, electronic device and readable medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103796263A (en) * | 2012-10-30 | 2014-05-14 | 中国电信股份有限公司 | Fusion terminal and method for switching fusion terminal between fixed network and mobile network |
CN108495348A (en) * | 2018-01-31 | 2018-09-04 | 上海连尚网络科技有限公司 | It is a kind of for the method for switching network of user equipment, equipment and medium |
CN108718456A (en) * | 2018-05-30 | 2018-10-30 | 郑州易通众联电子科技有限公司 | Method for switching network, network switching device and mobile terminal |
-
2018
- 2018-12-13 CN CN201811527625.8A patent/CN109511143A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103796263A (en) * | 2012-10-30 | 2014-05-14 | 中国电信股份有限公司 | Fusion terminal and method for switching fusion terminal between fixed network and mobile network |
CN108495348A (en) * | 2018-01-31 | 2018-09-04 | 上海连尚网络科技有限公司 | It is a kind of for the method for switching network of user equipment, equipment and medium |
CN108718456A (en) * | 2018-05-30 | 2018-10-30 | 郑州易通众联电子科技有限公司 | Method for switching network, network switching device and mobile terminal |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115002850A (en) * | 2021-12-14 | 2022-09-02 | 荣耀终端有限公司 | Network switching method, electronic device and readable medium |
CN115002850B (en) * | 2021-12-14 | 2023-02-21 | 荣耀终端有限公司 | Network switching method and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107484217B (en) | Method, mobile terminal and the storage medium of switching registration IP multimedia subsystem | |
CN104936240B (en) | A kind of method for switching network and terminal | |
CN104991850B (en) | The heartbeat packet control method and device of a kind of application program | |
CN104796957B (en) | Multi-card multi-standby mobile terminal and its Subscriber Identity Module switching method and apparatus | |
Nirjon et al. | Multinets: Policy oriented real-time switching of wireless interfaces on mobile devices | |
CN110621047A (en) | Operator network switching method and device and computer readable storage medium | |
CN105282314B (en) | Mobile terminal mode switching method and its mobile terminal | |
WO2013123715A1 (en) | Method and device for controlling data traffic | |
CN103179647A (en) | Method and mobile terminal for intelligently controlling wifi (wireless fidelity) module | |
CN108566312A (en) | Off-line checking method, device and computer readable storage medium | |
CN101980556A (en) | Method and device for communicating double-network double-standby terminal | |
CN104811930A (en) | Network flow control method and network flow control system for mobile terminal | |
CN104883657A (en) | Virtual card management method and apparatus | |
CN108337696A (en) | Processing method, device, storage medium and the electronic equipment of SRVCC exceptions | |
EP2991439B1 (en) | Split-type mobile terminal and interaction processing method for communications event | |
CN106411627A (en) | Network connection detection method and apparatus | |
CN109548037A (en) | A kind of control method, distributed unit, centralized unit and storage medium | |
WO2016112602A1 (en) | Shortcut operation method, shortcut operation device and terminal | |
CN109511143A (en) | Network automatic switching method, device, computer equipment and storage medium | |
CN107241758A (en) | Network control method, network control unit and intelligent terminal | |
JP2015525029A (en) | COMMUNICATION PROCESSING METHOD, DEVICE, PROGRAM, AND RECORDING MEDIUM | |
CN104303559B (en) | Base station energy-saving method, apparatus and base station | |
CN102014390B (en) | Method and device for carrying out communication on dual-net dual-standby terminal | |
CN105376400A (en) | Communication control method and device of mobile terminal, and mobile terminal | |
CN104967737A (en) | Method and system for setting work scene of intelligent 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 | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20190322 |