Sweeping method, related apparatus, device, and computer readable storage medium

By using satellite positioning to determine the location of terminal devices and performing targeted frequency scanning, the problem of low frequency scanning efficiency of terminal devices when searching for networks is solved, achieving the effects of fast network access and low power consumption.

CN116709469BActive Publication Date: 2026-07-31XI AN FIBOCOM WIRELESS SOFTWARE INC
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
XI AN FIBOCOM WIRELESS SOFTWARE INC
Filing Date
2023-06-25
Publication Date
2026-07-31

AI Technical Summary

Technical Problem

In existing technologies, when terminal devices perform network searches after powering on or disconnecting, the frequency scanning efficiency is low, resulting in prolonged network access time, which affects user experience and increases power consumption.

Method used

By using satellite positioning to determine whether the terminal device is located indoors or outdoors, targeted indoor or outdoor frequency scanning is performed to avoid unnecessary frequency scanning. Historical frequency information tables and PLMN frequency information tables are used to accelerate the frequency scanning process.

Benefits of technology

It improves frequency scanning efficiency, reduces network search time, lowers the overall power consumption of terminal devices, and enhances the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116709469B_ABST
    Figure CN116709469B_ABST
Patent Text Reader

Abstract

This application discloses a frequency scanning method, related apparatus, device, and computer-readable storage medium. The frequency scanning method includes: performing satellite positioning when there is no signal service for the terminal device; if satellite positioning is successful within a first preset time, performing frequency scanning based on outdoor frequencies; if satellite positioning fails to achieve positioning within the first preset time, performing frequency scanning based on indoor frequencies. This application embodiment can determine whether the terminal device is located indoors or outdoors based on satellite positioning. If it is outdoors, outdoor frequencies can be scanned specifically; if it is indoors, indoor frequencies can be scanned specifically. This avoids unnecessary frequency scanning and improves frequency scanning efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and in particular to a frequency sweeping method, related apparatus, device, and computer-readable storage medium. Background Technology

[0002] When a terminal device is powered on or disconnected (no service), it needs to perform a network search to register with the network. The network search process may include steps such as PLMN (public land mobile network) selection, frequency scanning, cell search, decrypting system messages, cell selection, cell camping, and network registration.

[0003] Frequency scanning is primarily used to find available frequencies for network access. Therefore, the efficiency of frequency scanning affects the time required for terminal devices to access the network. Improving frequency scanning efficiency is a key concern for technical personnel. Summary of the Invention

[0004] This application discloses a frequency scanning method, related apparatus, device, and computer-readable storage medium, which can improve frequency scanning efficiency, thereby increasing the network access speed of terminal devices and improving user experience.

[0005] The first aspect discloses a frequency scanning method, which can be applied to terminal devices, modules within terminal devices (e.g., chips, communication modules, etc.), and logic modules or software capable of implementing all or part of the functions of the terminal device. The following description uses an application to a terminal device as an example. The frequency scanning method can include: performing satellite positioning when there is no signal service on the terminal device; if the satellite positioning is successful within a first preset time, performing frequency scanning based on outdoor frequencies; if the satellite positioning fails to achieve successful positioning within the first preset time, performing frequency scanning based on indoor frequencies.

[0006] In this embodiment, when the terminal device experiences a no-service situation, it can simultaneously initiate satellite positioning and then determine whether the terminal device is indoors or outdoors based on the satellite positioning result. For example, if satellite positioning is successful within a first preset time, the terminal device can be considered outdoors, and in this case, outdoor frequency points can be scanned specifically. Conversely, if satellite positioning fails to locate the device within the first preset time, the terminal device can be considered indoors, and indoor frequency points can be scanned specifically. This frequency point scanning method avoids unnecessary frequency point scanning, thereby improving the efficiency of frequency point scanning, which in turn improves the network access speed of the terminal device and enhances the user experience. Furthermore, since this method reduces the network search time of the terminal device, it can reduce the overall power consumption of the terminal device.

[0007] As one possible implementation, the frequency scanning based on outdoor frequencies includes: scanning outdoor frequencies in historical frequency ranges; and if no accessible frequency is found in the outdoor frequencies in the historical frequency ranges, scanning unscanned outdoor frequencies in the frequency bands supported by the terminal device.

[0008] In this embodiment, when the terminal device performs frequency scanning based on outdoor frequencies, it can first scan outdoor frequencies in the historical frequency list. If no accessible frequencies are found in the historical frequency list, it will then scan unscanned outdoor frequencies in the frequency bands supported by the terminal device. Since the probability of outdoor frequencies in the historical frequency list being accessible frequencies is relatively high, this method can further improve the network registration speed of the terminal device.

[0009] As one possible implementation, before performing frequency scanning based on outdoor frequencies, the method further includes: selecting a Public Land Mobile Network (PLMN); the frequency scanning based on outdoor frequencies includes: scanning outdoor frequencies in historical frequencies; if no accessible frequency is found in the outdoor frequencies in the historical frequencies, scanning unscanned outdoor frequencies corresponding to the PLMN.

[0010] In this embodiment, when performing frequency scanning based on outdoor frequencies, the PLMN selected by the terminal device can be further considered. When scanning outdoor frequencies, frequencies not belonging to the selected PLMN can be ignored, while the outdoor frequencies corresponding to the selected PLMN can be scanned. This further avoids unnecessary frequency scanning and improves scanning efficiency.

[0011] As one possible implementation, the frequency scanning based on indoor frequency points includes: scanning indoor frequency points in historical frequency points; if no accessible frequency point is found in the indoor frequency points in the historical frequency points, scanning unscanned indoor frequency points in the frequency bands supported by the terminal device.

[0012] In this embodiment, when the terminal device performs frequency scanning based on indoor distribution frequency points, it can first scan the indoor distribution frequency points in the historical frequency points. If no accessible frequency point is found in the historical frequency points, it will then scan the unscanned indoor distribution frequency points in the frequency bands supported by the terminal device. Since the probability of the indoor distribution frequency points in the historical frequency points being accessible frequency points is relatively high, this method can further improve the network registration speed of the terminal device.

[0013] In one possible implementation, the terminal device stores a historical frequency point information table, which includes historical frequency point information and a frequency point type corresponding to each historical frequency point. The frequency point type includes a first frequency point type, a second frequency point type, and a third frequency point type. The first frequency point type is used to indicate outdoor frequency points, the second frequency point type is used to indicate indoor frequency points, and the third frequency point type is used to indicate both outdoor and indoor frequency points. Scanning outdoor frequency points in historical frequency points includes scanning outdoor frequency points in historical frequency points based on the historical frequency point information table.

