CN111132275A - Method and device for establishing data connection, storage medium and electronic equipment - Google Patents

Method and device for establishing data connection, storage medium and electronic equipment Download PDF

Info

Publication number
CN111132275A
CN111132275A CN201911370277.2A CN201911370277A CN111132275A CN 111132275 A CN111132275 A CN 111132275A CN 201911370277 A CN201911370277 A CN 201911370277A CN 111132275 A CN111132275 A CN 111132275A
Authority
CN
China
Prior art keywords
data connection
network
module
waiting
establishing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911370277.2A
Other languages
Chinese (zh)
Inventor
聂谋荣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201911370277.2A priority Critical patent/CN111132275A/en
Publication of CN111132275A publication Critical patent/CN111132275A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/18Selecting a network or a communication service
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Telephone Function (AREA)

Abstract

The invention relates to the technical field of communication, and discloses a method, a device, a storage medium and electronic equipment for establishing data connection. The method for establishing the data connection is applied to the electronic equipment and comprises the following steps: acquiring a data connection establishment result in real time; and when the data connection is failed to be established, after waiting for the first preset time, triggering the behavior of network residence. According to the method for establishing the data connection, the purpose of quickly establishing the data connection is achieved by actively triggering the behavior of network connection when the data connection is failed to be established, the problem that the electronic equipment is successfully established in the network but cannot establish the data connection for a long time is solved, the phenomenon that the data connection is not found timely due to failure is avoided, manual operation of a user is not needed, and user experience is improved.

Description

