CN107241758A - Network control method, network control unit and intelligent terminal - Google Patents

Network control method, network control unit and intelligent terminal Download PDF

Info

Publication number
CN107241758A
CN107241758A CN201710660008.4A CN201710660008A CN107241758A CN 107241758 A CN107241758 A CN 107241758A CN 201710660008 A CN201710660008 A CN 201710660008A CN 107241758 A CN107241758 A CN 107241758A
Authority
CN
China
Prior art keywords
intelligent terminal
network
condition
default
mentioned
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710660008.4A
Other languages
Chinese (zh)
Inventor
胡亚东
刘铭
宋永耀
候祥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201710660008.4A priority Critical patent/CN107241758A/en
Publication of CN107241758A publication Critical patent/CN107241758A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic

Abstract

The invention provides a kind of network control method, network control unit, intelligent terminal and computer-readable recording medium, the network control method includes:Under the networking state of intelligent terminal, detect whether the intelligent terminal meets default network automatic switchover condition, wherein, the networking state is to have connected WiFi network or the state of cellular data network;When the intelligent terminal meets the network automatic switchover condition, detect whether the intelligent terminal is currently currently running online game;If detecting the intelligent terminal is currently running online game, the intelligent terminal is forbidden to carry out network switching automatically.The technical scheme that the present invention is provided, which can effectively reduce the event for causing online game to be interrupted because network automatically switches, to be occurred.

Description

