Network searching method and device and storage medium

By obtaining the terminal device's location and determining the target search range when it is off the network, increasing the search frequency, the problem of high power consumption and inefficient network recovery in the case of off the network is solved, and faster network recovery and lower power consumption are achieved.

CN119967520APending Publication Date: 2025-05-09BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311491723.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-09
Publication Date
2025-05-09

AI Technical Summary

Technical Problem

When terminal equipment is off-network, it frequently searches the network to restore network connection, resulting in an increase in power consumption and continuously searches the network in the network-free area, causing high power consumption problems.

Method used

By detecting that the terminal device is obtained when it is off the network, and obtaining the location of the historical recovery network from the preset database, the target search range is determined. If the terminal device is located within the target range, increase the network search frequency to increase the network recovery speed and reduce power consumption.

Benefits of technology

It realizes that while reducing power consumption, it improves network recovery speed, reduces invalid search networks after being disconnected, and improves the search success rate of terminal devices in networkless areas.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119967520A_ABST
    Figure CN119967520A_ABST
Patent Text Reader

Abstract

The invention relates to a network searching method and device and a storage medium. The method comprises the following steps: acquiring a first position of terminal equipment under the condition that the terminal equipment is detected to be offline; obtaining a first historical position from a preset database; wherein the first historical position is a historical position when the terminal device successfully recovers the network; determining a target network searching range based on the first historical position; and under the condition that the first position is located in the target network searching range, improving the network searching frequency of the terminal equipment. Through the technical scheme of the invention, the power consumption is reduced, and the network recovery speed can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of communication technology, and in particular to a network search method, device and storage medium. Background Art

[0002] With the development of communication technology, terminal devices are used more and more frequently, and the interaction between terminal devices and networks is also increasing. During the interaction process, the terminal devices may become disconnected from the network, which may lead to the termination of network services.

[0003] When the network service of a terminal device is terminated, the terminal device will accelerate the network search in order to quickly find a suitable network, which will increase the power consumption of the terminal device. If there is no network in a certain area, the terminal device will continue to search for the network, which will also cause the power consumption of the terminal device to be very high. Summary of the invention

[0004] In order to overcome the problems existing in the related art, the present disclosure provides a network search method, device and storage medium, so as to reduce power consumption and improve network recovery speed.

[0005] According to a first aspect of the present disclosure, a network search method is provided, comprising:

[0006] When detecting that the terminal device is offline, obtaining a first location of the terminal device;

[0007] Acquire a first historical position from a preset database; wherein the first historical position is a historical position when the terminal device successfully restores the network;

[0008] Determine a target network search range based on the first historical location;

[0009] When the first position is within the target network search range, the network search frequency of the terminal device is increased.

[0010] In some embodiments, when detecting that the terminal device is offline, obtaining the first location of the terminal device includes:

[0011] When detecting that the terminal device is offline, obtaining a second location of the terminal device;

[0012] When there is a second historical location identical to the second location in the preset database, starting a first timer;

[0013] If the network search fails within the timing duration of the first timer, the first location is obtained.

[0014] In some embodiments, if the network search fails within the timing duration of the first timer, obtaining the first location of the terminal device includes:

[0015] If the network search fails within the timing duration of the first timer, reducing the network search frequency of the terminal device according to a first reduction amplitude; wherein the first reduction amplitude is positively correlated with the network search duration of the terminal device performing the network search within the timing duration of the first timer;

[0016] When the first decreasing amplitude is greater than a preset amplitude threshold, starting a second timer;

[0017] If the network search fails within the timing duration of the second timer, the current first location of the terminal device is obtained.

[0018] In some embodiments, the method further comprises:

[0019] During the timing duration of the second timer, reducing the network search frequency of the terminal device according to a second reduction amplitude;

[0020] The second decrease amplitude is positively correlated with the network search duration of the terminal device within the timing duration of the second timer.

[0021] In some embodiments, the method further comprises:

[0022] Determine historical offline data corresponding to the first historical location;

[0023] Based on the historical offline data, determine the timing duration of the second timer.

[0024] In some embodiments, the method further comprises:

[0025] If there is no historical location identical to the second location in the preset database, starting a third timer;

[0026] During the timing duration of the third timer, increasing the network search frequency of the terminal device;

[0027] If the network search fails within the timing duration of the third timer, the network search frequency of the terminal device is reduced according to a third reduction amplitude; wherein the third reduction amplitude is positively correlated with the network search duration of the terminal device within the timing duration of the third timer.

[0028] In some embodiments, when the first location is within the target network search range, increasing the network search frequency of the terminal device includes:

[0029] When the first position is within the target network search range, starting a fourth timer;

[0030] During the timing duration of the fourth timer, the network search frequency of the terminal device is increased.

[0031] According to a second aspect of the present disclosure, there is provided a network search device, comprising:

[0032] A first acquisition module is configured to acquire a first position of the terminal device when detecting that the terminal device is offline;

[0033] A second acquisition module is configured to acquire a first historical position from a preset database; wherein the first historical position is a historical position when the terminal device successfully restores the network;

