CN115278932A - Network reconnection method, device, terminal equipment and storage medium - Google Patents

Network reconnection method, device, terminal equipment and storage medium Download PDF

Info

Publication number
CN115278932A
CN115278932A CN202210831224.1A CN202210831224A CN115278932A CN 115278932 A CN115278932 A CN 115278932A CN 202210831224 A CN202210831224 A CN 202210831224A CN 115278932 A CN115278932 A CN 115278932A
Authority
CN
China
Prior art keywords
terminal device
terminal equipment
signal
communication quality
network
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
CN202210831224.1A
Other languages
Chinese (zh)
Inventor
杨晨野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202210831224.1A priority Critical patent/CN115278932A/en
Publication of CN115278932A publication Critical patent/CN115278932A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/19Connection re-establishment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/0231Traffic management, e.g. flow control or congestion control based on communication conditions
    • H04W28/0236Traffic management, e.g. flow control or congestion control based on communication conditions radio quality, e.g. interference, losses or delay

Landscapes

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

Abstract

The application discloses a network reconnection method, a network reconnection device, terminal equipment and a storage medium, and belongs to the technical field of terminal control. The method is applied to the terminal equipment, and comprises the following steps: acquiring a first parameter of the terminal equipment, wherein the first parameter is used for indicating the current communication quality of the terminal equipment; when the communication quality of the terminal equipment is determined to be lower than a preset communication quality threshold value according to the first parameter, controlling the terminal equipment to carry out network connection again; in the process of network connection of the terminal equipment, the state of the signal icon of the terminal equipment is kept as a target state, and the target state is the state of the signal icon before network connection of the terminal equipment is carried out again. In the network connection re-processing process, the state of the signal icon of the terminal equipment is kept to be the state before the network connection of the terminal equipment is re-processed, so that the user can automatically perform network reconnection in an unaesthetic state, the user does not need to execute actions such as mobile terminal or manual power on and off, and the network reconnection efficiency of the terminal equipment is improved.

Description