[0014] In this embodiment of the application, the terminal device may store a historical frequency point information table, and the terminal device may directly and quickly scan the outdoor frequency points in the historical frequency points based on the historical frequency point information table.

[0015] In one possible implementation, the terminal device stores a PLMN frequency point information table, which stores frequency point information corresponding to one or more PLMNs, and frequency point type corresponding to each frequency point; the frequency point type includes a first frequency point type, a second frequency point type, and a third frequency point type, the first frequency point type is used to indicate outdoor frequency points, the second frequency point type is used to indicate indoor frequency points, and the third frequency point type is used to indicate both outdoor and indoor frequency points; scanning the unscanned outdoor frequency points corresponding to the PLMN includes: scanning the unscanned outdoor frequency points corresponding to the PLMN based on the PLMN frequency point information table.

[0016] In this embodiment, the terminal device may store a PLMN frequency point information table, and the terminal device may directly and quickly scan the unscanned outdoor frequency points corresponding to the selected PLMN based on the PLMN frequency point information table.

[0017] As one possible implementation, when the terminal device signal is unavailable, the method further includes: scanning the historical frequency points if a first condition is met; if no accessible frequency point is found in the historical frequency points and the first condition is met, scanning unscanned frequency points in the frequency bands supported by the terminal device; the first condition includes: the terminal device has not yet successfully positioned itself using satellite and the satellite positioning time has not yet exceeded the first preset time.

[0018] In this embodiment, when a terminal device experiences a no-service condition, if the first condition is met—that is, before the terminal device performs satellite positioning but has not determined whether it is indoors or outdoors—the terminal device can scan historical frequency points. If no accessible frequency point is found in the historical frequency points, and the first condition is still met, the terminal device scans unscanned frequency points within its supported frequency bands. This allows for full utilization of time, further improving the efficiency of frequency point scanning and increasing the terminal device's network access speed.

[0019] As one possible implementation, when the terminal device signal is unavailable, the method further includes: if the previous satellite positioning was successful within a first preset time and the first condition is met, performing frequency scanning based on the outdoor frequency; if the previous satellite positioning was unsuccessful within the first preset time and the first condition is met, performing frequency scanning based on the indoor frequency.

[0020] In this embodiment, when the terminal device experiences a no-service condition, it can perform frequency scanning based on the previous satellite positioning result if a first condition is met. If the previous satellite positioning was successful within a first preset time, the terminal device can perform frequency scanning based on outdoor frequencies. If the previous satellite positioning was unsuccessful within the first preset time, the terminal device can perform frequency scanning based on indoor frequencies. This fully utilizes time, further improves the efficiency of frequency scanning, and increases the network access speed of the terminal device.

[0021] The second aspect discloses a frequency sweeping device, which can be a communication module in a terminal device, and the frequency sweeping device can include:

[0022] The positioning module is used for satellite positioning when there is no signal service on the terminal device;

[0023] The frequency scanning module is used to perform frequency scanning based on outdoor frequencies when the satellite positioning is successful within a first preset time.

[0024] The frequency scanning module is also used to perform frequency scanning based on the indoor frequency when the satellite positioning fails to locate successfully within a first preset time.

[0025] As one possible implementation, the frequency scanning module performs frequency scanning based on outdoor frequencies, specifically including:

[0026] Scan outdoor frequencies in historical frequency data;

[0027] If no accessible frequency is found among the outdoor frequency points in the historical frequency points, the system scans for unscanned outdoor frequency points in the frequency bands supported by the terminal device.

[0028] As one possible implementation, the frequency sweeping device may further include:

[0029] The selection module is used to select a public terrestrial mobile network (PLMN) before frequency scanning based on outdoor frequency points.

[0030] The frequency scanning module performs frequency scanning based on outdoor frequencies, including:

[0031] Scan outdoor frequencies in historical frequency data;

[0032] If no accessible frequency is found among the outdoor frequencies in the historical frequency list, the unscanned outdoor frequency corresponding to the PLMN is scanned.

[0033] As one possible implementation, the frequency scanning module performs frequency scanning based on the indoor frequency point, including:

[0034] Scan indoor frequency points in historical frequency points;

[0035] If no accessible frequency is found among the indoor frequency points in the historical frequency points, the system scans for unscanned indoor frequency points in the frequency bands supported by the terminal device.

[0036] As one possible implementation, the frequency sweeping device may further include:

[0037] A storage module is used to store a historical frequency point information table, which includes historical frequency point information and frequency point type corresponding to each historical frequency point. The frequency point type includes a first frequency point type, a second frequency point type, and a third frequency point type. The first frequency point type is used to indicate outdoor frequency points, the second frequency point type is used to indicate indoor frequency points, and the third frequency point type is used to indicate both outdoor and indoor frequency points.

[0038] The frequency scanning module scans outdoor frequencies in historical frequency points, including:

[0039] Based on the historical frequency information table, scan the outdoor frequency points in the historical frequency points.

[0040] As one possible implementation, when there is no service on the terminal device, the frequency scanning module can also be used for:

[0041] If the first condition is met, scan the historical frequency points;

[0042] If no accessible frequency point is found in the historical frequency points and the first condition is met, scan the unscanned frequency points in the frequency bands supported by the terminal device; the first condition includes: the satellite positioning of the terminal device has not yet been successful and the satellite positioning time has not exceeded the first preset time.

[0043] As one possible implementation, when there is no service on the terminal device, the frequency scanning module can also be used for:

[0044] If the previous satellite positioning was successful within the first preset time and the first condition was met, frequency scanning was performed based on the outdoor frequency.

[0045] If the previous satellite positioning failed to locate successfully within the first preset time and the first condition is met, frequency scanning is performed based on the indoor frequency point.

[0046] The third aspect discloses a terminal device, which includes a processor and a memory. The processor calls a computer program or computer instructions stored in the memory to implement the frequency sweeping method provided in the first aspect and any possible implementation thereof.

[0047] The fourth aspect discloses a computer-readable storage medium storing a computer program or computer instructions, which, when executed, implements the frequency scanning method disclosed in the above aspects.

[0048] The fifth aspect discloses a chip including a processor for executing a program stored in a memory, which, when executed, causes the chip to perform the frequency sweeping method disclosed in the above aspects.

