CN107580336A - A kind of method for connecting network, terminal and computer-readable recording medium - Google Patents

A kind of method for connecting network, terminal and computer-readable recording medium Download PDF

Info

Publication number
CN107580336A
CN107580336A CN201711035084.2A CN201711035084A CN107580336A CN 107580336 A CN107580336 A CN 107580336A CN 201711035084 A CN201711035084 A CN 201711035084A CN 107580336 A CN107580336 A CN 107580336A
Authority
CN
China
Prior art keywords
wireless network
connection
mentioned
network
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.)
Pending
Application number
CN201711035084.2A
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201711035084.2A priority Critical patent/CN107580336A/en
Publication of CN107580336A publication Critical patent/CN107580336A/en
Pending legal-status Critical Current

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention discloses a kind of method for connecting network, terminal and computer-readable recording medium, the method for connecting network includes:When detecting wireless network, establish and connect with wireless network;Sent by wireless network and access data;Receive the access response in response to accessing data;When access response is accesses failure, the connection with wireless network is disconnected, re-starts network detection.Method for connecting network provided in an embodiment of the present invention, it can effectively solve the problem that the problem of terminal after the actual connection failure of wireless network with being in without network state, overcome terminal and caused by the connection illusion of wireless network can not receiving network data the defects of, improve the intelligent of terminal.

Description

