Information processing method, device and storage medium

By using preset databases to cache base station location information in smart terminal devices, the problem of high power consumption during positioning of smart terminal devices is solved, the battery life is improved and the persistent storage of location information is realized.

CN113407569BActive Publication Date: 2025-03-11BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110724487.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-29
Publication Date
2025-03-11
Estimated Expiration
2041-06-29

AI Technical Summary

Technical Problem

When positioning an intelligent terminal device, the power consumption of the device will be increased through base station or network positioning, and the battery life will be reduced.

Method used

By setting a preset database in the terminal device, the location information of the terminal device within the coverage range of each base station is cached. When the terminal device moves to the new base station coverage area, it acquires the base station information of the base station, and establishes storage entries in the preset database to store the base station information and location information.

Benefits of technology

It reduces real-time network positioning requests for terminal devices when they need to be positioned, reduces power consumption, improves the battery life of the device, and stores location information through databases to ensure the durability of the information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113407569B_ABST
    Figure CN113407569B_ABST
Patent Text Reader

Abstract

The present disclosure relates to an information processing method, device and storage medium. The method is applied to a terminal device located within the coverage of a first base station, and includes: if the terminal device moves from the coverage of the first base station to the coverage of a second base station, obtaining the base station information of the second base station; based on the base station information of the second base station, establishing a storage entry in a preset database; wherein the preset database includes at least one of the storage entries, which is used to cache the location information of the terminal device within the coverage of each base station. In this way, on the one hand, when the terminal device needs to be located again, only the database needs to be read, which can reduce the power consumption of the terminal device and thus improve the endurance of the terminal device. On the other hand, by storing the cached location information in the form of a database in the storage medium of the terminal device, persistent storage of the location information can be achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of electronic equipment, and in particular to an information method, device and storage medium. Background Art

[0002] With the rapid development of communication technology and the improvement of people's living standards, terminal devices such as smart phones and tablet computers have become an indispensable part of people's lives. Various applications are installed in smart terminals, such as shopping, weather, navigation, etc. In the process of using these applications, some applications will request to obtain the user's current location information in order to provide better services to users.

[0003] In the related technology, the terminal device can be positioned by network positioning. Among them, the positioning source of network positioning mainly comes from base stations and wireless networks, such as Wireless Fidelity (Wi-Fi) networks. Base station positioning is mainly based on the base station information obtained by the terminal device to achieve positioning; network positioning is based on the network information obtained by the terminal device. However, whether positioning is performed by base station positioning or by network, the power consumption of the terminal device will increase, which will reduce the endurance of the terminal device. Summary of the invention

[0004] The present disclosure provides an information processing method, device and storage medium.

[0005] According to a first aspect of an embodiment of the present disclosure, there is provided an information processing method, which is applied to a terminal device located within a coverage area of ​​a first base station, and includes:

[0006] If the terminal device moves from the coverage of the first base station to the coverage of the second base station, acquiring base station information of the second base station;

[0007] Based on the base station information of the second base station, establishing a storage entry in a preset database;

[0008] The preset database includes at least one storage entry, which is used to cache the location information of the terminal device within the coverage area of ​​each base station.

[0009] Optionally, the establishing a storage entry in a preset database based on the base station information of the second base station includes:

[0010] Based on the base station information of the second base station, query the preset database;

[0011] When the query result indicates that the preset database does not contain location information corresponding to the base station information of the second base station, a first storage entry is established in the preset database.

[0012] Optionally, the method further includes:

[0013] After establishing the first storage entry, initiating a first positioning request for the terminal device to obtain first location information of the terminal device based on the first positioning request;

[0014] Establishing a first mapping relationship between the first location information and the base station information of the second base station;

[0015] The base station information of the second base station, the first location information, and the first mapping relationship are stored in the first storage entry.

[0016] Optionally, the querying the preset database based on the base station information of the second base station includes:

[0017] In a case where the base station information of the second base station is within a preset range, the preset database is queried based on the base station information.

[0018] Optionally, the establishing a storage entry in a preset database based on the base station information of the second base station includes:

[0019] When the terminal device is connected to a preset network, obtaining network information of the preset network;

[0020] Based on the base station information of the second base station and the network information of the preset network, a second storage entry is established in the preset database.

[0021] Optionally, the establishing a second storage entry in the preset database based on the base station information of the second base station and the network information of the preset network includes:

[0022] querying the preset database based on the base station information of the second base station and the network information of the preset network;

[0023] When the query result indicates that the preset database does not contain location information corresponding to both the base station information of the second base station and the network information of the preset network, the second storage entry is established in the preset database.

[0024] Optionally, the method further includes:

[0025] After establishing the second storage entry, initiating a second positioning request for the terminal device to obtain second location information of the terminal device based on the second positioning request;

[0026] Establishing a second mapping relationship between the base station information of the second base station, the network information of the preset network, and the second location information;

[0027] The base station information of the second base station, the network information of the preset network, the second location information and the second mapping relationship are stored in the second storage entry.

[0028] Optionally, the method further includes:

[0029] Based on the application location information obtained by the application installed on the terminal device, the location information in the preset database is updated.

[0030] Optionally, the method further includes:

[0031] When a third positioning request initiated by the target application is detected, based on the base station information carried in the third positioning request, obtaining location information corresponding to the base station information carried in the third positioning request from the preset database;

[0032] The location information corresponding to the base station information carried in the third positioning request is returned to the target application.

[0033] Optionally, the method further includes:

[0034] When the terminal device is connected to a preset network, based on the base station information carried in the third positioning request and the network information carried in the third positioning request, obtaining, from the preset database, location information corresponding to both the base station information carried in the third positioning request and the network information carried in the third positioning request;

[0035] The location information corresponding to both the base station information carried in the third positioning request and the network information carried in the third positioning request is returned to the target application.

[0036] According to a second aspect of an embodiment of the present disclosure, there is provided an information processing apparatus, which is applied to a terminal device located within a coverage area of ​​a first base station, including:

[0037] A first acquisition module, configured to acquire base station information of a second base station of the second base station if the terminal device moves from the coverage of the first base station to the coverage of the second base station;

[0038] A first building module, configured to establish a storage entry in a preset database based on the base station information of the second base station;

[0039] The preset database includes at least one storage entry, which is used to cache the location information of the terminal device within the coverage area of ​​each base station.

[0040] Optionally, the first building module is configured as follows:

[0041] Based on the base station information of the second base station, query the preset database;

[0042] When the query result indicates that the preset database does not contain location information corresponding to the base station information of the second base station, a first storage entry is established in the preset database.

[0043] Optionally, the device further comprises:

[0044] a first trigger module, configured to initiate a first positioning request for the terminal device after establishing the first storage entry, so as to obtain first location information of the terminal device based on the first positioning request;