Network reconnection method, device, terminal equipment and storage medium
Technical Field
The present application relates to the field of terminal control technologies, and in particular, to a network reconnection method, apparatus, terminal device, and storage medium.
Background
With the development of information technology and internet technology, the phenomenon that users use terminal devices in daily life is very common, wherein the terminal devices are more indispensable to establish communication connection with a network during use.
Currently, the network connection of the terminal device may be a connection with a wireless fidelity (WiFi) network, a 4G network connection established with a base station through the fourth generation mobile communication technology (4G), and the like. For example, the terminal device may access a network through a WiFi wireless Access Point (AP) to establish a WiFi network connection, or may initiate a random access to the base station through a Subscriber Identity Module (SIM) card inserted into the terminal device to establish a 4G or 5G network connection. When a user enters an elevator or a subway or other areas, the terminal device may enter an idle state, which may also be referred to as an idle state, and the terminal device cannot normally surf the internet.
When the terminal equipment cannot surf the internet normally, the user is often required to restart the terminal or transfer the position of the terminal equipment to enable the terminal equipment to be re-accessed into the network to recover the communication, the waiting time of the reconnection scheme is long, and the reconnection efficiency is low.
Disclosure of Invention
In order to solve the problems in the prior art and improve the network reconnection efficiency of a terminal device, embodiments of the present application provide a network reconnection method, apparatus, terminal device, and storage medium. The technical scheme is as follows:
in one aspect, the present application provides a network reconnection method, which is applied to a terminal device, and includes:
acquiring a first parameter of the terminal equipment, wherein the first parameter is used for indicating the current communication quality of the terminal equipment;
when the communication quality of the terminal equipment is determined to be lower than a preset communication quality threshold value according to the first parameter, controlling the terminal equipment to carry out network connection again;
in the process of network connection of the terminal device, the state of the signal icon of the terminal device is kept as a target state, and the target state is the state of the signal icon before network connection of the terminal device is carried out again.
In one aspect, the present application provides a terminal device control apparatus, applied to a terminal device, the apparatus including:
a signal obtaining module, configured to obtain a first parameter of the terminal device, where the first parameter is used to indicate a current communication quality of the terminal device;
the network reconnection module is used for controlling the terminal equipment to reconnect the network when the communication quality of the terminal equipment is determined to be lower than a preset communication quality threshold value according to the first parameter;
in the process of network connection of the terminal device, the state of the signal icon of the terminal device is kept as a target state, and the target state is the state of the signal icon before network connection of the terminal device is carried out again.
In another aspect, the present application provides a terminal device comprising a processor and a memory, wherein at least one instruction, at least one program, a set of codes, or a set of instructions is stored in the memory, and the at least one instruction, the at least one program, the set of codes, or the set of instructions is loaded and executed by the processor to implement the network reconnection method according to an aspect.
In another aspect, the present application provides a computer-readable storage medium having at least one instruction, at least one program, a set of codes, or a set of instructions stored therein, which is loaded and executed by a processor to implement the network reconnection method according to one aspect.
In another aspect, the present application provides a computer program product, which when run on a computer, causes the computer to execute the network reconnection method according to the above aspect.
In another aspect, an embodiment of the present application provides an application publishing platform, configured to publish a computer program product, where when the computer program product runs on a computer, the computer is caused to perform the network reconnection method according to the above aspect.
The beneficial effects brought by the technical scheme provided by the embodiment of the application at least comprise:
the method comprises the steps that a first parameter of the terminal device is obtained, and the first parameter is used for indicating the current communication quality of the terminal device; when the communication quality of the terminal equipment is determined to be lower than a preset communication quality threshold value according to the first parameter, controlling the terminal equipment to carry out network connection again; in the process of network connection of the terminal equipment, the state of the signal icon of the terminal equipment is kept as a target state, and the target state is the state of the signal icon before network connection of the terminal equipment is carried out again. According to the method and the device, when the communication quality of the terminal equipment is lower than the preset communication quality threshold value, the terminal equipment is controlled to carry out network reconnection, and in the network reconnection process, the state of the signal icon of the terminal equipment is kept to be the state before the terminal equipment carries out network reconnection again, so that a user can carry out network reconnection automatically when the user is unaware of the reconnection, the user does not need to execute actions such as mobile terminal or manual power on and power off, and the network reconnection efficiency of the terminal equipment is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic diagram illustrating a network connection of a terminal device according to an exemplary embodiment of the present application;
fig. 2 is a schematic structural diagram of a terminal device according to an exemplary embodiment of the present application;
fig. 3 is a flowchart of a method for network reconnection according to an exemplary embodiment of the present application;
FIG. 4 is an interface diagram of a terminal device according to an exemplary embodiment of the present application;
fig. 5 is a flowchart of a method for network reconnection according to an exemplary embodiment of the present application;
FIG. 6 is an interface schematic of a target application interface according to an exemplary embodiment of the present application;
fig. 7 is a flowchart of a method for network reconnection according to an exemplary embodiment of the present application;
fig. 8 is a block diagram of a network reconnection device according to an exemplary embodiment of the present application;
fig. 9 is a schematic structural diagram of a terminal device according to an exemplary embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. The following description refers to the accompanying drawings in which the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
With the rapid development of scientific technology, various terminal devices have been applied to daily life of people, and people need to use the terminal devices in work, life and study, for example, people can realize wireless communication and mutual information transmission by using the terminal devices. Optionally, the wireless network communication used by the terminal device may be a WiFi network connection established based on a WiFi network, or may be a mobile network connection established based on a base station.
Taking a mobile network connection established between a terminal device and a base station as an example, please refer to fig. 1, which shows a schematic diagram of an application scenario related to an exemplary embodiment of the present application. As shown in fig. 1, terminal device 110, base station 120 and network management device 130 are included.
Wherein terminal device 110 is a terminal device having cellular mobile communication capabilities. Terminal device 110 may communicate with one or more core networks via a Radio Access Network (RAN), and terminal device 110 may be a mobile terminal, such as a mobile telephone (or called a "cellular" telephone) and a computer having a mobile terminal, such as a portable, pocket, hand-held, computer-included, or vehicle-mounted mobile device. For example, a Station (STA), a subscriber unit (subscriber unit), a subscriber station (subscriber station), a mobile station (mobile), a remote station (remote station), an access point, a remote terminal (remote terminal), an access terminal (access terminal), a user equipment (user terminal), a user agent (user agent), a user equipment (user device), or a user terminal (UE). Alternatively, the terminal device 110 may be a device of an unmanned aerial vehicle.
Optionally, the terminal device 110 may also be an intelligent home device, for example, the intelligent home device may include, but is not limited to, a camera, a sensor (such as an infrared sensor, a light sensor, a vibration sensor, a sound sensor, and the like), an intelligent television, an intelligent robot, an intelligent sound box, an intelligent refrigerator, an intelligent air conditioner, an intelligent electric cooker, a water purifier, and other devices that are fixedly installed or move in a small range. Alternatively, the terminal device 110 may be a mobile device such as an MP3 player (moving picture experts group audio layer III, motion picture experts group audio layer 3), an MP4 player (moving picture experts group audio layer IV, motion picture experts group audio layer 4), and an intelligent bluetooth headset.
The base station 120 may be a network side device in a wireless communication system. The wireless communication system may be a 4G system, also called a long term evolution system; alternatively, the wireless communication system may be a 5G system, which is also called a New Radio (NR) system. Alternatively, the wireless communication system may be a next generation system of a 5G system.
The base station 120 may be an evolved node b (eNB) used in a 4G system. Alternatively, the base station 120 may be a base station (gNB) adopting a centralized distributed architecture in the 5G system. When the base station 120 adopts a centralized distribution architecture, it generally includes a Centralized Unit (CU) and at least two Distributed Units (DU). A Packet Data Convergence Protocol (PDCP) layer, a radio link layer (RLC) layer, and a Media Access Control (MAC) layer are set in the central unit; a Physical (PHY) layer protocol stack is disposed in the distribution unit, and the embodiment of the present application does not limit a specific implementation manner of the base station 120.
The base station 120 and the terminal device 110 may establish a radio connection over the air interface. In different embodiments, the wireless air interface is based on a 4G standard; or the wireless air interface is a wireless air interface based on a 5G standard, for example, the wireless air interface is a new air interface; alternatively, the wireless air interface may be a wireless air interface based on a 5G technology standard of a next generation mobile communication network.
Optionally, the wireless communication system may further include a network management device 130.
The base stations 120 are respectively connected to the network management apparatus 130. The network Management device 130 may be a core network device in a wireless communication system, for example, the network Management device 130 may be a Mobility Management Entity (MME) in the EPC. Alternatively, the Network management device may also be other core Network devices, such as a Serving GateWay (SGW), a Public Data Network GateWay (PGW), a Policy and Charging Rules Function (PCRF), or a Home Subscriber Server (HSS), for example. The embodiment of the present application is not limited to the implementation form of the network management device 130.
In the process of establishing the network connection between the terminal device 110 and the base station 120, the terminal device 110 may initiate random access to the base station through the SIM card inserted by itself, and establish a 4G or 5G network connection. In actual use, because a scene where a user is located usually changes, a situation that a network signal is abnormal usually occurs in a process that the user uses a terminal device, for example, when the user enters an elevator or a subway or other area, the terminal device may enter an idle state, the terminal device cannot surf the internet normally at the moment, the user often needs to restart the terminal or transfer the located position to make the terminal device re-access the network to recover communication, the waiting time of the reconnection scheme is long, and the reconnection efficiency is low.
In order to solve the problems in the related art, improve the efficiency of network reconnection of the terminal equipment and reduce the waiting time of a user, the application provides a network reconnection method which can automatically reconnect the network under the condition that the user does not sense the network reconnection and quickly realize the effect of network reconnection.
The method may be applied to the terminal device 110 shown in fig. 1, please refer to fig. 2, which is a schematic structural diagram of the terminal device 110 according to an exemplary embodiment of the present application.
As shown in fig. 2, the terminal device 110 includes a processor 210, a transceiver 220, and a display unit 270. The display unit 270 may include a display screen, among others.
Optionally, terminal device 110 may also include memory 230. The processor 210, the transceiver 220 and the memory 230 may communicate with each other via an internal connection path to transfer the ranging data, the memory 230 is used for storing a computer program, and the processor 210 is used for calling and running the computer program from the memory 230.
The processor 210 may be combined with the memory 230 into a processing device, and more generally, separate components, and the processor 210 is configured to execute the program code stored in the memory 230 to implement the functions described above. In particular implementations, the memory 230 may be integrated into the processor 210 or may be separate from the processor 210.
It is to be appreciated that terminal device 110 shown in fig. 2 may include one or more processing elements, such as: the processor 210 may include an Application Processor (AP), a modem processor, a Graphics Processor (GPU), an Image Signal Processor (ISP), a controller, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), among others. Wherein, the different processing units may be independent devices or may be integrated in one or more processors.
A memory may also be provided in processor 210 for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 210. If the processor 210 needs to use the instruction or data again, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 210, thereby increasing the efficiency of the system.
In some embodiments, processor 210 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and/or a Universal Serial Bus (USB) interface, etc.
The UART interface is a universal serial data bus used for asynchronous communications. The bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is generally used to connect the processor 210 and the transceiver 220. For example: the processor 210 communicates with the bluetooth module in the transceiver 220 through the UART interface to implement the bluetooth function.
The MIPI interface may be used to connect the processor 210 with peripheral devices such as the display unit 270. The MIPI interface includes a Camera Serial Interface (CSI), a Display Serial Interface (DSI), and the like. In some embodiments, processor 210 and display unit 270 communicate via a DSI interface to implement the display functionality of terminal device 110.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal and may also be configured as a data signal. In some embodiments, a GPIO interface may be used to connect the processor 210 with the display unit 270, the transceiver 220, and the like. The GPIO interface may also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, and the like.
The transceiver 220 may provide a solution for wireless communication applied on the terminal device 110, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), bluetooth (BT), global Navigation Satellite System (GNSS), frequency Modulation (FM), near Field Communication (NFC), infrared (IR), and so on. The transceiver 220 may be one or more devices that integrate at least one communication processing module, for example, may include a bluetooth module.
Memory 230 may be used to store computer-executable program code, which includes instructions. The memory 230 may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like. The storage data area may store data (such as positioning data) created during the use of the terminal device 110, and the like. Further, the memory 230 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, a universal flash memory (UFS), and the like. Processor 210 executes various functional applications of terminal device 110 and data processing by executing instructions stored in memory 230 and/or instructions stored in a memory disposed in the processor.
In addition, in order to further improve the functions of the terminal device 110, the terminal device 110 may further include one or more of the power supply 250, the input unit 260, the audio circuit 280, the sensor 201, and the like.
And a power supply 250 for supplying power to various devices or circuits in the terminal device 110. Preferably, the power supply 250 may be logically connected to the processor 210 through a power management device, so that the power management device can manage charging, discharging, power consumption management, and the like.
The input unit 260 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal device 110. Specifically, the input unit 260 may include a touch panel and other input devices. The touch panel, also called a touch screen, may collect touch operations of a user on or near the touch panel, such as operations of the user on or near the touch panel using any suitable object or accessory, such as a finger, a stylus, etc., and drive the corresponding connection device according to a preset program. Alternatively, the touch panel may include two parts, a touch detection device 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, and sends the touch point coordinates to the processor 210, and can receive and execute commands sent by the processor 210. In addition, the touch panel may be implemented in various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 260 may include other input devices in addition to the touch panel. In particular, other input devices may include, but are not limited to, one or more of function keys, a trackball, a joystick, and the like.
The display unit 270 may be used to display information input by or provided to a user and various menus of the electronic device. The Display unit 270 may include a Display panel, and optionally, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel may cover the display panel, and when the touch panel detects a touch operation on or near the touch panel, the touch panel transmits the touch operation to the processor 210 to determine the type of the touch event, and then the processor 210 provides a corresponding visual output on the display panel according to the type of the touch event.
The terminal device 110 may also include at least one sensor 201, such as a gyroscope sensor, a motion sensor, and other sensors. In particular, a gyro sensor may be used to determine the motion gesture of terminal device 110. In some embodiments, the angular velocity of terminal device 110 about three axes (i.e., x, y, and z axes) may be determined by a gyroscope sensor. The gyroscope sensor can also be used for navigation and body feeling game scenes. As one type of motion sensor, the acceleration sensor can detect the magnitude of acceleration in various directions (i.e., x, y, and z axes), detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), and the like; other sensors such as pressure gauge, barometer, hygrometer, thermometer, infrared sensor, etc. that can be configured with the electronic device are not described herein.
Audio circuitry 280 may include a speaker and microphone to provide an audio interface between a user and an electronic device. The audio circuit 280 may transmit the electrical signal converted from the received audio data to a speaker, and convert the electrical signal into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 280 and converted into audio data, which is then processed by the audio data output processor 210, and then passed through the RF circuit to be transmitted to, for example, another electronic device, or output to the memory 230 for further processing.
It is to be understood that the illustrated structure of the embodiment of the present application does not constitute a specific limitation to the terminal device 110. In other embodiments of the present application, terminal device 110 may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
In addition, the terminal device 110 according to the embodiment of the present application may be installed with an operating system, and may be installed with an application program, which is not limited in the embodiment of the present application.
The following describes a network reconnection method provided in the present application, taking the terminal device 110 shown in fig. 1 as an example. Referring to fig. 3, a flowchart of a network reconnection method provided in an exemplary embodiment of the present application is shown, where the network reconnection method may be used in a terminal device. As shown in fig. 3, the network reconnection method may include the steps of:
step 301, acquiring a first parameter of the terminal device.
In the embodiment of the application, the first parameter is used for indicating the current communication quality of the terminal equipment.
As an example, the first parameter may be a signal strength of the terminal device, for example, during an operation of the terminal device, the terminal device may establish a network connection with a network provider, and the terminal device may obtain its signal strength, thereby indicating a communication quality of the current network connection. Optionally, the wireless network communication used by the terminal device may be a WiFi network connection established based on a WiFi network, or may be a mobile network connection established based on a base station.
The signal strength may be a signal strength of a signal received by the terminal device during the wireless network communication process of the terminal device, or may also be a signal strength of a signal transmitted by the terminal device and coupled back to the terminal when the terminal device transmits the signal to the base station or the network provider.
For example, the terminal device may obtain the signal strength of the received signal, and in this process, the terminal device may actively send a test signal to the base station, and then obtain the signal strength of the received signal returned by the base station for the test signal. Or, the terminal device may also obtain, by using its signal detection function, the signal strength of the signal that is coupled back to the terminal after the signal is transmitted, so as to serve as the first parameter indicating the current communication quality of the terminal device.
As another example, the first parameter may also be a parameter such as an error rate or a jitter rate of the terminal device, and when the error rate or the jitter rate of the terminal device is higher than a preset threshold, it indicates that the current communication quality of the terminal device is poor, otherwise, it indicates that the current communication quality of the terminal device is good. The error rate is the proportion of the number of erroneously received code elements in the total number of transmitted code elements, and the terminal equipment indicates the current communication quality of the terminal equipment according to the error rate by acquiring the error rate of a reference signal transmitted between the terminal equipment and the base station in the process of transmitting signals. Alternatively, the terminal device may also obtain a phase offset of a reference signal transmitted between the terminal device and the base station during signal transmission, and calculate a jitter rate according to the phase offset, so as to indicate the current communication quality of the terminal device.
Of course, the first parameter may be other parameters for indicating the communication quality, which are not described herein.
Step 302, when the communication quality of the terminal device is determined to be lower than a preset communication quality threshold according to the first parameter, controlling the terminal device to perform network connection again. In the process of network connection of the terminal equipment, the state of the signal icon of the terminal equipment is kept as a target state, and the target state is the state of the signal icon before network connection of the terminal equipment is carried out again.
The preset communication quality threshold in the embodiment of the present application is different according to the difference of the first parameter. For example, when the first parameter is signal strength, the preset communication quality threshold is a preset signal strength threshold; when the first parameter is a jitter rate, the preset communication quality threshold is a preset jitter rate threshold; when the first parameter is the bit error rate, the preset communication quality threshold is a preset bit error rate threshold, which is not exemplified herein. The preset communication quality threshold is pre-stored in the terminal device, or may be determined by the terminal device according to the usage of the network, which is not limited herein.
For convenience of illustration, in the embodiment of the present application, the first parameter is taken as an example of the signal strength, and the implementation of step 202 is described.
In the application, the terminal device compares the acquired signal intensity with a preset intensity threshold, when the signal intensity of the terminal device is lower than the preset intensity threshold, the terminal device is controlled to perform network connection again, and in the process of performing network connection again, the state of the signal icon of the terminal device is kept to be the state before performing network connection again. That is, the state of the signal icon of the terminal device is maintained during the network connection of the terminal device. The preset intensity threshold may be preset in the terminal device by a developer or an operation and maintenance person.
Alternatively, the signal icon may be an icon displayed in a display screen of the terminal device to indicate a network signal. Referring to fig. 4, an interface diagram of a terminal device according to an exemplary embodiment of the present application is shown. As shown in fig. 4, a signal icon 401 and a power icon 402 are included in the display screen of the terminal device 400. In the process of using the terminal device by a user, when the signal of the terminal device is good, the signal icon can be as shown in 401, but when the user enters an elevator or subway or other areas, the signal of the terminal device is poor, but the signal icon displayed by the terminal device at the moment can still be 401.
In summary, the first parameter of the terminal device is obtained, and the first parameter is used for indicating the current communication quality of the terminal device; when the communication quality of the terminal equipment is determined to be lower than a preset communication quality threshold value according to the first parameter, controlling the terminal equipment to carry out network connection again; in the process of network connection of the terminal equipment, the state of the signal icon of the terminal equipment is kept as a target state, and the target state is the state of the signal icon before network connection of the terminal equipment is carried out again. According to the method and the device, when the communication quality of the terminal equipment is lower than the preset communication quality threshold value, the terminal equipment is controlled to carry out network reconnection, and in the network reconnection process, the state of the signal icon of the terminal equipment is kept to be the state before the terminal equipment carries out network reconnection again, so that a user can carry out network reconnection automatically when the user is unaware of the reconnection, the user does not need to execute actions such as mobile terminal or manual power on and power off, and the network reconnection efficiency of the terminal equipment is improved.
In a possible implementation manner, the signal mode where the terminal device is currently located may also be determined, when the terminal device performs network reconnection, network reconnection is preferentially performed according to the signal mode where the terminal device is located, and when the network reconnection fails, different signal modes are sequentially adopted to perform reconnection, so that flexibility of network reconnection is improved.
Referring to fig. 5, a flowchart of a method for network reconnection, which may be used in a terminal device, according to an exemplary embodiment of the present application is shown. As shown in fig. 5, the network reconnection method may include the steps of:
step 501, determining an application scene where the terminal device is located.
Optionally, in the application, the terminal device may identify the application scene where the terminal device is located based on a scene identification algorithm of the terminal device, so as to obtain the application scene where the terminal device is currently located. For example, when the terminal device identifies an application scene, the application scene where the terminal device is located may be determined according to the positioning information by obtaining the positioning information of the terminal device. The Positioning information is position coordinate information or a position location of the terminal device obtained by a Global Positioning System (GPS) in the terminal device. For example, the terminal device may obtain current position coordinate information of the terminal device from a GPS system, where the position coordinate information may correspond to a place such as an underground parking lot, a subway, a high-speed rail, or an office building in a map, and the terminal device may determine that the application scene where the terminal device is currently located is the underground parking lot or the office building according to the positioning information.
Optionally, when the terminal device is in an office building, the terminal device can obtain the position of the terminal device, such as an elevator, a corridor, a basement and the like in the office building based on the indoor positioning algorithm of the terminal device, and if the positioning information indicates that the terminal device is in the elevator, it can be determined that the current application scene of the terminal device is in the elevator.
In a possible implementation manner, the terminal device may further obtain foreground operation information in the process of determining the application scene, and classify the application scene of the terminal device more finely according to the foreground operation information and the positioning information. The foreground operation information may be foreground application information displayed in an operation interface of the terminal device. For example, when the terminal device is determined to be in an elevator scene through the positioning information, the terminal device can also obtain own foreground application information, when the foreground application of the terminal device is a certain game application program, the terminal device can obtain the name of the game application program, at the moment, the signal interaction efficiency required by the terminal device is high, the signal intensity requirement is higher, the terminal device can be determined to belong to the elevator scene with high-demand communication, when the foreground application of the terminal device is a certain electronic book application program, the terminal device can obtain the name of the electronic book application program, at the moment, the signal interaction efficiency required by the terminal device is low, the signal intensity requirement is lower, and the terminal device can be determined to belong to the elevator scene with low-demand communication.
Step 502, when the application scene where the terminal device is located is a target scene, executing the step of acquiring the first parameter of the terminal device.
Optionally, the terminal device detects the determined application scene, and when the application scene where the terminal device is located is a target scene, the step of obtaining the signal strength of the terminal device may be performed. The target scene can be the elevator scene, the basement scene, the subway scene, the high-speed rail scene, the underground garage and other scenes, and when the terminal device determines that the scene where the terminal device is located is any one of the target scenes, the step of obtaining the signal intensity of the terminal device can be executed. Namely, the method and the device execute the step of acquiring the signal strength by adding a judgment mechanism when the scene where the terminal device is located is the target scene, so that the network reconnection is performed when the signal strength cannot meet the requirement in the current scene.
Optionally, the manner of acquiring the first parameter by the terminal device may refer to the description in step 301, and is not described herein again.
In a possible implementation manner, taking the first parameter including the signal strength as an example, the manner of acquiring the signal strength by the terminal device may be as follows: the method comprises the steps that signal read-back power of the terminal equipment is obtained, wherein the signal read-back power is used for indicating the power of signals radiated by an antenna of the terminal equipment and coupled to the terminal equipment; and acquiring the signal intensity of the terminal equipment according to the signal read-back power. For example, the terminal device acquires the signal strength of the terminal device by acquiring the signal read-back power of the terminal device and according to the corresponding relationship between the signal read-back power and the signal strength. The signal readback power and the signal strength are in an inverse relationship, when the value of the signal readback power acquired by the terminal device is larger, the signal strength which can be received by the terminal device is smaller, and when the value of the signal readback power acquired by the terminal device is smaller, the signal strength which can be received by the terminal device is larger. In a possible implementation manner, a calculation formula of the signal strength may be preset in the terminal device, and after the terminal device acquires the signal read-back power, the signal read-back power is brought into the calculation formula, so as to calculate the corresponding signal strength.
Step 503, determining the magnitude relation between the communication quality of the terminal device and a preset communication quality threshold according to the first parameter.
Optionally, the terminal device may determine the communication quality of the terminal device according to the obtained first parameter, compare the communication quality of the terminal device with a preset communication quality threshold, so as to obtain a size relationship between the communication quality of the terminal device and the preset communication quality threshold, and execute the subsequent step 506 when the communication quality of the terminal device is lower than the preset communication quality threshold.
Still taking the example that the first parameter includes the signal strength, the preset communication quality threshold may be replaced by a preset signal strength threshold, and this step may be replaced by detecting, by the terminal device, a magnitude relationship between the signal strength of the terminal device and the preset strength threshold, that is, the terminal device compares the acquired signal strength with the preset strength threshold, when the signal strength of the terminal device is lower than the preset strength threshold, step 506 is executed, and when the signal strength of the terminal device is higher than the preset strength threshold, step 501 may be returned to execute the scheme again.
Optionally, the preset intensity threshold may be preset in the terminal device by a developer or an operation and maintenance person, or the terminal device may obtain the corresponding preset intensity threshold according to a target scene where the terminal device is currently located. For example, the preset strength threshold is preset in the terminal device (the preset strength threshold is a), after the terminal device acquires the signal strength, the terminal device may detect the acquired signal strength according to a, when the signal strength of the terminal device is lower than a, step 506 is executed, and when the signal strength of the terminal device is higher than a, the terminal device may return to step 501 to execute the scheme again.
In one implementation manner, a corresponding relationship exists between a target scene and a communication quality grade, and a terminal device can determine the communication quality grade corresponding to the target scene; and acquiring a preset communication quality threshold corresponding to the communication quality grade according to the corresponding relation between the preset communication quality grade and the communication quality threshold. For example, after the application scene obtained by the terminal device is the target scene, the terminal device may further determine the communication quality level corresponding to the target scene. For example, the correspondence between the target scenario and the communication quality level may also be stored in the terminal device in advance, please refer to table 1, which shows a correspondence table between the target scenario and the communication quality level according to an exemplary embodiment of the present application.
Object scene Communication quality grade
Object scene one Communication quality class one
Object scene two Communication quality class two
…… ……
TABLE 1
As shown in table 1, when the terminal device acquires that the application scene in which the terminal device is located is the target scene one, the terminal device may acquire that the corresponding communication quality level is the communication quality level one by querying the table 1.
Optionally, the terminal device may further obtain a preset communication quality threshold corresponding to the communication quality level according to a corresponding relationship between the preset communication quality level and the communication quality threshold. The correspondence between the communication quality level and the communication quality threshold may be stored in the terminal device in a manner similar to that in table 1, and after the communication quality level is obtained, the preset communication quality threshold may be obtained by querying the corresponding correspondence, so that the preset communication quality threshold is used in this step.
It should be noted that, in the present application, the communication quality level is directly proportional to the signal demand rate in the application scenario where the terminal device is located, and the higher the signal demand rate in the application scenario where the terminal device is located is, the higher the communication quality level is, and the higher the acquired preset communication quality threshold is. Optionally, the signal demand rate is determined according to foreground operation information of the terminal device in the application scene where the terminal device is located, that is, when the terminal device obtains the foreground operation information, the signal demand rate of the terminal device at this time may be obtained according to the foreground operation information.
Step 504, network information reported by the terminal device to the base station is obtained.
And 505, determining a first signal system of the terminal device according to the network information, wherein the first signal system is a signal system in which the terminal device is currently located.
Optionally, in the application, the terminal device may further obtain network information that is currently reported to the base station by the terminal device, and determine a signal system in which the terminal device is currently located according to the network information. The network information may be information such as a communication frequency band, an identifier of a communication base station, an identifier of a channel, and the like, and the terminal device may determine a current signal system according to the network information reported to the base station by the terminal device. For example, the current signal system between the terminal device and the base station is a 5G network, the frequency band used for signal transmission between the terminal device and the base station may be in a N41 frequency band, and the terminal device may acquire its own communication frequency band, thereby determining that the current signal system is a 5G network.
When the current signal mode between the terminal device and the base station is the 4G network, the identifier of the channel used for transmitting the signal between the terminal device and the base station can be the identifier in the 4G network, and the terminal device determines that the current signal mode is the 4G network according to the obtained signal identifier. Optionally, the terminal device and the base station may also be connected by a 2G network system or a 3G network system, which is not described herein again for example.
It should be noted that, step 504 and step 505 may be executed after step 302, or may be executed simultaneously with step 302, which is not limited in this application.
Step 506, when the communication quality of the terminal device is determined to be lower than the preset communication quality threshold according to the first parameter, controlling the terminal device to perform network connection again according to the first signal system.
That is, after the detection of the communication quality of the terminal device, when the communication quality of the terminal device is lower than the preset communication quality threshold, the terminal device may control itself to perform network connection again. Optionally, when the signal strength is used as the first parameter, after the signal strength of the terminal device is detected, when the signal strength of the terminal device is lower than a preset strength threshold, the terminal device may control itself to perform network connection again. In the process of network connection of the terminal equipment, the state of the signal icon of the terminal equipment is kept as a target state, and the target state is the state of the signal icon before network connection of the terminal equipment is carried out again.
Optionally, the terminal device controls the terminal device to reconnect the network, and the network reconnection may be performed in the following manner. For example, the terminal device controls the terminal device to perform network connection again by switching on and off the flight mode of the terminal device; or the terminal equipment controls the terminal equipment to carry out network connection again by restarting the SIM card. For example, the terminal device may design a corresponding switch node on a bottom layer or an application layer, and control the terminal device through the switch node when the terminal device needs to be switched on and off in a flight mode, or restart the terminal device through the switch node when the SIM card needs to be restarted, which is not limited in this application.
In a possible implementation manner, after acquiring the current signal format of the terminal device, the terminal device preferentially controls the terminal device to reconnect the network according to the current signal format, that is, in the reconnection process, the terminal device is controlled to reconnect the network according to the acquired first signal format. For example, if the first signal system is a 4G network, the terminal device preferentially reconnects according to the reconnection mode of the 4G network when performing network reconnection in this step, so that the terminal device still operates according to the previous signal system.
In the present application, the terminal device may perform network reconnection by automatically switching on and off the flight mode of the terminal device. For example, after the signal strength of the terminal device is determined to be lower than the preset strength threshold, the terminal device may automatically turn on and off the flight mode, so that the terminal device may re-perform network connection in a manner of automatically entering the flight mode and exiting the flight mode. In a possible implementation manner, the terminal device may also restart the SIM card installed in the terminal device automatically to achieve the network reconnection process.
Optionally, in the process of network connection resumption of the terminal device, the state of the signal icon of the terminal device is maintained before network connection resumption of the terminal device. The state of the signal icon can refer to the description in fig. 3, and is not described herein again.
In a possible implementation manner, the terminal device may further obtain the detection times before controlling the terminal device to perform network connection again, where the detection times are times when the communication quality of the terminal device is lower than a preset communication quality threshold within a preset duration; and when the detection times are more than the preset times, executing the step of controlling the terminal equipment to carry out network connection again. For example, the obtaining of the communication quality of the terminal device may be periodic obtaining, in one period, the terminal device may obtain N own communication qualities, and the preset time length may be the one period. For each communication quality, the terminal device may perform the detection step of step 503, detect the number of times of detection, and control the terminal device to perform network connection again when the number of times of detection is greater than a preset number of times. Namely, whether the terminal equipment needs to be subjected to network reconnection is detected in a double verification mode, so that the reliability of the network reconnection of the terminal equipment is improved. For example, the preset number of times is 5 times, in one period, the terminal device may acquire 8 own communication qualities, where 6 of the 8 communication qualities are lower than a preset communication quality threshold, at this time, the detection number of times is 6 times, the detection number of times is greater than the preset number of times (6 > -5), and the terminal device then executes a step of controlling the terminal device to perform network connection again.
Similarly, when the first parameter includes the signal strength, the terminal device may further replace the process of acquiring the detection times with acquiring the times that the signal strength of the terminal device is lower than the preset strength threshold within the preset duration before controlling the terminal device to perform network connection again; and when the frequency that the signal intensity is lower than the preset intensity threshold value is greater than the preset frequency, executing the step of controlling the terminal equipment to carry out network connection again. For example, the above-mentioned obtaining of the signal strength of the terminal device may be periodic obtaining, in one period, the terminal device may obtain N signal strengths of itself, and the preset time length may be the one period. For each signal strength, the terminal device may perform the detection step of step 503, detect the number of times of detection, and control the terminal device to perform network connection again when the number of times of detection is greater than a preset number of times. Namely, whether the terminal equipment needs to carry out network reconnection or not is detected in a double verification mode, so that the reliability of network reconnection of the terminal equipment is improved.
In a possible implementation manner, the terminal device may also detect the signal strength of the terminal device according to the signal read-back power. That is, in the present application, the step of acquiring the signal strength of the terminal device in step 502 may be replaced by acquiring the signal read-back power, and setting a corresponding power read-back threshold corresponding to the signal read-back power for detection, and step 503 may be replaced by: when the signal readback power of the terminal device is lower than the power readback threshold, controlling the terminal device to perform network connection again, and the detection times may be replaced by: the number of times that the signal read-back power of the terminal device is lower than the power read-back threshold value within the preset duration is counted, and the subsequent process is executed, so that the step of acquiring the signal strength in the process can be reduced, and further description is omitted here.
Step 507, when the network connection establishment of the terminal device is failed again, switching the first signal system to a second signal system, wherein the priority of the second signal system is lower than that of the first signal system.
Optionally, after the network reconnection is performed according to the first signal system, the terminal device may continue to detect its own network, and when the network connection of the terminal device fails to be established, the first signal system is switched to a second signal system with a lower priority. Optionally, the manner in which the terminal device determines that the network connection establishment fails may be as follows: whether the terminal equipment receives the information returned by the base station in the network connection process is detected, if so, the network reconnection of the terminal equipment is determined to be successful, otherwise, the network reconnection of the terminal equipment is determined to be failed.
After the network connection establishment of the terminal equipment is failed again, the terminal equipment can switch another signal system to reconnect, and the network reconnection efficiency of the terminal equipment is improved. For example, the priority order of each network signal system is dual card 5G, single card 5G, dual card 4G, and single card 4G in sequence. When the terminal device acquires that the first signal system is the single card 5G in the above steps, network reconnection is preferentially performed according to the signal system of the single card 5G, and when network connection establishment of the terminal device which is performed again according to the signal system of the single card 5G fails, network connection which is performed again according to the signal system of the dual card 4G can be switched.
In a possible implementation manner, the priority order of the network systems may be set in the terminal device by the user himself. For example, a target application interface may be displayed in the terminal device, and the target application interface includes a reconnection setting control; responding to the triggering operation of the reconnection setting control, and displaying each signal system supported by the terminal equipment; and determining the priority order of each signal system supported by the terminal equipment in response to the sequencing operation of each signal system.
Referring to fig. 6, an interface diagram of a target application interface according to an exemplary embodiment of the present application is shown. As shown in fig. 6, the target application interface 600 includes a reconnection setting control 601, signal systems 602, a saving control 603, a canceling control 604, and a priority selection control 605. The user may perform a triggering operation, such as a clicking operation, on the reconnection setting control 601. The terminal device may display each signal system supported by the terminal device in the target application interface 600, and the user may perform a sorting operation on each signal system and click the storage control 603, so that the terminal device obtains a priority order of each signal system supported by the terminal device. Optionally, the sorting operation may be that a user long-presses and drags each signal system, and a display order of each signal system from top to bottom is a priority order. Alternatively, the sorting operation may be an editing operation performed on the priority of each signal system. For example, in fig. 6, after the user triggers the reconnection setting control 601, the displayed signal systems correspond to the priority selection control 605, and the user may set respective priorities for each signal system.
And step 508, controlling the terminal equipment to perform network connection again according to the second signal system.
Optionally, the terminal device continues to control the terminal device to perform network reconnection according to the second signal format, where a network reconnection manner is similar to the above-described network reconnection manner according to the first signal format, and is not described here again.
It should be noted that, after step 508, the terminal device may still continue to detect whether the network connection is successful, and continue to perform the operation of system degradation (i.e., switch to another signal system with lower priority in step 507), and continue to perform the network connection, so that the terminal device finally completes the network connection again.
In summary, the first parameter of the terminal device is obtained, and the first parameter is used for indicating the current communication quality of the terminal device; when the communication quality of the terminal equipment is determined to be lower than a preset communication quality threshold value according to the first parameter, controlling the terminal equipment to carry out network connection again; in the process of network connection of the terminal equipment, the state of the signal icon of the terminal equipment is kept as a target state, and the target state is the state of the signal icon before network connection of the terminal equipment is carried out again. According to the method and the device, when the communication quality of the terminal equipment is lower than the preset communication quality threshold value, the terminal equipment is controlled to carry out network reconnection, and in the network reconnection process, the state of the signal icon of the terminal equipment is kept to be the state before the network reconnection of the terminal equipment, so that a user can automatically carry out network reconnection in an unconscious state, the user does not need to execute actions such as mobile terminal or manual power on and off, and the network reconnection efficiency of the terminal equipment is improved.
In addition, the scheme can automatically set the priority of each signal system, detect whether the network connection is successful or not after the network reconnection, reconnect the signal systems with lower priorities when the network connection fails, and reconnect the network in steps, thereby improving the success rate of the network reconnection.
It should be noted that the network reconnection method may be implemented based on an application program of a software end, and in the following, the terminal device is a mobile phone, and the network reconnection method provided by the present solution is applied under the condition that the network quality of the mobile phone is low.
Referring to fig. 7, a flowchart of a method for network reconnection provided in an exemplary embodiment of the present application is shown. The network reconnection method can be used in terminal equipment. As shown in fig. 7, the network reconnection method may include the steps of:
step 701, identifying an application scene where the terminal device is located.
Optionally, the manner in which the terminal device identifies the application scenario in which the terminal device is located may refer to the description in step 501, and details are not repeated here.
Step 702, determining the network injection mode of the terminal equipment.
The determining of the network injection mode of the terminal device is equivalent to determining the signal system of the terminal device, such as 4g,5g, and the like, and the terminal device may be determined according to the above-mentioned manner from step 504 to step 505, which is not described herein again.
And 703, performing power read-back when the application scene is the target scene.
The target scene can be the elevator scene, the basement scene, the subway scene, the high-speed rail scene, the underground garage and other scenes. The power read-back means that the terminal device obtains the power of coupling the signal radiated by the antenna of the terminal device to the terminal device, and in practical application, the signal read-back power value can be obtained in a power read-back mode. Optionally, the signal strength of the terminal device obtained in step 502 may be replaced by this step, and the signal of the terminal device is reflected by the directly obtained signal readback power value, so as to execute the subsequent steps.
Step 704, detecting whether the signal read-back power value of the power read-back is lower than a preset power threshold, and whether the number of times that the signal read-back power value of the power read-back is lower than the preset power threshold exceeds X, where X is an integer.
The preset power threshold and X may be preset in the terminal device by a developer or an operation and maintenance person.
The terminal device may detect the signal read-back power value of the power read-back, and the terminal device may further record the number of times that the signal read-back power value of the power read-back is lower than the preset power threshold, and detect the number of times that the signal read-back power value of the power read-back is lower than the preset power threshold, and the number of times that the signal read-back power value of the power read-back is lower than the preset power threshold exceeds X, execute step 705, otherwise execute step 710.
Optionally, the number of times that the signal read-back power value obtained in this step is lower than the preset power threshold may be within a preset time, for example, the preset time is a fixed period time, in a period, the terminal device may obtain N signal strengths of itself, if the signal read-back power value detected by the terminal device for more than X times is lower than the preset power threshold, step 705 is executed, otherwise, it indicates that the network connection of the current terminal device is better, and the network re-injection process is not required.
Step 705, controlling the terminal device to automatically switch on and off the flight mode.
Optionally, the terminal device may automatically control the switch of the flight mode through a set native application program, so as to achieve a process of automatically starting the flight mode.
In step 706, the terminal device performs power read back again.
In step 707, it is detected whether the power value of the power read-back is lower than a preset power threshold, and whether the number of times that the power value of the power read-back is lower than the preset power threshold exceeds X, where X is an integer.
When the signal read-back power value of the power read-back is lower than the preset power threshold, and the number of times that the signal read-back power value of the power read-back is lower than the preset power threshold exceeds X, step 708 is executed, otherwise step 710 is executed.
Optionally, the descriptions of step 706 to step 707 may refer to the descriptions of step 703 to step 704, which are not described herein again.
And step 708, switching to a network injection mode with lower priority.
Optionally, the terminal device switches another network injection mode according to the priority degradation mode, and executes subsequent steps, so as to perform network connection again according to the switched network injection mode.
And step 709, controlling the terminal equipment to automatically switch on and off the flight mode.
In the process from step 706 to step 709, the state of holding the signal icon of the terminal device is the state before the terminal device resumes the network connection. The state of the signal icon can refer to the description in fig. 3, and is not described herein again.
And step 710, successfully annotating the network.
In summary, the signal read-back power of the terminal device is obtained, and the signal read-back power is used for indicating the current communication quality of the terminal device; when the communication quality of the terminal equipment is determined to be lower than a preset communication quality threshold value according to the signal read-back power, controlling the terminal equipment to carry out network connection again; in the process of network connection of the terminal equipment, the state of the signal icon of the terminal equipment is kept as a target state, and the target state is the state of the signal icon before network connection of the terminal equipment is carried out again. According to the method and the device, when the communication quality of the terminal equipment is lower than the preset communication quality threshold value, the terminal equipment is controlled to carry out network reconnection, and in the network reconnection process, the state of the signal icon of the terminal equipment is kept to be the state before the network reconnection of the terminal equipment, so that a user can automatically carry out network reconnection in an unconscious state, the user does not need to execute actions such as mobile terminal or manual power on and off, and the network reconnection efficiency of the terminal equipment is improved.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Referring to fig. 8, a block diagram of a network reconnection device according to an exemplary embodiment of the present application is shown. The network reconnection device 800 may be used in a terminal device to perform all or part of the steps performed by the terminal device in the method provided by the embodiment shown in fig. 3, fig. 5, or fig. 7. The network reconnection apparatus 800 comprises:
a signal obtaining module 801, configured to obtain a first parameter of the terminal device, where the first parameter is used to indicate a current communication quality of the terminal device;
a network reconnection module 802, configured to control the terminal device to perform network reconnection when it is determined that the communication quality of the terminal device is lower than a preset communication quality threshold according to the first parameter;
in the process of network connection of the terminal equipment, keeping the state of a signal icon of the terminal equipment as a target state, wherein the target state is the state of the signal icon before network connection of the terminal equipment is carried out again.
In summary, the first parameter of the terminal device is obtained, and the first parameter is used for indicating the current communication quality of the terminal device; when the communication quality of the terminal equipment is determined to be lower than a preset communication quality threshold value according to the first parameter, controlling the terminal equipment to carry out network connection again; in the process of network connection of the terminal equipment, the state of the signal icon of the terminal equipment is kept as a target state, and the target state is the state of the signal icon before network connection of the terminal equipment is carried out again. According to the method and the device, when the communication quality of the terminal equipment is lower than the preset communication quality threshold value, the terminal equipment is controlled to carry out network reconnection, and in the network reconnection process, the state of the signal icon of the terminal equipment is kept to be the state before the network reconnection of the terminal equipment, so that a user can automatically carry out network reconnection in an unconscious state, the user does not need to execute actions such as mobile terminal or manual power on and off, and the network reconnection efficiency of the terminal equipment is improved.
Optionally, the apparatus further comprises:
a first obtaining module, configured to obtain network information reported by the terminal device to a base station before controlling the terminal device to perform network connection again;
a first determining module, configured to determine a first signal format of the terminal device according to the network information, where the first signal format is a signal format in which the terminal device is currently located;
the network reconnection module 702 is configured to control the terminal device to perform network reconnection according to the first signal format.
Optionally, the apparatus further comprises:
a first switching module, configured to switch the first signal format to a second signal format when the network connection setup performed again by the terminal device fails after the terminal device is controlled to perform network connection again, where a priority of the second signal format is lower than a priority of the first signal format;
and the first connection module is used for controlling the terminal equipment to carry out network connection again according to the second signal system.
Optionally, the apparatus further comprises:
the first display module is used for displaying a target application interface, and the target application interface comprises a reconnection setting control;
the second display module is used for responding to the triggering operation of the reconnection setting control and displaying each signal system supported by the terminal equipment;
and the second determining module is used for responding to the sorting operation of each signal system and determining the priority order of each signal system supported by the terminal equipment.
Optionally, the controlling the terminal device to perform network connection again includes:
controlling the terminal equipment to carry out network connection again by switching on and off the flight mode of the terminal equipment; or,
and controlling the terminal equipment to carry out network connection again by restarting the SIM card of the client identification module.
Optionally, the first parameter includes a signal strength, and the signal obtaining module 701 includes: a first acquisition unit and a second acquisition unit;
the first obtaining unit is configured to obtain a signal read-back power of the terminal device, where the signal read-back power is used to indicate a power at which a signal radiated by an antenna of the terminal device is coupled to the terminal device;
and the second acquisition unit is used for acquiring the signal strength of the terminal equipment according to the signal read-back power.
Optionally, the apparatus further comprises:
a second obtaining module, configured to obtain detection times before controlling the terminal device to perform network connection again, where the detection times are times when communication quality of the terminal device is lower than a preset communication quality threshold within a preset duration;
and the first execution module is used for executing the step of controlling the terminal equipment to carry out network connection again when the detection times are more than preset times.
Optionally, the apparatus further comprises:
a third determining module, configured to determine an application scenario in which the terminal device is located before the signal strength of the terminal device is obtained;
a second executing module, configured to execute the step of obtaining the first parameter of the terminal device when the application scene where the terminal device is located is a target scene.
Optionally, the apparatus further comprises:
a fourth determining module, configured to determine a communication quality level corresponding to the target scene before controlling the terminal device to perform network connection again when it is determined that the communication quality of the terminal device is lower than a preset communication quality threshold according to the first parameter;
and the third acquisition module is used for acquiring a preset communication quality threshold corresponding to the communication quality grade according to the corresponding relation between the preset communication quality grade and the communication quality threshold.
Optionally, the communication quality level is proportional to a signal demand rate in an application scene where the terminal device is located, and the signal demand rate is determined according to foreground operation information in the application scene where the terminal device is located.
Fig. 9 is a schematic structural diagram of a terminal device according to an exemplary embodiment of the present application. The terminal apparatus 900 includes: a processor 901 and memory 902, a communication interface 903, and a bus 904. Wherein the memory 902 is used for storing instructions, and the processor 901 is used for executing the instructions stored in the memory 902. The processor 901, the memory 902 and the communication interface 903 are communicatively connected to each other by a bus 904.
Wherein the processor 901 is configured to: acquiring a first parameter of the apparatus 900, where the first parameter is used to indicate a current communication quality of the terminal device 900; and controlling the terminal device 900 to perform network connection again when the communication quality of the terminal device 900 is determined to be lower than the preset communication quality threshold value according to the first parameter.
The terminal device 900 may be configured to perform various steps and/or procedures corresponding to the first device or the second device in the foregoing method embodiments.
Alternatively, the memory 902 may include a read-only memory and a random access memory, and provides instructions and data to the processor 901. A portion of the memory 902 may also include non-volatile random access memory. For example, memory 902 may also store device type information. The processor 901 may be configured to execute the instructions stored in the memory, and when the processor executes the instructions, the processor 901 may perform each step and/or flow corresponding to the first device or the second device in the above method embodiments.
It should be understood that, in the embodiments of the present application, the processor may be a Central Processing Unit (CPU), and the processor may also be other general processors, digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The present application further provides a computer-readable medium, where at least one instruction is stored, and the at least one instruction is loaded and executed by the processor to implement all or part of the steps performed by the terminal device in the network reconnection method according to the foregoing embodiments.
The embodiment of the present application further provides a computer program product, where the computer program product stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement all or part of the steps, which are executed by a terminal device or a server, of the network reconnection method described in the above embodiments.
It should be noted that: in the apparatus provided in the foregoing embodiment, when the control of the terminal device is executed, only the division of the functional modules is illustrated, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the apparatus and method embodiments provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments for details, which are not described herein again.
The above-mentioned serial numbers of the embodiments of the present application are merely for description, and do not represent the advantages and disadvantages of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present application and should not be taken as limiting, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (13)