A kind of method for connecting network, terminal and computer-readable recording medium
Technical field
The present invention relates to terminal technology, more particularly to a kind of method for connecting network, terminal and computer-readable recording medium.
Background technology
With the high speed development of mobile communication technology, mobile terminal can not only pass through general packet radio service technology The mode of (General Packet Radio Service, GPRS) connects network, meanwhile, there is WLAN The intelligent terminal of (Wireless Fidelity, Wi-Fi) function can also connect network by way of accessing hotspot. At the same time, free wireless network is also increasingly popularized, such as is equipped with public places such as market, airports free wireless Network, connected so that terminal can be established with available wireless network whenever and wherever possible.Wireless network is provided with when terminal is in During the public place of network, such as market, airport, company, if the wireless network of public place is open, without password, Or terminal was established with the wireless network of the public place and was connected, then terminal can be established with the wireless network and connected automatically.
However, after terminal establishes connection with wireless network, there may be reality and connect unsuccessful situation, so as to meeting Terminal is caused to be in without network state, that is to say, that terminal and the existing situation for being connected illusion of wireless network, can further lead Cause terminal can not receiving network data the defects of.
The content of the invention
In view of this, the embodiments of the invention provide a kind of method for connecting network, terminal and computer-readable recording medium, Can effectively solve the problem that the problem of being in without network state after terminal and the actual connection failure of wireless network, overcome terminal with it is wireless Caused by the connection illusion of network can not receiving network data the defects of, improve the intelligent of terminal.
What the technical scheme of the embodiment of the present invention was realized in:
The embodiments of the invention provide a kind of method for connecting network, including:
When detecting wireless network, establish and connect with the wireless network;
Sent by the wireless network and access data;
Receive the access response in response to the access data;
When the access response is accesses failure, the connection with the wireless network is disconnected, re-starts network detection.
In such scheme, described sent by the wireless network accesses data, including:
Obtain prefixed time interval;
According to prefixed time interval, the access data are sent by the wireless network.
It is described when detecting wireless network in such scheme, establish and connect with the wireless network, including:
Acquisition prestores history linkage record;
Determine whether to access the wireless network first according to the history linkage record;
If the wireless network is accessed first, then connection request is sent to the wireless network;
Receive the connection response in response to the connection request;
Established and connected according to the connection response and the wireless network.
In such scheme, it is described according to the history linkage record determine whether to access first the wireless network it Afterwards, methods described also includes:
The wireless network is accessed first if non-, then obtains linkage record corresponding to the wireless network;
Established and connected according to the linkage record and the wireless network.
It is described when the access response is accesses failure in such scheme, disconnect the connection with the wireless network Afterwards, methods described also includes:
The disconnection times that record disconnects with the wireless network;
Judged whether to shield the wireless network according to the disconnection times.
It is described to be judged whether to shield the wireless network according to the disconnection times in such scheme, including:
Obtain preset times threshold value;
When the disconnection times are more than or equal to the preset times threshold value, then judgement shields the wireless network;
When the disconnection times are less than the preset times threshold value, then judge not shielding the wireless network.
It is described when the access response is accesses failure in such scheme, disconnect the connection with the wireless network Afterwards, methods described also includes:
Generate switch prompting information;Wherein, the switch prompting information is used to whether wireless network is switched into data flow The selection of amount;
Show the switch prompting information.
The embodiments of the invention provide a kind of terminal, the terminal includes:Processor, memory and communication bus;Institute Communication bus is stated to be used to realize the connection communication between the processor and the memory;The processor is used to perform institute The data transmission program stored in memory is stated, to realize following steps:
When detecting wireless network, establish and connect with the wireless network;And sent and visited by the wireless network Ask data;And receive in response to the access response for accessing data;And when the access response is accesses failure, break The connection with the wireless network is opened, re-starts network detection.
In such scheme, the processor, specifically for obtaining prefixed time interval;And according between preset time Every passing through the wireless network and send the access data;And obtain the history linkage record that prestores;And according to the history Linkage record determines whether to access the wireless network first;And if the wireless network is accessed first, then to described Wireless network sends connection request;And reception is in response to the connection response of the connection request;And rung according to the connection It should establish and connect with the wireless network;The wireless network is accessed first if non-, then is obtained corresponding to the wireless network Linkage record;And established and connected according to the linkage record and the wireless network;
The processor, it is additionally operable to, when the access response is accesses failure, disconnect the connection with the wireless network Afterwards, the disconnection times that record disconnects with the wireless network;And judged whether to shield institute according to the disconnection times State wireless network;And when the access response is accesses failure, after disconnecting the connection with the wireless network, generation is cut Change prompt message;Wherein, the switch prompting information is used for the selection whether wireless network is switched to data traffic;It is and aobvious Show the switch prompting information;
The processor, also particularly useful for acquisition preset times threshold value;And when the disconnection times are more than or equal to The preset times threshold value, then judge to shield the wireless network;And when the disconnection times are less than the preset times threshold Value, then judge not shielding the wireless network.
The embodiments of the invention provide a kind of computer-readable recording medium, the computer-readable recording medium storage has One or more program, one or more of programs can be walked by one or more computing device so that realization is following Suddenly:
When detecting wireless network, establish and connect with the wireless network;
Sent by the wireless network and access data;
Receive the access response in response to the access data;
When the access response is accesses failure, the connection with the wireless network is disconnected, re-starts network detection.
As can be seen here, in the technical scheme of the embodiment of the present invention, when detecting wireless network, establish and connect with wireless network Connect;Sent by wireless network and access data;Receive the access response in response to accessing data;When access response fails to access When, the connection with wireless network is disconnected, re-starts network detection.As can be seen here, a kind of network that the embodiment of the present invention proposes Connection method, terminal and computer-readable recording medium, after connection is established with wireless network, wireless network can be carried out Detection, and it is determined that with being disconnected after wireless network connection failure, so as to effectively solve terminal and wireless network reality The problem of being in without network state after the connection failure of border, overcome terminal and can not connect caused by the connection illusion of wireless network The defects of receiving network data, improves the intelligent of terminal.
Brief description of the drawings
Fig. 1 is a kind of hardware architecture diagram for the optional mobile terminal for realizing each embodiment of the present invention;
Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention;
Fig. 3 is the implementation process schematic diagram one for the method for connecting network that the embodiment of the present invention proposes;
Fig. 4 is the implementation process schematic diagram two for the method for connecting network that the embodiment of the present invention proposes;
Fig. 5 is the schematic diagram that prefixed time interval is set in the embodiment of the present invention;
Fig. 6 is the schematic diagram that default website is set in the embodiment of the present invention;
Fig. 7 is the implementation process schematic diagram three for the method for connecting network that the embodiment of the present invention proposes;
Fig. 8 is the history linkage record schematic diagram that prestored in the embodiment of the present invention;
Fig. 9 is the implementation process schematic diagram four for the method for connecting network that the embodiment of the present invention proposes;
Figure 10 is the implementation process schematic diagram five for the method for connecting network that the embodiment of the present invention proposes;
Figure 11 is the implementation process schematic diagram six for the method for connecting network that the embodiment of the present invention proposes;
Figure 12 is the composition structural representation one for the terminal that the embodiment of the present invention proposes.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In follow-up description, the suffix using such as " module ", " part " or " unit " for representing element is only Be advantageous to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " part " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as mobile phone, flat board Computer, notebook computer, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable Media player (Portable Media Player, PMP), guider, wearable device, Intelligent bracelet, pedometer etc. move Dynamic terminal, and the fixed terminal such as digital TV, desktop computer.
It will be illustrated in subsequent descriptions by taking mobile terminal as an example, it will be appreciated by those skilled in the art that except special Outside element for moving purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, its hardware configuration signal for a kind of optional mobile terminal of each embodiment of the realization present invention Figure, the mobile terminal 100 can include:Radio frequency (Radio Frequency, RF) unit 101, Wireless Fidelity (WIreless- Fidelity, Wi-Fi) it is module 102, audio output unit 103, audio/video (A/V) input block 104, sensor 105, aobvious Show the parts such as unit 106, user input unit 107, interface unit 108, memory 109, processor 110 and power supply 111. It will be understood by those skilled in the art that the mobile terminal structure shown in Fig. 1 does not form the restriction to mobile terminal, it is mobile whole End can be included than illustrating more or less parts, either combine some parts or different parts arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, the reception and transmission of signal, specifically, by base station Downlink information receive after, handled to processor 110;In addition, by up network connection to base station.Generally, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrate Frequency unit 101 can also be communicated by radio communication with network and other equipment.Above-mentioned radio communication can use any communication Standard or agreement, including but not limited to global system for mobile communications (Global System of Mobile Communication, GSM), general packet radio service (General Packet Radio Service, GPRS), code division it is more Location 2000 (Code Division Multiple Access 2000, CDMA2000), WCDMA (Wideband Code Division Multiple Access, WCDMA), TD SDMA (Time Division- Synchronous Code Division Multiple Access, TD-SCDMA), FDD Long Term Evolution (Frequency Division Duplexing-Long Term Evolution, FDD-LTE) and time division duplex Long Term Evolution (Time Division Duplexing-Long Term Evolution, TDD-LTE) etc..
Wi-Fi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch by Wi-Fi module 102 Email, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 1 Wi-Fi module 102 is shown, but it is understood that, it is simultaneously not belonging to must be configured into for mobile terminal, completely can basis Need to omit in the essential scope for do not change invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or Wi-Fi module 102 it is receiving or It is sound that the voice data that person stores in memory 109, which is converted into audio signal and exported,.Moreover, audio output unit 103 can also provide performed to mobile terminal 100 the related audio output of specific function (for example, call signal reception sound, Message sink sound etc.).Audio output unit 103 can include loudspeaker, buzzer etc..
A/V input blocks 104 are used to receive audio or video signal.A/V input blocks 104 can include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the static images or the view data of video obtained in image capture mode by image capture apparatus (such as camera) are carried out Reason.Picture frame after processing may be displayed on display unit 106.Picture frame after the processing of graphics processor 1041 can be deposited Storage is transmitted in memory 109 (or other storage mediums) or via radio frequency unit 101 or Wi-Fi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (voice data), and can be voice data by such acoustic processing.Audio (voice) data after processing can To be converted to the form output that mobile communication base station can be sent to via radio frequency unit 101 in the case of telephone calling model. Microphone 1042 can implement various types of noises and eliminate (or suppression) algorithm to eliminate (or suppression) in reception and send sound Caused noise or interference during frequency signal.
Mobile terminal 100 also includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity transducer can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general For three axles) size of acceleration, size and the direction of gravity are can detect that when static, the application available for identification mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Display unit 106 is used for the information for showing the information inputted by user or being supplied to user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 1061.
User input unit 107 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal The key signals input that family is set and function control is relevant.Specifically, user input unit 107 may include contact panel 1071 with And other input equipments 1072.Contact panel 1071, also referred to as touch-screen, collect touch operation of the user on or near it (for example user uses any suitable objects or annex such as finger, stylus on contact panel 1071 or in contact panel 1071 Neighbouring operation), and corresponding attachment means are driven according to formula set in advance.Contact panel 1071 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it Contact coordinate is converted into, then gives processor 110, and the order sent of reception processing device 110 and can be performed.In addition, can To realize contact panel 1071 using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap Include but be not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc. One or more, do not limit herein specifically.
Further, contact panel 1071 can cover display panel 1061, detect thereon when contact panel 1071 or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, contact panel 1071 and display panel 1061 be the part independent as two to realize the input of mobile terminal and output function, but in certain embodiments, can Input and the output function of mobile terminal are realized so that contact panel 1071 and display panel 1061 is integrated, is not done herein specifically Limit.
Interface unit 108 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 100.For example, External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing Line FPDP, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storage software program and various data.Memory 109 can mainly include storing program area And storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one function Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as Voice data, phone directory etc.) etc..In addition, memory 109 can include high-speed random access memory, can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection Individual part, by running or performing the software program and/or module that are stored in memory 109, and call and be stored in storage Data in device 109, the various functions and processing data of mobile terminal are performed, so as to carry out integral monitoring to mobile terminal.Place Reason device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Device is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is main Handle radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) to all parts power supply, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, so as to realize management charging by power-supply management system, put The function such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also will not be repeated here including bluetooth module etc..
For the ease of understanding the embodiment of the present invention, the communications network system being based on below to the mobile terminal of the present invention enters Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system Unite includes communicating the user equipment (User of connection successively for the LTE system of universal mobile communications technology, the LTE system Equipment, UE) 201, evolved UMTS Terrestrial radio access network (Evolved UMTS Terrestrial Radio Access Network, E-UTRAN) 202, evolved packet-based core networks (Evolved Packet Core, EPC) 203 and operation The IP operation 204 of business.
Specifically, UE201 can be above-mentioned terminal 100, and here is omitted.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connected with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide UE201 to EPC203 access.
EPC203 can include mobility management entity (Mobility Management Entity, MME) 2031, ownership Client server (Home Subscriber Server, HSS) 2032, other MME2033, gateway (Serving Gate Way, SGW) 2034, grouped data network gateway (PDN Gate Way, PGW) 2035 and policy and rate functional entity (Policy and Charging Rules Function, PCRF) 2036 etc..Wherein, MME2031 be processing UE201 and The control node of signaling between EPC203, there is provided carrying and connection management.HSS2032 is all to manage for providing some registers Such as the function of attaching position register (not shown) etc, and preserve some and used about service features, data rate etc. The special information in family.All customer data can be transmitted by SGW2034, and PGW2035 can provide UE 201 IP Address is distributed and other functions, and PCRF2036 is strategy and the charging control strategic decision-making of business data flow and IP bearing resources Point, it selects and provided available strategy and charging control decision-making with charge execution function unit (not shown) for strategy.
IP operation 204 can include internet, Intranet, IP multimedia subsystem (IP Multimedia Subsystem, IMS) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And following new network system etc., do not limit herein.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the inventive method is proposed.
Embodiment one
Fig. 3 is the implementation process schematic diagram one for the method for connecting network that the embodiment of the present invention proposes, as shown in figure 3, at this In the embodiment of invention, the method that terminal carries out network connection may comprise steps of:
Step 101, when detecting wireless network, with wireless network establish connect.
In an embodiment of the present invention, if above-mentioned terminal detects wireless network, can with above-mentioned wireless network Establish connection.
It should be noted that in an embodiment of the present invention, above-mentioned terminal can be with wireless network linkage function Terminal, for example, above-mentioned terminal can be mobile phone, smart camera, tablet personal computer etc..
Further, in an embodiment of the present invention, above-mentioned terminal first available wireless network can be scanned for and Detection, after available above-mentioned wireless network is detected, it can be connected with being established with above-mentioned wireless network.
It should be noted that in an embodiment of the present invention, above-mentioned wireless network can be that need not carry out password authentification Wireless network, or above-mentioned terminal has already passed through authentication and is the wireless network of non-first connection.
Step 102, access data are sent by wireless network.
In an embodiment of the present invention, if above-mentioned terminal detects wireless network, and established with above-mentioned wireless network After connection, above-mentioned terminal can be sent by above-mentioned wireless network and access data.
Further, in an embodiment of the present invention, above-mentioned terminal, can be with after connection is established with above-mentioned wireless network Sent to the website pre-set and access data, to detect whether and above-mentioned wireless network successful connection.
It should be noted that in an embodiment of the present invention, above-mentioned default website can be to need terminal to pass through wireless network The website that network accesses, for example, above-mentioned default website can be browser, wechat, Taobao etc..
Step 103, receive in response to access data access response.
In an embodiment of the present invention, above-mentioned terminal by above-mentioned wireless network after access data are sent, Ke Yijie Receive the access response in response to above-mentioned access data.
Further, in an embodiment of the present invention, above-mentioned terminal is to above-mentioned default website after sending and accessing data, The access response in response to above-mentioned access data can be received, judges whether to connect with above-mentioned wireless network according to above-mentioned access response It is connected into work(.
Step 104, when access response is accesses failure, disconnect with the connection of wireless network, re-start network detection.
In an embodiment of the present invention, above-mentioned terminal by above-mentioned wireless network send access data, receive in response to Access data access response after, if above-mentioned access response for access fail, then above-mentioned terminal can with disconnect with it is upper The connection of wireless network is stated, then re-starts network detection again.
Further, in an embodiment of the present invention, above-mentioned terminal is after above-mentioned access response is received, if above-mentioned Access response for access fail, then above-mentioned terminal just can consider with above-mentioned wireless network connection failure, can with disconnect with The connection of above-mentioned wireless network, so as to solve terminal with being in after the actual connection failure of wireless network without network state Problem, overcome terminal and caused by the connection illusion of wireless network can not receiving network data the defects of.
Further, in an embodiment of the present invention, above-mentioned terminal, can after the connection with above-mentioned wireless network is disconnected To carry out web search and detection again, to obtain the wireless network that can be connected automatically again.
Further, in the embodiment of invention, above-mentioned terminal disconnect with after the connection of above-mentioned wireless network, can be with Switch prompting information is generated, specifically, above-mentioned switch prompting information is used to determine whether to cut the mode of online by wireless network It is changed to data traffic.
Further, in an embodiment of the present invention, above-mentioned terminal can incite somebody to action after above-mentioned switch prompting information is generated On above-mentioned switch prompting presentation of information to the display screen of above-mentioned terminal, to prompt switching network access.
It should be noted that in an embodiment of the present invention, if above-mentioned terminal and above-mentioned wireless network connection failure, on State terminal to be in without network state, above-mentioned terminal will be caused can not to receive message or data.Therefore, above-mentioned terminal disconnect with After the connection of above-mentioned wireless network, above-mentioned switch prompting information can be generated, and by above-mentioned switch prompting presentation of information upper The display screen of terminal is stated, to prompt user that network access is switched into data traffic by wireless network.
Further, in an embodiment of the present invention, above-mentioned terminal generates and shows above-mentioned switch prompting information, both can be with Efficiently against caused by terminal and the connection illusion of wireless network can not receiving network data the defects of, end can be avoided again End automatically switches to data traffic and carries out the waste that online causes data traffic.
The method for connecting network that the embodiment of the present invention proposes, when detecting wireless network, establish and connect with wireless network; Sent by wireless network and access data;Receive the access response in response to accessing data;When access response is accesses failure, The connection with wireless network is disconnected, re-starts network detection.As can be seen here, a kind of network connection that the embodiment of the present invention proposes Method, after connection is established with wireless network, wireless network can be detected, and it is determined that being connected mistake with wireless network Disconnected after losing, so as to effectively solve terminal with being in after the actual connection failure of wireless network without network state Problem, overcome terminal and caused by the connection illusion of wireless network can not receiving network data the defects of, improve the intelligence of terminal Can property.
Embodiment two
Based on above-described embodiment one, Fig. 4 is the implementation process schematic diagram for the method for connecting network that the embodiment of the present invention proposes Two, as shown in figure 4, in an embodiment of the present invention, above-mentioned terminal is sent to default website by wireless network and accesses data Method may comprise steps of:
Step 201, obtain prefixed time interval.
In an embodiment of the present invention, if above-mentioned terminal detects wireless network, and established with above-mentioned wireless network After connection, above-mentioned terminal can first obtain the time interval pre-set.
It should be noted that in an embodiment of the present invention, above-mentioned prefixed time interval is that above-mentioned terminal carries out wireless network Network whether the cycle time of the detection of successful connection, for example, when above-mentioned prefixed time interval is 1min, then above-mentioned terminal can be with Every 1min to whether being successfully connected above-mentioned wireless network and detecting.
Further, in an embodiment of the present invention, above-mentioned terminal can be pre-set above-mentioned default by a variety of methods Time interval, for example, above-mentioned terminal can set above-mentioned prefixed time interval according to the input operation of user terminal;It is or above-mentioned Terminal can set above-mentioned time interval according to the real-time available bandwidth situation of wireless network.
Specifically, in an embodiment of the present invention, above-mentioned terminal is in the real-time available bandwidth feelings according to above-mentioned wireless network When condition sets above-mentioned time interval, first the real-time available bandwidth of above-mentioned wireless network can be detected, obtained above-mentioned wireless Real-time available bandwidth corresponding to network, if above-mentioned available bandwidth in real time is more than pre-set bandwidths threshold value, then above-mentioned terminal can be with Above-mentioned prefixed time interval is arranged to very first time interval;If above-mentioned available bandwidth in real time is less than or equal to pre-set bandwidths Threshold value, then above-mentioned prefixed time interval can be arranged to the second time interval by above-mentioned terminal.Specifically, the above-mentioned very first time Interval is more than above-mentioned second time interval, that is to say, that if the real-time available bandwidth of above-mentioned wireless network is smaller, then above-mentioned The detection of the connection of terminal-pair wireless network is more frequent.
Fig. 5 be the embodiment of the present invention in set prefixed time interval schematic diagram, as shown in figure 5, terminal can according to The selection operation at family is provided for detection wireless network, and whether the time interval of successful connection is 1min.Fig. 6 is implemented for the present invention The schematic diagram of default website is set in example, as shown in fig. 6, browser can be arranged to default by terminal according to user's selection operation Website.
Step 202, according to prefixed time interval, pass through wireless network and send and access data.
In an embodiment of the present invention, above-mentioned terminal, can be according to above-mentioned pre- after above-mentioned prefixed time interval is obtained If time interval, sent by above-mentioned wireless network to above-mentioned default website and access data.
Further, in an embodiment of the present invention, above-mentioned terminal, can be with after connection is established with above-mentioned wireless network According to above-mentioned prefixed time interval, periodically, by above-mentioned default website send above-mentioned access Data Detection whether with it is upper State wireless network successful connection.
The method for connecting network that the embodiment of the present invention proposes, when detecting wireless network, establish and connect with wireless network; Sent by wireless network and access data;Receive the access response in response to accessing data;When access response is accesses failure, The connection with wireless network is disconnected, re-starts network detection.As can be seen here, a kind of network connection that the embodiment of the present invention proposes Method, after connection is established with wireless network, wireless network can be detected, and it is determined that being connected mistake with wireless network Disconnected after losing, so as to effectively solve terminal with being in after the actual connection failure of wireless network without network state Problem, overcome terminal and caused by the connection illusion of wireless network can not receiving network data the defects of, improve the intelligence of terminal Can property.
Embodiment three
Based on above-described embodiment one, Fig. 7 is the implementation process schematic diagram for the method for connecting network that the embodiment of the present invention proposes Three, as shown in fig. 7, in an embodiment of the present invention, when detecting wireless network, above-mentioned terminal is established with wireless network and connected Method may comprise steps of:
Step 101a, the history linkage record that prestores is obtained.
In an embodiment of the present invention, above-mentioned terminal is after the wireless network that can be connected automatically is detected, Ke Yixian Obtain the history linkage record prestored.
Further, in an embodiment of the present invention, above-mentioned terminal, can when establishing connection with any one wireless network To store linkage record, so that above-mentioned terminal judges whether to establish with above-mentioned wireless network according to the above-mentioned history linkage record that prestores Cross connection.Fig. 8 is the history linkage record schematic diagram that prestored in the embodiment of the present invention, as shown in figure 8, terminal will establish connection Including " International Square ", " railway station ", " KFC " and " WJLP " wireless network history linkage record be stored in it is pre- Deposit in history linkage record.
Step 101b, determine whether to access wireless network first according to history linkage record.
In an embodiment of the present invention, above-mentioned terminal, can first root after the history linkage record prestored is obtained Determine whether to access above-mentioned wireless network first according to above-mentioned history linkage record.
Step 101c, if wireless network is accessed first, then connection request is sent to wireless network.
In an embodiment of the present invention, the history linkage record that above-mentioned terminal prestores in acquisition, then according to above-mentioned History linkage record determines whether to access first after above-mentioned wireless network, if it is decided that to access above-mentioned wireless network first Network, then above-mentioned terminal can send connection request to above-mentioned wireless network, established and connected with above-mentioned wireless network with request.
Step 101d, the connection response in response to connection request is received.
In an embodiment of the present invention, if it is decided that to access above-mentioned wireless network first, then above-mentioned terminal is upward After stating wireless network transmission connection request, the connection response in response to above-mentioned connection request can be received.
Specifically, in an embodiment of the present invention, above-mentioned terminal to above-mentioned wireless network send above-mentioned connection request it Afterwards, above-mentioned wireless network can generate above-mentioned connection response according to above-mentioned connection request, then be sent to above-mentioned connection response Above-mentioned terminal.
Step 10e, established and connected according to connection response and wireless network.
In an embodiment of the present invention, above-mentioned terminal is receiving the above-mentioned connection response for responding above-mentioned connection request Afterwards, it can be established and connected in above-mentioned wireless network according to above-mentioned connection response.
It should be noted that in an embodiment of the present invention, if above-mentioned terminal was not established with above-mentioned wireless network Connection, then above-mentioned terminal can establish first connection by above-mentioned connection response in above-mentioned wireless network.
It can be seen from the description above, by above-mentioned step 101a~101e, above-mentioned terminal obtains the history connection that prestores Record;Determine whether to access wireless network first according to history linkage record;If wireless network is accessed first, then to wireless Network sends connection request;Receive the connection response in response to connection request;Established and connected according to connection response and wireless network. As can be seen here, a kind of method for connecting network that the embodiment of the present invention proposes, can be to nothing after connection is established with wireless network Gauze network is detected, and it is determined that with being disconnected after wireless network connection failure, so as to effectively solve terminal with The problem of being in after the actual connection failure of wireless network without network state, overcomes the connection illusion of terminal and wireless network to be led Cause can not receiving network data the defects of, improve the intelligent of terminal.
Example IV
Based on above-described embodiment three, Fig. 9 is the implementation process schematic diagram for the method for connecting network that the embodiment of the present invention proposes Four, as shown in figure 9, in an embodiment of the present invention, above-mentioned terminal is determining whether to access first according to history linkage record After wireless network, i.e. after step 101b, the method that above-mentioned terminal carries out network connection can also comprise the following steps:
Step 101f, wireless network is accessed first if non-, then obtain linkage record corresponding to wireless network.
In an embodiment of the present invention, the history linkage record that above-mentioned terminal prestores in acquisition, then according to above-mentioned History linkage record determines whether to access first after above-mentioned wireless network, if it is decided that accesses above-mentioned wireless network first to be non- Network, then above-mentioned terminal can obtain linkage record corresponding to above-mentioned wireless network from the above-mentioned history linkage record that prestores.
It should be noted that in an embodiment of the present invention, above-mentioned end can be preserved in the above-mentioned history linkage record that prestores End and the linkage record of at least one wireless network, specifically, if above-mentioned wireless network needs to carry out password before proceeding Checking, then can be preserved in the above-mentioned history linkage record that prestores when above-mentioned terminal is established and connected with above-mentioned wireless network is made Checking password.
Step 101g, established and connected according to linkage record and wireless network.
In an embodiment of the present invention, above-mentioned terminal is obtaining above-mentioned wireless network from the above-mentioned history linkage record that prestores After corresponding linkage record, it can be established and connected according to above-mentioned linkage record and above-mentioned wireless network.
Specifically, if above-mentioned wireless network needs to carry out password authentification before proceeding, then above-mentioned terminal can be with It is direct to verify password and above-mentioned the wireless network company of foundation again according to used when establishing connection with above-mentioned wireless network first Connect.
It can be seen from the description above, by above-mentioned step 101f~101g, wireless network is accessed first if non-, on State terminal and then obtain linkage record corresponding to wireless network;Established and connected according to linkage record and wireless network.As can be seen here, originally A kind of method for connecting network that inventive embodiments propose, after connection is established with wireless network, wireless network can be carried out Detection, and it is determined that with being disconnected after wireless network connection failure, so as to effectively solve terminal and wireless network reality The problem of being in without network state after the connection failure of border, overcome terminal and can not connect caused by the connection illusion of wireless network The defects of receiving network data, improves the intelligent of terminal.
Embodiment five
Based on above-described embodiment one, Figure 10 is the implementation process schematic diagram for the method for connecting network that the embodiment of the present invention proposes Five, as shown in Figure 10, in an embodiment of the present invention, if above-mentioned access response fails to access, disconnect and wireless network After connection, the method that above-mentioned terminal carries out network connection can also comprise the following steps:
The disconnection times that step 301, record disconnect with wireless network.
In an embodiment of the present invention, if above-mentioned access response for access failure, above-mentioned terminal disconnect with it is above-mentioned After the connection of wireless network, the disconnection times disconnected with above-mentioned wireless network can be recorded.
Further, in an embodiment of the present invention, if it is decided that with above-mentioned wireless network connection failure, then above-mentioned end End can be to disconnect the connection with above-mentioned wireless network, and records the number disconnected, so as to be sentenced according to above-mentioned disconnection times It is disconnected whether to need to shield above-mentioned wireless network.
Step 302, judge whether shielding wireless network according to disconnection times.
In an embodiment of the present invention, the disconnection times that above-mentioned terminal is disconnected with above-mentioned wireless network in record it Afterwards, can be to be judged whether to shield above-mentioned wireless network according to above-mentioned disconnection times.
It should be noted that in an embodiment of the present invention, above-mentioned terminal after being disconnected with above-mentioned wireless network, Can search again for detecting available wireless network, and establish and be connected again with wireless network, due to above-mentioned terminal can again with Above-mentioned wireless network establishes connection, therefore above-mentioned terminal needs to record above-mentioned disconnection times, is according to the judgement of above-mentioned disconnection times It is no that shielding processing is carried out to above-mentioned wireless network.
Further, in an embodiment of the present invention, above-mentioned terminal can be by above-mentioned disconnection times and time pre-set Number threshold value is compared, to judge whether to shield above-mentioned wireless network.
It should be noted that in an embodiment of the present invention, connect if above-mentioned terminal repeatedly disconnects with above-mentioned wireless network Connect, then just it is considered that above-mentioned wireless network be unavailable network, it is necessary to above-mentioned wireless network carry out shielding processing.
Further, in an embodiment of the present invention, above-mentioned terminal to above-mentioned wireless network carry out shielding processing after, If above-mentioned terminal re-searches for detecting again available wireless network, it will not establish and connect with above-mentioned wireless network, so as to Realization shields disabled wireless network.
The method for connecting network that the embodiment of the present invention proposes, when detecting wireless network, establish and connect with wireless network; Sent by wireless network and access data;Receive the access response in response to accessing data;When access response is accesses failure, The connection with wireless network is disconnected, re-starts network detection.As can be seen here, a kind of network connection that the embodiment of the present invention proposes Method, after connection is established with wireless network, wireless network can be detected, and it is determined that being connected mistake with wireless network Disconnected after losing, so as to effectively solve terminal with being in after the actual connection failure of wireless network without network state Problem, overcome terminal and caused by the connection illusion of wireless network can not receiving network data the defects of, improve the intelligence of terminal Can property.
Embodiment six
Based on above-described embodiment five, Figure 11 is the implementation process schematic diagram for the method for connecting network that the embodiment of the present invention proposes Six, as shown in figure 11, in an embodiment of the present invention, above-mentioned terminal judges whether to shield the side of wireless network according to disconnection times Method may comprise steps of:
Step 302a, preset times threshold value is obtained.
In an embodiment of the present invention, the disconnection times that above-mentioned terminal is disconnected with above-mentioned wireless network in record it Afterwards, can first obtain the frequency threshold value pre-set, so as to according to above-mentioned disconnection times and above-mentioned preset times threshold value, to whether Above-mentioned wireless network is shielded to be judged.
Step 302b, when disconnection times are more than or equal to preset times threshold value, then judgement shields wireless network.
In an embodiment of the present invention, above-mentioned terminal, can be by above-mentioned disconnection after above-mentioned preset times threshold value is obtained Number and above-mentioned preset times threshold value are compared, if above-mentioned disconnection times are more than or equal to above-mentioned preset times threshold value, So above-mentioned terminal just can consider that above-mentioned wireless network is unavailable network, then can further judge to shield above-mentioned wireless network Network.
Further, in an embodiment of the present invention, if above-mentioned wireless network is determined as unavailable net by above-mentioned terminal Network, that is, judge to shield above-mentioned wireless network, then when above-mentioned terminal carries out the search and detection of available wireless network again, just not It can again establish and be connected with above-mentioned wireless network.
Step 302c, when disconnection times are less than preset times threshold value, then judge not shield wireless network.
In an embodiment of the present invention, above-mentioned terminal, can be by above-mentioned disconnection after above-mentioned preset times threshold value is obtained Number and above-mentioned preset times threshold value are compared, if above-mentioned disconnection times are less than above-mentioned preset times threshold value, then above-mentioned Terminal just can consider that above-mentioned wireless network is available network, then can further judge that above-mentioned wireless network need not be shielded.
Further, in an embodiment of the present invention, if above-mentioned terminal judges not shielding above-mentioned wireless network, then on , can be to continue and the above-mentioned wireless network company of foundation again when stating terminal and carrying out the search and detection of available wireless network again Connect.
It can be seen from the description above, by above-mentioned step 302a~302c, above-mentioned terminal obtains preset times threshold value; When disconnection times are more than or equal to preset times threshold value, then judgement shields wireless network;When disconnection times are less than preset times Threshold value, then judge not shield wireless network.As can be seen here, the embodiment of the present invention propose a kind of method for connecting network, with nothing Gauze network is established after connection, and wireless network can be detected, and it is determined that with being disconnected after wireless network connection failure Connection, so as to effectively solve the problems, such as terminal with being in after the actual connection failure of wireless network without network state, overcome Caused by terminal and the connection illusion of wireless network can not receiving network data the defects of, improve the intelligent of terminal.
Embodiment seven
Figure 12 is the composition structural representation one for the terminal that the embodiment of the present invention proposes, in actual applications, based on implementation Under example one to the same inventive concept of embodiment six, as shown in figure 12, the terminal 3 of the embodiment of the present invention includes:Processor 31, deposit Reservoir 32 and communication bus 33.It should be noted that in an embodiment of the present invention, processor 31 and memory in Figure 12 32 correspond to processor 110 and memory 109 in above-mentioned figure one respectively.During specific embodiment, above-mentioned processor 31 Can be application-specific IC (Application Specific Integrated Circuit, ASIC), data signal Processor (Digital Signal Processor, DSP), digital signal processing device (Digital Signal Processing Device, DSPD), programmable logic device (Programmable Logic Device, PLD), scene can Program gate array (Field Programmable Gate Array, FPGA), central processing unit (Central Processing Unit, CPU), controller, microcontroller, at least one of microprocessor.It is to be appreciated that for different equipment, it is used for Realize that the electronic device of above-mentioned processor function can also be other, the embodiment of the present invention is not especially limited.
In an embodiment of the present invention, above-mentioned communication bus 33 is used to realize the company between processor 31 and memory 32 Connect letter;Above-mentioned processor 31 is used to perform the network attachment procedure stored in memory 32, to realize following steps:
When detecting wireless network, establish and connect with wireless network;And sent by wireless network and access data;With And reception is in response to the access response of access data;And when access response is accesses failure, disconnect the company with wireless network Connect, re-start network detection.
In an embodiment of the present invention, further, above-mentioned processor 31, accessed specifically for being sent by wireless network During data, prefixed time interval is obtained;And according to prefixed time interval, sent by wireless network and access data.
In an embodiment of the present invention, further, above-mentioned processor 31, specifically for when detecting wireless network, When establishing connection with wireless network, the history linkage record that prestores is obtained;And determined whether first according to history linkage record Access wireless network;And if wireless network is accessed first, then send connection request to wireless network;And receive in response to The connection response of connection request;And established and connected according to connection response and wireless network.
In an embodiment of the present invention, further, above-mentioned processor 31, it is additionally operable to acquisition and prestores history linkage record, Determined whether according to history linkage record after accessing wireless network first, access wireless network first if non-, then obtain Linkage record corresponding to wireless network;And established and connected according to linkage record and wireless network.
In an embodiment of the present invention, further, above-mentioned processor 31, it is additionally operable to when access response fails to access When, after disconnecting the connection with wireless network, record the disconnection times disconnected with wireless network;And according to disconnection times Judge whether to shield wireless network.
In an embodiment of the present invention, further, above-mentioned processor 31, specifically for being judged whether according to disconnection times When shielding wireless network, preset times threshold value is obtained;And when disconnection times are more than or equal to preset times threshold value, then judge Shield wireless network;And when disconnection times are less than preset times threshold value, then judge not shield wireless network.
In an embodiment of the present invention, further, above-mentioned processor 31, it is additionally operable to when access response fails to access When, after disconnecting the connection with wireless network, generate switch prompting information;Wherein, whether switch prompting information is used for by wirelessly Network switching is the selection of data traffic;And display switch prompting information.
The terminal that the embodiment of the present invention proposes, when detecting wireless network, establish and connect with wireless network;By wireless Network, which is sent, accesses data;Receive the access response in response to accessing data;When access response is accesses failure, disconnection and nothing The connection of gauze network, re-start network detection.As can be seen here, the embodiment of the present invention propose terminal, with establishing wireless network After vertical connection, wireless network can be detected, and it is determined that with being disconnected after wireless network connection failure, so as to Can effectively solve the problem that the problem of being in without network state after terminal and the actual connection failure of wireless network, overcome terminal with it is wireless Caused by the connection illusion of network can not receiving network data the defects of, improve the intelligent of terminal.
The embodiment of the present invention provides a kind of computer-readable recording medium, and above computer readable storage medium storing program for executing is stored with one Individual or multiple programs, said one or multiple programs, applied in terminal, can be somebody's turn to do by one or more computing device The method such as embodiment one to embodiment six is realized when program is executed by processor.
Specifically, programmed instruction corresponding to a kind of method for connecting network in the present embodiment can be stored in CD, In the storage mediums such as hard disk, USB flash disk, when programmed instruction corresponding with a kind of method for connecting network is set by an electronics in storage medium During for reading or be performed, comprise the following steps:
When detecting wireless network, establish and connect with wireless network;
Sent by wireless network and access data;
Receive the access response in response to accessing data;
When access response is accesses failure, the connection with wireless network is disconnected, re-starts network detection.
In an embodiment of the present invention, further, it is above-mentioned during by wireless network to default website transmission access data One or more program can also implement following steps by said one or multiple computing devices:
Obtain prefixed time interval;
According to prefixed time interval, sent by wireless network and access data.
In an embodiment of the present invention, further, when detecting wireless network, when establishing connection with wireless network, Either multiple programs by said one or multiple computing devices, implement following steps to said one:
Acquisition prestores history linkage record;
Determine whether to access wireless network first according to history linkage record;
If wireless network is accessed first, then connection request is sent to wireless network;
Receive the connection response in response to connection request;
Established and connected according to connection response and wireless network.
In an embodiment of the present invention, further, the history linkage record that prestores is obtained, is judged according to history linkage record Whether be to access first after wireless network, said one either multiple programs by said one or multiple computing devices, To realize following steps:
Wireless network is accessed first if non-, then obtains linkage record corresponding to wireless network;
Established and connected according to linkage record and wireless network.
In an embodiment of the present invention, further, when access response is accesses failure, the company with wireless network is disconnected After connecing, either multiple programs can also be by said one or multiple computing devices, to realize following steps for said one:
The disconnection times that record disconnects with wireless network;
Judged whether to shield wireless network according to disconnection times.
In an embodiment of the present invention, further, it is specific real when judging whether to shield wireless network according to disconnection times Existing following steps:
Obtain preset times threshold value;
When disconnection times are more than or equal to preset times threshold value, then judgement shields wireless network;
When disconnection times are less than preset times threshold value, then judge not shield wireless network.
In an embodiment of the present invention, further, when access response is accesses failure, the company with wireless network is disconnected After connecing, either multiple programs can also be by said one or multiple computing devices, to realize following steps for said one:
Generate switch prompting information;Wherein, switch prompting information is used to whether wireless network is switched into data traffic Selection;
Show switch prompting information.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements not only include those key elements, and And also include the other element being not expressly set out, or also include for this process, method, article or device institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Other identical element also be present in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal (can be mobile phone, computer, service Device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
Embodiments of the invention are described above in conjunction with accompanying drawing, but the invention is not limited in above-mentioned specific Embodiment, above-mentioned embodiment is only schematical, rather than restricted, one of ordinary skill in the art Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make a lot Form, these are belonged within the protection of the present invention.

Claims (10)

1. a kind of method for connecting network, it is characterised in that methods described includes:
When detecting wireless network, establish and connect with the wireless network;
Sent by the wireless network and access data;
Receive the access response in response to the access data;
When the access response is accesses failure, the connection with the wireless network is disconnected, re-starts network detection.
2. according to the method for claim 1, it is characterised in that described sent by the wireless network accesses data, bag Include:
Obtain prefixed time interval;
According to prefixed time interval, the access data are sent by the wireless network.
3. according to the method for claim 1, it is characterised in that it is described when detecting wireless network, with the wireless network Network establishes connection, including:
Acquisition prestores history linkage record;
Determine whether to access the wireless network first according to the history linkage record;
If the wireless network is accessed first, then connection request is sent to the wireless network;
Receive the connection response in response to the connection request;
Established and connected according to the connection response and the wireless network.
4. according to the method for claim 3, it is characterised in that it is described judged whether according to the history linkage record headed by After the secondary access wireless network, methods described also includes:
The wireless network is accessed first if non-, then obtains linkage record corresponding to the wireless network;
Established and connected according to the linkage record and the wireless network.
5. according to the method for claim 1, its feature is being, described when the access response is accesses failure, break Open and after the connection of the wireless network, methods described also includes:
The disconnection times that record disconnects with the wireless network;
Judged whether to shield the wireless network according to the disconnection times.
6. according to the method for claim 5, it is characterised in that described according to the disconnection times judge whether shielding Wireless network, including:
Obtain preset times threshold value;
When the disconnection times are more than or equal to the preset times threshold value, then judgement shields the wireless network;
When the disconnection times are less than the preset times threshold value, then judge not shielding the wireless network.
7. according to the method for claim 1, it is characterised in that it is described when the access response is accesses failure, disconnect After connection with the wireless network, methods described also includes:
Generate switch prompting information;Wherein, the switch prompting information is used to whether wireless network is switched into data traffic Selection;
Show the switch prompting information.
8. a kind of terminal, it is characterised in that the terminal includes:Processor, memory and communication bus;The communication bus For realizing the connection communication between the processor and the memory;The processor is used to perform in the memory The data transmission program of storage, to realize following steps:
When detecting wireless network, establish and connect with the wireless network;And sent by the wireless network and access number According to;And receive in response to the access response for accessing data;And when the access response for access failure when, disconnect with The connection of the wireless network, re-start network detection.
9. terminal according to claim 8, it is characterised in that
The processor, specifically for obtaining prefixed time interval;And according to prefixed time interval, pass through the wireless network Send the access data;And obtain the history linkage record that prestores;And determined whether according to the history linkage record The wireless network is accessed first;And if the wireless network is accessed first, then sending connection to the wireless network please Ask;And reception is in response to the connection response of the connection request;And according to the connection response and the establishing wireless network Vertical connection;The wireless network is accessed first if non-, then obtains linkage record corresponding to the wireless network;And according to institute State linkage record and establish connection with the wireless network;
The processor, it is additionally operable to when the access response is accesses failure, after disconnecting the connection with the wireless network, The disconnection times that record disconnects with the wireless network;And judge whether to shield according to the disconnection times described wireless Network;And when the access response is accesses failure, after disconnecting the connection with the wireless network, generate switch prompting Information;Wherein, the switch prompting information is used for the selection whether wireless network is switched to data traffic;And described in display Switch prompting information;
The processor, also particularly useful for acquisition preset times threshold value;And described in being more than or equal to when the disconnection times Preset times threshold value, then judge to shield the wireless network;And when the disconnection times are less than the preset times threshold value, then Judgement does not shield the wireless network.
A kind of 10. computer-readable recording medium, it is characterised in that the computer-readable recording medium storage have one or Multiple programs, one or more of programs can be by one or more computing devices, to realize following steps:
When detecting wireless network, establish and connect with the wireless network;
Sent by the wireless network and access data;
Receive the access response in response to the access data;
When the access response is accesses failure, the connection with the wireless network is disconnected, re-starts network detection.
CN201711035084.2A 2017-10-30 2017-10-30 A kind of method for connecting network, terminal and computer-readable recording medium Pending CN107580336A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711035084.2A CN107580336A (en) 2017-10-30 2017-10-30 A kind of method for connecting network, terminal and computer-readable recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711035084.2A CN107580336A (en) 2017-10-30 2017-10-30 A kind of method for connecting network, terminal and computer-readable recording medium

Publications (1)

Publication Number Publication Date
CN107580336A true CN107580336A (en) 2018-01-12

Family

ID=61041136

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711035084.2A Pending CN107580336A (en) 2017-10-30 2017-10-30 A kind of method for connecting network, terminal and computer-readable recording medium

Country Status (1)

Country Link
CN (1) CN107580336A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108718458A (en) * 2018-06-11 2018-10-30 奇酷互联网络科技(深圳)有限公司 Method for connecting network, device, readable storage medium storing program for executing and intelligent terminal
CN108834221A (en) * 2018-06-01 2018-11-16 南昌黑鲨科技有限公司 Network connection control method, computer readable storage medium and mobile terminal
CN110380937A (en) * 2019-07-23 2019-10-25 中国工商银行股份有限公司 Network test method and device applied to electronic equipment
CN110572229A (en) * 2019-09-09 2019-12-13 Oppo广东移动通信有限公司 Time calibration method, device, terminal and storage medium
CN110572857A (en) * 2019-09-06 2019-12-13 腾讯科技(深圳)有限公司 Network connection processing method and device
WO2020097852A1 (en) * 2018-11-15 2020-05-22 深圳市欢太科技有限公司 Wireless connection method, apparatus, storage medium and electronic device

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108834221A (en) * 2018-06-01 2018-11-16 南昌黑鲨科技有限公司 Network connection control method, computer readable storage medium and mobile terminal
CN108718458A (en) * 2018-06-11 2018-10-30 奇酷互联网络科技(深圳)有限公司 Method for connecting network, device, readable storage medium storing program for executing and intelligent terminal
WO2020097852A1 (en) * 2018-11-15 2020-05-22 深圳市欢太科技有限公司 Wireless connection method, apparatus, storage medium and electronic device
CN110380937A (en) * 2019-07-23 2019-10-25 中国工商银行股份有限公司 Network test method and device applied to electronic equipment
CN110380937B (en) * 2019-07-23 2021-08-31 中国工商银行股份有限公司 Network testing method and device applied to electronic equipment
CN110572857A (en) * 2019-09-06 2019-12-13 腾讯科技(深圳)有限公司 Network connection processing method and device
CN110572857B (en) * 2019-09-06 2021-12-07 腾讯科技(深圳)有限公司 Network connection processing method and device, electronic equipment and storage medium
CN110572229A (en) * 2019-09-09 2019-12-13 Oppo广东移动通信有限公司 Time calibration method, device, terminal and storage medium
CN110572229B (en) * 2019-09-09 2021-03-26 Oppo广东移动通信有限公司 Time calibration method, device, terminal and storage medium

Similar Documents

Publication Publication Date Title
CN107580336A (en) A kind of method for connecting network, terminal and computer-readable recording medium
CN107613489A (en) A kind of wireless charging method, hotspot equipment, terminal and storage medium
CN107395850A (en) A kind of social communication information guard method, device and computer-readable recording medium
CN109618316A (en) Network share method, mobile terminal and storage medium
CN109800602A (en) Method for secret protection, mobile terminal and computer readable storage medium
CN107040541A (en) A kind of Ad blocking method, device and computer-readable medium
CN107635232A (en) A kind of network share method, terminal and computer-readable recording medium
CN107608613A (en) A kind of method and terminal for preventing maloperation
CN107705247A (en) A kind of method of adjustment of image saturation, terminal and storage medium
CN107360558A (en) Emergency call control method, communication terminal and computer-readable recording medium
CN107770356A (en) A kind of communication establishing method, equipment and computer-readable recording medium
CN108012270A (en) A kind of method of information processing, equipment and computer-readable recording medium
CN109445945A (en) Memory allocation method, mobile terminal, server and the storage medium of application program
CN107609066A (en) Method, equipment and the computer for clearing up file can storage mediums
CN108449736A (en) A kind of data transmission method, terminal and computer readable storage medium
CN107453984A (en) Method, equipment and the computer replied message can storage medium
CN107466081A (en) A kind of wireless switching method and terminal
CN107484144A (en) A kind of information acquisition method, terminal, server and computer-readable storage medium
CN106888225A (en) A kind of control method of single-sign-on application, mobile terminal and computer-readable medium
CN109711850A (en) A kind of safe payment method, equipment and computer readable storage medium
CN107797825A (en) A kind of data transmission method for uplink, terminal and computer-readable recording medium
CN107182056A (en) A kind of method and terminal for recognizing pseudo-base station
CN107944402A (en) A kind of detection method, device and computer-readable recording medium
CN108183833A (en) A kind of response processing method, device and computer readable storage medium
CN107516051A (en) A kind of data encryption storage method, device and computer-readable recording 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180112

RJ01 Rejection of invention patent application after publication