WO2019237954A1 - Network connection method and device, readable storage medium and intelligent terminal - Google Patents

Network connection method and device, readable storage medium and intelligent terminal Download PDF

Info

Publication number
WO2019237954A1
WO2019237954A1 PCT/CN2019/089665 CN2019089665W WO2019237954A1 WO 2019237954 A1 WO2019237954 A1 WO 2019237954A1 CN 2019089665 W CN2019089665 W CN 2019089665W WO 2019237954 A1 WO2019237954 A1 WO 2019237954A1
Authority
WO
WIPO (PCT)
Prior art keywords
network
wireless network
data
wireless
smart terminal
Prior art date
Application number
PCT/CN2019/089665
Other languages
French (fr)
Chinese (zh)
Inventor
李春林
Original Assignee
奇酷互联网络科技(深圳)有限公司
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 奇酷互联网络科技(深圳)有限公司 filed Critical 奇酷互联网络科技(深圳)有限公司
Publication of WO2019237954A1 publication Critical patent/WO2019237954A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0083Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/14Reselecting a network or an air interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/30Reselection being triggered by specific parameters by measured or perceived connection quality data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/15Setup of multiple wireless link connections
    • H04W76/16Involving different core network technologies, e.g. a packet-switched [PS] bearer in combination with a circuit-switched [CS] bearer
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/30Connection release
    • H04W76/34Selective release of ongoing connections