[0045] A second building module is configured to establish a first mapping relationship between the first location information and the base station information of the second base station;

[0046] The first storage module is configured to store the base station information of the second base station, the first location information and the first mapping relationship in the first storage entry.

[0047] Optionally, the first building module is configured as follows:

[0048] In a case where the base station information of the second base station is within a preset range, the preset database is queried based on the base station information.

[0049] Optionally, the first building module is configured as follows:

[0050] When the terminal device is connected to a preset network, obtaining network information of the preset network;

[0051] Based on the base station information of the second base station and the network information of the preset network, a second storage entry is established in the preset database.

[0052] Optionally, the first building module is configured as follows:

[0053] querying the preset database based on the base station information of the second base station and the network information of the preset network;

[0054] When the query result indicates that the preset database does not contain location information corresponding to both the base station information of the second base station and the network information of the preset network, the second storage entry is established in the preset database.

[0055] Optionally, the device further comprises:

[0056] a second trigger module, configured to initiate a second positioning request for the terminal device after establishing the second storage entry, so as to obtain second location information of the terminal device based on the second positioning request;

[0057] A third building module is configured to establish a second mapping relationship between the base station information of the second base station, the network information of the preset network, and the second location information;

[0058] The second storage module is configured to store the base station information of the second base station, the network information of the preset network, the second location information and the second mapping relationship into the second storage entry.

[0059] Optionally, the device further comprises:

[0060] The updating module is configured to update the location information in the preset database based on the application location information obtained by the application installed on the terminal device.

[0061] Optionally, the device further comprises:

[0062] A second acquisition module is configured to, when detecting a third positioning request initiated by the target application, acquire, from the preset database, location information corresponding to the base station information carried in the third positioning request based on the base station information carried in the third positioning request;

[0063] The first returning module is configured to return the location information corresponding to the base station information carried in the third positioning request to the target application.

[0064] Optionally, the device further comprises:

[0065] A third acquisition module is configured to acquire, when the terminal device is connected to a preset network, location information corresponding to both the base station information carried in the third positioning request and the network information carried in the third positioning request from the preset database based on the base station information carried in the third positioning request and the network information carried in the third positioning request;

[0066] The second returning module is configured to return the location information corresponding to both the base station information carried in the third positioning request and the network information carried in the third positioning request to the target application.

[0067] According to a third aspect of an embodiment of the present disclosure, there is provided an information processing device, including:

[0068] A processor and a memory for storing executable instructions capable of running on the processor, wherein:

[0069] When the processor is used to run the executable instructions, the executable instructions execute the steps in the method provided in any one of the first aspects above.

[0070] According to a fourth aspect of an embodiment of the present disclosure, a non-temporary computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the steps in the method provided in any one of the above-mentioned first aspects are implemented.

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

[0072] In the embodiment of the present disclosure, when an update of the base station information is detected, the base station information of the base station to which the terminal device currently corresponds can be obtained, and a storage entry can be established in a preset database based on the base station information. Since the preset database includes at least one storage entry, it can cache the location information of the terminal device within the coverage range of each base station.

[0073] In this way, on the one hand, when the terminal device needs to be positioned again, the cached location information can be directly obtained from the preset database based on the base station information. Compared with real-time network positioning, only the database needs to be read, which can reduce the power consumption of the terminal device and thus improve the battery life of the terminal device. On the other hand, by storing the cached location information in the form of a database in the storage medium of the terminal device, the location information can be persistently stored, and the availability of the location information stored in the database can be guaranteed even if the terminal device is restarted.

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

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

[0076] Figure 1 A flowchart of an information processing method according to an exemplary embodiment is shown. Figure 1 .

[0077] Figure 2 The figure is a schematic diagram showing the coverage of a base station according to an exemplary embodiment.

[0078] Figure 3The present invention is a schematic diagram showing a method for establishing a storage entry for a base station according to an exemplary embodiment. Figure 1 .

[0079] Figure 4 The present invention is a schematic diagram showing a method for establishing a storage entry for a base station according to an exemplary embodiment. Figure 2 .

[0080] Figure 5 A flowchart of an information processing method according to an exemplary embodiment is shown. Figure 2 .

[0081] Figure 6 The diagram is a schematic structural diagram of an information processing device according to an exemplary embodiment.

[0082] Figure 7 is a block diagram of an information processing device 1200 according to an exemplary embodiment.

[0083] Figure 8 is another block diagram of an information processing device 1300 according to an exemplary embodiment. DETAILED DESCRIPTION

[0084] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0085] The present disclosure provides a positioning method. Figure 1 A flowchart of an information processing method according to an exemplary embodiment is shown. Figure 1 ,like Figure 1 As shown, the information processing method is applied to a terminal device located within the coverage area of ​​a first base station, and includes the following steps:

[0086] In step 101, if the terminal device moves from the coverage of the first base station to the coverage of the second base station, the base station information of the second base station is obtained;

[0087] In step 102, based on the base station information of the second base station, a storage entry is established in a preset database;

[0088] The preset database includes at least one storage entry, which is used to cache the location information of the terminal device within the coverage area of ​​each base station.

[0089] It should be noted that the positioning method can be applied to any terminal device, which may include a mobile terminal and a fixed terminal, wherein the mobile terminal may include a smart phone, a tablet computer or a wearable electronic device, etc. The fixed terminal may include a personal computer, a server, etc.

[0090] In an embodiment of the present disclosure, if it is detected that a terminal device moves from the coverage range of a first base station to the coverage range of a second base station, the base station information of the second base station where the terminal device is currently located can be obtained, and based on the base station information of the second base station, a storage entry can be established in a preset database.

[0091] In some embodiments, the range covered by the first base station and the range covered by the second base station do not overlap with each other. In the disclosed embodiments, a storage entry may be established for each base station. In other embodiments, multiple storage entries may also be established for each base station, which may be set as needed and are not specifically limited here.

[0092] Figure 2 is a schematic diagram showing a coverage range of a base station according to an exemplary embodiment. Figure 2 As shown, the coverage of the first base station 201 and the second base station 202 is different. It should be noted that the present disclosure only illustrates the first base station 201 and the second base station 202. In other optional embodiments, the coverage of the first base station and the second base station may also be other shapes, and the coverage of the first base station and the coverage of the second base station may also be spaced apart, as long as the first base station and the second base station are different base stations, which is not specifically limited here. In other embodiments, the coverage of the first base station and the coverage of the second base station may also partially overlap, which is not specifically limited here.

[0093] In the embodiment of the present disclosure, when the terminal device moves from the coverage of the first base station to the coverage of the second base station, it indicates that the base station information currently corresponding to the terminal device has changed, and the base station information is updated. At this time, the base station information of the second base station where the terminal device is currently located can be obtained, and a storage entry is established in the preset data volume based on the base station information of the second base station.