[0034] A data processing module, configured to determine a target network search range based on the first historical location;

[0035] The network search module is configured to increase the network search frequency of the terminal device when the first position is within the target network search range.

[0036] In some embodiments, the first acquisition module is configured as follows:

[0037] When detecting that the terminal device is offline, obtaining a second location of the terminal device;

[0038] When there is a second historical location identical to the second location in the preset database, starting a first timer;

[0039] If the network search fails within the timing duration of the first timer, the first location is obtained.

[0040] In some embodiments, the first acquisition module is configured as follows:

[0041] If the network search fails within the timing duration of the first timer, reducing the network search frequency of the terminal device according to a first reduction amplitude; wherein the first reduction amplitude is positively correlated with the network search duration of the terminal device performing the network search within the timing duration of the first timer;

[0042] When the first decreasing amplitude is greater than a preset amplitude threshold, starting a second timer;

[0043] If the network search fails within the timing duration of the second timer, the current first location of the terminal device is obtained.

[0044] In some embodiments, the network search module is configured as follows:

[0045] During the timing duration of the second timer, reducing the network search frequency of the terminal device according to a second reduction amplitude;

[0046] The second decrease amplitude is positively correlated with the network search duration of the terminal device within the timing duration of the second timer.

[0047] In some embodiments, the apparatus further comprises:

[0048] A determination module is configured to determine historical offline data corresponding to the first historical location; based on the historical offline data, determine the timing duration of the second timer.

[0049] In some embodiments, the apparatus further comprises:

[0050] A starting module, configured to start a third timer when there is no historical location identical to the second location in the preset database;

[0051] The network search module is configured to increase the network search frequency of the terminal device within the timing duration of the third timer;

[0052] The network search module is also configured to reduce the network search frequency of the terminal device according to a third reduction amplitude if the network search fails within the timing duration of the third timer; wherein the third reduction amplitude is positively correlated with the network search duration of the terminal device within the timing duration of the third timer.

[0053] In some embodiments, the starting module is configured to: start a fourth timer when the first location is within the target network search range;

[0054] The network search module is configured to increase the network search frequency of the terminal device within the timing duration of the fourth timer.

[0055] According to a third aspect of an embodiment of the present disclosure, there is provided a network search device, including:

[0056] processor;

[0057] a memory configured to store processor-executable instructions;

[0058] Wherein, the processor is configured to: implement the steps in any one of the network search methods in the first aspect when executed.

[0059] According to a fourth aspect of an embodiment of the present disclosure, a non-temporary computer-readable storage medium is provided. When instructions in the storage medium are executed by a processor of a network search device, the device is enabled to perform any one of the network search methods in the first aspect.

[0060] The technical solution provided by the present disclosure may have the following beneficial effects:

[0061] When the present invention detects that a terminal device is disconnected from the network, the first location of the terminal device can be obtained, and a target search range can be determined based on a first historical location obtained from a preset database. Since the first historical location is the historical location when the terminal device successfully restores the network, the probability of successfully searching the network within the target search range will be relatively high.

[0062] The technical solution disclosed in the present invention can determine whether the first position of the terminal device when it is disconnected from the network is within the target network search range. If the first position is within the target network search range, the probability of successful network search will be relatively high. At this time, by increasing the network search frequency of the terminal device, it is possible to reduce invalid network searches after disconnection while reducing the delay in restoring the network, that is, to reduce power consumption while increasing the network recovery speed.

[0063] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0065] Figure 1 The following is a flow chart of a network search method according to an exemplary embodiment. Figure 1 ;

[0066] Figure 2 The following is a flow chart of a network search method according to an exemplary embodiment. Figure 2 ;

[0067] Figure 3 The following is a flow chart of a network search method according to an exemplary embodiment. Figure 3 ;

[0068] Figure 4 is a block diagram of a network search device according to an exemplary embodiment;

[0069] Figure 5 It is a hardware structure block diagram of a network search device 500 according to an exemplary embodiment. DETAILED DESCRIPTION

[0070] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, 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 disclosure. Instead, they are merely examples of devices consistent with some aspects of the present disclosure as detailed in the appended claims.

[0071] Figure 1 The following is a flow chart of a network search method according to an exemplary embodiment. Figure 1 See also Figure 1 As shown, the network search method includes:

[0072] In step 101, when it is detected that the terminal device is offline, a first location of the terminal device is obtained;

[0073] In step 102, a first historical position is obtained from a preset database; wherein the first historical position is a historical position when the terminal device successfully restores the network;

[0074] In step 103, a target network search range is determined based on the first historical location;

[0075] In step 104, when the first location is within the target network search range, the network search frequency of the terminal device is increased.

[0076] It should be noted that the network search method in the present disclosure can be applied to terminal devices. Here, the terminal device may include a mobile terminal, a fixed terminal or a vehicle-mounted terminal, etc. For example, a mobile phone, a tablet computer, a virtual reality (VR) device, an augmented reality (AR) device, a drone, a 3D game console, a monitoring system, a personal digital assistant (PDA), a wearable device, a smart speaker, a digital recorder, an electronic toy, etc.