[0049] As one possible implementation, the memory is located outside the chip.

[0050] The sixth aspect discloses a computer program product comprising computer program code, which, when executed, causes the frequency scanning methods disclosed in the above aspects to be performed.

[0051] It should be understood that the implementation and beneficial effects of the above-mentioned aspects or any possible implementation methods of this application can be referred to each other. Attached Figure Description

[0052] The accompanying drawings are provided to more clearly illustrate the technical solutions of the embodiments of this application. The drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0053] Figure 1 This is a flowchart illustrating a frequency sweeping method disclosed in an embodiment of this application;

[0054] Figure 2 This is a schematic diagram of the structure of a frequency sweeping device provided in an embodiment of this application;

[0055] Figure 3 This is a schematic diagram of the structure of a terminal device disclosed in an embodiment of this application. Detailed Implementation

[0056] This application discloses a frequency scanning method, related apparatus, device, and computer-readable storage medium, which can improve frequency scanning efficiency, reduce user waiting time, and enhance user experience. The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings.

[0057] To better understand the embodiments of this application, the relevant technologies of the embodiments of this application will be described below.

[0058] Satellite ephemeris (or simply ephemeris), also known as two-line orbital element (TLE), is an expression used to describe the position and velocity of a spacecraft. Satellite ephemeris determines a spacecraft's time, coordinates, azimuth, velocity, and other parameters using the mathematical relationships between the six orbital parameters of Kepler's laws, exhibiting extremely high precision. Satellite ephemeris time is calculated according to Coordinated Universal Time (UTC), and it is updated regularly.

[0059] Base stations generally fall into two categories: macro base stations and indoor distributed base stations (DPS). Macro base stations typically refer to outdoor sites with wide-area coverage and clearly visible antennas. Indoor DPS, on the other hand, are typically installed indoors to address situations where macro base stations cannot provide coverage or where indoor signal coverage is very poor. Simply put, they are sites set up to ensure signal coverage in indoor areas with no or poor coverage. Indoor DPS antennas are usually ceiling-mounted antennas. For example, they are commonly found in hotel corridors, underground parking lots, and subway stations—places where macro base station signal coverage is poor or nonexistent.

[0060] In related technologies, when a terminal device powers on or loses connection (no service), it needs to perform a network search to register with the network. The network search process may include steps such as PLMN (public land mobile network) selection, frequency scanning, cell search, system message decoding, cell selection, cell camping, and registration. Frequency scanning is further divided into historical frequency scanning (system scan) and full-band scanning (band scan). Generally, the terminal device will first perform a historical frequency scan. If no accessible frequency is found in the historical frequency scan, a full-band scan can be performed. During historical frequency scanning, the terminal device will sequentially scan stored historical frequencies, perform cell search, and attempt to camp on the frequencies of the found cells. If camping is successful, a full-band scan is not necessary. When no accessible frequency is found in the historical frequency scan, the terminal device can perform a full-band scan. During a full-band scan, the terminal device can scan for and camp on all supported frequency bands. For example, a terminal device can select up to 50 candidate frequencies from each frequency band it supports, and then perform cell search based on these candidate frequencies. It can then attempt to camp on the frequencies of the searched cells. If the camping is successful, the terminal device can register with the network.

[0061] Due to the complexity of the current network environment and the mobility of terminal devices, users' terminal devices are used in different scenarios. When entering or exiting underground parking lots, subway stations, or elevators, prolonged periods of "No Service" often occur. This is because macro base station signals generally have good outdoor coverage, but in places like underground parking lots and subway stations, macro base station signals have poor or no coverage. Underground parking lots and subway stations typically have indoor distributed antenna system (DAS) stations, whose signals cover indoor areas like underground parking lots and subway stations, but their signals cannot reach outdoors or have very poor coverage. Therefore, when entering or exiting underground parking lots, subway stations, or elevators, terminal devices frequently rescan for the network, leading to prolonged periods of "No Service." In other words, when a terminal device is outdoors, it can generally register with the network through a macro base station, while when it is indoors, it can generally register with the network through an indoor DAS station.

[0062] To address the aforementioned issues, in this embodiment, when a terminal device needs to search for a network to access it, it can first determine whether the terminal device is located outdoors or indoors based on the location duration. If the terminal device is determined to be outdoors, outdoor frequency points (macro station frequency points) can be scanned; if the terminal device is determined to be indoors, indoor distribution frequency points can be scanned. This avoids unnecessary frequency scanning, improves network search efficiency, and allows the terminal device to register with the network more quickly, thereby enhancing the user experience.

[0063] It should be noted that the frequency scanning method disclosed in this application can be applied to terminal devices. Terminal devices, also known as user equipment (UE), mobile station (MS), mobile terminal (MT), etc., are devices that provide voice and / or data connectivity to users. Terminal devices can include handheld terminals, laptops, subscriber units, cellular phones, smartphones, wireless data cards, personal digital assistant (PDA) computers, tablet computers, wireless modems, handheld devices, laptop computers, cordless phones, wireless local loop (WLL) stations, machine-type communication (MTC) terminals, wearable devices (such as smartwatches, smart bracelets, pedometers, etc.), in-vehicle equipment (such as cars, bicycles, electric vehicles, airplanes, ships, trains, high-speed trains, etc.), virtual reality (VR) devices, augmented reality (AR) devices, wireless terminals in industrial control, smart home devices (such as refrigerators, televisions, air conditioners, electricity meters, etc.), intelligent robots, workshop equipment, wireless terminals in self-driving vehicles, wireless terminals in remote medical surgery, and smart grids. Wireless terminals in a grid, wireless terminals in transportation safety, wireless terminals in a smart city, or wireless terminals in a smart home, flying equipment (such as intelligent robots, drones, airplanes, etc.) or other devices that can access the network.

[0064] It should be understood that terminal devices can communicate with base stations. A base station (BS) is a device deployed in a wireless access network to provide wireless communication functions for terminal devices. Base stations may include, but are not limited to, macro base stations and indoor distributed base stations.

[0065] It should also be noted that the frequency scanning method disclosed in this application can be applied to scenarios where terminal devices need to scan frequencies and register on the network. For example, scenarios such as when a terminal device powers on, restarts, or inserts / removes a SIM (subscriber identity module) card. Another example is when a terminal device enters or exits a subway station or underground parking lot, because in these scenarios, it is often necessary to switch from an indoor distributed antenna system (DAS) station to a macro station, and vice versa, to register on the network. It should be understood that the application scenarios of this application are not limited to the scenarios mentioned above, and are also applicable to other scenarios requiring switching from an indoor DAS station to a macro station, or vice versa.