[0094] In other embodiments, N base stations may be provided, where N is a positive integer greater than or equal to 2. The first base station may be any one of the N base stations, and the second base station may be any one of the N base stations except the first base station. The types, locations, and coverage ranges of the first base station and the second base station are not specifically limited herein.

[0095] That is to say, in the process of caching the location information, if it is detected that the terminal device switches between the coverage of any two base stations among the N base stations, the base station information of the base station currently corresponding to the terminal device can be obtained, and based on the base station information of the base station currently corresponding to the terminal device, a storage entry is established in the preset database. Among them, the base station currently corresponding to the terminal device is the base station corresponding to the terminal device after the switch.

[0096] Figure 3 The present invention is a schematic diagram showing a method for establishing a storage entry for a base station according to an exemplary embodiment. Figure 1 , Figure 3 There are four base stations, that is, N is equal to 4, wherein the first base station may be any one of the four base stations, and the second base station may be any one of the four base stations except the first base station. In the implementation process, corresponding storage entries may be established based on different base stations, for example, a storage entry CID1 may be established for base station 301, a storage entry CID2 may be established for base station 302, a storage entry CID3 may be established for base station 303, and a storage entry CID4 may be established for base station 304.

[0097] In this way, the location information of the terminal device within the coverage of each base station can be cached to the corresponding storage entry. For example, the location information of the terminal device within the coverage of base station 301 can be stored in storage entry CID1; the location information of the terminal device within the coverage of base station 302 can be stored in storage entry CID2; the location information of the terminal device within the coverage of base station 303 can be stored in storage entry CID3; the location information of the terminal device within the coverage of base station 304 can be stored in storage entry CID4.

[0098] In some embodiments, the preset database may be in the form of a table. Taking the preset database as a table as an example, the storage entry in the preset database may be a row or a column in the table. Taking the storage entry as a row in a table as an example, in the embodiments of the present disclosure, when a base station information update is detected, a new row of storage entries may be created in the preset database, and the updated base station information may be stored in the storage entry. Since the current location information of the terminal device has not been obtained at this time, a set of initial parameters (default parameters) may be set and stored in the position corresponding to the location information, but the initial parameters are invalid values ​​and cannot be used as a valid position. After the location information of the terminal device is subsequently obtained, the initial parameters may be updated based on the obtained location information of the terminal device.

[0099] In some embodiments, the base station information may include: mobile country code (MCC), mobile network code (MNC), location area code (LAC), cell identity (CID), etc. of the base station. The location information may include: latitude, longitude, location accuracy, etc. Table 1 is a preset database without storage entries according to an exemplary embodiment.

[0100] Table 1: No preset database for storage entries is established

[0101]

[0102] As shown in Table 1, the first column in the preset database (CacheLocation) represents the sequence number (_id), the second column represents the mobile country code (mcc) and mobile network code (mnc) of the base station, the third column represents the location area code (lac) of the base station, the fourth column represents the cell identifier (cid), the fifth column represents the network type (celltype) supported by the base station, the sixth column represents the weight, which is used to characterize the number of times each storage entry in the preset database is called, the seventh column represents the latitude (latitude), the eighth column represents the longitude (longitude), the ninth column represents the location accuracy (accuracy), the tenth column represents the network connection status, and the eleventh column represents the service set identifier (SSID) of the connected network. In other optional embodiments, more columns can be set as needed to store data, which are not listed here one by one.

[0103] Table 2 shows a preset database for establishing a first storage entry according to an exemplary embodiment.

[0104] Table 2 establishes the preset database of the first storage entry

[0105]

[0106] As shown in Table 2, a new first storage entry is created in the preset database (i.e., the first row in the preset database in Table 2), and the base station information of the second base station can be stored in the first storage entry. Since the current location information of the terminal device has not been obtained at this time, a set of initial parameters (default parameters) can be set and stored in the position corresponding to the location information. As shown in Table 2, the initial parameters are all set to "x", which is an invalid value and cannot be used as a valid position. After the location information of the terminal device is subsequently obtained, the initial parameters can be updated based on the obtained location information of the terminal device.

[0107] In Table 2, the first column of the first storage entry stores the sequence number "1", and the second to fifth columns store the base station information of the second base station, and the base station information of the second base station includes: mobile country code and mobile network code (mccmnc), location area code (lac), cell identifier (cid), supported network type (celltype), wherein mccmnc is 460001, lac is 20985, cid is 139463372, and celltype is Long Term Evolution (LTE) network technology.

[0108] In other embodiments, the corresponding initial parameters of the location information can also be set as needed. For example, a latitude value in the range of [-90,90] can be determined to be valid, such as 91 is an invalid latitude value; a longitude value in the range of [-180,180] can be determined to be valid, such as 181 is an invalid longitude value; a location accuracy (error value) greater than 0 can be determined to be valid, such as 0 is an invalid location accuracy.

[0109] In some embodiments, when querying a preset database, if the location information in the preset database is not updated or is invalid data, the location information is not read from the preset database.

[0110] In the embodiment of the present disclosure, when an update of the base station information is detected, the base station information of the base station to which the terminal device currently corresponds can be obtained, and a storage entry can be established in a preset database based on the base station information. Since the preset database includes at least one storage entry, it can cache the location information of the terminal device within the coverage range of each base station.

[0111] In this way, on the one hand, when the terminal device needs to be positioned again, the cached location information can be directly obtained from the preset database based on the base station information. Compared with real-time network positioning, only the database needs to be read, which can reduce the power consumption of the terminal device and thus improve the battery life of the terminal device. On the other hand, by storing the cached location information in the form of a database in the storage medium of the terminal device, the location information can be persistently stored, and the availability of the location information stored in the database can be guaranteed even if the terminal device is restarted.

[0112] In some embodiments, the establishing a storage entry in a preset database based on the base station information of the second base station includes:

[0113] Based on the base station information of the second base station, query the preset database;

[0114] When the query result indicates that the preset database does not contain location information corresponding to the base station information of the second base station, a first storage entry is established in the preset database.

[0115] In some embodiments, based on the base station information, querying the preset database includes: comparing the base station information of the second base station with the base station information cached in the preset database (cached base station information) to obtain a query result. If it is determined that the cached base station information identical to the base station information of the second base station does not exist in the preset database, it is determined that the location information corresponding to the base station information of the second base station does not exist in the preset database. At this time, it is necessary to establish a first storage entry in the preset database to store the base station information of the second base station and the location information corresponding to the base station information of the second base station through the first storage entry.

[0116] In other embodiments, similarity calculation may be performed on the base station information of the second base station and the cached base station information in the preset database. When the similarity is less than or equal to the preset similarity, it may be determined that the location information corresponding to the base station information of the second base station does not exist in the preset database. In other embodiments, it may also be determined whether the location information corresponding to the base station information exists in the preset database by other means, which are not specifically limited here.