[0077] In some embodiments, when the termination of the network service of the terminal device is detected, it can be determined that the terminal device is offline. For example, when the access layer module of the terminal device reports out of service (OOS), it can be determined that the terminal device is offline. Among them, the physical layer and the data link layer in the terminal device can be combined into the access layer.

[0078] In the embodiment of the present disclosure, when it is detected that the terminal device is offline, the first position of the terminal device can be obtained. For example, the current first position of the terminal device can be obtained by triggering the non-access layer module in the terminal device. The non-access layer module in the terminal device can be one of the following: network layer, transport layer, session layer and application layer.

[0079] The first position may be a geographical location of the terminal device. In some embodiments, the first position of the terminal device may be determined by positioning technology. For example, the first position of the terminal device may be determined by a global positioning system (GPS); for another example, the first position of the terminal device may be determined by a mobile base station positioning (location based service, LBS); for another example, the first position of the terminal device may be determined by an assisted global positioning system (Assisted GPS).

[0080] In the embodiment of the present disclosure, when it is detected that the terminal device is disconnected from the network, a first historical position can be obtained from a preset database, wherein the first historical position is the historical position when the terminal device successfully restores the network. In some embodiments, when the terminal device is disconnected from the network, relevant data during the process of the terminal device being disconnected from the network can be obtained. For example, after the terminal device is disconnected from the network and then successfully restores the network, the historical position when the terminal device restores the network can be determined as the first historical position.

[0081] It should be noted that the first historical position can be multiple or one, as long as it is the historical position when the terminal device is disconnected from the network and successfully restored to the network, and no specific limitation is made here.

[0082] In some embodiments, the target network search range may be: an area centered on the first historical location and having a distance from the first historical location that is less than or equal to a preset distance.

[0083] In other embodiments, when there are multiple first historical locations, the target network search range can be determined based on the multiple first historical locations. For example, the target network search range can be determined based on the distribution of the multiple first historical locations. For example, the area where the first historical locations with relatively concentrated distribution are located can be determined as the target network search range.

[0084] It can be understood that when the first position is within the target network search range, that is, the terminal device is located near the location where the network was restored last time, the terminal device can search for an accessible signal with a high probability, and the network search frequency of the terminal device can be increased to improve the network recovery speed.

[0085] In one example, when a terminal device is offline, the first location of the terminal device (i.e., the offline location) is obtained; by searching for data in a preset database, a first historical location is obtained from the preset database, the first historical location being the historical location when the terminal device successfully restores the network; a target network search range is determined based on the first historical location; when the first location is within the target network search range, the network search frequency of the terminal device is increased.

[0086] Since the network-free area is fixed within a certain period of time, a certain area will always be without network before the network signal is repaired, and the path of the user of the terminal device through a certain network-free area is also relatively fixed, so the offline location and network restoration location of some terminal devices are predictable.

[0087] When the present invention detects that a terminal device is disconnected from the network, the first location of the terminal device can be obtained, and a target search range can be determined based on a first historical location obtained from a preset database. Since the first historical location is the historical location when the terminal device successfully restores the network, the probability of successfully searching the network within the target search range will be relatively high.

[0088] The technical solution disclosed in the present invention can determine whether the first position of the terminal device when it is disconnected from the network is within the target network search range. If the first position is within the target network search range, the probability of successful network search will be relatively high. At this time, by increasing the network search frequency of the terminal device, it is possible to reduce invalid network searches after disconnection while reducing the delay in restoring the network, that is, to reduce power consumption while increasing the network recovery speed.

[0089] In some embodiments, when the first location is within the target network search range, increasing the network search frequency of the terminal device includes:

[0090] When the first position is within the target network search range, a fourth timer is started; and within the timing duration of the fourth timer, the network search frequency of the terminal device is increased.

[0091] In some embodiments, the timing duration of the fourth timer can be determined based on the first position and the first historical position. For example, the timing duration of the fourth timer can be determined based on the distance between the first position and the first historical position. In other embodiments, the distance difference between the first position and the first historical position is positively correlated with the timing duration of the fourth timer, that is, the smaller the distance difference between the first position and the first historical position, the smaller the timing duration of the fourth timer; the larger the distance difference between the first position and the first historical position, the larger the timing duration of the fourth timer.

[0092] In some embodiments, if the timing duration of the fourth timer is reached, that is, the fourth timer times out, but the terminal device fails to search the network, the network search frequency of the terminal device can be reduced. For example, the network search frequency of the terminal device can be restored to the level before the fourth timer is started. In other embodiments, if the fourth timer times out, the third location of the terminal device can be obtained; if the third location is within the target network search range, the fourth timer is started; within the timing duration of the fourth timer, the network search frequency of the terminal device is increased. It is understandable that if the terminal device has not restored the network until the fourth timer times out, the terminal device will re-acquire the current positioning information (i.e., the third location) and determine whether to restart the fourth timer based on whether the third location is within the target network search range.