1. A network reconnection method is applied to a terminal device, and comprises the following steps:
acquiring a first parameter of the terminal equipment, wherein the first parameter is used for indicating the current communication quality of the terminal equipment;
when the communication quality of the terminal equipment is determined to be lower than a preset communication quality threshold value according to the first parameter, controlling the terminal equipment to carry out network connection again;
in the process of network connection of the terminal equipment, keeping the state of a signal icon of the terminal equipment as a target state, wherein the target state is the state of the signal icon before network connection of the terminal equipment is carried out again.
2. The method according to claim 1, further comprising, before said controlling said terminal device to resume network connectivity:
acquiring network information reported by the terminal equipment to a base station;
determining a first signal system of the terminal equipment according to the network information, wherein the first signal system is the signal system of the terminal equipment at present;
the controlling the terminal device to perform network connection again includes:
and controlling the terminal equipment to carry out network connection again according to the first signal system.
3. The method according to claim 2, further comprising, after the controlling the terminal device to resume network connection:
when the network connection establishment of the terminal equipment is failed again, switching the first signal system to a second signal system, wherein the priority of the second signal system is lower than that of the first signal system;
and controlling the terminal equipment to carry out network connection again according to the second signal system.
4. A method according to claim 2 or 3, characterized in that the method further comprises:
displaying a target application interface, wherein the target application interface comprises a reconnection setting control;
responding to the triggering operation of the reconnection setting control, and displaying each signal system supported by the terminal equipment;
and determining the priority order of each signal system supported by the terminal equipment in response to the sequencing operation of each signal system.
5. The method according to any one of claims 1 to 3, wherein the controlling the terminal device to perform network connection anew comprises:
controlling the terminal equipment to carry out network connection again by switching on and off the flight mode of the terminal equipment; or,
and controlling the terminal equipment to carry out network connection again by restarting the SIM card of the client identification module.
6. The method of claim 1, wherein the first parameter comprises a signal strength, and wherein the obtaining the first parameter of the terminal device comprises:
acquiring signal read-back power of the terminal equipment, wherein the signal read-back power is used for indicating the power of a signal radiated by an antenna of the terminal equipment and coupled to the terminal equipment;
and acquiring the signal intensity of the terminal equipment according to the signal read-back power.
7. The method according to claim 1, further comprising, before said controlling said terminal device to resume network connectivity:
acquiring detection times, wherein the detection times are times that the communication quality of the terminal equipment is lower than a preset communication quality threshold value within a preset time length;
and when the detection times are more than the preset times, executing the step of controlling the terminal equipment to carry out network connection again.
8. The method of claim 1, wherein before the obtaining the signal strength of the terminal device, further comprising:
determining an application scene where the terminal equipment is located;
and when the application scene where the terminal equipment is located is a target scene, executing the step of acquiring the first parameter of the terminal equipment.
9. The method according to claim 8, further comprising, before controlling the terminal device to resume network connection when the communication quality of the terminal device is determined to be lower than the preset communication quality threshold according to the first parameter, the method further comprising:
determining a communication quality grade corresponding to the target scene;
and acquiring a preset communication quality threshold corresponding to the communication quality grade according to the corresponding relation between the preset communication quality grade and the communication quality threshold.
10. The method according to claim 9, wherein the communication quality level is proportional to a signal demand rate of the terminal device in the application scenario, and the signal demand rate is determined according to foreground operation information of the terminal device in the application scenario.
11. A network reconnection device, which is applied to a terminal device, the device comprising:
a signal obtaining module, configured to obtain a first parameter of the terminal device, where the first parameter is used to indicate a current communication quality of the terminal device;
the network reconnection module is used for controlling the terminal equipment to perform network connection again when the communication quality of the terminal equipment is determined to be lower than a preset communication quality threshold value according to the first parameter;
in the process of network connection of the terminal equipment, keeping the state of a signal icon of the terminal equipment as a target state, wherein the target state is the state of the signal icon before network connection of the terminal equipment is carried out again.
12. A terminal device, characterized in that it comprises a processor and a memory, in which at least one instruction, at least one program, a set of codes, or a set of instructions is stored, which is loaded and executed by the processor to implement the network reconnection method according to any one of claims 1 to 10.
13. A computer readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement the network reconnection method as claimed in any one of claims 1 to 10.
CN202210831224.1A 2022-07-14 2022-07-14 Network reconnection method, device, terminal equipment and storage medium Pending CN115278932A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210831224.1A CN115278932A (en) 2022-07-14 2022-07-14 Network reconnection method, device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210831224.1A CN115278932A (en) 2022-07-14 2022-07-14 Network reconnection method, device, terminal equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115278932A true CN115278932A (en) 2022-11-01