[0066] The following is combined Figure 1 This application describes a frequency scanning method disclosed in its embodiments, such as... Figure 1 As shown, the method may include, but is not limited to, the following steps:

[0067] 101. Power on the terminal device.

[0068] 102. The terminal device is initialized.

[0069] Terminal device initialization may include SIM card identification and reading network search-related information or parameters (including NV items), such as access technology, network search mode, historical frequency information, etc. During SIM card identification, information such as PLMN can be obtained, allowing identification of the corresponding telecommunications operator for the SIM card.

[0070] It should be noted that the terminal device may include a communication module. During terminal device initialization, the communication operator corresponding to the SIM card can be determined. This allows the information of the indoor and outdoor frequency points corresponding to that operator to be programmed into the communication module. Alternatively, the information of the indoor and outdoor frequency points corresponding to one or more PLMNs associated with the communication operator can be programmed into the communication module for use during subsequent network search. For example, when the PLMN corresponding to the SIM card is determined to be 46000, Tables 3 and 4 below can be programmed into the communication module for use during network search.

[0071] 103. The terminal device performs its first satellite positioning and downloads the ephemeris.

[0072] After the terminal device completes initialization, it can initiate a satellite positioning operation, such as BeiDou Navigation Satellite System (BDS) positioning or Global Positioning System (GPS) positioning. Furthermore, the terminal device can download the corresponding ephemeris data.

[0073] Because the positioning accuracy of ephemeris data decreases approximately every 2-4 hours, terminal devices can periodically update the ephemeris, such as every 2 hours. This allows for rapid location determination, identifying whether the environment is indoors or outdoors, should a service outage occur. When updating the ephemeris, the terminal device can obtain the corresponding ephemeris data from satellites or the latest ephemeris data from the network.

[0074] 104. Terminal devices can search for networks and register with them.

[0075] When a terminal device searches for a network, it can first scan historical frequency points. If an accessible frequency point is found during this scan, the terminal device can register with the network by camping on that frequency. If no accessible frequency point is found after scanning historical frequency points, the terminal device can perform a full-band scan, meaning it can scan for frequency points based on its supported frequency bands to register with the network.

[0076] It should be noted that steps 103 and 104 can be executed simultaneously, and step 103 can be executed before or after step 104. This application embodiment does not restrict the execution order of steps 103 and 104. It should also be noted that in some embodiments, step 103 may not need to be executed. In this case, the terminal device can obtain ephemeris data through the network after registering with the network.

[0077] 105. When the terminal device experiences a lack of service, it shall perform a second satellite positioning.

[0078] After step 104, the terminal device can register with the network and then access the network normally. However, in some cases, the terminal device may change from a network-enabled state to a service-free state, requiring it to re-search for the network. For example, when entering or exiting underground parking lots or subway stations, the terminal device may change from a network-enabled state to a service-free state. It should be understood that "service-free" can mean no signal or inability to access the network, such as no 4G signal or no 5G signal.

[0079] When a terminal device detects a lack of service, it can simultaneously perform a second satellite positioning. It should be understood that the first and second satellite positioning can differ. For the second positioning, the terminal device has pre-stored ephemeris data, while for the first positioning, it has not. Therefore, the second positioning does not require ephemeris download time and can directly perform positioning based on the currently stored ephemeris, resulting in a faster positioning speed compared to the first positioning. This facilitates a quicker determination of whether the terminal device is indoors or outdoors.

[0080] 106. The terminal device determines whether the second satellite positioning was successful within the first preset time. If the second satellite positioning was successful within the first preset time, the terminal device can proceed to step 107. If the second satellite positioning was not successful within the first preset time, the terminal device can proceed to step 108.

[0081] In order to perform targeted scanning of outdoor or indoor frequency points based on the location of the terminal device, the terminal device can determine whether the second satellite positioning is successful within a first preset time. If the second satellite positioning is successful within the first preset time, it indicates that the terminal device is located outdoors, and the terminal device can execute step 107. If the second satellite positioning is not successful within the first preset time, it indicates that the terminal device is located indoors, and the terminal device can execute step 108.

[0082] The first preset time can be a value between 15 and 30 seconds, for example, 18 seconds. If the second satellite positioning is successful within 15 seconds, the terminal device can determine that the second satellite positioning was successful within the first preset time of 18 seconds, and therefore, step 107 can be executed. If the second satellite positioning has not succeeded within 18 seconds, the terminal device can determine that the second satellite positioning was not successful within the first preset time of 18 seconds, and therefore, step 108 can be executed. It should be noted that the first preset time of 15 to 30 seconds is based on a large amount of experimental data. When the ephemeris is stored, if the terminal device is outdoors, its positioning time is generally a value between 15 and 30 seconds.

[0083] 107. The terminal device scans based on outdoor frequency points and registers with the network.

[0084] If the second satellite positioning is successful within the first preset time, it indicates that the terminal device is most likely located outdoors, and the terminal device can then specifically scan for outdoor frequencies. It should be understood that the terminal device can select a PLMN before scanning frequencies.

[0085] It should be noted that the outdoor and indoor frequency bands configured by telecommunications operators are generally not exactly the same. In other words, a telecommunications operator typically will not configure all available frequency bands as both outdoor and indoor frequency bands. One common configuration method is to configure some frequency bands as outdoor frequency bands, another group as indoor frequency bands, and yet another group as both outdoor and indoor frequency bands. For example, assuming frequency bands 1-10 are included, frequency bands 1-5 can be configured as outdoor frequency bands, frequency bands 6-8 can be configured as indoor frequency bands, and frequency bands 9 and 10 can be configured as both outdoor and indoor frequency bands.

[0086] Specifically, when the terminal device scans based on outdoor frequency points, it can first scan the outdoor frequency points in the historical frequency points, and if no accessible frequency point is found, then scan other outdoor frequency points corresponding to the PLMN.

[0087] In one possible implementation, the terminal device can store one or more historical frequency points, and the frequency point type corresponding to each historical frequency point. In this embodiment, the frequency point type corresponding to a historical frequency point can include three types: indoor frequency point, outdoor frequency point, and indoor and outdoor frequency point. Specifically, if a frequency point corresponds to an indoor frequency point, it indicates that the frequency point is used as an indoor frequency point. If a frequency point corresponds to an outdoor frequency point, it indicates that the frequency point is used as an outdoor frequency point. If a frequency point corresponds to both indoor and outdoor frequency points, it indicates that the frequency point is used as both an indoor and outdoor frequency point.