Definitions

  • the present invention relates to the field of communication technologies, and in particular, to a network connection method, device, readable storage medium, and intelligent terminal.
  • Smart terminals can implement audio and video services, network services, and more.
  • the wireless network may be connected due to a router failure, an expired network, or when the user does not perform authentication or dynamic password input on the wireless network to be used for authentication. Normal but unable to use data communication.
  • the electronic product interrupts the data connection of the data network, so that the electronic product is always in a network-less state, making the electronic product unable to perform data communication, resulting in data information not being received in a timely manner and affecting users.
  • Experience when a user usually uses an electronic product to access the Internet, the wireless network may be connected due to a router failure, an expired network, or when the user does not perform authentication or dynamic password input on the wireless network to be used for authentication. Normal but unable to use data communication.
  • the electronic product interrupts the data connection of the data network, so that the electronic product is always in a network-less state, making the electronic product unable to perform data communication, resulting in data information not being received in a timely manner and affecting users.
  • embodiments of the present invention provide a network connection method, device, readable storage medium, and smart terminal, which solves the problem of inconvenient use of existing network connections.
  • Embodiments of the present invention provide a network connection method, device, readable storage medium, and smart terminal.
  • the specific technical solutions are as follows:
  • a network connection method comprising: when a data network connection is established and connected to a wireless network, disconnecting the data network connection;
  • connection to the wireless network is disconnected, and the connection to the data network is restored.
  • the network connection method provided by the present invention by disconnecting the data network first when the wireless network and the data network are turned on at the same time, avoids the data loss caused by using the data network, and monitors whether the wireless network can perform data communication.
  • the connection to the wireless network is disconnected and the data network connection is restored at the same time, so that it can communicate through the data network, so that the network communication of the smart terminal will not be interrupted, avoiding
  • the problem that the intelligent terminal generated by the wireless network cannot perform data communication and the information cannot be accepted in time due to the absence of the network can solve the problem of inconvenient use of the existing network connection.
  • the method includes:
  • the step of connecting to a wireless network further includes:
  • the step of determining whether the wireless network is capable of data communication includes:
  • step of issuing prompt information includes:
  • the network connection device includes:
  • a first control module configured to disconnect the data network when a data network connection is established and connected to the wireless network
  • a first determining module configured to determine whether the wireless network can perform data communication
  • a second control module configured to: when the first judgment module determines that the wireless network cannot perform data communication, disconnect the wireless network and restore the connection to the data network
  • the apparatus further includes:
  • a third control module configured to issue a prompt message to prompt a user that the data communication of the wireless network is interrupted
  • a second determination module configured to determine whether the wireless network can perform data communication when a signal is received from a user to connect to the wireless network again based on the prompt information
  • a fourth control module configured to add the identification information of the wireless network to a fault queue when the second determination module determines that the wireless network cannot perform data communication
  • a fifth control module is configured to disconnect the data network when the second determination module determines that the wireless network is capable of data communication.
  • the first control module includes:
  • a first determining unit configured to determine, when connected to the wireless network, whether identification information of the wireless network is included in the fault queue
  • the first control unit is configured to disconnect the connection with the wireless network when the first determination unit determines that the identification information of the wireless network is included in the fault queue.
  • Another embodiment of the present invention provides a readable storage medium on which an application program is stored.
  • the program is executed by a processor, the steps of the method provided by the foregoing embodiment are implemented.
  • the intelligent terminal includes a memory and a processor.
  • the memory is configured to store a program that supports a processor to execute the method provided in the foregoing embodiment, and the processor is configured. Is for executing a program stored in the memory.
  • FIG. 1 is a flowchart of a network connection method according to a first embodiment of the present invention.
  • FIG. 2 is a flowchart of a network connection method according to a second embodiment of the present invention.
  • FIG. 3 is a structural block diagram of a first network connection device according to an embodiment of the present invention.
  • FIG. 4 is a structural block diagram of a second network connection device according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a smart terminal according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a network connection method according to a first embodiment of the present invention. The method includes the following steps:
  • Step S101 When a data network connection is established and connected to a wireless network, the data network connection is disconnected.
  • the network connection method is applied to a smart terminal.
  • the smart terminal may be any terminal device including a mobile phone, a tablet computer, a Personal Digital Assistant (PDA), and a vehicle-mounted computer.
  • the smart terminal includes at least a WIFI chip and RF.
  • the intelligent system settings of the terminal include switches corresponding to wireless networks and data networks.
  • the use status of the intelligent terminal includes:
  • the smart terminal uses the target wireless local area network currently connected.
  • the smart terminal uses the currently opened data network.
  • the smart terminal uses the currently connected target wireless local area network and disconnects the data network.
  • the data traffic consumed by the network communication is the data traffic of the wireless local area network.
  • the smart terminal when the smart terminal is connected to the target wireless local area network and the data network is disconnected, its data network switch is on, but there is no data network connection, and the data traffic used by its smart terminal is The data traffic of the wireless local area network, but when the user uses a smart terminal to turn off the wireless network switch or the smart terminal is far away from the wireless local area network and the connection with the wireless local area network is disconnected, its smart terminal will switch to the data network. At this time, the connection to the data network is restored, and data communication is performed through the data network.
  • step S102 it is determined whether the wireless network can perform data communication. If it is, step S103 is performed, and if not, step S104 is performed.
  • the way to determine whether data communication can be performed under the state of the wireless network connection is mainly: every interval Send a data packet to the target server at a first preset time; determine whether a response data packet sent by the target server is received.
  • the smart terminal When the smart terminal is connected to the wireless network, the smart terminal sends a data packet to the target server, and at this time, it is determined whether the wireless network can perform data communication according to whether a response data packet sent by the target server is received. For example, when its smart terminal is connected to a wireless network, it pings the IP address of the target server, and then sends a data packet to the IP address, and then asks the other target server to return a data packet of the same size to determine whether the network connection is connected. How much is extension.
  • the smart terminal After the smart terminal is connected to the wireless network, it sends data packets to the target server every first preset time to determine whether the wireless network can perform data communication at the current time.
  • Step S103 Maintain the connection of the wireless network.
  • the wireless network When it is determined that the wireless network can perform data communication, it indicates that the data communication is normal. At this time, the wireless network connection is maintained so that the intelligent terminal can perform data communication in real time.
  • step S104 the connection to the wireless network is disconnected, and the connection to the data network is restored.
  • the smart terminal when the smart terminal has both a data network and a wireless network connection enabled, and the user uses the smart terminal to connect to the target wireless local area network, and it is determined that the wireless network cannot perform data communication, the smart terminal is disconnected from the wireless network at this time. At the same time, the connection to the data network is restored. At this time, the wireless network is in a no-connection state.
  • the user uses the smart terminal, it mainly performs data communication through the data network.
  • the network connection method by disconnecting the data network first when the wireless network and the data network are turned on at the same time, the traffic loss caused by using the data network is avoided, and whether the wireless network can perform data communication is monitored.
  • the connection to the wireless network is disconnected, and the data network connection is restored at the same time, so that it can communicate through the data network, so that the network communication of the smart terminal will not be interrupted.
  • the problem that the smart terminal generated by the wireless network cannot perform data communication when the network is in a no-network state cannot be accepted in time is solved, and the problem of inconvenient use of the existing network connection is solved.
  • FIG. 2 a flowchart of a network connection method provided in a second embodiment of the present invention.
  • the method can be applied to a smart terminal.
  • the method includes the following steps:
  • Step S201 When a data network connection is established and connected to a wireless network, the data network connection is disconnected.
  • the existing ways to connect to the wireless network include:
  • Method 1 When a user uses a smart terminal to connect to a wireless local area network, the connected wireless local area network does not need to use password authentication. After the wireless network is connected, data communication can be performed directly;
  • Method 2 When a user uses a smart terminal to connect to a WLAN, the connected WLAN needs to be authenticated with a password. When the wireless network is connected, the user needs to manually enter a password to connect to the WLAN;
  • Method 3 When a user uses a smart terminal to connect to a wireless LAN, the connected wireless LAN does not require password authentication. After the wireless network is connected, the wireless network cannot perform data communication. At this time, open the browser to verify the user name and password. After input, the wireless network can perform data communication. At this time, the smart terminal needs authentication to perform data communication;
  • Method 4 When a user uses a smart terminal to connect to a wireless LAN, the connected wireless LAN does not require password authentication. After the wireless network is connected, the wireless network cannot perform data communication. At this time, the browser needs to be opened to obtain a dynamic password, and When the dynamic password is entered correctly, the data connection of the wireless network is realized. At this time, the smart terminal needs dynamic password input to perform data communication.
  • the dynamic password is usually obtained by acquiring the mobile phone number input by the user and sending the dynamic password to the user's mobile phone number.
  • the dynamic password acquisition includes but is not limited to this method.
  • the smart terminal After the smart terminal is connected to the wireless network, it disconnects from the data network.
  • step S202 it is determined whether the wireless network can perform data communication. If it is, step S203 is performed, and if not, step S204 is performed.
  • the way to determine whether data communication can be performed in the state of the wireless network connection is mainly: Send a data packet to the target server at a preset interval; determine whether a response data packet sent by the target server is received.
  • the smart terminal when the smart terminal is connected to a wireless network, it sends a data packet to the target server.
  • the smart terminal When the smart terminal is connected to the wireless network in the above-mentioned manners 1 and 2, the smart terminal is capable of data communication , It will obtain the response data packet sent by the target server, and its smart terminal can determine whether it can perform data communication according to whether the response data packet sent by the server is received.
  • the smart terminal When the smart terminal is connected to the wireless network in the above manners 3 and 4, the smart terminal will obtain the response packet sent by the target server to jump to the target webpage, and the smart terminal will pop up the target at this time.
  • a webpage or when a user uses a browser his browser jumps to a target webpage, so that the user can perform user name, password combination, or dynamic password input verification to achieve data connection of the wireless network.
  • the user does not perform verification on the target webpage, when the smart terminal subsequently sends data packets, it cannot receive the response data packet sent by the target server. At this time, the smart terminal can determine that the wireless network cannot perform data communication.
  • Step S203 Maintain the connection of the wireless network.
  • Step S204 Disconnect the connection to the wireless network and restore the connection to the data network.
  • the smart terminal determines that the wireless network cannot perform wireless communication, it disconnects the wireless network at this time and restores the connection to the data network.
  • the smart terminal determines that the wireless network cannot perform wireless communication, its smart terminal will be disconnected. It is connected to a wireless network, but since the user has not opened a data network, the smart terminal will not forcibly open the data network connection at this time, and its smart terminal is in a network-free state.
  • step S205 a prompt message is sent to prompt the user that the data communication of the wireless network is interrupted.
  • the smart terminal When the smart terminal resumes the connection to the data network, it will issue a prompt message to remind the user that the data communication on the wireless network is interrupted.
  • the steps of sending the prompt message include:
  • the prompt information includes, but is not limited to, vibration information, audio information, or text information.
  • the smart terminal disconnects the wireless network at this time. After the connection to the data network is restored, it can use vibration and text messages to prompt the user. At this time, the smart terminal will continue to vibrate and display the text information of the wireless network interruption on the display interface.
  • the smart terminal stops sending out the prompt message, that is, the smart terminal stops generating vibrations and displays text information on the display interface.
  • the smart terminal sends out a reminder message for a preset time.
  • the smart terminal When the user does not respond to the prompt message, it suspends sending the reminder message.
  • the smart terminal When the smart terminal is in the second preset time, it sends out a reminder message. At this time, the smart terminal When the terminal does not obtain the confirmation information sent by the user, it sends out a prompt message every second preset time interval, and stops sending out the prompt message after the user responds to the prompt message.
  • its smart terminal can send prompt information to prompt the user to avoid the problem of excessive use caused by the user's continuous use of the data traffic of the data network in the smart terminal.
  • the wireless network when the wireless network cannot perform data communication, its smart terminal will detect the current data consumption and determine whether to restore the data network connection based on the data consumption. For example, when a user is on a wireless network When the application with low data consumption is used under the connection, it resumes the connection to the data network. For example, when the user connects to the wireless network for standby, when his wireless network connection is unavailable, his smart terminal resumes the connection to the data network, which is normal at this time. Communication of background data such as instant messaging applications.
  • the smart terminal When the user is using high data consumption applications such as video and download under the wireless network connection, and his router fails, his smart terminal will disconnect the wireless network connection and issue a prompt message to remind the user that the wireless network data communication is interrupted . At the same time, the smart terminal will also send a request message to prompt the user whether to perform data communication on the application with high data consumption, so as to consume high data traffic through the data network.
  • the smart terminal can respond to the data communication of the low data consumption application in the background.
  • the data network connection is restored, and at the same time, the application with high data consumption is responded to perform data communication on the application through the data network. ;
  • the smart terminal can respond to data communication of the application with low data consumption in the background.
  • the user can reconnect to the wireless network or other networks according to the prompt information. Or, under high data consumption, the user can determine whether to continue the data network connection according to the request information.
  • step S206 when a signal is received from the user to reconnect to the wireless network based on the prompt information, it is determined whether the wireless network can perform data communication. If so, step S207 is performed; otherwise, step S208 is performed.
  • Step S207 Disconnect the data network.
  • the smart terminal judges whether the wireless network can continue data communication at this time, and when it is determined that the data communication can continue, it breaks. Open a data network connection. At this time, the smart terminal is in a connected state of the wireless network.
  • Step S208 Add the identification information of the wireless network to a fault queue.
  • the wireless network identification information is added to the fault queue. At this time, the wireless network connection is disconnected, the data network connection is restored, and a prompt message is issued until the user confirms the prompt. information.
  • the smart terminal stores a fault queue including identification information of each wireless network.
  • a user uses the smart terminal to connect to the wireless network, it can use the following steps to implement:
  • the user when the user turns on the wireless network switch of the smart terminal, his smart terminal will obtain all the wireless local area networks that can be received in the current environment, and connect the wireless LAN to the wireless network that he has used.
  • the target wireless local area network with the best signal strength in each saved wireless local area network For example, a user using a smart terminal to obtain the current environment includes a first wireless local area network, a second wireless local area network, When there are three wireless local area networks, the second wireless local area network and the third wireless local area network are previously saved wireless networks used by the user. At this time, the smart terminal preferentially connects to the second wireless local area network when the user does not perform any operation.
  • the smart terminal will obtain whether the stored fault queue includes the identification information of the second wireless local area network.
  • the intelligent terminal connects to the second wireless local area network;
  • the smart terminal disconnects from the second wireless local area network and automatically connects to the third wireless local area network with a weak signal strength. Therefore, the problem that data communication cannot be performed normally due to being connected to the second wireless local area network in the fault queue can be avoided.
  • the smart terminal determines whether the second wireless local area network can perform data communication. When the second wireless local area network can perform data communication, the second wireless local area network is removed from the fault queue. At this time, when the user uses a smart terminal to connect to the wireless network, the smart terminal can give priority to the strength of each wireless local area network. Connected to the second wireless local area network.
  • the user can send a prompt message when the wireless network is interrupted to prompt the user to troubleshoot the wireless network or replace other wireless networks in time to avoid the traffic loss caused by using the data network in real time.
  • the smart terminal adds the wireless network to the fault queue. At this time, the smart terminal will skip the faulty wireless network during the next wireless network connection. Connecting to other normal wireless networks for data communication makes the user experience better.
  • an embodiment of the present invention provides a network connection device.
  • a structural block diagram of the first network connection device includes:
  • the first control module 101 is configured to disconnect the data network when a data network connection is established and connected to a wireless network.
  • the first determining module 102 is configured to determine whether the wireless network can perform data communication.
  • the second control module 103 is configured to, when the first determining module 102 determines that the wireless network cannot perform data communication, disconnect the wireless network and restore the connection to the data network.
  • the third control module 104 is configured to send a prompt message to prompt the user that the data communication of the wireless network is interrupted.
  • the second determining module 105 is configured to determine whether the wireless network can perform data communication when a signal is received from a user to connect to the wireless network again based on the prompt information.
  • the fourth control module 106 is configured to add the identification information of the wireless network to the fault queue when the second determination module 105 determines that the wireless network cannot perform data communication.
  • the fifth control module 107 is configured to disconnect the data network when the second determination module determines 105 that the wireless network is capable of data communication.
  • the first control module 101 includes:
  • a first determining unit is configured to determine, when connected to the wireless network, whether identification information of the wireless network is included in the fault queue.
  • the first control unit is configured to disconnect the connection with the wireless network when the first determination unit determines that the identification information of the wireless network is included in the fault queue.
  • the first judgment module 102 includes:
  • a second control unit configured to send a data packet to the target server every first preset time interval
  • the second determining unit is configured to determine whether a response data packet sent by the target server is received.
  • the third control module 104 includes:
  • a third control unit configured to send the prompt information every second preset time interval
  • a fourth control unit is configured to stop issuing the prompt information when receiving a confirmation message from the user in response to the prompt information.
  • Embodiment 4 is a diagrammatic representation of Embodiment 4:
  • An embodiment of the present invention provides an intelligent terminal.
  • the intelligent terminal includes a memory and a processor.
  • the memory is configured to store a program that supports the processor to execute the network connection method provided by the foregoing embodiment.
  • the processor is configured to execute the program in the memory. Stored programs.
  • the smart terminal may further include a communication interface for communicating with other devices or a communication network.
  • the intelligent terminal may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), and a vehicle-mounted computer.
  • this embodiment also provides a readable storage medium for storing application program code for any one of the network connection devices provided in the foregoing embodiments, and the instructions included in the program code are implemented when the processor executes the instructions.
  • FIG. 5 is a schematic structural diagram of a smart terminal according to an embodiment of the present invention.
  • the smart terminal includes: a radio frequency (RF) circuit 510, a memory 520, an input unit 530, a display unit 540, a sensor 550, an audio circuit 560, a wireless fidelity (WiFi) module 570, and processing 580, and power supply 590 and other components.
  • RF radio frequency
  • the RF circuit 510 may be used to receive and send signals during the process of transmitting and receiving information.
  • the downlink information of the base station is received and processed by the processor 580; in addition, the uplink data of the design is sent to the base station.
  • the RF circuit 510 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like.
  • the RF circuit 510 can also communicate with a network and other devices through wireless communication.
  • the above wireless communication can use any communication standard or protocol, including, but not limited to, Global System of Mobile (GSM), General Packet Radio Service (GPRS), and Code Division Multiple Access Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), E-mail, Short Messaging Service (SMS), etc.
  • GSM Global System of Mobile
  • GPRS General Packet Radio Service
  • CDMA Code Division Multiple Access Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • E-mail Short Messaging Service
  • the memory 520 may be used to store software programs and modules.
  • the processor 580 executes various functional applications and data processing of the smart terminal by running the software programs and modules stored in the memory 520.
  • the memory 520 may mainly include a storage program area and a storage data area, where the storage program area may store an operating system, at least one application required by a function (such as a sound playback function, an image playback function, etc.), etc .; Data (such as audio data, phone book, etc.) created by the use of mobile phones.
  • the memory 520 may include a high-speed random access memory, and may further include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the input unit 530 may be used to receive inputted numeric or character information, and generate key signal inputs related to user settings and function control of the smart terminal.
  • the input unit 530 may include a touch panel 531 and other input devices 532.
  • Touch panel 531 also known as touch screen, can collect user's touch operations on or near it (for example, the user uses a finger, stylus or any suitable object or accessory on touch panel 531 or near touch panel 531 Operation), and drive the corresponding connection device according to a preset program.
  • the touch panel 531 may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the user's touch position, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into contact coordinates, and sends it To the processor 580, and can receive and execute the commands sent by the processor 580.
  • the touch panel 531 may be implemented by using various types such as a resistive type, a capacitive type, an infrared type, and a surface acoustic wave.
  • the input unit 530 may include other input devices 532.
  • the other input devices 532 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
  • the display unit 540 may be used to display information input by the user or information provided to the user and various menus of the smart terminal.
  • the display unit 540 may include a display panel 541.
  • the display panel 541 may be configured by using a liquid crystal display (Liquid Crystal Display, LCD), an organic light emitting diode (Organic Light-Emitting Diode, OLED), and the like.
  • the touch panel 531 may cover the display panel 541. When the touch panel 531 detects a touch operation on or near the touch panel 531, the touch panel 531 transmits the touch operation to the processor 580 to determine the type of the touch event. The type provides a corresponding visual output on the display panel 541.
  • the touch panel 531 and the display panel 541 are implemented as two separate components to implement the input and input functions of the mobile phone, in some embodiments, the touch panel 531 and the display panel 541 can be integrated and Realize the input and output functions of mobile phones.
  • the smart terminal may further include at least one sensor 550, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 541 according to the brightness of the ambient light.
  • the audio circuit 560, the speaker 561, and the microphone 562 can provide an audio interface between the user and the smart terminal.
  • the audio circuit 560 may transmit the received electrical data converted electrical signals to a speaker 561, which is converted into a sound signal by the speaker 561.
  • the microphone 562 converts the collected sound signal into an electrical signal
  • the audio circuit 560 After receiving, it is converted into audio data, and then the audio data output processor 580 is processed and then sent to, for example, another smart terminal via the RF circuit 510, or the audio data is output to the memory 520 for further processing.
  • WiFi is a short-range wireless transmission technology.
  • the smart terminal can provide users with wireless broadband Internet access through the WiFi module 570.
  • FIG. 5 shows the WiFi module 570, it can be understood that it does not belong to the necessary configuration of the smart terminal, and can be omitted as needed without changing the essence of the invention.
  • the processor 580 is a control center of the intelligent terminal, and uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and / or modules stored in the memory 520, and calling data stored in the memory 520, Perform various functions and process data of the smart terminal, so as to monitor the smart terminal as a whole.
  • the processor 580 may include one or more processing units; preferably, the processor 580 may integrate an application processor, and the application processor mainly processes an operating system, a user interface, and an application program.
  • the processor 580 may be integrated with a modem processor, or the modem processor may not be integrated into the processor 580.
  • the smart terminal also includes a power supply 590 (such as a battery) that supplies power to various components.
  • a power supply 590 can be logically connected to the processor 580 through a power management system, thereby implementing functions such as managing charging, discharging, and power management through the power management system .
  • the smart terminal may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
  • a network connection method, device, smart terminal, and application program product of a readable storage medium provided by the embodiments of the present invention include a readable storage medium storing program code, and the instructions included in the program code can be used to execute the foregoing
  • program code the instructions included in the program code can be used to execute the foregoing
  • the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a smart terminal readable storage medium.
  • the smart terminal application program is stored in a storage medium.
  • Several instructions are included to enable a smart terminal (which may be a mobile phone, a tablet computer, or a PDA, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention.
  • the foregoing storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disks or optical disks and other media that can store program codes .
  • a network connection method comprising:
  • connection to the wireless network is disconnected, and the connection to the data network is restored.
  • the network connection method according to A1 after the step of restoring the connection to the data network, comprises:
  • A3 The network connection method according to A2, wherein the step of connecting to a wireless network further comprises:
  • the step of determining whether the wireless network is capable of data communication includes:
  • A5. The network connection method according to A2, wherein the step of sending out a prompt message comprises:
  • a network connection device the network connection device includes:
  • a first control module configured to disconnect the data network when a data network connection is established and connected to the wireless network
  • a first determining module configured to determine whether the wireless network can perform data communication
  • a second control module is configured to, when the first judgment module determines that the wireless network cannot perform data communication, disconnect the wireless network and restore the connection to the data network.
  • the network connection device according to B1, the device further comprising:
  • a third control module configured to issue a prompt message to prompt a user that the data communication of the wireless network is interrupted
  • a second determining module configured to determine whether the wireless network can perform data communication when a signal is received from a user to connect to the wireless network again based on the prompt information
  • a fourth control module configured to add the identification information of the wireless network to a fault queue when the second determination module determines that the wireless network cannot perform data communication
  • a fifth control module is configured to disconnect the data network when the second determination module determines that the wireless network is capable of data communication.
  • the first control module includes:
  • a first determining unit configured to determine, when connected to the wireless network, whether identification information of the wireless network is included in the fault queue
  • the first control unit is configured to disconnect the connection with the wireless network when the first determination unit determines that the identification information of the wireless network is included in the fault queue.
  • the network connection device according to B2, the first determining module comprises:
  • a second control unit configured to send a data packet to the target server every first preset time interval
  • the second determining unit is configured to determine whether a response data packet sent by the target server is received.
  • the third control module includes:
  • a third control unit configured to send the prompt information every second preset time interval
  • a fourth control unit is configured to stop issuing the prompt information when receiving a confirmation message from the user in response to the prompt information.
  • a readable storage medium having stored thereon an application program that, when executed by a processor, implements the steps of the method according to any one of A1 to A5.
  • An intelligent terminal the intelligent terminal includes a memory and a processor, the memory is configured to store a program that supports the processor to execute the method of any one of A1 to A5, and the processor is configured to execute all The programs stored in the memory are described.

Landscapes

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

Abstract

Disclosed by the present invention are a network connection method and device, a readable storage medium and an intelligent terminal. The method comprises: upon connecting to a wireless network, a connection to a data network already being established, disconnecting the connection to the data network; determining whether the wireless network is capable of performing data communication; and if not, disconnecting the connection to the wireless network, and restoring the connection to the data network. In the network connection method provided by the present invention, it is determined, upon connecting to a wireless network, whether the wireless network is capable of data communication, and if not, the connection with the wireless network is disconnected and connection with a data network is activated, such that network communication in an intelligent terminal is not interrupted, resolving the issue of inconvenience of existing network connections.

Description

网络连接方法、装置、可读存储介质及智能终端Network connection method, device, readable storage medium and intelligent terminal 技术领域Technical field
本发明涉及通讯技术领域,特别是涉及一种网络连接方法、装置、可读存储介质及智能终端。The present invention relates to the field of communication technologies, and in particular, to a network connection method, device, readable storage medium, and intelligent terminal.
背景技术Background technique
随着科学技术的发展,其电子设备在人们的使用中得到的迅速普及,电子产品开始丰富着人们的生活,其电子产品包括如智能终端、智能平板、智能可穿戴设备等,其中用户通过使用智能终端可实现音视频服务、网络服务等。With the development of science and technology, its electronic devices have been rapidly popularized in people's use. Electronic products have begun to enrich people's lives. Their electronic products include smart terminals, smart tablets, and smart wearable devices. Smart terminals can implement audio and video services, network services, and more.
现有电子产品大都采用数据网络或者无线网络进行上网使用,其中用户单独使用数据网络或无线网络时,其电子产品采用对应的通讯方式为用户提供上网服务,当用户同时开启有数据网络和无线网络时,其电子产品优选使用无线网络,同时关闭数据网络,使得可节约数据网络的数据损耗。Most of the existing electronic products use data networks or wireless networks for Internet access. When users use data networks or wireless networks alone, their electronic products use corresponding communication methods to provide users with Internet access services. At this time, its electronic products preferably use a wireless network and turn off the data network at the same time, so that the data loss of the data network can be saved.
然后,现有技术中,用户平时使用电子产品进行上网时,其可能由于路由器故障、网络过期、或用户未对需鉴权使用的无线网络进行鉴权或动态密码输入时,其无线网络处于连接正常但无法进行数据通讯的使用,此时该电子产品又中断数据网络的数据连接,使得电子产品一直处于无网络的状态,使得电子产品无法进行数据通讯,导致数据信息无法及时收到,影响用户的使用体验。Then, in the prior art, when a user usually uses an electronic product to access the Internet, the wireless network may be connected due to a router failure, an expired network, or when the user does not perform authentication or dynamic password input on the wireless network to be used for authentication. Normal but unable to use data communication. At this time, the electronic product interrupts the data connection of the data network, so that the electronic product is always in a network-less state, making the electronic product unable to perform data communication, resulting in data information not being received in a timely manner and affecting users. Experience.
发明内容Summary of the Invention
基于此,本发明实施例提出一种网络连接方法、装置、可读存储介质及智能终端,解决现有网络连接使用不便捷的问题。Based on this, embodiments of the present invention provide a network connection method, device, readable storage medium, and smart terminal, which solves the problem of inconvenient use of existing network connections.
本发明实施例提供一种网络连接方法、装置、可读存储介质及智能终端,具体技术方案如下:Embodiments of the present invention provide a network connection method, device, readable storage medium, and smart terminal. The specific technical solutions are as follows:
一种网络连接方法,所述方法包括:当建立有数据网络连接且连接到无线网络时,断开所述数据网络的连接;A network connection method, the method comprising: when a data network connection is established and connected to a wireless network, disconnecting the data network connection;
判断所述无线网络是否能够进行数据通讯;Determining whether the wireless network is capable of data communication;
若否,则断开与所述无线网络的连接,且恢复所述数据网络的连接。If not, the connection to the wireless network is disconnected, and the connection to the data network is restored.
本发明提供的网络连接方法,通过在无线网络和数据网络同时开启的情况下先断开数据网络的连接,使得避免使用数据网络产生的流量损耗,并监测该无线网络是否能够进行数据通讯,当监测到该无线网络不 能够进行数据通讯时,则断开与该无线网络的连接,同时恢复数据网络的连接,使得其可通过数据网络进行通讯,使得智能终端的网络通讯不会中断,避免由于同时连接无线网络和数据网络时,由于无线网络无法进行数据通讯产生的智能终端处于无网络状态下导致的信息无法及时接受的问题,解决了现有网络连接使用不便捷的问题。The network connection method provided by the present invention, by disconnecting the data network first when the wireless network and the data network are turned on at the same time, avoids the data loss caused by using the data network, and monitors whether the wireless network can perform data communication. When it is detected that the wireless network cannot perform data communication, the connection to the wireless network is disconnected and the data network connection is restored at the same time, so that it can communicate through the data network, so that the network communication of the smart terminal will not be interrupted, avoiding When the wireless network and the data network are connected at the same time, the problem that the intelligent terminal generated by the wireless network cannot perform data communication and the information cannot be accepted in time due to the absence of the network can solve the problem of inconvenient use of the existing network connection.
进一步地,所述恢复所述数据网络的连接的步骤之后包括:Further, after the step of restoring the connection of the data network, the method includes:
发出提示信息,以提示用户所述无线网络的数据通讯发生中断;Sending a prompt message to remind the user that the data communication of the wireless network is interrupted;
当接收到用户基于所述提示信息再次连接至所述无线网络的信号时,判断所述无线网络是否能够进行数据通讯;Determining whether the wireless network is capable of data communication when a signal is received from a user to connect to the wireless network again based on the prompt information;
若否,则将所述无线网络的标识信息加入至故障队列;If not, adding the identification information of the wireless network to a fault queue;
若是,则断开所述数据网络的连接。If so, the data network is disconnected.
进一步地,所述连接到无线网络的步骤还包括:Further, the step of connecting to a wireless network further includes:
当连接至所述无线网络时,判断在所述故障队列中是否包括所述无线网络的标识信息;When connecting to the wireless network, determining whether the identification information of the wireless network is included in the fault queue;
若是,则断开与所述无线网络的连接。If yes, disconnect from the wireless network.
进一步地,所述判断所述无线网络是否能够进行数据通讯的步骤包括:Further, the step of determining whether the wireless network is capable of data communication includes:
每间隔第一预设时间发送数据包至目标服务器;Send a data packet to the target server every first preset time interval;
判断是否接收到所述目标服务器发送的响应数据包。Determine whether a response data packet sent by the target server is received.
进一步地,所述发出提示信息的步骤包括:Further, the step of issuing prompt information includes:
每间隔第二预设时间发出所述提示信息;Sending the prompt message every second preset time;
当接收到用户响应所述提示信息的确认信息时,停止发出所述提示信息。When receiving a confirmation message from the user in response to the prompt information, stop sending the prompt information.
本发明的另一个实施例提出一种网络连接装置,所述网络连接装置包括:Another embodiment of the present invention provides a network connection device. The network connection device includes:
第一控制模块,用于当建立有数据网络连接且连接到无线网络时,断开所述数据网络的连接;A first control module, configured to disconnect the data network when a data network connection is established and connected to the wireless network;
第一判断模块,用于判断所述无线网络是否能够进行数据通讯;A first determining module, configured to determine whether the wireless network can perform data communication;
第二控制模块,用于当所述第一判断模块判断出所述无线网络不能够进行数据通讯时,则断开与所述无线网络的连接,且恢复所述数据网络的连接A second control module, configured to: when the first judgment module determines that the wireless network cannot perform data communication, disconnect the wireless network and restore the connection to the data network
进一步地,所述装置还包括:Further, the apparatus further includes:
第三控制模块,用于发出提示信息,以提示用户所述无线网络的数据通讯发生中断;A third control module, configured to issue a prompt message to prompt a user that the data communication of the wireless network is interrupted;
第二判断模块,用于当接收到用户基于所述提示信息再次连接至所 述无线网络的信号时,判断所述无线网络是否能够进行数据通讯;A second determination module, configured to determine whether the wireless network can perform data communication when a signal is received from a user to connect to the wireless network again based on the prompt information;
第四控制模块,用于当所述第二判断模块判断出所述无线网络不能够进行数据通讯时,则将所述无线网络的标识信息加入至故障队列;A fourth control module, configured to add the identification information of the wireless network to a fault queue when the second determination module determines that the wireless network cannot perform data communication;
第五控制模块,用于当所述第二判断模块判断出所述无线网络能够进行数据通讯时,则断开所述数据网络的连接。A fifth control module is configured to disconnect the data network when the second determination module determines that the wireless network is capable of data communication.
进一步地,所述第一控制模块包括:Further, the first control module includes:
第一判断单元,用于当连接至所述无线网络时,判断在所述故障队列中是否包括所述无线网络的标识信息;A first determining unit, configured to determine, when connected to the wireless network, whether identification information of the wireless network is included in the fault queue;
第一控制单元,用于当所述第一判断单元判断在所述故障队列中包括所述无线网络的标识信息时,则断开与所述无线网络的连接。The first control unit is configured to disconnect the connection with the wireless network when the first determination unit determines that the identification information of the wireless network is included in the fault queue.
本发明的另一个实施例提出一种可读存储介质,其上存储有应用程序,该程序被处理器执行时实现上述实施例提出的方法的步骤。Another embodiment of the present invention provides a readable storage medium on which an application program is stored. When the program is executed by a processor, the steps of the method provided by the foregoing embodiment are implemented.
本发明的另一个实施例提出一种智能终端,所述智能终端包括存储器以及处理器,所述存储器用于存储支持处理器执行上述实施例提出的所述方法的程序,所述处理器被配置为用于执行所述存储器中存储的程序。Another embodiment of the present invention provides an intelligent terminal. The intelligent terminal includes a memory and a processor. The memory is configured to store a program that supports a processor to execute the method provided in the foregoing embodiment, and the processor is configured. Is for executing a program stored in the memory.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1为本发明第一实施例提出的网络连接方法的流程图。FIG. 1 is a flowchart of a network connection method according to a first embodiment of the present invention.
图2为本发明第二实施例提出的网络连接方法的流程图。FIG. 2 is a flowchart of a network connection method according to a second embodiment of the present invention.
图3为本发明实施例所提供的第一种网络连接装置的结构框图。FIG. 3 is a structural block diagram of a first network connection device according to an embodiment of the present invention.
图4为本发明实施例所提供的第二种网络连接装置的结构框图。FIG. 4 is a structural block diagram of a second network connection device according to an embodiment of the present invention.
图5为本发明实施例所提供的智能终端的结构示意图。FIG. 5 is a schematic structural diagram of a smart terminal according to an embodiment of the present invention.
具体实施方式detailed description
为使本发明的上述目的、特征和优点能够更加明显易懂,下面结合附图对本发明的具体实施方式做详细的说明。在下面的描述中阐述了很多具体细节以便于充分理解本发明。但是本发明能够以很多不同于在此描述的其它方式来实施,本领域技术人员可以在不违背本发明内涵的情况下做类似改进,因此本发明不受下面公开的具体实施的限制。In order to make the foregoing objects, features, and advantages of the present invention more comprehensible, specific embodiments of the present invention are described in detail below with reference to the accompanying drawings. Numerous specific details are set forth in the following description in order to fully understand the present invention. However, the present invention can be implemented in many other ways than described herein, and those skilled in the art can make similar improvements without departing from the content of the present invention, so the present invention is not limited by the specific implementations disclosed below.
实施例一:Embodiment one:
请查阅图1,为本发明的第一实施例提出的网络连接方法的流程图,该方法包括以下步骤:Please refer to FIG. 1, which is a flowchart of a network connection method according to a first embodiment of the present invention. The method includes the following steps:
步骤S101,当建立有数据网络连接且连接到无线网络时,断开所述数据网络的连接。Step S101: When a data network connection is established and connected to a wireless network, the data network connection is disconnected.
其中,该网络连接方法应用于智能终端,该智能终端可以为包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、车载电脑等任意终端设备,其智能终端中至少包括WIFI芯片以及RF电路,用以实现其无线网络以及数据网络的通讯。其中当用户使用该智能终端进行数据通讯时,其可根据当前的使用状态以确定无线网络或数据网络的使用。The network connection method is applied to a smart terminal. The smart terminal may be any terminal device including a mobile phone, a tablet computer, a Personal Digital Assistant (PDA), and a vehicle-mounted computer. The smart terminal includes at least a WIFI chip and RF. A circuit for communication between its wireless network and data network. When the user uses the smart terminal for data communication, it can determine the use of the wireless network or the data network according to the current use status.
其中,需要指出的是,该终端智能的系统设置中包括对应无线网络以及数据网络的开关,此时智能终端的使用状态包括:It should be noted that the intelligent system settings of the terminal include switches corresponding to wireless networks and data networks. At this time, the use status of the intelligent terminal includes:
1.当用户在智能终端中只开启有数据网络的连接时,其智能终端使用当前开启的数据网络。1. When the user only opens the connection with the data network in the smart terminal, his smart terminal uses the currently opened data network.
2.当用户在智能终端中只开启有无线网络(WLAN,Wireless Local Area Networks),但未连接至任何智能终端当前所能搜索到的无线局域网时,其智能终端处于无网络状态。2. When the user only has wireless networks (WLAN, Wireless Local Area Networks) in the smart terminal, but is not connected to the wireless local area network that can be searched by any smart terminal, his smart terminal is in a no-network state.
3.当用户在智能终端中只开启有无线网络,且连接至一目标无线局域网时,其智能终端使用当前连接的目标无线局域网。3. When the user has only the wireless network turned on in the smart terminal and connects to a target wireless local area network, the smart terminal uses the target wireless local area network currently connected.
4.当用户在智能终端中同时开启有数据网络和无线网络的连接,但无线网络未连接至任何智能终端当前所能搜索到的无线局域网时,其智能终端使用当前开启的数据网络。4. When the user simultaneously opens a connection between the data network and the wireless network in the smart terminal, but the wireless network is not connected to the wireless local area network that any smart terminal can currently search for, the smart terminal uses the currently opened data network.
5.当用户在智能终端中同时开启有数据网络和无线网络的连接,且用户使用智能终端连接至目标无线局域网时,其智能终端使用当前连接的目标无线局域网,且断开数据网络的连接,此时用户在使用智能终端时,其网络通讯所消耗的数据流量均为该无线局域网的数据流量。5. When the user opens both the data network and the wireless network connection in the smart terminal, and the user uses the smart terminal to connect to the target wireless local area network, the smart terminal uses the currently connected target wireless local area network and disconnects the data network. At this time, when the user uses the smart terminal, the data traffic consumed by the network communication is the data traffic of the wireless local area network.
其中,需要指出的是,在智能终端连接至目标无线局域网,且断开数据网络的连接时,其数据网络的开关是处于开启状态,但是没有数据网络的连接,其智能终端使用的数据流量为无线局域网的数据流量,但当用户使用智能终端关闭无线网络的开关或该智能终端与该无线局域网相处距离较远而导致断开与该无线局域网的连接时,其智能终端将切换至数据网络,此时恢复与数据网络的连接,并通过数据网络进行数据通讯。It should be noted that when the smart terminal is connected to the target wireless local area network and the data network is disconnected, its data network switch is on, but there is no data network connection, and the data traffic used by its smart terminal is The data traffic of the wireless local area network, but when the user uses a smart terminal to turn off the wireless network switch or the smart terminal is far away from the wireless local area network and the connection with the wireless local area network is disconnected, its smart terminal will switch to the data network. At this time, the connection to the data network is restored, and data communication is performed through the data network.
步骤S102,判断所述无线网络是否能够进行数据通讯,若是执行步骤S103,若否执行步骤S104。In step S102, it is determined whether the wireless network can perform data communication. If it is, step S103 is performed, and if not, step S104 is performed.
其中当用户使用智能终端连接至无线网络时,其智能终端会判断其连接的无线网络是否能够进行数据通讯,其判断在该无线网络连接的状态下是否能够进行数据通讯的方式主要为:每间隔第一预设时间发送数据包至目标服务器;判断是否接收到目标服务器发送的响应数据包。When a user uses a smart terminal to connect to a wireless network, his smart terminal will determine whether the connected wireless network can perform data communication. The way to determine whether data communication can be performed under the state of the wireless network connection is mainly: every interval Send a data packet to the target server at a first preset time; determine whether a response data packet sent by the target server is received.
其中在智能终端连接至无线网络时,其智能终端会发送数据包至目标服务器,此时根据是否接收到目标服务器发送的响应数据包确定该无线网络是否能够进行数据通讯。例如其智能终端连接至无线网络时,其通过Ping目标服务器的IP地址,此时给该IP地址发送一个数据包,再要求对方目标服务器返回一个同样大小的数据包来确定网络连接是否连通,时延是多少。When the smart terminal is connected to the wireless network, the smart terminal sends a data packet to the target server, and at this time, it is determined whether the wireless network can perform data communication according to whether a response data packet sent by the target server is received. For example, when its smart terminal is connected to a wireless network, it pings the IP address of the target server, and then sends a data packet to the IP address, and then asks the other target server to return a data packet of the same size to determine whether the network connection is connected. How much is extension.
智能终端在连接至无线网络后,其每隔第一预设时间均会发送数据包至目标服务器,以判断无线网络在当前时间是否能够进行数据通讯。After the smart terminal is connected to the wireless network, it sends data packets to the target server every first preset time to determine whether the wireless network can perform data communication at the current time.
步骤S103,保持所述无线网络的连接。Step S103: Maintain the connection of the wireless network.
其中,当判断出无线网络能够进行数据通讯时,则说明数据通讯正常。此时保持该无线网络的连接,以使智能终端可实时进行数据通讯。When it is determined that the wireless network can perform data communication, it indicates that the data communication is normal. At this time, the wireless network connection is maintained so that the intelligent terminal can perform data communication in real time.
步骤S104,断开与所述无线网络的连接,且恢复所述数据网络的连接。In step S104, the connection to the wireless network is disconnected, and the connection to the data network is restored.
其中,在智能终端同时开启有数据网络和无线网络的连接,且用户使用智能终端连接至目标无线局域网时,判断出无线网络不能够进行数据通讯时,此时该智能终端断开与无线网络的连接,同时恢复数据网络的连接,此时无线网络处于无连接状态,用户使用该智能终端时,其主要通过数据网络进行数据通讯。Among them, when the smart terminal has both a data network and a wireless network connection enabled, and the user uses the smart terminal to connect to the target wireless local area network, and it is determined that the wireless network cannot perform data communication, the smart terminal is disconnected from the wireless network at this time. At the same time, the connection to the data network is restored. At this time, the wireless network is in a no-connection state. When the user uses the smart terminal, it mainly performs data communication through the data network.
本发明实施例提供的网络连接方法,通过在无线网络和数据网络同时开启的情况下先断开数据网络的连接,使得避免使用数据网络产生的流量损耗,并监测该无线网络是否能够进行数据通讯,当监测到该无线网络不能够进行数据通讯时,则断开与该无线网络的连接,同时恢复数据网络的连接,使得其可通过数据网络进行通讯,使得智能终端的网络通讯不会中断,避免由于同时连接无线网络和数据网络时,由于无线网络无法进行数据通讯产生的智能终端处于无网络状态下导致的信息无法及时接受的问题,解决了现有网络连接使用不便捷的问题。In the network connection method provided by the embodiment of the present invention, by disconnecting the data network first when the wireless network and the data network are turned on at the same time, the traffic loss caused by using the data network is avoided, and whether the wireless network can perform data communication is monitored. When it is detected that the wireless network cannot perform data communication, the connection to the wireless network is disconnected, and the data network connection is restored at the same time, so that it can communicate through the data network, so that the network communication of the smart terminal will not be interrupted. When the wireless network and the data network are connected at the same time, the problem that the smart terminal generated by the wireless network cannot perform data communication when the network is in a no-network state cannot be accepted in time is solved, and the problem of inconvenient use of the existing network connection is solved.
实施例二:Embodiment two:
请查阅图2,本发明的第二实施例中提供的网络连接方法的流程图,该方法可应用于智能终端,该方法包括以下步骤:Please refer to FIG. 2, a flowchart of a network connection method provided in a second embodiment of the present invention. The method can be applied to a smart terminal. The method includes the following steps:
步骤S201,当建立有数据网络连接且连接到无线网络时,断开所述数据网络的连接。Step S201: When a data network connection is established and connected to a wireless network, the data network connection is disconnected.
其中,现有连接到无线网络的方式包括有:Among them, the existing ways to connect to the wireless network include:
方式一:用户使用智能终端连接至一无线局域网时,其连接的无线局域网无需使用密码验证,在无线网络连接以后,可直接进行数据通讯;Method 1: When a user uses a smart terminal to connect to a wireless local area network, the connected wireless local area network does not need to use password authentication. After the wireless network is connected, data communication can be performed directly;
方式二:用户使用智能终端连接至一无线局域网时,其连接的无线 局域网需使用密码验证,在无线网络进行连接时,其需要用户进行手动输入密码以连接至该无线局域网;Method 2: When a user uses a smart terminal to connect to a WLAN, the connected WLAN needs to be authenticated with a password. When the wireless network is connected, the user needs to manually enter a password to connect to the WLAN;
方式三:用户使用智能终端连接至一无线局域网时,其连接的无线局域网无需使用密码验证,在无线网络连接以后,无线网络不能进行数据通讯,此时在打开浏览器进行用户名以及密码的正确输入后,无线网络可进行数据通讯,此时智能终端需要认证鉴权才能进行数据通讯;Method 3: When a user uses a smart terminal to connect to a wireless LAN, the connected wireless LAN does not require password authentication. After the wireless network is connected, the wireless network cannot perform data communication. At this time, open the browser to verify the user name and password. After input, the wireless network can perform data communication. At this time, the smart terminal needs authentication to perform data communication;
方式四:用户使用智能终端连接至一无线局域网时,其连接的无线局域网无需使用密码验证,在无线网络连接以后,无线网络不能进行数据通讯,此时需打开浏览器进行动态密码的获取,并在动态密码的输入正确时,实现无线网络的数据连接。此时智能终端需要动态密码输入才能进行数据通讯。其中在现有技术中,动态密码的获取通常采用获取用户输入的手机号,并发送动态密码至用户的手机号中,其中本实施例中,该动态密码的获取包括但不限于此方式。Method 4: When a user uses a smart terminal to connect to a wireless LAN, the connected wireless LAN does not require password authentication. After the wireless network is connected, the wireless network cannot perform data communication. At this time, the browser needs to be opened to obtain a dynamic password, and When the dynamic password is entered correctly, the data connection of the wireless network is realized. At this time, the smart terminal needs dynamic password input to perform data communication. Wherein in the prior art, the dynamic password is usually obtained by acquiring the mobile phone number input by the user and sending the dynamic password to the user's mobile phone number. In this embodiment, the dynamic password acquisition includes but is not limited to this method.
其中,智能终端连接到无线网络后,其断开与数据网络的连接。Among them, after the smart terminal is connected to the wireless network, it disconnects from the data network.
需要指出的是,当用户使用智能终端关闭无线网络的开关或该智能终端与该无线局域网相处距离较远而导致断开与该无线局域网的连接时,其智能终端将切换至数据网络,当用户使用智能终端重新连接至该无线局域网时,若重新连接至方式一、方式二采用的无线局域网时,其智能终端可直接连接至该无线局域网;若重新连接至方式三、方式四采用的无线局域网时,其智能终端需重新认证鉴权或动态密码输入才能进行无线网络的数据通讯,此时用户未对智能终端进行重新认证鉴权或动态密码输入时,则智能终端连接至无线局域网,但是处于不能进行数据通讯的状态。It should be pointed out that when a user uses a smart terminal to turn off the switch of the wireless network or the smart terminal is far away from the wireless local area network and the connection with the wireless local area network is disconnected, its smart terminal will switch to the data network. When using a smart terminal to reconnect to the wireless local area network, if it reconnects to the wireless local area network used in method 1 and method 2, its intelligent terminal can directly connect to the wireless local area network; if it reconnects to the wireless local area network used in method 3 or method 4, When the smart terminal needs re-authentication or dynamic password input to perform wireless network data communication, when the user does not perform re-authentication or dynamic password input on the smart terminal, the smart terminal connects to the wireless local area network, but Data communication is disabled.
步骤S202,判断所述无线网络是否能够进行数据通讯,若是执行步骤S203,若否执行步骤S204。In step S202, it is determined whether the wireless network can perform data communication. If it is, step S203 is performed, and if not, step S204 is performed.
其中,当用户使用智能终端连接至无线网络时,其智能终端会判断其连接的无线网络是否能够进行数据通讯,其判断在该无线网络连接的状态下是否能够进行数据通讯的方式主要为:每间隔预设时间发送数据包至目标服务器;判断是否接收到目标服务器发送的响应数据包。Among them, when a user uses a smart terminal to connect to a wireless network, his smart terminal will determine whether the connected wireless network can perform data communication. The way to determine whether data communication can be performed in the state of the wireless network connection is mainly: Send a data packet to the target server at a preset interval; determine whether a response data packet sent by the target server is received.
其中,在该智能终端连接到无线网络时,其会发送数据包至目标服务器,当智能终端连接到无线网络的方式为采用的上述方式一、方式二时,其智能终端在能够进行数据通讯时,其会获取到目标服务器发送的响应数据包,其智能终端可根据是否接收到服务器发送的响应数据包确定是否能够进行数据通讯。其中当智能终端连接至无线网络的方式为采用的上述方式三、方式四时,其智能终端会获取到目标服务器发送的用 于跳转至目标网页的响应数据包,此时智能终端会弹出目标网页或当用户使用浏览器时,其浏览器跳转至目标网页,以使用户进行用户名、密码组合或动态密码的输入验证,以实现无线网络的数据连接。当用户在目标网页未进行验证时,其智能终端后续发送数据包时,无法接收到目标服务器发送的响应数据包,此时智能终端可判断该无线网络不能够进行数据通讯。Wherein, when the smart terminal is connected to a wireless network, it sends a data packet to the target server. When the smart terminal is connected to the wireless network in the above-mentioned manners 1 and 2, the smart terminal is capable of data communication , It will obtain the response data packet sent by the target server, and its smart terminal can determine whether it can perform data communication according to whether the response data packet sent by the server is received. When the smart terminal is connected to the wireless network in the above manners 3 and 4, the smart terminal will obtain the response packet sent by the target server to jump to the target webpage, and the smart terminal will pop up the target at this time. A webpage or when a user uses a browser, his browser jumps to a target webpage, so that the user can perform user name, password combination, or dynamic password input verification to achieve data connection of the wireless network. When the user does not perform verification on the target webpage, when the smart terminal subsequently sends data packets, it cannot receive the response data packet sent by the target server. At this time, the smart terminal can determine that the wireless network cannot perform data communication.
步骤S203,保持所述无线网络的连接。Step S203: Maintain the connection of the wireless network.
步骤S204,断开与所述无线网络的连接,且恢复所述数据网络的连接。Step S204: Disconnect the connection to the wireless network and restore the connection to the data network.
其中,当智能终端判断出无线网络不能够进行无线通讯时,此时断开该无线网络的连接,且恢复数据网络的连接。When the smart terminal determines that the wireless network cannot perform wireless communication, it disconnects the wireless network at this time and restores the connection to the data network.
其中,需要指出的是,当用户在智能终端中只开启有无线网络,而未开启有数据网络的连接时,此时当智能终端判断出无线网络不能进行无线通讯时,其智能终端会断开与无线网络的连接,但其由于用户未开启有数据网络,此时该智能终端不会强制开启数据网络的连接,其智能终端处于无网络的状态。It should be noted that when the user only opens a wireless network in the smart terminal, but does not open a connection with a data network, at this time when the smart terminal determines that the wireless network cannot perform wireless communication, its smart terminal will be disconnected. It is connected to a wireless network, but since the user has not opened a data network, the smart terminal will not forcibly open the data network connection at this time, and its smart terminal is in a network-free state.
步骤S205,发出提示信息,以提示用户所述无线网络的数据通讯发生中断。In step S205, a prompt message is sent to prompt the user that the data communication of the wireless network is interrupted.
其中,当智能终端恢复数据网络的连接后,其会发出提示信息,以提示用户无线网络的数据通讯发生中断,其中发出提示信息的步骤包括:When the smart terminal resumes the connection to the data network, it will issue a prompt message to remind the user that the data communication on the wireless network is interrupted. The steps of sending the prompt message include:
每间隔第二预设时间发出所述提示信息;Sending the prompt message every second preset time;
当接收到用户响应所述提示信息的确认信息时,停止发出所述提示信息。When receiving a confirmation message from the user in response to the prompt information, stop sending the prompt information.
其中,该提示信息包括但不限于振动信息、音频信息或者文字信息,例如当用户使用该智能终端时,其由于路由器故障导致无线网络的连接中断时,此时该智能终端断开无线网络的连接,恢复数据网络的连接后,其可通过振动以及文字消息的方式以提示用户,此时智能终端会持续的产生振动,并在显示界面中显示无线网络发生中断的文字信息。当用户使用该智能终端确认该提示消息后,即用户使用智能终端在显示界面中确认该文字信息后,其智能终端停止发出提示信息,即智能终端停止产生振动以及在显示界面中显示文字信息。其中该智能终端会持续一预设时间发出提示信息,当用户未响应该提示信息时,其暂停发出提示信息,当智能终端在第二预设时间后,其进行发出提示信息,此时该智能终端在未获取到用户发出的确认信息时,其每间隔第二预设时间均发出提示 信息,直至用户响应该提示信息后,停止发出提示信息。The prompt information includes, but is not limited to, vibration information, audio information, or text information. For example, when the user uses the smart terminal and the wireless network connection is interrupted due to a router failure, the smart terminal disconnects the wireless network at this time. After the connection to the data network is restored, it can use vibration and text messages to prompt the user. At this time, the smart terminal will continue to vibrate and display the text information of the wireless network interruption on the display interface. After the user confirms the prompt message using the smart terminal, that is, after the user confirms the text message in the display interface using the smart terminal, the smart terminal stops sending out the prompt message, that is, the smart terminal stops generating vibrations and displays text information on the display interface. The smart terminal sends out a reminder message for a preset time. When the user does not respond to the prompt message, it suspends sending the reminder message. When the smart terminal is in the second preset time, it sends out a reminder message. At this time, the smart terminal When the terminal does not obtain the confirmation information sent by the user, it sends out a prompt message every second preset time interval, and stops sending out the prompt message after the user responds to the prompt message.
此时在无线网络不能进行数据通讯时,其智能终端可发出提示信息对用户进行提示,以避免于用户持续使用智能终端中数据网络的数据流量而产生的过量使用的问题。At this time, when the wireless network cannot perform data communication, its smart terminal can send prompt information to prompt the user to avoid the problem of excessive use caused by the user's continuous use of the data traffic of the data network in the smart terminal.
其中,需要指出的是,在无线网络不能够进行数据通讯时,其智能终端会检测当前所处的数据消耗量,并根据数据消耗量确定是否恢复数据网络的连接,例如,当用户在无线网络连接下进行低数据消耗的应用使用时,其恢复数据网络的连接,如用户连接无线网络进行待机时,当其无线网络的连接不可用后,其智能终端恢复数据网络的连接,此时可正常的进行即时通讯应用等后台数据的通讯。It should be noted that when the wireless network cannot perform data communication, its smart terminal will detect the current data consumption and determine whether to restore the data network connection based on the data consumption. For example, when a user is on a wireless network When the application with low data consumption is used under the connection, it resumes the connection to the data network. For example, when the user connects to the wireless network for standby, when his wireless network connection is unavailable, his smart terminal resumes the connection to the data network, which is normal at this time. Communication of background data such as instant messaging applications.
当用户在无线网络连接下进行视频、下载等高数据消耗的应用使用,且其路由器发生故障时,其智能终端会断开无线网络的连接,发出提示信息,以提示用户无线网络的数据通讯中断。同时该智能终端还会发出请求信息,以提示用户是否对该高数据消耗的应用进行数据通讯,使得通过该数据网络进行高数据流量的消耗。When the user is using high data consumption applications such as video and download under the wireless network connection, and his router fails, his smart terminal will disconnect the wireless network connection and issue a prompt message to remind the user that the wireless network data communication is interrupted . At the same time, the smart terminal will also send a request message to prompt the user whether to perform data communication on the application with high data consumption, so as to consume high data traffic through the data network.
当用户未对该请求信息进行确认时,此时恢复数据网络的连接,但不响应该高数据消耗的应用,此时智能终端可响应后台的低数据消耗的应用的数据通讯。当用户对该请求信息进行确认,且当确定对该高数据消耗的应用进行数据通讯时,则恢复数据网络的连接,同时响应该高数据消耗的应用,以通过数据网络对该应用进行数据通讯;当确定不对该高数据消耗的应用进行数据通讯时,则恢复数据网络的连接,但不响应该高数据消耗的应用,此时智能终端可响应后台的低数据消耗的应用的数据通讯。When the user does not confirm the request information, the data network connection is restored at this time, but the high data consumption application is not responded. At this time, the smart terminal can respond to the data communication of the low data consumption application in the background. When the user confirms the request information, and when it is determined that data communication is performed on the application with high data consumption, the data network connection is restored, and at the same time, the application with high data consumption is responded to perform data communication on the application through the data network. ; When it is determined that data communication of the application with high data consumption is not performed, the connection to the data network is restored, but the application with high data consumption is not responded. At this time, the smart terminal can respond to data communication of the application with low data consumption in the background.
此时用户可根据提示信息,以重新连接该无线网络或其他网络。或者用户在高数据消耗下,根据请求信息可确定是否继续数据网络的连接。At this time, the user can reconnect to the wireless network or other networks according to the prompt information. Or, under high data consumption, the user can determine whether to continue the data network connection according to the request information.
步骤S206,当接收到用户基于所述提示信息再次连接至所述无线网络的信号时,判断所述无线网络是否能够进行数据通讯,若是则执行步骤S207;若否则执行步骤S208。In step S206, when a signal is received from the user to reconnect to the wireless network based on the prompt information, it is determined whether the wireless network can perform data communication. If so, step S207 is performed; otherwise, step S208 is performed.
步骤S207,断开所述数据网络的连接。Step S207: Disconnect the data network.
其中,当用户接收到智能终端发出的提示信息,并根据该提示信息再次连接至无线网络时,此时智能终端判断该无线网络是否能够继续数据通讯,当判断出能够继续数据通讯时,则断开数据网络的连接。此时智能终端处于无线网络的连接状态。Among them, when the user receives the prompt information sent by the smart terminal and connects to the wireless network again according to the prompt information, the smart terminal judges whether the wireless network can continue data communication at this time, and when it is determined that the data communication can continue, it breaks. Open a data network connection. At this time, the smart terminal is in a connected state of the wireless network.
步骤S208,将所述无线网络的标识信息加入至故障队列。Step S208: Add the identification information of the wireless network to a fault queue.
当判断出不能够继续数据通讯时,则将该无线网络的标识信息加入至故障队列,此时继续断开无线网络的连接,且恢复数据网络的连接,且发出提示信息,直至用户确认该提示信息。When it is determined that the data communication cannot be continued, the wireless network identification information is added to the fault queue. At this time, the wireless network connection is disconnected, the data network connection is restored, and a prompt message is issued until the user confirms the prompt. information.
此时该智能终端中存储有包括各个无线网络的标识信息的故障队列,当用户使用该智能终端进行无线网络的连接时,其可采用如下步骤实现:At this time, the smart terminal stores a fault queue including identification information of each wireless network. When a user uses the smart terminal to connect to the wireless network, it can use the following steps to implement:
当连接至所述无线网络时,判断在所述故障队列中是否包括所述无线网络的标识信息;When connecting to the wireless network, determining whether the identification information of the wireless network is included in the fault queue;
若是,则断开与所述无线网络的连接。If yes, disconnect from the wireless network.
其中,需要指出的是,用户在开启有智能终端的无线网络的开关时,其智能终端会获取当前所处环境中所能接收到的所有的无线局域网,且在各个无线局域网中连接其已使用保存的各个无线局域网中信号强度最优的目标无线局域网,例如,用户使用智能终端获取到当前所处环境中包括有信号强度由高至低依次排列的第一无线局域网、第二无线局域网、第三无线局域网时,其中第二无线局域网和第三无线局域网为用户先前使用保存的无线网络,此时该智能终端在用户未进行任何操作时,其优先连接至第二无线局域网。It should be noted that when the user turns on the wireless network switch of the smart terminal, his smart terminal will obtain all the wireless local area networks that can be received in the current environment, and connect the wireless LAN to the wireless network that he has used. The target wireless local area network with the best signal strength in each saved wireless local area network. For example, a user using a smart terminal to obtain the current environment includes a first wireless local area network, a second wireless local area network, When there are three wireless local area networks, the second wireless local area network and the third wireless local area network are previously saved wireless networks used by the user. At this time, the smart terminal preferentially connects to the second wireless local area network when the user does not perform any operation.
此时该智能终端会获取其存储的故障队列中是否包括该第二无线局域网的标识信息,当判断其故障队列不包括该第二无线局域网时,其智能终端连接至该第二无线局域网;当判断其故障队列包括该第二无线局域网时,则智能终端断开与第二无线局域网的连接,转而自动连接至信号强度较弱的第三无线局域网。使得可避免连接至故障队列中的第二无线局域网而导致无法正常进行数据通讯的问题。At this time, the smart terminal will obtain whether the stored fault queue includes the identification information of the second wireless local area network. When it is determined that the fault queue does not include the second wireless local area network, the intelligent terminal connects to the second wireless local area network; When it is determined that the failure queue includes the second wireless local area network, the smart terminal disconnects from the second wireless local area network and automatically connects to the third wireless local area network with a weak signal strength. Therefore, the problem that data communication cannot be performed normally due to being connected to the second wireless local area network in the fault queue can be avoided.
进一步地,当用户使用智能终端对该第二无线局域网进行手动连接时,其智能终端在连接至第二无线局域网时,其智能终端会判断该第二无线局域网是否能够进行数据通讯,当该第二无线局域网能够进行数据通讯时,则将该第二无线局域网从故障队列中进行移除,此时在用户使用智能终端进行无线网络的连接时,其智能终端能够根据各个无线局域网的强度而优先连接至该第二无线局域网。Further, when a user uses a smart terminal to manually connect to the second wireless local area network, when the smart terminal connects to the second wireless local area network, the smart terminal determines whether the second wireless local area network can perform data communication. When the second wireless local area network can perform data communication, the second wireless local area network is removed from the fault queue. At this time, when the user uses a smart terminal to connect to the wireless network, the smart terminal can give priority to the strength of each wireless local area network. Connected to the second wireless local area network.
通过上述方式提供的网络连接方法,用户可以在无线网络发生中断时发出提示信息,以提示用户及时对该无线网络进行故障排除或更换其他无线网络,避免实时使用数据网络带来的流量损耗。并当用户重连至该无线网络还是无法进行数据通讯时,则智能终端将该无线网络加入至故障队列,此时智能终端在下一次的无线网络连接时,会跳过该故障的无线网络,以连接至其他正常的无线网络进行数据通讯,使得较好提升 了用户体验度。Through the network connection method provided in the above manner, the user can send a prompt message when the wireless network is interrupted to prompt the user to troubleshoot the wireless network or replace other wireless networks in time to avoid the traffic loss caused by using the data network in real time. And when the user reconnects to the wireless network and still cannot perform data communication, the smart terminal adds the wireless network to the fault queue. At this time, the smart terminal will skip the faulty wireless network during the next wireless network connection. Connecting to other normal wireless networks for data communication makes the user experience better.
实施例三:Example three:
对于前述实施例所提供的网络连接方法,本发明实施例提供了一种网络连接装置,参见图3所示的第一种网络连接装置的结构框图,包括:For the network connection method provided by the foregoing embodiment, an embodiment of the present invention provides a network connection device. Referring to FIG. 3, a structural block diagram of the first network connection device includes:
第一控制模块101,用于当建立有数据网络连接且连接到无线网络时,断开所述数据网络的连接。The first control module 101 is configured to disconnect the data network when a data network connection is established and connected to a wireless network.
第一判断模块102,用于判断所述无线网络是否能够进行数据通讯。The first determining module 102 is configured to determine whether the wireless network can perform data communication.
第二控制模块103,用于当所述第一判断模块102判断出所述无线网络不能够进行数据通讯时,则断开与所述无线网络的连接,且恢复所述数据网络的连接。The second control module 103 is configured to, when the first determining module 102 determines that the wireless network cannot perform data communication, disconnect the wireless network and restore the connection to the data network.
进一步,参见图4所示的第二种网络连接装置的结构框图,在图5的基础上,还包括以下部分:Further, referring to the structural block diagram of the second network connection device shown in FIG. 4, based on FIG. 5, it further includes the following parts:
第三控制模块104,用于发出提示信息,以提示用户所述无线网络的数据通讯发生中断。The third control module 104 is configured to send a prompt message to prompt the user that the data communication of the wireless network is interrupted.
第二判断模块105,用于当接收到用户基于所述提示信息再次连接至所述无线网络的信号时,判断所述无线网络是否能够进行数据通讯。The second determining module 105 is configured to determine whether the wireless network can perform data communication when a signal is received from a user to connect to the wireless network again based on the prompt information.
第四控制模块106,用于当所述第二判断模块105判断出所述无线网络不能够进行数据通讯时,则将所述无线网络的标识信息加入至故障队列。The fourth control module 106 is configured to add the identification information of the wireless network to the fault queue when the second determination module 105 determines that the wireless network cannot perform data communication.
第五控制模块107,用于当所述第二判断模块判断105出所述无线网络能够进行数据通讯时,则断开所述数据网络的连接。The fifth control module 107 is configured to disconnect the data network when the second determination module determines 105 that the wireless network is capable of data communication.
其中,具体的,所述第一控制模块101包括:Specifically, the first control module 101 includes:
第一判断单元,用于当连接至所述无线网络时,判断在所述故障队列中是否包括所述无线网络的标识信息。A first determining unit is configured to determine, when connected to the wireless network, whether identification information of the wireless network is included in the fault queue.
第一控制单元,用于当所述第一判断单元判断在所述故障队列中包括所述无线网络的标识信息时,则断开与所述无线网络的连接。The first control unit is configured to disconnect the connection with the wireless network when the first determination unit determines that the identification information of the wireless network is included in the fault queue.
具体的,所述第一判断模块102包括:Specifically, the first judgment module 102 includes:
第二控制单元,用于每间隔第一预设时间发送数据包至目标服务器;A second control unit, configured to send a data packet to the target server every first preset time interval;
第二判断单元,用于判断是否接收到所述目标服务器发送的响应数据包。The second determining unit is configured to determine whether a response data packet sent by the target server is received.
具体的,所述第三控制模块104包括:Specifically, the third control module 104 includes:
第三控制单元,用于每间隔第二预设时间发出所述提示信息;A third control unit, configured to send the prompt information every second preset time interval;
第四控制单元,用于当接收到用户响应所述提示信息的确认信息时,停止发出所述提示信息。A fourth control unit is configured to stop issuing the prompt information when receiving a confirmation message from the user in response to the prompt information.
本发明实施例所提供的装置,其实现原理及产生的技术效果和前述方法实施例相同,为简要描述,装置实施例部分未提及之处,可参考前述方法实施例中相应内容。The implementation principle and technical effect of the device provided by the embodiment of the present invention are the same as those of the foregoing method embodiments. For a brief description, the parts not mentioned in the device embodiments may refer to the corresponding content in the foregoing method embodiments.
实施例四:Embodiment 4:
本发明实施例提供了一种智能终端,该智能终端包括存储器以及处理器,存储器用于存储支持处理器执行前述实施例所提供的网络连接方法的程序,处理器被配置为用于执行存储器中存储的程序。该智能终端还可以包括通信接口,用于与其他设备或通信网络通信。该智能终端可以为包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、车载电脑等任意终端设备。An embodiment of the present invention provides an intelligent terminal. The intelligent terminal includes a memory and a processor. The memory is configured to store a program that supports the processor to execute the network connection method provided by the foregoing embodiment. The processor is configured to execute the program in the memory. Stored programs. The smart terminal may further include a communication interface for communicating with other devices or a communication network. The intelligent terminal may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), and a vehicle-mounted computer.
进一步,本实施例还提供了一种可读存储介质,用于储存为前述实施例所提供的任一项网络连接装置所用的应用程序代码,所述程序代码包括的指令被处理器执行时实现前面方法实施例中所述的方法的步骤,具体实现可参见方法实施例,在此不再赘述。Further, this embodiment also provides a readable storage medium for storing application program code for any one of the network connection devices provided in the foregoing embodiments, and the instructions included in the program code are implemented when the processor executes the instructions. For the steps of the method described in the foregoing method embodiments, for specific implementation, refer to the method embodiments, and details are not described herein again.
如图5所示的本发明实施例提供的智能终端的结构示意图。参考图5,该智能终端包括:射频(Radio Frequency,RF)电路510、存储器520、输入单元530、显示单元540、传感器550、音频电路560、无线保真(Wireless Fidelity,WiFi)模块570、处理器580、以及电源590等部件。本领域技术人员可以理解,图5中示出的智能终端结构并不构成对智能终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。下面结合图5对本实施例的智能终端的各个构成部件进行具体的介绍:FIG. 5 is a schematic structural diagram of a smart terminal according to an embodiment of the present invention. Referring to FIG. 5, the smart terminal includes: a radio frequency (RF) circuit 510, a memory 520, an input unit 530, a display unit 540, a sensor 550, an audio circuit 560, a wireless fidelity (WiFi) module 570, and processing 580, and power supply 590 and other components. Those skilled in the art can understand that the structure of the smart terminal shown in FIG. 5 does not constitute a limitation on the smart terminal, and may include more or fewer components than shown in the figure, or combine certain components, or arrange different components. Each component of the smart terminal of this embodiment is specifically described below with reference to FIG. 5:
RF电路510可用于收发信息过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器580处理;另外,将设计上行的数据发送给基站。通常,RF电路510包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路510还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System of Mobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。The RF circuit 510 may be used to receive and send signals during the process of transmitting and receiving information. In particular, the downlink information of the base station is received and processed by the processor 580; in addition, the uplink data of the design is sent to the base station. Generally, the RF circuit 510 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 510 can also communicate with a network and other devices through wireless communication. The above wireless communication can use any communication standard or protocol, including, but not limited to, Global System of Mobile (GSM), General Packet Radio Service (GPRS), and Code Division Multiple Access Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), E-mail, Short Messaging Service (SMS), etc.
存储器520可用于存储软件程序以及模块,处理器580通过运行存储在存储器520的软件程序以及模块,从而执行智能终端的各种功能应 用以及数据处理。存储器520可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器520可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 520 may be used to store software programs and modules. The processor 580 executes various functional applications and data processing of the smart terminal by running the software programs and modules stored in the memory 520. The memory 520 may mainly include a storage program area and a storage data area, where the storage program area may store an operating system, at least one application required by a function (such as a sound playback function, an image playback function, etc.), etc .; Data (such as audio data, phone book, etc.) created by the use of mobile phones. In addition, the memory 520 may include a high-speed random access memory, and may further include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
输入单元530可用于接收输入的数字或字符信息,以及产生与智能终端的用户设置以及功能控制有关的键信号输入。具体地,输入单元530可包括触控面板531以及其他输入设备532。触控面板531,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板531上或在触控面板531附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板531可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器580,并能接收处理器580发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板531。除了触控面板531,输入单元530还可以包括其他输入设备532。具体地,其他输入设备532可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 530 may be used to receive inputted numeric or character information, and generate key signal inputs related to user settings and function control of the smart terminal. Specifically, the input unit 530 may include a touch panel 531 and other input devices 532. Touch panel 531, also known as touch screen, can collect user's touch operations on or near it (for example, the user uses a finger, stylus or any suitable object or accessory on touch panel 531 or near touch panel 531 Operation), and drive the corresponding connection device according to a preset program. Optionally, the touch panel 531 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch position, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into contact coordinates, and sends it To the processor 580, and can receive and execute the commands sent by the processor 580. In addition, the touch panel 531 may be implemented by using various types such as a resistive type, a capacitive type, an infrared type, and a surface acoustic wave. In addition to the touch panel 531, the input unit 530 may include other input devices 532. Specifically, the other input devices 532 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
显示单元540可用于显示由用户输入的信息或提供给用户的信息以及智能终端的各种菜单。显示单元540可包括显示面板541,可选的,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板541。进一步的,触控面板531可覆盖显示面板541,当触控面板531检测到在其上或附近的触摸操作后,传送给处理器580以确定触摸事件的类型,随后处理器580根据触摸事件的类型在显示面板541上提供相应的视觉输出。虽然在图5中,触控面板531与显示面板541是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板531与显示面板541集成而实现手机的输入和输出功能。The display unit 540 may be used to display information input by the user or information provided to the user and various menus of the smart terminal. The display unit 540 may include a display panel 541. Optionally, the display panel 541 may be configured by using a liquid crystal display (Liquid Crystal Display, LCD), an organic light emitting diode (Organic Light-Emitting Diode, OLED), and the like. Further, the touch panel 531 may cover the display panel 541. When the touch panel 531 detects a touch operation on or near the touch panel 531, the touch panel 531 transmits the touch operation to the processor 580 to determine the type of the touch event. The type provides a corresponding visual output on the display panel 541. Although in FIG. 5, the touch panel 531 and the display panel 541 are implemented as two separate components to implement the input and input functions of the mobile phone, in some embodiments, the touch panel 531 and the display panel 541 can be integrated and Realize the input and output functions of mobile phones.
智能终端还可包括至少一种传感器550,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板541的亮度。音频电路560、扬声器561,传声器562可提供用户与智能终端 之间的音频接口。音频电路560可将接收到的音频数据转换后的电信号,传输到扬声器561,由扬声器561转换为声音信号输出;另一方面,传声器562将收集的声音信号转换为电信号,由音频电路560接收后转换为音频数据,再将音频数据输出处理器580处理后,经RF电路510以发送给比如另一智能终端,或者将音频数据输出至存储器520以便进一步处理。The smart terminal may further include at least one sensor 550, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 541 according to the brightness of the ambient light. The audio circuit 560, the speaker 561, and the microphone 562 can provide an audio interface between the user and the smart terminal. The audio circuit 560 may transmit the received electrical data converted electrical signals to a speaker 561, which is converted into a sound signal by the speaker 561. On the other hand, the microphone 562 converts the collected sound signal into an electrical signal, and the audio circuit 560 After receiving, it is converted into audio data, and then the audio data output processor 580 is processed and then sent to, for example, another smart terminal via the RF circuit 510, or the audio data is output to the memory 520 for further processing.
WiFi属于短距离无线传输技术,智能终端通过WiFi模块570可以为用户提供了无线的宽带互联网访问。虽然图5示出了WiFi模块570,但是可以理解的是,其并不属于智能终端的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-range wireless transmission technology. The smart terminal can provide users with wireless broadband Internet access through the WiFi module 570. Although FIG. 5 shows the WiFi module 570, it can be understood that it does not belong to the necessary configuration of the smart terminal, and can be omitted as needed without changing the essence of the invention.
处理器580是智能终端的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器520内的软件程序和/或模块,以及调用存储在存储器520内的数据,执行智能终端的各种功能和处理数据,从而对智能终端进行整体监控。可选的,处理器580可包括一个或多个处理单元;优选的,处理器580可集成应用处理器,应用处理器主要处理操作系统、用户界面和应用程序等。处理器580可以集成调制解调处理器,调制解调处理器也可以不集成到处理器580中。The processor 580 is a control center of the intelligent terminal, and uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and / or modules stored in the memory 520, and calling data stored in the memory 520, Perform various functions and process data of the smart terminal, so as to monitor the smart terminal as a whole. Optionally, the processor 580 may include one or more processing units; preferably, the processor 580 may integrate an application processor, and the application processor mainly processes an operating system, a user interface, and an application program. The processor 580 may be integrated with a modem processor, or the modem processor may not be integrated into the processor 580.
智能终端还包括给各个部件供电的电源590(比如电池),优选的,电源590可以通过电源管理系统与处理器580逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。尽管未示出,智能终端还可以包括摄像头、蓝牙模块等,在此不再赘述。The smart terminal also includes a power supply 590 (such as a battery) that supplies power to various components. Preferably, the power supply 590 can be logically connected to the processor 580 through a power management system, thereby implementing functions such as managing charging, discharging, and power management through the power management system . Although not shown, the smart terminal may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
本发明实施例所提供的一种网络连接方法、装置、智能终端、及可读存储介质的应用程序产品,包括存储了程序代码的可读存储介质,所述程序代码包括的指令可用于执行前面方法实施例中所述的方法,具体实现可参见方法实施例,在此不再赘述。A network connection method, device, smart terminal, and application program product of a readable storage medium provided by the embodiments of the present invention include a readable storage medium storing program code, and the instructions included in the program code can be used to execute the foregoing For specific implementation of the method described in the method embodiment, refer to the method embodiment, and details are not described herein again.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个智能终端可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该智能终端应用程序存储在一个存储介质中,包括若干指令用以使得一台智能终端(可以是手机、平板电脑或者PDA等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a smart terminal readable storage medium. Based on this understanding, the technical solution of the present invention is essentially a part that contributes to the existing technology or a part of the technical solution can be embodied in the form of a software product. The smart terminal application program is stored in a storage medium. Several instructions are included to enable a smart terminal (which may be a mobile phone, a tablet computer, or a PDA, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The foregoing storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disks or optical disks and other media that can store program codes .
以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体 和详细,但并不能因此而理解为对本发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several implementation manners of the present invention, and their descriptions are more specific and detailed, but they cannot be construed as limiting the patent scope of the present invention. It should be noted that, for those of ordinary skill in the art, without departing from the concept of the present invention, several modifications and improvements can be made, which all belong to the protection scope of the present invention. Therefore, the protection scope of the invention patent shall be subject to the appended claims.
本发明实施例还揭示了:The embodiment of the invention also discloses:
A1.一种网络连接方法,所述方法包括:A1. A network connection method, the method comprising:
当建立有数据网络连接且连接到无线网络时,断开所述数据网络的连接;When a data network connection is established and connected to a wireless network, disconnecting the data network connection;
判断所述无线网络是否能够进行数据通讯;Determining whether the wireless network is capable of data communication;
若否,则断开与所述无线网络的连接,且恢复所述数据网络的连接。If not, the connection to the wireless network is disconnected, and the connection to the data network is restored.
A2.根据A1所述的网络连接方法,所述恢复所述数据网络的连接的步骤之后包括:A2. The network connection method according to A1, after the step of restoring the connection to the data network, comprises:
发出提示信息,以提示用户所述无线网络的数据通讯发生中断;Sending a prompt message to remind the user that the data communication of the wireless network is interrupted;
当接收到用户基于所述提示信息再次连接至所述无线网络的信号时,判断所述无线网络是否能够进行数据通讯;Determining whether the wireless network is capable of data communication when a signal is received from a user to connect to the wireless network again based on the prompt information;
若否,则将所述无线网络的标识信息加入至故障队列;If not, adding the identification information of the wireless network to a fault queue;
若是,则断开所述数据网络的连接。If so, the data network is disconnected.
A3.根据A2所述的网络连接方法,所述连接到无线网络的步骤还包括:A3. The network connection method according to A2, wherein the step of connecting to a wireless network further comprises:
当连接至所述无线网络时,判断在所述故障队列中是否包括所述无线网络的标识信息;When connecting to the wireless network, determining whether the identification information of the wireless network is included in the fault queue;
若是,则断开与所述无线网络的连接。If yes, disconnect from the wireless network.
A4.根据A2所述的网络连接方法,所述判断所述无线网络是否能够进行数据通讯的步骤包括:A4. According to the network connection method of A2, the step of determining whether the wireless network is capable of data communication includes:
每间隔第一预设时间发送数据包至目标服务器;Send a data packet to the target server every first preset time interval;
判断是否接收到所述目标服务器发送的响应数据包。Determine whether a response data packet sent by the target server is received.
A5.根据A2所述的网络连接方法,所述发出提示信息的步骤包括:A5. The network connection method according to A2, wherein the step of sending out a prompt message comprises:
每间隔第二预设时间发出所述提示信息;Sending the prompt message every second preset time;
当接收到用户响应所述提示信息的确认信息时,停止发出所述提示信息。When receiving a confirmation message from the user in response to the prompt information, stop sending the prompt information.
B1.一种网络连接装置,所述网络连接装置包括:B1. A network connection device, the network connection device includes:
第一控制模块,用于当建立有数据网络连接且连接到无线网络时,断开所述数据网络的连接;A first control module, configured to disconnect the data network when a data network connection is established and connected to the wireless network;
第一判断模块,用于判断所述无线网络是否能够进行数据通讯;A first determining module, configured to determine whether the wireless network can perform data communication;
第二控制模块,用于当所述第一判断模块判断出所述无线网络不能 够进行数据通讯时,则断开与所述无线网络的连接,且恢复所述数据网络的连接。A second control module is configured to, when the first judgment module determines that the wireless network cannot perform data communication, disconnect the wireless network and restore the connection to the data network.
B2.根据B1所述的网络连接装置,所述装置还包括:B2. The network connection device according to B1, the device further comprising:
第三控制模块,用于发出提示信息,以提示用户所述无线网络的数据通讯发生中断;A third control module, configured to issue a prompt message to prompt a user that the data communication of the wireless network is interrupted;
第二判断模块,用于当接收到用户基于所述提示信息再次连接至所述无线网络的信号时,判断所述无线网络是否能够进行数据通讯;A second determining module, configured to determine whether the wireless network can perform data communication when a signal is received from a user to connect to the wireless network again based on the prompt information;
第四控制模块,用于当所述第二判断模块判断出所述无线网络不能够进行数据通讯时,则将所述无线网络的标识信息加入至故障队列;A fourth control module, configured to add the identification information of the wireless network to a fault queue when the second determination module determines that the wireless network cannot perform data communication;
第五控制模块,用于当所述第二判断模块判断出所述无线网络能够进行数据通讯时,则断开所述数据网络的连接。A fifth control module is configured to disconnect the data network when the second determination module determines that the wireless network is capable of data communication.
B3.根据B2所述的网络连接装置,所述第一控制模块包括:B3. The network connection device according to B2, the first control module includes:
第一判断单元,用于当连接至所述无线网络时,判断在所述故障队列中是否包括所述无线网络的标识信息;A first determining unit, configured to determine, when connected to the wireless network, whether identification information of the wireless network is included in the fault queue;
第一控制单元,用于当所述第一判断单元判断在所述故障队列中包括所述无线网络的标识信息时,则断开与所述无线网络的连接。The first control unit is configured to disconnect the connection with the wireless network when the first determination unit determines that the identification information of the wireless network is included in the fault queue.
B4.根据B2所述的网络连接装置,所述第一判断模块包括:B4. The network connection device according to B2, the first determining module comprises:
第二控制单元,用于每间隔第一预设时间发送数据包至目标服务器;A second control unit, configured to send a data packet to the target server every first preset time interval;
第二判断单元,用于判断是否接收到所述目标服务器发送的响应数据包。The second determining unit is configured to determine whether a response data packet sent by the target server is received.
B5.根据B2所述的网络连接装置,所述第三控制模块包括:B5. The network connection device according to B2, the third control module includes:
第三控制单元,用于每间隔第二预设时间发出所述提示信息;A third control unit, configured to send the prompt information every second preset time interval;
第四控制单元,用于当接收到用户响应所述提示信息的确认信息时,停止发出所述提示信息。A fourth control unit is configured to stop issuing the prompt information when receiving a confirmation message from the user in response to the prompt information.
C1.一种可读存储介质,其上存储有应用程序,该程序被处理器执行时实现如A1至A5中任意一项所述的方法的步骤。C1. A readable storage medium having stored thereon an application program that, when executed by a processor, implements the steps of the method according to any one of A1 to A5.
D1.一种智能终端,所述智能终端包括存储器以及处理器,所述存储器用于存储支持处理器执行A1至A5任一项所述方法的程序,所述处理器被配置为用于执行所述存储器中存储的程序。D1. An intelligent terminal, the intelligent terminal includes a memory and a processor, the memory is configured to store a program that supports the processor to execute the method of any one of A1 to A5, and the processor is configured to execute all The programs stored in the memory are described.

Claims (20)

  1. 一种网络连接方法,其中,所述方法包括:A network connection method, wherein the method includes:
    当建立有数据网络连接且连接到无线网络时,断开所述数据网络的连接;When a data network connection is established and connected to a wireless network, disconnecting the data network connection;
    判断所述无线网络是否能够进行数据通讯;Determining whether the wireless network is capable of data communication;
    若否,则断开与所述无线网络的连接,且恢复所述数据网络的连接。If not, the connection to the wireless network is disconnected, and the connection to the data network is restored.
  2. 根据权利要求1所述的网络连接方法,其中,所述恢复所述数据网络的连接的步骤之后包括:The network connection method according to claim 1, wherein after the step of restoring the connection of the data network comprises:
    发出提示信息,以提示用户所述无线网络的数据通讯发生中断;Sending a prompt message to remind the user that the data communication of the wireless network is interrupted;
    当接收到用户基于所述提示信息再次连接至所述无线网络的信号时,判断所述无线网络是否能够进行数据通讯;Determining whether the wireless network is capable of data communication when a signal is received from a user to connect to the wireless network again based on the prompt information;
    若否,则将所述无线网络的标识信息加入至故障队列;If not, adding the identification information of the wireless network to a fault queue;
    若是,则断开所述数据网络的连接。If so, the data network is disconnected.
  3. 根据权利要求2所述的网络连接方法,其中,所述连接到无线网络的步骤还包括:The network connection method according to claim 2, wherein the step of connecting to a wireless network further comprises:
    当连接至所述无线网络时,判断在所述故障队列中是否包括所述无线网络的标识信息;When connecting to the wireless network, determining whether the identification information of the wireless network is included in the fault queue;
    若是,则断开与所述无线网络的连接。If yes, disconnect from the wireless network.
  4. 根据权利要求3所述的网络连接方法,其中,当断开与第二无线局域网的连接之后,所述方法还包括:自动连接至信号强度弱于所述第二无线局域网的第三无线局域网,其中,所述第二无线局域网为用户使用保存过的无线网络。The network connection method according to claim 3, wherein after disconnecting from the second wireless local area network, the method further comprises: automatically connecting to a third wireless local area network having a weaker signal strength than the second wireless local area network, The second wireless local area network is a saved wireless network used by the user.
  5. 根据权利要求4所述的网络连接方法,其中,当用户使用智能终端对所述第二无线局域网进行手动连接时,所述智能终端在连接至所述第二无线局域网时,所述智能终端判断所述第二无线局域网是否能够进行数据通讯,且当所述第二无线局域网能够进行数据通讯时,则将所述第二无线局域网从所述故障队列中进行移除。The network connection method according to claim 4, wherein when the user manually connects the second wireless local area network using a smart terminal, the smart terminal determines when the smart terminal is connected to the second wireless local area network Whether the second wireless local area network can perform data communication, and when the second wireless local area network can perform data communication, remove the second wireless local area network from the fault queue.
  6. 根据权利要求2所述的网络连接方法,其中,所述判断所述无线网络是否能够进行数据通讯的步骤包括:The network connection method according to claim 2, wherein the step of determining whether the wireless network is capable of data communication comprises:
    每间隔第一预设时间发送数据包至目标服务器;Send a data packet to the target server every first preset time interval;
    判断是否接收到所述目标服务器发送的响应数据包。Determine whether a response data packet sent by the target server is received.
  7. 根据权利要求6所述的网络连接方法,其中,所述响应数据包与发送至所述目标服务器的所述数据包的大小相同。The network connection method according to claim 6, wherein the response data packet has the same size as the data packet sent to the target server.
  8. 根据权利要求2所述的网络连接方法,其中,所述发出提示信 息的步骤包括:The network connection method according to claim 2, wherein the step of sending out the prompt information comprises:
    每间隔第二预设时间发出所述提示信息;Sending the prompt message every second preset time;
    当接收到用户响应所述提示信息的确认信息时,停止发出所述提示信息。When receiving a confirmation message from the user in response to the prompt information, stop sending the prompt information.
  9. 根据权利要求2所述的网络连接方法,其中,当所述无线网络不能进行数据通讯时,所述方法还包括:检测当前智能终端所处的应用的数据消耗量,并根据数据消耗量确定是否恢复数据网络的连接。The network connection method according to claim 2, wherein, when the wireless network cannot perform data communication, the method further comprises: detecting a data consumption amount of an application in which the current smart terminal is located, and determining whether the data consumption amount is Restore the data network connection.
  10. 根据权利要求9所述的网络连接方法,其中,当检测得到所述智能终端在无线网络连接下进行低数据消耗的应用使用时,恢复数据网络的连接;或The network connection method according to claim 9, wherein, when it is detected that the smart terminal uses an application with low data consumption under a wireless network connection, the connection to the data network is restored; or
    当检测得到所述智能终端在无线网络连接下进行高数据消耗的应用使用时,发出请求信息,以提示用户是否对所述高数据消耗的应用进行数据通讯,使得通过所述数据网络进行高数据流量的消耗。When it is detected that the smart terminal is using an application with high data consumption under a wireless network connection, a request message is sent to prompt the user whether to perform data communication on the application with high data consumption, so that high data is transmitted through the data network. Consumption of traffic.
  11. 根据权利要求10所述的网络连接方法,其中,当用户未对所述请求信息进行确认时,恢复所述数据网络的连接,但不响应所述高数据消耗的应用,且所述智能终端还响应后台的低数据消耗的应用的数据通讯。The network connection method according to claim 10, wherein when the user does not confirm the request information, the connection to the data network is restored but does not respond to the application with high data consumption, and the smart terminal further Responds to data communication of low data consumption applications in the background.
  12. 根据权利要求2所述的网络连接方法,其中,所述提示信息包括振动信息、音频信息或者文字信息。The network connection method according to claim 2, wherein the prompt information includes vibration information, audio information, or text information.
  13. 一种网络连接装置,其中,所述网络连接装置包括:A network connection device, wherein the network connection device includes:
    第一控制模块,用于当建立有数据网络连接且连接到无线网络时,断开所述数据网络的连接;A first control module, configured to disconnect the data network when a data network connection is established and connected to the wireless network;
    第一判断模块,用于判断所述无线网络是否能够进行数据通讯;A first determining module, configured to determine whether the wireless network can perform data communication;
    第二控制模块,用于当所述第一判断模块判断出所述无线网络不能够进行数据通讯时,则断开与所述无线网络的连接,且恢复所述数据网络的连接。A second control module is configured to, when the first determination module determines that the wireless network cannot perform data communication, disconnect the wireless network and restore the connection to the data network.
  14. 根据权利要求13所述的网络连接装置,其中,所述装置还包括:The network connection device according to claim 13, wherein the device further comprises:
    第三控制模块,用于发出提示信息,以提示用户所述无线网络的数据通讯发生中断;A third control module, configured to issue a prompt message to prompt a user that the data communication of the wireless network is interrupted;
    第二判断模块,用于当接收到用户基于所述提示信息再次连接至所述无线网络的信号时,判断所述无线网络是否能够进行数据通讯;A second determining module, configured to determine whether the wireless network can perform data communication when a signal is received from a user to connect to the wireless network again based on the prompt information;
    第四控制模块,用于当所述第二判断模块判断出所述无线网络不能够进行数据通讯时,则将所述无线网络的标识信息加入至故障队列;A fourth control module, configured to add the identification information of the wireless network to a fault queue when the second determination module determines that the wireless network cannot perform data communication;
    第五控制模块,用于当所述第二判断模块判断出所述无线网络能够 进行数据通讯时,则断开所述数据网络的连接。A fifth control module is configured to disconnect the data network when the second determination module determines that the wireless network is capable of data communication.
  15. 根据权利要求14所述的网络连接装置,其中,所述第一控制模块包括:The network connection device according to claim 14, wherein the first control module comprises:
    第一判断单元,用于当连接至所述无线网络时,判断在所述故障队列中是否包括所述无线网络的标识信息;A first determining unit, configured to determine, when connected to the wireless network, whether identification information of the wireless network is included in the fault queue;
    第一控制单元,用于当所述第一判断单元判断在所述故障队列中包括所述无线网络的标识信息时,则断开与所述无线网络的连接。The first control unit is configured to disconnect the connection with the wireless network when the first determination unit determines that the identification information of the wireless network is included in the fault queue.
  16. 根据权利要求14所述的网络连接装置,其中,所述第一判断模块包括:The network connection device according to claim 14, wherein the first determination module comprises:
    第二控制单元,用于每间隔第一预设时间发送数据包至目标服务器;A second control unit, configured to send a data packet to the target server every first preset time interval;
    第二判断单元,用于判断是否接收到所述目标服务器发送的响应数据包。The second determining unit is configured to determine whether a response data packet sent by the target server is received.
  17. 根据权利要求14所述的网络连接装置,其中,所述第三控制模块包括:The network connection device according to claim 14, wherein the third control module comprises:
    第三控制单元,用于每间隔第二预设时间发出所述提示信息;A third control unit, configured to send the prompt information every second preset time interval;
    第四控制单元,用于当接收到用户响应所述提示信息的确认信息时,停止发出所述提示信息。A fourth control unit is configured to stop issuing the prompt information when receiving a confirmation message from the user in response to the prompt information.
  18. 一种可读存储介质,其上存储有应用程序,其中,该程序被处理器执行时实现如权利要求1至12中任意一项所述的方法的步骤。A readable storage medium having stored thereon an application program, wherein when the program is executed by a processor, the steps of the method according to any one of claims 1 to 12 are implemented.
  19. 一种智能终端,其中,所述智能终端包括存储器以及处理器,所述存储器用于存储支持处理器执行权利要求1至12任一项所述方法的程序,所述处理器被配置为用于执行所述存储器中存储的程序。An intelligent terminal, wherein the intelligent terminal includes a memory and a processor, and the memory is configured to store a program that supports the processor to execute the method according to any one of claims 1 to 12, and the processor is configured to be used for A program stored in the memory is executed.
  20. 根据权利要求19所述的智能终端,其中,所述智能终端还包括用以实现无线网络以及数据网络通讯的WIFI芯片和RF电路。The smart terminal according to claim 19, wherein the smart terminal further comprises a WIFI chip and an RF circuit for implementing wireless network and data network communication.
PCT/CN2019/089665 2018-06-11 2019-05-31 Network connection method and device, readable storage medium and intelligent terminal WO2019237954A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810596293.2 2018-06-11
CN201810596293.2A CN108718458A (en) 2018-06-11 2018-06-11 Method for connecting network, device, readable storage medium storing program for executing and intelligent terminal

Publications (1)

Publication Number Publication Date
WO2019237954A1 true WO2019237954A1 (en) 2019-12-19

Family

ID=63912107

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/089665 WO2019237954A1 (en) 2018-06-11 2019-05-31 Network connection method and device, readable storage medium and intelligent terminal

Country Status (2)

Country Link
CN (1) CN108718458A (en)
WO (1) WO2019237954A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115038134A (en) * 2022-06-29 2022-09-09 支付宝(杭州)信息技术有限公司 Service request processing method, device, equipment and medium

Families Citing this family (1)

* 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

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016015244A1 (en) * 2014-07-30 2016-02-04 华为技术有限公司 Multi-communication-mode transmission method and apparatus
CN105657733A (en) * 2016-01-29 2016-06-08 努比亚技术有限公司 Network stabilization control device and method
CN105828395A (en) * 2015-07-28 2016-08-03 维沃移动通信有限公司 Method and device of WiFi adaptive selection and connection
CN105873041A (en) * 2016-05-20 2016-08-17 乐视控股(北京)有限公司 Automatic WiFi connecting method and device as well as mobile terminal
CN105898842A (en) * 2015-12-11 2016-08-24 乐视移动智能信息技术(北京)有限公司 WiFi (Wireless Fidelity) list generation method and terminal.
CN107426779A (en) * 2017-07-31 2017-12-01 合肥龙图腾信息技术有限公司 A kind of smart mobile phone WIFI and data network connection switching method and system
CN108718458A (en) * 2018-06-11 2018-10-30 奇酷互联网络科技(深圳)有限公司 Method for connecting network, device, readable storage medium storing program for executing and intelligent terminal

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014047952A1 (en) * 2012-09-29 2014-04-03 华为技术有限公司 Network switching method and terminal
CN113795042A (en) * 2013-12-03 2021-12-14 华为终端有限公司 Network switching method and terminal
CN104581885B (en) * 2014-12-23 2018-02-16 广东欧珀移动通信有限公司 A kind of network connection automatic switching method, apparatus and system
CN105517078A (en) * 2015-11-20 2016-04-20 小米科技有限责任公司 Network connection switching method and device
CN106507460A (en) * 2016-11-22 2017-03-15 努比亚技术有限公司 A kind of intelligent power saving method, terminal
CN107801223A (en) * 2017-05-22 2018-03-13 湖南大学 Vertical handoff method based on android system
CN107182094A (en) * 2017-06-01 2017-09-19 深圳天珑无线科技有限公司 Wireless network connecting method, terminal and storage medium
CN107396410A (en) * 2017-07-18 2017-11-24 捷开通讯(深圳)有限公司 A kind of method for switching network, intelligent terminal and the device with store function
CN107277881A (en) * 2017-08-04 2017-10-20 广东欧珀移动通信有限公司 Method for switching network, network switching device and intelligent terminal
CN107426782A (en) * 2017-08-24 2017-12-01 深圳双创科技发展有限公司 Network switching terminal and related product
CN107484219A (en) * 2017-08-24 2017-12-15 深圳双创科技发展有限公司 Terminal is switched to the method and terminal of cellular network from WiFi network
CN107580336A (en) * 2017-10-30 2018-01-12 努比亚技术有限公司 A kind of method for connecting network, terminal and computer-readable recording medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016015244A1 (en) * 2014-07-30 2016-02-04 华为技术有限公司 Multi-communication-mode transmission method and apparatus
CN105828395A (en) * 2015-07-28 2016-08-03 维沃移动通信有限公司 Method and device of WiFi adaptive selection and connection
CN105898842A (en) * 2015-12-11 2016-08-24 乐视移动智能信息技术(北京)有限公司 WiFi (Wireless Fidelity) list generation method and terminal.
CN105657733A (en) * 2016-01-29 2016-06-08 努比亚技术有限公司 Network stabilization control device and method
CN105873041A (en) * 2016-05-20 2016-08-17 乐视控股(北京)有限公司 Automatic WiFi connecting method and device as well as mobile terminal
CN107426779A (en) * 2017-07-31 2017-12-01 合肥龙图腾信息技术有限公司 A kind of smart mobile phone WIFI and data network connection switching method and system
CN108718458A (en) * 2018-06-11 2018-10-30 奇酷互联网络科技(深圳)有限公司 Method for connecting network, device, readable storage medium storing program for executing and intelligent terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115038134A (en) * 2022-06-29 2022-09-09 支付宝(杭州)信息技术有限公司 Service request processing method, device, equipment and medium
CN115038134B (en) * 2022-06-29 2024-04-26 支付宝(中国)网络技术有限公司 Service request processing method, device, equipment and medium

Also Published As

Publication number Publication date
CN108718458A (en) 2018-10-30

Similar Documents

Publication Publication Date Title
US10831161B2 (en) Method and device for sending communication message
WO2015090248A1 (en) Server overload protection method and device
US20190159271A1 (en) Bluetooth connection management method, master bluetooth device, and apparatus
CN107465841B (en) Fault information reporting method and terminal
US20160105418A1 (en) Method, system, device, and terminal for network initialization of multimedia playback device
CN107197507B (en) Method and device for controlling network link and mobile terminal
WO2018049971A1 (en) Hotspot network switching method and terminals
CN107786424B (en) Audio and video communication method, terminal and server
WO2019029618A1 (en) Ims voice call network switching method, storage device and mobile terminal
CN107295591B (en) Call method, device, computer storage medium and mobile terminal
CN109039989B (en) Address resolution protocol spoofing detection method, host and computer-readable storage medium
KR102615710B1 (en) Transmission method, transmission processing method, and related devices for multicast service
WO2018049970A1 (en) Hotspot network switching method and terminal
WO2023236972A1 (en) Communication environment security warning method and apparatus, terminal device, and storage medium
CN111431882B (en) Data processing method, device and storage medium
WO2014094600A1 (en) Mobile terminal and method for reducing power consumption thereof
WO2019237954A1 (en) Network connection method and device, readable storage medium and intelligent terminal
WO2018049969A1 (en) Hotspot establishment method and related device
WO2018049968A1 (en) Hotspot establishment method and terminals
WO2014183439A1 (en) Method, apparatus and system for switching function mode
CN106792434B (en) Hotspot establishing method and terminal equipment
CN110944313B (en) Bluetooth connection method, device, storage medium and terminal
US9965341B2 (en) Method and device for exchanging data between processes
WO2020199919A1 (en) Reporting method, configuration method, terminal, and network device
CN107872791B (en) Access point connection method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19820542

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19820542

Country of ref document: EP

Kind code of ref document: A1