[0093] In an embodiment of the present disclosure, when it is determined that the first location is within the target network search range, the fourth timer can be started and the network search frequency of the terminal device can be increased within the timing duration of the fourth timer. Compared with continuously increasing the network search frequency of the terminal device, the power consumption of the terminal device caused by network search can be reduced.

[0094] Figure 2 The following is a flow chart of a network search method according to an exemplary embodiment. Figure 2 ,like Figure 2 As shown, the above step S101 may include the following steps:

[0095] In step 201, when it is detected that the terminal device is offline, a second location of the terminal device is obtained;

[0096] In step 202, when there is a second historical location identical to the second location in the preset database, start a first timer;

[0097] In step 203, if the network search fails within the timing duration of the first timer, the first location is obtained.

[0098] In some embodiments, when the termination of the network service of the terminal device is detected, it can be determined that the terminal device is offline. For example, when the access layer module of the terminal device reports OOS, it can be determined that the terminal device is offline.

[0099] In some embodiments, when it is detected that the terminal device is offline, the second location of the terminal device may be acquired. For example, the acquisition of the current second location of the terminal device may be triggered by a non-access layer module in the terminal device.

[0100] The second location may be a geographical location of the terminal device. In some embodiments, the second location of the terminal device may be determined by positioning technology. For example, the second location of the terminal device may be determined by GPS; for another example, the second location of the terminal device may be determined by LBS; for another example, the second location of the terminal device may be determined by Assisted GPS.

[0101] In some embodiments, when it is detected that the terminal device is offline, a preset database may be searched to determine whether there is a second historical location that is the same as the second location. If there is a second historical location that is the same as the second location in the preset database, a first timer is started, and the network search frequency of the terminal device is increased within the timing duration of the first timer.

[0102] In some embodiments, if there is a second historical location that is the same as the second location in the preset database, the timing duration of the first timer is set according to the number of offline times corresponding to the second historical location (for example, the more offline times corresponding to the second historical location, the shorter the timing duration of the first timer), and the first timer is started to increase the network search frequency of the terminal device within the timing duration of the first timer.

[0103] In some embodiments, if the network search fails within the timing duration of the first timer, the first location is obtained. That is, when the terminal device does not restore the network within the timing duration of the first timer, the current location of the terminal device (ie, the first location) is obtained.

[0104] In some embodiments, if the first timer times out, the network search frequency of the terminal device is reduced according to the first reduction rate; wherein the first reduction rate is positively correlated with the network search duration of the terminal device within the timing duration of the first timer. That is, as the network search time of the terminal device becomes longer, the first reduction rate will increase. It can be understood that as the network search time of the terminal device becomes longer, the network search frequency of the terminal device becomes lower (the network search frequency gradually slows down).

[0105] It is understandable that the terminal device can store the data generated during the network disconnection process into a preset database, and the data in the preset database may include: historical location of network disconnection, historical time of network disconnection, number of network disconnections, historical location of network recovery and historical time of network recovery, etc. Then, the second historical location is the same as the second location and the location where the network disconnection occurred in history.

[0106] In one example, when a terminal device is disconnected from the network, the second location (i.e., the offline location) and the time when the offline occurs are obtained. By searching the data in the preset database, it is determined that there is a second historical location that is the same as the second location in the preset database. Then, a first timer is started, and the timing duration of the first timer is related to the number of offline times in the preset database, and the network search frequency is accelerated within the timing duration of the first timer; if the terminal device fails to search the network within the timing duration of the first timer, the current first location of the terminal device is obtained. By searching the data in the preset database, it is determined that there is a first historical location in the preset database, and the first historical location is the historical location when the terminal device restores the network; the target network search range is determined based on the first historical location; when the first location is within the target network search range, the network search frequency of the terminal device is increased.

[0107] It should be noted that, since the terminal device may be in a mobile state during the offline process, the first position and the second position are the positions of the terminal device at different times, and the two are not the same.

[0108] In an embodiment of the present disclosure, when the terminal device is disconnected from the network, the second location is obtained, and if there is a second historical location identical to the second location in a preset database, the first timer is started to accelerate the network search frequency within the timing duration of the first timer, thereby improving the network recovery speed; if the network search fails within the timing duration of the first timer, the first location is obtained, and in this way, it is possible to determine whether the terminal device is within the target network search range based on the first location, and adjust the network search frequency based on this to reduce the delay in network recovery.

[0109] Figure 3 The following is a flow chart of a network search method according to an exemplary embodiment. Figure 3 ,like Figure 3 As shown, the above step S203 may include the following steps:

[0110] In step 301, if the network search fails within the timing duration of the first timer, the network search frequency of the terminal device is reduced according to a first reduction amplitude.

[0111] In step 302, when the first decrease amplitude is greater than a preset amplitude threshold, a second timer is started; wherein the first decrease amplitude is positively correlated with the network search duration of the terminal device within the timing duration of the first timer;

[0112] In step 303, if the network search fails within the timing duration of the second timer, the current first location of the terminal device is obtained.