Family

ID=83764697

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210831224.1A Pending CN115278932A (en) 2022-07-14 2022-07-14 Network reconnection method, device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115278932A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117177386A (en) * 2023-10-26 2023-12-05 荣耀终端有限公司 Network connection method, electronic device, and computer-readable storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160360461A1 (en) * 2015-06-07 2016-12-08 Apple Inc. Systems and methods for avoiding stalls in network connectivity at a computing device
CN107333287A (en) * 2017-08-04 2017-11-07 广东欧珀移动通信有限公司 Network detecting method, network detection means and intelligent terminal
US20180098375A1 (en) * 2016-09-30 2018-04-05 Fujitsu Limited Apparatus and method to control reconnection of a terminal device to a wireless network via another wireless network
US20180302792A1 (en) * 2016-02-18 2018-10-18 Tencent Technology (Shenzhen) Company Limited Network connection method and apparatus, and computer storage medium
CN112087772A (en) * 2020-10-10 2020-12-15 Oppo(重庆)智能科技有限公司 Network abnormity recovery method, terminal and computer storage medium
CN113329464A (en) * 2021-05-21 2021-08-31 Oppo广东移动通信有限公司 Network-resident control method, device, terminal equipment and computer-readable storage medium
WO2021227615A1 (en) * 2020-05-14 2021-11-18 华为技术有限公司 Method for improving call quality, and terminal
CN114173389A (en) * 2021-12-03 2022-03-11 深圳传音控股股份有限公司 Processing method, mobile terminal and storage medium
US20220159569A1 (en) * 2019-03-09 2022-05-19 Honor Device Co., Ltd. Network Connection Processing Method, Related Device, And Computer Storage Medium
CN114698013A (en) * 2022-03-21 2022-07-01 Oppo广东移动通信有限公司 Network reconnection method, device, mobile terminal and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160360461A1 (en) * 2015-06-07 2016-12-08 Apple Inc. Systems and methods for avoiding stalls in network connectivity at a computing device
US20180302792A1 (en) * 2016-02-18 2018-10-18 Tencent Technology (Shenzhen) Company Limited Network connection method and apparatus, and computer storage medium
US20180098375A1 (en) * 2016-09-30 2018-04-05 Fujitsu Limited Apparatus and method to control reconnection of a terminal device to a wireless network via another wireless network
CN107333287A (en) * 2017-08-04 2017-11-07 广东欧珀移动通信有限公司 Network detecting method, network detection means and intelligent terminal
US20220159569A1 (en) * 2019-03-09 2022-05-19 Honor Device Co., Ltd. Network Connection Processing Method, Related Device, And Computer Storage Medium
WO2021227615A1 (en) * 2020-05-14 2021-11-18 华为技术有限公司 Method for improving call quality, and terminal
CN112087772A (en) * 2020-10-10 2020-12-15 Oppo(重庆)智能科技有限公司 Network abnormity recovery method, terminal and computer storage medium
CN113329464A (en) * 2021-05-21 2021-08-31 Oppo广东移动通信有限公司 Network-resident control method, device, terminal equipment and computer-readable storage medium
CN114173389A (en) * 2021-12-03 2022-03-11 深圳传音控股股份有限公司 Processing method, mobile terminal and storage medium
CN114698013A (en) * 2022-03-21 2022-07-01 Oppo广东移动通信有限公司 Network reconnection method, device, mobile terminal and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117177386A (en) * 2023-10-26 2023-12-05 荣耀终端有限公司 Network connection method, electronic device, and computer-readable storage medium
CN117177386B (en) * 2023-10-26 2024-04-12 荣耀终端有限公司 Network connection method, electronic device, and computer-readable storage medium

