CN107566215B - Wireless network cutout detection method, device, storage medium and mobile terminal - Google Patents
Wireless network cutout detection method, device, storage medium and mobile terminal Download PDFInfo
- Publication number
- CN107566215B CN107566215B CN201710813076.XA CN201710813076A CN107566215B CN 107566215 B CN107566215 B CN 107566215B CN 201710813076 A CN201710813076 A CN 201710813076A CN 107566215 B CN107566215 B CN 107566215B
- Authority
- CN
- China
- Prior art keywords
- wireless network
- network connection
- active wireless
- connection
- mobile terminal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the invention discloses a kind of wireless network cutout detection method, device, storage medium and mobile terminals, this method comprises: detecting whether the corresponding active wireless network connection of the target radio network can be used after detecting that mobile terminal and target radio network establish connection;If the active wireless network connection is available, detect whether wireless network data stream meets preset condition;When the wireless network data stream meets the preset condition, determine that the active wireless network is connected as doubtful disconnection state, again detect whether the active wireless network connection can be used, if unavailable, it is determined that the active wireless network is connected as disconnection state.By using technical solution provided by the embodiment of the present invention, may be implemented determine mobile terminal wireless network connection whether be disconnection state effect.
Description
Technical field
The present embodiments relate to computer field more particularly to a kind of wireless network cutout detection methods, device, storage
Medium and mobile terminal.
Background technique
Currently, the function of mobile terminal is increasingly rich, so that mobile terminal is more and more intelligent, it is connected to using mobile terminal
The mode that wireless network is surfed the Internet is increasingly by the favor of user.
User after being successfully connected to wireless network, is easy to appear flow interruption during using mobile terminal
The case where, it shows that wireless network connection is normal on mobile terminal at this time, but exception has occurred in function of surfing the Net, usually claims this state
For the disconnection state of wireless network connection.
Summary of the invention
The embodiment of the present invention provides a kind of wireless network cutout detection method, device, storage medium and mobile terminal, can be with
It realizes that the wireless network of mobile terminal stops to detect.
In a first aspect, the embodiment of the invention provides a kind of wireless network cutout detection methods, comprising:
After detecting mobile terminal and target radio network establishes connection, detect that the target radio network is corresponding to work as
Whether preceding wireless network connection can be used;
If the active wireless network connection is available, detect whether wireless network data stream meets preset condition;
When the wireless network data stream meets the preset condition, it is doubtful to determine that the active wireless network is connected as
Disconnection state, detects whether the active wireless network connection can be used again, if unavailable, it is determined that the active wireless network
It is connected as disconnection state.
Second aspect, the embodiment of the invention provides a kind of wireless network cutout detection devices, comprising:
Wireless network connection judgment module, for examining after detecting that mobile terminal and target radio network establish connection
Survey whether the corresponding active wireless network connection of the target radio network can be used;
Wireless network data stream detection module detects wireless network if available for active wireless network connection
Whether data flow meets preset condition;
Disconnection state determining module, described in determining when the wireless network data stream meets the preset condition
Active wireless network is connected as doubtful disconnection state, detects whether the active wireless network connection can be used again, if unavailable,
Then determine that the active wireless network is connected as disconnection state.
The third aspect, the embodiment of the invention provides a kind of computer readable storage mediums, are stored thereon with computer journey
Sequence, the program realize wireless network cutout detection method as described in the embodiments of the present invention when being executed by processor.
Fourth aspect processor and is stored in storage the embodiment of the invention provides a kind of mobile terminal, including memory
It can realize on device and when the computer program of processor operation, the processor execute the computer program such as the present invention in fact
Apply the cutout detection method of wireless network described in example.
The technical solution provided in the embodiment of the present invention is detecting mobile terminal and target radio network establishes connection
Afterwards, good for use if detecting the target radio network corresponding active wireless network connection, detect wireless network data stream
Whether meet preset condition, when meeting preset condition, then detects whether the active wireless network connection can be used again, if by
Before available becomes unavailable, then can determine that active wireless network is connected as disconnection state.By using above-mentioned technical side
Case, may be implemented determine mobile terminal wireless network connection whether be disconnection state effect.
Detailed description of the invention
Fig. 1 is a kind of flow diagram of wireless network cutout detection method provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of another wireless network cutout detection method provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of another wireless network cutout detection method provided in an embodiment of the present invention;
Fig. 4 is a kind of structural block diagram of wireless network cutout detection device provided in an embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of mobile terminal provided in an embodiment of the present invention.
Specific embodiment
To further illustrate the technical scheme of the present invention below with reference to the accompanying drawings and specific embodiments.It is understood that
It is that specific embodiment described herein is used only for explaining the present invention rather than limiting the invention.It further needs exist for illustrating
, only the parts related to the present invention are shown for ease of description, in attached drawing rather than entire infrastructure.
It should be mentioned that some exemplary embodiments are described as before exemplary embodiment is discussed in greater detail
The processing or method described as flow chart.Although each step is described as the processing of sequence by flow chart, many of these
Step can be implemented concurrently, concomitantly or simultaneously.In addition, the sequence of each step can be rearranged.When its operation
The processing can be terminated when completion, it is also possible to have the additional step being not included in attached drawing.The processing can be with
Corresponding to method, function, regulation, subroutine, subprogram etc..
Fig. 1 is a kind of flow diagram of wireless network cutout detection method provided in an embodiment of the present invention, and this method can
To be executed by wireless network cutout detection device, wherein the device be can be implemented by software and/or hardware, and can generally be integrated in movement
In terminal.As shown in Figure 1, this method comprises:
S101, after detecting that mobile terminal and target radio network establish connection, detect the target radio network pair
Whether the active wireless network connection answered can be used.
Illustratively, the mobile terminal concretely equipment such as mobile phone, tablet computer and laptop.
Wherein, target radio network can be by wireless router, computer, carry-on Wireless Fidelity (Wireless
Fidelity, WiFi) or the wireless network signal of sendings such as other wireless network hot spots corresponding to wireless network.Mobile terminal
It can be by opening radio network functions module scans and being connected to target radio network.Mobile terminal can be broadcasted by obtaining
The modes such as message, which are known, has currently established connection with target radio network.
After detecting that mobile terminal and target radio network establish connection, mobile terminal can be by sending verification information
Etc. modes detect whether the target radio network corresponding active wireless network connection can be used.Whether available determination can be
Identification receives the verifying message that server returns, or determines whether mobile terminal can carry out information exchange with server.Show
Example property, e.g., mobile terminal can send specific message to certain search engine server, can also send common message, such as
Certain keyword is inquired, if server can return to the successful code of network connection, or the common message that can be returned and send
Corresponding information then indicates that active wireless network connection is available, if returning to error code, or returns to server access mistake
Or the information such as access exception then indicate that active wireless network connection is unavailable.
The embodiment of the present invention is only illustrated with above-mentioned example, is not limited only determining current wireless through the above way
Whether network can be used.
If the connection of S102, the active wireless network is available, detect whether wireless network data stream meets preset condition.
Whether detection wireless network data stream meets preset condition, can be the data flow setting one first for wireless network
A judgment criteria can determine that it meets preset condition if the data flow of wireless network meets this standard.In the present invention
In embodiment, whether can meet preset condition by detecting the data flow of wireless network, whether to determine active wireless network
In doubtful disconnection state.Wherein, doubtful disconnection state can be the judgment criteria for meeting disconnection state in the detection process,
But it needs to further determine whether to be in disconnection state really.
In an achievable embodiment, optionally, whether the detection wireless network data stream meets preset condition,
It include: to continue detection data packet by wireless network driver to send whether situation meets preset requirement, if meeting, it is determined that wireless
Network data flow meets preset condition;If not meeting, it is determined that wireless network data stream is unsatisfactory for preset condition.The present invention is implemented
In example, carries out continuing to detect by wireless network driver that detected information can be made more directly to be obtained, reduce letter
The process of breath conversion and processing, improves the accuracy and detection efficiency of detection, avoid by other functions or interface into
Row is detected as running of mobile terminal and increases burden.
Wherein, it can continue to detect by wireless network driver, can also be examined in the case where setting duration interval
It surveys, such as primary every detection in 30 seconds, detection can continue certain time length every time, and such as 10 seconds.The benefit being arranged in this way is can to save
The energy is saved, and the duration interval set can determine according to the demand of user.
It is optionally, described that the transmission of detection data packet is continued by wireless network driver in an achievable embodiment
Whether situation meets preset requirement, comprising: continues detection data packet by wireless network driver and sends situation, if default first
Data packet sends failure in duration, or data packet does not occur in the second preset duration and sends event, or in third preset duration
Data packet does not occur inside and receives event, it is determined that data packet sends situation and meets preset requirement.Wherein, the first preset duration,
Two preset durations and third preset duration can be different, can also be identical, such as can be 10 seconds.
Data packet sends failure in the first preset duration, can be in the first preset duration, sends to server same
One data packet does not all succeed, and is also possible to send different data packets to server without sending successfully.It is default second
Data packet does not occur in duration and sends event, for the data-flow detection that mobile terminal carries out between server, works as shifting
When dynamic terminal continues certain period not sent data packet, testing result is also no data stream between mobile terminal and server,
It may stop at this time.Similarly, data packet does not occur in third preset duration and receives event, in the detection of mobile terminal
As a result no data stream from the point of view of and between mobile terminal and server, may stop at this time.In summary three kinds of feelings
Condition can be considered as doubtful disconnection state.The benefit being arranged in this way is can to determine mobile terminal during Preliminary detection
Several states of no data stream are doubtful disconnection state between server, and are determined whether during subsequent detection for cutout
The speed of Preliminary detection can be improved in state, the criterion in detection process is reduced, so that testing result is more accurate.
S103, when the wireless network data stream meets the preset condition, determine active wireless network connection
For doubtful disconnection state, detect whether the active wireless network connection can be used again, if unavailable, it is determined that the current nothing
Gauze network is connected as disconnection state.
When the wireless network data stream meets the preset condition, it is doubtful to determine that the active wireless network is connected as
Disconnection state.When being determined as doubtful disconnection state, detect whether the active wireless network connection can be used again.The detection side
Formula can be identical as the detection mode in S101 of the embodiment of the present invention, and the benefit being arranged in this way is to can control variable, makes result
It compares more obvious, avoids and need to carry out testing result complicated analysis in different ways.
In embodiments of the present invention, by taking WiFi wireless network as an example, it can be wireless network driver (WiFi driving) and examining
When measuring data flow and meeting preset condition, doubtful cutout message is sent into doubtful WiFi to system framework (framework) and is stopped
The message of (data stall), system framework determine that active wireless network is connected as doubting according to the doubtful cutout message received
Like disconnection state.Then, system framework can detect whether current WiFi network connection can be used again.
If it is unavailable to detect the active wireless network connection again, it can determine that active wireless network is connected as stopping
It is abnormal to illustrate that function of surfing the Net occurs, user can be reminded to take corresponding measure or restore automatically in time for state.
In the embodiment that one may be implemented, optionally, if detecting the active wireless network connection again can be used,
It determines that the active wireless network is connected as non-disconnection state, illustrates that function of surfing the Net is normal, can continue to detect data stream.
The technical solution provided in the embodiment of the present invention is detecting mobile terminal and target radio network establishes connection
Afterwards, if detect the target radio network corresponding active wireless network connection it is good for use after, detect wireless network data stream
Whether meet preset condition, when meeting preset condition, then detects whether the active wireless network connection can be used again, if by
Before available becomes unavailable, then can determine that active wireless network is connected as disconnection state.By using above-mentioned technical side
Case, may be implemented determine mobile terminal wireless network connection whether be disconnection state effect.
Based on the above technical solution, optionally, the detection target radio network is corresponding current wireless
Whether network connection can be used, comprising: the corresponding given server of Xiang Suoshu target radio network sends network connection verification information;
The network connection verification information that the given server returns is received to reply;It is replied according to the network connection verification information, really
Determine whether the corresponding active wireless network connection of the target radio network can be used.
Wherein, given server can be server corresponding with the wireless network type of target radio network, such as nothing
Gauze network is 360 carry-on WiFi, then given server can be 360 servers.Given server can also be that mobile terminal is pre-
The server corresponding with target radio network first set, the Google servers carried such as Android system.Mobile terminal can pass through
The verification information that system framework (framework) is sent, verification information can be HTTP (hypertext transfer protocol, Hyper
Text Transfer Protocol) code, the specific can be that whether the connection of verifying current network successfully requests.Specified clothes
The verification information that business device returns is replied the code that can be and return for request and is meant that such as given server return code 204
Successful connection.The advantages of this arrangement are as follows can be determined according to the information exchange between mobile terminal and given server current
Whether network connection succeeds, and whether method realizability is strong, convenient for successfully being judged according to code to wireless network connection.
Fig. 2 is the flow diagram of another wireless network cutout detection method provided in an embodiment of the present invention, such as Fig. 2 institute
Show, this method comprises:
S201, after detecting that mobile terminal and target radio network establish connection, detect the target radio network pair
Whether the active wireless network connection answered can be used.
If the connection of S202, the active wireless network is available, detect whether wireless network data stream meets preset condition.
S203, when the wireless network data stream meets the preset condition, determine active wireless network connection
For doubtful disconnection state, detect whether the active wireless network connection can be used again, if unavailable, it is determined that the current nothing
Gauze network is connected as disconnection state.
S204, active wireless network connection is restored.
After the connection for determining active wireless network is disconnection state, active wireless network connection is restored.
In the present embodiment, optionally, active wireless network connection is restored, comprising: disconnect and the mesh
The active wireless network connection of wireless network is marked, and re-establishes and connect with the target radio network;Or restarts and (close simultaneously
Open) the wireless network connection module of the mobile terminal, and reconnect to the target radio network.
It is not perfect in wireless network driver programming code, when program run-time error or when program operation enters endless loop,
Such as prompt data are busy, when sending unsuccessfully information or chip firmware when something goes wrong, can be by using above two side
Formula solves the problems, such as this.In addition, needing to carry out multiple double antenna and single antenna if Android system is during wireless network connection
Switching is easy to cause switching error etc. to cause the cutout of wireless network connection, mobile terminal can also using disconnect reconnection or
The mode for restarting radio network functions module is reconnected.Two kinds of wireless network recovery sides provided by the embodiment of the present invention
Case can effectively solve the problems, such as that wireless network connection is in disconnection state, guarantee the stability of wireless network connection, and restore
It is not necessarily to the manual operation of user in the process, the automatic recovery capability after improving wireless network cutout improves the experience of user.
In embodiments of the present invention, it disconnects and being connect with the active wireless network of WiFi wireless network, can be called
WifiManager::disconnect () method, the method for the same name of nesting allocation WifiServiceImpl such as can be using such as
Lower code is realized:
When a wireless network connection disconnects, following a few step processing can be made:
1.stopDhcp (): stopping dhcp process, i.e. stopping dhcpcd process.
2.mNwService.clearInterfaceAddresses (mInterfaceName): pass through
NetworkManagementService notifies Netd to remove the address information of wlan0.
3.mWifiInfo.reset (): the state of resetting WifiInfo object.
4.setNetworkDetailedState (DetailedState.DISCONNECTED): by mNetworkInfo
Connection status be set as DISCONNECTED.
5.mWifiConfigStore.updateStatus(mLastNetworkId,
DetailedState.DISCONNECTED): the corresponding WifiConfiguration Obj State of mLastNetworkId is set
For DISCONNECTED.
6.clearLinkProperties (): the configuration information of mLinkProperties object is removed.
7.sendNetworkStateChangeBroadcast (): hair broadcast notice upper layer network state change.
8.registerDisconnected (): some cleanings, record work are done.
In addition, the unlatching of Wifi module, closing can call WifiManager::setWifiEnabled (), it is embedding
Set calls the method for the same name in WifiServiceImpl, sends CMD_WIFI_TOGGLED message to WifiController.
The technical program based on the above technical solution, provides the shifting that disconnection state is in wireless network connection
Dynamic terminal carries out the scheme of wireless network connection recovery, and the benefit being arranged in this way is can to connect determining mobile terminal wireless network
Restored automatically in the case where picking out existing cutout, guarantee the stability and real time availability of wireless network connection, guarantees user
Wireless network access server is passed through during using mobile terminal, and it is tired to user's bring to solve disconnection state
It is angry, improve the experience of user.
Fig. 3 is the flow diagram of another wireless network cutout detection method provided in an embodiment of the present invention, such as Fig. 3 institute
Show, this method comprises:
S301, after detecting that mobile terminal and target radio network establish connection, detect the target radio network pair
Whether the active wireless network connection answered can be used;If so, executing S302;If it is not, then executing S303.
Whether S302, detection wireless network data stream meet preset condition;If so, executing S304;If it is not, then executing
S305。
S303, determine that the corresponding active wireless network connection of the target radio network is unavailable.
After mobile terminal and target radio network establish connection, detect corresponding with target radio network current wireless
It is connected to the network unavailable, it is determined that active wireless network connection is unavailable.
S304, it determines that the active wireless network is connected as doubtful disconnection state, detects the active wireless network again
Whether connection can be used, if so, executing S305;If it is not, then executing S306.
S305, determine that the corresponding active wireless network connection of the target radio network is available.
S306, determine that the corresponding active wireless network of the target radio network is connected as disconnection state.
S307, active wireless network connection is restored.
The technical program provides a kind of wireless network cutout detection method, leads on the basis of above-mentioned each technical solution
Cross whether the wireless network connection that may be implemented to determine mobile terminal using technical solution provided by the embodiment of the present invention is disconnected
The effect of stream mode, and after judging disconnection state, active wireless network is restored automatically.
Fig. 4 is that a kind of wireless network provided in an embodiment of the present invention stops the structural block diagram of detection device, which can be by
Software and or hardware realization is typically integrated in mobile terminal, can stop detection method by executing wireless network come to touch
The touch operation of key is responded.As shown in figure 4, the device includes:
Wireless network connection judgment module 401, for after detecting mobile terminal and target radio network establish connection,
Detect whether the corresponding active wireless network connection of the target radio network can be used;
Wireless network data stream detection module 402 detects wireless network if available for active wireless network connection
Whether network data flow meets preset condition;
Disconnection state determining module 403, for determining institute when the wireless network data stream meets the preset condition
It states active wireless network and is connected as doubtful disconnection state, detect whether the active wireless network connection can be used again, if can not
With, it is determined that the active wireless network is connected as disconnection state.
The technical solution provided in the embodiment of the present invention, by detecting mobile terminal and target radio network foundation company
After connecing, detect the target radio network corresponding active wireless network connection it is good for use after, detect wireless network data stream
Whether meet preset condition, when meeting preset condition, then detects whether the active wireless network connection can be used again, if even
It detects available when connecing and detects at this time unavailable, then can determine that active wireless network is connected as disconnection state.By using upper
State technical solution, may be implemented determine mobile terminal wireless network connection whether be disconnection state effect.
Based on the above technical solution, optionally, described device further include:
Wireless network connection recovery module, for restoring to active wireless network connection.
Based on the above technical solution, optionally, the wireless network connection recovery module is specifically used for:
Disconnection is connect with the active wireless network of the target radio network, and is re-established with the target radio network
Connection;Or
Restart the wireless network connection module of the mobile terminal, and reconnects to the target radio network.
Based on the above technical solution, optionally, the wireless network connection judgment module 401 includes:
Verification information transmission unit is tested for sending network connection to the corresponding given server of the target radio network
Demonstrate,prove information;
Verification information receiving unit is replied for receiving the network connection verification information that the given server returns;
Wireless network connection judging unit, for according to the network connection verification information reply, determine the target without
Whether the corresponding active wireless network connection of gauze network can be used.
Based on the above technical solution, optionally, the wireless network data stream detection module 402 includes:
Data packet sends situation detection unit, for continuing whether detection data packet sends situation by wireless network driver
Meet preset requirement;
Judging unit is used for: if meeting, it is determined that wireless network data stream meets preset condition;If not meeting, it is determined that
Wireless network data stream is unsatisfactory for preset condition.
Based on the above technical solution, optionally, the data packet sends situation detection unit, is specifically used for:
Continue detection data packet by wireless network driver and send situation, if data packet sends mistake in the first preset duration
It loses, or data packet does not occur in the second preset duration and sends event, or data packet reception does not occur in third preset duration
Event, it is determined that data packet sends situation and meets preset requirement.
Based on the above technical solution, optionally, the disconnection state determining module 403 further include:
Non- disconnection state determination unit, if available for detecting the active wireless network connection again, it is determined that described
Active wireless network is connected as non-disconnection state.
The embodiment of the present invention also provides a kind of storage medium comprising computer executable instructions, and the computer is executable
Instruction is used to execute when being executed a kind of wireless network cutout detection method by computer processor, this method comprises:
After detecting mobile terminal and target radio network establishes connection, detect that the target radio network is corresponding to work as
Whether preceding wireless network connection can be used;
If the active wireless network connection is available, detect whether wireless network data stream meets preset condition;
When the wireless network data stream meets the preset condition, it is doubtful to determine that the active wireless network is connected as
Disconnection state, detects whether the active wireless network connection can be used again, if unavailable, it is determined that the active wireless network
It is connected as disconnection state.
Storage medium --- any various types of memory devices or storage equipment.Term " storage medium " is intended to wrap
It includes: install medium, such as CD-ROM, floppy disk or magnetic tape equipment;Computer system memory or random access memory, such as
DRAM, DDR RAM, SRAM, EDO RAM, Lan Basi (Rambus) RAM etc.;Nonvolatile memory, such as flash memory, magnetic medium
(such as hard disk or optical storage);Register or the memory component of other similar types etc..Storage medium can further include other
Memory of type or combinations thereof.In addition, storage medium can be located at program in the first computer system being wherein performed,
Or can be located in different second computer systems, second computer system is connected to the by network (such as internet)
One computer system.Second computer system can provide program instruction to the first computer for executing." storage is situated between term
Matter " may include may reside in different location (such as by network connection different computer systems in) two or
More storage mediums.Storage medium can store the program instruction that can be performed by one or more processors and (such as implement
For computer program).
Certainly, a kind of storage medium comprising computer executable instructions, computer provided by the embodiment of the present invention
The wireless network cutout detection operation that executable instruction is not limited to the described above, can also be performed any embodiment of that present invention and is mentioned
Relevant operation in the wireless network cutout detection method of confession.
The embodiment of the invention provides a kind of mobile terminal, nothing provided in an embodiment of the present invention can be integrated in the mobile terminal
Gauze network cutout detection device.Fig. 5 is a kind of structural schematic diagram of mobile terminal provided in an embodiment of the present invention.As shown in figure 5,
The mobile terminal may include: memory 501, central processing unit (Central Processing Unit, CPU) 502 (also known as
Processor, hereinafter referred to as CPU), circuit board (not shown) and power circuit (not shown).The circuit board is placed in
The space interior that the shell surrounds;The CPU502 and the memory 501 are arranged on the circuit board;The power supply electricity
Road, for each circuit or the device power supply for the mobile terminal;The memory 501, for storing executable program generation
Code;The CPU502 is run and the executable journey by reading the executable program code stored in the memory 501
The corresponding computer program of sequence code, to perform the steps of
After detecting mobile terminal and target radio network establishes connection, detect that the target radio network is corresponding to work as
Whether preceding wireless network connection can be used;
If the active wireless network connection is available, detect whether wireless network data stream meets preset condition;
When the wireless network data stream meets the preset condition, it is doubtful to determine that the active wireless network is connected as
Disconnection state, detects whether the active wireless network connection can be used again, if unavailable, it is determined that the active wireless network
It is connected as disconnection state.
The mobile terminal further include: Peripheral Interface 503, RF (Radio Frequency, radio frequency) circuit 505, audio-frequency electric
Road 506, loudspeaker 511, power management chip 508, input/output (I/O) subsystem 509, touch screen 512, other input/controls
Control equipment 510 and outside port 504, these components are communicated by one or more communication bus or signal wire 507.
It should be understood that illustrating the example that mobile terminal 500 is only mobile terminal, and mobile terminal 500
It can have than shown in the drawings more or less component, can combine two or more components, or can be with
It is configured with different components.Various parts shown in the drawings can include one or more signal processings and/or dedicated
It is realized in the combination of hardware, software or hardware and software including integrated circuit.
Just the mobile terminal provided in this embodiment for wireless network cutout detection is described in detail below, the shifting
Dynamic terminal takes the mobile phone as an example.
Memory 501, the memory 501 can be accessed by CPU502, Peripheral Interface 503 etc., and the memory 501 can
It can also include nonvolatile memory to include high-speed random access memory, such as one or more disk memory,
Flush memory device or other volatile solid-state parts.
The peripheral hardware that outputs and inputs of equipment can be connected to CPU502 and deposited by Peripheral Interface 503, the Peripheral Interface 503
Reservoir 501.
I/O subsystem 509, the I/O subsystem 509 can be by the input/output peripherals in equipment, such as touch screen 512
With other input/control devicess 510, it is connected to Peripheral Interface 503.I/O subsystem 509 may include 5091 He of display controller
For controlling one or more input controllers 5092 of other input/control devicess 510.Wherein, one or more input controls
Device 5092 processed receives electric signal from other input/control devicess 510 or sends electric signal to other input/control devicess 510,
Other input/control devicess 510 may include physical button (push button, rocker buttons etc.), dial, slide switch, behaviour
Vertical pole clicks idler wheel.It is worth noting that input controller 5092 can with it is following any one connect: keyboard, infrared port,
The indicating equipment of USB interface and such as mouse.
Touch screen 512, the touch screen 512 are the input interface and output interface between customer mobile terminal and user,
Visual output is shown to user, visual output may include figure, text, icon, video etc..
Display controller 5091 in I/O subsystem 509 receives electric signal from touch screen 512 or sends out to touch screen 512
Electric signals.Touch screen 512 detects the contact on touch screen, and the contact that display controller 5091 will test is converted to and is shown
The interaction of user interface object on touch screen 512, i.e. realization human-computer interaction, the user interface being shown on touch screen 512
Object can be the icon of running game, the icon for being networked to corresponding network etc..It is worth noting that equipment can also include light
Mouse, light mouse are the extensions for the touch sensitive surface for not showing the touch sensitive surface visually exported, or formed by touch screen.
RF circuit 505 is mainly used for establishing the communication of mobile phone Yu wireless network (i.e. network side), realizes mobile phone and wireless network
The data receiver of network and transmission.Such as transmitting-receiving short message, Email etc..Specifically, RF circuit 505 receives and sends RF letter
Number, RF signal is also referred to as electromagnetic signal, and RF circuit 505 converts electrical signals to electromagnetic signal or electromagnetic signal is converted to telecommunications
Number, and communicated by the electromagnetic signal with communication network and other equipment.RF circuit 505 may include for executing
The known circuit of these functions comprising but it is not limited to antenna system, RF transceiver, one or more amplifiers, tuner, one
A or multiple oscillators, digital signal processor, CODEC (COder-DECoder, coder) chipset, user identifier mould
Block (Subscriber Identity Module, SIM) etc..
Voicefrequency circuit 506 is mainly used for receiving audio data from Peripheral Interface 503, which is converted to telecommunications
Number, and the electric signal is sent to loudspeaker 511.
Loudspeaker 511 is reduced to sound for mobile phone to be passed through RF circuit 505 from the received voice signal of wireless network
And the sound is played to user.
Power management chip 508, the hardware for being connected by CPU502, I/O subsystem and Peripheral Interface are powered
And power management.
Mobile terminal provided in an embodiment of the present invention may be implemented to determine whether the wireless network connection of mobile terminal is disconnected
The effect of stream mode.
Wireless network cutout detection device, storage medium and the executable present invention of mobile terminal provided in above-described embodiment
The cutout detection method of wireless network provided by any embodiment has and executes the corresponding functional module of this method and beneficial to effect
Fruit.The not technical detail of detailed description in the above-described embodiments, reference can be made to wireless network provided by any embodiment of the invention
Stop detection method.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that
The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention
It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also
It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.
Claims (9)
- The detection method 1. a kind of wireless network stops characterized by comprisingAfter detecting that mobile terminal and target radio network establish connection, in hypertext transfer protocol generation, is sent by system framework Code verification information, to detect whether the corresponding active wireless network connection of the target radio network can be used;If the active wireless network connection is available, detect whether wireless network data stream meets preset condition;Wherein, described Whether detection wireless network data stream meets preset condition, comprising: continues detection data packet by wireless network driver and sends feelings Whether condition meets preset requirement, if meeting, it is determined that wireless network data stream meets preset condition;If not meeting, it is determined that nothing Line network data flow is unsatisfactory for preset condition;When the wireless network data stream meets the preset condition, determine that the active wireless network is connected as doubtful cutout State, detects whether the active wireless network connection can be used again, if unavailable, it is determined that the active wireless network connection For disconnection state;Wherein, when detecting that data flow meets preset condition, doubtful disconnection state is sent to system framework, is Frame unite according to the doubtful cutout message received, detects whether active wireless network connection is disconnection state again.
- 2. the method according to claim 1, wherein determining that the active wireless network is connected as disconnection state Later, further includes:Active wireless network connection is restored.
- 3. according to the method described in claim 2, it is characterized in that, restoring to active wireless network connection, comprising:Disconnection is connect with the active wireless network of the target radio network, and re-establishes company with the target radio network It connects;OrRestart the wireless network connection module of the mobile terminal, and reconnects to the target radio network.
- 4. the method according to claim 1, wherein the corresponding current nothing of the detection target radio network Whether line network connection can be used, comprising:Network connection verification information is sent to the corresponding given server of the target radio network;The network connection verification information that the given server returns is received to reply;It is replied according to the network connection verification information, determines that the corresponding active wireless network connection of the target radio network is It is no available.
- 5. the method according to claim 1, wherein described continue detection data packet hair by wireless network driver Whether condition of giving a present meets preset requirement, comprising:Continue detection data packet by wireless network driver and sends situation, if data packet sends failure in the first preset duration, Or data packet does not occur in the second preset duration and sends event, or data packet does not occur in third preset duration and receives thing Part, it is determined that data packet sends situation and meets preset requirement.
- 6. the method according to claim 1, wherein whether may be used detecting the active wireless network connection again With later, further includes:If available, it is determined that the active wireless network is connected as non-disconnection state.
- The detection device 7. a kind of wireless network stops characterized by comprisingWireless network connection judgment module is for passing through after detecting mobile terminal and target radio network establishes connection Frame of uniting sends hypertext transfer protocol code verification information, to detect the corresponding active wireless network of the target radio network Whether connection can be used;Wireless network data stream detection module detects wireless network data if available for active wireless network connection Whether stream meets preset condition;Wherein, the wireless network data stream detection module includes:Data packet sends situation detection unit, sends whether situation meets for continuing detection data packet by wireless network driver Preset requirement;Judging unit is used for: if meeting, it is determined that wireless network data stream meets preset condition;If not meeting, it is determined that wireless Network data flow is unsatisfactory for preset condition;Disconnection state determining module, it is described current for determining when the wireless network data stream meets the preset condition Wireless network connection is doubtful disconnection state, detects whether the active wireless network connection can be used again, if unavailable, really The fixed active wireless network is connected as disconnection state;Wherein, when detecting that data flow meets preset condition, by doubtful cutout State is sent to system framework, and system framework detects active wireless network connection according to the doubtful cutout message received again It whether is disconnection state.
- 8. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is held by processor It is realized when row such as wireless network as claimed in any one of claims 1 to 6 cutout detection method.
- 9. a kind of mobile terminal, including memory, processor and storage are on a memory and can be in the computer of processor operation Program, which is characterized in that the processor is realized wireless as described in claim 1-6 is any when executing the computer program Network cutout detection method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710813076.XA CN107566215B (en) | 2017-09-11 | 2017-09-11 | Wireless network cutout detection method, device, storage medium and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710813076.XA CN107566215B (en) | 2017-09-11 | 2017-09-11 | Wireless network cutout detection method, device, storage medium and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107566215A CN107566215A (en) | 2018-01-09 |
CN107566215B true CN107566215B (en) | 2019-07-09 |
Family
ID=60980469
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710813076.XA Active CN107566215B (en) | 2017-09-11 | 2017-09-11 | Wireless network cutout detection method, device, storage medium and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107566215B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109041262B (en) | 2018-08-23 | 2020-06-16 | Oppo广东移动通信有限公司 | Data transmission method and related device |
CN113067753A (en) * | 2021-04-01 | 2021-07-02 | 北京有竹居网络技术有限公司 | Method, device, equipment and storage medium for detecting connectivity of mobile data link |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103139307A (en) * | 2013-02-27 | 2013-06-05 | 广东欧珀移动通信有限公司 | Recovery method for network resource downloading after interruption and downloading system |
CN103338118A (en) * | 2013-06-04 | 2013-10-02 | 北京搜狐新媒体信息技术有限公司 | A communication network connection method and an apparatus thereof |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103200072B (en) * | 2013-05-06 | 2016-06-08 | 吉林省金港计算机网络有限公司 | A kind of network data transmission method, Apparatus and system |
CN103401714B (en) * | 2013-08-01 | 2017-02-08 | 广东威创视讯科技股份有限公司 | Method for detecting network connection state and client side |
US8972513B2 (en) * | 2013-08-05 | 2015-03-03 | Iboss, Inc. | Content caching |
-
2017
- 2017-09-11 CN CN201710813076.XA patent/CN107566215B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103139307A (en) * | 2013-02-27 | 2013-06-05 | 广东欧珀移动通信有限公司 | Recovery method for network resource downloading after interruption and downloading system |
CN103338118A (en) * | 2013-06-04 | 2013-10-02 | 北京搜狐新媒体信息技术有限公司 | A communication network connection method and an apparatus thereof |
Also Published As
Publication number | Publication date |
---|---|
CN107566215A (en) | 2018-01-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3594878A1 (en) | Smart broadcasting method and apparatus | |
RU2651800C1 (en) | Method and device connection status checking | |
WO2017181627A1 (en) | Network connection method and device, terminal, and system | |
CN108509176A (en) | A kind of method, apparatus of playing audio-fequency data, storage medium and intelligent terminal | |
CN111757305B (en) | Service execution terminal switching method, device, system and storage medium | |
CN106454968B (en) | A kind of caller method and device based on CSFB | |
WO2022156736A1 (en) | Voice fallback method and apparatus, and user equipment | |
CN108093451B (en) | Random access control method, device, storage medium and mobile terminal | |
US11617177B2 (en) | Beam failure recovery method and terminal | |
CN110708696A (en) | Network data recovery method and device, storage medium and electronic equipment | |
US20140307574A1 (en) | Communication connection control method and electronic apparatus supporting the same | |
CN107566215B (en) | Wireless network cutout detection method, device, storage medium and mobile terminal | |
CN103618967A (en) | Method and device for interaction of mobile terminal and television end | |
US20170171339A1 (en) | Advertisement data transmission method, electrnoic device and system | |
US10478731B2 (en) | Method and apparatus for storing user data | |
AU2015272424A1 (en) | Communication apparatus, communication system, communication management system, communication control method, and computer program product | |
CN105704106B (en) | A kind of visualization IVR implementation method and mobile terminal | |
CN109165114A (en) | Processing method, device, storage medium and intelligent terminal of the application program without response | |
RU2670096C2 (en) | Method and device for ending video communication | |
WO2017219587A1 (en) | Master-slave device switching method, slave device, management server, and storage medium | |
CN115150501A (en) | Voice interaction method and electronic equipment | |
CN106101361B (en) | Display methods, device and the mobile phone of cell phone address book | |
CN107734496A (en) | Mobile terminal searches network control method, device and mobile terminal | |
CN108712280B (en) | Network function management method and device, storage medium and intelligent terminal | |
CN116709226B (en) | Communication relay method, electronic device, communication system, and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant before: Guangdong OPPO Mobile Communications Co., Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |