Information processing method, device and storage medium
1. An information processing method, applied to a terminal device located in a coverage area of a first base station, includes:
if the terminal equipment moves from the coverage range of the first base station to the coverage range of a second base station, acquiring the base station information of the second base station;
establishing a storage item in a preset database based on the base station information of the second base station;
the preset database comprises at least one storage entry and is used for caching the position information of the terminal equipment in the coverage range of each base station.
2. The method of claim 1, wherein the establishing a storage entry in a preset database based on the base station information of the second base station comprises:
inquiring the preset database based on the base station information of the second base station;
and when the query result represents that the position information corresponding to the base station information of the second base station does not exist in the preset database, establishing a first storage item in the preset database.
3. The method of claim 2, further comprising:
after the first storage entry is established, initiating a first positioning request aiming at the terminal equipment so as to acquire first position information of the terminal equipment based on the first positioning request;
establishing a first mapping relation between the first position information and the base station information of the second base station;
and storing the base station information of the second base station, the first position information and the first mapping relation into the first storage item.
4. The method of claim 2, wherein the querying the predetermined database based on the base station information of the second base station comprises:
and under the condition that the base station information of the second base station is within a preset range, inquiring the preset database based on the base station information.
5. The method of claim 1, wherein the establishing a storage entry in a preset database based on the base station information of the second base station comprises:
acquiring network information of a preset network under the condition that the terminal equipment is connected to the preset network;
and establishing a second storage item in the preset database based on the base station information of the second base station and the network information of the preset network.
6. The method of claim 5, wherein 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 comprises:
inquiring the preset database based on the base station information of the second base station and the network information of the preset network;
and when the query result indicates that the position information corresponding to the base station information of the second base station and the network information of the preset network does not exist in the preset database, establishing the second storage item in the preset database.
7. The method of claim 6, further comprising:
after the second storage entry is established, initiating a second positioning request aiming at the terminal equipment so as to acquire second position information of the terminal equipment based on the second positioning request;
establishing a second mapping relation among the base station information of the second base station, the network information of the preset network and the second position information;
and storing the base station information of the second base station, the network information of the preset network, the second location information and the second mapping relation into the second storage item.
8. The method of claim 1, further comprising:
and updating the position information in the preset database based on the application position information acquired by the application program installed on the terminal equipment.
9. The method according to any one of claims 1 to 8, further comprising:
when a third positioning request initiated by a target application program is detected, based on base station information carried in the third positioning request, acquiring position information corresponding to the base station information carried in the third positioning request from the preset database;
and returning the position information corresponding to the base station information carried in the third positioning request to the target application program.
10. The method of claim 9, further comprising:
under the condition that 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 position information corresponding to the base station information carried in the third positioning request and the network information carried in the third positioning request from the preset database;
and returning the position information corresponding to the base station information carried in the third positioning request and the network information carried in the third positioning request to the target application program.
11. An information processing apparatus, applied to a terminal device located within a coverage area of a first base station, comprising:
a first obtaining module, configured to obtain base station information of a second base station if the terminal device moves from a coverage of the first base station to a coverage of the second base station;
the first building module is configured to build a storage item in a preset database based on the base station information of the second base station;
the preset database comprises at least one storage entry and is used for caching the position information of the terminal equipment in the coverage range of each base station.
12. The apparatus of claim 11, wherein the first building module is configured to:
inquiring the preset database based on the base station information of the second base station;
and when the query result represents that the position information corresponding to the base station information of the second base station does not exist in the preset database, establishing a first storage item in the preset database.
13. The apparatus of claim 12, further comprising:
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 construction module configured to establish a first mapping relationship between the first location information and base station information of the second base station;
a first storage module configured to store the base station information of the second base station, the first location information, and the first mapping relationship into the first storage entry.
14. The apparatus of claim 12, wherein the first building module is configured to:
and under the condition that the base station information of the second base station is within a preset range, inquiring the preset database based on the base station information.
15. The apparatus of claim 11, wherein the first building module is configured to:
acquiring network information of a preset network under the condition that the terminal equipment is connected to the preset network;
and establishing a second storage item in the preset database based on the base station information of the second base station and the network information of the preset network.
16. The apparatus of claim 15, wherein the first building module is configured to:
inquiring the preset database based on the base station information of the second base station and the network information of the preset network;
and when the query result indicates that the position information corresponding to the base station information of the second base station and the network information of the preset network does not exist in the preset database, establishing the second storage item in the preset database.
17. The apparatus of claim 16, further comprising:
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 configured to build a second mapping relationship among the base station information of the second base station, the network information of the preset network, and the second location information;
a second storage module, 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 in the second storage entry.
18. The apparatus of claim 11, further comprising:
and the updating module is configured to update the position information in the preset database based on the application position information acquired by the application program installed on the terminal equipment.
19. The apparatus of any one of claims 11 to 18, further comprising:
a second obtaining module, configured to, when a third positioning request initiated by a target application is detected, obtain, based on base station information carried in the third positioning request, location information corresponding to the base station information carried in the third positioning request from the preset database;
a first returning module, configured to return the location information corresponding to the base station information carried in the third positioning request to the target application program.
20. The apparatus of claim 19, further comprising:
a third obtaining module, configured to, when the terminal device is connected to a preset network, obtain, 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, based on the base station information carried in the third positioning request and the network information carried in the third positioning request;
a second returning module configured to return location information corresponding to the base station information carried in the third positioning request and the network information carried in the third positioning request to the target application program at the same time.
21. An information processing apparatus characterized by comprising:
a processor and a memory for storing executable instructions operable on the processor, wherein:
the processor is configured to execute the executable instructions, which when executed perform the steps of the method as provided in any one of the preceding claims 1 to 10.
22. A non-transitory computer-readable storage medium having stored thereon computer-executable instructions that, when executed by a processor, perform steps in a method as provided by any one of claims 1 to 10.
Background
With the rapid development of communication technology and the increasing living standard of people, terminal devices such as smart phones and tablet computers have become an essential part of the life of people. Various applications are installed in the intelligent terminal, such as shopping, weather, navigation and other applications. In the process of using the applications, part of the applications request to obtain the current position information of the user so as to provide better service for the user.
In the related art, the terminal device may be located by network location. The positioning source of network positioning mainly originates from a base station and a Wireless network, such as a Wireless Fidelity (Wi-Fi) network. The base station positioning is mainly realized according to base station information acquired by the terminal equipment; network positioning is positioning realized according to network information acquired by terminal equipment. However, whether the positioning is performed by the base station positioning method or the network method, the power consumption of the terminal device is increased, so that the cruising ability of the terminal device is reduced.
Disclosure of Invention
The present disclosure provides an information processing method, apparatus, and storage medium.
According to a first aspect of the embodiments of the present disclosure, there is provided an information processing method applied to a terminal device located in a coverage area of a first base station, including:
if the terminal equipment moves from the coverage range of the first base station to the coverage range of a second base station, acquiring the base station information of the second base station;
establishing a storage item in a preset database based on the base station information of the second base station;
the preset database comprises at least one storage entry and is used for caching the position information of the terminal equipment in the coverage range of each base station.
Optionally, the establishing a storage entry in a preset database based on the base station information of the second base station includes:
inquiring the preset database based on the base station information of the second base station;
and when the query result represents that the position information corresponding to the base station information of the second base station does not exist in the preset database, establishing a first storage item in the preset database.
Optionally, the method further includes:
after the first storage entry is established, initiating a first positioning request aiming at the terminal equipment so as to acquire first position information of the terminal equipment based on the first positioning request;
establishing a first mapping relation between the first position information and the base station information of the second base station;
and storing the base station information of the second base station, the first position information and the first mapping relation into the first storage item.
Optionally, the querying the preset database based on the base station information of the second base station includes:
and under the condition that the base station information of the second base station is within a preset range, inquiring the preset database based on the base station information.
Optionally, the establishing a storage entry in a preset database based on the base station information of the second base station includes:
acquiring network information of a preset network under the condition that the terminal equipment is connected to the preset network;
and establishing a second storage item in the preset database based on the base station information of the second base station and the network information of the preset network.
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:
inquiring the preset database based on the base station information of the second base station and the network information of the preset network;
and when the query result indicates that the position information corresponding to the base station information of the second base station and the network information of the preset network does not exist in the preset database, establishing the second storage item in the preset database.
Optionally, the method further includes:
after the second storage entry is established, initiating a second positioning request aiming at the terminal equipment so as to acquire second position information of the terminal equipment based on the second positioning request;
establishing a second mapping relation among the base station information of the second base station, the network information of the preset network and the second position information;
and storing the base station information of the second base station, the network information of the preset network, the second location information and the second mapping relation into the second storage item.
Optionally, the method further includes:
and updating the position information in the preset database based on the application position information acquired by the application program installed on the terminal equipment.
Optionally, the method further includes:
when a third positioning request initiated by a target application program is detected, based on base station information carried in the third positioning request, acquiring position information corresponding to the base station information carried in the third positioning request from the preset database;
and returning the position information corresponding to the base station information carried in the third positioning request to the target application program.
Optionally, the method further includes:
under the condition that 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 position information corresponding to the base station information carried in the third positioning request and the network information carried in the third positioning request from the preset database;
and returning the position information corresponding to the base station information carried in the third positioning request and the network information carried in the third positioning request to the target application program.
According to a second aspect of the embodiments of the present disclosure, there is provided an information processing apparatus applied to a terminal device located within a coverage area of a first base station, including:
a first obtaining module, configured to obtain base station information of a second base station if the terminal device moves from a coverage of the first base station to a coverage of the second base station;
the first building module is configured to build a storage item in a preset database based on the base station information of the second base station;
the preset database comprises at least one storage entry and is used for caching the position information of the terminal equipment in the coverage range of each base station.
Optionally, the first building module is configured to:
inquiring the preset database based on the base station information of the second base station;
and when the query result represents that the position information corresponding to the base station information of the second base station does not exist in the preset database, establishing a first storage item in the preset database.
Optionally, the apparatus further comprises:
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 construction module configured to establish a first mapping relationship between the first location information and base station information of the second base station;
a first storage module configured to store the base station information of the second base station, the first location information, and the first mapping relationship into the first storage entry.
Optionally, the first building module is configured to:
and under the condition that the base station information of the second base station is within a preset range, inquiring the preset database based on the base station information.
Optionally, the first building module is configured to:
acquiring network information of a preset network under the condition that the terminal equipment is connected to the preset network;
and establishing a second storage item in the preset database based on the base station information of the second base station and the network information of the preset network.
Optionally, the first building module is configured to:
inquiring the preset database based on the base station information of the second base station and the network information of the preset network;
and when the query result indicates that the position information corresponding to the base station information of the second base station and the network information of the preset network does not exist in the preset database, establishing the second storage item in the preset database.
Optionally, the apparatus further comprises:
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 configured to build a second mapping relationship among the base station information of the second base station, the network information of the preset network, and the second location information;
a second storage module, 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 in the second storage entry.
Optionally, the apparatus further comprises:
and the updating module is configured to update the position information in the preset database based on the application position information acquired by the application program installed on the terminal equipment.
Optionally, the apparatus further comprises:
a second obtaining module, configured to, when a third positioning request initiated by a target application is detected, obtain, based on base station information carried in the third positioning request, location information corresponding to the base station information carried in the third positioning request from the preset database;
a first returning module, configured to return the location information corresponding to the base station information carried in the third positioning request to the target application program.
Optionally, the apparatus further comprises:
a third obtaining module, configured to, when the terminal device is connected to a preset network, obtain, 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, based on the base station information carried in the third positioning request and the network information carried in the third positioning request;
a second returning module configured to return location information corresponding to the base station information carried in the third positioning request and the network information carried in the third positioning request to the target application program at the same time.
According to a third aspect of the embodiments of the present disclosure, there is provided an information processing apparatus including:
a processor and a memory for storing executable instructions operable on the processor, wherein:
the processor is configured to execute the executable instructions, and the executable instructions perform the steps of the method provided in any one of the above first aspects.
According to a fourth aspect of embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium having stored therein computer-executable instructions that, when executed by a processor, implement the steps of the method provided in any one of the above-mentioned first aspects.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
in the embodiment of the disclosure, when it is detected that the base station information is updated, the base station information of the base station corresponding to the terminal device at present can be acquired, and a storage entry is established in the preset database based on the base station information.
Therefore, on the one hand, when the terminal equipment needs to be positioned again, the cached position information can be directly acquired from the preset database based on the base station information, and compared with real-time network positioning, the terminal equipment only needs to be read, so that the power consumption of the terminal equipment can be reduced, and the cruising ability of the terminal equipment is further improved. 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 realized, and the availability of the location information stored in the database can be ensured even if the terminal device is restarted.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
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 disclosure.
Fig. 1 is a first flowchart illustrating an information processing method according to an exemplary embodiment.
Fig. 2 is a diagram illustrating coverage of a base station in accordance with an example embodiment.
Fig. 3 is a first diagram illustrating establishment of a storage entry for a base station according to an example embodiment.
Fig. 4 is a diagram two illustrating establishment of a storage entry for a base station according to an example embodiment.
Fig. 5 is a flowchart illustrating an information processing method according to an exemplary embodiment.
Fig. 6 is a schematic diagram illustrating a structure of an information processing apparatus according to an exemplary embodiment.
Fig. 7 is a block diagram illustrating an information processing apparatus 1200 according to an example embodiment.
Fig. 8 is a block diagram illustrating another apparatus for information processing 1300 according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The embodiment of the present disclosure provides a positioning method, fig. 1 is a flowchart illustrating an information processing method according to an exemplary embodiment, and as shown in fig. 1, the information processing method is applied to a terminal device located in a coverage area of a first base station, and includes the following steps:
in step 101, if the terminal device moves from the coverage of the first base station to the coverage of a second base station, acquiring base station information of the second base station;
in step 102, establishing a storage entry in a preset database based on the base station information of the second base station;
the preset database comprises at least one storage entry and is used for caching the position information of the terminal equipment in the coverage range of each base station.
It should be noted that the positioning method may be applied to any terminal device, where the terminal device may include a mobile terminal and a fixed terminal, where the mobile terminal may include: a smart phone, a tablet computer, or a wearable electronic device, etc. The fixed terminal may include: personal computers, servers, etc.
In the embodiment of the present disclosure, if it is detected that 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 where the terminal device is currently located may be obtained, and a storage entry is established in the preset database based on the base station information of the second base station.
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 embodiment of the present disclosure, one storage entry may be established for each base station. In other embodiments, a plurality of storage entries may also be established for each base station, which may be specifically set according to needs and is not specifically limited herein.
Fig. 2 is a schematic diagram illustrating a coverage area of a base station according to an exemplary embodiment, and as shown in fig. 2, coverage areas of a first base station 201 and a second base station 202 are different, it should be noted that only the first base station 201 and the second base station 202 are illustrated in the present disclosure. In other alternative embodiments, the coverage areas of the first base station and the second base station may have other shapes, and the coverage area of the first base station and the coverage area of the second base station may also be spaced, as long as the first base station and the second base station are different base stations, which is not specifically limited herein. In other embodiments, the coverage area of the first base station and the coverage area of the second base station may also partially overlap, and are not specifically limited herein.
In the embodiment of the 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 corresponding to the terminal device currently changes, 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 may be acquired, and a storage entry may be established in the preset data amount based on the base station information of the second base station.
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, and the types, positions and coverage areas of the first base station and the second base station are not specifically limited herein.
That is to say, in the process of caching the location information, if it is detected that the terminal device switches between the coverage areas of any two base stations in the N base stations, the base station information of the base station to which the terminal device currently corresponds may be obtained, and a storage entry is established in the preset database based on the base station information of the base station to which the terminal device currently corresponds. The base station to which the terminal device currently corresponds is the base station to which the terminal device corresponds after the handover.
Fig. 3 is a first schematic diagram illustrating establishment of a storage entry for a base station according to an exemplary embodiment, where in fig. 3, four base stations are illustrated, that is, N is equal to 4, where a first base station may be any one of the four base stations, and a second base station may be any one of the four base stations except for the first base station. In an implementation, corresponding storage entries may be established based on different base stations, for example, storage entry CID1 may be established for base station 301, storage entry CID2 may be established for base station 302, storage entry CID3 may be established for base station 303, and storage entry CID4 may be established for base station 304, respectively.
Therefore, the position information of the terminal equipment in the coverage area of each base station can be cached in the corresponding storage entry. For example, the location information of the terminal device within the coverage of the base station 301 may be stored to the storage entry CID 1; the location information of the terminal device within the coverage of the base station 302 may be stored to the storage entry CID 2; the location information of the terminal device within the coverage of the base station 303 may be stored to the storage entry CID 3; the location information of the terminal device within the coverage area of the base station 304 may be stored to the storage entry CID 4.
In some embodiments, the preset database may be in the form of a table, and for example, the preset database is a table, the storage entry in the preset database may be a row or a column in the table. Taking the storage entry as an example of a row in the table, in the embodiment of the present disclosure, when it is detected that the base station information is updated, a new row of storage entries may be created in the preset database, and the updated base station information is stored in the storage entry, because the current location information of the terminal device is not obtained at this time, a set of initial parameters (default parameters) may be set to be stored in a location corresponding to the location information, but the initial parameters are invalid values and cannot be used as valid locations. After the position information of the terminal device is subsequently acquired, the initial parameter may be updated based on the acquired position information of the terminal device.
In some embodiments, the base station information may include: a mobile country code (mcc), a mobile network code (mnc), a location area code (lac), a cell identity (cid), etc. of the base station. The location information may include: latitude (latitude), longitude (longitude), location accuracy (accuracy), and the like. Table 1 is a preset database illustrating no memory entries built according to an exemplary embodiment.
TABLE 1 Preset database with no entries built
As shown in table 1, a first column in a preset database (CacheLocation) indicates a sequence number (_ id), a second column indicates a mobile country code (mcc) and a mobile network code (mnc) of a base station, a third column indicates a location area code (lac) of the base station, a fourth column indicates a cell Identifier (cid), a fifth column indicates a network type (celltype) supported by the base station, a sixth column indicates a weight for characterizing the number of times each stored entry in the preset database is called, a seventh column indicates a latitude (latitude), an eighth column indicates a longitude (longitude), a ninth column indicates a location accuracy (access), a tenth column indicates a network connection status, and a tenth column indicates a Service Set Identifier (SSID) of a connected network. In other alternative embodiments, more columns may be provided as needed for storing data, which is not listed here.
Table 2 illustrates a provisioning database having a first storage entry established according to an exemplary embodiment.
Table 2 sets up a predetermined database of first stored entries
As shown in table 2, a first storage entry (i.e., a first row in the preset database in table 2) is newly created in the preset database, the base station information of the second base station may be stored in the first storage entry, and 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 a location corresponding to the location information, for example, in table 2, the initial parameters are all set to "x", and the initial parameters are invalid values and cannot be used as valid locations. After the position information of the terminal device is subsequently acquired, the initial parameter may be updated based on the acquired position information of the terminal device.
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, where the base station information of the second base station includes: mobile country code and mobile network code (mccmnc), location area code (lac), cell identification (cid), supported network type (celltype), where mccmnc is 460001, lac is 20985, cid is 139463372, and celltype is Long Term Evolution network technology (LTE).
In other embodiments, the corresponding initial parameter of the position information may also be set as required, for example, a latitude value with a value of [ -90,90] may be determined to be valid, and a latitude value with a value of 91 being invalid; a longitude value with a value of-180,180 may be determined to be valid, and if 181, an invalid longitude value; a position accuracy (error value) greater than 0 may be determined to be valid, and if 0 is not valid, the position accuracy.
In some embodiments, when querying the 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.
In the embodiment of the disclosure, when it is detected that the base station information is updated, the base station information of the base station corresponding to the terminal device at present can be acquired, and a storage entry is established in the preset database based on the base station information.
Therefore, on the one hand, when the terminal equipment needs to be positioned again, the cached position information can be directly acquired from the preset database based on the base station information, and compared with real-time network positioning, the terminal equipment only needs to be read, so that the power consumption of the terminal equipment can be reduced, and the cruising ability of the terminal equipment is further improved. 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 realized, and the availability of the location information stored in the database can be ensured even if the terminal device is restarted.
In some embodiments, the establishing a storage entry in a preset database based on the base station information of the second base station includes:
inquiring the preset database based on the base station information of the second base station;
and when the query result represents that the position information corresponding to the base station information of the second base station does not exist in the preset database, establishing a first storage item in the preset database.
In some embodiments, querying the predetermined database based on the base station information comprises: and comparing the base station information of the second base station with the base station information (cached base station information) cached in the preset database to obtain a query result. If it is determined that the cache 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 position information corresponding to the base station information of the second base station does not exist in the preset data, and at this time, a first storage entry needs to be established in the preset database, so that the base station information of the second base station and the position information corresponding to the base station information of the second base station are stored through the first storage entry.
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, and when the similarity is less than or equal to the preset similarity, it may be determined that the position information corresponding to the base station information of the second base station does not exist in the preset database. In other embodiments, whether the location information corresponding to the base station information exists in the preset database may also be determined in other manners, which is not specifically limited herein.
In the embodiment of the disclosure, before the first storage entry is established, the preset database is queried based on the acquired base station information of the second base station, and when the query result represents that the position information corresponding to the base station information of the second base station does not exist in the preset database, the first storage entry is established in the preset database. In this way, the possibility of creating multiple duplicate memory entries for the same base station, resulting in data redundancy, can be reduced.
In other embodiments, when the query result indicates that the preset database has the location information corresponding to the base station information of the second base station, the indication indicates that the preset database has cached the location information corresponding to the second base station, and at this time, it is not necessary to repeatedly establish a storage entry in the preset database.
For example, if it is determined that the cached base station information identical to the base station information of the second base station exists in the preset database, it may be determined that the location information corresponding to the base station information of the second base station exists in the preset database. For another example, 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, and when the similarity is greater than the preset similarity, it may be determined that the position information corresponding to the base station information exists in the preset database. In this case, it is not necessary to repeatedly create a storage entry in the preset database.
In some embodiments, the method further comprises:
after the first storage entry is established, initiating a first positioning request aiming at the terminal equipment so as to acquire first position information of the terminal equipment based on the first positioning request;
establishing a first mapping relation between the first position information and the base station information of the second base station;
and storing the base station information of the second base station, the first position information and the first mapping relation into the first storage item.
Since the initial parameter (default parameter) stored in the first storage entry after the first storage entry is created is an invalid value, the initial parameter 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 may be initiated, so as to obtain first location information of the terminal device based on the first positioning request, where the first location information is current location information of the terminal device.
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 first location information. In other embodiments, the first position information may also be obtained by satellite positioning, and the way of obtaining the first position information is not listed here.
After the first location information is obtained, a first mapping relationship between the first location information and the base station information of the second base station may be established, and the base station information of the second base station, the first location information, and the first mapping relationship may be stored in the first storage entry. Table 3 is a preset database of updated first stored entries, according to an exemplary embodiment.
TABLE 3 Preset database of updated first memory entries
As shown in table 2, a first column of a first storage entry in a preset database (CacheLocation) stores a sequence number of "1", and second to fifth columns store base station information of a second base station, where the base station information of the second base station includes: a mobile country code and mobile network code (mccmnc), a location area code (lac), a cell identifier (cid), and a supported network type (celltype), where 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 is called once.
The seventh column to the ninth column store first position information including: latitude (latitude), longitude (longtude), and location accuracy (accuracy), wherein 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", i.e., no connection to the predetermined network is made under the base station, and the eleventh column is empty.
In the embodiment of the disclosure, after the first location information of the terminal device is subsequently acquired, the initial parameter in the first storage entry may 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 are stored in the first storage entry.
In some embodiments, the querying the preset database based on the base station information of the second base station includes:
and under the condition that the base station information of the second base station is within a preset range, inquiring the preset database based on the base station information.
Here, the preset range may be set as needed, for example, the preset range may 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 conforms to the communication specification and ensure the validity of the base station information.
Taking the base station information as an example of a mobile country code, if the mobile country code is greater than 0, it indicates that the mobile country code is valid, and if the mobile country code is less than or equal to 0, it indicates that the mobile country code is invalid. Taking the base station information as a mobile network code as an example, if the mobile network code is less than or equal to 0, it indicates that the mobile network code is invalid. Taking the base station information as a location area code as an example, if the location area code is not equal to-1 and is smaller than the area code upper limit, it indicates that the location area code is valid; if the location area code is equal to-1 or greater than or equal to the area code upper limit, it indicates that the location area code is invalid. Taking the base station information as the cell identifier as an example, if the cell identifier is a positive integer, the cell identifier is valid; if the cell identification is not a positive integer, the cell identification is invalid.
The base station information at the second base station simultaneously includes: when the mobile country code, the mobile network code, the location area code, and the cell id are all valid, the base station information of the second base station is also valid.
In the embodiment of the 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 determined, and under the condition that 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, so that the possibility of invalid data processing can be reduced, and the efficiency of data processing can be improved.
In some other embodiments, the establishing a storage entry in a preset database based on the base station information of the second base station includes: and under the condition that the terminal equipment is not connected to a preset network, establishing a storage item in the preset database based on the base station information of the second base station.
Here, in a case where the terminal device is not connected to the preset network, a storage entry may be established in the preset database directly based on the base station information of the second base station. In other embodiments, in the case where the terminal device is connected to the preset network, the storage entry may be established based on the base station information of the second base station and the network information of the preset network.
In some embodiments, the establishing a storage entry in a preset database based on the base station information of the second base station includes:
acquiring network information of a preset network under the condition that the terminal equipment is connected to the preset network;
and establishing a second storage item in the preset database based on the base station information of the second base station and the network information of the preset network.
Here, the preset network may include: Wi-Fi networks, cellular networks, etc. The network information of the preset network may include: network connection status (hashfi), network identification (e.g., SSID of network), etc. Taking the preset network as a Wi-Fi network as an example, in the embodiment of the present disclosure, when the terminal device is connected to the Wi-Fi network, the network connection state and the SSID of the Wi-Fi network may be acquired.
Fig. 4 is a second schematic diagram illustrating that a storage entry is established for a base station according to an exemplary embodiment, where in fig. 4, four base stations are illustrated, that is, N is equal to 4, where a first base station may be any one of the four base stations, and a second base station may be any one of the four base stations except for the first base station. In an implementation, corresponding storage entries may be established based on different base stations, for example, storage entry CID1 may be established for base station 301, storage entry CID2 may be established for base station 302, storage entry CID3 may be established for base station 303, and storage entry CID4 may be established for base station 304, respectively.
In the implementation process, if the terminal device is located 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 may 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 network information of the preset network wifi ssid 2.
In some embodiments, the preset database may be in the form of a table, and for example, the preset database is a table, the storage entry in the preset database may be a row or a column in the table. Taking an example that the storage entry is a row in the table, in the embodiment of the present disclosure, when it is detected that the network information is updated, a row of storage entries may be newly created in the preset database, and the base station information of the second base station and the network information of the preset network are stored in the storage entry, because the current location information of the terminal device is not obtained yet at this time, a set of initial parameters (default parameters) may be set to be stored in a location corresponding to the location information, but the initial parameters are invalid values and cannot be used as valid locations. After the position information of the terminal device is subsequently acquired, the initial parameter may be updated based on the acquired position information of the terminal device.
Table 4 is a preset database that establishes a second storage entry according to an exemplary embodiment.
Table 4 establishes a predetermined database of second memory entries
As shown in table 4, a second storage entry (i.e., a second row in the preset database in table 4) is newly created in the preset database, the base station information of the second base station and the network information of the preset network may be stored in the second storage entry, and since the current location information of the terminal device is not obtained at this time, a set of initial parameters (default parameters) may be set to be stored in a location corresponding to the location information, for example, in table 4, the initial parameters are all set to "0", and the initial parameters are invalid values and cannot be used as valid locations. After the position information of the terminal device is subsequently acquired, the initial parameter may be updated based on the acquired position information of the terminal device.
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 identification (cid), supported network type (celltype), where mccmnc is 460001, lac is 20985, cid is 139463372, and celltype is Long Term Evolution network technology (LTE). The seventh column to the ninth column store initial parameters of the position information. The tenth column and the eleventh column store network information of the preset network, that is, the network status information is "1", which indicates that the terminal device is connected to the preset network, and the network identifier is "llp-5 g".
In the embodiment of the disclosure, when it is detected that the base station information and the network information are updated, the base station information of the base station corresponding to the terminal device at present and the network information of the preset network can be acquired, and a storage entry is established in the preset database based on the base station information and the network information.
Therefore, on the one hand, when the terminal equipment needs to be positioned again, the cached position information can be directly acquired from the preset database based on the base station information and the network information, and compared with real-time network positioning, the terminal equipment only needs to read the database, so that the power consumption of the terminal equipment can be reduced, and the cruising ability of the terminal equipment is further improved. 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 realized, and the availability of the location information stored in the database can be ensured even if the terminal device is restarted.
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:
inquiring the preset database based on the base station information of the second base station and the network information of the preset network;
and when the query result indicates that the position information corresponding to the base station information of the second base station and the network information of the preset network does not exist in the preset database, establishing the second storage item in the preset database.
In some embodiments, querying the preset database based on the base station information of the second base station and the network information of the preset network includes: and comparing the base station information of the second base station with the base station information (cache base station information) cached in the preset database, and simultaneously comparing the network information of the preset network with the network information (cache network information) cached in the preset database to obtain a query result.
If it is determined that the cache base station information identical to the base station information of the second base station does not exist in the preset database or the cache network information identical to the network information of the preset network does not exist in the preset database, it is determined that the position information corresponding to the base station information of the second base station and the network information of the preset network does not exist in the preset data, and at this time, a second storage entry needs to be established in the preset database so as to store the position 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.
In the embodiment of the disclosure, before the second storage entry is established, a preset database is queried based on the obtained base station information of the second base station and the network information of the preset network, and when the query result represents that no position information corresponding to the base station information of the second base station and the network information of the preset network exists in the preset database, the second storage entry is established in the preset database. In this way, the possibility of creating multiple duplicate memory entries for the same base station, resulting in data redundancy, can be reduced.
In other embodiments, when the query result indicates that the location information corresponding to the base station information of the second base station and the network information of the preset network simultaneously exists in the preset database, the location information corresponding to the second base station and the preset network is already cached in the preset database, and at this time, it is not necessary to repeatedly establish a storage entry in the preset database.
For example, if it is determined that the cached base station information identical to the base station information of the second base station exists in the preset database and the cached network information identical to the network information of the preset network exists, it may be determined that the location information corresponding to the base station information of the second base station and the network information of the preset network exists in the preset database, and at this time, it is not necessary to repeatedly establish a storage entry in the preset database.
In some embodiments, the method further comprises:
after the second storage entry is established, initiating a second positioning request aiming at the terminal equipment so as to acquire second position information of the terminal equipment based on the second positioning request;
establishing a second mapping relation among the base station information of the second base station, the network information of the preset network and the second position information;
and storing the base station information of the second base station, the network information of the preset network, the second location information and the second mapping relation into the second storage item.
Since the initial parameter (default parameter) stored in the second storage entry after the second storage entry is created is an invalid value, the initial parameter 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 may be initiated, so as to obtain second location information of the terminal device based on the second positioning request, where the second location information is current location information of the terminal device.
In some embodiments, the second location information of the terminal device may be obtained by network positioning. For example, the second positioning request may be sent to the base station to obtain the second location information. In other embodiments, the second position information may also be obtained by satellite positioning, and the way of obtaining the second position information is not listed here.
After the second location information is obtained, a second mapping relationship among the base station information of the second base station, the network information of the preset network, and the second location information may 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 may be stored in a second storage entry. Table 5 is a preset database of updated second storage entries, shown according to an exemplary embodiment.
Table 5 updated preset database of second storage entries
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 column to the fifth column store the base station information of the second base station, where the base station information of the second base station includes: a mobile country code and mobile network code (mccmnc), a location area code (lac), a cell identifier (cid), and a supported network type (celltype), where 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 is called once.
The seventh column to the ninth column store first position information including: latitude (latitude), longitude (longtude), and location accuracy (accuracy), wherein latitude is "91.0", longitude is "181.0", and accuracy is "0.0". The tenth column indicates that the network connection status is "1", i.e., the base station is connected to the preset network, and the eleventh column is the network identifier "llp-5 g".
In the embodiment of the disclosure, after the second location information of the terminal device is subsequently acquired, the initial parameter in the second storage entry may 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 are stored in the second storage entry.
In some embodiments, the method further comprises:
and updating the position information in the preset database based on the application position information acquired by the application program installed on the terminal equipment.
In the embodiment of the disclosure, a listener may be registered in the terminal device, and when it is monitored that an application program on the terminal device obtains application location information of the terminal device, location information in a preset database on the terminal device may be updated based on the application location information.
For example, after detecting the application location information of the terminal device, the current base station information of the base station corresponding to the terminal device at present may be obtained, and the current base station information may be compared with the cache base station information in the preset database, and in a case that there is cache base station information identical to the current base station information in the preset database, the location information corresponding to the cache base station information identical to the current base station information may be updated based on the application location information. Therefore, the cached position information in the preset database can be more real-time and accurate by utilizing the positioning function of the application program installed on the terminal equipment on the basis of not carrying out additional positioning requests.
In some embodiments, the method further comprises:
when a third positioning request initiated by a target application program is detected, based on base station information carried in the third positioning request, acquiring position information corresponding to the base station information carried in the third positioning request from the preset database;
and returning the position information corresponding to the base station information carried in the third positioning request to the target application program.
In this disclosure, in a process of using a preset database, if it is detected that a target application program initiates a third positioning request, base station information carried in the third positioning request may be compared with cache base station information in the preset database, and in a case that the preset database has cache base station information that is the same as the base station information carried in the third positioning request, location information corresponding to the cache base station information that is the same as the base station information carried in the third positioning request may be determined as 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 is returned to the target application program. Therefore, the terminal equipment can be positioned by reading the cached position information from the preset database, and the position information is returned to the target application program, compared with a mode of initiating network positioning in real time in the related art, the power consumption of the terminal equipment can be reduced, the positioning step is mainly executed locally in the terminal equipment, and the positioning speed can be increased.
In some embodiments, the method further comprises:
under the condition that 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 position information corresponding to the base station information carried in the third positioning request and the network information carried in the third positioning request from the preset database;
and returning the position information corresponding to the base station information carried in the third positioning request and the network information carried in the third positioning request to the target application program.
In the embodiment of the present disclosure, in the process of using the preset database, if the terminal device is connected to the preset network, based on 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 may be acquired from the preset database.
For example, the base station information carried in the third positioning request and the network information carried in the third positioning request may be compared with the cache base station information and the cache network information in the preset database, and in the case that the preset database has the cache base station information that is the same as the base station information carried in the third positioning request and has the cache network information that is the same as the network information carried in the third positioning request, the location information simultaneously corresponding to the cache base station information and the cache network information may be determined as the location information simultaneously corresponding to the base station information carried in the third positioning request and the network information carried in the third positioning request, and the location information may be returned to the target application program. Therefore, the terminal equipment can be positioned by reading the cached position information from the preset database, and the position information is returned to the target application program, compared with a mode of initiating network positioning in real time in the related art, the power consumption of the terminal equipment can be reduced, the positioning step is mainly executed locally in the terminal equipment, and the positioning speed can be increased.
Fig. 5 is a flowchart illustrating a second information processing method according to an exemplary embodiment, where as shown in fig. 5, the information processing method is applied to a terminal device located in a coverage area of a first base station, and includes the following steps:
in step 501, a base station information update is detected.
Here, if the terminal device moves from the coverage of the first base station to the coverage of the second base station, it may be determined that the base station information is updated, and at this time, the base station information of the second base station may be acquired;
in step 502, it is determined whether the base station information of the second base station is within a preset range.
In step 503, in the case that 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.
In step 504, it is determined whether location information corresponding to the base station information of the second base station exists in the preset database.
In step 505, 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, a first storage entry is established in the preset database.
In step 506, it is determined whether the terminal device is connected to a preset network.
In step 507, it is determined whether the predetermined network is a valid network.
Here, the preset network is an effective network representation: the preset network can carry out data transmission.
In step 508, in case that the predetermined network is a valid network, it is determined whether the base station information of the second base station is within a predetermined range.
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.
In step 510, it is determined whether location information simultaneously corresponding to the base station information of the second base station and the network information of the preset network exists in the preset database.
In step 511, when the query result indicates that there is no location information in the preset database that corresponds to the base station information of the second base station and the network information of the preset network at the same time, a second storage entry is established in the preset database.
In step 512, after establishing the first storage entry and the second storage entry, network location is initiated.
In step 513, the current location information of the terminal device is acquired.
In step 514, it is determined whether the base station information at the time of initiating the location update is within a preset range.
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.
In step 516, it is determined whether the terminal device is connected to a valid pre-set network.
In step 517, when the terminal device is connected to the valid preset network, based on the current location information, 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.
Table 6 is an updated provisioning database shown according to an exemplary embodiment.
TABLE 6 updated Preset database
As shown in table 6, the network status of the preset network may include three types, for example, "0" indicates that the preset network is not connected, "1" indicates that the preset network is connected and the location information in the stored entry may be updated, "2" indicates that the preset network is connected but the location information in the stored entry may not be updated.
In the embodiment of the disclosure, when it is detected that the base station information is updated, the base station information of the base station corresponding to the terminal device at present can be acquired, and a storage entry is established in the preset database based on the base station information.
Therefore, on the one hand, when the terminal equipment needs to be positioned again, the cached position information can be directly acquired from the preset database based on the base station information, and compared with real-time network positioning, the terminal equipment only needs to be read, so that the power consumption of the terminal equipment can be reduced, and the cruising ability of the terminal equipment is further improved. 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 realized, and the availability of the location information stored in the database can be ensured even if the terminal device is restarted.
The present disclosure also provides an information processing apparatus, fig. 6 is a schematic structural diagram of an information processing apparatus according to an exemplary embodiment, and as shown in fig. 6, an information processing apparatus 600 is applied to a terminal device located in a coverage area of a first base station, and includes:
a first obtaining module 601, configured to obtain base station information of a second base station if the terminal device moves from a coverage of the first base station to a coverage of the second base station;
a first constructing module 602 configured to establish a storage entry in a preset database based on the base station information of the second base station;
the preset database comprises at least one storage entry and is used for caching the position information of the terminal equipment in the coverage range of each base station.
In some embodiments, the first building module 602 is configured to:
inquiring the preset database based on the base station information of the second base station;
and when the query result represents that the position information corresponding to the base station information of the second base station does not exist in the preset database, establishing a first storage item in the preset database.
In some embodiments, the apparatus 600 further comprises:
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 construction module configured to establish a first mapping relationship between the first location information and base station information of the second base station;
a first storage module configured to store the base station information of the second base station, the first location information, and the first mapping relationship into the first storage entry.
In some embodiments, the first building module 602 is configured to:
and under the condition that the base station information of the second base station is within a preset range, inquiring the preset database based on the base station information.
In some embodiments, the first building module 602 is configured to:
acquiring network information of a preset network under the condition that the terminal equipment is connected to the preset network;
and establishing a second storage item in the preset database based on the base station information of the second base station and the network information of the preset network.
In some embodiments, the first building module 602 is configured to:
inquiring the preset database based on the base station information of the second base station and the network information of the preset network;
and when the query result indicates that the position information corresponding to the base station information of the second base station and the network information of the preset network does not exist in the preset database, establishing the second storage item in the preset database.
In some embodiments, the apparatus 600 further comprises:
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 configured to build a second mapping relationship among the base station information of the second base station, the network information of the preset network, and the second location information;
a second storage module, 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 in the second storage entry.
In some embodiments, the apparatus 600 further comprises:
and the updating module is configured to update the position information in the preset database based on the application position information acquired by the application program installed on the terminal equipment.
In some embodiments, the apparatus 600 further comprises:
a second obtaining module, configured to, when a third positioning request initiated by a target application is detected, obtain, based on base station information carried in the third positioning request, location information corresponding to the base station information carried in the third positioning request from the preset database;
a first returning module, configured to return the location information corresponding to the base station information carried in the third positioning request to the target application program.
In some embodiments, the apparatus 600 further comprises:
a third obtaining module, configured to, when the terminal device is connected to a preset network, obtain, 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, based on the base station information carried in the third positioning request and the network information carried in the third positioning request;
a second returning module configured to return location information corresponding to the base station information carried in the third positioning request and the network information carried in the third positioning request to the target application program at the same time.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 7 is a block diagram illustrating an information processing apparatus 1200 according to an example embodiment. For example, the apparatus 1200 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 7, apparatus 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 communications component 1216.
The processing component 1202 generally controls overall operation of the apparatus 1200, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 1202 may include one or more processors 1220 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 1202 can include one or more modules that facilitate interaction between the processing component 1202 and other components. For example, the processing component 1202 can include a multimedia module to facilitate interaction between the multimedia component 1208 and the processing component 1202.
The memory 1204 is configured to store various types of data to support operation at the device 1200. Examples of such data include instructions for any application or method operating on the device 1200, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1204 may be implemented by any type or combination of volatile or non-volatile memory devices 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 or optical disks.
A power component 1206 provides power to the various components of the device 1200. Power components 1206 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for apparatus 1200.
The multimedia components 1208 include a screen that provides an output interface between the device 1200 and a 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 an input signal from a 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 boundary of a 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 facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 1200 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
Audio component 1210 is configured to output and/or input audio signals. For example, audio component 1210 includes a Microphone (MIC) configured to receive external audio signals when apparatus 1200 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 1204 or transmitted via the communication component 1216. In some embodiments, audio assembly 1210 further includes a speaker for outputting audio signals.
The I/O interface 1212 provides an interface between the processing component 1202 and peripheral interface modules, which may be 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.
The sensor assembly 1214 includes one or more sensors for providing various aspects of state assessment for the apparatus 1200. For example, the sensor assembly 1214 may detect an open/closed state of the device 1200, the relative positioning of the components, such as a display and keypad of the apparatus 1200, the sensor assembly 1214 may also detect a change in the position of the apparatus 1200 or a component of the apparatus 1200, the presence or absence of user contact with the apparatus 1200, an orientation or acceleration/deceleration of the apparatus 1200, and a change in the temperature of the apparatus 1200. The sensor assembly 1214 may include a proximity sensor configured to detect the presence of a nearby object in the absence of any physical contact. The sensor assembly 1214 may also include a light 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 acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communications component 1216 is configured to facilitate communications between the apparatus 1200 and other devices in a wired or wireless manner. The apparatus 1200 may 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 the broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 1216 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 1200 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as memory 1204 comprising instructions, executable by processor 1220 of apparatus 1200 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer-readable storage medium in which instructions, when executed by a processor of an information processing apparatus, enable the information processing apparatus to perform an information processing method, the method comprising:
if the terminal equipment moves from the coverage range of the first base station to the coverage range of a second base station, acquiring the base station information of the second base station;
establishing a storage item in a preset database based on the base station information of the second base station;
the preset database comprises at least one storage entry and is used for caching the position information of the terminal equipment in the coverage range of each base station.
Fig. 8 is a block diagram illustrating another apparatus for information processing 1300 according to an example embodiment. For example, the apparatus 1300 may be provided as a server. Referring to fig. 8, apparatus 1300 includes a processing component 1322, which further includes one or more processors, and memory resources, represented by memory 1332, for storing instructions, such as application programs, that may be executed by processing component 1322. The application programs stored in memory 1332 may include one or more modules that each correspond to a set of instructions. Further, processing component 1322 is configured to execute instructions to perform the above-described information processing method, the method comprising:
if the terminal equipment moves from the coverage range of the first base station to the coverage range of a second base station, acquiring the base station information of the second base station;
establishing a storage item in a preset database based on the base station information of the second base station;
the preset database comprises at least one storage entry and is used for caching the position information of the terminal equipment in the coverage range of each base station.
The apparatus 1300 may also include a power component 1326 configured to perform power management for the apparatus 1300, a wired or wireless network interface 1350 configured to connect the apparatus 1300 to a network, and an input-output (I/O) interface 1358. The apparatus 1300 may operate based on an operating system stored in the memory 1332, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements 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.
- 上一篇:石墨接头机器人自动装卡簧、装栓机
- 下一篇:基于容差值的线段空间关系检测算法及设备