[0113] It can be understood that when the network search is performed within the timing duration of the first timer, the network search duration gradually increases, and then the first decrease amplitude also gradually increases, that is, the network search frequency gradually slows down.

[0114] In some embodiments, when the first decrease amplitude is greater than a preset amplitude threshold, a second timer is started; within the timing duration of the second timer, the network search frequency of the terminal device is reduced according to the second decrease amplitude.

[0115] The second decrease amplitude is positively correlated with the network search duration of the terminal device within the timing duration of the second timer.

[0116] It can be understood that when the network search is performed within the timing duration of the second timer, the network search duration gradually increases, and then the second decrease amplitude also gradually increases, that is, the network search frequency gradually slows down.

[0117] In some embodiments, when the first decline amplitude is greater than a preset amplitude threshold, the historical duration used to restore the network corresponding to the first historical position in the preset database is obtained, and the timing duration of the second timer is set according to the above historical duration, and the second timer is started. Within the timing duration of the second timer, the network search frequency is reduced.

[0118] In some embodiments, if the network search fails within the timing duration of the second timer, the current first location of the terminal device is obtained. That is, when the terminal device does not restore the network within the timing duration of the second timer, the current location of the terminal device (i.e., the first location) is obtained.

[0119] In some embodiments, if the second timer times out, the current location of the terminal device (ie, the first location) is obtained.

[0120] In the embodiment of the present disclosure, when the first decrease amplitude of the network search frequency of the terminal device is greater than the preset amplitude threshold, it means that the terminal device has not searched for an accessible signal (i.e., restored the network) for a long time. In order to avoid the problem of slow network return due to the low network search frequency of the terminal device when the terminal moves to an area with network coverage; when the first decrease amplitude of the network search frequency of the terminal device is greater than the preset amplitude threshold, the second timer is started and the network search frequency is reset within the timing duration of the second timer, that is, the network search frequency of the terminal device is reduced according to the second decrease amplitude. In this way, the problem of slow network return caused by too low network search frequency can be reduced.

[0121] In one example, when a terminal device is disconnected from the network, the second location (i.e., the offline location) at which the terminal device is currently located and the time when the offline occurs are obtained, and by searching the data in a preset database, it is determined that there is a second historical location that is the same as the second location in the preset database, and then a first timer is started, wherein the timing duration of the first timer is related to the number of network disconnections in the preset database, and the network search frequency is accelerated within the timing duration of the first timer; if the network search fails within the timing duration of the first timer, the network search frequency of the terminal device is reduced according to a first decrease amplitude, wherein the first decrease amplitude is positively correlated with the network search duration of the network search within the timing duration of the first timer, and based on the network disconnection, the number of network disconnections in the preset database is updated; when the first decrease amplitude is greater than the preset When the amplitude threshold is reached, a second timer is started, wherein the timing duration of the second timer is the historical duration used by the terminal device to restore the network at the first historical position, and within the timing duration of the second timer, the network search frequency of the terminal device is reduced according to a second decrease amplitude, wherein the second decrease amplitude is positively correlated with the network search duration within the timing duration of the second timer; if the network search fails within the timing duration of the second timer, the current first position of the terminal device is obtained; by searching the data in the preset database, it is determined that the first historical position exists in the preset database, and the first historical position is the historical position when the terminal device restores the network; a target network search range centered on the first historical position is determined; when the first position is within the target network search range, the network search frequency of the terminal device is increased.

[0122] In the disclosed embodiment, on the one hand, when the terminal device is disconnected from the network, it is first determined whether the network has been disconnected at the same location. If the network has been disconnected, the first timer is started, and the network search frequency is accelerated within the timing duration of the first timer. If the network search fails within the timing duration of the first timer, the network search frequency of the terminal device is reduced. In this way, unnecessary power consumption caused by frequent blind network searches can be avoided, and power consumption optimization can be achieved;

[0123] On the other hand, when the first decrease amplitude of the network search frequency of the terminal device is greater than the preset amplitude threshold, the second timer is started, and the network search frequency of the terminal device is reduced within the timing duration of the second timer. If the network search fails within the timing duration of the second timer, the current first position of the terminal device is obtained; by searching the historical position of the recovery network in the preset database (i.e., the first historical position), it is determined that the first position is within the target network search range, and the network search frequency of the terminal device is increased; by comparing the position of the terminal device with the historical position of the recovery network and adjusting the network search frequency, power consumption can be further reduced, power consumption optimization can be achieved, and the problem of slow network return caused by too low network search frequency can be reduced.

[0124] In some embodiments, historical offline data corresponding to the first historical location is determined; and based on the historical offline data, the timing duration of the second timer is determined.

[0125] It can be understood that the first historical position is the historical position when the terminal device restores the network, and the historical network disconnection data corresponding to the first historical position can also include the historical moment when the terminal device is disconnected from the network and the historical moment when the network is restored.