Method and device for establishing data connection, storage medium and electronic equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for establishing a data connection, a storage medium, and an electronic device.
Background
With the rapid development of the internet, the use of terminal devices becomes more and more common. The terminal equipment can download files, watch online videos or run real-time communication software and the like by establishing data connection with a communication network, and has rich use functions.
In the actual use process, sometimes it is encountered that the terminal device has successfully resided in the network, but the data connection cannot be established all the time, and the terminal device is rejected by the network all the time when initiating a data establishment request to the network. Under the condition of a specific network, even if a user closes and opens the data switch in the setting menu, the data connection cannot be recovered, and the data connection can be successfully established only after the terminal equipment is re-networked.
When the terminal device is disconnected from the data connection, the user needs to pay attention to the data connection situation for a long time, and only the call function can be used, but data internet access cannot be performed, so that all applications based on the data connection cannot be used, and inconvenience is brought to the user.
Disclosure of Invention
The invention provides a method and a device for establishing data connection, a storage medium and electronic equipment, which solve the problem that the data connection cannot be established for a long time when the electronic equipment is successfully networked.
The invention provides a method for establishing data connection, which is applied to electronic equipment and comprises the following steps:
acquiring a data connection establishment result in real time; and a process for the preparation of a coating,
and when the data connection is failed to be established, after waiting for the first preset time, triggering the behavior of network residence.
Further preferably, the step of triggering the network-resident behavior after waiting for the first preset time when the data connection is failed to be established includes:
when the data connection is failed to be established, after waiting for a first preset time, if the data connection is in a call state, triggering a network-resident behavior after the call is finished.
Further preferably, the first preset time is 30-45 min;
and the first preset time is counted by starting a timer.
Further preferably, the web hosting behavior includes:
and starting the flight mode, and after waiting for a second preset time, closing the flight mode.
Further preferably, the second preset time is 3 to 8 seconds.
The invention also provides a device for establishing data connection, which is applied to electronic equipment and comprises:
the monitoring module is used for acquiring a data connection establishment result in real time;
the control module is used for triggering the behavior of network residence after waiting for first preset time when the data connection is failed to be established;
and the network-residing module is used for performing network-residing behavior.
Further preferably, the control module includes three states:
the states of the network residing module, the network residing module waiting to be triggered and the network residing module needing to be triggered are not needed;
and when the data connection is failed to be established, the control module enters the state of waiting for triggering the network-residing module;
when the data connection is failed to be established and the first preset time is waited for, the control module is changed from the state of waiting for triggering the network-parking module to the state of triggering the network-parking module;
and when the data connection is successfully established, the control module is converted into the state of the network residing module without triggering from the state of the network residing module with triggering.
Further preferably, the network-residing module is configured to perform a network-residing action, and includes:
and starting the flight mode, and after waiting for a second preset time, closing the flight mode.
The present invention also provides a computer-readable storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor to perform the above-mentioned method of establishing a data connection.
The invention also provides an electronic device, which comprises a processor and a memory, wherein the processor is electrically connected with the memory, the memory is used for storing instructions and data, and the processor is used for executing the steps in the method for establishing the data connection.
According to the method, the device, the storage medium and the electronic equipment for establishing the data connection, the data connection establishment result is obtained in real time by monitoring the data connection establishment condition in real time, when the data connection establishment fails, after waiting for the first preset time, the flight mode is started, and after waiting for the second preset time, the flight mode is closed, the network relocation is realized, the problem that the electronic equipment is successful in network relocation but cannot establish the data connection for a long time is solved, the behavior of initiatively initiating the network relocation when the data connection establishment fails is realized, the purpose of quickly establishing the data connection is achieved, the phenomenon that the data connection failure is not found timely is avoided, manual operation of a user is not needed, and the user experience is improved.
Drawings
The technical solution and other advantages of the present invention will become apparent from the following detailed description of specific embodiments of the present invention, which is to be read in connection with the accompanying drawings.
Fig. 1 is a schematic structural diagram of an electronic device according to a first embodiment of the present invention;
fig. 2 is another schematic structural diagram of an electronic device according to a first embodiment of the present invention;
fig. 3 is a flowchart illustrating a method for establishing a data connection according to a second embodiment of the present invention;
fig. 4 is a block diagram of an apparatus for establishing a data connection according to a third embodiment of the present invention;
fig. 5 is a schematic diagram illustrating a state change of a control module in an apparatus for establishing a data connection according to a third embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. In the drawings, elements having similar structures are denoted by the same reference numerals. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the description of the present invention, it is to be understood that the terms "first", "second" and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, features defined as "first", "second", may explicitly or implicitly include one or more of the described features. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
The embodiment of the invention is used for solving the problem that the electronic equipment can not establish data connection for a long time after being successfully networked.
A first embodiment of the present invention provides an electronic device, which may be an electronic device such as a smart phone, a tablet computer, a personal computer, or the like. As shown in fig. 1, the electronic device 100 includes a processor 101, a memory 102. The processor 101 is electrically connected to the memory 102.
The processor 101 is a control center of the electronic device 100, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or loading an application program stored in the memory 102 and calling data stored in the memory 102, thereby performing overall monitoring of the electronic device.
In this embodiment, the processor 101 in the electronic device 100 loads instructions corresponding to processes of one or more application programs into the memory 102, and the processor 101 runs the application programs stored in the memory 102, so as to implement various functions, such as a method for establishing a data connection, as follows:
acquiring a data connection establishment result in real time; and a process for the preparation of a coating,
and when the data connection is failed to be established, after waiting for the first preset time, triggering the behavior of network residence.
The electronic device 100 may implement any of the steps of the method of establishing a data connection.
Fig. 2 shows a specific block diagram of the electronic device 100 according to an embodiment of the present invention. As shown in fig. 2, the electronic device 100 may include Radio Frequency (RF) circuitry 110, memory 120 including one or more computer-readable storage media, an input unit 130, a display unit 140, a sensor 150, audio circuitry 160, a transmission module 170 (e.g., Wireless Fidelity (WiFi), a Wireless Fidelity (wi-fi)), a processor 180 including one or more processing cores, and a power supply 190. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 1 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The RF circuit 110 is used for receiving and transmitting electromagnetic waves, and performs interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. The RF circuitry 110 may include various existing circuit components for performing these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption/decryption chips, Subscriber Identity Module (SIM) cards, memory, and so forth. The RF circuitry 110 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced Mobile Communication (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (e.g., IEEE802.11a, IEEE802.11 b, IEEE802.11g and/or IEEE802.11 n), Voice over Internet Protocol (VoIP), world wide Microwave Access (Microwave for Wireless), Max-1, and other short message protocols, as well as any other suitable communication protocols, and may even include those that have not yet been developed.
The memory 120 may be configured to store software programs and modules, such as program instructions corresponding to the method for establishing a data connection, and the processor 180 may execute various functional applications and data processing by executing the software programs and modules stored in the memory 120, so as to obtain frequencies of information transmission signals transmitted by the electronic device 100. Generating interference signals, and the like. Memory 120 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 120 may further include memory located remotely from processor 180, which may be connected to electronic device 100 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 130 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 130 may include a touch-sensitive surface 131 as well as other input devices 132. The touch-sensitive surface 131, also referred to as a touch display screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 131 (e.g., operations by a user on or near the touch-sensitive surface 131 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 131 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 180, and can receive and execute commands sent by the processor 180. Additionally, the touch-sensitive surface 131 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface 131, the input unit 130 may also include other input devices 132. In particular, other input devices 132 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 140 may be used to display information input by or provided to a user and various graphic user interfaces of the mobile terminal 100, which may be configured by graphics, text, icons, video, and any combination thereof. The Display unit 140 may include a Display panel 141, and optionally, the Display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 631 may overlay the display panel 141, and when a touch operation is detected on or near the touch-sensitive surface 131, the touch operation is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 provides a corresponding visual output on the display panel 141 according to the type of the touch event. Although in the figures touch-sensitive surface 131 and display panel 141 are shown as two separate components to implement input and output functions, in some embodiments touch-sensitive surface 131 may be integrated with display panel 141 to implement input and output functions.
The electronic device 100 may also include at least one sensor 150, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that may generate an interrupt when the folder is closed or closed. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured to the electronic device 100, detailed descriptions thereof are omitted.
Audio circuitry 160, speaker 161, and microphone 162 may provide an audio interface between a user and electronic device 100. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 160, and then outputs the audio data to the processor 180 for processing, and then to the RF circuit 110 to be transmitted to, for example, another terminal, or outputs the audio data to the memory 120 for further processing. The audio circuitry 160 may also include an earbud jack to provide communication of a peripheral headset with the electronic device 100.
The electronic device 100, through the transmission module 170 (e.g., Wi-Fi module), may assist the user in receiving requests, sending information, etc., which provides the user with wireless broadband internet access. Although the transmission module 170 is shown in the drawings, it is understood that it does not belong to the essential constitution of the electronic device 100, and may be omitted as needed within a range not changing the essence of the invention.
The processor 180 is a control center of the electronic device 100, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the electronic device 100 and processes data by operating or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby performing overall monitoring of the electronic device. Optionally, processor 180 may include one or more processing cores; in some embodiments, the processor 180 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
The electronic device 100 also includes a power supply 190 (e.g., a battery) for powering the various components, which may be logically coupled to the processor 180 via a power management system in some embodiments, such that the power management system may manage charging, discharging, and power consumption. The power supply 190 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the electronic device 100 further includes a camera (e.g., a front camera, a rear camera), a bluetooth module, and the like, which are not described in detail herein. Specifically, in this embodiment, the display unit of the electronic device 100 is a touch screen display, the mobile terminal further includes a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for:
acquiring a data connection establishment result in real time; and a process for the preparation of a coating,
and when the data connection is failed to be established, after waiting for the first preset time, triggering the behavior of network residence.
In order to better operate the electronic device 100 provided in the foregoing embodiment, when the electronic device 100 succeeds in network establishment but cannot establish data connection for a long time, network searching and network establishment can be actively performed, so as to achieve fast data connection establishment and achieve an effect of being more convenient to use, a second embodiment of the present invention provides a method for establishing data connection, which is applied to the electronic device 100, and a flowchart of the method for establishing data connection is shown in fig. 3, where a specific flow is as follows:
and S101, acquiring a data connection establishment result in real time.
When the electronic device 100 needs to establish a Data connection during use, the electronic device 100 sends a PDN (Public Data Network) establishment request Msg to the mobile communication Network, and carries required parameters, and when the mobile communication Network agrees to the PDN establishment request, the electronic device 100 receives a PDN connectivity accept Msg and a connectable IP address, where the Data connection establishment of the electronic device 100 is successful; when the mobile network rejects the PDN establishment request of the electronic device 100, the electronic device 100 receives a PDN connectivity reject Msg (PDN connection reject message) and the type of error that occurred (usually, different error types are represented by different error numbers), and the data connection establishment of the electronic device 100 fails.
If the error type is a general error, the electronic device 100 may repeatedly send a PDN establishment request to the mobile communication network, continuously interacting to attempt to recover the data connection. However, continuously and repeatedly sending the PDN establishment request increases power consumption of the electronic device 100 while occupying network resources and not necessarily restoring the data connection, at which point the electronic device 100 will maintain the state of the data connection establishment failure. If the error type is a permanent error, the electronic device 100 will not be able to send the PDN establishment request to the mobile communication network again, and will maintain the state of the data connection establishment failure. When the data connection is failed to be established, an attempt to recover the data connection may be made by the method for establishing a data connection according to the second embodiment of the present invention.
In the second embodiment of the present invention, the electronic device 100 monitors the data connection status of itself in real time, and obtains the data connection establishment result in real time, so that when the data connection fails, step S102 is performed to avoid that the electronic device 100 maintains the data connection establishment failure state for a long time, and occupies network resources, thereby reducing power consumption and improving user experience.
Step S102, when the data connection is failed to be established, after waiting for a first preset time, triggering the behavior of network residence.
Specifically, when the data connection is failed to be established, after waiting for a first preset time, detecting whether the electronic device 100 is in a call state, and if the electronic device 100 is in the call state, triggering a network-resident behavior after waiting for the call to be ended; if the electronic device 100 is not in the call state, the network-resident behavior is triggered.
Further, the first preset time can be customized, and is preferably 30-45 min. In a second embodiment of the present invention, the first predetermined time is 45 minutes. Wherein the first preset time can be counted by starting a timer.
When the data connection establishment of the electronic device 100 fails and the type of the error is a general error, the electronic device 100 may still repeatedly send a PDN establishment request to the mobile communication network, and continuously perform interaction to attempt to recover the data connection. Therefore, the electronic device 100 may successfully establish the data connection during the continuous interaction with the mobile communication network within the first preset time. When the data connection is successfully established, the network-resident behavior will not be triggered.
Further, the web hosting behavior may include: and starting the flight mode, and after waiting for a second preset time, closing the flight mode. By switching on/off the flight mode to realize network searching and network parking again, the electronic device 100 can quickly establish data connection.
When the electronic device 100 completes the network camping, the mobile communication network records information and status of the electronic device 100, where the information may include identity information, location information, provisioned service information, allowed service information, authentication information, and the like of the electronic device 100, and the status may include a data service registration status. When the electronic device 100 repeatedly sends a PDN establishment request to the mobile communication network and the data connection is still failed, the possible reason is that the information registration of the electronic device 100 in the mobile communication network is abnormal, at this time, the flight mode is turned on to disconnect from the mobile communication network, after waiting for a second preset time, the flight mode is turned off, the electronic device 100 re-searches the mobile communication network and performs the information registration, the factor causing the data connection failure is eliminated, and thus network relocation and data connection establishment are achieved.
The second preset time can be customized, preferably 3-8 seconds, and the optimal second preset time is 5 seconds.
The method provided by the second embodiment of the invention acquires the data connection establishment result in real time by monitoring the data connection establishment condition in real time, and when the data connection establishment fails, after waiting for the first preset time, triggers the network searching and network residence again, thereby solving the problem that the electronic equipment can not establish the data connection for a long time, realizing that the electronic equipment actively initiates the network searching and network residence behaviors when the data connection establishment fails, achieving the purpose of quickly establishing the data connection, avoiding the phenomenon that the data connection failure is not found timely, avoiding manual operation of a user, and improving the user experience.
In order to better implement the method for establishing a data connection described in the second embodiment, the third embodiment of the present invention will be further described from the perspective of a device for establishing a data connection, where the device for establishing a data connection may be specifically implemented as an independent entity, and may also be integrated into the electronic device 100 provided in the first embodiment of the present invention, and the electronic device 100 may include a mobile phone, a tablet computer, and the like.
As shown in fig. 4, fig. 4 is a block diagram of an apparatus for establishing a data connection according to a third embodiment of the present invention, and is applied to an electronic device 100, where the apparatus for establishing a data connection may include:
and the monitoring module 201 is configured to obtain a data connection establishment result in real time.
The control module 202 is configured to, when the data connection is failed to be established, trigger a network-resident behavior after waiting for a first preset time.
And the network-residing module 203 is used for performing network-residing behavior.
Specifically, the monitoring module 201 is configured to monitor a data connection situation in real time, acquire a data connection establishment result in real time, and send the data connection establishment result to the control module 202. Wherein the establishment result comprises establishment success and establishment failure.
Through the monitoring module 201, the electronic device 100 can know the data connection condition in real time, and then take corresponding measures when the data connection is failed to be established, so as to avoid the influence on user experience caused by the long-time data connection failure state.
The control module 202 may include a data receiving module 2021, a timing module 2022, a call detection module 2023, and a trigger control module 2024. After the data receiving module 2021 receives the data establishment result from the monitoring module 201, when the data establishment is successful, the trigger control module 2024 does not trigger the network searching again and network parking; when the data establishment fails, the timing module 2022 starts timing, and starts to wait for the first preset time, and if the data receiving module 2021 receives a successful data connection establishment within the first preset time, the trigger control module 2024 does not trigger the network searching again and network parking behaviors; when the data establishment fails, after waiting for the first preset time, the call detection module 2023 detects whether the data is in a call state, if the data is in the call state, the trigger control module 2024 triggers the network searching again and network residing behaviors after the call is ended, and if the data is not in the call state, the trigger control module 2024 triggers the network searching again and network residing behaviors.
Further, fig. 5 is a schematic diagram of a state change of the control module 202, as shown in fig. 5, the control module 202 includes three states: the states of the network-resident modules do not need to be triggered, wait for the states of the network-resident modules to be triggered and carry out the states of the network-resident modules to be triggered. And, when the data connection is failed to be established, the control module 202 enters the state of waiting for triggering the network-residing module; when the data connection is failed to be established and the first preset time is waited for, the control module 202 changes from the state of waiting for triggering the network-residing module to the state of performing triggering the network-residing module; when the data connection is successfully established, the control module 202 transitions from the active-triggered network-residing module state to the non-active-triggered network-residing module state.
Specifically, the control module 202 is in an initial state that does not need to trigger the network-residing module. When the data connection establishment result from the monitoring module 201 is received, if the data connection establishment is successful, the current state of the control module 202 is a state in which the network-resident module does not need to be triggered, and the control module stops waiting for the first preset time. If the data connection is failed to be established, the current state of the control module 202 is a state of waiting for triggering the network-residing module, and if the current state is not the state of waiting for triggering the network-residing module, the state of not needing to trigger the network-residing module or triggering the network-residing module is changed into the state of waiting for triggering the network-residing module, and the first preset time is started to wait. Wherein the first preset time is preferably 30-45 min. When the waiting time is out, that is, after waiting for the first preset time, detecting whether the mobile terminal is in a call state, if the mobile terminal is in the call state, after the call is ended, the control module 202 changes the state of waiting for triggering the network-parking module into a state of triggering the network-parking module, and triggers the network-parking behavior. When the data connection is successfully established, the control module 202 changes the state from the state waiting for triggering the network-residing module or the state performing triggering the network-residing module to the state not requiring triggering the network-residing module.
The control module 202 changes to different states according to the data connection establishment result, whether the waiting time is out and whether the data connection is in a call state, so as to achieve the effect of flexibly controlling whether to trigger and when to trigger the network residence behavior.
The network-hosting module 203 is used for the electronic device 100 to perform network hosting again, and may include: and starting the flight mode, and after waiting for a second preset time, closing the flight mode. The second preset time is preferably 3-8 seconds, and the optimal second preset time is 5 seconds.
Therefore, under the condition that the user does not sense, the electronic device 100 actively initiates the network-resident behavior, so as to achieve the purpose of quickly establishing the data connection. Specifically, by turning on the flight mode, disconnecting from the mobile communication network, and after waiting for 5 seconds, turning off the flight mode, the electronic device 100 re-searches for the mobile communication network and registers information, so as to eliminate a factor causing a failure in establishing data connection, and to re-establish a network and establish data connection. The information may include identity information, location information, provisioned service information, allowed service information, authentication information, and the like of the electronic device 100.
In specific implementation, the above modules may be implemented as independent entities, or may be combined arbitrarily, and implemented as the same or a plurality of entities, where the specific implementation of the above modules may refer to the foregoing method embodiment, and specific beneficial effects that can be achieved may also refer to the beneficial effects in the foregoing method embodiment, which are not described herein again.
It will be understood by those skilled in the art that all or part of the steps in the method for establishing a data connection provided in the second embodiment of the present invention may be implemented by instructions, or by instructions controlling associated hardware, which may be stored in a computer-readable storage medium and loaded and executed by a processor. To this end, a fourth embodiment of the present invention provides a storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute any step of the method for establishing a data connection provided in the second embodiment.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute any step in the method for establishing a data connection provided in the second embodiment, the beneficial effects that can be achieved by the method for establishing a data connection provided in the second embodiment of the present invention can be achieved, and detailed descriptions are omitted here for the foregoing embodiment.
The method, the apparatus, the storage medium, and the electronic device for establishing data connection provided by the embodiments of the present invention are described in detail above, and a specific example is applied in the present disclosure to explain the principle and the implementation of the present invention, and the description of the above embodiments is only used to help understanding the technical solution and the core idea of the present invention; those of ordinary skill in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for establishing data connection is applied to electronic equipment, and is characterized by comprising the following steps:
acquiring a data connection establishment result in real time; and a process for the preparation of a coating,
and when the data connection is failed to be established, after waiting for the first preset time, triggering the behavior of network residence.
2. The method according to claim 1, wherein the step of triggering the network-resident behavior after waiting for the first preset time when the data connection is failed to be established comprises:
when the data connection is failed to be established, after waiting for a first preset time, if the data connection is in a call state, triggering a network-resident behavior after the call is finished.
3. The method for establishing a data connection according to claim 1 or 2, wherein the first preset time is 30-45 min;
and the first preset time is counted by starting a timer.
4. The method of claim 1, wherein the act of hosting the network comprises:
and starting the flight mode, and after waiting for a second preset time, closing the flight mode.
5. Method for establishing a data connection according to claim 4, characterized in that said second predetermined time is 3-8 seconds.
6. An apparatus for establishing data connection, applied to an electronic device, comprising:
the monitoring module is used for acquiring a data connection establishment result in real time;
the control module is used for triggering the behavior of network residence after waiting for first preset time when the data connection is failed to be established;
and the network-residing module is used for performing network-residing behavior.
7. The apparatus of claim 6, wherein the control module comprises three states:
the states of the network residing module, the network residing module waiting to be triggered and the network residing module needing to be triggered are not needed;
and when the data connection is failed to be established, the control module enters the state of waiting for triggering the network-residing module;
when the data connection is failed to be established and the first preset time is waited for, the control module is changed from the state of waiting for triggering the network-parking module to the state of triggering the network-parking module;
and when the data connection is successfully established, the control module is converted into the state of the network residing module without triggering from the state of the network residing module with triggering.
8. The apparatus for establishing a data connection according to claim 6, wherein the network-hosting module is configured to perform a network-hosting action, including:
and starting the flight mode, and after waiting for a second preset time, closing the flight mode.
9. A computer-readable storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor to perform the method of establishing a data connection of any of claims 1 to 5.
10. An electronic device comprising a processor and a memory, the processor being electrically connected to the memory, the memory being configured to store instructions and data, the processor being configured to perform the steps of the method of establishing a data connection according to any one of claims 1 to 5.
CN201911370277.2A 2019-12-26 2019-12-26 Method and device for establishing data connection, storage medium and electronic equipment Pending CN111132275A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911370277.2A CN111132275A (en) 2019-12-26 2019-12-26 Method and device for establishing data connection, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911370277.2A CN111132275A (en) 2019-12-26 2019-12-26 Method and device for establishing data connection, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN111132275A true CN111132275A (en) 2020-05-08

Family

ID=70503342

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911370277.2A Pending CN111132275A (en) 2019-12-26 2019-12-26 Method and device for establishing data connection, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN111132275A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112367682A (en) * 2020-10-30 2021-02-12 重庆芯讯通无线科技有限公司 Terminal, network-resident control method and system thereof, electronic device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104935732A (en) * 2015-04-30 2015-09-23 广东欧珀移动通信有限公司 Airplane mode control method and mobile terminal
CN106034323A (en) * 2015-03-12 2016-10-19 小米科技有限责任公司 Wireless-terminal-based automatic recovery method and relevant apparatus for data connection
CN109429293A (en) * 2017-08-31 2019-03-05 展讯通信(上海)有限公司 Network mode switching method, user terminal and computer readable storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106034323A (en) * 2015-03-12 2016-10-19 小米科技有限责任公司 Wireless-terminal-based automatic recovery method and relevant apparatus for data connection
CN104935732A (en) * 2015-04-30 2015-09-23 广东欧珀移动通信有限公司 Airplane mode control method and mobile terminal
CN109429293A (en) * 2017-08-31 2019-03-05 展讯通信(上海)有限公司 Network mode switching method, user terminal and computer readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112367682A (en) * 2020-10-30 2021-02-12 重庆芯讯通无线科技有限公司 Terminal, network-resident control method and system thereof, electronic device and storage medium

Similar Documents

Publication Publication Date Title
US10069818B2 (en) Method, system, device, and terminal for network initialization of multimedia playback device
US11224027B2 (en) Cell registration method and device
CN107465841B (en) Fault information reporting method and terminal
CN109819489B (en) Terminal calling method and terminal
WO2019029618A1 (en) Ims voice call network switching method, storage device and mobile terminal
CN111431882B (en) Data processing method, device and storage medium
CN103068016B (en) The method of mobile terminal and reduction power consumption thereof
CN110944313B (en) Bluetooth connection method, device, storage medium and terminal
CN110572508A (en) Address book synchronization method and device, storage medium and electronic equipment
CN110933704A (en) Network communication method, device, storage medium and electronic equipment
CN111436090A (en) P L MN synchronization method, terminal and storage medium
CN104917905B (en) Processing method, terminal and the server of Stranger Calls
CN110933770B (en) Connection request sending method and device, storage medium and electronic equipment
CN112867078A (en) Base station control method and device and mobile terminal
CN110891262A (en) Bluetooth pairing method, system and terminal equipment
CN111132275A (en) Method and device for establishing data connection, storage medium and electronic equipment
CN111615101B (en) IMS registration method, device, storage medium and electronic terminal
CN105208208B (en) Network connection switchs deployment method and device
CN111031038A (en) Network processing method and device, storage medium and terminal equipment
CN111010674B (en) Roaming prompting method, device, storage medium and mobile terminal
CN110995939B (en) Switching method and device of call network and storage medium
CN113613310A (en) WIFI connection method and device, storage medium and mobile terminal
CN110913022A (en) Method, device and system for downloading network file of mobile terminal and storage medium
CN112286849A (en) Wireless charging base data switching method and system, storage medium and terminal equipment
CN111600868A (en) Direct connection communication method, core network equipment, mobile terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200508