Network searching method and related device
By detecting terminal scene characteristics and adopting flexible network search mode adjustments, the terminal can quickly return to a high-standard network in a specified scenario, solving network problems after switching to a low-standard network or network outage, and improving user experience and data service success rate.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- HUAWEI TECH CO LTD
- Filing Date
- 2024-10-18
- Publication Date
- 2026-04-21
AI Technical Summary
When a terminal switches to a low-standard network or loses network access, it has difficulty quickly returning to a high-standard network, resulting in problems such as data service lag and poor call quality.
By detecting the scene characteristics of the terminal, different network search modes are adopted to adjust the network search time interval and frequency search strategy in different scenarios. This includes using a shorter network search time interval and historical frequency search in specified scenarios, and using a longer network search time interval and frequency band search in non-specified scenarios.
This enables terminals to quickly return to high-standard networks in specified scenarios, reducing power consumption and improving users' network experience and data service success rate.
Smart Images

Figure CN121908354A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communications, and more particularly to a network search method and related apparatus. Background Technology
[0002] As networks continue to upgrade, high-standard networks can provide faster and smoother network services to terminals compared to low-standard networks. However, the coverage or service range of high-standard networks is difficult to improve quickly, and in some scenarios, terminals will switch from high-standard networks to low-standard networks.
[0003] For example, when a terminal connected to a high-standard network is in a scenario with poor or no network signal coverage, it will typically switch to a low-standard network or lose network access. Terminals that switch to a low-standard network or lose network access often experience one or more problems, such as data service lag, poor call quality, or inability to answer calls. Therefore, how to quickly return the terminal to a high-standard network after switching to a low-standard network or losing network access is a pressing issue that needs to be addressed. Summary of the Invention
[0004] This application provides a network search method and related apparatus, which enables the terminal to quickly return to a high-standard network after switching to a low-standard network or disconnecting from the network.
[0005] Firstly, this application provides a network search method applied to a terminal, comprising: accessing a first network; if the terminal is detected to be in a first scene and disconnected from the first network, searching for the first network according to a first network search mode; if the terminal is detected to be not in the first scene and disconnected from the first network, searching for the first network according to a second network search mode, wherein the network search time interval in the second network search mode is greater than the network search time interval in the first network search mode. In this way, the area of the first scene is small, and the terminal stays in the first scene for a short time. When the terminal detects that it is in the first scene and disconnected from the first network, it can search for the first network with a smaller network search time interval, allowing the terminal to access the first network faster and consuming less power. When the terminal is not in the first scene, the terminal may search for the network for a longer period of time; searching for the first network with a larger network search time interval can save the terminal's power consumption. Furthermore, if the terminal searches for the network according to the second network search mode in the first scene, the probability that the terminal will be within the network search time interval when leaving the first scene is higher, causing the terminal to need to wait a longer time before re-searching for the network.
[0006] In one possible implementation, if the terminal is detected to be in a first scenario and disconnected from the first network, a first network search mode is performed to search for the first network. Specifically, this includes: detecting that the terminal is in the first scenario and has fallen from the first network to the second network, and then searching for the first network according to the first network search mode; wherein the network standard of the first network is higher than that of the second network. In this way, after the terminal falls from the first network to the second network in the first scenario, it can search for a network according to the first network search mode and return to the first network as soon as possible, reducing the time it takes for the terminal to access the second network.
[0007] In one possible implementation, searching for the first network according to the first network search mode specifically includes: searching for the first network according to the first network search mode when the terminal is in an idle state. This way, when the terminal drops from the first network to the second network in the first scenario, it can search for the first network according to the first network search mode, allowing the terminal to return to the first network more quickly. In some application scenarios, the terminal returns to the first network immediately after leaving the first scenario, providing users with a better network experience.
[0008] In one possible implementation, searching for the first network according to the first network search mode specifically includes: detecting a data service interruption when the terminal is performing data services through the second network; interrupting the data service; and searching for the first network according to the first network search mode. In this way, when the signal on the second network is strong, the terminal can continue to perform data services through the second network; when data service interruption occurs when performing data services through the second network, the data service is interrupted, and a higher-standard network is searched.
[0009] In one possible implementation, if the terminal is detected to be in a first scenario and disconnected from the first network, a first network search mode is performed to search for the first network. Specifically, this includes: detecting that the terminal is in a first scenario and has dropped from the first network to a third network; wherein the network standard of the first network is higher than that of the third network; detecting that the terminal is performing data services through the third network; interrupting the data service; and then searching for the first network according to the first network search mode. In this way, since the terminal often experiences lag when performing data services through the third network, interrupting the third network after the terminal drops from the first network and then searching for the first network according to the first network search mode ensures that the terminal's performance on the third network is poor regardless of whether the third network is interrupted. This also reduces the time the terminal spends on the laggy third network, allowing it to quickly return to the first network and provide the user with a smoother internet experience.
[0010] In one possible implementation, the terminal searches for the first network according to a first network search mode, specifically including: searching for the first network based on historical frequency points within a first time period, where historical frequency points include frequencies of the first network previously used by the terminal and frequencies of the first network preset by the terminal; and searching for the first network according to a second network search mode, specifically including: searching for the first network based on historical frequency points within a second time period; and if the first network is not found based on historical frequency points within the second time period, then searching for the first network using frequency bands. In this way, the terminal searches for the first network using only historical frequency points in the first network search mode. Since searching based on historical frequency points takes less time than searching based on frequency bands, it saves time for the terminal to return to the first network. Furthermore, if the terminal searches for the network using frequency bands in the first scenario, it may still be searching for the network using frequency bands when leaving the first scenario, resulting in a long search time and a poor user experience.
[0011] In one possible implementation, the terminal stores the correspondence between a first scenario and a first frequency point; searching for the first network according to a first network search mode specifically includes searching for the first network based on the first frequency point. Thus, since the terminal stores the correspondence between the first scenario and the first frequency point, before the terminal searches for the first network based on the first frequency point, one or more terminals in the first scenario have already successfully searched for the first network based on the first frequency point. Therefore, after determining the first frequency point corresponding to the first scenario, the probability of the terminal successfully searching for the first network based on the first frequency point is very high. Moreover, compared to searching for the network based on frequency bands or historical frequency points, the time spent by the terminal searching for the network based solely on the first frequency point is much less, allowing the terminal to return to the first network more quickly.
[0012] In one possible implementation, before searching for the first network based on the first frequency point, the server sends a mapping relationship between the first scenario and the first frequency point; after searching for the first network based on the first frequency point, the mapping relationship is sent back to the server. Thus, after successfully searching for the first network based on the first frequency point, the terminal sends the mapping relationship between the first scenario and the first frequency point to the server. The server can obtain the frequency point corresponding to the first scenario based on one or more terminals successfully searching for the frequency point used by the first network in the first scenario. The service area sends the first scenario and its corresponding frequency point to one or more terminals, enabling each terminal to search for the network based on the first frequency point in the first scenario, resulting in shorter search time and a higher success rate.
[0013] In one possible implementation, detecting that the terminal is in a first scenario specifically includes: acquiring acceleration information within a first time period; determining, based on the acceleration information within the first time period, that the terminal is in a walking state within the first time period; acquiring magnetic field strength information within a second time period; detecting the presence of magnetic field strength information greater than a preset magnetic field strength threshold within the second time period; acquiring acceleration information within a third time period; generating an acceleration curve based on the acceleration information within the third time period, and detecting that the acceleration curve includes a specified waveform, thus determining that the terminal is in the first scenario. In this way, when the terminal determines that it is in a walking state based on acceleration information, it tends to assume that the user carrying the terminal may be entering an elevator car. When the accuracy of the magnetic field strength information is low, but the terminal detects vertical acceleration based on the acceleration information, it tends to assume that the user carrying the terminal is on a moving elevator, and the terminal can thus determine that it is in an elevator scenario.
[0014] In one possible implementation, detecting that the terminal is in a first scenario specifically includes: acquiring acceleration information within a first duration; determining, based on the acceleration information within the first duration, that the terminal is in a walking state within the first duration; acquiring magnetic field strength information within a second duration; detecting that no magnetic field strength information greater than a preset magnetic field strength threshold exists within the second duration; generating a magnetic field strength variance curve based on the magnetic field strength information within the second duration; detecting that the magnetic field strength variance curve includes a first inflection point; determining that the terminal is in the first scenario; the variance value corresponding to the first inflection point is the maximum variance value in the magnetic field strength variance curve. Thus, when the terminal determines that it is in a walking state based on acceleration information, it tends to assume that the user carrying the terminal may be entering an elevator car. When the first inflection point exists based on the magnetic field strength information, the terminal tends to assume that it has entered the elevator, and the terminal can thus determine that it is in an elevator scenario.
[0015] In one possible implementation, determining that the terminal is in a first scenario specifically includes: acquiring acceleration information within a third time period; generating an acceleration curve based on the acceleration information within the third time period; detecting that the acceleration curve includes a specified waveform; and determining that the terminal is in the first scenario. Thus, when the terminal detects vertical acceleration based on the acceleration information, it tends to assume that the user carrying the terminal is in a moving elevator, and the terminal can thus determine that it is in an elevator scenario.
[0016] In one possible implementation, before determining that the terminal is in a walking state within the first time period based on the acceleration information within the first time period, the method further includes: acquiring acceleration information within a fourth time period; and determining, based on the acceleration information within the fourth time period, that the terminal is neither in a cycling state nor in a vehicle-riding state within the fourth time period. In this way, when the terminal detects that it is in a cycling or vehicle-riding state, it tends to assume that the user carrying the terminal will not take the elevator; when it detects that it is neither in a cycling nor vehicle-riding state, the probability that the user carrying the terminal is taking the elevator is higher. The terminal can then further detect whether it is in an elevator scene based on acceleration information and / or magnetic field strength information, thereby improving the accuracy of elevator scene identification.
[0017] In one possible implementation, before determining that the terminal is in a walking state within the first time period based on the acceleration information within the first time period, the method further includes: acquiring speed information within a fourth time period; and determining, based on the speed information within the fourth time period, that the terminal is neither in a cycling state nor a riding state within the fourth time period. In this way, when the terminal detects whether it is in a cycling or riding state based on acceleration information, it needs to continuously detect the acceleration during both acceleration and deceleration processes to determine whether the terminal is in a cycling or riding state. This detection time span is long and not intuitive. Detecting whether the terminal is in a cycling or riding state based on speed information, which is based on the terminal's horizontal speed, allows for a more intuitive detection of whether the terminal is in a cycling or riding state.
[0018] In one possible implementation, searching for the first network according to the first network search mode specifically includes: detecting that the terminal has left the first scene, and then searching for the first network according to the first network search mode. In this way, since the first network signal is weak or nonexistent in the first scene, after detecting that the terminal has entered the first scene and disconnected from the first network, the terminal can continuously monitor whether it has left the first scene. This allows it to immediately begin searching for the network when it detects that it has left the first scene and entered a scene with a better first network signal. This improves the success rate of the terminal's network search and allows the terminal to return to the first network more quickly.
[0019] In one possible implementation, the first scenario is an elevator scenario. The first network search is performed according to a first network search mode, specifically including: detecting that the elevator has stopped based on acceleration information, and then searching the first network according to the first network search mode. In this way, when the elevator stops, the terminal is more likely to have left the first scenario, and the network search begins at this time. The probability of connecting to the first network when the elevator doors open is also high, enabling users carrying the terminal to immediately reconnect to the network upon exiting the elevator, thus improving the user's network experience.
[0020] In one possible implementation, the first scenario is an elevator scenario; searching the first network according to the first search network mode specifically includes: detecting elevator door opening based on signal strength information, and then searching the first network according to the first search network mode. Thus, in the first scenario, the terminal detects signal strength information in real time. When the signal strength indicated by the signal strength information is higher than a preset signal strength threshold, it determines that the elevator door is open, indicating a high probability that the terminal is leaving the first scenario, and then searches the first network according to the first search network mode.
[0021] In one possible implementation, the first scenario is an elevator scenario. The first network is searched according to a first network search mode, specifically including: based on acceleration information, detecting that the terminal is in a walking state, and then searching the first network according to the first network search mode. In this way, when the terminal detects that it is in a walking state based on acceleration information in the elevator scenario, it tends to assume that the user carrying the terminal is walking away from the elevator scenario, resulting in a higher success rate for the terminal's network search.
[0022] In one possible implementation, the method further includes: enhancing the terminal's antenna radio frequency capabilities when a data service interruption is detected during data service execution via the first network. In this way, enhancing the terminal's antenna radio frequency capabilities when a data service interruption occurs during data service execution via the first network can improve the success rate of data transmission and reception, and mitigate the severity of data service interruptions.
[0023] In one possible implementation, the terminal stores a first path; the method further includes: receiving first data sent by a server, the first data including the identifiers, ranges, and corresponding service conditions of multiple cells, with the service conditions of the cells categorized as smooth or laggy; based on the first data, determining the service conditions of multiple cells along the first path; and caching service data when the distance between the terminal and a cell with laggy service is detected along the first path is less than a preset distance. In this way, the terminal can detect in advance that it is about to enter a cell with data service lag, cache service data in advance, shorten the time the user perceives the data service lag, and provide the user with a better data service experience.
[0024] In one possible implementation, the terminal includes a first user identification module (SIM card) and a second SIM card; the terminal stores a first path; the method further includes: receiving first data sent by a server, the first data including the correspondence between the identifiers, ranges, and service conditions of multiple cells supported by the first SIM card and the correspondence between the identifiers, ranges, and service conditions of multiple cells supported by the second SIM card, wherein the service conditions of the cells are divided into smooth and laggy; based on the first data, determining the service conditions of the first SIM card and the second SIM card in multiple areas along the first path; when performing data services based on the first SIM card, if it is detected that the service condition of the first SIM card is laggy and the service condition of the second SIM card is smooth in the first area, performing data services based on the second SIM card; when performing data services based on the first SIM card, if it is detected that the service condition of the first SIM card is laggy and the service condition of the second SIM card is laggy in the first area, performing data services concurrently based on the first SIM card and the second SIM card. In this way, the terminal can obtain the service conditions of different SIM cards in the cells that may be accessed next, and avoid data service lag as much as possible through SIM card switching and SIM card concurrency.
[0025] In one possible implementation, the method further includes: when performing data services based on the second SIM card in the first area, sending the identifier of the cell accessed by the second SIM card and the duration of data service lag to the server. The cell identifier and the duration of data service lag are used by the server to generate first data. In this way, the terminal can send the cell identifier accessed via the second SIM card and the duration of data service lag to the server, allowing the server to update the service status of the cell accordingly. This updated service status is then provided to terminals accessing the cell subsequently, enabling these terminals to perform corresponding operations when accessing the cell and avoiding data service lag.
[0026] In one possible implementation, the first network includes one or more of 4G, 5G, and 6G networks; the second network includes 2G and / or 3G networks. Thus, compared to 2G and / or 3G networks, one or more of 4G, 5G, and 6G networks can provide a smoother data service experience, allowing the terminal to search for networks in the first scenario according to the first network search mode and quickly return to the 4G, 5G, or 6G network.
[0027] In one possible implementation, the first network includes one or more of 4G, 5G, and 6G networks; the second network includes a 3G network. Thus, after the terminal accesses the 3G network, in some application scenarios, the 3G network can support the terminal to perform data services. The terminal can interrupt the 3G network and search for the first network after detecting a data service interruption.
[0028] In one possible implementation, the first network includes one or more of 4G, 5G, and 6G networks; the third network includes a 2G network. In this way, when a terminal performs data services through the 2G network, it typically experiences lag. Interrupting the data service in this situation will not be perceived by the user. The terminal can then use its limited antenna resources to search for the first network, providing a better data service experience after returning to the first network. Compared to the terminal continuing to perform data services through the 2G network, interrupting the 2G network's data service can shorten the time the user perceives the data service lag.
[0029] In a second aspect, this application provides a terminal, comprising: one or more processors, one or more memories, and a transceiver; the transceiver, the one or more memories, are coupled to the one or more processors, the one or more memories being used to store a computer program, and when the one or more processors are executing the computer program, executing the network search method in any of the possible implementations of the first aspect above.
[0030] Thirdly, this application provides a computer-readable storage medium for storing a computer program that, when executed by a processor, implements the network search method in any of the possible implementations of the first aspect above.
[0031] Fourthly, this application provides a chip system including a processing circuit and an interface circuit. The interface circuit is used to receive code instructions and transmit them to the processing circuit. The processing circuit is used to execute the code instructions to perform the network search method in any possible implementation of the first aspect above.
[0032] Fifthly, this application provides a computer program product, including a computer program that, when executed by a processor, implements the network search method in any of the possible implementations of the first aspect above. Attached Figure Description
[0033] Figure 1 A schematic diagram of a network search mode 1 provided in an embodiment of this application;
[0034] Figure 2 A flowchart illustrating a network searching method provided in an embodiment of this application;
[0035] Figure 3 A schematic diagram of a network search mode 2 provided in an embodiment of this application;
[0036] Figure 4 A flowchart illustrating an elevator scene identification process provided in this application embodiment;
[0037] Figure 5A A schematic diagram of an elevator scenario provided in an embodiment of this application;
[0038] Figure 5B A waveform diagram provided for an embodiment of this application;
[0039] Figure 6 A flowchart illustrating another network searching method provided in an embodiment of this application;
[0040] Figure 7 A flowchart illustrating another network searching method provided in an embodiment of this application;
[0041] Figure 8 A schematic diagram of a network search mode 4 provided in an embodiment of this application;
[0042] Figure 9 A schematic diagram illustrating a process for handling data service lag, provided as an embodiment of this application;
[0043] Figure 10A A schematic diagram of a conventional path provided for an embodiment of this application;
[0044] Figure 10B This is a schematic diagram of another conventional path provided for an embodiment of this application;
[0045] Figure 11 A flowchart is provided for an embodiment of this application;
[0046] Figure 12 A schematic diagram of the hardware structure of a terminal 100 provided in an embodiment of this application;
[0047] Figure 13 This is a schematic diagram of the structure of a communication device provided in an embodiment of this application;
[0048] Figure 14 This is a schematic diagram of another communication device provided in an embodiment of this application. Detailed Implementation
[0049] The technical solutions in the embodiments of this application will be clearly and thoroughly described below with reference to the accompanying drawings. In the description of the embodiments of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B; the word "and / or" in the text is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, in the description of the embodiments of this application, "multiple" refers to two or more than two.
[0050] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature, and in the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more.
[0051] In this embodiment, the network standard of the high-standard network is higher than that of the low-standard network. For example, the high-standard network may include, but is not limited to, one or more of 4G, 5G, and 6G networks. The low-standard network may include 2G and / or 3G networks. It should be noted that the examples of high-standard and low-standard networks here are only for better understanding of the concepts of high-standard and low-standard networks and should not constitute a specific limitation on high-standard and low-standard networks.
[0052] In this embodiment, historical frequency points may include, but are not limited to, frequency points of X (e.g., 15, 20) high-standard networks recently accessed by terminal 100, some frequency points provided by the public land mobile network (PLMN) selected by terminal 100, and Y frequency points of high-standard networks pre-installed in the subscriber identification module (SIM) card, etc., where X and Y are positive integers. When terminal 100 searches for networks based on frequency bands, the searched frequency bands may be some or all of the frequency bands of terminal 100, wherein the bandwidth of the frequency band searched by terminal 100 each time may be a preset bandwidth (e.g., 20MHz, 40MHz, etc.).
[0053] In one possible implementation, terminal 100 accesses a high-standard network. Terminal 100 can switch to a low-standard network after entering a scenario where the high-standard network signal is poor. Terminal 100 can disconnect from the high-standard network after entering a scenario with no network signal coverage. After accessing a low-standard network or disconnecting from the network, terminal 100 can search for a high-standard network according to network search mode 1. During the process of terminal 100 searching for a high-standard network according to network search mode 1, terminal 100 first searches for a high-standard network based on historical frequency points. After the number of failed network searches based on historical frequency points reaches a preset number of failures, terminal 100 can search for a network based on frequency bands. After each failed network search, terminal 100 can re-search for a network after a preset time interval of 1 until terminal 100 successfully accesses the high-standard network; that is, the time interval for terminal 100 to search for a network is a preset time interval of 1. Alternatively, when terminal 100 searches for high-standard networks using network search mode 1, it can search for networks based on historical frequency points within the first time period, and then search for networks based on frequency bands after the first time period, with the search interval being a preset duration of 1. In this way, terminal 100 typically searches for dozens of frequency points when searching based on historical frequency points, and thousands of frequency points when searching based on frequency bands. Each search based on historical frequency points takes several seconds, and each search based on frequency bands takes tens of seconds. When terminal 100 moves out of the designated scene, the search interval is likely to be long, requiring terminal 100 to wait even longer to re-search for networks. Furthermore, terminal 100 may be searching based on frequency bands, resulting in a long search time and a poor user experience.
[0054] For example, such as Figure 1 As shown, when performing a network search operation, terminal 100 first searches for the network based on historical frequency points. After the number of failed attempts to search for the network based on historical frequency points reaches a preset number (e.g., 3 times), terminal 100 can then search for the network based on frequency bands. The duration of the network search based on historical frequency points by terminal 100 is t. 11 (For example, 2s-10s), the duration of terminal 100's network search based on the frequency band is t. 12 (For example, 10s-60s). Specifically, after terminal 100 fails to search the network, every preset time interval 1t... 15 (For example, 15s, 20s), the network search operation is re-executed. In this way, after multiple failed network searches based on historical frequency points, terminal 100 tends to believe that it cannot successfully search for a network using historical frequency points in the specified scenario, and terminal 100 performs a frequency band network search.
[0055] In this embodiment, a terminal 100 accessing a low-standard network can access a high-standard network by executing a background network search process. A terminal 100 disconnected from the network can access a high-standard network by executing a foreground network search process. In both the foreground and background network search processes, the terminal 100 performs operations such as PLMN search, frequency scanning, cell search, system message reading, cell selection, cell camping, random access, and attachment.
[0056] It should be noted that during the background network search process, since terminal 100 is currently camped on a cell, it may need to perform data services. To avoid affecting normal service transmission and reception, any uplink or downlink data will interrupt the background network search process. Terminal 100 only performs the background network search without affecting service. For example, based on the connection status between terminal 100 and the cellular network, terminal 100's state can be divided into idle state and connected state. When terminal 100, connected to a lower-standard network, is in the idle state, it can switch to a higher-standard network through background network search. When terminal 100, connected to a lower-standard network, is in the connected state, it typically performs data services and cannot perform network search operations.
[0057] In other examples, terminal 100 can search for the network during the connection state, between sending or receiving data. This allows terminal 100 to search for the network quickly and successfully while not sending or receiving service data, ensuring that data services are not affected.
[0058] This application provides a network search method. Terminal 100 can acquire scene feature information. After determining that it is in a specified scene based on the scene feature information, terminal 100 checks whether it has accessed a high-standard network. If terminal 100 determines that it has not accessed a high-standard network, it can search for a network using search mode 2 to access the high-standard network. When searching for a network using search mode 2, the search time interval is a preset duration of 2, and the frequency used for the search is a historical frequency. If the network search fails, terminal 100 can re-search after the preset duration of 2 until it successfully accesses the high-standard network. In this way, terminal 100 can start searching for a network after detecting that it is in a specified scene. When terminal 100 moves out of the specified scene, it only searches for a network using historical frequencies, allowing it to return to the high-standard network more quickly.
[0059] In the embodiments of this application, the specified scenario may include scenarios with poor cellular network signal and scenarios without cellular network signal coverage, such as elevator scenarios, tunnel scenarios, underground parking lot scenarios, etc.
[0060] In some examples, the preset duration 2 is less than the preset duration 1. When terminal 100 is not in a specified scenario, it can perform the network search process according to the preset duration 1. For details, please refer to [link to relevant documentation]. Figure 1 The illustrated embodiment demonstrates that, since the area of the designated scene is small, the user may leave the designated scene in a short period of time. The terminal 100 can search for networks within the designated scene at a higher frequency with minimal power consumption. Furthermore, because the terminal 100 shortens the interval between each network search operation, the terminal 100 can return to the higher standard network more quickly.
[0061] The following is a flowchart illustrating the network search method provided in the embodiments of this application.
[0062] For example, such as Figure 2 As shown, this web search method includes the following steps:
[0063] S201. Terminal 100 acquires scene feature information.
[0064] In some examples, scene feature information may include, but is not limited to, acceleration information and magnetic field strength information. Acceleration information can be used to represent the acceleration of the user carrying terminal 100. Terminal 100 can acquire acceleration information via an accelerometer, and based on this information, it can determine the user's motion state, such as walking, riding a vehicle, cycling, or stopping. Magnetic field strength information can be used to represent the magnetic field strength near terminal 100. Terminal 100 can acquire magnetic field strength information via a magnetometer, and based on this information, it can determine whether the user carrying terminal 100 is in a scene with a large amount of metal material (e.g., an elevator). Thus, based on both acceleration and magnetic field strength information, terminal 100 can determine whether the user has entered an elevator.
[0065] In some examples, scene feature information may include, but is not limited to, location information. Location information can be used to represent the location of the user carrying terminal 100. For example, terminal 100 can obtain its location information through a global positioning system (GPS). Based on the location information, terminal 100 can determine the scene in which the user is located (e.g., a parking lot, a tunnel, etc.). For example, terminal 100 can obtain its latitude and longitude using GPS. Terminal 100 can determine the scene to which its latitude and longitude belong by mapping the latitude and longitude information to the scene. Thus, based on the location information, terminal 100 can determine whether the user has entered a specified scene such as a tunnel.
[0066] In some examples, scene feature information may include, but is not limited to, satellite signal strength information, which represents the signal strength of a satellite navigation system (e.g., BeiDou Navigation Satellite System, GPS, etc.). When the terminal 100 detects that the satellite signal strength is less than a preset signal strength, it can determine that the terminal 100 is in a scene with weak satellite navigation system signals, such as a tunnel or underground parking garage. Thus, the terminal 100 can determine whether a user has entered a tunnel or similar scene based on the satellite signal strength information.
[0067] Optionally, scene feature information may also include light intensity information. Terminal 100 can acquire light intensity information through an ambient light sensor, etc. When terminal 100 determines that the light intensity is less than a preset light intensity, it can determine that terminal 100 is in a scene with low ambient brightness, such as an underground parking garage or a tunnel. In this way, terminal 100 can determine whether a user has entered a tunnel or similar scene based on the light intensity information.
[0068] Optionally, terminal 100 may combine one or more of the above-mentioned judgment methods to jointly determine whether terminal 100 is in a specified scenario. It should be noted that, not limited to multiple judgment methods, terminal 100 may also determine whether terminal 100 is in a specified scenario through other means, and this embodiment of the application does not limit this.
[0069] It should be noted that terminal 100 can acquire scene feature information every preset collection interval (e.g., 10 milliseconds) and detect whether terminal 100 is in a specified scene based on the scene feature information. After detecting that terminal 100 is in a specified scene, terminal 100 can search for a high-standard network according to network search mode 2 when disconnected from the high-standard network. It can be understood that when terminal 100 detects that it is not in a specified scene, it can reacquire scene feature information after the preset collection interval and detect whether it is in the specified scene based on the scene feature information, and so on. In this way, terminal 100 can detect whether it is in a specified scene in real time, which facilitates the terminal 100's return to the high-standard network as quickly as possible when it is in a specified scene and drops from a high-standard network to a low-standard network, or when the network is disconnected.
[0070] S202. Terminal 100 detects whether it is in a specified scene based on scene feature information.
[0071] After acquiring scene feature information, terminal 100 can detect whether it is in a specified scene based on the scene feature information. When terminal 100 detects that it is in a specified scene, it can execute step S203. For example, the scene feature information includes acceleration information and magnetic field strength information. Terminal 100 can detect whether it is in an elevator based on the acceleration information and magnetic field strength information. For details, please refer to... Figure 4The illustrated embodiment. For example, scene feature information includes location information. Terminal 100 can detect whether it is in an underground parking lot, tunnel, etc., based on the location information.
[0072] If the terminal 100 detects that it is not in the specified scene, it can re-execute step S201 after a preset collection time. In this way, the terminal 100 can check whether it is in the specified scene at regular intervals, thereby improving the accuracy of detecting whether the terminal 100 is in the specified scene.
[0073] In some examples, the area of the specified scene is less than or equal to a preset area (e.g., 6000 square meters). This increases the number of times terminal 100 searches for higher-standard networks per unit time. Although the power consumption of terminal 100 is higher than that of searching using network search mode 1, the power consumption of terminal 100 has a smaller impact on its usage time because users are likely to leave the specified scene in a very short time. Terminal 100 can return to the higher-standard network more quickly, providing users with better network services.
[0074] S203. Terminal 100 detects that Terminal 100 has disconnected from the high-standard network and searches for a high-standard network according to network search mode 2.
[0075] After determining that it is in a specified scenario, terminal 100 can detect whether it has disconnected from the high-standard network. When it determines that it has disconnected from the high-standard network—that is, when it determines that it has switched from a high-standard network to a low-standard network or has lost network access—terminal 100 can search for a high-standard network using network search mode 2. In this way, terminal 100 can still access the high-standard network after being in the specified scenario without needing to search for a network.
[0076] Understandably, when terminal 100 disconnects from a high-standard network and connects to a low-standard network, terminal 100 can perform a background network search in network search mode 2 to avoid interrupting its data services. When terminal 100 disconnects from a high-standard network and is not connected to any other network, terminal 100 can perform a foreground network search in network search mode 2.
[0077] When it is determined that the terminal 100 has not disconnected from the high-standard network, the terminal 100 can re-execute step S201 after a preset collection time. In this way, the terminal 100 can detect in real time whether it is in the specified scene and whether it has disconnected from the high-standard network, so that when the terminal 100 disconnects from the high-standard network in the specified scene, it can search for the high-standard network according to network search mode 2 and return to the high-standard network as soon as possible.
[0078] In some examples, when terminal 100 detects that it is in a specified scenario, it can search for a high-standard network according to network search mode 2. In this way, terminal 100 can start searching for a network according to network search mode 2 when it is already in the specified scenario, and can start searching for a network before it disconnects from the high-standard network. When the terminal disconnects from the high-standard network, it may have already found an available frequency point, reducing the time it takes for terminal 100 to return to the high-standard network.
[0079] In some examples, when terminal 100 detects that it is in a specified scenario and is accessing a 4G network, it can search for and access a 5G / 6G network using network search mode 2. When terminal 100 is not in a specified scenario and is still detecting that it is accessing a 4G network, it can search for and access a 5G / 6G network using network search mode 1. This allows terminal 100 to provide its users with a better internet browsing experience.
[0080] Understandably, after terminal 100 starts searching for high-standard networks according to network search mode 2, terminal 100 will continue to search for high-standard networks according to network search mode 2 until terminal 100 connects to a high-standard network.
[0081] For example, such as Figure 3 As shown, the duration of one network search operation performed by terminal 100 based on historical frequency points is t. 11 The preset duration 2 can be t 16 After terminal 100 fails to search for a network based on historical frequency points, it can... 16 Then, a network search was conducted again based on historical frequency points. Among them, t 16 Less than Figure 1 The t shown 15 Therefore, the reason why terminal 100 fails to search for a network based on historical frequencies in a specified scenario is likely due to poor cellular network signal or lack of cellular network coverage in the specified scenario. After leaving the specified scenario, terminal 100 has a higher probability of successfully searching for a network based on historical frequencies, and the time spent searching based on historical frequencies is less than the time spent searching based on frequency bands. Therefore, terminal 100 can reduce the time spent searching for a network by only searching based on historical frequencies. Furthermore, after a failed network search, terminal 100 quickly executes the next network search operation, increasing the probability of restarting the network search operation as soon as the user leaves the specified scenario, shortening the time it takes for terminal 100 to return to a higher standard network, and improving the user's network service experience.
[0082] In other examples, when terminal 100 starts searching for a network in search mode 2, if terminal 100 fails to connect to a high-standard network, terminal 100 can continue searching in search mode 2 for a preset search duration (e.g., 480 seconds). If terminal 100 fails to connect to a high-standard network after the preset search duration, a countdown can be set, during which the network search can be paused. Terminal 100 can then resume searching in search mode 2 after the countdown ends. In this way, terminal 100 remains in the specified scenario for the preset search duration, tending to assume that the user will continue to remain in the specified scenario. To conserve power during network searching, terminal 100 can pause the network search operation and then resume it after the countdown ends.
[0083] In other examples, when terminal 100 starts searching for a network according to network search mode 2, if terminal 100 fails to connect to a high-standard network, terminal 100 can continue searching for a network according to network search mode 2 for a preset search duration (e.g., 15 minutes, 20 minutes, or 25 minutes). If terminal 100 fails to connect to a high-standard network after the preset search duration, it can search for a network according to network search mode 1 or network search mode 3. In network search mode 3, terminal 100 searches for a network based on frequency bands, and the search time interval is preset duration 1 or preset duration 2. In this way, if terminal 100 fails to connect to a network for a long time according to network search mode 2, it can be assumed that the historical frequency point is unavailable, and it can try to search for a network based on frequency bands, thereby increasing the probability of terminal 100 successfully connecting to a high-standard network.
[0084] In other examples, when terminal 100 starts searching for a network according to network search mode 2, if terminal 100 fails to connect to a high-standard network, terminal 100 detects that it is not in the designated scenario. Terminal 100 can then search for a network according to network search mode 1. Thus, after leaving the designated scenario, because the network signal in the non-designated scenario is better, terminal 100 can reduce the frequency of network searching and search for a network according to network search mode 1. Optionally, when terminal 100 fails to connect to a high-standard network, if terminal 100 detects that it is not in the designated scenario, terminal 100 can then search for a network according to network search mode 3.
[0085] S204. Terminal 100 accesses a high-standard network.
[0086] After successfully accessing a high-standard network based on historical frequency points, terminal 100 can stop searching for networks. Terminal 100 can also execute step S201 again after a preset data collection period. In this way, after accessing a high-standard network, terminal 100 can detect whether it has left the designated scene. Since the probability of terminal 100 switching from a high-standard network to a low-standard network or losing network connection is relatively high when in the designated scene, terminal 100 can ensure that it can return to the high-standard network more quickly by executing the network search method provided in this application embodiment. Specifically, the operation of terminal 100 searching for networks based on historical frequency points can be found in the above embodiments and will not be repeated here.
[0087] S205. Terminal 100 detects that Terminal 100 has disconnected from the high-standard network, and searches for the high-standard network according to network search mode 1. The time interval for searching the network in network search mode 1 is greater than the time interval for searching the network in network search mode 2.
[0088] After determining that it is not in a specified scenario, terminal 100 can detect whether it has disconnected from the high-standard network. When it detects that it has disconnected from the high-standard network—that is, when it determines that it has switched from a high-standard network to a low-standard network or has lost network access—terminal 100 can search for a high-standard network according to network search mode 1. This increases the success rate of network search when not in the specified scenario, and by using network search mode 1, it saves power consumption during network search.
[0089] S206. Terminal 100 accesses a high-standard network.
[0090] After successfully accessing a high-standard network based on historical frequency points, the terminal 100 can stop searching for networks. The terminal 100 can also repeat step S201 after a preset data collection period.
[0091] After successfully accessing a high-standard network by searching for networks based on historical frequency points, terminal 100 can execute step S201 again after a preset collection time.
[0092] In some examples, terminal 100 can execute the network search method provided in this application embodiment after enabling cellular communication. In this way, when cellular communication is disabled, users tend not to use network services, and terminal 100 does not perform network search operation, thus saving power consumption of terminal 100.
[0093] In other examples, when terminal 100 is not in the specified scenario, terminal 100 can also search for a network in network search mode 2 and access a high-standard network after disconnecting from the network or switching to a low-standard network.
[0094] In other examples, terminal 100 can determine whether to execute the network search method provided in this application embodiment based on its location. When terminal 100 determines that it is within a service area, it can reconnect to the high-standard network using the network search method provided in this application embodiment. When terminal 100 determines that it is not within a service area, it can re-detect whether it is within a service area every preset positioning time (e.g., 20 minutes). The service area can include regions where mobile service operators provide network services. Thus, when terminal 100 is in areas such as deserts, oceans, grasslands, or forests, it tends to assume that it cannot return to a service area in a short time and does not perform a network search operation, saving terminal 100 power consumption.
[0095] In some examples, terminal 100 can activate the battery when its battery level is greater than or equal to a preset battery threshold 21 (e.g., 20%). Figure 3 The network search method shown is used for network search. Terminal 100 can search the network when its battery level is below a preset battery threshold 21. Figure 1 The network search method shown is used for network searching. Thus, when the terminal 100 has sufficient battery power, it can quickly return to a higher-standard network using the network search method provided in this application embodiment, improving the user experience. When the terminal 100 has insufficient battery power, the frequency of network search can be reduced to ensure the terminal 100's battery life and help users reduce the consumption of the terminal 100's battery power.
[0096] In some examples, terminal 100 can set the value of the preset duration 2 to value A when the remaining battery power is greater than the preset battery power threshold 22. Terminal 100 can also set the value of the preset duration 2 to value B when the remaining battery power is less than the preset battery power threshold 22. Value A is less than value B. In this way, terminal 100 can shorten the time interval between two network search operations when the battery is fully charged, quickly returning to a higher-standard network and improving the user experience.
[0097] In other examples, after detecting that it is in a designated scene and has disconnected from the high-standard network, terminal 100 can acquire scene feature information. Based on this scene feature information, when it detects that it has left the designated scene, terminal 100 can search for a network in search mode 2 until it successfully reconnects to the high-standard network. For example, when the designated scene is a tunnel scene, after detecting that it has entered the tunnel scene, terminal 100 can use data acquired by its inertial measurement unit to estimate the time when it leaves the tunnel scene using a dead reckoning algorithm. At the estimated time, it can then search for a network in search mode 2. As another example, terminal 100 can determine when it has left the tunnel scene using acquired location information and then search for a network in search mode 2, and so on. In this way, if the signal quality of the high-standard network is poor in the designated scene, after the terminal 100 detects that the terminal 100 has entered the designated scene and disconnected from the first network, it can detect in real time whether the terminal 100 has left the designated scene. When the terminal 100 leaves the designated scene and enters a scene with better high-standard network signal, it can immediately start searching for the network according to the network search mode 2. This can not only improve the success rate of the terminal 100's network search, but also allow the terminal 100 to return to the high-standard network more quickly.
[0098] Optionally, based on scene feature information, when the terminal 100 detects that it has left the designated scene after a preset departure time, it can search for a network in search mode 2 until the terminal 100 successfully accesses the high-standard network. In this way, the terminal 100 can start searching for a network just before leaving the designated scene, achieving the effect of immediately returning to the high-standard network after leaving the designated scene.
[0099] In one possible implementation, the specified scenario includes an elevator scenario, and the scenario feature information includes acceleration information and magnetic field strength information. Terminal 100 can obtain acceleration information via an accelerometer. Terminal 100 can obtain magnetic field strength information via a magnetometer. Terminal 100 can detect whether it has entered the elevator based on the scenario feature information. After detecting that it has entered the elevator based on the scenario feature information, Terminal 100 can search for a network using search mode 2 and access a high-standard network. In this way, when a user steps into the elevator, Terminal 100 can quickly detect its entry using the accelerometer and magnetometer, allowing it to execute the network search process more quickly. Because Terminal 100 can quickly begin the network search operation after experiencing a network outage or switching to a low-standard network upon entering the elevator, it can access a high-standard network as quickly as possible based on the scanned frequency when exiting the elevator.
[0100] In some examples, terminal 100 can determine that it is in an elevator scenario when both acceleration information and magnetic field strength information meet a preset trend of change. For example, the preset acceleration trend could be that acceleration information collected within duration 1 indicates that the user carrying terminal 100 is walking (i.e., terminal 100 is in a walking state), and acceleration information collected within duration 2 indicates that the elevator has started running, with duration 2 following duration 1. The preset magnetic field strength trend could be that magnetic field strength information collected within duration 3 indicates that terminal 100 has entered the elevator, with duration 1 including part or all of duration 3. In this way, terminal 100 can determine that it is in an elevator scenario by detecting the user walking into the elevator through acceleration information, detecting the user passing through the elevator door through magnetic field strength information, and detecting the elevator starting to run through acceleration information.
[0101] Optionally, the preset acceleration change trend can also include acceleration information collected within duration 4 indicating that the user carrying terminal 100 is not riding a vehicle or bicycle (i.e., terminal 100 is neither riding nor riding a vehicle), duration 4 is before duration 1, or duration 4 is within duration 1. In this way, terminal 100 can detect first when the user is not riding a vehicle or bicycle and tend to assume that the user cannot take the elevator, thus more accurately identifying elevator scenarios.
[0102] It should be noted that the preset acceleration change trend is not limited to the scenario where acceleration information collected within duration 1 indicates that the user carrying terminal 100 is walking, and acceleration information collected within duration 2 indicates that the elevator has started operating. The preset acceleration change trend can also be that acceleration information collected within duration 1 indicates that the user carrying terminal 100 is walking. In this way, terminal 100 can determine that it has entered an elevator scene as soon as the user steps into the elevator door, thus identifying the elevator scene more quickly. Alternatively, the preset acceleration change trend can also be that acceleration information collected within duration 2 indicates that the elevator has started operating. In this way, terminal 100 can determine that it is in an elevator scene when the elevator starts operating, which can improve the accuracy of terminal 100 in identifying elevator scenes.
[0103] For example, such as Figure 4 As shown, the process by which terminal 100 detects whether it has entered the elevator includes the following steps:
[0104] S401. Terminal 100 acquires scene feature information, which includes acceleration information and magnetic field strength information.
[0105] Terminal 100 can acquire acceleration information through sensors such as accelerometers. Terminal 100 can acquire magnetic field strength information through sensors such as magnetometers. The acceleration information can represent the acceleration of terminal 100. The magnetic field strength information can represent the magnetic field strength near terminal 100.
[0106] S402. Terminal 100 determines whether the user is riding a bicycle or taking a vehicle based on acceleration information.
[0107] Terminal 100 can detect whether a user carrying terminal 100 is cycling or riding a vehicle based on acceleration information (also known as detecting whether terminal 100 is in a cycling or riding state). For example, terminal 100 can determine whether the user is cycling or riding a vehicle when the acceleration indicated by the acceleration information exceeds a preset acceleration threshold. Terminal 100 can determine that the user is not in a specified scenario, and terminal 100 can execute step S401 after a preset collection time. Terminal 100 can determine that the user is neither cycling nor riding a vehicle when the acceleration indicated by the acceleration information does not exceed the preset acceleration threshold, and terminal 100 can execute step S403. In this way, users usually cannot take elevators while cycling or riding a vehicle. Therefore, by using the user's current acceleration, it is possible to determine whether the user is cycling or riding a vehicle, and to more quickly determine whether the user is likely to take an elevator.
[0108] Optionally, the terminal 100 can obtain its horizontal acceleration based on acceleration information, and determine whether the user is riding a bicycle or a vehicle when the horizontal acceleration exceeds a preset acceleration threshold. Alternatively, the terminal 100 can determine that the user is neither riding a bicycle nor a vehicle when the horizontal acceleration does not exceed the preset acceleration threshold. In this way, the terminal 100 can more accurately identify riding and vehicle status based on its horizontal acceleration.
[0109] In other examples, terminal 100 can acquire speed information. Based on this speed information, terminal 100 can detect whether it is in a cycling or riding state. Specifically, if the acquired speed information indicates that the horizontal speed of terminal 100 is greater than or equal to a preset speed threshold, terminal 100 determines that it is in a cycling or riding state. If the acquired speed information indicates that the horizontal speed of terminal 100 is less than the preset speed threshold, terminal 100 determines that it is neither in a cycling nor riding state. In this way, by acquiring the horizontal speed information, terminal 100 can more accurately identify whether the user is cycling or riding.
[0110] Optionally, the terminal 100 can detect whether it is in a cycling or riding state based on both acceleration and speed information. For example, the terminal 100 can determine whether the user is cycling or riding a vehicle when the acceleration indicated by the acceleration information exceeds a preset walking threshold and the acquired speed information indicates that the horizontal speed of the terminal 100 is greater than or equal to a preset speed threshold.
[0111] Understandably, terminal 100 can also detect whether it is in a walking state based on speed information. For example, terminal 100 can determine that it is in a walking state when it determines that the speed information is within a preset walking speed range.
[0112] In some examples, terminal 100 can detect whether a user is riding a bicycle or a vehicle using activity recognition (AR) technology based on acceleration information.
[0113] In other examples, terminal 100 can determine whether the user carrying terminal 100 is walking based on acceleration information. When terminal 100 determines that the user is walking, it can execute step S403 or step S404. If terminal 100 determines that the user is not walking based on acceleration information, it can execute step S401 after a preset data collection period. Thus, since users typically walk into elevators, their acceleration can be used to determine whether they are walking. After determining that the user is walking, terminal 100 can determine whether the user is taking the elevator more quickly through the following steps.
[0114] S403. Terminal 100 determines whether the user has been walking in the last n seconds based on acceleration information.
[0115] When terminal 100 determines that the user has neither taken a vehicle nor ridden a bicycle, it can determine, based on acceleration information, whether the user has been walking in the last n seconds (also known as whether terminal 100 is in a walking state), where n is a positive integer, for example, n can be 7. When terminal 100 determines, based on acceleration information, that the user has been walking in the last n seconds, it can execute step S404. When terminal 100 determines, based on acceleration information, that the user has not been walking in the last n seconds, it can execute step S401 after a preset data collection period. Thus, since the user needs to walk continuously into the elevator car before taking the elevator, terminal 100 can detect whether the user is walking based on acceleration information to determine whether the user may be entering the elevator car.
[0116] In some examples, terminal 100 can determine that the user is walking if it finds acceleration information within a preset walking range in the acceleration information acquired within the last n seconds. Terminal 100 can also determine that the user is not walking if it finds no acceleration information within the preset walking range in the acceleration information acquired within the last n seconds. This allows terminal 100 to more accurately determine whether the user has continuously walked into the elevator within n seconds.
[0117] It should be noted that the determination of whether a user is riding a bicycle or a vehicle is not limited to the acceleration information obtained by the accelerometer from the terminal 100. The terminal 100 can also determine whether a user is riding a bicycle or a vehicle by using data collected by sensors such as an inertial measurement unit. This application embodiment does not limit this method.
[0118] S404. Terminal 100 detects whether the magnetic field strength exceeds a preset strength threshold based on the magnetic field strength information.
[0119] After determining that the user has been walking for the last n seconds, terminal 100 can detect whether the magnetic field strength exceeds a preset strength threshold (e.g., 65 microtesla (µT)) based on the acquired magnetic field strength information. Terminal 100 can execute step S406 if it detects that the acquired magnetic field strength exceeds the preset strength threshold. Terminal 100 can execute step S405 if it detects that the acquired magnetic field strength does not exceed the preset strength threshold. Thus, when the magnetic field strength acquired by terminal 100 exceeds the preset strength threshold, it indicates that the currently collected magnetic field strength information may be inaccurate, and terminal 100 does not use the magnetic field strength information, directly determining whether the user is in an elevator scenario based on acceleration information. When the magnetic field strength acquired by terminal 100 does not exceed the preset strength threshold, it indicates that the currently collected magnetic field strength information is highly accurate, and terminal 100 can use the magnetic field strength information to more accurately determine whether the user is in an elevator scenario.
[0120] S405. Terminal 100 detects whether a specified inflection point exists in the magnetic field strength variance curve based on magnetic field strength information.
[0121] Terminal 100 can generate a magnetic field strength variance curve based on the collected magnetic field strength information. The horizontal axis of the magnetic field strength variance curve is time, and the vertical axis is the variance of the magnetic field strength.
[0122] For example, terminal 100 can collect 100 magnetic field strength data points per second using a magnetometer. Terminal 100 can generate the variance of the first magnetic field strength based on the first to the 100th magnetic field strength data points. Terminal 100 can generate the variance of the second magnetic field strength based on the second to the 101st magnetic field strength data points. Terminal 100 can generate the variance of the third magnetic field strength based on the third to the 102nd magnetic field strength data points, and so on. Terminal 100 can fit the variances of multiple magnetic field strengths in chronological order to obtain a magnetic field strength variance curve.
[0123] Terminal 100 can detect whether the variance is greater than a preset variance during the process of generating the variance of the magnetic field strength. When terminal 100 determines that the variance of the i-th magnetic field strength is greater than the preset variance, it uses the variance of the i-th magnetic field strength as a preliminary inflection point. When terminal 100 determines that the variance of the i-th magnetic field strength is the largest among the variances of the i-th to (i+500)-th magnetic field strengths, it can use the variance of the i-th magnetic field strength as a specified inflection point.
[0124] When terminal 100 determines, during the process of generating the variances of the (i+1)th to (i+500)th magnetic field strengths, that the value of the variance of the i-th magnetic field strength is less than the value of the variance of the (i+y)th magnetic field strength, it can use the variance of the (i+y)th magnetic field strength as a preliminary inflection point. When terminal 100 determines that, among the variances of the (i+y)th to (i+y+500)th magnetic field strengths, the variance of the (i+y)th magnetic field strength is the largest, it can use the variance of the (i+y)th magnetic field strength as a specified inflection point.
[0125] When terminal 100 determines that the variance of the i-th magnetic field strength is less than the variance of the (i+y+z)-th magnetic field strength during the process of generating the variance of the (i+y+500)-th magnetic field strength, the variance of the (i+y+z)-th magnetic field strength can be used as a preliminary inflection point. This process continues until terminal 100 determines the specified inflection point, where i, y, and z are positive integers.
[0126] It should be noted that the above description of generating the magnetic field strength variance curve is only an example. For example, the terminal 100 can generate a magnetic field strength variance based on more or less magnetic field strength information, etc. This application embodiment does not limit this.
[0127] Terminal 100 may execute step S406 when a specified inflection point is detected in the magnetic field strength variance curve. Terminal 100 may also execute step S401 after a preset acquisition time when a specified inflection point is not detected in the magnetic field strength variance curve. Specifically, if no specified inflection point is detected after m seconds of executing step S406, terminal 100 may determine that the magnetic field strength variance curve does not have a specified inflection point.
[0128] It should also be noted that, in addition to determining that the terminal 100 has entered the elevator when a specified inflection point is detected in the magnetic field strength variance curve, the terminal 100 may also determine that the terminal 100 has entered the elevator when the magnetic field strength curve gradually increases or decreases and the change value of the magnetic field strength is greater than the preset change value of the magnetic field strength, etc. The embodiments of this application do not limit this.
[0129] Since elevators are mostly made of metal, the magnetic field strength inside and outside the elevator is different. Terminal 100 can detect significant changes in magnetic field strength during the process of entering the elevator. Therefore, terminal 100 can determine whether a significant change in magnetic field strength has occurred based on whether a specified inflection point is observed, and thus determine whether the user is likely to enter the elevator.
[0130] S406. Terminal 100 detects whether a specified waveform exists in the acceleration curve based on acceleration information.
[0131] Terminal 100 can generate an acceleration curve based on acceleration information collected after the specified inflection point appears, after detecting a specified inflection point in the magnetic field strength variance curve. For example, terminal 100 can generate an acceleration curve based on acceleration information collected within t seconds (e.g., 2 seconds) after the specified inflection point appears. The horizontal axis of the acceleration curve represents time, and the vertical axis represents the acceleration value. It detects whether a specified waveform appears in the acceleration information; the specified waveform can be a waveform indicating an increase in acceleration value. Terminal 100 can execute step S407 when it detects the presence of the specified waveform in the acceleration curve. If the specified waveform is not detected in the acceleration curve, terminal 100 determines that it is not in an elevator scenario and can execute step S401.
[0132] Alternatively, after detecting that the magnetic field strength is greater than a preset strength threshold, the terminal 100 can generate an acceleration curve based on the collected acceleration information. For example, the terminal 100 can generate an acceleration curve based on the acceleration information collected within t seconds (e.g., 2 seconds) after detecting that the magnetic field strength is greater than the preset strength threshold.
[0133] It should be noted that, not limited to detecting the presence of a specified waveform, terminal 100 can also determine whether a user is riding an elevator when it detects an increase in acceleration relative to gravity in the vertical direction within t seconds. It should also be noted that, not limited to an accelerometer, terminal 100 can also detect the presence of vertical acceleration using a gravity sensor or similar means to determine whether a user carrying terminal 100 is riding an elevator.
[0134] For example, such as Figure 5A As shown, during the process of a user holding terminal 100 and entering an elevator, scene feature information is collected through an accelerometer and a magnetometer. Specifically, terminal 100 obtains acceleration information through the accelerometer and generates data based on this acceleration information, such as... Figure 5B The acceleration curve shown is illustrated. Terminal 100 acquires magnetic field strength information via a magnetometer and generates an acceleration curve based on this information. Figure 5B The magnetic field strength (magnetic, magn) curve is shown. Terminal 100 can also generate [data / information] based on the magnetic field strength information. Figure 5B The magnetic field strength variance (magneS) shown 2 The acceleration curve generated by terminal 100 during the user's walking motion can be referenced. Specifically, when terminal 100 detects a user walking, it determines that the user may be entering the elevator. Figure 5B The acceleration curve shown is from 0s to 10s. Figure 5B The magnetic field strength curve shown indicates that the elevator doors close between 0s and 10s, and the magnetic field strength changes significantly during the time the user enters the elevator. Terminal 100 can be based on... Figure 5B The magnetic field strength variance curve shown identifies a specified inflection point as inflection point 1. After identifying inflection point 1, terminal 100 can delay for 1 second and check if a specified waveform appears in the acceleration curve. The specified waveform indicates that terminal 100 detects a gradually increasing acceleration in the vertical direction, where the acceleration direction is the same as the velocity direction. After detecting the specified waveform, terminal 100 can record the starting point t1 of the specified waveform in the acceleration curve. After determining the starting point t1, terminal 100 can determine that the elevator has started operating. Terminal 100 can use the time corresponding to inflection point 1 as the time when the user enters the elevator. The time during which terminal 100 detects that it is in the elevator scene can be t3. The waveform between t1 and t3 can be called the specified waveform.
[0135] In this way, after detecting that the elevator has started, terminal 100 will then begin checking whether it has disconnected from the high-speed network. This ensures that terminal 100 is in an elevator scenario, rather than walking through a metal door.
[0136] In other examples, terminal 100 can begin detecting whether it has disconnected from the high-speed network when it detects that it has entered the elevator based on magnetic field strength information. Upon detecting that it has disconnected from the high-speed network, terminal 100 can then search for a network using search mode 2. This allows terminal 100 to begin detecting whether it has disconnected from the high-speed network as soon as it determines that a user has entered the elevator, enabling earlier detection.
[0137] In other examples, terminal 100 can detect whether the user has left the elevator after detecting that it is in an elevator scenario and has accessed a low-bandwidth network or lost network connection. When it detects that the user has left the elevator, terminal 100 can search for a network using network search mode 2 and access a high-bandwidth network. In this way, after detecting that the user has entered the elevator, terminal 100 can determine that it has entered a specific scenario with poor cellular signal, and can then detect whether the user has left the elevator. Initiating the network search process when the user leaves the elevator saves power consumption during network search and helps terminal 100 quickly return to a high-bandwidth network, improving the user's communication experience.
[0138] Specifically, terminal 100 can detect whether a user has left the elevator using acceleration and magnetic field strength information. For example, terminal 100 can detect whether there is an acceleration in the opposite direction to the velocity direction, and whether the acceleration value gradually increases. When terminal 100 detects this acceleration change, it can determine that the elevator is decelerating and coming to a stop. Terminal 100 can determine whether it has left the elevator based on magnetic field strength information. For example, terminal 100 can detect whether the magnetic field strength variance curve has a specified inflection point to determine whether there is a significant magnetic field change, and so on. Terminal 100 can also detect whether the user is walking based on acceleration information to determine whether the user has walked out of the elevator car. For example, as shown... Figure 5B As shown, terminal 100 can detect, for example Figure 5B The acceleration waveform that appears at the starting point t2. The waveform between t2 and t4 can be referred to as the designated waveform. Afterwards, the terminal 100 can detect whether inflection point 2 and the acceleration waveform between 40s and 50s appear, determining that the elevator door has opened and the user has walked out of the elevator car.
[0139] In this way, terminal 100 can detect when the user walks out of the elevator car and then start searching for the network. Because the probability of terminal 100 successfully searching for the network inside the elevator is low, starting the network search immediately when leaving the elevator car can save power consumption during the elevator network search and reduce the time it takes for terminal 100 to return to the high-standard network.
[0140] In other examples, terminal 100 can detect whether the elevator has stopped after detecting that terminal 100 is in an elevator scenario and the high-speed network has been disconnected. For example, terminal 100 can detect whether the elevator has stopped after detecting that... Figure 5B As shown in t4, once the elevator starts to decelerate and stop, terminal 100 can search for a network using network search mode 2. This way, when the elevator decelerates, terminal 100 begins searching for a network, increasing the probability of successfully accessing a higher-standard network when the elevator doors open, allowing for a faster return to the higher-standard network and achieving the effect of returning to the network after exiting the elevator.
[0141] In other examples, terminal 100 can detect whether it has left the elevator after detecting that it is in an elevator scenario and the high-speed network has been disconnected. For example, terminal 100 can detect whether it has left the elevator after detecting that it is in an elevator scenario and the high-speed network has been disconnected. Figure 5B At inflection point 2, it is determined that the user has left the elevator, and terminal 100 can search for the network according to network search mode 2. In this way, when terminal 100 detects that the user has left the elevator, it starts searching for the network, which increases the probability of successfully accessing the high-standard network when the elevator door opens, and allows it to return to the high-standard network more quickly, achieving the effect of returning to the network after leaving the elevator.
[0142] S407. Terminal 100 determines that Terminal 100 is in an elevator scenario.
[0143] Once terminal 100 determines that it is in an elevator scenario, that is, once terminal 100 determines that it is in a specified scenario, it can execute the following: Figure 2 The step S203 shown is to connect to a high-standard network.
[0144] It should be noted that this is not limited to terminal 100. Figure 4The illustrated process detects whether terminal 100 is in an elevator scene. Terminal 100 can also detect whether it is in an elevator scene using other methods. For example, after establishing a communication connection with other electronic devices (e.g., wireless access devices), terminal 100 can detect whether it is in an elevator scene based on the signal strength information of the signals received from those other electronic devices. Since the elevator doors close, they block the signals sent by other electronic devices, causing the signal strength to weaken rapidly. Terminal 100 can determine that it is in an elevator scene when it detects that the signal strength gradually decreases over a period of time, and the change value is greater than a preset signal strength change value. Alternatively, terminal 100 can combine one or more scene feature information methods to jointly detect whether it is in an elevator scene, etc., and this embodiment does not limit this. Similarly, terminal 100 can also detect whether it has left the elevator scene using scene feature information such as signal strength information. For example, after the elevator doors open, they do not block the signals sent by other electronic devices, and the signal strength strengthens rapidly. Terminal 100 can determine that it has left the elevator when it detects that the signal strength information is gradually increasing and the change value is greater than the preset signal strength change value.
[0145] In one possible implementation, terminal 100 can acquire scene feature information. Based on the scene feature information, after detecting that terminal 100 is in a specified scene, terminal 100 can detect whether it is performing a data service. If terminal 100 determines that it is performing a data service, it can detect whether it is connected to a preset SIM card network. When terminal 100 determines that it is connected to a preset SIM card network, it can interrupt the data service and initiate a network search process. When terminal 100 determines that it is not connected to a preset SIM card network, it can perform one or more of the following: SIM card switching operation, SIM card concurrent operation, and enhanced antenna radio frequency capability. The preset SIM card network can include some or all of a low-standard network. For example, the preset SIM card network can be a 2G network. Thus, when terminal 100 performs a data service under a preset SIM card network, due to the low data transmission efficiency of the preset SIM card network, terminal 100 can interrupt the data service and attempt to connect to a higher-standard network.
[0146] It should be noted that when only one SIM card is inserted into the terminal 100, only the operation of enhancing antenna radio frequency capabilities can be performed. When multiple SIM cards are inserted into the terminal 100, one or more of the following operations can be performed: SIM card switching, SIM card concurrent operation, and enhancing antenna radio frequency capabilities. In this way, the terminal 100 can perform appropriate operations to enhance the smoothness of data services based on the number of SIM cards.
[0147] It should also be noted that when terminal 100 determines that it is not performing data services, it can use either network search mode 2 or network search mode 4 (see details). Figure 8 Search the network and access a high-standard network. For details, please refer to the relevant implementation examples, which will not be repeated here.
[0148] For example, such as Figure 6 As shown, when terminal 100 performs data services within a specified scenario, it can execute the following steps:
[0149] S601. Terminal 100 acquires scene feature information.
[0150] S602. Terminal 100 detects whether it is in a specified scene based on scene feature information.
[0151] If terminal 100 detects that it is in a specified scenario, it can execute step S603. If terminal 100 detects that it is not in a specified scenario, it can execute step S601 after a preset collection period. For a detailed description of steps S601 and S602, please refer to the above embodiments, which will not be repeated here.
[0152] S603. Terminal 100 detects whether terminal 100 is performing data services.
[0153] When terminal 100 detects that it is performing a data service (i.e., terminal 100 is in a connected state), it can execute step S604. When terminal 100 detects that it is not performing a data service (i.e., terminal 100 is in an idle state), it can search the network according to network search mode 2. Alternatively, terminal 100 can detect the existence of a specified frequency point based on the communication map. If the specified frequency point is found to exist, it searches the network according to network search mode 4. If the specified frequency point is not found, it searches the network according to network search mode 2. For details, please refer to [link to relevant documentation]. Figure 2 and Figure 7 The embodiments shown are not described in detail here.
[0154] S604. Terminal 100 detects whether terminal 100 is connected to a preset lag network.
[0155] After determining that it is performing a data service, terminal 100 can detect whether it is connected to a preset lag network. If terminal 100 detects that it is connected to the preset lag network, it can execute step S605. If terminal 100 detects that it is not connected to the preset lag network, it can execute step S606.
[0156] S605. Terminal 100 interrupts data service, initiates network search process, and accesses high-standard network.
[0157] When Terminal 100 detects that it has accessed a preset network with slow connection speeds, it can interrupt data services, initiate a network search process, and access a higher-standard network. For details on Terminal 100's network search process, please refer to [link to relevant documentation]. Figure 2 or Figure 7 The embodiments shown are not described in detail here.
[0158] In other examples, terminal 100 includes multiple antennas, including a first antenna and a second antenna. When terminal 100 determines it is in a specified scenario and is performing data services through a preset network, it can use the first antenna to perform data services and the second antenna to search for higher-standard networks. In this way, terminal 100 can use multiple antennas to achieve the effect of searching for higher-standard networks without interrupting data services, thus providing users with a better data service experience without their awareness.
[0159] S606. Terminal 100 detects whether terminal 100 is connected to a high-standard network.
[0160] When terminal 100 detects that it is not connected to a preset network, it can detect whether it is connected to a high-standard network. When terminal 100 detects that it is connected to a high-standard network (e.g., a 3G network), it can execute step S607. When terminal 100 detects that it is not connected to a high-standard network, it can execute step S609.
[0161] S607. Terminal 100 detects whether the data service of Terminal 100 is experiencing lag.
[0162] Terminal 100 can execute step S608 when it detects a data service interruption. Terminal 100 can also continue performing the data service if it detects no interruption. For example, terminal 100 can determine that a data service interruption has occurred based on an interruption notification sent by the application. Alternatively, terminal 100 can use a Quality of Service (QoS) detection method to detect whether a data service interruption has occurred, and so on.
[0163] S608. Terminal 100 performs one or more of the following operations: SIM card switching operation, SIM card concurrent operation, and enhanced antenna radio frequency capability.
[0164] When the number of SIM cards is one, the terminal 100 can improve the service quality of data services by enhancing the antenna radio frequency capability. When the number of SIM cards is greater than one, the terminal 100 can perform one or more of the following operations: SIM card switching operation, SIM card concurrent operation, and enhancing the antenna radio frequency capability.
[0165] For example, when terminal 100 has two SIM cards, if a lag occurs while terminal 100 is using SIM card 1 for data services, it can switch to SIM card 2 to continue the data service, or simultaneously use SIM card 2 for data services, or switch to SIM card 2 for data services while enhancing the antenna's radio frequency capabilities, or simultaneously use SIM card 2 for data services while enhancing the antenna's radio frequency capabilities. Similarly, if a lag occurs while terminal 100 is using SIM card 2 for data services, it can switch to SIM card 1 to continue the data service, or simultaneously use SIM card 1 for data services, or switch to SIM card 1 for data services while enhancing the antenna's radio frequency capabilities, or simultaneously use SIM card 1 for data services while enhancing the antenna's radio frequency capabilities.
[0166] Optionally, the terminal 100 includes multiple SIM cards. When SIM card 1 has good communication quality, the terminal 100 can use SIM card 1 to perform data services. Alternatively, when all SIM cards have poor communication quality, the terminal 100 can use multiple SIM cards concurrently to perform data services.
[0167] S609. Terminal 100 detects whether the data service of Terminal 100 is experiencing lag.
[0168] When terminal 100 detects that it is not connected to a high-standard network, it can check whether its data service is experiencing lag. Specifically, see step S607. If terminal 100 detects lag in the data service, it can execute step S610. If terminal 100 detects that the data service is not experiencing lag, it can continue to perform the data service.
[0169] In other examples, when the terminal 100 detects that it is in a specified scenario, performing data services, and is not connected to a preset slow network or a high-standard network, it can perform a background network search in either search mode 2 or search mode 4 during the intervals between receiving and sending data. In this way, even when not connected to a high-standard network, the terminal 100 can still execute steps S607 and S608 to reduce service lag, and simultaneously attempt to return to a high-standard network during network search when not receiving or sending data, further ensuring the smoothness of data services.
[0170] S610. Terminal 100 interrupts data service, initiates network search process, and accesses high-standard network.
[0171] When terminal 100 detects that it is in a specified scenario, performing data services, not connected to a preset network with lag, not connected to a high-standard network, and that data services are experiencing lag, it can interrupt the data service, initiate a network search process, and connect to a high-standard network. For details, please refer to the description of step S605, which will not be repeated here. In this way, when terminal 100 detects that the data service is not lagging, it continues the data service, ensuring that the data service can be executed. When terminal 100 detects that the data service is lagging, it can interrupt the data service, search for a network again to return to a high-standard network, and reduce the lag time of the data service.
[0172] In other examples, after detecting that the terminal 100 is not connected to a preset network with lag, the terminal 100 can detect whether its data service is experiencing lag. If the terminal 100 detects that its data service is lag-prone, it can execute step S608. If the terminal 100 detects that its data service is not lag-prone, it can continue to perform the data service.
[0173] Optionally, during the interval when the terminal 100 is neither sending nor receiving data, the terminal 100 may search for high-standard networks using the network search method provided in this application embodiment.
[0174] In other examples, terminal 100 includes multiple antennas, including a first antenna and a second antenna. When terminal 100 is determined to be in a specified scenario, not connected to a preset network with lag, not connected to a high-standard network, and performing data services, it can use the first antenna to provide data services and the second antenna to search for high-standard networks. In this way, terminal 100 can use multiple antennas to achieve the effect of searching for high-standard networks without interrupting data services, and connect to high-standard networks without the user's awareness, providing a better data service experience. Regardless of whether the terminal 100's data service is experiencing lag, terminal 100 can continue to provide data services without interruption.
[0175] In other examples, if terminal 100 detects that it is not in a specified scenario, it can also be done through... Figure 6 The illustrated process reduces data service interruptions. Specifically, when terminal 100 searches for a network, it follows network search mode 1. This means that even when terminal 100 is not in the designated scenario, data service interruptions may still occur, making it applicable to a wider range of application scenarios.
[0176] In one possible implementation, terminal 100 stores a frequency map, which includes the correspondence between specified scenes and frequencies. Terminal 100 can acquire scene feature information. Based on the scene feature information, after detecting that terminal 100 is in a specified scene, terminal 100 can detect whether terminal 100 is connected to a high-standard network. If terminal 100 determines that it is not connected to a high-standard network, it can determine the specified frequency corresponding to the current specified scene based on the frequency map. Terminal 100 can search for a network according to network search mode 4 to connect to the high-standard network. When terminal 100 searches for a network according to network search mode 4, the search time interval is a preset duration of 3, and the frequency used for the search is a specified frequency. The preset duration 3 may be the same as or different from the preset duration 2. In this way, terminal 100 stores multiple frequencies corresponding to specified scenes, allowing terminal 100 to successfully search for a network and connect to the high-standard network faster based on the frequencies corresponding to specified scenes, thus improving user experience.
[0177] For example, such as Figure 7 As shown, the network searching method provided in this application embodiment may include the following steps:
[0178] S701. Terminal 100 stores a frequency point map, which includes the correspondence between specified scenes and frequency points; Terminal 100 acquires scene feature information.
[0179] In this scenario, one or more terminals (including terminal 100) can search for a network based on a specific frequency point in a designated scenario. After successfully accessing a high-standard network, they can send the location information of the successfully searched location and the corresponding frequency point to cloud server 200. Cloud server 200 can obtain the location information and frequency point correspondence sent by one or more terminals. Cloud server 200 can generate a frequency point map based on the location information and frequency point correspondence sent by one or more terminals. The designated scenario can include a scenario composed of multiple coordinate points whose distance from the location coordinates indicated by the location information is less than a preset segmentation distance. Cloud server 200 can send the frequency point map to these multiple terminals. Terminal 100 can store the frequency point map after receiving it from cloud server 200.
[0180] For example, cloud server 200 can determine that the location coordinates indicated by two location information belong to the same specified scene when the distance between them is less than a preset dividing distance (e.g., 16 meters). Cloud server 200 can store the correspondence between the two location information and the frequency point when the corresponding frequencies are the same. Here, the specified scene includes an area composed of multiple coordinate points whose distance to the location coordinates indicated by the two location information is less than the preset dividing distance. Cloud server 200 can store the correspondence between the two location information and the two frequency points when the corresponding frequencies are different, or store the correspondence between the two location information and the most recently received frequency point. Similarly, cloud server 200 can determine whether the location coordinates indicated by multiple location information belong to the same specified scene and determine the frequency point corresponding to the specified scene.
[0181] For example, the frequency point map generated by the cloud server 200 may include [(specified scenario 1, frequency point 1, (location 1, location 2, ...)), (specified scenario 2, frequency point 2, (location 3, ...))]. In this way, the terminal 100 can determine the specified frequency point corresponding to the current specified scenario based on the location of the terminal 100 and the distance between each location.
[0182] In other examples, one or more terminals (including terminal 100) search for a network based on a certain frequency point in a specified scenario. After successfully accessing a high-standard network, they can send the cell identifier of the accessed cell and the correspondence between the frequency point to the cloud server 200. The cloud server 200 can then determine the range of the specified scenario based on the cell identifier.
[0183] Optionally, one or more terminals can also send the network standard of the accessed cellular network to the cloud server 200. The cloud server 200 can generate a frequency point map that includes the correspondence between specified scenarios, frequency points, and network standards. In this way, the terminal 100 can determine the frequency point corresponding to the higher standard network based on the frequency point map.
[0184] Optionally, one or more terminals can send the selected PLMN to the cloud server 200. The cloud server 200 can generate a frequency map that includes the correspondence between the specified scenario, frequency points, and PLMNs. The cloud server 200 can provide different frequency points to terminals that support different PLMNs, enabling all terminals to access the corresponding PLMN cell.
[0185] In some examples, cloud server 200 can update the frequency point maps stored on multiple terminals at pre-update intervals. Alternatively, cloud server 200 can update the frequency point maps stored on multiple terminals after updating the correspondence between a specified scenario and a frequency point (q is a positive integer), and so on. In this way, cloud server 200 can update the frequency point map on terminal 100, enabling terminal 100 to determine the specified frequency point corresponding to the current specified scenario based on the frequency point map.
[0186] S702. Terminal 100 detects whether it is in a specified scene based on scene feature information.
[0187] If terminal 100 detects that it is in a specified scenario, it can execute step S703. If terminal 100 detects that it is not in a specified scenario, it can execute step S701 after a preset collection time.
[0188] S703. Terminal 100 detects whether terminal 100 is connected to a high-standard network.
[0189] After detecting that it is in a specified scenario, terminal 100 can detect whether it is connected to a high-standard network. If terminal 100 detects that it is connected to a high-standard network, it executes step S701 after a preset data collection period. If terminal 100 detects that it is not connected to a high-standard network, it executes step S704. For a detailed description of steps S701 to S703, please refer to the above embodiments, which will not be repeated here.
[0190] S704. Terminal 100 determines the specified frequency point corresponding to the current specified scenario based on the frequency point map, and Terminal 100 searches the network based on the specified frequency point.
[0191] When terminal 100 determines that it is in a specified scenario and has not accessed a high-standard network, it can determine the specified frequency corresponding to the current specified scenario based on a frequency point map. Terminal 100 can search for a network in search mode 4. During the network search process in search mode 4, if terminal 100 has not accessed a high-standard network, it can search for a network based on the specified frequency every preset time interval of 3 until terminal 100 accesses a high-standard network.
[0192] Specifically, terminal 100 can calculate the distance between its location and multiple locations on the frequency map, and determine the specified location with the smallest distance from its location among the multiple locations on the frequency map. Terminal 100 can then use the specified frequency corresponding to the specified location as the specified frequency for the current specified scenario of terminal 100.
[0193] Optionally, the specified location can be the location among multiple locations on the frequency point map that can be determined by the terminal 100 that is the smallest distance from the terminal 100 and whose distance from the terminal 100's current location is less than a preset segmentation distance.
[0194] It should be noted that the description of the frequency point map and the description of the terminal 100 determining the specified frequency point are only examples. For instance, the cloud server 200 can also determine multiple location information belonging to the same specified scene based on the location information sent by one or more terminals, and generate the range of the specified scene based on the multiple location information. The top-view shape of the specified scene can be an irregular shape or a regular shape, etc. The terminal 100 can determine the specified scene in which it is currently located based on its location and the range of the specified scene, and determine the specified frequency point corresponding to the currently located specified scene.
[0195] For example, such as Figure 8 As shown, the duration of the network search by terminal 100 based on the specified frequency can be t. 13 The preset duration of 3 can be t. 17 When terminal 100 fails to search for a network based on a specified frequency, it can... 17 Afterwards, the network search is restarted based on the specified frequency until terminal 100 successfully connects to the high-standard network. Among these, t 13 Less than Figure 3 The t shown 11 In some examples, t 17 equal Figure 3 The t shown 16 Thus, because the number of designated frequency points is relatively small—usually less than three in most cases—terminal 100 can complete a network search operation more quickly. Furthermore, since the designated frequency points are those used by the terminal to successfully access a high-standard network in a specific scenario, terminal 100 has a higher probability of successfully accessing a high-standard network based on the designated frequency points.
[0196] Understandably, if terminal 100 determines that the frequency point map does not include the specified frequency point corresponding to the current specified scenario, terminal 100 can search for the network using network search mode 2. For details, please refer to [link / reference]. Figure 2 The illustrated embodiment.
[0197] S705. Terminal 100 accesses high-standard networks.
[0198] After successfully accessing the high-standard network using network search mode 4, terminal 100 can execute step S701 again after a preset data collection time. This allows terminal 100 to detect whether it has left the designated scene after accessing the high-standard network. Since the probability of terminal 100 switching from a high-standard network to a low-standard network or experiencing network loss is relatively high when in the designated scene, terminal 100 can use the network search method provided in this embodiment to ensure it can return to the high-standard network more quickly.
[0199] It should be noted that the embodiments in this application involving specified frequency points (including...) Figure 7 The embodiment shown only replaces the historical frequency points with the specified frequency points. For a description of the specific steps performed by the terminal, please refer to the above description of network search based on historical frequency points.
[0200] In one possible implementation, terminal 100 stores a data service map, which includes the range of multiple cells and the data service status of those cells. The data service status of a cell can be used to indicate whether there is any lag when performing data services in that cell. When accessing a high-standard network, terminal 100 can detect whether the distance between its current location and a specified scene on a common path is less than a preset distance based on the data service map. The common path is a path frequently used by the user, collected by terminal 100. Terminal 100 can cache service data when it detects that the distance between its current location and the specified scene on the common path is less than or equal to the preset distance and the number of SIM cards in terminal 100 is 1. When it detects that the distance between its current location and the specified scene on the common path is less than or equal to the preset distance and the number of SIM cards in terminal 100 is greater than 1, terminal 100 can perform one or more of the following: SIM card switching operation, SIM card concurrency operation, and enhanced antenna radio frequency capability. In this way, the terminal 100 can determine the data service status of each cell along the path that the user frequently uses, so that the terminal 100 can cache service data in advance, or improve the smoothness of the terminal 100's data service by switching SIM cards, using concurrency, or enhancing the antenna radio frequency capabilities.
[0201] In some examples, terminal 100 can cache service data when it detects that the distance between its current location and a specified scene on the usual path is less than or equal to a preset distance. In this way, terminal 100 can cache service data in advance, reducing the duration of service lag.
[0202] In other examples, when terminal 100 detects that the distance between its current location on the usual path and a specified scene is less than or equal to a preset distance, it may perform one of the following operations: SIM card switching, SIM card concurrent operation, and / or enhance antenna radio frequency capabilities when it detects that terminal 100 includes multiple SIM cards. Terminal 100 may also enhance antenna radio frequency capabilities when it detects that it does not include multiple SIM cards. In this way, terminal 100 can reduce service lag by switching SIM cards or performing SIM card concurrent operation, and increase the probability of receiving service data by enhancing antenna radio frequency capabilities.
[0203] For example, such as Figure 9 As shown, terminal 100 can perform the following steps:
[0204] S901. Terminal 100 stores a data service map, which includes the range of multiple cells and the data service status of the cells; when terminal 100 accesses a high-standard network, it detects, based on the data service map, that the distance between the current location and the specified scene on the usual path is less than or equal to a preset distance.
[0205] After terminal 100 accesses a high-standard network, it can detect, at preset caching intervals, whether the distance between its current location and a specified scene on the usual path is less than or equal to a preset distance based on the data service map. If terminal 100 detects that the distance between its current location and the specified scene on the usual path is less than or equal to the preset distance based on the data service map, it executes step S902. If terminal 100 detects that the distance between its current location and the specified scene on the usual path is greater than the preset distance based on the data service map, it can, after a preset caching interval, again detect whether the distance between its current location and the specified scene on the usual path is less than or equal to the preset distance based on the data service map. In this way, when terminal 100 accesses a high-standard network, it can determine, based on the data service map, whether it has entered a cell with data service congestion after a preset distance, and improve data service smoothness by caching data in advance.
[0206] Terminal 100 can obtain the user's habitual routes through positioning technologies (e.g., satellite navigation positioning technology and / or indoor positioning technology). Terminal 100 can store recently acquired routes or the user's most frequently used routes as habitual routes (e.g., the route from home to the office). Terminal 100 can determine the range between various cells along the frequently used routes based on a data service map. Terminal 100 can obtain its own location information to determine the distance between its current location and a specified scene.
[0207] It should be noted that multiple terminals (including terminal 100) can acquire data such as the terminal's location information, the identifier of the cell the terminal accesses, whether the terminal experiences data service lag in that cell, and the duration of the lag. Based on the acquired location information from multiple locations, the multiple terminals can fit their own habitual paths. The multiple terminals can send the collected data to cloud server 200. Cloud server 200 can generate a data service map based on the data sent by the multiple terminals. Specifically, cloud server 200 can determine the range and data service status of a cell based on whether multiple terminals experience lag in the cell indicated by the same cell identifier and the duration of the lag. Cloud server 200 can send the generated data service map to the multiple terminals. Here, the specified scenario may include, but is not limited to, cells with data service lag and / or severely lagging data service.
[0208] For example, the data service status of a cell can be categorized as either "slow" or "smooth." The cloud server 200 can set the data service status of a cell to "smooth" when no terminals in the cell experience data service lag. The cloud server 200 can also set the data service status of a cell to "slow" when terminals in the cell experience data service lag. As another example, the data service status of a cell can be categorized as "severely slow," "slow," and "smooth," and so on. The cloud server 200 can set the data service status of a cell to "smooth" when no terminals in the cell experience data service lag. The cloud server 200 can set the data service status of a cell to "severely slow" when the number of terminals experiencing data service lag in a cell reaches a preset percentage (e.g., 50%) of the total number of terminals residing in the cell, or when the duration of lag by terminals residing in the cell reaches a preset lag percentage (e.g., 50%) of the total duration of lag in the cell. The cloud server 200 can set the data service status of a cell to be stuck when the proportion of the number of terminals experiencing data service lag in the cell to the total number of terminals residing in the cell is greater than zero and less than a preset proportion (e.g., 50%), and the proportion of the duration of the lag in the cell to the total duration of the terminals residing in the cell is greater than zero and less than the preset lag proportion (e.g., 50%).
[0209] Optionally, multiple terminals can also send the selected PLMN to the cloud server 200. In this way, the terminal 100 can select the SIM card of the PLMN to which the cell with better data service conditions belongs at different locations along the usual path, based on the data service conditions of different cells in different PLMNs at different locations.
[0210] In some examples, the cloud server 200 can also determine whether a specified scene is a basement entrance, elevator entrance, etc., based on its location on the map. The cloud server 200 can generate a data service map including location markers such as basement entrance markers and elevator entrance markers. In this way, the terminal 100 can determine whether it has reached the specified scene more quickly based on the data service map.
[0211] Optionally, multiple terminals can also send the network standard of the access network to the cloud server 200. In this way, the terminal 100 can prioritize switching to a SIM card that supports the higher network standard.
[0212] In some examples, terminal 100 can, when performing data services on terminal 100, based on Figure 9 The illustrated embodiment provides users with a better data service experience. Terminal 100 can, even when not performing data services, [access data via...]. Figure 2 The method shown combines a data service map to identify whether terminal 100 is in a specified scenario, making it easier for terminal 100 to search for and return to the high-standard network when disconnected from the high-standard network.
[0213] S902. When the number of SIM cards in terminal 100 is 1, cache service data; when the number of SIM cards in terminal 100 is greater than 1, perform one or more of the following operations: SIM card switching operation, SIM card concurrent operation, and enhanced antenna radio frequency capability.
[0214] In some examples, when the number of SIM cards is 1, the preset distance can be the distance of p (e.g., 3) cells. Terminal 100 can cache service data when it detects that the distance between the current location and the specified scene is less than the preset distance.
[0215] In some examples, when the number of SIM cards is greater than one, the preset distance can be the distance of k cells (e.g., one cell). When the terminal 100 detects that the distance from its current location to the specified scene is less than the preset distance, it can perform one or more of the following: SIM card switching operation, SIM card concurrent operation, and enhanced antenna radio frequency capability. For details, please refer to the above embodiments, which will not be repeated here.
[0216] For example, Figure 10AThis diagram illustrates the data service status of each cell along the usual path of terminal 100. Blank squares indicate smooth data service for terminals residing in that cell. Linear squares indicate data service lag for terminals residing in that cell. Diagonal squares indicate severe data service lag for terminals residing in that cell. Specified scenarios include cells with data service lag and cells with severe data service lag. When terminal 100 detects a distance of 3 cells from specified scenario 1, it can cache service data; these 3 cells can be referred to as the cache area. Terminal 100 can also cache service data when it detects a distance of 3 cells from specified scenario 2. Here, specified scenario 1 is an elevator, and specified scenario 2 is an underground parking garage.
[0217] For example, Figure 10B The diagram illustrates the data service status of terminal 100 in various cells, including SIM card 1 and SIM card 2. Specifically, when terminal 100 is at the entrance to an underground parking garage, after detecting SIM card 2 within one cell, a specific scenario 1 exists. If terminal 100 uses SIM card 2 for data service at the garage entrance, it can switch to using SIM card 1. If terminal 100 uses SIM card 1 for data service at the garage entrance, it can continue using SIM card 1. Similarly, when terminal 100 is at the elevator entrance, after detecting SIM card 2 within one cell, a specific scenario 2 exists. And after detecting SIM card 1 within one cell, a specific scenario 3 exists. Even if terminal 100 switches SIM cards, lag may occur; therefore, terminal 100 can concurrently use both SIM cards for data service.
[0218] It should be noted that, Figure 10A and Figure 10B The data service situation of each cell on the usual path shown is only an example. In actual applications, the area of different cells on the usual path may be different, and should not constitute a specific limitation on the embodiments of this application.
[0219] In other examples, terminal 100 can obtain the identifier of the accessed cell and generate a habitual cell path based on the cell identifier and the data service map (e.g., the cell accessed on the way from home to work). In this way, terminal 100 can generate a habitual cell path consisting of multiple cells. When terminal 100 accesses a cell, it can quickly determine the data service situation of neighboring cells, making it easier for terminal 100 to alleviate data service congestion in the manner described in the above embodiments.
[0220] In other examples, the cloud server 200 can divide the ground into multiple grids, each with the same area, for example, a grid area of 16 meters by 16 meters. The cloud server 200 can determine a data service map based on data sent from multiple terminals. This data service map includes the data service status of different grids. Alternatively, the data service map can include the data service status of different SIM cards in different grids. For example, the data service map generated by the cloud server 200 can include [(grid 1, (PLMN1, data service lag), (PLMN2, data service smooth), ...]. It should be noted that the specific content of the data service map is only an example and should not be construed as limiting the scope of the data service map.
[0221] Terminal 100 can record the identifiers of the traversed grids and generate a habitual grid path (e.g., the grids passed on the way from home to the office). Based on the data service map, terminal 100 can determine the data service status of different SIM cards in each grid along the habitual grid path. For example, when terminal 100 determines that the distance to grid 1 is less than or equal to a preset distance, it can use a SIM card supporting PLMN2 to perform data services. In this way, when terminal 100 passes through a grid, it can more quickly determine the data service status of the grids it will pass through next, facilitating the execution of the steps in step S902 and avoiding data service lag.
[0222] In one possible implementation, one or more terminals (including terminal 100) can store network details information upon successful network search. These terminals can then send the mapping between location information and network details to cloud server 200. Cloud server 200 can generate a communication map based on this mapping. Cloud server 200 can then send the communication map to the one or more terminals. In this way, the one or more terminals can implement the aforementioned network search method and / or methods to improve data service smoothness based on the communication map.
[0223] In some examples, the communication map can be the frequency point map mentioned above. Network details may include, but are not limited to, the frequency point and location information for accessing the cellular network. Optionally, network details may also include, but are not limited to, one or more of PLMN, cell identifier, and network standard. In this way, after the terminal 100 is in a specified scenario, it can determine the specified frequency point corresponding to the current specified scenario through the communication map, and access the high-standard network more quickly.
[0224] In other examples, the communication map can be the data service map described above. Network details may include, but are not limited to, the frequency point of the cellular network access, cell identifier, whether data service experiences buffering, and the duration of buffering when it does. Optionally, network details may also include, but are not limited to, one or more of the following: location information, PLMN, and network standard.
[0225] In other examples, the communication map may include the frequency map and the data service map described above. Network details may include, but are not limited to, the frequency point used to access the cellular network, cell identifier, whether data service experiences lag, and the duration of lag when lag occurs. Optionally, network details may also include, but are not limited to, one or more of the following: location information, PLMN, and network standard. In this way, the cloud server 200 can generate a communication map, enabling various terminals to quickly access high-standard networks in different application scenarios, thereby improving the smoothness of data services, etc.
[0226] The following example, using the communication map including the frequency point map and the data service map, illustrates the process by which terminal 100 obtains the communication map.
[0227] For example, such as Figure 11 As shown, terminal 100 includes a communication module 1151 and a communication map processing module 1152. The communication map processing module 1152 can run on a processor 1153 (not shown), which can be connected to the communication module 1151. For example, the communication module 1151 can control a modem. The communication module 1151 can be used for network searching. The communication module 1151 can be used for terminal 100 to establish a communication connection with a cellular network and implement data services through the cellular network. The communication module 1151 can also be used for SIM card switching, SIM card concurrency, and enhancing antenna radio frequency capabilities. The communication map processing module 1152 can be used to determine the data service status of each cell on a specified frequency point and / or a common path based on the communication map. The communication map processing module 1152 can also be used to determine a specified strategy after determining the data service status of each cell on the common path and notify the communication module 1151 to implement data services based on the specified strategy. The cloud server 200 can be used to obtain network details information of one or more terminals. Cloud Server 200 can generate a communication map based on network details.
[0228] The process by which terminal 100 obtains the communication map includes the following steps:
[0229] S1101. Communication module 1151 successfully accessed the cellular network.
[0230] S1102. Communication module 1151 sends network details information to communication map processing module 1152.
[0231] S1103. The communication map processing module 1152 can send network details information to the cloud server 200.
[0232] S1104. Cloud server 200 can generate a communication map based on network details information sent by one or more terminals. The communication map includes the correspondence between cell identifier, cell range, cell frequency point and cell data service status. One or more terminals include terminal 100.
[0233] S1105. Cloud server 200 sends the communication map to terminal 100.
[0234] S1106. When the communication map processing module 1152 determines that the terminal 100 is in a specified scenario and disconnects the high-standard network, it determines the specified frequency point based on the communication map.
[0235] The communication map processing module 1152 can determine the specified frequency point corresponding to the current specified scene based on the communication map when it is determined that the terminal 100 is in a specified scene and disconnected from the high-standard network. Specifically, the communication map processing module 1152 can determine whether the terminal 100 is in a specified scene through scene feature information and / or the communication map. For details, please refer to the above embodiments, which will not be repeated here.
[0236] S1107. The communication map processing module 1152 sends the specified frequency point to the communication module 1151.
[0237] S1108. Communication module 1151 searches for networks based on a specified frequency point and accesses high-standard networks.
[0238] For a description of the network search based on a specified frequency point by communication module 1151, please refer to [link / reference]. Figure 7 and Figure 8 The embodiments shown are not described in detail here.
[0239] S1109. When the communication map processing module 1152 determines that the terminal 100 is in a specified scenario and is performing data services, it determines a specified strategy based on the communication map. The specified strategy may be one or more of the following: interrupting data services, switching SIM cards, SIM card concurrency, caching service data, and enhancing antenna radio frequency capabilities.
[0240] The communication map processing module 1152, after determining that the terminal 100 is in a specified scenario and performing data services, can determine that the terminal 100 is connected to a high-standard network. The terminal 100 can determine the data service status of each cell along the usual path. Based on the data service status of each cell along the usual path, it can determine one or more of the following specified strategies: SIM card switching, SIM card concurrency, caching service data, and enhancing antenna radio frequency capabilities. For details, please refer to the above embodiments. The communication map processing module 1152, after determining that the terminal 100 is in a specified scenario and performing data services, can determine that the terminal 100 is connected to a low-standard network. The terminal 100 can then determine that the specified strategy is to interrupt the data service.
[0241] S1110. The communication map processing module 1152 sends the specified strategy to the communication module 1151.
[0242] S1111. Communication module 1151 can execute data services based on a specified strategy.
[0243] After receiving the specified policy, the communication module 1151 can execute data services according to the specified policy. For example, when the specified policy is to interrupt data services, the communication module 1151 can interrupt data services and search for high-standard networks according to network search mode 2. As another example, when the specified policy is to switch SIM cards, the terminal 100 can switch SIM cards and use the switched SIM cards to perform data services.
[0244] Specifically, the descriptions of steps S1101 to S1111 can be found in the embodiments shown above, and will not be repeated here.
[0245] It should be noted that, in some examples, the aforementioned high-standard network may be referred to as the first network, the aforementioned low-standard network as the second network, and the aforementioned 3G network as the third network. The aforementioned specified scenario may be referred to as the first scenario. The aforementioned network search mode 1 may be referred to as the second network search mode, and the aforementioned network search mode 2 and / or the aforementioned network search mode 3 may be referred to as the first network search mode. The aforementioned specified frequency point may be referred to as the first frequency point.
[0246] The terminal 100 provided in the embodiments of this application is described below.
[0247] Terminal 100 may be a mobile phone, tablet computer, desktop computer, laptop computer, handheld computer, notebook computer, ultra-mobile personal computer (UMPC), netbook, as well as cellular phone, personal digital assistant (PDA), augmented reality (AR) device, virtual reality (VR) device, artificial intelligence (AI) device, wearable device, in-vehicle device, smart home device and / or smart city device. The specific type of electronic device is not particularly limited in the embodiments of this application.
[0248] Figure 12 A schematic diagram of the hardware structure of terminal 100 is shown.
[0249] Terminal 100 may include, but is not limited to, a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, one or more antennas, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a SIM card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0250] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the terminal 100. In other embodiments of this application, the terminal 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0251] Processor 110 may include one or more processing units, such as application processors, modem processors, graphics processing units (GPUs), image signal processors (ISPs), controllers, video codecs, digital signal processors (DSPs), baseband processors, and / or neural network processing units (NPUs). These different processing units may be independent devices or integrated into one or more processors.
[0252] The controller can serve as the central nervous system and command center of the terminal 100. The controller can generate operation control signals based on the instruction opcode and timing signals to control the fetching and execution of instructions.
[0253] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from this memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0254] In some embodiments, the processor 110 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0255] It is understood that the interface connection relationships between the modules illustrated in the embodiments of this application are merely illustrative and do not constitute a structural limitation on the terminal 100. In other embodiments of this application, the terminal 100 may also adopt different interface connection methods or a combination of multiple interface connection methods as described in the above embodiments.
[0256] The charging management module 140 receives charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 receives charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 receives wireless charging input via the wireless charging coil of the terminal 100. While charging the battery 142, the charging management module 140 can also supply power to the electronic device via the power management module 141.
[0257] The power management module 141 connects the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, providing power to the processor 110, internal memory 121, display screen 194, camera 193, and wireless communication module 160, etc. The power management module 141 can also monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance). In some other embodiments, the power management module 141 may also be located within the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be located in the same device.
[0258] The wireless communication function of terminal 100 can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.
[0259] Antennas 1 and 2 are used to transmit and receive electromagnetic wave signals. Each antenna in terminal 100 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with tuning switches.
[0260] The mobile communication module 150 can provide solutions for wireless communication applications including 2G / 3G / 4G / 5G on the terminal 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low-noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via the antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via the antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.
[0261] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through an audio device (not limited to speaker 170A, receiver 170B, etc.) or displays images or videos through the display screen 194. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 110 and may be housed in the same device as the mobile communication module 150 or other functional modules.
[0262] The wireless communication module 160 can provide solutions for wireless communication applications on the terminal 100, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), and satellite communication modules. The satellite communication module can be used to process signals transmitted from the terminal 100 to the satellite device 200. The satellite communication module can also be used to process signals received from the satellite device 200. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signals to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.
[0263] In some embodiments, antenna 1 of terminal 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling terminal 100 to communicate with networks and other devices via wireless communication technology. The wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. The GNSS may include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS).
[0264] Terminal 100 implements display functions through a GPU, display screen 194, and application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.
[0265] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a miniature LED, a microLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, terminal 100 may include one or N displays 194, where N is a positive integer greater than 1.
[0266] Terminal 100 can perform shooting functions through ISP, camera 193, video codec, GPU, display 194 and application processor.
[0267] The ISP (Image Signal Processor) is used to process data fed back from the camera 193. For example, when taking a picture, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, and the camera's photosensitive element transmits this electrical signal to the ISP for processing, transforming it into an image visible to the naked eye. The ISP can also perform algorithmic optimization on image noise and brightness. The ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In some embodiments, the ISP can be set in the camera 193.
[0268] Camera 193 is used to capture still images or videos. An object is projected onto a photosensitive element by generating an optical image through the lens. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then passed to an ISP for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into image signals in standard RGB, YUV, or other formats. In some embodiments, terminal 100 may include one or N cameras 193, where N is a positive integer greater than 1.
[0269] A digital signal processor (DSP) is used to process digital signals. Besides digital image signals, it can also process other digital signals. For example, when terminal 100 selects a frequency point, the DSP can perform Fourier transforms on the frequency energy.
[0270] Video codecs are used to compress or decompress digital video. Terminal 100 may support one or more video codecs. Thus, terminal 100 can play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG 2, MPEG 3, MPEG 4, etc.
[0271] NPU stands for Neural Network (NN) Computing Processor. By borrowing the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it can rapidly process input information and continuously learn on its own. NPUs can enable intelligent cognitive applications in terminals, such as image recognition, facial recognition, speech recognition, and text understanding.
[0272] The external memory interface 120 can be used to connect to external non-volatile memory, thereby expanding the storage capacity of the terminal 100. The external non-volatile memory communicates with the processor 110 through the external memory interface 120 to perform data storage functions. For example, music, video, and other files can be stored in the external non-volatile memory.
[0273] Internal memory 121 can be used to store computer executable program code, which includes instructions. Processor 110 executes various functional applications and data processing of terminal 100 by running the instructions stored in internal memory 121. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback, image playback, etc.), etc. The data storage area may store data created during the use of terminal 100 (such as audio data, phonebook, etc.). Furthermore, internal memory 121 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.
[0274] Terminal 100 can implement audio functions, such as music playback and recording, through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.
[0275] Audio module 170 is used to convert digital audio information into analog audio signal output, and also to convert analog audio input into digital audio signal. Speaker 170A, also called a "loudspeaker," is used to convert audio electrical signals into sound signals. Receiver 170B, also called a "handpiece," is used to convert audio electrical signals into sound signals. Microphone 170C, also called a "microphone" or "microphone unit," is used to convert sound signals into electrical signals.
[0276] Pressure sensor 180A is used to sense pressure signals and can convert the pressure signals into electrical signals. In some embodiments, pressure sensor 180A may be disposed on display screen 194. Gyroscope sensor 180B can be used to determine the motion posture of terminal 100. Barometric pressure sensor 180C is used to measure barometric pressure.
[0277] The magnetic sensor (also known as a magnetometer) 180D includes a Hall sensor and can be used to detect the opening and closing of the flip cover. In this embodiment, the magnetic sensor 180D can be used to acquire magnetic field strength information.
[0278] An accelerometer (also known as an accelerometer) 180E can detect the magnitude of acceleration of the terminal 100 in various directions (generally three axes). A distance sensor 180F is used to measure distance. In this embodiment, the accelerometer 180E can be used to acquire acceleration information.
[0279] Optionally, the terminal 100 may also include, but is not limited to, gravity sensors and / or inertial measurement units, etc.
[0280] The proximity sensor 180G may include, for example, a light-emitting diode (LED) and a light detector, such as a photodiode. The LED may be an infrared LED. The terminal 100 emits infrared light outward through the LED. The terminal 100 uses the photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the terminal 100. When insufficient reflected light is detected, the terminal 100 can determine that there is no object near the terminal 100. The terminal 100 may use the proximity sensor 180G to detect when the user holds the terminal 100 close to their ear for a call (i.e., determine that the terminal 100 is in earpiece mode), so as to automatically turn off the screen to save power. The proximity sensor 180G can also be used in holster mode and pocket mode for automatic unlocking and screen locking.
[0281] An ambient light sensor 180L is used to sense ambient light intensity. A fingerprint sensor 180H is used to collect fingerprints. A temperature sensor 180J is used to detect temperature. A touch sensor 180K, also known as a "touch panel," can be placed on the display screen 194. The touch sensor 180K and the display screen 194 together form a touchscreen, also known as a "touch screen." The touch sensor 180K is used to detect touch operations applied to or near it. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In some embodiments, the touch sensor 180K can also be placed on the surface of the terminal 100, in a different position than the display screen 194. A bone conduction sensor 180M can acquire vibration signals. Buttons 190 include a power button, volume buttons, etc. A motor 191 can generate vibration cues. An indicator 192 can be an indicator light, used to indicate charging status, battery level changes, messages, missed calls, notifications, etc.
[0282] The SIM card interface 195 is used to connect SIM cards, such as SIM1, SIM2, and SIM3. The SIM card can be inserted into or removed from the SIM card interface 195 to make contact with and separate from the terminal 100. The terminal 100 can support one or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, and other SIM cards. Multiple cards can be inserted into the same SIM card interface 195 simultaneously. These multiple cards can be of the same or different types. The SIM card interface 195 is also compatible with different types of SIM cards. The SIM card interface 195 is also compatible with external memory cards. The terminal 100 interacts with the network through the SIM card to realize functions such as calls and data communication. In some embodiments, the terminal 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the terminal 100 and cannot be separated from the terminal 100.
[0283] The foregoing details the method provided in this application. In order to facilitate better implementation of the above-described solutions in the embodiments of this application, the embodiments of this application also provide corresponding devices or equipment.
[0284] This application embodiment can divide the terminal 100 into functional modules according to the above method example. For example, each function can be divided into its own functional module, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware or as a software functional module. It should be noted that the module division in this application embodiment is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods.
[0285] The following will combine Figure 13 The communication device of the embodiments of this application is described in detail.
[0286] In the case of using integrated units, see Figure 13 , Figure 13 This is a schematic diagram of the structure of the communication device 1300 provided in an embodiment of this application. The communication device 1300 can be the terminal 100 in the above embodiments. Optionally, the communication device 1300 can be a chip / chip system. For example... Figure 13 As shown, the communication device 1300 may include a transceiver unit 1310 and a processing unit 1320.
[0287] The transceiver unit 1310 can also be used to perform the sending and receiving functions performed by the terminal 100 in the above embodiments of this application.
[0288] The processing unit 1320 can also be used to perform the functional steps performed by the terminal 100 in the above embodiments of this application, such as identifying a specified scenario, determining a network search mode, interrupting data services, and generating a specified strategy.
[0289] It should be understood that the communication device 1300 in this design can perform the method steps executed by the terminal 100 in the aforementioned embodiment, and for the sake of brevity, it will not be described again here.
[0290] The terminal 100 of this application embodiment has been described above. It should be understood that any terminal possessing the above-described features... Figure 13 Any form of the communication device 1300 that performs the functions described herein falls within the protection scope of the embodiments of this application.
[0291] As a possible product form, the terminal 100 described in this application embodiment can be implemented using a general bus architecture.
[0292] See Figure 14 , Figure 14 This is a schematic diagram of the structure of the communication device 1400 provided in an embodiment of this application. The communication device 1400 may be a terminal 100, or a device therein. Figure 14As shown, the communication device 1400 includes a processor 1401 and a transceiver 1402 internally connected and communicating with the processor 1401. The processor 1401 can be a general-purpose processor or a dedicated processor, such as a central processing unit and / or an NFC controller. The transceiver 1402, also known as a transceiver unit, transceiver, or transceiver circuit, is used to implement transceiver functions. The transceiver 1402 may include a receiver and a transmitter. The receiver, also known as a receiver circuit, is used to implement a receiving function, such as cellular network data receiving; the transmitter, also known as a transmitter or transmitting circuit, is used to implement a transmitting function, such as cellular network data transmitting. Optionally, the communication device 1400 may also include an antenna 1403 and / or a radio frequency unit (RF unit). Figure 14 (Not shown in the image), for example, a radio frequency antenna. The antenna 1403 and / or the radio frequency unit may be located inside the communication device 1400 or separate from the communication device 1400, that is, the antenna 1403 and / or the radio frequency unit may be deployed remotely or in a distributed manner.
[0293] Optionally, the communication device 1400 may include one or more memories 1404, which may store instructions, which may be computer programs, that can be executed on the communication device 1400 to cause the communication device 1400 to perform the method steps described in the above embodiments of this application. Optionally, the memory 1404 may also store data. The communication device 1400 and the memory 1404 may be provided separately or integrated together.
[0294] The processor 1401, transceiver 1402, and memory 1404 can be connected via a communication bus.
[0295] In one design, the communication device 1400 can be used to perform the functions of the terminal 100 in the aforementioned embodiments: the processor 1401 can be used to perform the functional steps related to Wi-Fi protocol parsing and encapsulation, data service processing flow, elevator scene identification flow, etc., performed by the terminal 100 in the aforementioned embodiments of this application, and / or other processes used in the technology described herein; the transceiver 1402 can be used to perform the functional steps related to sending and receiving, etc., performed by the terminal 100 in the aforementioned embodiments of this application, and / or other processes used in the technology described herein.
[0296] In any of the above designs, the processor 1401 may include a transceiver for implementing receive and transmit functions. For example, the transceiver may be a transceiver circuit, an interface, or an interface circuit. The transceiver circuit, interface, or interface circuit for implementing receive and transmit functions may be separate or integrated. The aforementioned transceiver circuit, interface, or interface circuit may be used for reading and writing code / data, or it may be used for transmitting or relaying signals.
[0297] In any of the above designs, the processor 1401 may store instructions, which may be computer programs. These computer programs, running on the processor 1401, cause the communication device 1400 to execute the method steps executed by the terminal 100 in the above embodiments of this application. The computer program may be embedded in the processor 1401; in this case, the processor 1401 may be implemented in hardware.
[0298] In one implementation, the communication device 1400 may include circuitry capable of performing the functions of transmitting, receiving, or communicating as described in the foregoing method embodiments. The processor and transceiver described in this application can be implemented on integrated circuits (ICs), analog ICs, radio frequency integrated circuits (RFICs), mixed-signal ICs, application-specific integrated circuits (ASICs), printed circuit boards (PCBs), electronic devices, etc. The processor and transceiver can also be manufactured using various IC process technologies, such as complementary metal-oxide semiconductors (CMOS), n-metal-oxide-semiconductor (NMOS), positive-channel metal-oxide semiconductors (PMOS), bipolar junction transistors (BJTs), bipolar CMOS (BiCMOS), silicon-germanium (SiGe), gallium arsenide (GaAs), etc.
[0299] The scope of the communication device described in this application is not limited thereto, and the structure of the communication device may vary. Figure 14 The communication device 1400 may be a standalone device or part of a larger device. For example, the communication device 1400 may be:
[0300] (1) A standalone integrated circuit IC, or chip, or chip system or subsystem; (2) A collection of one or more ICs, optionally including storage components for storing data or computer programs; (3) An ASIC, such as an NFC chip; (4) A module that can be embedded in other devices; (5) A receiver, terminal, smart terminal, cellular phone, wireless device, handheld device, mobile unit, vehicle device, network device, cloud device, artificial intelligence device, etc.; (6) Others, etc.
[0301] This application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, can implement the steps executed by the terminal 100 in the above-described method embodiments.
[0302] This application also provides a computer program product, including a computing program, which, when run on a computer, enables the computer to perform the steps executed by the terminal 100 in the above-described method embodiments.
[0303] This application also provides a chip system, which includes a processing circuit and an interface circuit. The interface circuit receives code instructions and transmits them to the processing circuit. The processing circuit executes the code instructions to enable the chip system to perform the steps executed by the terminal 100 in any method embodiment of this application. The chip system can be a single chip or a chip module composed of multiple chips.
[0304] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit it. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.
Claims
1. A network search method, applied to a terminal, characterized in that, include: Access to the first network; If the terminal is detected to be in the first scenario and disconnected from the first network, the first network is searched according to the first network search mode; If the terminal is detected to be not in the first scenario and disconnected from the first network, the first network is searched according to the second network search mode, wherein the network search time interval in the second network search mode is greater than the network search time interval in the first network search mode.
2. The method according to claim 1, characterized in that, If the terminal is detected to be in the first scenario and disconnected from the first network, the process of searching for the first network according to the first network search mode specifically includes: The system detects that the terminal is in a first scenario and has fallen from the first network to the second network, and searches for the first network according to the first network search mode; wherein the network standard of the first network is higher than that of the second network.
3. The method according to claim 2, characterized in that, The step of searching the first network according to the first network search mode specifically includes: When the terminal is in an idle state, it searches for the first network according to the first network search mode.
4. The method according to claim 2, characterized in that, The step of searching the first network according to the first network search mode specifically includes: The data service being executed by the terminal through the second network was found to be stuck; The data service is interrupted, and the first network is searched according to the first network search mode.
5. The method according to claim 1, characterized in that, If the terminal is detected to be in the first scenario and disconnected from the first network, the process of searching for the first network according to the first network search mode specifically includes: The terminal is detected to be in a first scenario and has fallen from the first network to a third network; wherein the network standard of the first network is higher than that of the third network. The terminal was detected to be performing data services through the third network; The data service is interrupted, and the first network is searched according to the first network search mode.
6. The method according to any one of claims 1-5, characterized in that, The process of searching the first network according to the first network search mode specifically includes: Within a first time period, the first network is searched based on historical frequency points, wherein the historical frequency points include the frequency points of the first network used by the terminal and the frequency points of the first network preset by the terminal. The process of searching the first network according to the second network search mode specifically includes: The first network is searched based on the historical frequency points during the second time period; If the first network is not found based on the historical frequency points within the second time period, the first network is searched based on the frequency band.
7. The method according to any one of claims 1-5, characterized in that, The terminal stores the correspondence between the first scenario and the first frequency point; the step of searching the first network according to the first network search mode specifically includes: The first network is searched based on the first frequency point.
8. The method according to any one of claims 1-7, characterized in that, The detection that the terminal is in the first scenario specifically includes: Obtain acceleration information within the first time interval; Based on the acceleration information within the first time period, it is determined that the terminal is in a walking state within the first time period; Obtain magnetic field strength information; A magnetic field strength exceeding a preset magnetic field strength threshold has been detected. Obtain acceleration information within the third time interval; An acceleration curve is generated based on the acceleration information within the third time period. If the acceleration curve includes a specified waveform, it is determined that the terminal is in the first scenario.
9. The method according to any one of claims 1-7, characterized in that, The detection that the terminal is in the first scenario specifically includes: Obtain acceleration information within the first time interval; Based on the acceleration information within the first time period, it is determined that the terminal is in a walking state within the first time period; Obtain magnetic field strength information within the second time period; It was detected that no magnetic field strength information greater than the preset magnetic field strength threshold was detected within the second time period; A magnetic field strength variance curve is generated based on the magnetic field strength information within the second time period. The magnetic field strength variance curve is detected to include a first inflection point, and it is determined that the terminal is in a first scenario. The variance value corresponding to the first inflection point is the maximum variance value in the magnetic field strength variance curve.
10. The method according to claim 9, characterized in that, Determining that the terminal is in the first scenario specifically includes: Obtain acceleration information within the third time interval; An acceleration curve is generated based on the acceleration information within the third time period. If the acceleration curve includes a specified waveform, it is determined that the terminal is in the first scenario.
11. The method according to any one of claims 8-10, characterized in that, Before determining that the terminal is in a walking state during the first time period based on the acceleration information within the first time period, the method further includes: Obtain acceleration information within the fourth time interval; Based on the acceleration information within the fourth time period, it is determined that the terminal is neither in a riding state nor in a passenger state during the fourth time period.
12. The method according to any one of claims 1-11, characterized in that, The method further includes: If a lag is detected when performing data services through the first network, the antenna radio frequency capability of the terminal is enhanced.
13. The method according to any one of claims 1-12, characterized in that, The terminal stores a first path; the method further includes: The server receives first data, which includes the identifiers, ranges, and corresponding service conditions of multiple cells. The service conditions of the cells are divided into smooth and laggy. Based on the first data, the service status of multiple cells along the first path is determined; If the distance between the cell where the service is experiencing lag is less than a preset distance when detected on the first path, the service data is cached.
14. The method according to any one of claims 1-13, characterized in that, The terminal includes a first user identification module SIM card and a second SIM card; the terminal stores a first path; the method further includes: The system receives first data sent by the server. The first data includes the correspondence between the identifiers, ranges, and service status of multiple cells supported by the first SIM card and the correspondence between the identifiers, ranges, and service status of multiple cells supported by the second SIM card. The service status of the cells is divided into smooth and laggy. Based on the first data, the service status of the first SIM card and the second SIM card in multiple areas along the first path is determined; When performing data services based on the first SIM card, if it is detected that the service status of the first SIM card in the first area is sluggish while the service status of the second SIM card is smooth, then the data service is performed based on the second SIM card. When performing data services based on the first SIM card, if it is detected that the service status of the first SIM card and the service status of the second SIM card are both sluggish in the first area, data services are performed concurrently based on the first SIM card and the second SIM card.
15. The method according to claim 14, characterized in that, The method further includes: When performing data services based on the second SIM card in the first area, the identifier of the cell accessed by the second SIM card and the duration of data service lag are sent to the server. The identifier of the cell and the duration of data service lag are used by the server to generate the first data.
16. The method according to claim 2 or 3, characterized in that, The first network includes one or more of 4G, 5G and 6G networks; the second network includes 2G and / or 3G networks.
17. The method according to claim 4, characterized in that, The first network includes one or more of 4G, 5G and 6G networks; the second network includes a 3G network.
18. The method according to claim 5, characterized in that, The first network includes one or more of 4G, 5G and 6G networks; the third network includes a 2G network.
19. A terminal, characterized in that, include: One or more processors, one or more memories, and a transceiver, wherein the transceiver, the one or more memories, and the one or more processors are coupled together, the one or more memories being used to store a computer program that, when the one or more processors execute the computer program, performs the network search method as described in any one of claims 1-18.
20. A computer-readable storage medium, characterized in that, The device contains a computer program that, when executed by a processor, implements the web-searching method as described in any one of claims 1-18.
21. A chip system, characterized in that, It includes a processing circuit and an interface circuit, wherein the interface circuit is used to receive code instructions and transmit them to the processing circuit, and the processing circuit is used to execute the code instructions to perform the network search method as described in any one of claims 1-18.
22. A computer program product, characterized in that, Includes a computer program, which, when executed by a processor, performs the network search method as described in any one of claims 1-18.