[0126] In one example, before starting the second timer, the terminal device can determine the historical offline data corresponding to the first historical location in the preset database, and determine the time taken by the terminal device to move from the offline historical location to the first historical location (i.e., the historical time taken to restore the network) based on the historical offline data; and set the timing duration of the second timer to the historical time taken to restore the network.

[0127] In the embodiment of the present disclosure, the duration of the second timer is determined based on the historical offline data corresponding to the historical location of the restored network (i.e., the first historical location), which can greatly improve the possibility of searching for the network within the timing duration of the second timer and reduce unnecessary power consumption.

[0128] In some embodiments, the historical network disconnection data corresponding to the first historical location may include the historical time of network disconnection and the historical time of network recovery.

[0129] It can be understood that when the historical offline data includes the historical moments of offline and network restoration, before starting the second timer, the terminal device can obtain the historical moments of offline and network restoration from the preset database, and calculate the duration between the historical moment of offline and network restoration, and set the duration as the timing duration of the second timer.

[0130] In other embodiments, the historical offline data corresponding to the first historical location may include the historical duration used to restore the network. The terminal device can obtain the historical duration used to restore the network from a preset database and set the historical duration as the timing duration of the second timer.

[0131] In some embodiments, when the terminal device restores the network within the timing duration of the first timer, the first timer is canceled, and the location of the restored network, the number of network disconnections, and the time of network restoration are saved to a preset database.

[0132] It can be understood that when the terminal device restores the network within the timing duration of the first timer, there is no need to perform subsequent network search steps; the location of the restored network, the number of network disconnections and the time when the network is restored are saved in a preset database, and the next time the terminal device is disconnected from the network, the location of the restored network can be used as the first historical location, and the duration of the first timer can be determined based on the number of network disconnections, and the timing duration of the second timer can be determined based on the time when the network is restored.

[0133] In other embodiments, when the terminal device restores the network within the timing of the first timer, the first timer is canceled; the difference between the time when the network is restored and the time when the network is disconnected is calculated to obtain the time taken to restore the network; the location where the network is restored, the number of times the network is disconnected, and the time taken to restore the network are saved in a preset database.

[0134] It can be understood that when the terminal device restores the network within the timing duration of the first timer, there is no need to perform subsequent network search steps; the location of the restored network and the time taken to restore the network are saved in a preset database, and the next time the terminal device is disconnected from the network, the location of the restored network can be used as the first historical location, and the duration of the first timer can be determined based on the number of disconnections, and the timing duration of the second timer can be set according to the time taken to restore the network.

[0135] In some embodiments, when the terminal device restores the network within the timing duration of the second timer, the second timer is canceled, and the location of the restored network, the number of network disconnections, and the time of network restoration are saved to a preset database.

[0136] It can be understood that when the terminal device restores the network within the timing duration of the second timer, there is no need to perform subsequent network search steps; the location of the restored network and the time when the network is restored are saved in a preset database, and the next time the terminal device is disconnected from the network, the location of the restored network can be used as the first historical location, and the duration of the first timer can be determined based on the number of times the network is disconnected, and the timing duration of the second timer can be determined based on the time when the network is restored.

[0137] In other embodiments, when the terminal device restores the network within the timing of the second timer, the second timer is canceled; the difference between the time when the network is restored and the time when the network is disconnected is calculated to obtain the time taken to restore the network; and the location where the network is restored, the number of times the network is disconnected, and the time taken to restore the network are saved in a preset database.

[0138] It can be understood that when the terminal device restores the network within the timing duration of the second timer, there is no need to perform subsequent network search steps; the location of the restored network and the time taken to restore the network are saved in a preset database, and the next time the terminal device is disconnected from the network, the location of the restored network can be used as the first historical location, and the duration of the first timer can be determined based on the number of disconnections, and the timing duration of the second timer can be set according to the time taken to restore the network.

[0139] In some embodiments, when there is no historical location identical to the second location in the preset database, a third timer is started; within the timing duration of the third timer, the network search frequency of the terminal device is increased; if the network search fails within the timing duration of the third timer, the network search frequency of the terminal device is reduced according to a third decrease amplitude; wherein the third decrease amplitude is positively correlated with the network search duration of the terminal device within the timing duration of the third timer.

[0140] It can be understood that when there is no historical location identical to the second location in the preset database, that is, the terminal device has never been offline at the second location, the third timer is started.

[0141] In some embodiments, if the third timer times out, the network search frequency of the terminal device is reduced according to a third reduction amplitude; wherein the third reduction amplitude is positively correlated with the network search duration of the terminal device within the timing duration of the third timer.

[0142] In one example, when the terminal device is offline, the offline location (i.e., the second location) where the terminal device is currently located is obtained, and by searching the data in the preset database, it is determined that there is no historical location that is the same as the second location in the preset database. That is, the terminal device has not been offline at the second location; the third timer is started, and within the timing duration of the third timer, the network search frequency of the terminal device is increased to try to quickly restore the network; if the network search fails within the timing duration of the third timer, the network search frequency of the terminal device is reduced according to the third reduction rate, and the offline location, the time of offline, and the number of network disconnections that occurred at the offline location are saved in the preset database.

[0143] In the embodiment of the present disclosure, when the terminal device is disconnected from the network, based on the disconnection position (i.e., the second position) when the terminal device is disconnected from the network, the terminal device is controlled to search the network frequently when it is just disconnected from the network, and after the frequent network searches fail, the network search power is reduced, thereby reducing ineffective network searches after disconnection and achieving power consumption optimization.

[0144] In some embodiments, the timing duration of the third timer may be greater than the timing duration of the first timer.

[0145] In some other embodiments, the timing duration of the third timer may be equal to or less than the timing duration of the first timer.

[0146] In some embodiments, the terminal device uploads the data in the preset database to the server at a preset time interval, receives the merged data returned by the database, and updates the data in the preset database with the merged data, wherein the merged data comes from the data in the preset database of all terminal devices within the same preset range as the terminal device.

[0147] It can be understood that multiple terminal devices in the same area (i.e., the same preset range) upload the data in the preset database to the database regularly (i.e., at preset time intervals); the database merges the data in the preset database of multiple terminal devices in the same area together to obtain merged data, and returns the merged data to the multiple terminal devices in the same area; and multiple terminal devices will use the merged data to update the data in the preset database.

[0148] In the disclosed embodiment, multiple terminal devices in the same area can share data among multiple terminal devices in the same area by uploading data in a preset database to a server and receiving merged data returned by the server.

[0149] Figure 4 FIG. 1 is a block diagram of a network search device according to an exemplary embodiment. Figure 4 As shown, the network search device 400 mainly includes:

[0150] A first acquisition module 401 is configured to acquire a first position of the terminal device when detecting that the terminal device is offline;

[0151] The second acquisition module 402 is configured to acquire a first historical position from a preset database; wherein the first historical position is a historical position when the terminal device successfully restores the network;

[0152] A data processing module 403 is configured to determine a target network search range based on the first historical location;

[0153] The network search module 404 is configured to increase the network search frequency of the terminal device when the first position is within the target network search range.

[0154] In some embodiments, the first acquisition module 401 is configured to:

[0155] When detecting that the terminal device is offline, obtaining a second location of the terminal device;

[0156] When there is a second historical location identical to the second location in the preset database, starting a first timer;

[0157] If the network search fails within the timing duration of the first timer, the first location is obtained.

[0158] In some embodiments, the first acquisition module 401 is configured to:

[0159] If the network search fails within the timing duration of the first timer, reducing the network search frequency of the terminal device according to a first reduction amplitude; wherein the first reduction amplitude is positively correlated with the network search duration of the terminal device performing the network search within the timing duration of the first timer;

[0160] When the first decreasing amplitude is greater than a preset amplitude threshold, starting a second timer;

[0161] If the network search fails within the timing duration of the second timer, the current first location of the terminal device is obtained.

[0162] In some embodiments, the network search module 404 is configured to:

[0163] During the timing duration of the second timer, reducing the network search frequency of the terminal device according to a second reduction amplitude;

[0164] The second decrease amplitude is positively correlated with the network search duration of the terminal device within the timing duration of the second timer.

[0165] In some embodiments, the network search device 400 further includes:

[0166] A determination module is configured to determine historical offline data corresponding to the first historical location; based on the historical offline data, determine the timing duration of the second timer.

[0167] In some embodiments, the apparatus further comprises:

[0168] A starting module, configured to start a third timer when there is no historical location identical to the second location in the preset database;

[0169] The network search module 404 is configured to increase the network search frequency of the terminal device within the timing duration of the third timer;

[0170] The network search module 404 is also configured to reduce the network search frequency of the terminal device according to a third reduction amplitude if the network search fails within the timing duration of the third timer; wherein the third reduction amplitude is positively correlated with the network search duration of the terminal device within the timing duration of the third timer.

[0171] In some embodiments, the starting module is configured to: start a fourth timer when the first location is within the target network search range;

[0172] The network search module 404 is configured to increase the network search frequency of the terminal device within the timing duration of the fourth timer.

[0173] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0174] Figure 5 It is a hardware structure block diagram of a network search device 500 according to an exemplary embodiment. For example, the network search device 500 can be a mobile phone, a tablet computer, a VR device, an AR device, a drone, a 3D game console, a monitoring system, a PDA, a digital recorder, an MP3 player, an electronic toy, a personal digital assistant, a wearable device, etc.

[0175] refer to Figure 5 The network search device 500 may include one or more of the following components: a processing component 502, a memory 54, a power component 506, a multimedia component 508, an audio component 510, an input / output (I / O) interface 512, a sensor component 514, and a communication component 516.

[0176] The processing component 502 generally controls the overall operation of the device 500, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 502 may include one or more processors 520 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 502 may include one or more modules to facilitate the interaction between the processing component 502 and other components. For example, the processing component 502 may include a multimedia module to facilitate the interaction between the multimedia component 508 and the processing component 502.