[0117] In the embodiment of the present disclosure, before establishing the first storage entry, the preset database is first queried based on the acquired base station information of the second base station, and when the query result indicates that the preset database does not have location information corresponding to the base station information of the second base station, the first storage entry is then established in the preset database. In this way, the possibility of establishing multiple duplicate storage entries for the same base station and causing data redundancy can be reduced.

[0118] In other embodiments, when the query result indicates that there is location information corresponding to the base station information of the second base station in the preset database, it indicates that the location information corresponding to the second base station has been cached in the preset database. In this case, there is no need to repeatedly create a storage entry in the preset database.

[0119] For example, if it is determined that the preset database contains cached base station information that is identical to the base station information of the second base station, it can be determined that the preset database contains location information corresponding to the base station information of the second base station. For another example, similarity calculation can be performed on the base station information of the second base station and the cached base station information in the preset database. When the similarity is greater than the preset similarity, it can be determined that the preset database contains location information corresponding to the base station information. In this case, there is no need to repeatedly create storage entries in the preset database.

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

[0121] After establishing the first storage entry, initiating a first positioning request for the terminal device to obtain first location information of the terminal device based on the first positioning request;

[0122] Establishing a first mapping relationship between the first location information and the base station information of the second base station;

[0123] The base station information of the second base station, the first location information, and the first mapping relationship are stored in the first storage entry.

[0124] Since the initial parameters (default parameters) stored in the first storage entry are invalid values ​​after the first storage entry is established, they cannot be used as a valid location. In the embodiment of the present disclosure, after the first storage entry is established, a first positioning request for the terminal device can be initiated to obtain the first location information of the terminal device based on the first positioning request, wherein the first location information is the current location information of the terminal device.

[0125] In some embodiments, the first location information of the terminal device may be obtained by network positioning. For example, the first location request may be sent to a base station to obtain the first location information. In other embodiments, the first location information may also be obtained by satellite positioning. The methods for obtaining the first location information are not listed here one by one.

[0126] After acquiring the first location information, a first mapping relationship between the first location information and the base station information of the second base station can be established, and the base station information of the second base station, the first location information and the first mapping relationship are stored in the first storage entry. Table 3 is a preset database of the updated first storage entry according to an exemplary embodiment.

[0127] Table 3 Preset database of the first storage entry after update

[0128]

[0129] As shown in Table 2, the first column of the first storage entry in the preset database (CacheLocation) stores a sequence number of "1", and the second to fifth columns store the base station information of the second base station, and the base station information of the second base station includes: mobile country code and mobile network code (mccmnc), location area code (lac), cell identifier (cid), supported network type (celltype), wherein mccmnc is 460001, lac is 20985, cid is 139463372, and celltype is Long Term Evolution (LTE) network technology. The sixth column stores a weight of "1", indicating that the first storage entry has been called once.

[0130] The seventh to ninth columns store the first location information, which includes: latitude, longitude, and location accuracy, where the latitude is "31.983417", the longitude is "118.732929", and the accuracy is "40.0". The tenth column indicates that the network connection status is "0", that is, the base station is not connected to the preset network, and the eleventh column is empty.

[0131] In the embodiment of the present disclosure, after the first location information of the terminal device is subsequently acquired, the initial parameters in the first storage entry can be updated based on the acquired first location information of the terminal device, and the base station information of the second base station, the first location information and the first mapping relationship can be stored in the first storage entry. In this way, when the location information of the terminal device needs to be acquired, it can be directly acquired from the first storage entry of the preset database. Compared with real-time positioning of the terminal device, the power consumption of the terminal device can be reduced.

[0132] In some embodiments, querying the preset database based on the base station information of the second base station includes:

[0133] In a case where the base station information of the second base station is within a preset range, the preset database is queried based on the base station information.

[0134] Here, the preset range can be set as needed, for example, it can be determined according to the content included in the base station information of the second base station, so as to ensure that the base station information complies with the communication specification and can ensure the validity of the base station information.

[0135] Taking the base station information as an example of a mobile country code, if the mobile country code is greater than 0, it means that the mobile country code is valid; if the mobile country code is less than or equal to 0, it means that the mobile country code is invalid. Taking the base station information as an example of a mobile network code, if the mobile network code is less than or equal to 0, it means that the mobile network code is invalid. Taking the base station information as an example of a location area code, if the location area code is not equal to -1 and is less than the upper limit of the area code, it means that the location area code is valid; if the location area code is equal to -1 or greater than or equal to the upper limit of the area code, it means that the location area code is invalid. Taking the base station information as a cell identifier, if the cell identifier is a positive integer, it means that the cell identifier is valid; if the cell identifier is not a positive integer, it means that the cell identifier is invalid.

[0136] When the base station information of the second base station includes: a mobile country code, a mobile network code, a location area code and a cell identifier, the base station information of the second base station is also valid when the mobile country code, the mobile network code, the location area code and the cell identifier are all valid.

[0137] In the embodiment of the present disclosure, before querying the preset database based on the base station information of the second base station, the validity of the base station information of the second base station is first determined. If the base station information of the second base station is valid, the preset database is queried based on the base station information of the second base station. This can reduce the possibility of invalid data processing and improve data processing efficiency.

[0138] In other embodiments, establishing a storage entry in a preset database based on the base station information of the second base station includes: establishing a storage entry in the preset database based on the base station information of the second base station when the terminal device is not connected to a preset network.

[0139] Here, when the terminal device is not connected to the preset network, a storage entry can be directly established in the preset database based on the base station information of the second base station. In other embodiments, when the terminal device is connected to the preset network, a storage entry can be established based on the base station information of the second base station and the network information of the preset network.

[0140] In some embodiments, the establishing a storage entry in a preset database based on the base station information of the second base station includes:

[0141] When the terminal device is connected to a preset network, obtaining network information of the preset network;

[0142] Based on the base station information of the second base station and the network information of the preset network, a second storage entry is established in the preset database.

[0143] Here, the preset network may include: Wi-Fi network, cellular network, etc. The network information of the preset network may include: network connection status (haswifi), network identification (such as the SSID of the network), etc. Taking the preset network as an example that the Wi-Fi network is used, in the embodiment of the present disclosure, when the terminal device is connected to the Wi-Fi network, the network connection status and SSID of the Wi-Fi network may be obtained.

[0144] Figure 4 The present invention is a schematic diagram showing a method for establishing a storage entry for a base station according to an exemplary embodiment. Figure 2 , Figure 4 There are four base stations, that is, N is equal to 4, wherein the first base station may be any one of the four base stations, and the second base station may be any one of the four base stations except the first base station. In the implementation process, corresponding storage entries may be established based on different base stations, for example, a storage entry CID1 may be established for base station 301, a storage entry CID2 may be established for base station 302, a storage entry CID3 may be established for base station 303, and a storage entry CID4 may be established for base station 304.