[0088] For example, outdoor frequency type can be identified by 0, indoor frequency type by 1, and both indoor and outdoor frequency types by 2. The terminal device can store a historical frequency information table, as shown in Table 1 below:

[0089] Table 1

[0090]

[0091]

[0092] In Table 1 above, the first column can be frequency point information, and the second column can be the frequency point type corresponding to each frequency point. For example, for the historical frequency point 3525, the terminal device can determine that the frequency point type corresponding to frequency point 3525 is 0, that is, an outdoor frequency point. It can be understood that the PLMN identifier generally includes two parts: one is the MCC (mobile country code), and the other is the MNC (mobile network code). That is to say, PLMN = MCC + MNC.

[0093] When a terminal device scans outdoor frequencies, it can first scan outdoor frequencies from the historical frequency list. In other words, the terminal device can scan frequencies with a frequency type of 0 or 2 in the historical frequency list. For Table 1, the terminal device can sequentially scan frequencies 1300, 3525, 3863, 20175, and 36275, which have a frequency type of 0 or 2, but does not need to scan frequencies with a frequency type of 1, such as 26048. This reduces unnecessary frequency scanning and improves frequency scanning efficiency.

[0094] In one possible implementation, when the terminal device scans outdoor frequencies from historical frequency points, it can also combine this with a selected PLMN. That is, the terminal device can scan the outdoor frequency corresponding to the selected PLMN from historical frequency points.

[0095] During the scanning of outdoor frequencies in historical frequency lists, if an accessible frequency is found, the terminal device can register with the network by camping on that frequency. If no accessible frequency is found after scanning all outdoor frequencies in historical lists, the terminal device can continue scanning other outdoor frequencies corresponding to the PLMN. In one possible implementation, the terminal device can store frequency information for each PLMN, as well as the frequency type for each frequency. For example, the terminal device can store a PLMN frequency information table, as shown in Table 2 below:

[0096] Table 2

[0097]

[0098]

[0099] In Table 2 above, the first column can be PLMN information, the second column can be frequency band information, the third column can be frequency point information, and the fourth column can be the frequency point type corresponding to the frequency point. For example, the terminal device can obtain all frequency points with frequency point type 0 corresponding to PLMN 46000 from Table 2, that is, it can obtain all outdoor frequency points corresponding to PLMN 46000, such as frequency point 1300 in band 3, and frequency points 3525, 3863, and 9375 in band 8. It should be noted that Tables 1 and 2 above are merely illustrative examples, and the embodiments of this application do not constitute a limitation thereof. In other embodiments of this application, Tables 1 and 2 may include more or less information. For example, Table 1 may also include a third column for identifying the PLMN corresponding to each frequency point. For example, in Table 2 above, frequencies that can be both outdoor and indoor frequencies are labeled as 0 and 1, such as frequency 1300 in band 3, which has a frequency type of 0 and 1. However, the actual frequency type corresponding to frequency 1300 in band 3 is 2. Therefore, in another possible implementation, frequencies that can be both outdoor and indoor frequencies can be directly labeled as 2, without being labeled as 0 and 1, because frequency type 2 can indicate that the frequency can be both outdoor and indoor. For another example, Table 2 can also be split into multiple tables for storage. For example, the frequency information with frequency type 0 corresponding to each PLMN can be stored in one table, and the frequency information with frequency type 1 corresponding to each PLMN can be stored in another table. In this way, each PLMN can include two corresponding tables for storing frequency information. For example, the information of the outdoor frequency corresponding to 46000 can be stored in Table 3 below, and the information of the indoor frequency corresponding to 46000 can be stored in Table 4 below. Tables 3 and 4 are shown below in detail:

[0100] Table 3

[0101] frequency band frequency band3 1300 band8 3525、3863、9375 …… …… band34 20175、36275 band38 25850、26048

[0102] Table 4

[0103] frequency band frequency band3 1275、1300、1350、1400 band8 3683 …… …… band34 36275 band38 26048、37900、38098

[0104] It should be noted that in Tables 2, 3, and 4 above, the indoor or outdoor frequency points corresponding to a PLMN can be a subset of those frequencies (e.g., the most commonly used outdoor frequency among all outdoor frequencies corresponding to a PLMN). In other words, Tables 2, 3, and 4 may not store information on all indoor or outdoor frequency points corresponding to a PLMN. Furthermore, the indoor or outdoor frequency points corresponding to a PLMN may be updated, such as when operators re-plan frequency allocation. Therefore, Tables 2, 3, and 4 can also be updated, such as periodically.

[0105] When the terminal device scans other outdoor frequencies corresponding to the PLMN, it can scan the frequencies with frequency type 0 or 2 corresponding to the PLMN in the PLMN frequency information table. For example, assuming the currently selected PLMN is 46000, according to Table 2, the terminal device can sequentially scan the frequencies with frequency type 0 or 2 corresponding to PLMN 46000, which may include frequency 1300 in band 3, and frequencies 3525, 3863, and 9375 in band 8, etc. The terminal device does not need to scan the frequencies with frequency type 1 corresponding to PLMN 46000, nor does it need to scan the frequencies corresponding to PLMNs other than 46000. This reduces unnecessary frequency scanning and improves frequency scanning efficiency.

[0106] During the scanning of other outdoor frequencies corresponding to the PLMN, if an accessible frequency is found, the terminal device can camp on the cell based on the accessible frequency to register with the network. If the scanning of other outdoor frequencies corresponding to the PLMN is completed but no accessible frequency is found, the terminal device can continue scanning other unscanned frequencies. For example, the terminal device can perform a full-band scan, scanning unscanned frequencies within the frequency bands supported by the terminal device. During this process, if an accessible frequency is found, the terminal device can camp on the cell based on the accessible frequency. If no accessible frequency is found, the terminal device can repeat step 107, or wait for a period of time before repeating step 107, or the terminal device can repeat step 105, or wait for a period of time before repeating step 105.

[0107] Understandably, when a terminal device registers with a network based on a certain frequency point, if that frequency point is not a historical frequency point, the terminal device can store it as a new historical frequency point, and can also store its corresponding frequency point type information, etc. In some embodiments, there is a maximum limit to the number of historical frequency points that the terminal device can store, such as a maximum of 20 historical frequency points. Therefore, if 20 historical frequency points have already been stored, when the terminal device stores the frequency point currently registered with the network, it can delete one or more frequency points. For example, the oldest historical frequency point can be deleted.

[0108] It is also understandable that when scanning frequency points, terminal devices may only scan the frequency points of the frequency bands they support.

[0109] It should be noted that the above description using the second satellite positioning is for ease of description and does not limit the terminal device to performing a second satellite positioning only after the first satellite positioning upon power-up and until the next time service is unavailable. In other words, the terminal device can perform satellite positioning after power-up until the next time service is unavailable, and there is no limit to the number of times satellite positioning can be performed.

[0110] 108. The terminal device scans based on the indoor frequency point and registers with the network.

[0111] If the second satellite positioning fails to locate the device within the first preset time, it indicates that the terminal device is likely located indoors, and the terminal device can perform targeted scanning based on the indoor frequency point.

[0112] Specifically, when the terminal device scans based on the indoor frequency point, it can first scan the indoor frequency points in the historical frequency points, and if no accessible frequency point is found, it can then scan other indoor frequency points corresponding to the PLMN.

[0113] When a terminal device scans based on indoor frequency points, it can first scan the indoor frequency points in the historical frequency point information table. That is, the terminal device can scan frequency points with frequency point type 1 or 2 in the historical frequency point information table. For Table 1, the terminal device can sequentially scan frequency points 1300, 36275, 26048, etc., with frequency point type 1 or 2, and does not need to scan frequency points 3525, 3863, 20175, etc., with frequency point type 0. This reduces unnecessary frequency point scanning and improves frequency point scanning efficiency.

[0114] In one possible implementation, when the terminal device scans indoor frequency points in the historical frequency list, it can also combine the selected PLMN. That is, the terminal device can scan the indoor frequency point corresponding to the selected PLMN in the historical frequency list.

[0115] During the scanning of indoor frequency points in the historical frequency list, if an accessible frequency point is found, the terminal device can camp on the cell based on the accessible frequency point to register with the network. If the scanning of indoor frequency points in the historical frequency list is completed but no accessible frequency point is found, the terminal device can continue to scan other indoor frequency points corresponding to the PLMN.

[0116] When the terminal device scans other indoor distribution frequencies corresponding to the PLMN, it can scan the frequencies with frequency type 1 or 2 corresponding to the PLMN in the PLMN frequency information table. For example, assuming the currently selected PLMN is 46000, according to Table 2, the terminal device can sequentially scan the frequencies with frequency type 1 or 2 corresponding to PLMN 46000, which may include frequencies 1275, 1300, 1350, and 1400 in band3, and frequency 3863 in band8, etc. The terminal device does not need to scan the frequencies with frequency type 0 corresponding to PLMN 46000, nor does it need to scan the frequencies corresponding to PLMNs other than 46000. This reduces unnecessary frequency scanning and improves frequency scanning efficiency.

[0117] During the scanning process of other indoor distribution frequency points corresponding to the PLMN, if an accessible frequency point is found, the terminal device can camp on the cell based on the accessible frequency point to register with the network. If the scanning of other indoor distribution frequency points corresponding to the PLMN is completed but no accessible frequency point is found, the terminal device can continue scanning other unscanned frequency points. For example, the terminal device can perform a full-band scan, scanning unscanned frequency points in the frequency bands supported by the terminal device. During this process, if an accessible frequency point is found, the terminal device can camp on the cell based on the accessible frequency point. If no accessible frequency point is found, the terminal device can repeat step 108, or wait for a period of time before repeating step 108, or the terminal device can repeat step 105, or wait for a period of time before repeating step 105.

[0118] In one possible implementation, when scanning frequency points, the terminal device can scan based on frequency point type instead of PLMN. That is, when scanning based on indoor frequency points, the terminal device can sequentially scan all indoor frequency points corresponding to PLMNs; similarly, when scanning based on indoor frequency points, the terminal device can sequentially scan all indoor frequency points corresponding to PLMNs. For example, assuming the currently selected PLMN is 46000, according to Table 2, when the terminal device scans based on outdoor frequency points, it can sequentially scan frequency points of type 0 or 2 corresponding to PLMNs 46000, 46001, etc., and does not need to scan frequency points of type 1 corresponding to PLMNs 46000, 46001, etc.

[0119] It should be noted that in this embodiment, since it takes a certain amount of time to determine whether the terminal device is indoors or outdoors, in order to further improve the frequency scanning efficiency of the terminal device, in one possible implementation, before the terminal device performs a second satellite positioning but before determining whether the terminal device is indoors or outdoors, the terminal device can scan historical frequency points. If the historical frequency point scan is completed but no accessible frequency point is found, and the location of the terminal device is still not determined, a full-band scan can continue, that is, frequency point scanning based on the frequency bands supported by the terminal device. However, if the terminal device determines whether it is indoors or outdoors during the historical frequency point scan and full-band scan, the terminal device can stop the current scan and execute step 107 or step 108 to perform targeted frequency point scanning. However, at this time, the terminal device does not need to scan the previously scanned frequency points. Therefore, in this case, before the terminal device performs a second satellite positioning but before determining whether the terminal device is indoors or outdoors, it can perform partial frequency point scanning, making full use of time to improve frequency point scanning efficiency.

[0120] In another possible implementation, the terminal device may have performed satellite positioning before the service was unavailable. In this case, the terminal device can perform frequency scanning based on the previous satellite positioning results. For example, the terminal device can perform satellite positioning in real-time or periodically, such as once every 10 seconds. Then, before the terminal device performs a second satellite positioning but before determining whether it is indoors or outdoors, it can perform frequency scanning based on the previous satellite positioning results. Specifically, if the previous satellite positioning is successful within a first preset time, the terminal device can perform frequency scanning based on outdoor frequencies. If the previous satellite positioning is unsuccessful within the first preset time, the terminal device can perform frequency scanning based on indoor frequencies. However, if, during the frequency scanning based on the previous satellite positioning results, the terminal device determines whether it is indoors or outdoors, it can stop the current scan and execute step 107 or step 108 to perform targeted frequency scanning. However, in this case, the terminal device does not need to scan previously scanned frequencies. Therefore, in this situation, before the terminal device performs a second satellite positioning and determines whether the terminal device is indoors or outdoors, it can also scan some frequency points, making full use of the time to improve the frequency scanning efficiency.

[0121] It should be noted that in some embodiments, after the terminal device powers on and initializes, when searching for a network, the terminal device can also perform a targeted network search based on the positioning duration. That is, after initialization, the terminal device can initiate the first satellite positioning. Then, the terminal device can determine whether the first satellite positioning was successful within a second preset time. If the first satellite positioning was successful within the second preset time, the terminal device can scan based on outdoor frequencies and register with the network. If the first satellite positioning was unsuccessful within the second preset time, the terminal device can scan based on indoor frequencies and register with the network. Since the ephemeris is not stored during the first satellite positioning, it needs to be obtained from the satellite; therefore, the second preset time can be longer than the first preset time. For example, the second preset time can be 30-45 seconds, such as 35 seconds.

[0122] In the above processing flow, when the terminal device has no service, satellite positioning can be performed simultaneously. Then, based on the positioning time, it can be determined whether the terminal device is indoors or outdoors, and targeted frequency scanning can be performed based on the terminal device's location. For example, when the terminal device is outdoors, outdoor frequencies can be scanned first; when the terminal device is indoors, indoor frequencies can be scanned first. This avoids unnecessary frequency scanning, thereby improving frequency scanning efficiency. This allows the terminal device to register with the network more quickly, reducing user waiting time and improving user experience.

[0123] It should be noted that the relevant information (i.e., the same or similar information) and related descriptions in the different embodiments described above can be referenced from each other.

[0124] It should also be noted that the above description uses a terminal device as the executing entity to illustrate the processing flow, but this application does not limit the executing entity. For example, Figure 1 The relevant steps executed by the terminal device can also be executed by a module (such as a communication module), chip, chip system, or processor that supports the terminal device in implementing the method, or by a logic module or software that can implement all or part of the terminal backup functions.

[0125] Please see Figure 2 , Figure 2 This is a schematic diagram of a frequency scanning device provided in an embodiment of this application. The frequency scanning device 200 can be a module in the aforementioned terminal device. The frequency scanning device 200 may include a positioning module 201, a frequency point scanning module 202, a selection module 203, and a storage module 204. The detailed description of each module is as follows:

[0126] The positioning module 201 is used to perform satellite positioning when there is no signal service on the terminal device;

[0127] Frequency scanning module 202 is used to perform frequency scanning based on outdoor frequencies when satellite positioning is successful within a first preset time.

[0128] The frequency scanning module 202 is also used to perform frequency scanning based on the indoor frequency when satellite positioning fails to achieve positioning within the first preset time.

[0129] In one possible implementation, the frequency scanning module 202 performs frequency scanning based on outdoor frequencies, specifically including:

[0130] Scan outdoor frequencies in historical frequency data;

[0131] If no accessible frequency is found among the outdoor frequencies in the historical frequency list, scan the outdoor frequencies that have not been scanned in the frequency bands supported by the terminal device.

[0132] In one possible implementation, the frequency sweeping device may further include:

[0133] Selection module 203 is used to select a public terrestrial mobile network (PLMN) before frequency scanning based on outdoor frequencies.

[0134] Frequency scanning module 202 performs frequency scanning based on outdoor frequencies, including:

[0135] Scan outdoor frequencies in historical frequency data;

[0136] If no accessible frequency is found among the outdoor frequencies in the historical frequency list, scan the unscanned outdoor frequencies corresponding to the PLMN.

[0137] In one possible implementation, the frequency scanning module 202 performs frequency scanning based on the indoor frequency point, including:

[0138] Scan indoor frequency points in historical frequency points;

[0139] If no accessible frequency is found among the indoor frequency points in the historical frequency points, scan the indoor frequency points that have not been scanned in the frequency bands supported by the terminal equipment.

[0140] In one possible implementation, the frequency sweeping device may further include:

[0141] The storage module 204 is used to store a historical frequency point information table. The historical frequency point information table includes historical frequency point information and the frequency point type corresponding to each historical frequency point. The frequency point type includes a first frequency point type, a second frequency point type and a third frequency point type. The first frequency point type is used to indicate outdoor frequency points, the second frequency point type is used to indicate indoor frequency points, and the third frequency point type is used to indicate both outdoor and indoor frequency points.

[0142] The frequency scanning module 202 scans outdoor frequencies in the historical frequency range, including:

[0143] Based on the historical frequency information table, scan the outdoor frequency points in the historical frequency points.

[0144] In one possible implementation, when there is no service on the terminal device signal, the frequency scanning module 202 can also be used for:

[0145] If the first condition is met, scan historical frequency points;

[0146] If no accessible frequency is found in the historical frequency points and the first condition is met, scan the unscanned frequency points in the frequency bands supported by the terminal device; the first condition includes: the terminal device has not yet successfully positioned itself by satellite and the satellite positioning time has not exceeded the first preset time.

[0147] In one possible implementation, when there is no service on the terminal device signal, the frequency scanning module 202 can also be used for:

[0148] If the previous satellite positioning was successful within the first preset time and the first condition was met, frequency scanning was performed based on the outdoor frequency.

[0149] If the previous satellite positioning failed to locate successfully within the first preset time and the first condition is met, frequency scanning is performed based on the indoor frequency point.

[0150] Please see Figure 3 , Figure 3 This is a schematic diagram of the structure of a terminal device disclosed in an embodiment of this application. The terminal device 300 may include a processor 301, a communication interface 302, and a memory 303. The processor 301, communication interface 302, and memory 303 may be interconnected or interconnected via a bus 304.

[0151] For example, memory 303 is used to store computer programs and data of terminal device 300. Memory 303 may include, but is not limited to, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), compact disc read-only memory (CD-ROM), magnetic disk storage media, or other magnetic storage devices. Communication interface 302 is used to support terminal device 300 in communication, such as receiving or sending data.

[0152] For example, processor 301 may be a central processing unit (CPU), a complex programmable logic device, a general-purpose processor, a digital signal processor, an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. Processor 301 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a digital signal processor and a microprocessor, etc. For example, memory 303 may be independent and connected to processor 301 via a bus. Memory 303 and processor 301 may also be integrated together.

[0153] In one embodiment, the terminal device 300 can be the aforementioned terminal device, and the processor 301 can be used to read the program stored in the aforementioned memory 303 and execute the aforementioned program. Figure 1 The operations performed by the terminal device or components in the terminal device in the method embodiments shown can be referred to the above-mentioned descriptions, and will not be repeated in detail here.

[0154] It should be noted that, Figure 3 The terminal device 300 shown is merely one implementation of the embodiments of this application. In actual applications, the terminal device 300 may include more or fewer components, which is not limited here.

[0155] This application also discloses a computer-readable storage medium storing instructions thereon, which, when executed, perform the methods described in the above method embodiments.

[0156] This application also discloses a computer program product including instructions that, when executed, perform the methods described in the above method embodiments.

[0157] This application provides a chip system including a processor for supporting communication devices in implementing the functions involved in the methods described in the above embodiments and their various possible modes.

[0158] In one possible design, the chip system further includes a memory for storing program instructions and data necessary for the communication device. The chip system can be composed of chips or may include chips and other discrete components.

[0159] It should be understood that "communication" in this application can be understood as direct communication or indirect communication, that is, communication through other devices, modules, apparatuses, etc.

[0160] Obviously, the embodiments described above are only some embodiments of this application, and not all embodiments. The term "embodiment" as used herein means that a specific feature, structure, or characteristic described in connection with an embodiment can be included in at least one embodiment of this application. The appearance of this phrase in various places in the specification does not necessarily indicate the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art will understand, explicitly and implicitly, that the embodiments described herein can be combined with other embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without inventive effort are within the scope of protection of this application. The terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish different objects and are not used to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, it may include a series of steps or units, or optionally, steps or units not listed, or optionally other steps or units inherent to these processes, methods, products, or devices.

[0161] It is understood that the accompanying drawings show only the parts relevant to this application and not all of them. It should be understood that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe operations (or steps) as sequential processes, many of these operations can be performed in parallel, concurrently, or simultaneously. Furthermore, the order of the operations can be rearranged. The process can be terminated when its operation is completed, but may also have additional steps not included in the drawings. The process can correspond to a method, function, procedure, subroutine, subroutine, etc.

[0162] The terms "component," "module," "system," "unit," etc., used in this specification are used to denote computer-related entities, hardware, firmware, combinations of hardware and software, software, or software in execution. For example, a unit can be, but is not limited to, a process running on a processor, a processor, an object, an executable file, an execution thread, a program, and / or distributed between two or more computers. Furthermore, these units can be executed from various computer-readable media on which various data structures are stored. Units can communicate, for example, via signals having one or more data packets (e.g., data from a second unit interacting with another unit between a local system, a distributed system, and / or a network; for example, the Internet interacting with other systems via signals). The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of this application. It should be understood that the above descriptions are merely specific embodiments of this application and are not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, improvements, etc., made based on the technical solution of this application should be included within the scope of protection of this application.

Claims

1. A frequency-sweeping method characterized by, The method includes: Satellite positioning is performed when there is no signal service on the terminal device; If the satellite positioning is successful within a first preset time, frequency scanning is performed based on the outdoor frequency. If the satellite positioning fails to locate successfully within the first preset time, frequency scanning is performed based on the indoor frequency point; In the event that the terminal device has no signal service, the method further includes: If the first condition is met, scan historical frequency points; if no accessible frequency point is found among the historical frequency points, and the first condition is met, scan unscanned frequency points within the frequency bands supported by the terminal device; or... If the previous satellite positioning was successful within the first preset time and the first condition was met, frequency scanning was performed based on the outdoor frequency. If the previous satellite positioning was not successful within the first preset time and the first condition was met, frequency scanning was performed based on the indoor frequency. The first condition includes: the terminal device has not yet successfully positioned itself on satellite and the satellite positioning time has not yet exceeded the first preset time.

2. The method according to claim 1, characterized in that, The frequency scanning based on outdoor frequencies includes: Scan outdoor frequencies in historical frequency data; If no accessible frequency is found among the outdoor frequency points in the historical frequency points, the system scans for unscanned outdoor frequency points in the frequency bands supported by the terminal device.

3. The method according to claim 1, characterized in that, Before performing frequency scanning based on outdoor frequencies, the method further includes: Choose a public terrestrial mobile network (PLMN); The frequency scanning based on outdoor frequencies includes: Scan outdoor frequencies in historical frequency data; If no accessible frequency is found among the outdoor frequencies in the historical frequency list, the unscanned outdoor frequency corresponding to the PLMN is scanned.

4. The method according to any one of claims 1-3, characterized in that, The frequency scanning based on the indoor frequency point includes: Scan indoor frequency points in historical frequency points; If no accessible frequency is found among the indoor frequency points in the historical frequency points, the system scans for unscanned indoor frequency points in the frequency bands supported by the terminal device.

5. The method according to claim 2 or 3, characterized in that, The terminal device stores a historical frequency point information table, which includes historical frequency point information and the frequency point type corresponding to each historical frequency point. The frequency point type includes a first frequency point type, a second frequency point type, and a third frequency point type. The first frequency point type is used to indicate outdoor frequency points, the second frequency point type is used to indicate indoor frequency points, and the third frequency point type is used to indicate both outdoor and indoor frequency points. The outdoor frequencies in the historical frequency points scanned include: Based on the historical frequency information table, scan the outdoor frequency points in the historical frequency points.

6. A frequency sweeping device, characterized in that, include: The positioning module is used for satellite positioning when there is no signal service on the terminal device; The frequency scanning module is used to perform frequency scanning based on outdoor frequencies when the satellite positioning is successful within a first preset time. The frequency scanning module is also used to perform frequency scanning based on the indoor frequency when the satellite positioning fails to locate successfully within a first preset time. The frequency scanning module is further configured to scan historical frequency points when the terminal device signal has no service and the first condition is met; the frequency scanning module is further configured to scan unscanned frequency points in the frequency bands supported by the terminal device when no accessible frequency point is found in the historical frequency points and the first condition is met; or, The frequency scanning module is further configured to perform frequency scanning based on outdoor frequency points if the previous satellite positioning was successful within the first preset time and the first condition is met; the frequency scanning module is further configured to perform frequency scanning based on indoor frequency points if the previous satellite positioning was unsuccessful within the first preset time and the first condition is met. The first condition includes: the terminal device has not yet successfully positioned itself on satellite and the satellite positioning time has not yet exceeded the first preset time.

7. A terminal device, characterized in that, The terminal device includes a processor and a memory, wherein the processor invokes a computer program or computer instructions stored in the memory to implement the method as described in any one of claims 1-5.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program or computer instructions that, when executed, implement the method as described in any one of claims 1-5.