[0177] The memory 504 is configured to store various types of data to support the operation of the network search device 500. Examples of such data include instructions for any application or method operating on the network search device 500, contact data, phone book data, messages, pictures, videos, etc. The memory 604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0178] The power supply component 506 provides power to various components of the network search device 500. The power supply component 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the network search device 500.

[0179] The multimedia component 508 includes a screen that provides an output interface between the web search device 500 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor can not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front camera and / or a rear camera. When the web search device 500 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.

[0180] The audio component 510 is configured to output and / or input audio signals. For example, the audio component 510 includes a microphone (MIC), and when the network search device 500 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 504 or sent via the communication component 516. In some embodiments, the audio component 510 also includes a speaker for outputting audio signals.

[0181] I / O interface 512 provides an interface between processing component 502 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0182] The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the web search device 500. For example, the sensor assembly 514 can detect the open / closed state of the web search device 500, the relative positioning of the components, such as the display and keypad of the web search device 500, and the sensor assembly 514 can also detect the position change of the web search device 500 or a component of the web search device 500, the presence or absence of contact between the user and the web search device 500, the orientation or acceleration / deceleration of the web search device 500, and the temperature change of the web search device 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 514 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0183] The communication component 516 is configured to facilitate wired or wireless communication between the network search device 500 and other devices. The network search device 500 can access a wireless network based on a communication standard, such as Wi-Fi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0184] In an exemplary embodiment, the network search device 500 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.

[0185] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 504 including instructions, and the instructions can be executed by the processor 620 of the device 50 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0186] The embodiments of the present disclosure provide a non-temporary computer-readable storage medium. When the instructions in the storage medium are executed by the processor of the computer, the computer can execute the network search method described in one or more of the aforementioned technical solutions.

[0187] When the processor executes the instruction, it can at least perform the following steps:

[0188] When detecting that the terminal device is offline, obtaining the first location of the terminal device;

[0189] Acquire a first historical position from a preset database; wherein the first historical position is a historical position when the terminal device successfully restores the network;

[0190] Determine a target network search range based on the first historical location;

[0191] When the first position is within the target network search range, the network search frequency of the terminal device is increased.

[0192] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0193] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A network search method, characterized in that: include: When detecting that the terminal device is offline, obtaining a first location of the terminal device; Acquire a first historical position from a preset database; wherein the first historical position is a historical position when the terminal device successfully restores the network; Determine a target network search range based on the first historical location; When the first position is within the target network search range, the network search frequency of the terminal device is increased.

2. The method according to claim 1, characterized in that The acquiring the first position of the terminal device when detecting that the terminal device is offline includes: When detecting that the terminal device is offline, obtaining a second location of the terminal device; When there is a second historical location identical to the second location in the preset database, starting a first timer; If the network search fails within the timing duration of the first timer, the first location is obtained.

3. The method according to claim 2, characterized in that If the network search fails within the timing duration of the first timer, obtaining the first location of the terminal device includes: If the network search fails within the timing duration of the first timer, reducing the network search frequency of the terminal device according to a first reduction amplitude; wherein the first reduction amplitude is positively correlated with the network search duration of the terminal device performing the network search within the timing duration of the first timer; When the first decreasing amplitude is greater than a preset amplitude threshold, starting a second timer; If the network search fails within the timing duration of the second timer, the current first location of the terminal device is obtained.

4. The method according to claim 3, characterized in that The method further comprises: During the timing duration of the second timer, reducing the network search frequency of the terminal device according to a second reduction amplitude; The second decrease amplitude is positively correlated with the network search duration of the terminal device within the timing duration of the second timer.

5. The method according to claim 3, characterized in that: The method further comprises: Determine historical offline data corresponding to the first historical location; Based on the historical offline data, determine the timing duration of the second timer.

6. The method according to claim 2, characterized in that The method further comprises: If there is no historical location identical to the second location in the preset database, starting a third timer; During the timing duration of the third timer, increasing the network search frequency of the terminal device; If the network search fails within the timing duration of the third timer, the network search frequency of the terminal device is reduced according to a third reduction amplitude; wherein the third reduction amplitude is positively correlated with the network search duration of the terminal device within the timing duration of the third timer.

7. The method according to any one of claims 1 to 6, characterized in that: When the first position is within the target network search range, increasing the network search frequency of the terminal device includes: When the first position is within the target network search range, starting a fourth timer; During the timing duration of the fourth timer, the network search frequency of the terminal device is increased.

8. A network search device, characterized in that: include: A first acquisition module is configured to acquire a first position of the terminal device when detecting that the terminal device is offline; A second acquisition module is configured to acquire a first historical position from a preset database; wherein the first historical position is a historical position when the terminal device successfully restores the network; A data processing module, configured to determine a target network search range based on the first historical location; The network search module is configured to increase the network search frequency of the terminal device when the first position is within the target network search range.

9. A network search device, characterized in that: include: processor; a memory configured to store processor-executable instructions; Wherein, the processor is configured to: implement the steps in any one of the network search methods in claims 1 to 7 when executed.

10. A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a network search device, the device is able to execute any one of the network search methods as claimed in claims 1 to 7.