[0145] During the implementation process, if the terminal device is within the coverage of the base station 303 and the terminal device is connected to the preset network wifi ssid1 and the preset network wifi ssid2, a second storage entry can be established in the preset database based on the base station information of the base station 303, the network information of the preset network wifi ssid1 and the preset network wifi ssid2.

[0146] In some embodiments, the preset database may be in the form of a table. Taking the preset database as a table as an example, the storage entry in the preset database may be a row or a column in the table. Taking the storage entry as a row in a table as an example, in the embodiment of the present disclosure, when a network information update is detected, a new row of storage entries may be created in the preset database, and the base station information of the second base station and the network information of the preset network may be stored in the storage entry. Since the current location information of the terminal device has not been obtained at this time, a set of initial parameters (default parameters) may be set and stored in the position corresponding to the location information, but the initial parameters are invalid values ​​and cannot be used as a valid position. After the location information of the terminal device is subsequently obtained, the initial parameters may be updated based on the obtained location information of the terminal device.

[0147] Table 4 shows a preset database for establishing a second storage entry according to an exemplary embodiment.

[0148] Table 4 establishes a preset database of the second storage entry

[0149]

[0150] As shown in Table 4, a new second storage entry is created in the preset database (i.e., the second row in the preset database in Table 4). The base station information of the second base station and the network information of the preset network can be stored in the second storage entry. Since the current location information of the terminal device has not been obtained at this time, a set of initial parameters (default parameters) can be set and stored in the position corresponding to the location information. As shown in Table 4, the initial parameters are all set to "0". The initial parameters are invalid values ​​and cannot be used as valid positions. After the location information of the terminal device is subsequently obtained, the initial parameters can be updated based on the obtained location information of the terminal device.

[0151] In Table 4, the first column of the first storage entry stores the sequence number "2", and the second to fifth columns store the base station information of the second base station, which includes: mobile country code and mobile network code (mccmnc), location area code (lac), cell identifier (cid), supported network type (celltype), where mccmnc is 460001, lac is 20985, cid is 139463372, and celltype is Long Term Evolution (LTE). The seventh to ninth columns store the initial parameters of the location information. The tenth and eleventh columns store the network information of the preset network, that is, the network status information is "1", indicating that the terminal device is connected to the preset network, and the network identifier is "llp-5g".

[0152] In the embodiment of the present disclosure, when it is detected that the base station information and network information are updated, the base station information of the base station currently corresponding to the terminal device and the network information of the preset network can be obtained, and storage entries can be established in the preset database based on the base station information and network information.

[0153] In this way, on the one hand, when the terminal device needs to be positioned again, the cached location information can be directly obtained from the preset database based on the base station information and network information. Compared with real-time network positioning, only the database needs to be read, which can reduce the power consumption of the terminal device and thus improve the battery life of the terminal device. On the other hand, by storing the cached location information in the form of a database in the storage medium of the terminal device, the location information can be persistently stored, and the availability of the location information stored in the database can be guaranteed even if the terminal device is restarted.

[0154] In some embodiments, the establishing a second storage entry in the preset database based on the base station information of the second base station and the network information of the preset network includes:

[0155] querying the preset database based on the base station information of the second base station and the network information of the preset network;

[0156] When the query result indicates that the preset database does not contain location information corresponding to both the base station information of the second base station and the network information of the preset network, the second storage entry is established in the preset database.

[0157] In some embodiments, based on the base station information of the second base station and the network information of the preset network, a preset database is queried, including: comparing the base station information of the second base station with the base station information cached in the preset database (cached base station information), and comparing the network information of the preset network with the network information cached in the preset database (cached network information) to obtain the query result.

[0158] If it is determined that there is no cached base station information identical to the base station information of the second base station in the preset database, or there is no cached network information identical to the network information of the preset network, then it is determined that there is no location information corresponding to the base station information of the second base station and the network information of the preset network in the preset data. At this time, it is necessary to establish a second storage entry in the preset database to store the location information corresponding to the base station information of the second base station and the network information of the preset network through the second storage entry.

[0159] In the embodiment of the present disclosure, before establishing the second storage entry, the preset database is first queried based on the acquired base station information of the second base station and the network information of the preset network, and when the query result indicates that there is no location information corresponding to both the base station information of the second base station and the network information of the preset network in the preset database, the second storage entry is then established in the preset database. In this way, the possibility of establishing multiple duplicate storage entries for the same base station and causing data redundancy can be reduced.

[0160] In other embodiments, when the query result indicates that there is location information corresponding to the base station information of the second base station and the network information of the preset network in the preset database, it indicates that the location information corresponding to the second base station and the preset network has been cached in the preset database. In this case, there is no need to repeatedly establish storage entries in the preset database.

[0161] For example, if it is determined that there is cached base station information in the preset database that is identical to the base station information of the second base station, and there is cached network information that is identical to the network information of the preset network, then it can be determined that there is location information corresponding to the base station information of the second base station and the network information of the preset network in the preset database. In this case, there is no need to repeatedly establish storage entries in the preset database.

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

[0163] After establishing the second storage entry, initiating a second positioning request for the terminal device to obtain second location information of the terminal device based on the second positioning request;

[0164] Establishing a second mapping relationship between the base station information of the second base station, the network information of the preset network, and the second location information;

[0165] The base station information of the second base station, the network information of the preset network, the second location information and the second mapping relationship are stored in the second storage entry.

[0166] Since the initial parameters (default parameters) stored in the second storage entry are invalid values ​​after the second storage entry is established, they cannot be used as a valid location. In the embodiment of the present disclosure, after the second storage entry is established, a second positioning request for the terminal device can be initiated to obtain the second location information of the terminal device based on the second positioning request, wherein the second location information is the current location information of the terminal device.

[0167] In some embodiments, the second location information of the terminal device can be obtained by network positioning. For example, the second location request can be sent to the base station to obtain the second location information. In other embodiments, the second location information can also be obtained by satellite positioning. The methods for obtaining the second location information are not listed here one by one.

[0168] After acquiring the second location information, a second mapping relationship between the base station information of the second base station, the network information of the preset network, and the second location information can be established, and the base station information of the second base station, the network information of the preset network, the second location information, and the second mapping relationship are stored in the second storage entry. Table 5 is a preset database of the updated second storage entry according to an exemplary embodiment.

[0169] Table 5 Preset database of the updated second storage entry

[0170]

[0171] As shown in Table 5, the first column of the second storage entry in the preset database (CacheLocation) stores the sequence number "2", and the second to fifth columns store the base station information of the second base station, and the base station information of the second base station includes: mobile country code and mobile network code (mccmnc), location area code (lac), cell identifier (cid), supported network type (celltype), wherein mccmnc is 460001, lac is 20985, cid is 139463372, celltype is Long Term Evolution (LTE), and the sixth column stores a weight of "1", indicating that the first storage entry has been called once.

[0172] The seventh to ninth columns store the first location information, which includes: latitude, longitude, and location accuracy, where the latitude is "91.0", the longitude is "181.0", and the accuracy is "0.0". The tenth column indicates that the network connection status is "1", that is, it is connected to the preset network under this base station, and the eleventh column is the network identifier "llp-5g".

[0173] In an embodiment of the present disclosure, after the second location information of the terminal device is subsequently acquired, the initial parameters in the second storage entry can be updated based on the acquired second location information of the terminal device, and the base station information of the second base station, the network information of the preset network, the second location information and the second mapping relationship can be stored in the second storage entry. In this way, when the location information of the terminal device needs to be acquired, it can be directly acquired from the second storage entry of the preset database. Compared with real-time positioning of the terminal device, the power consumption of the terminal device can be reduced.

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

[0175] Based on the application location information obtained by the application installed on the terminal device, the location information in the preset database is updated.

[0176] In the embodiment of the present disclosure, a listener can be registered on the terminal device. When it is monitored that an application on the terminal device obtains the application location information of the terminal device, the location information in the preset database on the terminal device can be updated based on the application location information.

[0177] For example, after detecting the application location information of the terminal device, the current base station information of the base station to which the terminal device currently corresponds can be obtained, and the current base station information can be compared with the cached base station information in the preset database. If there is cached base station information identical to the current base station information in the preset database, the location information corresponding to the cached base station information identical to the current base station information can be updated based on the application location information. In this way, the location information cached in the preset database can be made more real-time and accurate by utilizing the positioning function of the application installed on the terminal device without making additional positioning requests.

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

[0179] When a third positioning request initiated by the target application is detected, based on the base station information carried in the third positioning request, obtaining location information corresponding to the base station information carried in the third positioning request from the preset database;

[0180] The location information corresponding to the base station information carried in the third positioning request is returned to the target application.

[0181] In the disclosed embodiment, during the process of using the preset database, if it is detected that the target application initiates a third positioning request, the base station information carried in the third positioning request can be compared with the cached base station information in the preset database. If there is cached base station information identical to the base station information carried in the third positioning request in the preset database, the location information corresponding to the cached base station information identical to the base station information carried in the third positioning request can be determined as the location information corresponding to the base station information carried in the third positioning request, and the location information corresponding to the base station information carried in the third positioning request can be returned to the target application. In this way, the terminal device can be located by reading the cached location information from the preset database, and the location information can be returned to the target application. Compared with the method of initiating network positioning in real time in the related art, the power consumption of the terminal device can be reduced, and the positioning step is mainly performed locally on the terminal device, which can also increase the positioning speed.

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

[0183] When the terminal device is connected to a preset network, based on the base station information carried in the third positioning request and the network information carried in the third positioning request, obtaining, from the preset database, location information corresponding to both the base station information carried in the third positioning request and the network information carried in the third positioning request;

[0184] The location information corresponding to both the base station information carried in the third positioning request and the network information carried in the third positioning request is returned to the target application.

[0185] In an embodiment of the present disclosure, during the use of a preset database, if the terminal device is connected to a preset network, location information corresponding to both the base station information carried in the third positioning request and the network information carried in the third positioning request can be obtained from the preset database based on the base station information carried in the third positioning request and the network information carried in the third positioning request.

[0186] For example, the base station information carried in the third positioning request and the network information carried in the third positioning request can be compared with the cached base station information and cached network information in the preset database. If there is cached base station information identical to the base station information carried in the third positioning request in the preset database, and there is cached network information identical to the network information carried in the third positioning request, then the location information corresponding to both the cached base station information and the cached network information can be determined as the location information corresponding to both the base station information carried in the third positioning request and the network information carried in the third positioning request, and the location information can be returned to the target application. In this way, the terminal device can be located by reading the cached location information from the preset database, and the location information can be returned to the target application. Compared with the method of initiating network positioning in real time in the related art, the power consumption of the terminal device can be reduced, and the positioning step is mainly performed locally on the terminal device, which can also increase the positioning speed.

[0187] Figure 5 A flowchart of an information processing method according to an exemplary embodiment is shown. Figure 2 ,like Figure 5 As shown, the information processing method is applied to a terminal device located within the coverage area of ​​a first base station, and includes the following steps:

[0188] In step 501, base station information update is detected.

[0189] Here, if the terminal device moves from the coverage of the first base station to the coverage of the second base station, it can be determined that the base station information is updated, and at this time, the base station information of the second base station can be obtained;

[0190] In step 502, it is determined whether the base station information of the second base station is located in a preset range.

[0191] In step 503, when the base station information of the second base station is within the preset range, a preset database is queried based on the base station information of the second base station.

[0192] In step 504, it is determined whether there is location information corresponding to the base station information of the second base station in the preset database.

[0193] In step 505, when the query result indicates that there is no location information corresponding to the base station information of the second base station in the preset database, a first storage entry is created in the preset database.

[0194] In step 506, it is determined whether the terminal device is connected to a preset network.

[0195] In step 507, it is determined whether the preset network is a valid network.

[0196] Here, the preset network being a valid network means that the preset network can perform data transmission.

[0197] In step 508, when the preset network is a valid network, it is determined whether the base station information of the second base station is located in a preset range.

[0198] In step 509, when the base station information of the second base station is within the preset range, the preset database is queried based on the base station information of the second base station and the network information of the preset network.

[0199] In step 510, it is determined whether there is location information corresponding to both the base station information of the second base station and the network information of the preset network in the preset database.

[0200] In step 511, when the query result indicates that there is no location information corresponding to both the base station information of the second base station and the network information of the preset network in the preset database, a second storage entry is created in the preset database.

[0201] In step 512, after the first storage entry and the second storage entry are established, network positioning is initiated.

[0202] In step 513, the current location information of the terminal device is obtained.

[0203] In step 514, it is determined whether the base station information when the location update is initiated is located in a preset range.

[0204] In step 515, when the base station information at the time of initiating the location update is within the preset range, the location information corresponding to the base station information at the time of initiating the location update is updated based on the current location information.

[0205] In step 516, it is determined whether the terminal device is connected to a valid preset network.

[0206] In step 517, when the terminal device is connected to a valid preset network, the location information corresponding to both the base station information when the location update is initiated and the network information of the preset network is updated based on the current location information.

[0207] Table 6 shows an updated preset database according to an exemplary embodiment.

[0208] Table 6 Updated preset database

[0209]

