Network recovery method and device, electronic equipment and storage medium
By presetting the departure characteristics in the mobile terminal, using travel data to determine that the user leaves the disconnection site, the network signal recovery of the mobile terminal is realized, and the problems of inaccurate identification of the disconnection site in the prior art are solved, and the network recovery is improved accuracy and efficiency.
Patent Information
- Application Number
- CN202310587464.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-23
- Publication Date
- 2024-11-26
AI Technical Summary
After the mobile terminal interrupts the network in a site where the network is disconnected (such as the basement), it is difficult for the existing technology to accurately determine when the user will leave, resulting in delayed network recovery or inability to recover in time.
By presetting features for characterizing the off-network site in the mobile terminal, network signal search and recovery are searched and restored using the matching of travel data with these features, the increase in additional hardware is avoided and accuracy and efficiency is improved.
It realizes accurate identification of users in the off-net site and timely recovery of the network when they leave, avoids the inaccuracy problem of intermittent network search and barometer detection, and reduces hardware cost and power consumption.
Smart Images

Figure CN119031447A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of terminal technology, and in particular to a network recovery method and device, an electronic device, and a storage medium. Background Art
[0002] Most functions of mobile terminals such as smartphones and tablets rely on mobile networks. However, when using mobile terminals, users will inevitably go to places with poor network signals. For example, when users enter a basement, they may not be able to search for network signals, resulting in network disconnection.
[0003] In this case, in order to ensure the user experience as much as possible, it is necessary to search for network signals in time to restore the network when the user leaves the disconnected location. Summary of the invention
[0004] The present disclosure provides a network recovery method and device, an electronic device, and a storage medium, which can accurately determine when a user leaves a network disconnection location based on travel data of a mobile terminal, and then perform network recovery operations in a timely manner.
[0005] According to a first aspect of the present disclosure, a network recovery method is provided, which is applied to a mobile terminal and includes:
[0006] When the mobile terminal enters the target location and is disconnected from the original network, the acquired travel data is compared with the target departure feature; the target departure feature is used to characterize the travel feature of the mobile terminal when it leaves the target location;
[0007] When the travel data matches the target departure feature, a network signal search operation is performed to restore the network based on the searched network signal.
[0008] According to a second aspect of the present disclosure, a network recovery device is provided, which is applied to a mobile terminal and includes:
[0009] a comparison unit, which compares the acquired travel data with the target departure feature when the mobile terminal enters the target location and is disconnected from the original network; the target departure feature is used to characterize the travel feature of the mobile terminal when it leaves the target location;
[0010] The network return unit performs a network signal search operation when the travel data matches the target departure feature, so as to restore the network based on the searched network signal.
[0011] According to a third aspect of the present disclosure, there is provided an electronic device, including:
[0012] processor;
[0013] a memory for storing processor-executable instructions;
[0014] The processor implements the method as described in the first aspect by running the executable instructions.
[0015] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided, on which computer instructions are stored, and when the instructions are executed by a processor, the steps of the method described in the first aspect are implemented.
[0016] In the technical solution disclosed in the present invention, when a mobile terminal enters a specific place and the network is disconnected, the mobile terminal's travel data can be compared with the departure characteristics of the place to determine when the mobile terminal leaves the place. When it is determined that the mobile terminal has left the place, a network signal search operation can be performed to restore the network based on the searched network signal. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] 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.
[0018] Figure 1 is a flow chart of a network recovery method shown in an exemplary embodiment of the present disclosure;
[0019] Figure 2 is a schematic diagram of two travel modes for a user to enter and exit a basement, shown in an exemplary embodiment of the present disclosure;
[0020] Figure 3 is a schematic diagram of an output result of a feature matching algorithm shown in an exemplary embodiment of the present disclosure;
[0021] Figure 4 is a flow chart of another network recovery method shown in an exemplary embodiment of the present disclosure;
[0022] Figure 5 is a block diagram of a network recovery device shown in an exemplary embodiment of the present disclosure;
[0023] Figure 6 is a block diagram of another network recovery device shown in an exemplary embodiment of the present disclosure;
[0024] Figure 7 It is a schematic structural diagram of an electronic device in an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0025] 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 and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0026] The terms used in this disclosure are for the purpose of describing specific embodiments only and are not intended to limit the disclosure. The singular forms of "a", "said" and "the" used in this disclosure and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0027] It should be understood that although the terms first, second, third, etc. may be used in the present disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present disclosure, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0028] When a user carries a mobile terminal into a place such as a basement, the network is often disconnected due to the inability to search for a network signal. In the present disclosure, such a place may be referred to as a disconnected network place. It should be understood that when a user enters a disconnected network place, there is a need to "restore the network in time when the user leaves the disconnected network place".
[0029] In the related art, when a mobile terminal such as a smart phone is disconnected from the network, it uses an intermittent network search method to restore the network. For example, after the user enters the basement and the smart phone is disconnected from the network, the mobile terminal will start searching for network signals. If the network signal cannot be found within a fixed time, it will stop for a certain period of time and then continue the network search operation for a fixed time. For example, the network search operation can be performed for 30 seconds every 1 minute. This method not only performs a large number of invalid network search operations, resulting in high power consumption, but also due to the problem of intermittent execution, if the user walks out of the basement and happens to be in the stage of stopping the network search, the mobile terminal will not be able to restore the network in time.
[0030] To solve the above problems, the relevant technology also proposes a method of adding a barometer in the mobile terminal to monitor when the user leaves the basement, so as to perform a network search operation when it is determined that the user has left the basement. This method not only increases the hardware cost, but also because the air pressure is affected by natural factors such as temperature and altitude, as well as the structure of the basement, there is also the problem of inaccurate detection of the departure time, resulting in the inability to restore the network in time. It is not difficult to see that this method requires setting a specific air pressure value for a specific basement, and the air pressure value needs to be adjusted according to the season. For example, different air pressure values need to be set in the south and north, in plateau areas and plains to ensure recognition accuracy.
[0031] In view of this, the present disclosure proposes a network recovery method. In this method, in view of the fact that there are certain travel characteristics when a user carries a mobile terminal in a disconnected place such as a basement, a feature for representing the "leaving feature when the mobile terminal leaves a disconnected place such as a basement" is preset in the mobile terminal. On this basis, once the mobile terminal is disconnected from the network due to entering a disconnected place, the travel data of the mobile terminal can be obtained, and the travel data can be compared with the preset leaving feature, so that when the two match, it is determined that the mobile terminal has left the disconnected place, and then the network return operation is performed, that is, the network signal is searched, and the network operation is restored according to the searched network signal.
[0032] It should be understood that since this method only needs to determine when the mobile terminal leaves the disconnected location such as the basement based on the travel data of the mobile terminal, and motion sensors have become standard components of mobile terminals, the present disclosure can accurately identify when the mobile terminal leaves the disconnected location without adding additional hardware, and then perform timely network recovery operations, avoiding the problem of increasing hardware costs by adding additional hardware such as barometers in related technologies.
[0033] In addition, since the mobile terminal has certain characteristics in terms of the way of travel, route, etc. when leaving the disconnected location, for example, when the user leaves the underground garage, it is very likely that the movement will suddenly stop due to the lever set up in the underground garage, or the user needs to take specific stairs or elevators when leaving the underground garage, which requires the user to walk along a specific route. Therefore, based on the travel data of the mobile terminal, it is possible to accurately determine when the user leaves the disconnected location, and then promptly perform the network restoration operation, avoiding the problem of intermittent execution of network search operations in related technologies, and failure to promptly perform network restoration operations due to the inability to accurately determine when to leave the disconnected location when performing network search operations based on a barometer.
[0034] The following describes the various steps included in the network recovery method disclosed herein.
[0035] Figure 1FIG. 1 is a flowchart of a network recovery method according to an exemplary embodiment of the present disclosure. The method is applied to a mobile terminal, such as Figure 1 As shown, the method may include the following steps:
[0036] Step 102, when the mobile terminal enters the target location and is disconnected from the original network, the acquired travel data is compared with the target departure feature; the target departure feature is used to characterize the travel characteristics of the mobile terminal when it leaves the target location.
[0037] In the present disclosure, the disconnected location entered by the mobile terminal when the network is disconnected can be referred to as the target location. When the user enters the target location, the acquired travel data can be compared with the target departure feature used to characterize the departure from the target location. If the two match, it is determined that the user has left the target location, and then the operation of restoring the network is performed.
[0038] In the present disclosure, since the mobile terminal has certain characteristics in multiple dimensions when traveling in a disconnected place, the present disclosure can set target departure features for characterizing the mobile terminal leaving the target place from different dimensions. For example, since the disconnected place is usually specially constructed, the user needs to take a specific route to travel in the disconnected place. Therefore, the present disclosure can set the target departure feature based on the route of the mobile terminal in the target place; for another example, since different travel modes are used to travel in the disconnected place, the travel characteristics when leaving the disconnected place are usually different, therefore, the target departure feature can be set according to the travel mode of the mobile terminal in the target place. Of course, the target departure feature can also be set with reference to the above-mentioned travel route and travel mode at the same time. It should be understood that the examples given here are only for illustration, and the specific dimensions or dimensions based on which the target departure feature is set can be determined by those skilled in the art according to actual needs, and the present disclosure does not limit this.
[0039] In the present disclosure, since the characteristics of a mobile terminal when traveling in a target location can be reflected in different data, different data can be used as the travel data of the mobile terminal. For example, travel characteristics can be reflected in motion data such as travel speed and travel direction, and can also be reflected in posture data such as orientation. Therefore, the present disclosure can use the motion data of the mobile terminal during travel as travel data, or the posture data of the mobile terminal as travel data, or both the motion data and the posture data as travel data. It should be understood that the travel data in the present disclosure generally refers to the data generated by the mobile terminal during travel. Which type of data is used as travel data can be determined by those skilled in the art according to actual needs, and the present disclosure does not limit this.
[0040] In the present disclosure, a series of standard sensors are usually installed in the mobile terminal. Therefore, the present disclosure can rely on any sensor installed in the mobile terminal to obtain the travel data of the mobile terminal during the travel process. For example, the mobile terminal can be equipped with an IMU (Inertial measurement unit), which can include a gyroscope and an accelerometer. It can also be equipped with a visual sensor such as a camera, and a distance sensor similar to a distance measurement technology using TOF (Time offlight). Therefore, the present disclosure can obtain the travel data of the mobile terminal based on at least one of "gyroscope parameters, accelerometer parameters, visual sensor parameters, and distance sensor parameters". Of course, this example is only illustrative. Which sensors are specifically equipped in the mobile terminal and which sensor parameters are used to obtain the travel data can be determined by those skilled in the art according to actual needs, and the present disclosure does not limit this.
[0041] In the present disclosure, when a user adopts different travel modes, the travel characteristics of the mobile terminal when leaving the disconnected location may be different. For example, when a user adopts different travel modes to enter or leave the disconnected location, the route or travel speed may be different. Therefore, the present disclosure can set different departure characteristics for different travel modes to accurately determine the timing when the user adopts different modes to leave the disconnected location.
[0042] In one embodiment, multiple departure characteristics of travel modes may be preset in the mobile terminal. On this basis, the acquired travel data may be compared with the departure characteristics of multiple travel modes respectively. When the travel data matches the departure characteristics of any travel mode, it can be determined that the travel data matches the target departure characteristics. In other words, when the travel data matches the departure characteristics of any travel mode, the any travel mode is determined as the target travel mode currently used by the mobile terminal, and the departure characteristics of the any travel mode are determined as the target departure characteristics.
[0043] In another embodiment, in addition to the departure features of multiple travel modes, the mobile terminal may also be preset with type features of the multiple travel modes. On this basis, the acquired travel data may be compared with the preset multiple type features to determine the target travel mode currently adopted by the mobile terminal from the preset multiple travel modes. Further, the travel data may be compared with the target departure feature of the target travel mode to determine whether the travel data matches the target departure feature. If they match, the network recovery operation is performed.
[0044] In the present disclosure, the preset multiple travel modes can be set according to actual needs. For example, the preset travel modes may include: the mobile terminal travels with the user walking; and may also include: the mobile terminal travels with the user's means of transportation, wherein the means of transportation may be any type such as a car, a balance car, a skateboard, a bicycle, etc. Of course, the examples here are only illustrative, and what the preset travel modes include can be determined by those skilled in the art according to actual conditions, and the present disclosure does not limit this.
[0045] In the present disclosure, the comparison operation of the travel data and the departure feature can be performed in different ways.
[0046] In one embodiment, the comparison operation can be performed by a pre-trained model. For example, model training can be performed based on sample travel data acquired when the mobile terminal leaves the target location, so that the trained feature matching model can be used to determine whether the travel data matches the travel characteristics of the mobile terminal leaving the target location. On this basis, when the mobile terminal enters the target location and the network is disconnected, the acquired travel data can be input into the feature matching model, so that the feature matching model outputs a judgment result for characterizing whether the travel data matches the preset target departure characteristics, and if so, the network recovery operation is performed.
[0047] In this embodiment, when multiple travel modes are preset, multiple feature matching models for matching different features can be pre-trained. For example, sample travel data of the mobile terminal when traveling in various travel modes can be obtained respectively, and each sample travel data can be labeled with a corresponding travel mode, and then a travel mode matching model for determining the target travel mode currently adopted by the mobile terminal can be trained; for another example, sample departure travel data of the mobile terminal when leaving the target place based on various travel modes can be obtained respectively, and then the training model can be iteratively optimized based on the sample departure travel data of each travel mode, so as to train the departure feature matching model corresponding to the various travel modes. Of course, this example is only illustrative, and how to train the feature matching model and how to make judgments through various models can be determined by those skilled in the art according to actual needs, and the present disclosure does not limit this.
[0048] In another embodiment, the comparison operation of the travel data with the departure signature may be performed by a deployed matching algorithm.
[0049] For example, a travel mode matching algorithm and multiple feature matching algorithms can be deployed in a mobile terminal, wherein the travel mode matching algorithm is used to determine the target travel mode of the mobile terminal in the target location; and each feature matching algorithm corresponds to a travel mode, and any feature matching algorithm is used to determine whether the input travel data matches the departure feature of the travel mode corresponding to any feature matching algorithm. On this basis, the acquired travel data can be respectively input into the deployed travel mode matching algorithm and multiple feature matching algorithms. On the one hand, the travel mode matching algorithm can output the target travel mode currently adopted by the mobile terminal, and on the other hand, the multiple feature matching algorithms can respectively output the judgment results. Among them, when the judgment result output by the target feature matching algorithm corresponding to the target travel mode output by the travel mode matching algorithm is a match, it means that the mobile terminal leaves the target location based on the target travel mode, and the network recovery operation is immediately performed.
[0050] Taking "the preset travel modes include walking and driving" as an example, a walking departure algorithm for determining whether the travel data matches the "travel characteristics of the user leaving the target place by walking" and a driving departure algorithm for determining whether the travel data matches the "travel characteristics of the user leaving the target place by driving" can be set respectively. Of course, this example is only illustrative, and how to set the matching algorithm and which matching algorithms to set can be determined by those skilled in the art according to actual needs, and the present disclosure does not limit this.
[0051] In this embodiment, the "matching algorithm for comparing travel data with departure features" can be registered to the mobile terminal in the form of a sensor. For example, the travel mode matching algorithm and multiple feature matching algorithms in the above example can be registered to the mobile terminal in the form of a logical sensor. For example, the travel mode matching algorithm can be registered as a traffic identification sensor, and the feature matching algorithm corresponding to the walking mode can be registered as a walking feature identification sensor, and the feature matching algorithm corresponding to the driving mode can be registered as a driving feature identification sensor. On this basis, the mobile terminal can perform various matching operations by calling various virtual sensors.
[0052] It is not difficult to see that this embodiment can asynchronously execute the "determination operation of the travel mode" and the "judgment operation of whether the travel data matches the departure characteristics of various travel modes", thereby improving the speed of determining whether to execute the network recovery operation.
[0053] In the present disclosure, there may be more than one disconnection location that causes the mobile terminal to disconnect from the network, so the present disclosure can record the departure characteristics of different preset locations in the mobile terminal. Then, after the mobile terminal enters the target location and is disconnected from the original network, the target location that causes the mobile terminal to be disconnected from the original network can be preferentially determined from multiple preset locations, and the acquired travel data can be compared with the target departure characteristics of the target location.
[0054] In the present disclosure, a target entry feature for characterizing the mobile terminal entering the target location may also be set to determine whether the network disconnection of the mobile terminal is caused by entering the target location. For example, after the mobile terminal is disconnected from the original network, the acquired travel data may be compared with the target entry feature. If the two match, it is determined that the disconnection from the original network is caused by entering the target location.
[0055] In the present disclosure, similar to the target departure feature, the target entry feature can also be set from multiple dimensions, for example, it can be set based on the travel mode and travel route. Secondly, the entry features of different disconnected places can also be recorded in the mobile terminal to determine the time when the user enters different disconnected places. Furthermore, the mobile terminal can also use a variety of methods to compare the travel data and the target entry features. For example, the above-mentioned feature matching model can also learn the travel characteristics when entering the target place during training, and then perform the operation of comparing the travel data with the target entry characteristics through the feature matching model. Of course, the comparison operation can also be performed by deploying a feature matching algorithm. The specific operation can refer to the introduction of the departure feature, which will not be repeated here.
[0056] Step 104: When the travel data matches the target departure feature, a network signal search operation is performed to restore the network based on the searched network signal.
[0057] In the present disclosure, when the travel data matches the target departure feature of the target location, a network signal search operation can be performed to restore the network based on the searched network signal. For example, after determining the match, a network search instruction can be reported to a modem installed in the mobile terminal so that the modem can perform the network signal search operation.
[0058] It should be stated that the original network in the present disclosure refers to: the network that the mobile terminal was originally connected to before entering the disconnected location. In the present disclosure, "disconnection from the original network" includes a variety of situations. For example, in one case, after entering the target location, the mobile terminal is disconnected from the original network, but reconnects to other networks. The most common one is "jumping from high-standard networks such as 5G and 4G networks to low-standard networks such as 3G and 2G". In such cases, when the travel data matches the target departure feature, the searched network signal can be "the network signal of the high-standard network"; for example, in another case, after entering the target location, the mobile terminal is not only disconnected from the original network, but also unable to connect to any other network, and is in a completely disconnected state. In such cases, when the travel data matches the target departure feature, the searched network signal can be the network signal of any network, for example, it can be the network signal of a high-standard network or the network signal of a low-standard network.
[0059] In the present disclosure, a network signal search strategy can also be set to enhance the user experience. For example, the network signal search strategy can be: prioritize searching for network signals of high-standard networks to restore the network connection with the high-standard network, and when the network signal of the high-standard network cannot be searched, search for network signals of low-standard networks to establish a network connection with the low-standard network. For another example, the network signal search strategy can be: prioritize searching for network signals of the original network connected before entering the target location to restore the network connection with the original network. Of course, this example is only illustrative, and the specific network signal search strategy to be adopted to restore the network can be determined by those skilled in the art according to actual needs, and the present disclosure does not limit this.
[0060] It should also be stated that the execution subject of the technical solution of the present disclosure can be any type of mobile terminal, for example, it can be a mobile terminal in the traditional sense such as a smart phone, a tablet computer, or an emerging mobile terminal such as a smart car, an electronic dog, and a drone. It should be understood that any mobile terminal that has a networking requirement can be used as the execution subject of the present disclosure, and which type of mobile terminal is used as the execution subject of the technical solution of the present disclosure can be determined by those skilled in the art according to actual needs, and the present disclosure does not limit this.
[0061] It can be seen from the above technical solution that the present disclosure can pre-set in the mobile terminal a departure feature for characterizing the time when the mobile terminal leaves a network-disconnected place, so that after the mobile terminal enters the network-disconnected place and causes the network to be disconnected, it can be determined based on the acquired travel data whether the mobile terminal has left the network-disconnected place; if it is determined that the mobile terminal has left the network-disconnected place, a search for network signals is executed, and operations of restoring the network based on the searched network signals are performed.
[0062] It should be understood that since Internet-disconnected places such as basements usually have obvious geographical or structural features, the mobile terminal also has obvious movement characteristics when leaving such Internet-disconnected places. Therefore, by determining when the mobile terminal leaves the Internet-disconnected place based on the movement data and then executing the network restoration operation, the network can be restored in time, avoiding the problem in related technologies that the network cannot be restored in time due to intermittent network searches.
[0063] In addition, since most mobile terminals nowadays are equipped with at least one of the sensors such as gyroscopes, accelerometers, cameras, etc., which can be used to obtain travel data, the problem of increasing hardware costs by additionally installing a barometer in the related technology to determine whether the user has left the basement and then perform network recovery operations is avoided.
[0064] Furthermore, since the present disclosure determines whether the user has left the disconnected location based on the travel data, and the judgment basis "the leaving feature corresponding to the disconnected location" can be completely determined according to the actual disconnected location, the present disclosure can be applied to any disconnected location with obvious geographical features or structural features, and is not limited to the disconnected scene of the basement. For example, in remote mountain villages, urban sewers, etc., the corresponding leaving features can be set according to the actual situation of the disconnected location, thereby realizing rapid network recovery. In other words, the technical solution of the present disclosure is more widely applicable than the network recovery method in the related art.
[0065] Below, taking "a user carrying a smart phone in and out of a basement" as an example, the network recovery method disclosed in the present invention is introduced in detail.
[0066] In this embodiment, users usually enter and exit the basement by walking or driving. The process of users entering and exiting the basement by these two methods can be referred to in Figure 2 As shown by Figure 2 It can be clearly seen that there are obvious travel characteristics when users enter and exit the basement in two ways. Based on this, this embodiment can be set in the smartphone as follows Figure 3 The three feature matching algorithms shown are the travel mode matching algorithm, the walking underground garage algorithm, and the driving underground garage algorithm. The functions of the three feature matching algorithms are as follows:
[0067] Movement mode matching algorithm: used to determine how the user is moving and whether the user is moving. The output results include: stationary, walking, running, and driving.
[0068] Walking underground garage algorithm: used to determine whether the user is in one of the three states of "entering the underground garage, in the underground garage, and leaving the underground garage" when not driving.
[0069] Driving underground garage algorithm: used to determine whether the user is in one of the three states of "entering the underground garage, in the underground garage, and leaving the underground garage" when driving.
[0070] In this embodiment, the above three feature matching algorithms can be deployed by training models. For example, a user can walk and drive in and out of the basement several times, so that the smartphone can collect sample travel data collected by the user in different ways and label the acquired sample travel data. On this basis, the sample travel data can be input into the neural network model to be trained to obtain a feature matching model through classification training.
[0071] For example, after all sample travel data are labeled as "walking" and "driving", the neural network model to be trained can be iteratively optimized based on the sample travel data to obtain a travel mode matching model corresponding to the travel mode matching algorithm; and after the sample travel data obtained by walking are labeled as "entering the underground garage", "in the underground garage", and "leaving the underground garage", the neural network model to be trained can be iteratively optimized based on the labeled sample travel data to obtain a walking feature matching model corresponding to the walking underground garage algorithm; similarly, after the sample travel data obtained by driving are labeled as "entering the underground garage", "in the underground garage", and "leaving the underground garage", the neural network model to be trained can be iteratively optimized based on the labeled sample travel data to obtain a driving feature matching model corresponding to the driving underground garage algorithm.
[0072] It is worth noting that the above three sets of feature matching algorithms can be registered to the smartphone in the form of "logical sensors" so that the smartphone can call them.
[0073] Figure 4 FIG. 1 is a flow chart of another network recovery method shown in an exemplary embodiment of the present disclosure. Figure 4 As shown, the method may include the following steps:
[0074] Step 401: Detect network interruption.
[0075] In this embodiment, the smartphone can continuously obtain the travel data of the smartphone when the network is interrupted. For example, the sensor parameters of the installed gyroscope and accelerometer can be continuously obtained to determine whether the user enters the basement and whether the user leaves the basement after entering the basement based on the obtained sensor parameters.
[0076] It is worth noting that the network interruption in this embodiment can specifically refer to "interruption with the originally connected network". At this time, a situation similar to falling back from a high-standard network to a low-standard network can also be regarded as a network interruption; of course, it can also refer to "inability to connect to any network", which is not limited in this embodiment.
[0077] Step 402, continuously acquiring travel data.
[0078] Step 403, input the travel data into three sets of preset feature matching algorithms respectively.
[0079] In this embodiment, the gyroscope parameters and the accelerometer parameters can be directly used as the travel data. At this time, the gyroscope parameters and the accelerometer parameters can be continuously input into the three preset feature matching algorithms so that the three can continuously output the judgment results.
[0080] Step 404, obtaining output results of three sets of feature matching algorithms.
[0081] As described above, the three feature algorithms continuously output different results based on the input travel data. The smart phone in this embodiment can combine the output results of the three algorithms to determine the user's status in the basement.
[0082] Step 405: monitor the user's status in the basement based on the three output results.
[0083] For example, when the output of the travel mode matching algorithm is "walking" and the output of the walking underground garage algorithm is "entering the underground garage", it can be determined that the user's current state is: walking into the underground garage; similarly, when the output of the travel mode matching algorithm is "driving" and the output of the driving underground garage algorithm is "leaving the underground garage", it can be determined that the user's current state is: driving out of the underground garage. The other output results are similar, please refer to Figure 3 The output result relationship diagram is shown.
[0084] Step 406: When the user leaves the basement by walking or driving, a network search instruction is reported to the modem.
[0085] In this embodiment, the network search instruction is reported to the modem only when it is determined based on the three output results that the user leaves the basement on foot or by car. It is worth noting that walking without the aid of a means of transportation is considered walking, regardless of the speed of travel, that is, running and walking are both considered walking. In other words, only in the two cases of "the output of the travel mode matching algorithm is walking or running, and the output of the walking basement algorithm is leaving the basement" or "the output of the travel mode matching algorithm is driving, and the output of the driving basement algorithm is leaving the basement", the result is reported to the modem so that it can perform the operation of searching for network signals, and when it is determined that the user is in other states, it is not reported to the modem.
[0086] It can be seen from the above technical solution that the present disclosure can determine the user's status in the basement based on the travel data generated by the smartphone as the user moves, so that when it is determined that the user has left the basement, a network search operation can be performed in time to quickly restore the network.
[0087] It should be understood that there are obvious feature differences when users enter and exit the basement in different ways. For example, due to the one-car-one-pole setting in the basement, when the user drives out of the garage, the car has a process of "decelerating, stopping, and then accelerating", which can be clearly reflected in the travel data. Therefore, based on the departure feature pre-set for driving out of the basement, it is possible to accurately determine when the user drives out of the basement; similarly, when the user walks out of the basement, there may be a process of climbing a long staircase, which is also a signature travel feature. Therefore, based on the departure feature pre-set for walking out of the basement, it is possible to accurately determine when the user walks out of the basement. It can be seen that the technical solution disclosed in the present invention can accurately identify the timing of the user leaving the disconnected location, and then promptly perform the network search operation to restore the network.
[0088] Figure 5 FIG. 1 is a block diagram of a network recovery device according to an exemplary embodiment of the present disclosure. Figure 5 The device is applied to a mobile terminal and includes a comparison unit 501 and a network return unit 502.
[0089] The comparison unit 501 compares the acquired travel data with the target departure feature when the mobile terminal enters the target location and is disconnected from the original network; the target departure feature is used to characterize the travel feature of the mobile terminal when it leaves the target location;
[0090] The network return unit 502 performs a network signal search operation when the travel data matches the target departure feature, so as to restore the network based on the searched network signal.
[0091] Optionally, the target departure feature is set based on at least one of the following dimensions:
[0092] The travel route of the mobile terminal in the target location;
[0093] The movement mode of the mobile terminal in the target location.
[0094] Optionally, the mobile terminal is preset with type characteristics of a plurality of travel modes and departure characteristics of the plurality of travel modes; and the comparison unit 501 is further used for:
[0095] Comparing the acquired travel data with a plurality of preset type features to determine the target travel mode currently adopted by the mobile terminal;
[0096] The travel data is compared with a target departure signature of the target travel pattern to determine whether the travel data matches the target departure signature.
[0097] Optionally, the mobile terminal is preset with departure features of multiple travel modes; the comparison unit 501 is further used to:
[0098] Compare the acquired travel data with the departure characteristics of various travel modes respectively;
[0099] When the travel data matches the departure feature of any travel mode, it is determined that the travel data matches the target departure feature.
[0100] Optional,
[0101] The mobile terminal is equipped with a travel mode matching algorithm and a plurality of feature matching algorithms; the travel mode matching algorithm is used to determine the target travel mode of the mobile terminal in the target location; each feature matching algorithm corresponds to a preset travel mode, and any feature matching algorithm is used to determine whether the input travel data matches the departure feature of the travel mode corresponding to any feature matching algorithm;
[0102] The comparison unit 501 is further used to: input the acquired travel data into the travel mode matching algorithm and the multiple feature matching algorithms respectively, so that the travel mode matching algorithm outputs the currently adopted target travel mode, and the multiple feature matching algorithms respectively output judgment results;
[0103] The network signal search operation is performed when the target feature matching algorithm corresponding to the target moving mode outputs a judgment result that the target is matched.
[0104] Optionally, the travel pattern matching algorithm and the multiple feature matching algorithms are registered in the mobile terminal in the form of sensors.
[0105] Optionally, the preset multiple travel modes include at least one of the following:
[0106] The mobile terminal moves along with the user on foot;
[0107] The mobile terminal travels along with the means of transportation taken by the user.
[0108] Optionally, the comparison unit 501 is further configured to:
[0109] Inputting the acquired travel data into a pre-trained feature matching model, so that the feature matching model outputs a judgment result for characterizing whether the travel data matches a preset target departure feature;
[0110] The feature matching model is trained based on sample travel data acquired when the mobile terminal leaves the target location.
[0111] Optionally, the travel data includes: posture data and / or motion data of the mobile terminal during travel.
[0112] Optionally, the travel data is acquired based on at least one of the following parameters: gyroscope parameters, accelerometer parameters, visual sensor parameters, and distance sensor parameters.
[0113] like Figure 6 As shown, Figure 6 is a block diagram of another network recovery device shown in an exemplary embodiment of the present disclosure. Figure 5 Based on the illustrated embodiment, the method further includes: a determining unit 503 .
[0114] Optionally, the mobile terminal records departure features corresponding to different preset locations;
[0115] The method further includes: a determining unit 503, after the mobile terminal is disconnected from the original network, determining a target location that causes the mobile terminal to be disconnected from the network from a plurality of preset locations of the mobile terminal;
[0116] The comparison unit 501 is further used to compare the acquired travel data with the target departure feature of the target location.
[0117] Optional,
[0118] The comparison unit 501 is further used to: after the mobile terminal is disconnected from the original network, compare the acquired travel data with the target entry feature of the target location;
[0119] The determination unit 503 is further configured to: when the acquired travel data matches the target entry feature, determine that the disconnection from the original network is caused by entering the target location.
[0120] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can refer to the partial description of the method embodiments. The device embodiments described above are only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the disclosed solution. A person of ordinary skill in the art can understand and implement it without paying any creative work.
[0121] Accordingly, the present disclosure also provides a network recovery device, comprising: a processor; a memory for storing processor executable instructions; wherein the processor is configured to implement a network recovery method as described in any of the above embodiments, for example, the method may include: when the mobile terminal enters a target place and is disconnected from the original network, comparing the acquired travel data with a target departure feature; the target departure feature is used to characterize the travel characteristics of the mobile terminal when it leaves the target place; when the travel data matches the target departure feature, performing a network signal search operation to restore the network based on the searched network signal.
[0122] Accordingly, the present disclosure also provides an electronic device, which includes a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors. The one or more programs include instructions for implementing a network recovery method as described in any of the above embodiments. For example, the method may include: when the mobile terminal enters a target place and is disconnected from the original network, comparing the acquired travel data with a target departure feature; the target departure feature is used to characterize the travel characteristics of the mobile terminal when it leaves the target place; when the travel data matches the target departure feature, performing a network signal search operation to restore the network based on the searched network signal.
[0123] Figure 7 700 is a block diagram of a device for implementing a network recovery method according to an exemplary embodiment. For example, the device 700 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0124] Reference Figure 7, the device 700 may include one or more of the following components: a processing component 702 , a memory 704 , a power component 706 , a multimedia component 708 , an audio component 710 , an input / output (I / O) interface 712 , a sensor component 714 , and a communication component 716 .
[0125] The processing component 702 generally controls the overall operation of the device 700, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 702 may include one or more processors 720 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 702 may include one or more modules to facilitate the interaction between the processing component 702 and other components. For example, the processing component 702 may include a multimedia module to facilitate the interaction between the multimedia component 708 and the processing component 702.
[0126] The memory 704 is configured to store various types of data to support operations on the device 700. Examples of such data include instructions for any application or method operating on the device 700, contact data, phone book data, messages, pictures, videos, etc. The memory 704 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.
[0127] The power supply component 706 provides power to the various components of the device 700. The power supply component 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 700.
[0128] The multimedia component 708 includes a screen that provides an output interface between the device 700 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 may 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 708 includes a front camera and / or a rear camera. When the device 700 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0129] The audio component 710 is configured to output and / or input audio signals. For example, the audio component 710 includes a microphone (MIC), and when the device 700 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 704 or sent via the communication component 716. In some embodiments, the audio component 710 also includes a speaker for outputting audio signals.
[0130] I / O interface 712 provides an interface between processing component 702 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.
[0131] The sensor assembly 714 includes one or more sensors for providing various aspects of status assessment for the device 700. For example, the sensor assembly 714 can detect the open / closed state of the device 700, the relative positioning of components, such as the display and keypad of the device 700, the sensor assembly 714 can also detect the position change of the device 700 or a component of the device 700, the presence or absence of user contact with the device 700, the orientation or acceleration / deceleration of the device 700, and the temperature change of the device 700. The sensor assembly 714 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 714 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 714 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0132] The communication component 716 is configured to facilitate wired or wireless communication between the device 700 and other devices. The device 700 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, 4G LTE, 5G NR (New Radio) or a combination thereof. In an exemplary embodiment, the communication component 716 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 716 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.
[0133] In an exemplary embodiment, the apparatus 700 may 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 methods.
[0134] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 704 including instructions, and the instructions can be executed by the processor 720 of the device 700 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.
[0135] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the disclosure 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.
[0136] 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.
[0137] The above description is only a preferred embodiment of the present disclosure and is not intended to limit the present disclosure. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present disclosure shall be included in the scope of protection of the present disclosure.
Claims
1. A network recovery method, characterized in that: Applied to mobile terminals, including: When the mobile terminal enters the target location and is disconnected from the original network, the acquired travel data is compared with the target departure feature; the target departure feature is used to characterize the travel feature of the mobile terminal when it leaves the target location; When the travel data matches the target departure feature, a network signal search operation is performed to restore the network based on the searched network signal.
2. The method according to claim 1, characterized in that The target departure feature is set based on at least one of the following dimensions: The travel route of the mobile terminal in the target location; The movement mode of the mobile terminal in the target location.
3. The method according to claim 1, characterized in that: The mobile terminal is preset with type features of multiple travel modes and departure features of the multiple travel modes; the step of comparing the acquired travel data with the target departure features includes: Comparing the acquired travel data with a plurality of preset type features to determine the target travel mode currently adopted by the mobile terminal; The travel data is compared with a target departure signature of the target travel pattern to determine whether the travel data matches the target departure signature.
4. The method according to claim 1, characterized in that: The mobile terminal is preset with departure features of multiple travel modes; the acquired travel data is compared with the target departure feature, including: Compare the acquired travel data with the departure characteristics of various travel modes respectively; When the travel data matches the departure feature of any travel mode, it is determined that the travel data matches the target departure feature.
5. The method according to claim 1, characterized in that The mobile terminal is equipped with a travel mode matching algorithm and a plurality of feature matching algorithms; the travel mode matching algorithm is used to determine the target travel mode of the mobile terminal in the target location; each feature matching algorithm corresponds to a preset travel mode, and any feature matching algorithm is used to determine whether the input travel data matches the departure feature of the travel mode corresponding to any feature matching algorithm; The step of comparing the acquired travel data with the target departure feature comprises: inputting the acquired travel data into the travel mode matching algorithm and the plurality of feature matching algorithms respectively, so that the travel mode matching algorithm outputs the target travel mode currently adopted, and the plurality of feature matching algorithms respectively output judgment results; The network signal search operation is performed when the target feature matching algorithm corresponding to the target moving mode outputs a judgment result that the target is matched.
6. The method according to claim 5, characterized in that The traveling pattern matching algorithm and the multiple feature matching algorithms are both registered in the mobile terminal in the form of sensors.
7. The method according to any one of claims 3 to 5, characterized in that: The preset travel mode includes at least one of the following: The mobile terminal moves along with the user on foot; The mobile terminal travels along with the means of transportation taken by the user.
8. The method according to claim 1, characterized in that The step of comparing the acquired travel data with the target departure feature includes: Inputting the acquired travel data into a pre-trained feature matching model, so that the feature matching model outputs a judgment result for characterizing whether the travel data matches a preset target departure feature; The feature matching model is trained based on sample travel data acquired when the mobile terminal leaves the target location.
9. The method according to claim 1, characterized in that: The mobile terminal records departure features corresponding to different preset locations; The method further comprises: after the mobile terminal is disconnected from the original network, determining a target location that causes the mobile terminal to be disconnected from the network from a plurality of preset locations of the mobile terminal; The comparing the acquired travel data with the target departure feature includes: comparing the acquired travel data with the target departure feature of the target location.
10. The method according to claim 1, characterized in that Also includes: After the mobile terminal is disconnected from the original network, comparing the acquired travel data with the target entry feature of the target location; When the acquired travel data matches the target entry feature, it is determined that the disconnection from the original network is caused by entering the target location.
11. The method according to claim 1, characterized in that: The travel data includes: posture data and / or motion data of the mobile terminal during travel.
12. The method according to claim 1, characterized in that The travel data is obtained based on at least one of the following parameters: a gyroscope parameter, an accelerometer parameter, a visual sensor parameter, and a distance sensor parameter.
13. A network recovery device, characterized in that: Applied to mobile terminals, including: a comparison unit, which compares the acquired travel data with the target departure feature when the mobile terminal enters the target location and is disconnected from the original network; the target departure feature is used to characterize the travel feature of the mobile terminal when it leaves the target location; The network return unit performs a network signal search operation when the travel data matches the target departure feature, so as to restore the network based on the searched network signal.
14. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor implements the method according to any one of claims 1 to 9 by running the executable instructions.
15. A computer-readable storage medium having computer instructions stored thereon, characterized in that: When the instruction is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.