Network control method, network control unit and intelligent terminal
Technical field
The invention belongs to net application technology field, more particularly to a kind of network control method, network control unit, intelligence Terminal and computer-readable recording medium.
Background technology
With the fast development of mechanics of communication, wireless network, particularly WLAN (WLAN, Wireless Local Area Net) various aspects are obtained for extensive use in life.Because WLAN need not be connected up, and transmission speed Comparatively fast, it is thus possible to make up the deficiency of limited LAN well.And current almost all of intelligent terminal is all supported by nothing Line fidelity (WiFi, Wireless Fidelity) accesses the focus (i.e. Hotspot) of WLAN to realize function of surfing the Net.
Because WiFi network need not consume the cellular data traffic of user, therefore, at present when user uses cellular data , can be automatically by network used in intelligent terminal from honeybee if detecting the presence of attachable WiFi network when network is surfed the Net Nest data network is switched to the WiFi network.However, can have idle periods during due to network switching, and intelligent terminal exists Suspension state will be in the idle periods, also, if the WiFi network that intelligent terminal is switched to needs certification, then also needs to use Family could normally surf the Net after completing certification, in the case, and network switching most likely results in that intelligent terminal is some to be currently running Network interrupt, so as to bring puzzlement to user.
The content of the invention
In view of this, can the invention provides a kind of network control method, network control unit, intelligent terminal and computer Storage medium is read, is occurred to reduce the event for causing online game to be interrupted because network automatically switches.
The first aspect of the embodiment of the present invention provides a kind of network control method, including:
Under the networking state of intelligent terminal, detect whether the intelligent terminal meets default network automatic switchover bar Part, wherein, the networking state is to have connected WiFi network or the state of cellular data network;
When the intelligent terminal meets the network automatic switchover condition, detect that the intelligent terminal is current whether Operational network is played;
If detecting the intelligent terminal is currently running online game, the intelligent terminal is forbidden to carry out net automatically Network switches.
Based on first aspect present invention, in the first possible implementation, the detection intelligent terminal is current Whether online game is currently running, including:
The intelligent terminal is detected currently while meeting default first condition, second condition and third condition;
If whether detect the intelligent terminal current while meeting the first condition, the second condition and described the Three conditions, then judge that the intelligent terminal is currently running online game;
If it is current not while meeting the first condition, the second condition and the described 3rd to detect the intelligent terminal Condition, then judge that the intelligent terminal is not currently running online game;
Wherein, the first condition is:Intelligent terminal is in full frame state;
The second condition is:The upstream data amount of intelligent terminal is not less than default upstream data amount threshold value and intelligence is whole The downlink data amount at end is not less than default downlink data amount threshold value;
The third condition is:The frame per second of intelligent terminal is not less than default frame per second threshold value.
The first possible implementation based on first aspect present invention or first aspect present invention, can at second In the implementation of energy, whether the detection intelligent terminal meets default network automatic switchover condition, including:
When the currently used network of the intelligent terminal is cellular data network, detection currently whether there is the intelligence The attachable WiFi network of terminal;
The attachable WiFi network of the intelligent terminal is there is currently if detecting, judges that the intelligent terminal is met pre- If network automatic switchover condition.
The first possible implementation based on first aspect present invention or first aspect present invention, can at the third In the implementation of energy, whether the detection intelligent terminal meets default network automatic switchover condition, including:
When the currently used network of the intelligent terminal is WiFi network, detect that the intelligent terminal is currently used Whether WiFi network is less than default WiFi network quality criteria;
When detecting the currently used WiFi network of the intelligent terminal less than the WiFi network quality criteria, detection It currently whether there is cellular data network or attachable other WiFi networks;
Cellular data network or attachable other WiFi networks are there is currently if detecting, the intelligent terminal is judged Meet default network automatic switchover condition.
The third possible implementation based on first aspect present invention, in the 4th kind of possible implementation, institute State and detect whether the currently used WiFi network of the intelligent terminal is less than default WiFi network quality criteria, including:
The intelligent terminal is triggered based on currently used WiFi network and three-way handshake agreement to the default network equipment TCP connections are initiated, wherein, the TCP is transmission control protocol;
If the TCP connections have been set up, judge whether this connection duration connects duration threshold value less than default, its In, it is a length of during the connection:The passed through duration of the TCP connections foundation is connected to from the TCP is initiated;
If this connection duration judges the currently used WiFi nets of the intelligent terminal less than the connection duration threshold value Network is not less than default WiFi network quality criteria;
If the TCP connections can not be set up or this connection duration is not less than the connection duration threshold value, institute is judged The currently used WiFi network of intelligent terminal is stated less than default WiFi network quality criteria.
The second aspect of the embodiment of the present invention provides a kind of network control unit, including:First detection unit, for Under the networking state of intelligent terminal, detect whether the intelligent terminal meets default network automatic switchover condition, wherein, it is described Networking state is to have connected WiFi network or the state of cellular data network;
Second detection unit, during for being when the result that first detection unit is detected, detects the intelligent terminal Currently whether it is currently running online game;
Unit is forbidden in switching, for being currently running network when second detection unit detects the intelligent terminal During game, the intelligent terminal is forbidden to carry out network switching automatically.
Based on second aspect of the present invention, in the first possible implementation, second detection unit specifically for:
Whether meet pre- simultaneously when the result that first detection unit is detected when being, to detect that the intelligent terminal is current If first condition, second condition and third condition;When detect the intelligent terminal currently and meanwhile meet the first condition, When the second condition and the third condition, judge that the intelligent terminal is currently running online game;When detecting State intelligent terminal current not while when meeting the first condition, the second condition and the third condition, judging the intelligence Energy terminal is not currently running online game;
Wherein, the first condition is:Intelligent terminal is in full frame state;
The second condition is:The upstream data amount of intelligent terminal is not less than default upstream data amount threshold value and intelligence is whole The downlink data amount at end is not less than default downlink data amount threshold value;
The third condition is:The frame per second of intelligent terminal is not less than default frame per second threshold value.
Based on the first possible implementation of second aspect of the present invention, or second aspect of the present invention, at second In possible implementation, first detection unit specifically for:
Under the networking state of intelligent terminal, when the currently used network of the intelligent terminal is cellular data network, Detection currently whether there is the attachable WiFi network of the intelligent terminal;
The attachable WiFi network of the intelligent terminal is there is currently if detecting, judges that the intelligent terminal is met pre- If network automatic switchover condition.
Third aspect present invention provides a kind of intelligent terminal, including memory, processor and stores on a memory and can The computer program run on a processor, realized during above-mentioned computing device above computer program above-mentioned first aspect or The network control method referred in any possible implementation of above-mentioned first aspect.
Fourth aspect present invention is provided to be stored with a kind of computer-readable recording medium, the computer-readable recording medium Computer program, above computer program realizes any of above-mentioned first aspect or above-mentioned first aspect when being executed by processor The network control method referred in possible implementation.
Therefore, in the present invention program, under the networking state of intelligent terminal, detect whether above-mentioned intelligent terminal is full The default network automatic switchover condition of foot, when above-mentioned intelligent terminal meets above-mentioned network automatic switchover condition, then further inspection Survey whether above-mentioned intelligent terminal is currently currently running online game, network trip is currently running when detecting above-mentioned intelligent terminal Play, then forbid above-mentioned intelligent terminal to carry out network switching automatically, can avoid causing intelligent terminal because network automatically switches with this Online game interruption is currently running, so as to reach the event hair for reducing and causing online game to be interrupted because network automatically switches Raw purpose.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art In required for the accompanying drawing that uses be briefly described, it should be apparent that, drawings in the following description are only some of the present invention Embodiment, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these Accompanying drawing obtains other accompanying drawings.
Network control method one embodiment schematic flow sheet that Fig. 1-a provide for the present invention;
A kind of specific implementation schematic flow sheet of step 101 in Fig. 1-a that Fig. 1-b provide for the present invention;
Network control unit one embodiment structural representation that Fig. 2 provides for the present invention;
Intelligent terminal one embodiment structural representation that Fig. 3 provides for the present invention.
Embodiment
In describing below, in order to illustrate rather than in order to limit, it is proposed that such as tool of particular system structure, technology etc Body details, thoroughly to understand the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific The present invention can also be realized in the other embodiments of details.In other situations, omit to well-known system, device, electricity Road and the detailed description of method, in case unnecessary details hinders description of the invention.
It should be understood that the size of the sequence number of each step is not meant to the priority of execution sequence in following embodiments of the method, respectively The execution sequence of process should determine that the implementation process without tackling each embodiment constitutes any limit with its function and internal logic It is fixed.
In order to illustrate technical solutions according to the invention, illustrated below by specific embodiment.
Embodiment one
The embodiment of the present invention provides a kind of network control method, refers to the network control in Fig. 1-a, the embodiment of the present invention Method includes:
Step 101, under the networking state of intelligent terminal, detect whether above-mentioned intelligent terminal meets default network automatic Switching condition;
In the embodiment of the present invention, above-mentioned networking state is to have connected WiFi network or the state of cellular data network.It is above-mentioned The type of cellular data network includes but is not limited to 2G networks, 3G network and 4G networks.
In a step 101, when detecting above-mentioned intelligent terminal and meeting above-mentioned network automatic switchover condition, into step 102.When detecting above-mentioned intelligent terminal and being unsatisfactory for above-mentioned network automatic switchover condition, immediately or preset duration can be waited Return to step 101 afterwards.
In a kind of application scenarios, whether the above-mentioned above-mentioned intelligent terminal of detection, which meets above-mentioned network automatic switchover condition, to wrap Include:When the currently used network of above-mentioned intelligent terminal is cellular data network, detection currently whether there is above-mentioned intelligent terminal Attachable WiFi network (such as the WiFi network that WiFi network or above-mentioned intelligent terminal without password were once connected);If detection To there is currently the attachable WiFi network of above-mentioned intelligent terminal, then judge that above-mentioned intelligent terminal meets above-mentioned network and automatically switched Condition.The attachable WiFi network of above-mentioned intelligent terminal is there is currently no if detecting, can determine that above-mentioned intelligent terminal is discontented with The above-mentioned network automatic switchover condition of foot, or, it can detect whether above-mentioned intelligent terminal is full by default other testing mechanisms The above-mentioned network automatic switchover condition of foot.
In another application scenarios, whether the above-mentioned above-mentioned intelligent terminal of detection meets above-mentioned network automatic switchover condition It can include:When the currently used network of above-mentioned intelligent terminal is WiFi network, detect that above-mentioned intelligent terminal is currently used Whether WiFi network is less than default WiFi network quality criteria;When detecting the currently used WiFi network of above-mentioned intelligent terminal During less than above-mentioned WiFi network quality criteria, detection currently whether there is cellular data network or attachable other WiFi nets Network;Cellular data network or attachable other WiFi networks are there is currently if detecting, judges that above-mentioned intelligent terminal is met Above-mentioned network automatic switchover condition.Cellular data network or attachable other WiFi networks are there is currently no if detecting, It can determine that above-mentioned intelligent terminal is unsatisfactory for above-mentioned network automatic switchover condition, or, default other testing mechanisms can be passed through Detect whether above-mentioned intelligent terminal meets above-mentioned network automatic switchover condition.
Because transmission control protocol (TCP, Transmission Control Protocol) belongs to reliable protocol, therefore, Determine only perform a TCP connection during connectedness of network by TCP, relative to the detection mode based on non-reliable protocol, Data traffic can effectively be saved.For example, when using ping modes (ping modes be based on Internet Control Message Protocol (ICMP, Internet Control Message Protocol), and ICMP is based on UDP (UDP, User Datagram Protocol), UDP is a kind of non-reliable protocol) carry out needing ping just to can determine that network many times during the detection of connectivity of network Connectedness.Therefore it is optional, it is currently used using the TCP above-mentioned intelligent terminal of three-way handshake protocol detection in the embodiment of the present invention WiFi network whether be less than default WiFi network quality criteria.Specifically, as shown in Fig. 1-b, the above-mentioned above-mentioned intelligence of detection Whether the currently used WiFi network of terminal is less than default WiFi network quality criteria, including:
Step 1011, above-mentioned intelligent terminal is triggered based on currently used WiFi network and three-way handshake agreement to default The network equipment initiates TCP connections;
In the embodiment of the present invention, the address information of the above-mentioned network equipment (such as server) can be pre-set, for example mutually Networking protocol (IP, Internet Protocol) address, domain name and port numbers etc.., can be according to default in step 1011 The address information of the above-mentioned network equipment, trigger above-mentioned intelligent terminal based on currently used WiFi network and three-way handshake agreement to The network equipment initiates TCP connections.
If step 1012, above-mentioned TCP connections have been set up, judge whether this connection duration is less than default connection duration Threshold value;
In step 1012, it is a length of during above-mentioned connection:It is connected to above-mentioned TCP connections from the above-mentioned TCP of initiation and sets up and is passed through Duration.For example, triggering above-mentioned TCP connections when being located at time T1, above-mentioned TCP connections are successfully established in time T2, then on State connection duration as T2-T1.
If step 1013, this connection duration are less than above-mentioned connection duration threshold value, judge that above-mentioned intelligent terminal currently makes WiFi network is not less than default WiFi network quality criteria;
In step 1013, when judging that this connection duration is less than the connection duration threshold value, it is believed that current data net Network it is connective good, now can determine that the currently used WiFi network of above-mentioned intelligent terminal is not less than default WiFi network quality Benchmark.
If step 1014, above-mentioned TCP connections can not be set up or this connection duration is not less than above-mentioned connection duration threshold value, Then judge that the currently used WiFi network of above-mentioned intelligent terminal is less than default WiFi network quality criteria;
In step 1014, when the TCP connections that step 1011 is triggered can not be successfully established, it is believed that now above-mentioned intelligence The currently used WiFi network of terminal can not be used, and now can determine that the currently used WiFi network of above-mentioned intelligent terminal less than pre- If WiFi network quality criteria.When step 1011 trigger TCP successful connections set up, when this connection duration be not less than it is above-mentioned Duration threshold value is connected, then is believed that the poor connectivity of the now currently used WiFi network of above-mentioned intelligent terminal, now can also sentence The currently used WiFi network of fixed above-mentioned intelligent terminal is less than default WiFi network quality criteria.
Whether step 102, the above-mentioned intelligent terminal of detection are currently currently running online game;
In the embodiment of the present invention, detect whether above-mentioned intelligent terminal is currently currently running online game, it is above-mentioned when detecting When intelligent terminal is currently running online game, into step 103, otherwise it can be returned immediately or after wait preset duration Step 101, or, other default mechanism can also be performed, do not limited herein.
Optionally, whether the above-mentioned intelligent terminal of above-mentioned detection is currently currently running online game, including:
Detect that above-mentioned intelligent terminal is current whether while meeting default first condition, second condition and third condition;
If detecting above-mentioned intelligent terminal currently while meeting above-mentioned first condition, above-mentioned second condition and above-mentioned Article 3 Part, then judge that above-mentioned intelligent terminal is currently running online game;
If it is current not while meeting above-mentioned first condition, above-mentioned second condition and the above-mentioned 3rd to detect above-mentioned intelligent terminal Condition, then judge that above-mentioned intelligent terminal is not currently running online game;
Wherein, above-mentioned first condition is:Intelligent terminal is in full frame state;
Above-mentioned second condition is:The upstream data amount of intelligent terminal is not less than default upstream data amount threshold value and intelligence is whole The downlink data amount at end is not less than default downlink data amount threshold value;
Above-mentioned third condition is:The frame per second of intelligent terminal is not less than default frame per second threshold value.
Wherein, detect whether above-mentioned intelligent terminal meets the window category that above-mentioned first condition can be based on above-mentioned intelligent terminal Property and status bar determine, for example, when the window size that above-mentioned intelligent terminal is judged by the window attribute of above-mentioned intelligent terminal It is that when hiding, can determine that above-mentioned intelligent terminal is in full frame state for the status bar of full frame size and above-mentioned intelligent terminal.
Wherein, detect whether above-mentioned intelligent terminal meets above-mentioned second condition and can detect in the following way:Obtain and work as The upstream data amount and downlink data amount of preceding above-mentioned intelligent terminal, when the upstream data amount of above-mentioned intelligent terminal is not less than default Upstream data amount threshold value and the downlink data amount of above-mentioned intelligent terminal are not less than default downlink data amount threshold value, then judge above-mentioned Intelligent terminal meets above-mentioned second condition, otherwise judges that above-mentioned intelligent terminal is unsatisfactory for above-mentioned second condition.
Wherein, detect whether above-mentioned intelligent terminal meets above-mentioned third condition and can detect in the following way:Obtain and work as The frame per second of preceding above-mentioned intelligent terminal, when the frame per second of above-mentioned intelligent terminal is not less than default frame per second threshold value, then judges above-mentioned intelligence Energy terminal meets above-mentioned third condition, otherwise judges that above-mentioned intelligent terminal is unsatisfactory for above-mentioned third condition.Above-mentioned frame per second is (i.e. Frame rate) it is used to measure measuring for display frame number, the units of measurement of frame per second is display frame number (Frames per per second Second, referred to as:) or " hertz " (Hz) FPS.
Certainly, currently whether network can also be currently running by above-mentioned intelligent terminal otherwise in the embodiment of the present invention Game, for example, it is also possible to detect that above-mentioned intelligent terminal is current whether while meeting above-mentioned second condition and above-mentioned third condition;If Above-mentioned intelligent terminal is detected currently while meeting above-mentioned second condition and above-mentioned third condition, then judges that above-mentioned intelligent terminal is worked as Before be currently running online game, do not limit herein.
Step 103, above-mentioned intelligent terminal is forbidden to carry out network switching automatically;
In the embodiment of the present invention, when step 102, which detects above-mentioned intelligent terminal, is currently running online game, forbid Above-mentioned intelligent terminal carries out network switching automatically.
It should be noted that be now not prohibited by user carries out network switching manually, that is, now user again may be by Manual mode carries out network switching.
It should be noted that the network control method in the embodiment of the present invention can be applied in network control unit, it is above-mentioned Network control unit can be independent equipment, or can also be integrated in intelligent terminal (such as mobile phone, tablet personal computer) or In miscellaneous equipment, it is not construed as limiting herein.
Therefore, in embodiments of the present invention, under the networking state of intelligent terminal, whether detect above-mentioned intelligent terminal Default network automatic switchover condition is met, when above-mentioned intelligent terminal meets above-mentioned network automatic switchover condition, then further Detect whether above-mentioned intelligent terminal is currently currently running online game, network is currently running when detecting above-mentioned intelligent terminal Game, then forbid above-mentioned intelligent terminal to carry out network switching automatically, can avoid causing intelligent end because network automatically switches with this End is currently running online game interruption, so as to reach the event for reducing and causing online game to be interrupted because network automatically switches The purpose of generation.
Embodiment two
The embodiment of the present invention also provides a kind of network control unit, as shown in Fig. 2 the network control in the embodiment of the present invention Device 200 includes:
First detection unit 201, under the networking state of intelligent terminal, detecting whether above-mentioned intelligent terminal meets pre- If network automatic switchover condition, wherein, above-mentioned networking state is has connected WiFi network or the state of cellular data network;
Second detection unit 202, during for being when the result that the first detection unit 201 is detected, detects above-mentioned intelligence eventually Whether end is currently currently running online game;
Unit 203 is forbidden in switching, for being currently running net when the second detection unit 202 detects above-mentioned intelligent terminal When network is played, above-mentioned intelligent terminal is forbidden to carry out network switching automatically.
Optionally, the second detection unit 202 specifically for:
Whether meet pre- simultaneously when the result that the first detection unit 201 is detected when being, to detect that above-mentioned intelligent terminal is current If first condition, second condition and third condition;When detect above-mentioned intelligent terminal currently and meanwhile meet above-mentioned first condition, When above-mentioned second condition and above-mentioned third condition, judge that above-mentioned intelligent terminal is currently running online game;On detecting State intelligent terminal current not while when meeting above-mentioned first condition, above-mentioned second condition and above-mentioned third condition, judging above-mentioned intelligence Energy terminal is not currently running online game.
Wherein, above-mentioned first condition is:Intelligent terminal is in full frame state;
Above-mentioned second condition is:The upstream data amount of intelligent terminal is not less than default upstream data amount threshold value and intelligence is whole The downlink data amount at end is not less than default downlink data amount threshold value;
Above-mentioned third condition is:The frame per second of intelligent terminal is not less than default frame per second threshold value.
Optionally, the first detection unit 201 specifically for:Under the networking state of intelligent terminal, when above-mentioned intelligent terminal When currently used network is cellular data network, detection currently whether there is the attachable WiFi network of above-mentioned intelligent terminal; The attachable WiFi network of above-mentioned intelligent terminal is there is currently if detecting, judges that above-mentioned intelligent terminal meets default network Automatic switchover condition.
Optionally, the first detection unit 201 specifically for:Under the networking state of intelligent terminal, when above-mentioned intelligent terminal When currently used network is WiFi network, detect the currently used WiFi network of above-mentioned intelligent terminal whether less than default WiFi network quality criteria;It is less than above-mentioned WiFi network quality base when detecting the currently used WiFi network of above-mentioned intelligent terminal On time, detect and currently whether there is cellular data network or attachable other WiFi networks;Honeycomb is there is currently if detecting Data network or attachable other WiFi networks, then judge that above-mentioned intelligent terminal meets default network automatic switchover condition.
Optionally, the first detection unit 201 specifically for detecting that above-mentioned intelligent terminal is currently used in the following way Whether WiFi network is less than default WiFi network quality criteria:Above-mentioned intelligent terminal is triggered based on currently used WiFi network With three-way handshake agreement TCP connections are initiated to the default network equipment;If above-mentioned TCP connections have been set up, judge that this is connected Whether duration connects duration threshold value less than default, wherein, it is a length of during above-mentioned connection:Above-mentioned TCP is connected to from above-mentioned TCP is initiated Passed through duration is set up in connection;If this connection duration is less than above-mentioned connection duration threshold value, judge that above-mentioned intelligent terminal is worked as The preceding WiFi network used is not less than default WiFi network quality criteria;If above-mentioned TCP connections can not be set up or this company Connect duration and be not less than above-mentioned connection duration threshold value, then judge the currently used WiFi network of above-mentioned intelligent terminal less than default WiFi network quality criteria.
It should be noted that the network control unit in the embodiment of the present invention can be independent equipment, or can also It is integrated in intelligent terminal (such as mobile phone, tablet personal computer) or miscellaneous equipment, is not construed as limiting herein.
Therefore, in embodiments of the present invention, under the networking state of intelligent terminal, whether detect above-mentioned intelligent terminal Default network automatic switchover condition is met, when above-mentioned intelligent terminal meets above-mentioned network automatic switchover condition, then further Detect whether above-mentioned intelligent terminal is currently currently running online game, network is currently running when detecting above-mentioned intelligent terminal Game, then forbid above-mentioned intelligent terminal to carry out network switching automatically, can avoid causing intelligent end because network automatically switches with this End is currently running online game interruption, so as to reach the event for reducing and causing online game to be interrupted because network automatically switches The purpose of generation.
Embodiment three
The embodiment of the present invention provides a kind of intelligent terminal, referring to Fig. 3, the intelligent terminal in the embodiment of the present invention includes: Memory 301, one or more processors 302 (one is only shown in Fig. 3) and is stored on memory 301 and can be in processor The computer program of upper operation.Wherein:Memory 301 is used to store software program and module, and processor 302 is deposited by operation The software program and unit in memory 301 are stored up, so as to perform various function application and data processing.Specifically, handle Device 302 realizes following steps when being stored in the above computer program of memory 301 by operation:
Under the networking state of intelligent terminal, detect whether above-mentioned intelligent terminal meets default network automatic switchover bar Part, wherein, above-mentioned networking state is to have connected WiFi network or the state of cellular data network;
When above-mentioned intelligent terminal meets above-mentioned network automatic switchover condition, detect that above-mentioned intelligent terminal is current whether Operational network is played;
If detecting above-mentioned intelligent terminal is currently running online game, above-mentioned intelligent terminal is forbidden to carry out net automatically Network switches.
Assuming that above-mentioned is the first possible embodiment, then provided based on the first possible embodiment Second of possible embodiment in, whether the above-mentioned above-mentioned intelligent terminal of detection is currently currently running online game, including:
Detect that above-mentioned intelligent terminal is current whether while meeting default first condition, second condition and third condition;
If detecting above-mentioned intelligent terminal currently while meeting above-mentioned first condition, above-mentioned second condition and above-mentioned Article 3 Part, then judge that above-mentioned intelligent terminal is currently running online game;
If it is current not while meeting above-mentioned first condition, above-mentioned second condition and the above-mentioned 3rd to detect above-mentioned intelligent terminal Condition, then judge that above-mentioned intelligent terminal is not currently running online game;
Wherein, above-mentioned first condition is:Intelligent terminal is in full frame state;
Above-mentioned second condition is:The upstream data amount of intelligent terminal is not less than default upstream data amount threshold value and intelligence is whole The downlink data amount at end is not less than default downlink data amount threshold value;
Above-mentioned third condition is:The frame per second of intelligent terminal is not less than default frame per second threshold value.
There is provided based on the first above-mentioned possible implementation, or above-mentioned second of possible implementation The third possible embodiment in, whether the above-mentioned above-mentioned intelligent terminal of detection meets default network automatic switchover condition, Including:
When the currently used network of above-mentioned intelligent terminal is cellular data network, detection currently whether there is above-mentioned intelligence The attachable WiFi network of terminal;
The attachable WiFi network of above-mentioned intelligent terminal is there is currently if detecting, judges that above-mentioned intelligent terminal is met pre- If network automatic switchover condition.
There is provided based on the first above-mentioned possible implementation, or above-mentioned second of possible implementation The 4th kind of possible embodiment in, whether the above-mentioned above-mentioned intelligent terminal of detection meets default network automatic switchover condition, Including:
When the currently used network of above-mentioned intelligent terminal is WiFi network, detect that above-mentioned intelligent terminal is currently used Whether WiFi network is less than default WiFi network quality criteria;
When detecting the currently used WiFi network of above-mentioned intelligent terminal less than above-mentioned WiFi network quality criteria, detection It currently whether there is cellular data network or attachable other WiFi networks;
Cellular data network or attachable other WiFi networks are there is currently if detecting, above-mentioned intelligent terminal is judged Meet default network automatic switchover condition.
There is provided based on the first above-mentioned possible implementation, or above-mentioned second of possible implementation The 5th kind of possible embodiment in, whether the currently used WiFi network of the above-mentioned above-mentioned intelligent terminal of detection less than default WiFi network quality criteria, including:
Above-mentioned intelligent terminal is triggered based on currently used WiFi network and three-way handshake agreement to the default network equipment TCP connections are initiated, wherein, above-mentioned TCP is transmission control protocol;
If above-mentioned TCP connections have been set up, judge whether this connection duration connects duration threshold value less than default, its In, it is a length of during above-mentioned connection:The passed through duration of above-mentioned TCP connections foundation is connected to from above-mentioned TCP is initiated;
If this connection duration is less than above-mentioned connection duration threshold value, the currently used WiFi nets of above-mentioned intelligent terminal are judged Network is not less than default WiFi network quality criteria;
If above-mentioned TCP connections can not be set up or this connection duration is not less than in above-mentioned connection duration threshold value, judgement The currently used WiFi network of intelligent terminal is stated less than default WiFi network quality criteria.
Further, as shown in figure 3, above-mentioned intelligent terminal may also include:One or more input equipments 303 (only show in Fig. 3 Go out one) and one or more output equipments 304 (one is only shown in Fig. 3).Memory 301, processor 302, input equipment 303 and output equipment 304 connected by bus 305.
It should be appreciated that in embodiments of the present invention, alleged processor 302 can be CPU (Central Processing Unit, CPU), the processor can also be other general processors, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other FPGAs Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at It can also be any conventional processor etc. to manage device.
Input equipment 303 can include keyboard, Trackpad, fingerprint adopt sensor (finger print information that is used to gathering user and The directional information of fingerprint), microphone etc., output equipment 304 can include display, loudspeaker etc..
Memory 304 can include read-only storage and random access memory, and provide instruction sum to processor 301 According to.Part or all of memory 304 can also include nonvolatile RAM.For example, memory 304 may be used also With the information of storage device type.
Therefore, in embodiments of the present invention, under the networking state of intelligent terminal, whether detect above-mentioned intelligent terminal Default network automatic switchover condition is met, when above-mentioned intelligent terminal meets above-mentioned network automatic switchover condition, then further Detect whether above-mentioned intelligent terminal is currently currently running online game, network is currently running when detecting above-mentioned intelligent terminal Game, then forbid above-mentioned intelligent terminal to carry out network switching automatically, can avoid causing intelligent end because network automatically switches with this End is currently running online game interruption, so as to reach the event for reducing and causing online game to be interrupted because network automatically switches The purpose of generation.
It is apparent to those skilled in the art that, for convenience of description and succinctly, only with above-mentioned each work( Energy unit, the division progress of module are for example, in practical application, as needed can distribute above-mentioned functions by different Functional unit, module are completed, i.e., the internal structure of said apparatus is divided into different functional unit or module, more than completion The all or part of function of description.Each functional unit, module in embodiment can be integrated in a processing unit, also may be used To be that unit is individually physically present, can also two or more units it is integrated in a unit, it is above-mentioned integrated Unit can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.In addition, each function list Member, the specific name of module are also only to facilitate mutually differentiation, is not limited to the protection domain of the application.Said system The specific work process of middle unit, module, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, without detailed description or note in some embodiment The part of load, may refer to the associated description of other embodiments.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein Member and algorithm steps, can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually Performed with hardware or software mode, depending on the application-specific and design constraint of technical scheme.Professional and technical personnel Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed apparatus and method, others can be passed through Mode is realized.For example, system embodiment described above is only schematical, for example, the division of above-mentioned module or unit, It is only a kind of division of logic function, there can be other dividing mode when actually realizing, such as multiple units or component can be with With reference to or be desirably integrated into another system, or some features can be ignored, or not perform.It is another, it is shown or discussed Coupling each other or direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING of device or unit or Communication connection, can be electrical, machinery or other forms.
The above-mentioned unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
If above-mentioned integrated unit is realized using in the form of SFU software functional unit and as independent production marketing or used When, it can be stored in a computer read/write memory medium.Understood based on such, the present invention realizes above-described embodiment side All or part of flow in method, can also instruct the hardware of correlation to complete, above-mentioned computer by computer program Program can be stored in a computer-readable recording medium, and the computer program can be achieved above-mentioned each when being executed by processor The step of individual embodiment of the method.Wherein, above computer program includes computer program code, and above computer program code can Think source code form, object identification code form, executable file or some intermediate forms etc..Above computer computer-readable recording medium can be with Including:Any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic disc, light of above computer program code can be carried Disk, computer storage, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that above computer The content that computer-readable recording medium is included can carry out appropriate increase and decrease according to legislation in jurisdiction and the requirement of patent practice, for example In some jurisdictions, according to legislation and patent practice, computer-readable medium does not include being electric carrier signal and telecommunications letter Number.
Above above-described embodiment is merely illustrative of the technical solution of the present invention, rather than its limitations;Although with reference to foregoing reality Example is applied the present invention is described in detail, it will be understood by those within the art that:It still can be to foregoing each Technical scheme described in embodiment is modified, or carries out equivalent substitution to which part technical characteristic;And these are changed Or replace, the essence of appropriate technical solution is departed from the spirit and scope of various embodiments of the present invention technical scheme, all should Within protection scope of the present invention.

Claims (10)

1. a kind of network control method, it is characterised in that including:
Under the networking state of intelligent terminal, detect whether the intelligent terminal meets default network automatic switchover condition, its In, the networking state is to have connected WiFi network or the state of cellular data network;
When the intelligent terminal meets the network automatic switchover condition, detect whether the intelligent terminal is currently currently running Online game;
If detecting the intelligent terminal is currently running online game, forbids the intelligent terminal to carry out network automatically and cut Change.
2. network control method according to claim 1, it is characterised in that the detection intelligent terminal it is current whether Online game is currently running, including:
Detect that the intelligent terminal is current whether while meeting default first condition, second condition and third condition;
If detecting the intelligent terminal currently while meeting the first condition, the second condition and the third condition, Then judge that the intelligent terminal is currently running online game;
If it is current not while meeting the first condition, the second condition and the Article 3 to detect the intelligent terminal Part, then judge that the intelligent terminal is not currently running online game;
Wherein, the first condition is:Intelligent terminal is in full frame state;
The second condition is:The upstream data amount of intelligent terminal is not less than default upstream data amount threshold value and intelligent terminal Downlink data amount is not less than default downlink data amount threshold value;
The third condition is:The frame per second of intelligent terminal is not less than default frame per second threshold value.
3. network control method according to claim 1 or 2, it is characterised in that whether the detection intelligent terminal Default network automatic switchover condition is met, including:
When the currently used network of the intelligent terminal is cellular data network, detection currently whether there is the intelligent terminal Attachable WiFi network;
The attachable WiFi network of the intelligent terminal is there is currently if detecting, judges that the intelligent terminal meets default Network automatic switchover condition.
4. network control method according to claim 1 or 2, it is characterised in that whether the detection intelligent terminal Default network automatic switchover condition is met, including:
When the currently used network of the intelligent terminal is WiFi network, the currently used WiFi nets of the intelligent terminal are detected Whether network is less than default WiFi network quality criteria;
When detecting the currently used WiFi network of the intelligent terminal less than the WiFi network quality criteria, detection is current With the presence or absence of cellular data network or attachable other WiFi networks;
Cellular data network or attachable other WiFi networks are there is currently if detecting, judges that the intelligent terminal is met Default network automatic switchover condition.
5. network control method according to claim 4, it is characterised in that the detection intelligent terminal is currently used WiFi network whether be less than default WiFi network quality criteria, including:
The intelligent terminal is triggered to initiate to the default network equipment based on currently used WiFi network and three-way handshake agreement TCP connections, wherein, the TCP is transmission control protocol;
If the TCP connections have been set up, whether this connection duration is judged less than default connection duration threshold value, wherein, institute State a length of during connection:The passed through duration of the TCP connections foundation is connected to from the TCP is initiated;
If this connection duration judges the currently used WiFi network of the intelligent terminal not less than the connection duration threshold value Less than default WiFi network quality criteria;
If the TCP connections can not be set up or this connection duration is not less than the connection duration threshold value, the intelligence is judged The currently used WiFi network of energy terminal is less than default WiFi network quality criteria.
6. a kind of network control unit, it is characterised in that including:
First detection unit, under the networking state of intelligent terminal, detecting whether the intelligent terminal meets default net Network automatic switchover condition, wherein, the networking state is to have connected WiFi network or the state of cellular data network;
Second detection unit, during for being when the result that first detection unit is detected, detects that the intelligent terminal is current Whether online game is currently running;
Unit is forbidden in switching, for being currently running online game when second detection unit detects the intelligent terminal When, forbid the intelligent terminal to carry out network switching automatically.
7. network control unit according to claim 6, it is characterised in that second detection unit specifically for:
Whether meet default simultaneously when the result that first detection unit is detected when being, to detect that the intelligent terminal is current First condition, second condition and third condition;When detect the intelligent terminal currently and meanwhile meet the first condition, it is described When second condition and the third condition, judge that the intelligent terminal is currently running online game;When detecting the intelligence Energy terminal is current not while when meeting the first condition, the second condition and the third condition, judging that the intelligence is whole End is not currently running online game;
Wherein, the first condition is:Intelligent terminal is in full frame state;
The second condition is:The upstream data amount of intelligent terminal is not less than default upstream data amount threshold value and intelligent terminal Downlink data amount is not less than default downlink data amount threshold value;
The third condition is:The frame per second of intelligent terminal is not less than default frame per second threshold value.
8. the network control unit according to claim 6 or 7, it is characterised in that first detection unit specifically for:
Under the networking state of intelligent terminal, when the currently used network of the intelligent terminal is cellular data network, detection It currently whether there is the attachable WiFi network of the intelligent terminal;
The attachable WiFi network of the intelligent terminal is there is currently if detecting, judges that the intelligent terminal meets default Network automatic switchover condition.
9. a kind of intelligent terminal, including memory, processor and it is stored in the memory and can be on the processor The computer program of operation, it is characterised in that realize such as claim 1 to 5 described in the computing device during computer program The step of any one methods described.
10. a kind of computer-readable recording medium, the computer-readable recording medium storage has computer program, its feature exists In the step of realizing such as any one of claim 1 to 5 methods described when the computer program is executed by processor.
CN201710660008.4A 2017-08-04 2017-08-04 Network control method, network control unit and intelligent terminal Pending CN107241758A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710660008.4A CN107241758A (en) 2017-08-04 2017-08-04 Network control method, network control unit and intelligent terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710660008.4A CN107241758A (en) 2017-08-04 2017-08-04 Network control method, network control unit and intelligent terminal

Publications (1)

Publication Number Publication Date
CN107241758A true CN107241758A (en) 2017-10-10

Family

ID=59988518

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710660008.4A Pending CN107241758A (en) 2017-08-04 2017-08-04 Network control method, network control unit and intelligent terminal

Country Status (1)

Country Link
CN (1) CN107241758A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107708140A (en) * 2017-11-23 2018-02-16 广东欧珀移动通信有限公司 Wireless network diversion processing method and Related product
CN111465016A (en) * 2020-03-31 2020-07-28 联想(北京)有限公司 Control method and device
CN111556541A (en) * 2020-04-30 2020-08-18 海南掌上能量传媒有限公司 Network switching method for mobile power supply leasing terminal
US11628360B2 (en) 2018-12-27 2023-04-18 Samsung Electronics Co., Ltd. Method and apparatus for controlling game applications

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101668322A (en) * 2009-09-17 2010-03-10 深圳华为通信技术有限公司 Network switching method of terminal and terminal equipment
CN106060884A (en) * 2016-05-19 2016-10-26 维沃移动通信有限公司 Network switching method and mobile terminal
CN106231640A (en) * 2016-07-29 2016-12-14 北京小米移动软件有限公司 Wireless access point switching method and device
CN106792953A (en) * 2016-12-14 2017-05-31 北京小米移动软件有限公司 The method and apparatus of network switching

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101668322A (en) * 2009-09-17 2010-03-10 深圳华为通信技术有限公司 Network switching method of terminal and terminal equipment
CN106060884A (en) * 2016-05-19 2016-10-26 维沃移动通信有限公司 Network switching method and mobile terminal
CN106231640A (en) * 2016-07-29 2016-12-14 北京小米移动软件有限公司 Wireless access point switching method and device
CN106792953A (en) * 2016-12-14 2017-05-31 北京小米移动软件有限公司 The method and apparatus of network switching

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107708140A (en) * 2017-11-23 2018-02-16 广东欧珀移动通信有限公司 Wireless network diversion processing method and Related product
US11628360B2 (en) 2018-12-27 2023-04-18 Samsung Electronics Co., Ltd. Method and apparatus for controlling game applications
CN111465016A (en) * 2020-03-31 2020-07-28 联想(北京)有限公司 Control method and device
CN111465016B (en) * 2020-03-31 2022-03-25 联想(北京)有限公司 Control method and device
CN111556541A (en) * 2020-04-30 2020-08-18 海南掌上能量传媒有限公司 Network switching method for mobile power supply leasing terminal

Similar Documents

Publication Publication Date Title
CN107241758A (en) Network control method, network control unit and intelligent terminal
US20160357616A1 (en) Application management method and application management apparatus
CN107333287B (en) Network detecting method, network detection device and intelligent terminal
CN106231626A (en) A kind of method and device sending measurement report
CN107241771A (en) Method for switching network, mobile terminal and computer-readable recording medium
CN107404740B (en) Method for switching network, device and the terminal device of safety
CN107484190A (en) Method for connecting network, mobile terminal and computer-readable recording medium
CN108881012A (en) link aggregation method and related product
CN107277881A (en) Method for switching network, network switching device and intelligent terminal
CN106657566B (en) The method of adjustment and mobile terminal of physical button
CN110290030A (en) Network state detection method, apparatus, electronic equipment and computer-readable medium
CN107294811A (en) Network detecting method, network detection means and intelligent terminal
CN106453839A (en) Antenna adjusting method and mobile terminal
CN105376401A (en) Information processing method and device and electronic device
CN107332741A (en) A kind of network detecting method, network detection means and intelligent terminal
CN106714287A (en) Method and device of terminal to save energy based on network access control
CN107197493B (en) A kind of method for switching network, network switching device and intelligent terminal
CN107231647A (en) Network detecting method, network detection means and intelligent terminal
CN107277896A (en) Wifi hotspot management method, device and terminal device
CN107332740A (en) A kind of network detecting method, network detection means and intelligent terminal
CN107332739B (en) Network detecting method, network detection device and intelligent terminal
CN109343944A (en) Data processing method, device, terminal and the storage medium of eSIM card
CN107908273A (en) application management method, device, storage medium and electronic equipment
CN107820298A (en) Wireless network management method, wireless network management device and intelligent terminal
CN107360059B (en) Network detecting method, network detection device and 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20171010

RJ01 Rejection of invention patent application after publication