[0210] As shown in Table 6, the network status of the preset network may include three types, such as "0" indicating not connected to the preset network, "1" indicating connected to the preset network and the location information in the storage entry can be updated, and "2" indicating connected to the preset network, but the location information in the storage entry cannot be updated.

[0211] In the embodiment of the present disclosure, when an update of the base station information is detected, the base station information of the base station to which the terminal device currently corresponds can be obtained, and a storage entry can be established in a preset database based on the base station information. Since the preset database includes at least one storage entry, it can cache the location information of the terminal device within the coverage range of each base station.

[0212] In this way, on the one hand, when the terminal device needs to be positioned again, the cached location information can be directly obtained from the preset database based on the base station information. Compared with real-time network positioning, only the database needs to be read, which can reduce the power consumption of the terminal device and thus improve the battery life of the terminal device. On the other hand, by storing the cached location information in the form of a database in the storage medium of the terminal device, the location information can be persistently stored, and the availability of the location information stored in the database can be guaranteed even if the terminal device is restarted.

[0213] The present disclosure also provides an information processing device, Figure 6 is a schematic diagram showing the structure of an information processing device according to an exemplary embodiment. Figure 6 As shown, the information processing device 600 is applied to a terminal device located within the coverage area of ​​the first base station, including:

[0214] A first acquisition module 601 is configured to acquire base station information of a second base station of the second base station if the terminal device moves from the coverage of the first base station to the coverage of the second base station;

[0215] A first building module 602 is configured to establish a storage entry in a preset database based on the base station information of the second base station;

[0216] The preset database includes at least one storage entry, which is used to cache the location information of the terminal device within the coverage area of ​​each base station.

[0217] In some embodiments, the first building module 602 is configured as follows:

[0218] Based on the base station information of the second base station, query the preset database;

[0219] When the query result indicates that the preset database does not contain location information corresponding to the base station information of the second base station, a first storage entry is established in the preset database.

[0220] In some embodiments, the apparatus 600 further includes:

[0221] a first trigger module, configured to initiate a first positioning request for the terminal device after establishing the first storage entry, so as to obtain first location information of the terminal device based on the first positioning request;

[0222] A second building module is configured to establish a first mapping relationship between the first location information and the base station information of the second base station;

[0223] The first storage module is configured to store the base station information of the second base station, the first location information and the first mapping relationship in the first storage entry.

[0224] In some embodiments, the first building module 602 is configured as follows:

[0225] In a case where the base station information of the second base station is within a preset range, the preset database is queried based on the base station information.

[0226] In some embodiments, the first building module 602 is configured as follows:

[0227] When the terminal device is connected to a preset network, obtaining network information of the preset network;

[0228] Based on the base station information of the second base station and the network information of the preset network, a second storage entry is established in the preset database.

[0229] In some embodiments, the first building module 602 is configured as follows:

[0230] querying the preset database based on the base station information of the second base station and the network information of the preset network;

[0231] When the query result indicates that the preset database does not contain location information corresponding to both the base station information of the second base station and the network information of the preset network, the second storage entry is established in the preset database.

[0232] In some embodiments, the apparatus 600 further includes:

[0233] a second trigger module, configured to initiate a second positioning request for the terminal device after establishing the second storage entry, so as to obtain second location information of the terminal device based on the second positioning request;

[0234] A third building module is configured to establish a second mapping relationship between the base station information of the second base station, the network information of the preset network, and the second location information;

[0235] The second storage module is configured to store the base station information of the second base station, the network information of the preset network, the second location information and the second mapping relationship into the second storage entry.

[0236] In some embodiments, the apparatus 600 further includes:

[0237] The updating module is configured to update the location information in the preset database based on the application location information obtained by the application installed on the terminal device.

[0238] In some embodiments, the apparatus 600 further includes:

[0239] A second acquisition module is configured to, when detecting a third positioning request initiated by the target application, acquire, from the preset database, location information corresponding to the base station information carried in the third positioning request based on the base station information carried in the third positioning request;

[0240] The first returning module is configured to return the location information corresponding to the base station information carried in the third positioning request to the target application.

[0241] In some embodiments, the apparatus 600 further includes:

[0242] A third acquisition module is configured to acquire, when the terminal device is connected to a preset network, location information corresponding to both the base station information carried in the third positioning request and the network information carried in the third positioning request from the preset database based on the base station information carried in the third positioning request and the network information carried in the third positioning request;

[0243] The second returning module is configured to return the location information corresponding to both the base station information carried in the third positioning request and the network information carried in the third positioning request to the target application.

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

[0245] Figure 7 1 is a block diagram of an information processing device 1200 according to an exemplary embodiment. For example, the device 1200 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0246] Reference Figure 7 , the device 1200 may include one or more of the following components: a processing component 1202 , a memory 1204 , a power component 1206 , a multimedia component 1208 , an audio component 1210 , an input / output (I / O) interface 1212 , a sensor component 1214 , and a communication component 1216 .

[0247] The processing component 1202 generally controls the overall operation of the device 1200, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 1202 may include one or more processors 1220 to execute instructions to perform all or part of the steps of the above-described method. In addition, the processing component 1202 may include one or more modules to facilitate the interaction between the processing component 1202 and other components. For example, the processing component 1202 may include a multimedia module to facilitate the interaction between the multimedia component 1208 and the processing component 1202.

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

[0249] The power component 1206 provides power to the various components of the device 1200. The power component 1206 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device 1200.

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

[0251] The audio component 1210 is configured to output and / or input audio signals. For example, the audio component 1210 includes a microphone (MIC), and when the device 1200 is in an operation mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 1204 or sent via the communication component 1216. In some embodiments, the audio component 1210 also includes a speaker for outputting audio signals.

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

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

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

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

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

[0257] A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of an information processing device, enables the information processing device to perform an information processing method, the method comprising:

[0258] If the terminal device moves from the coverage of the first base station to the coverage of the second base station, acquiring base station information of the second base station;

[0259] Based on the base station information of the second base station, establishing a storage entry in a preset database;

[0260] The preset database includes at least one storage entry, which is used to cache the location information of the terminal device within the coverage area of ​​each base station.

[0261] Figure 8 1 is another block diagram of an information processing device 1300 according to an exemplary embodiment. For example, the device 1300 may be provided as a server. Figure 8The apparatus 1300 includes a processing component 1322, which further includes one or more processors, and a memory resource represented by a memory 1332 for storing instructions executable by the processing component 1322, such as an application. The application stored in the memory 1332 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 1322 is configured to execute instructions to perform the above-mentioned information processing method, which includes:

[0262] If the terminal device moves from the coverage of the first base station to the coverage of the second base station, acquiring base station information of the second base station;

[0263] Based on the base station information of the second base station, establishing a storage entry in a preset database;

[0264] The preset database includes at least one storage entry, which is used to cache the location information of the terminal device within the coverage area of ​​each base station.