Similar Documents

Publication Publication Date Title
WO2019210754A1 (en) Network search control method and device, and mobile terminal
CN110831041B (en) Cell beam failure processing method, mobile communication terminal and network equipment
WO2022206810A1 (en) Service processing method, and terminal and network device
CN111812997B (en) Device control method, device, and readable storage medium
CN111901211B (en) Control method, apparatus and storage medium
CN112346685A (en) Screen-off and screen-projection control method and device and computer readable storage medium
WO2020173373A1 (en) Method for controlling network searching, and terminal
CN113973326A (en) Wireless capability identifier transmission method, terminal equipment and network node
CN112612598A (en) Anti-addiction method, mobile terminal and computer-readable storage medium
CN110191477B (en) Network search control method, terminal and computer readable storage medium
CN111935849A (en) Information processing method, device and storage medium
CN109309953B (en) Power consumption detection method, device, terminal and readable storage medium
CN108810262B (en) Application configuration method, terminal and computer readable storage medium
CN115278932A (en) Network reconnection method, device, terminal equipment and storage medium
CN112667339B (en) Screen refresh rate setting method, terminal and computer readable medium
CN107466081B (en) Wireless switching method and terminal
CN110209434B (en) Memory management method and device and computer readable storage medium
CN109151201B (en) Anti-addiction method, mobile terminal and computer storage medium
CN111530067A (en) Method for controlling game by multiple keys, mobile terminal and computer readable storage medium
CN113347676B (en) Processing method, mobile terminal and storage medium
CN114578998B (en) Touch processing method, intelligent terminal and computer readable storage medium
CN107517445B (en) WLAN hotspot searching method and mobile terminal
CN110224732A (en) A kind of antenna switching method and terminal device
EP4131882B1 (en) Registration method and electronic device
CN112118566B (en) Network mode regulation and control method, equipment and computer readable 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