Positioning method and system of positioning device, device, medium and program product
By comparing the base station information to determine whether the positioning device is moving, and using the old position information to obtain ephemeris data when it is not moved, the problem of long positioning time after the positioning device is restarted is solved, and the positioning efficiency is improved.
Patent Information
- Application Number
- CN202411998020.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-03-18
AI Technical Summary
The positioning device needs to re-acquire the ephemeris data after shutdown and restarting, which results in a long time in the positioning process and affects the positioning efficiency.
By comparing the first base station information before restart and the second base station information after restart, it is determined whether the device has moved. If no movement occurs, the first position information before restart is used to obtain the ephemeris data to reduce the acquisition time.
By reducing the time to acquire ephemeris data, the positioning efficiency of the positioning device is improved, and more accurately determine whether the device has moved.
Smart Images

Figure CN119644364A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of positioning technology, and in particular to a positioning method, system, device, medium and program product for a positioning device. Background Art
[0002] When the positioning device is shut down and restarted, the positioning device needs to retry to find the required ephemeris data from all positioning satellites, and then achieve accurate positioning based on the obtained ephemeris data. This will take a lot of time to find the positioning device, which will lead to poor positioning efficiency of the positioning device. Therefore, the positioning method of the positioning device still needs to be improved. Summary of the invention
[0003] The technical problem to be solved by the present disclosure is to overcome the defect that the search process of the positioning device in the prior art consumes a lot of time, thereby resulting in a long positioning time of the positioning device, and to provide a positioning method, system, device, medium and program product for the positioning device.
[0004] The present invention solves the above technical problems through the following technical solutions:
[0005] In a first aspect, a positioning method for a positioning device is provided, the positioning method comprising:
[0006] Acquire the first base station information before the positioning device is restarted and the second base station information after the positioning device is restarted;
[0007] Determining whether the positioning device moves before and after the restart according to a comparison result of the first base station information and the second base station information;
[0008] In response to the positioning device not moving, acquiring ephemeris data according to the first position information to reduce the time for acquiring the ephemeris data; wherein the first position information includes the position of the positioning device before restarting;
[0009] The second position information of the positioning device is calculated according to the ephemeris data.
[0010] Optionally, the first base station information includes a first base station identifier, a first base station signal strength, and a first relative direction of the first base station relative to the positioning device; the second base station data includes a second base station identifier, a second base station signal strength, and a second relative direction of the second base station relative to the positioning device; and determining whether the positioning device moves according to a comparison result of the first base station information and the second base station information includes:
[0011] In response to the comparison result satisfying the first preset condition, the positioning device has not moved; wherein the first preset condition is that the first base station identifier and the second base station identifier are the same and the strength difference between the first base station signal strength and the second base station signal strength is less than or equal to a first difference threshold and the direction difference between the first relative direction and the second relative direction is less than a second difference threshold.
[0012] Optionally, acquiring ephemeris data according to the first position information includes:
[0013] Acquire a satellite search range corresponding to the first location information;
[0014] Acquire ephemeris data of a positioning satellite; the positioning satellite is within the satellite search range.
[0015] Optionally, acquiring ephemeris data according to the first position information includes:
[0016] The first location information is sent to an external server to obtain the ephemeris data; wherein the external server stores the ephemeris data corresponding to the first location information.
[0017] Optionally, the positioning method further includes:
[0018] In response to the positioning device moving before and after the restart, waiting for the positioning device to locate successfully and obtaining the third position information of the positioning device;
[0019] In response to the first location information and the third location information being the same, it is determined that the positioning device is fraudulent.
[0020] Optionally, the calculating according to the ephemeris data to obtain the second position information of the positioning device includes:
[0021] Acquire time information when the positioning device receives the ephemeris data;
[0022] The second position information of the positioning device is calculated according to the time information and the ephemeris data.
[0023] In a second aspect, a positioning system for a positioning device is provided, the positioning system comprising:
[0024] An acquisition module, used to acquire the first base station information before the positioning device is restarted and the second base station information after the positioning device is restarted;
[0025] A determination module, configured to determine whether the positioning device moves before and after the restart according to a comparison result of the first base station information and the second base station information;
[0026] A response module is used to obtain the ephemeris data according to the first position information in response to the positioning device not moving, so as to reduce the acquisition time of the ephemeris data; wherein the first position information includes the position of the positioning device before restarting
[0027] A calculation module is used to calculate the second position information of the positioning device according to the ephemeris data.
[0028] Optionally, the first base station information includes a first base station identifier, a first base station signal strength, and a first relative direction of the first base station relative to the positioning device; the second base station data includes a second base station identifier, a second base station signal strength, and a second relative direction of the second base station relative to the positioning device; and the determination module includes:
[0029] A response unit, used to respond that the comparison result satisfies a first preset condition, then the positioning device has not moved; wherein the first preset condition is that the first base station identifier and the second base station identifier are the same and the strength difference between the first base station signal strength and the second base station signal strength is less than or equal to a first difference threshold and the direction difference between the first relative direction and the second relative direction is less than a second difference threshold.
[0030] The response module is further used to obtain a satellite search range corresponding to the first position information and obtain ephemeris data of a positioning satellite; the positioning satellite is within the satellite search range.
[0031] The response module is further used to send the first position information to an external server to obtain the ephemeris data; wherein the external server stores the ephemeris data corresponding to the first position information.
[0032] Optionally, the positioning system further includes:
[0033] A waiting module, configured to obtain third position information of the positioning device after the positioning device is successfully positioned in response to the positioning device moving before and after the restart;
[0034] The fraud module is used to determine that the positioning device is defrauded in response to the first location information and the third location information being the same.
[0035] Optionally, the calculation module includes:
[0036] A third acquisition unit, used to acquire time information when the positioning device receives the ephemeris data;
[0037] A calculation unit is used to calculate the second position information of the positioning device according to the time information and the ephemeris data.
[0038] According to a third aspect, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and used to run on the processor, wherein the processor implements the positioning method of any one of the positioning devices described above when executing the computer program.
[0039] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, characterized in that when the computer program is executed by a processor, the positioning method of any one of the positioning devices described above is implemented.
[0040] In a fifth aspect, a computer program product includes a computer program, wherein when the computer program is executed by a processor, the positioning method of the positioning device described in any one of the above is implemented.
[0041] On the basis of being in accordance with the common sense in the art, the above-mentioned preferred conditions can be arbitrarily combined to obtain the preferred embodiments of the present disclosure.
[0042] The positive progressive effect of the present disclosure is that: since the base station can stabilize the base station information, it is possible to more accurately determine whether the positioning device has moved based on the comparison result of the first base station information and the second base station information; if no movement has occurred, the ephemeris data can be obtained based on the first position information before restarting, thereby reducing the time required to obtain the ephemeris data and thereby improving the positioning efficiency of the positioning device. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 A flowchart of a positioning method for a positioning device provided in Embodiment 1 of the present disclosure;
[0044] Figure 2 A flowchart before restarting of a positioning method for a positioning device provided in Embodiment 1 of the present disclosure;
[0045] Figure 3 A flowchart after restarting of a positioning method for a positioning device provided in Embodiment 1 of the present disclosure;
[0046] Figure 4 A schematic diagram of a module of a positioning system for a positioning device provided in Embodiment 2 of the present disclosure;
[0047] Figure 5 This is a schematic diagram of the structure of an electronic device shown in Embodiment 3 of the present disclosure. DETAILED DESCRIPTION
[0048] The present disclosure is further described below by way of examples, but the present disclosure is not limited to the scope of the examples.
[0049] Prefixes such as "first" and "second" are used in the embodiments of the present disclosure only to distinguish different description objects, and have no limiting effect on the position, order, priority, quantity or content of the described objects. The use of prefixes such as ordinal numbers to distinguish description objects in the embodiments of the present disclosure does not constitute a limitation on the described objects. For the statement of the described objects, please refer to the description in the context of the embodiments, and no unnecessary limitation should be constituted due to the use of such prefixes. In addition, in the description of the present embodiment, unless otherwise specified, the meaning of "plurality" is two or more.
[0050] Example 1
[0051] In order to increase the positioning speed of a positioning device, an embodiment of the present invention provides a positioning method for a positioning device. Figure 1 This is a flowchart of a positioning method for a positioning device provided in Embodiment 1 of the present disclosure. The positioning method for a positioning device includes the following steps:
[0052] Step 101: Obtain the first base station information before the positioning device is restarted and the second base station information after the positioning device is restarted.
[0053] The positioning device is equipped with a baseband chip, which is used to receive base station information. The base station information is stored in the memory of the positioning device. The first base station information is the base station information last acquired before the positioning device is restarted; the second base station information is the base station information first acquired after the positioning device is restarted. The first base station information and the second base station information may respectively include information of at least one base station.
[0054] Step 102: According to the comparison result between the first base station information and the second base station information, it is determined that the positioning device is restarted and has not moved after the restart.
[0055] If the first base station information and the second base station information are the same, it means that the positioning device has not moved. If the first base station information and the second base station information are not completely the same and the difference exceeds the threshold, it means that the positioning device has moved.
[0056] Step 103: In response to the positioning device not moving, obtaining ephemeris data according to the first position information to reduce the time required to obtain the ephemeris data.
[0057] The reason why the positioning device takes a long time to locate when it is shut down and restarted is that the built-in positioning chip in the positioning device is cold-started, such as a GNSS chip. A cold-start chip usually refers to restarting the positioning device when it is completely shut down. The chip does not contain any prior information, such as the location of the positioning device, the ephemeris data required for the positioning device to locate, etc. Therefore, the positioning chip needs to retry to find the required ephemeris data from all positioning satellites, which will make the search time of the positioning chip longer and the time to obtain ephemeris data slower. The specific manifestation is that the positioning device takes a long time to locate.
[0058] Step 104: Calculate and obtain second position information of the positioning device according to the ephemeris data.
[0059] It should be noted that the purpose of using the first location information is to find the ephemeris data in a shorter time, thereby speeding up the cold start time of the positioning device. The first location information may be the same as the second location, or the first location information and the second location information may only be different in dimension. For example, if a positioning device has not been moved, then its first location information before restart is the same as the second location. If the positioning device is a mobile phone, when it is on the third floor and the first floor, the base station information received before and after the restart may also be the same. At this time, by comparing the base station information, it may be considered that it has not changed. However, after the positioning device obtains the ephemeris data through the first location information (the mobile phone on the first floor), it can achieve accurate positioning and obtain the second location information (the mobile phone on the third floor).
[0060] In step 104, the specific implementation method of calculating the second position information can be found in the related technical description and will not be repeated here.
[0061] In this embodiment, since the base station can stabilize the base station information, it is possible to more accurately determine whether the position information of the positioning device before and after the restart has changed based on the comparison result of the first base station information and the second base station information; if there is no change, the ephemeris data can be obtained based on the first position information before the restart, thereby reducing the time required to obtain the ephemeris data and improving the positioning efficiency of the positioning device.
[0062] In one embodiment, the first base station information includes a first base station identifier, a first base station signal strength, and a first relative direction of the first base station relative to the positioning device; the second base station data includes a second base station identifier, a second base station signal strength, and a second relative direction of the second base station relative to the positioning device; and determining whether the positioning device moves according to a comparison result between the first base station information and the second base station information includes:
[0063] In response to the comparison result satisfying the first preset condition, the positioning device has not moved before and after the restart; wherein the first preset condition is that the first base station identifier and the second base station identifier are the same and the strength difference between the first base station signal strength and the second base station signal strength is less than or equal to a first difference threshold and the direction difference between the first relative direction and the second relative direction is less than a second difference threshold.
[0064] For example, before the positioning device is shut down, the first base station identifier received is A, the first base station signal strength is -85dBm, and the first relative direction is the first southeast direction; the second base station identifier received is A, the second base station signal strength is -84dBm, and the second relative direction is the second southeast direction. The first difference threshold is 5dBm, and the second difference threshold is 5 degrees. If the direction difference between the first southeast direction and the second southeast direction is less than or equal to 5 degrees, it is determined whether the positioning device has moved.
[0065] In this embodiment, it is possible to more accurately determine whether the positioning device has moved based on the first base station identifier, the first base station signal strength, the first relative direction, the second base station identifier, the second base station signal strength and the second relative direction, and then the subsequent positioning device can more accurately obtain ephemeris data through the first position information to improve the positioning efficiency of the positioning device.
[0066] In other implementations, it may also be determined whether the positioning device moves based on corresponding parameters among the first base station identifier, the first base station signal strength, the first relative direction, the second base station identifier, the second base station signal strength and the second relative direction.
[0067] In one embodiment, obtaining ephemeris data according to the first position information includes:
[0068] S1: Obtain a satellite search range corresponding to the first position information.
[0069] The satellite search range corresponding to the first position information is obtained from the memory of the positioning device.
[0070] When the positioning device does not move, the satellite search range when the positioning device obtains the first position information is directly used.
[0071] S2: Obtain the ephemeris data of the positioning satellite; the positioning satellite is within the satellite search range.
[0072] It should be noted that ephemeris data can be obtained from more than one positioning satellite within the satellite search range, and more accurate positioning can be achieved based on the ephemeris data obtained from different positioning satellites. Preferably, ephemeris data from at least four positioning satellites are obtained. In actual operation, the specific number of satellites to be obtained is determined by the technician.
[0073] In this embodiment, acquiring the ephemeris data of the positioning satellite within the satellite search range corresponding to the first position information can greatly reduce the search range of the positioning device, so that the positioning device can find the required ephemeris data more quickly, thereby improving the positioning efficiency of the positioning device.
[0074] In one embodiment, obtaining ephemeris data according to the first position information includes:
[0075] The first location information is sent to an external server to obtain ephemeris data; wherein the external server stores the ephemeris data corresponding to the first location information.
[0076] The suppliers of the positioning chips built into some positioning devices have a server (i.e., the external server mentioned above), which stores the ephemeris data of all positioning satellites on the earth. When the positioning chip provided by the supplier wants to obtain ephemeris data, it can directly send the first position information to the server, and the server can find the corresponding ephemeris data based on the first position information and return it to the given device.
[0077] In this embodiment, the first location information is sent to an external server to obtain ephemeris data, which can greatly reduce the time required for the positioning device to obtain the ephemeris data, thereby improving the positioning efficiency of the positioning device.
[0078] In one embodiment, the positioning method further includes:
[0079] S1: In response to the positioning device moving before and after the restart, wait for the positioning device to locate successfully and then obtain the third position information of the positioning device.
[0080] If the first position information changes, even if the positioning device obtains ephemeris data based on the first position information, it is difficult to reduce the time required to obtain the ephemeris data. It may even become an interference item for the positioning device to obtain the ephemeris data. Therefore, in this case, the positioning device can only wait for the required ephemeris data to be searched among all positioning satellites, and then perform positioning based on the ephemeris data to obtain the third position information.
[0081] S2: In response to the first location information and the third location information being the same, it is determined that the positioning device is fraudulent.
[0082] For example, the first location information is A, and then according to the base station information, it has been detected that the first location information has changed, that is, the location of the positioning device is no longer A, but the third location information obtained by the positioning device is still A, which indicates that the positioning device may have been defrauded.
[0083] In this embodiment, potential positioning fraud can be identified more quickly through the first base station information, the second base station information, the first location information and the third location information to avoid losses to users.
[0084] In one embodiment, calculating the second position information of the positioning device according to the ephemeris data includes:
[0085] S1: Obtain the time information when the positioning device receives the ephemeris data.
[0086] The time information may be the UTC time when the positioning device receives the ephemeris data, wherein the UTC time is the Coordinated Universal Time.
[0087] S2: Calculate the second position information of the positioning device according to the time information and the ephemeris data.
[0088] Preferably, the time information and ephemeris data can be input into a positioning algorithm to obtain the second position information. The positioning algorithm includes a least squares method, a Kalman filter, and the like.
[0089] In this embodiment, the second position information of the positioning device can be calculated more accurately according to the time information and the ephemeris data, thereby improving the positioning accuracy of the positioning device.
[0090] In one embodiment, Figure 2 A flowchart of a positioning method for a positioning device provided in Embodiment 1 of the present disclosure before restarting; combined with Figure 2 , further explanation of the positioning method of the positioning device before restarting.
[0091] S1: When the positioning device obtains a shutdown signal.
[0092] S2: Obtain the first base station information and the first location information.
[0093] S3: Store the first base station information and the first location information in the local memory.
[0094] In one embodiment, Figure 3 A flowchart of a positioning method for a positioning device provided in Embodiment 1 of the present disclosure before restarting; combined with Figure 3 , further explanation of the positioning method of the positioning device before restarting.
[0095] S1: Positioning device starts.
[0096] S2: Obtain the second base station information and read the first location information.
[0097] S3: Determine whether the first base station information is consistent with the second base station information, if consistent, execute S4. If inconsistent, execute S8.
[0098] S4: Determine that the positioning device has not moved.
[0099] S6: Acquire ephemeris data according to the first position information.
[0100] S7: End after positioning according to the ephemeris data.
[0101] S8: The positioning device is cold started to obtain third location information.
[0102] S9: The first location information is consistent with the third location information. If they are consistent, the positioning device is defrauded.
[0103] Example 2
[0104] Corresponding to the aforementioned positioning method embodiment of the positioning device, the present disclosure also provides an embodiment of a positioning system of the positioning device. Figure 2 A schematic diagram of a module of a positioning system for a positioning device provided by an exemplary embodiment of the present disclosure, the positioning system comprising:
[0105] An acquisition module 41 is used to acquire the first base station information before the positioning device is restarted and the second base station information after the positioning device is restarted;
[0106] A determination module 42, configured to determine whether the positioning device moves before and after the restart according to a comparison result of the first base station information and the second base station information;
[0107] The response module 43 is used to obtain the ephemeris data according to the first position information in response to the positioning device not moving, so as to reduce the acquisition time of the ephemeris data; wherein the first position information includes the position of the positioning device before restarting
[0108] The calculation module 44 is used to calculate the second position information of the positioning device according to the ephemeris data.
[0109] Optionally, the first base station information includes a first base station identifier, a first base station signal strength, and a first relative direction of the first base station relative to the positioning device; the second base station data includes a second base station identifier, a second base station signal strength, and a second relative direction of the second base station relative to the positioning device; the determination module 42 includes:
[0110] A response unit, used to respond that the comparison result satisfies a first preset condition, then the positioning device has not moved; wherein the first preset condition is that the first base station identifier and the second base station identifier are the same and the strength difference between the first base station signal strength and the second base station signal strength is less than or equal to a first difference threshold and the direction difference between the first relative direction and the second relative direction is less than a second difference threshold.
[0111] The response module 43 is further used to obtain a satellite search range corresponding to the first position information and obtain ephemeris data of a positioning satellite; the positioning satellite is within the satellite search range.
[0112] The response module 43 is further configured to send the first position information to an external server to obtain the ephemeris data; wherein the external server stores the ephemeris data corresponding to the first position information.
[0113] Optionally, the positioning system further includes:
[0114] A waiting module, configured to obtain third position information of the positioning device after the positioning device is successfully positioned in response to the positioning device moving before and after the restart;
[0115] The fraud module is used to determine that the positioning device is defrauded in response to the first location information and the third location information being the same.
[0116] Optionally, the calculation module 44 includes:
[0117] A third acquisition unit, used to acquire time information when the positioning device receives the ephemeris data;
[0118] A calculation unit is used to calculate the second position information of the positioning device according to the time information and the ephemeris data.
[0119] As for the system embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The system embodiment described above is only illustrative, wherein the units described as separate components may or may not be physically separated, and the components as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the disclosed solution.
[0120] Example 3
[0121] Figure 5 This is a structural diagram of an electronic device shown in an exemplary embodiment of the present disclosure, the electronic device includes a memory, a processor, and a computer program stored in the memory and used to run on the processor, and when the processor executes the computer program, the positioning method of the positioning device described in any of the above embodiments is implemented. Figure 5 The electronic device 50 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0122] like Figure 5As shown, the electronic device 50 may be in the form of a general-purpose computing device, for example, it may be a server device. The components of the electronic device 50 may include, but are not limited to: at least one processor 51, at least one memory 52, and a bus 53 connecting different system components (including the memory 52 and the processor 51).
[0123] The bus 53 includes a data bus, an address bus, and a control bus.
[0124] The memory 52 may include a volatile memory, such as a random access memory (RAM) 521 and / or a cache memory 522 , and may further include a read-only memory (ROM) 523 .
[0125] The memory 52 may also include a program tool 525 (or utility) having a set (at least one) of program modules 525, such program modules 524 including but not limited to: an operating system, one or more application programs, other program modules and program data, each of which or some combination may include the implementation of a network environment.
[0126] The processor 51 executes various functional applications and data processing by running the computer program stored in the memory 52, such as the positioning method of the positioning device provided in any of the above embodiments.
[0127] The electronic device 50 may also communicate with one or more external devices 54 (e.g., keyboards, pointing devices, etc.). Such communication may be performed via an input / output (I / O) interface 55. Furthermore, the electronic device 50 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 56. As shown, the network adapter 56 communicates with other modules of the electronic device 50 via a bus 53. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 50, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, and data backup storage systems, etc.
[0128] It should be noted that although several units / modules or sub-units / modules of the electronic device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more units / modules described above can be embodied in one unit / module. Conversely, the features and functions of one unit / module described above can be further divided into multiple units / modules to be embodied.
[0129] Example 4
[0130] The embodiments of the present disclosure further provide a computer-readable storage medium having a computer program stored thereon, and when the program is executed by a processor, the positioning method of the positioning device provided by any of the above embodiments is implemented.
[0131] The readable storage medium may include but is not limited to: a portable disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory, an optical storage device, a magnetic storage device or any suitable combination of the above.
[0132] Example 5
[0133] The embodiment of the present disclosure further provides a computer program product, including a computer program, and when the computer program is executed by a processor, the positioning method of the positioning device described in any one of the above items is implemented.
[0134] Among them, the program code for executing the computer program product of the present disclosure can be written in any combination of one or more programming languages, and the program code can be executed completely on the user device, partially on the user device, as an independent software package, partially on the user device and partially on a remote device, or completely on the remote device.
[0135] Although the specific embodiments of the present disclosure are described above, those skilled in the art should understand that this is only an example, and the protection scope of the present disclosure is defined by the appended claims. Those skilled in the art may make various changes or modifications to these embodiments without departing from the principles and essence of the present disclosure, but these changes and modifications all fall within the protection scope of the present disclosure.
Claims
1. A positioning method for a positioning device, characterized in that: The positioning method comprises: Acquire the first base station information before the positioning device is restarted and the second base station information after the positioning device is restarted; Determining whether the positioning device moves before and after the restart according to a comparison result of the first base station information and the second base station information; In response to the positioning device not moving, ephemeris data is obtained according to the first position information to reduce the time for obtaining the ephemeris data; wherein the first position information includes the position of the positioning device before restarting; and the second position information of the positioning device is calculated according to the ephemeris data.
2. The positioning method according to claim 1, characterized in that: The first base station information includes a first base station identifier, a first base station signal strength, and a first relative direction of the first base station relative to the positioning device; the second base station data includes a second base station identifier, a second base station signal strength, and a second relative direction of the second base station relative to the positioning device; Whether the positioning device moves before and after the restart includes: In response to the comparison result satisfying the first preset condition, the positioning device does not move before and after the restart; wherein the first preset condition is that the first base station identifier and the second base station identifier are the same and the strength difference between the first base station signal strength and the second base station signal strength is less than or equal to a first difference threshold and the direction difference between the first relative direction and the second relative direction is less than a second difference threshold.
3. The positioning method according to claim 1, characterized in that: The obtaining of ephemeris data according to the first position information includes: Acquire a satellite search range corresponding to the first location information; Acquire ephemeris data of a positioning satellite; the positioning satellite is within the satellite search range.
4. The positioning method according to claim 1, characterized in that: The obtaining of ephemeris data according to the first position information includes: The first location information is sent to an external server to obtain the ephemeris data; wherein the external server stores the ephemeris data corresponding to the first location information.
5. The positioning method according to claim 1, characterized in that: The positioning method further comprises: In response to the positioning device moving before and after the restart, waiting for the positioning device to locate successfully and obtaining the third position information of the positioning device; In response to the first location information and the third location information being the same, it is determined that the positioning device is fraudulent.
6. The positioning method according to claim 1, characterized in that: The calculating and obtaining the second position information of the positioning device according to the ephemeris data comprises: Acquire time information when the positioning device receives the ephemeris data; The second position information of the positioning device is calculated according to the time information and the ephemeris data.
7. A positioning system for a positioning device, characterized in that: The positioning system comprises: An acquisition module, used to acquire the first base station information before the positioning device is restarted and the second base station information after the positioning device is restarted; A determination module, configured to determine whether the positioning device moves before and after the restart according to a comparison result of the first base station information and the second base station information; A response module, configured to obtain ephemeris data according to first position information in response to the positioning device not moving, so as to reduce the time for obtaining the ephemeris data; wherein the first position information includes the position of the positioning device before restarting; A calculation module is used to calculate the second position information of the positioning device according to the ephemeris data.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and used to run on the processor, characterized in that: When the processor executes the computer program, the positioning method of the positioning device according to any one of claims 1 to 6 is implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the positioning method of the positioning device according to any one of claims 1 to 6 is implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the positioning method of the positioning device according to any one of claims 1 to 6 is implemented.