[0265] The device 1300 may also include a power supply component 1326 configured to perform power management of the device 1300, a wired or wireless network interface 1350 configured to connect the device 1300 to a network, and an input / output (I / O) interface 1358. The device 1300 may operate based on an operating system stored in the memory 1332, such as Windows Server™, MacOS X™, Unix™, Linux™, FreeBSD™, or the like.

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

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

Claims

1. An information processing method, characterized in that: The method is applied to a terminal device located within the coverage area of ​​a first base station, comprising: If the terminal device moves from the coverage area of ​​the first base station to the coverage area of ​​the second base station, acquiring base station information of the second base station; Based on the base station information of the second base station, establishing a storage entry in a preset database; The preset database includes at least one storage entry for caching the location information of the terminal device within the coverage area of ​​each base station; The step of establishing a storage entry in a preset database based on the base station information of the second base station includes: Based on the base station information of the second base station, query the preset database; When the query result indicates that the location information corresponding to the base station information of the second base station does not exist in the preset database, establishing a first storage entry in the preset database; After establishing the first storage entry, initiating a first positioning request for the terminal device to obtain first location information of the terminal device based on the first positioning request; Establishing a first mapping relationship between the first location information and the base station information of the second base station; The base station information of the second base station, the first location information, and the first mapping relationship are stored in the first storage entry.

2. The method according to claim 1, characterized in that The querying the preset database based on the base station information of the second base station includes: In a case where the base station information of the second base station is within a preset range, the preset database is queried based on the base station information; wherein the base station information within the preset range complies with communication specifications.

3. The method according to claim 1, characterized in that The step of establishing a storage entry in a preset database based on the base station information of the second base station includes: When the terminal device is connected to a preset network, obtaining network information of the preset network; Based on the base station information of the second base station and the network information of the preset network, a second storage entry is established in the preset database.

4. The method according to claim 3, characterized in that The establishing a second storage entry in the preset database based on the base station information of the second base station and the network information of the preset network includes: querying the preset database based on the base station information of the second base station and the network information of the preset network; When the query result indicates that the preset database does not contain location information corresponding to both the base station information of the second base station and the network information of the preset network, the second storage entry is established in the preset database.

5. The method according to claim 4, characterized in that The method further comprises: After establishing the second storage entry, initiating a second positioning request for the terminal device to obtain second location information of the terminal device based on the second positioning request; Establishing a second mapping relationship between the base station information of the second base station, the network information of the preset network, and the second location information; The base station information of the second base station, the network information of the preset network, the second location information and the second mapping relationship are stored in the second storage entry.

6. The method according to claim 1, characterized in that The method further comprises: Based on the application location information obtained by the application installed on the terminal device, the location information in the preset database is updated.

7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: When a third positioning request initiated by the target application is detected, based on the base station information carried in the third positioning request, obtaining location information corresponding to the base station information carried in the third positioning request from the preset database; The location information corresponding to the base station information carried in the third positioning request is returned to the target application.

8. The method according to claim 7, characterized in that The method further comprises: When the terminal device is connected to a preset network, based on the base station information carried in the third positioning request and the network information carried in the third positioning request, obtaining, from the preset database, location information corresponding to both the base station information carried in the third positioning request and the network information carried in the third positioning request; The location information corresponding to both the base station information carried in the third positioning request and the network information carried in the third positioning request is returned to the target application.

9. An information processing device, characterized in that: The method is applied to a terminal device located within the coverage area of ​​a first base station, comprising: A first acquisition module, configured to acquire base station information of a second base station of the second base station if the terminal device moves from the coverage of the first base station to the coverage of the second base station; A first building module, configured to establish a storage entry in a preset database based on the base station information of the second base station; The preset database includes at least one storage entry for caching the location information of the terminal device within the coverage area of ​​each base station; The first building module is specifically configured as follows: Based on the base station information of the second base station, query the preset database; When the query result indicates that the location information corresponding to the base station information of the second base station does not exist in the preset database, establishing a first storage entry in the preset database; a first trigger module, configured to initiate a first positioning request for the terminal device after establishing the first storage entry, so as to obtain first location information of the terminal device based on the first positioning request; A second building module is configured to establish a first mapping relationship between the first location information and the base station information of the second base station; The first storage module is configured to store the base station information of the second base station, the first location information and the first mapping relationship in the first storage entry.

10. The device according to claim 9, characterized in that The first building module is configured as follows: In a case where the base station information of the second base station is within a preset range, the preset database is queried based on the base station information; wherein the base station information within the preset range complies with communication specifications.

11. The device according to claim 10, characterized in that The first building module is configured as follows: When the terminal device is connected to a preset network, obtaining network information of the preset network; Based on the base station information of the second base station and the network information of the preset network, a second storage entry is established in the preset database.

12. The device according to claim 11, characterized in that The first building module is configured as follows: querying the preset database based on the base station information of the second base station and the network information of the preset network; When the query result indicates that the preset database does not contain location information corresponding to both the base station information of the second base station and the network information of the preset network, the second storage entry is established in the preset database.

13. The device according to claim 12, characterized in that The device also includes: a second trigger module, configured to initiate a second positioning request for the terminal device after establishing the second storage entry, so as to obtain second location information of the terminal device based on the second positioning request; A third building module is configured to establish a second mapping relationship between the base station information of the second base station, the network information of the preset network, and the second location information; The second storage module is configured to store the base station information of the second base station, the network information of the preset network, the second location information and the second mapping relationship into the second storage entry.

14. The device according to claim 9, characterized in that The device also includes: The updating module is configured to update the location information in the preset database based on the application location information obtained by the application installed on the terminal device.

15. The device according to any one of claims 9 to 14, characterized in that The device also includes: A second acquisition module is configured to, when detecting a third positioning request initiated by the target application, acquire, from the preset database, location information corresponding to the base station information carried in the third positioning request based on the base station information carried in the third positioning request; The first returning module is configured to return the location information corresponding to the base station information carried in the third positioning request to the target application.

16. The device according to claim 15, characterized in that The device also includes: A third acquisition module is configured to acquire, when the terminal device is connected to a preset network, location information corresponding to both the base station information carried in the third positioning request and the network information carried in the third positioning request from the preset database based on the base station information carried in the third positioning request and the network information carried in the third positioning request; The second returning module is configured to return the location information corresponding to both the base station information carried in the third positioning request and the network information carried in the third positioning request to the target application.

17. An information processing device, characterized in that: include: A processor and a memory for storing executable instructions capable of running on the processor, wherein: When the processor is used to run the executable instructions, the executable instructions execute the steps in the method provided in any one of claims 1 to 8 above.

18. A non-transitory computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, implement the steps of the method provided in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Quick positioning method and device

    CN102209384A

  • Positioning method and device based on base station and storage medium

    CN110856249A