CN118091722A - Positioning method, positioning device, electronic equipment and computer readable storage medium - Google Patents

Positioning method, positioning device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN118091722A
CN118091722A CN202410228121.5A CN202410228121A CN118091722A CN 118091722 A CN118091722 A CN 118091722A CN 202410228121 A CN202410228121 A CN 202410228121A CN 118091722 A CN118091722 A CN 118091722A
Authority
CN
China
Prior art keywords
positioning
gps chip
satellite
position information
coordinate
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410228121.5A
Other languages
Chinese (zh)
Inventor
林云宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuxi Wentai Information Technology Co ltd
Original Assignee
Wuxi Wentai Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuxi Wentai Information Technology Co ltd filed Critical Wuxi Wentai Information Technology Co ltd
Priority to CN202410228121.5A priority Critical patent/CN118091722A/en
Publication of CN118091722A publication Critical patent/CN118091722A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Position Fixing By Use Of Radio Waves (AREA)

Abstract

The embodiment of the application relates to a positioning method, a positioning device, electronic equipment and a computer readable storage medium, wherein the positioning method comprises the following steps: the method is applied to electronic equipment, the electronic equipment comprises a Global Positioning System (GPS) chip, and the method comprises the following steps: and responding to the positioning request, sending first position information to a GPS chip, so that the GPS chip determines a satellite searching range according to the first position information, searches at least one target satellite signal in the satellite searching range, and determines a positioning result according to the at least one target satellite signal. The positioning method, the positioning device, the electronic equipment and the computer readable storage medium can improve the positioning efficiency of the GPS chip.

Description

Positioning method, positioning device, electronic equipment and computer readable storage medium
Technical Field
The present application relates to the technical field of positioning technologies, and in particular, to a positioning method, a positioning device, an electronic device, and a computer readable storage medium.
Background
The process of starting the GPS (Global Positioning System ) chip for the first time or starting the GPS chip in a new environment until the GPS chip contacts an available satellite and calculates the coordinates is called a cold start. When the GPS chip is in a cold start condition, the GPS chip needs to obtain longitude and latitude information of the current position by receiving all GPS satellite broadcast signals and decoding data packets in all GPS satellite broadcast signals.
Because the GPS chip needs to decode all the data packets contained in the GPS satellite broadcast signals, and a large amount of data analysis and calculation are needed, the positioning efficiency of the GPS chip is greatly low.
Disclosure of Invention
The embodiment of the application discloses a positioning method, a positioning device, electronic equipment and a computer readable storage medium, which can improve the positioning efficiency of a GPS chip.
In a first aspect, an embodiment of the present application discloses a positioning method applied to an electronic device, where the electronic device includes a global positioning system GPS chip, the method includes:
And responding to the positioning request, sending first position information to a GPS chip, so that the GPS chip determines a satellite searching range according to the first position information, searches at least one target satellite signal in the satellite searching range, and determines a positioning result according to the at least one target satellite signal.
As an optional implementation manner, in the first aspect of the embodiment of the present application, before the sending the first location information to the GPS chip, the method further includes:
Acquiring a first position precision and a first position coordinate;
generating first position information according to the first position precision and the first position coordinate;
The GPS chip determines a satellite searching range according to the first position information, and comprises the following steps:
and the GPS chip determines a satellite searching range according to the first position precision and the first position coordinate.
In a first aspect of the embodiment of the present application, the acquiring the first position accuracy and the first position coordinate includes:
Acquiring a first position coordinate, wherein the first position coordinate is a position coordinate obtained by last positioning of the GPS chip or is a position coordinate input by a user;
acquiring a first time interval from the current moment to the last positioning of the GPS chip;
determining a first position accuracy according to the first time interval; the first position accuracy is in positive correlation with the first time interval.
As an optional implementation manner, in a first aspect of the embodiment of the present application, the determining, according to the first time interval, a first position accuracy includes:
determining a target time range to which the first time interval belongs;
and determining a first position accuracy corresponding to the target time range.
In a first aspect of the embodiment of the present application, the sending the first location information to the GPS chip includes:
Generating a positioning instruction according to the first position information based on an instruction set corresponding to the GPS chip;
and sending the positioning instruction to the GPS chip so that the GPS chip analyzes the positioning instruction to obtain the first position information.
As an optional implementation manner, in a first aspect of the embodiment of the present application, the first location information includes a first location coordinate, and the positioning result includes a second location coordinate corresponding to the current location; after said determining a positioning result from said at least one target satellite signal, the method further comprises:
If the distance between the second position coordinate and the first position coordinate is greater than a distance threshold, acquiring second position information according to a preset positioning rule, and sending the second position information to the GPS chip, so that the GPS chip determines a new satellite searching range according to the second position information, searches at least one new target satellite signal in the new satellite searching range, and determines a new positioning result according to the at least one new target satellite signal.
In an optional implementation manner, in a first aspect of the embodiment of the present application, the acquiring the second location information according to a preset positioning rule includes:
Generating second position information according to the position coordinates input by the user and the input position precision;
or determining a target region range to which the first position coordinate belongs, and generating second position information according to a center coordinate corresponding to the target region range and the corresponding position precision.
In a second aspect, an embodiment of the present application discloses a positioning device, including:
And the positioning module is used for responding to the positioning request, sending first position information to the GPS chip, enabling the GPS chip to determine a satellite searching range according to the first position information, searching at least one target satellite signal in the satellite searching range, and determining a positioning result according to the at least one target satellite signal.
In a third aspect, an embodiment of the present application discloses an electronic device, including a memory, a processor, and a GPS chip, where the memory stores a computer program, where the computer program, when executed by the processor, causes the processor to implement a method as in any of the embodiments above.
In a fourth aspect, embodiments of the present application disclose a computer readable storage medium storing a computer program which, when executed by a processor, implements a method as in any of the embodiments above.
The positioning method, the positioning device, the electronic equipment and the computer readable storage medium disclosed by the embodiment of the application respond to a positioning request and send first position information to the GPS chip so that the GPS chip can determine a satellite searching range according to the first position information, search at least one target satellite signal in the satellite searching range and determine a positioning result according to the at least one target satellite signal. In the embodiment of the application, the GPS chip can determine the satellite searching range by sending the first position information to the GPS chip, and search satellite signals in the satellite searching range, so that the GPS chip does not need to search and position all WeChat, the calculated amount required to be processed by the GPS chip is reduced, the positioning time of the GPS chip is greatly reduced, the quick positioning is realized, and the positioning efficiency of the GPS chip is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is an application scenario diagram of a positioning method in one embodiment;
FIG. 2 is a flow chart of a positioning method in one embodiment;
FIG. 3 is a flow chart of a positioning method in another embodiment;
FIG. 4 is a flow chart of acquiring a first position accuracy and a first position coordinate in one embodiment;
FIG. 5 is a flow chart of a positioning method in another embodiment;
FIG. 6 is a block diagram of a positioning device in one embodiment;
fig. 7 is a block diagram of an electronic device in one embodiment.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
It should be noted that the terms "comprising" and "having" and any variations thereof in the embodiments of the present application and the accompanying drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus.
It will be understood that the terms first, second, etc. as used herein may be used to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another element. For example, the first location information may be referred to as second location information, and similarly, the second location information may be referred to as first location information, without departing from the scope of the application. Both the first position information and the second position information are position information, but they may be the same position information or may be different position information.
In the related art, cold start is forced start by a hardware mode, and in the process of cold start by a GPS chip, because the physical distance is far, or the time interval is long, the GPS chip has already cleaned the internal ephemeris information, or the internal ephemeris information is completely invalid, so that the GPS chip loses satellite parameters, or the situation that the existing parameters and the actually received satellite parameters differ too much, the GPS chip cannot search for satellites fast by ephemeris, so that the GPS chip has to search for all satellites again, and the satellite searching time is long. The problem that positioning time is long after the positioning function is started is caused by many electronic devices.
The embodiment of the application discloses a positioning method, a positioning device, electronic equipment and a computer readable storage medium, which can improve the positioning efficiency of a GPS chip.
Fig. 1 is an application scenario diagram of a positioning method in one embodiment. As shown in fig. 1, the positioning method provided in the embodiment of the application can be applied to an electronic device 110, and the electronic device 110 can include a processor 120 and a GPS chip 130. The electronic device 110 may include, but is not limited to, products capable of GPS positioning such as various personal computers, smart wearable devices, tablet computers, PCs (Personal Computer, personal computers), notebook computers, unmanned aerial vehicles, smart phones, and portable wearable devices; the processor 120 may be a master control chip, and there is data interaction between the master control chip and the GPS chip 130; the GPS chip 130 is capable of GPS positioning to obtain the current location of the electronic device 110.
When the user or the application program needs to locate the current position of the electronic device 110, the user may send a location request to the processor 120 through the location program or the application program, for requesting the processor 120 to locate the electronic device 110; the processor 120 acquires first location information, which is location information for determining the satellite search range 140 for the GPS chip 130, in response to the location request, and transmits the first location information to the GPS chip 130; the GPS chip 130 determines a satellite search range 140 according to the first location information sent by the processor 120, where the satellite search range 140 refers to an area range in which the GPS chip 130 searches for the positioning satellites 150, the satellite search range 140 includes at least one satellite 150, searches for satellites 150 in the satellite search range 140, obtains target satellite signals sent by each satellite 150, and the GPS chip 130 determines a positioning result corresponding to the current location of the electronic device 110 according to each target satellite signal, and returns the positioning result to the processor 120; the processor 120 returns the positioning result to the positioning program or application program, and the positioning program or application program displays or uses the positioning result.
In the embodiment of the present application, the electronic device 110 sends the first location information to the GPS chip 130 through the processor 120, so that the GPS chip 130 can determine the satellite search range 140, and when the GPS chip 130 performs positioning, the GPS chip does not need to search for all satellites to perform positioning, but only needs to search for each satellite 150 in the satellite search range 140, and capture satellite signals of each satellite 150 in the satellite search range 140 to perform positioning, thereby greatly reducing the positioning time of the GPS chip 130, improving the positioning efficiency of the GPS chip 130, and enabling the processor 120 to obtain the current location of the electronic device 110 more quickly.
As shown in fig. 2, in one embodiment, a positioning method is provided, which can be applied to the electronic device. The method may comprise the steps of:
Step 210, in response to the positioning request, the first location information is sent to the GPS chip, so that the GPS chip determines a satellite search range according to the first location information, searches for at least one target satellite signal within the satellite search range, and determines a positioning result according to the at least one target satellite signal.
The global positioning system (Global Positioning System, GPS), a high-precision radio navigation positioning system based on satellites, provides accurate geographic location, vehicle speed and accurate time information anywhere in the world and near earth space. The GPS chip is one of key parts of a GPS system and can determine the actual use performance of a GPS product. Positioning satellites refer to satellites used to provide positioning services. Currently, there are multiple positioning satellite systems in the global scope, and different positioning satellite systems provide different positioning chips and positioning satellites, and different positioning chips can only acquire satellite signals sent by the corresponding positioning satellites, for example, a GPS chip can only search and identify GPS satellite signals.
When a user or an application program needs to acquire the position information of the electronic device, a positioning request is initiated to a processor of the electronic device through a positioning program in the electronic device, the processor of the electronic device responds to the positioning request to detect the state of the GPS chip, and if the GPS chip is detected to be in an unactuated state, the electronic device controls the GPS chip to be actuated so as to enable the GPS chip to be positioned within a satellite searching range, and the acquired positioning result is returned to the user or the application program.
In some embodiments, there are multiple modes of starting the GPS chip by the electronic device, and if there is no previous information in the GPS chip or the previous information fails, a cold start of the GPS chip is required. The previous information may include ephemeris information, almanac information, location information, time information, etc.; the ephemeris information in the GPS chip refers to data describing the motion orbit of the satellite and is used for describing the motion states of the satellite such as position, speed, acceleration and the like in a period of time; the almanac information is a part of satellite signals transmitted by the GPS satellites, and is used for providing the approximate positions of any satellites in the sky at any moment and calculating the approximate orbit and the approximate satellite clock error parameters of the satellites; the previous information failure refers to a case where the previous information stored in the GPS chip is no longer valid or not available.
In some embodiments, if the electronic device is first powered on and used, or when the battery of the electronic device is depleted to cause loss of ephemeris information in the GPS chip, or when the electronic device moves for more than 1000 km in a shutdown state to cause that the information in the GPS chip is no longer valid, or when the software or hardware of the electronic device is reset to cause deletion of the information in the GPS chip, the GPS chip needs to be cold started, and when the GPS chip is located, all satellites need to be searched again to locate the current position.
In an embodiment of the present application, a positioning request refers to a request for instructing a processor of an electronic device to return to a current location of the electronic device.
The first location information is location information for determining a satellite search range for the GPS chip; the satellite search range refers to a range in which the GPS chip searches for satellites. In some embodiments, the electronic device may determine the first location information by obtaining a positioning result obtained by last positioning of the GPS chip or an input of a user.
In some embodiments, the first location information may include a first location coordinate and a first location accuracy; the first position coordinates refer to coordinates of a designated position, and are used for designating an approximate position of the satellite searching range, for example, the first position coordinates are used as center coordinates, corner coordinates and the like of the satellite searching range; the first position precision refers to an error range of the first position coordinate, represents possible deviation between the first position coordinate and an actual position, is used for limiting the size of a range of the GPS chip for satellite searching, can be subjected to custom change according to actual requirements, and is larger as the first position precision is larger. The electronic device is capable of determining a satellite search range based on the first location coordinates and the first location accuracy. In other embodiments, the first location information may also include only the first location coordinates; after the GPS chip acquires the first position coordinate, determining a satellite searching range according to the preset range size, wherein the preset range size is a fixed value; for example, if the preset range is 3000 meters, the GPS chip may use a circle with the first position coordinate as the center and a radius of 3000 meters as the satellite search range.
The satellite search range refers to an area range in which the GPS chip searches for positioning satellites, and the range may be determined according to the first location information, for example, if the GPS chip determines that a circular range should be used as the satellite search range according to the first location information, the GPS chip searches only satellites within the satellite search range for positioning when positioning the current location. In some embodiments, the shape of the satellite search range is not limited, i.e., the satellite search range may be a preset area range shape such as a circle, a square, or the like. The satellite search range may be two-dimensional or three-dimensional according to practical requirements, and is not limited herein, i.e., the satellite search range may be a sphere or the like. The target satellite signal refers to a satellite signal generated for a target satellite searched by the GPS chip within a satellite search range.
In some embodiments, after determining the satellite search range, the GPS chip searches for all target satellites within the satellite search range through the built-in antenna; then, the target satellite signals of the target satellites are captured and locked through operations such as amplification, filtering, demodulation and the like; analyzing navigation data in the target satellite signals, wherein the navigation data can comprise information such as the position, the speed, the time and the like of each target satellite; the GPS chip can calculate the distance between each target satellite and the electronic equipment according to the navigation data by using a triangulation method, and perform positioning calculation on the current position of the electronic equipment according to the position of each target satellite and the corresponding distance to obtain a positioning result. The triangulation method is to calculate the distance between the electronic equipment and the satellite by measuring the transmission time difference between the satellite signal and the electronic equipment, construct a plurality of triangles according to the distances, take the electronic equipment as unknown points, and solve the coordinates of the unknown points by using a trigonometric function by utilizing the side length and the included angle of the triangles; a common trigonometric function is the least squares method.
The positioning result refers to relevant position data obtained by positioning the GPS chip at the current position, and the relevant position data may include second position coordinates of the current position, and the second position coordinates are obtained by the GPS chip through receiving and processing the target satellite signals, and represent a specific position of the electronic device on the earth. The relevant position data also includes altitude information, time information, quality of the target satellite signal, trajectory of the target satellite, status of the electronic device, etc.
In the embodiment of the application, the GPS chip can determine the satellite searching range by sending the first position information to the GPS chip, and search satellite signals in the satellite searching range, so that the GPS chip does not need to search and position all satellites, the calculated amount required to be processed by the GPS chip is reduced, the positioning time of the GPS chip is greatly reduced, the quick positioning is realized, and the positioning efficiency of the GPS chip is improved.
In another embodiment, as shown in fig. 3, a positioning method is provided, which can be applied to the electronic device, and the method can include the following steps:
Step 302, responding to a positioning request.
The description of step 302 may refer to the related description of step 210 in the above embodiment, and will not be repeated here.
Step 304, a first position accuracy and a first position coordinate are obtained.
In some embodiments, since the satellite search range is determined by the first location information, the first location information may include a first location accuracy and a first location coordinate in order to more accurately determine the satellite search range.
The first position accuracy describes a possible deviation between the first position coordinates and the actual position. The first position accuracy may also be determined by a variety of factors depending on the factors affecting the positioning of the GPS chip, including the type of positioning system (e.g., GPS, wi-Fi, cellular network, etc.), satellite signal quality, environmental factors (e.g., building shielding, air granularity, humidity), satellite quality, etc. In some embodiments, if the air granularity and humidity in the air environment are larger, the satellite signal transmission is blocked, so that the larger the air granularity and/or humidity is, the larger the first position accuracy is, and the smaller the air granularity and/or humidity is, the smaller the first position accuracy is; in addition, the first position accuracy may also be inversely proportional to satellite signal quality.
In some embodiments, the electronic device may determine the first position accuracy from the first position coordinates. A position coordinate may correspond to a plurality of position accuracies. The electronic device may set the corresponding position accuracy values according to three dimensions of the first position coordinate, for example, the electronic device first obtains coordinate values of the first position coordinate in three dimensions, where the three dimensions may be longitude, latitude and altitude, determines coordinate value intervals in which coordinate values of the respective dimensions are respectively located, and determines position accuracy corresponding to the coordinate value intervals of the respective dimensions from corresponding relations between the respective dimensions and the position accuracy. Specifically, the first position coordinates are (a, b, c), that is, longitude is a, latitude is b, and altitude is c; the longitude, the latitude and the altitude have corresponding relations with the position precision respectively, namely, the corresponding relation between the longitude and the position precision, the corresponding relation between the latitude and the position precision and the corresponding relation between the altitude and the position precision exist, and the three corresponding relations are not related to each other; when the electronic equipment acquires the first position accuracy, the electronic equipment can acquire the position accuracy corresponding to the longitude, the latitude and the altitude respectively.
In one embodiment, as shown in fig. 4, the step of obtaining the first position accuracy and the first position coordinate may include the following steps 402 to 406:
Step 402, a first location coordinate is obtained.
In some embodiments, the first position coordinate is a position coordinate obtained by last positioning of the GPS chip, or the first position coordinate is a position coordinate input by a user. The first position coordinates may be two-dimensional coordinates or three-dimensional coordinates, which are not limited.
In some embodiments, the electronic device may reserve a positioning result obtained by positioning the GPS chip last time, and directly obtain the first position coordinate from the last positioning result; the first position coordinate may also be a position coordinate of a city center to which the position obtained by the last positioning of the GPS chip belongs, or may be a position coordinate input by a user in a self-defining manner.
In some embodiments, the electronic device, upon receiving the location request, may output an associated fill interface that may include an input prompt for guiding the user for input and a text input box for obtaining the user's input. Specifically, the input prompt of the electronic device may be to prompt the user to directly input the position coordinates or the city or the landmark building; if the electronic equipment detects that the input of the user is a position coordinate, the position coordinate is used as a first position coordinate; if the input of the user is detected to be the city or the marked building, the center coordinate of the city or the coordinate of the marked building is taken as the first position coordinate.
Step 404, a first time interval from the current time to the last positioning of the GPS chip is obtained.
The first time interval refers to the difference between the time the GPS chip last performed a position fix and the current time. For example, the time for the last positioning of the GPS chip is 20 points of 2024, 1 month and 5 days, and the current time is 3 points of 2024, 1 month and 6 days, and the first time interval is 7 hours.
Step 406, determining a first position accuracy according to the first time interval.
The first position accuracy and the first time interval are in positive correlation. The longer the first time interval is, the larger the corresponding first position precision is, and the larger the indicated satellite searching range is; conversely, the shorter the first time interval, the smaller its corresponding first position accuracy, and the smaller the indicated satellite search range.
In some embodiments, if the first time interval is smaller than the time threshold, the electronic device may determine, according to a preset correspondence between the time interval and the position accuracy, a first position accuracy corresponding to the first time interval; if the first time interval is greater than or equal to the time threshold, the electronic device may output accuracy feedback information, which may be used to indicate the first position accuracy.
In the embodiment of the application, the threshold value judgment is carried out on the first time interval, so that the situation that the position precision is invalid due to the large-amplitude change of the position caused by the overlarge time interval can be avoided. The first time interval is greater than or equal to the time threshold value, which indicates that the time of the last positioning of the GPS chip is greater than the time of the current positioning, so that the position difference between the two times of positioning is greater, and at the moment, if the first position precision is obtained by using a simple corresponding relation, the larger position deviation can occur, and the higher error rate of the positioning result is caused, therefore, the position deviation of the positioning of the GPS chip can be reduced by performing threshold value determination on the first time interval, and the positioning accuracy of the GPS chip is improved.
In some embodiments, if the first position coordinate is a position coordinate input by the user in a self-defining manner, the electronic device may expand the numerical range of the first position precision after determining the first position precision according to the first time interval because the position coordinate input by the user in a self-defining manner deviates from the position coordinate actually located by the electronic device, for example, the electronic device may expand the first position precision to 4000 meters when determining the first position precision according to the first time interval because the first position coordinate is a position coordinate input by the user in a self-defining manner. The position accuracy may also be obtained from the content of the user-defined input as the first position accuracy.
In some embodiments, the correspondence between the first time interval and the first position accuracy may be a preset correspondence, or a preset formula may be used to substitute the first time interval into a formula to calculate to obtain the first position accuracy, where the preset formula may be a unitary first-order equation, a unitary second-order equation, and the specific calculation formula is not limited herein.
In some specific embodiments, the preset correspondence between the time interval and the position accuracy may be a preset correspondence between a plurality of time ranges and a plurality of position accuracies, where the plurality of time ranges and the plurality of position accuracies are in one-to-one correspondence. After the first time interval is acquired, a target time range to which the first time interval belongs can be determined; a first position accuracy corresponding to the target time range is determined. The larger the maximum value of the target time range to which the first time interval belongs, the larger the corresponding first position precision; and/or the smaller the minimum value of the target time range to which the first time interval belongs, the smaller the corresponding first position accuracy. Illustratively, the electronic device may further find the position accuracy corresponding to the target time range according to the correspondence between the time range and the position accuracy in table 1, so as to determine the first position accuracy corresponding to the first time interval.
TABLE 1 correspondence between time ranges and position accuracy
Time interval Position accuracy (Rice)
For less than 12 hours 500
More than or equal to 12 hours and less than 24 hours 1000
More than or equal to 24 hours and less than 36 hours 5000
For more than or equal to 36 hours, less than 7 days 10000
For greater than or equal to 7 days 50000
Specifically, if the first time interval is 7 hours, the corresponding first position precision is 500 meters; if the first time interval is 7 days, the corresponding first position precision is 50000 meters.
Step 306, generating first position information according to the first position accuracy and the first position coordinates.
Step 308, the first location information is sent to the GPS chip, so that the GPS chip determines a satellite search range according to the first location accuracy and the first location coordinate, searches for at least one target satellite signal within the satellite search range, and determines a positioning result according to the at least one target satellite signal.
In some embodiments, the satellite search range may be a circular or elliptical area centered on the first position coordinate, the radius or axial length of which is determined by the first position accuracy; a square region with the first position coordinate as the center and the first position precision as the side length; the first position coordinate may be set to a lower left corner coordinate, and the first position accuracy may be set to a side length, thereby defining a square area. Specifically, in the preset case, the first position accuracy may be different in the longitude and latitude directions, and at this time, the major axis and the minor axis of the ellipse may be calculated from the first position accuracy in each direction, resulting in an elliptical satellite search range.
In some embodiments, the electronic device generates a positioning instruction according to the first location information based on an instruction set corresponding to the GPS chip; and sending the positioning instruction to the GPS chip so that the GPS chip analyzes the positioning instruction to obtain the first position information.
The positioning instruction may be an instruction for instructing the GPS chip to perform positioning, and further, the positioning instruction may also be an instruction for instructing the GPS chip to start and perform positioning. In the application, the positioning instruction comprises first position information, including first position precision and first position coordinates.
Because direct data communication cannot be performed between the processor of the electronic device and the GPS chip, the data can be exchanged only by respectively converting the data into control instructions respectively corresponding to the processor and the GPS chip. Therefore, the electronic device needs to generate an instruction which can be identified by the GPS chip based on the instruction set corresponding to the GPS chip, so that the first position information can be injected into the GPS chip; the corresponding instruction set of each GPS chip is different according to different manufacturers and types, so that the electronic device needs to know the type of the GPS chip in advance, so that the instruction set corresponding to the GPS chip can be acquired, a positioning instruction which can be received by the GPS chip can be generated, and then the first position information is injected into the GPS chip through the positioning instruction.
In some embodiments, after determining the positioning result, the GPS chip may generate a positioning response instruction according to the positioning result, and send the positioning response instruction to the processor of the electronic device, so that the electronic device can determine whether the positioning is successful and the positioning result of the current location from the positioning response instruction.
In the embodiment of the application, the GPS chip can determine the satellite searching range by sending the first position information to the GPS chip and search satellite signals in the satellite searching range, and the GPS chip does not need to search and position all available satellites. In addition, the threshold value judgment is carried out on the first time interval, so that the position deviation of the GPS chip positioning can be reduced, and the accuracy of the GPS chip positioning is improved.
In another embodiment, as shown in fig. 5, a positioning method is provided, which can be applied to the electronic device, and the method can include the following steps:
Step 502, in response to the positioning request, the first location information is sent to the GPS chip, so that the GPS chip determines a satellite search range according to the first location information, searches for at least one target satellite signal within the satellite search range, and determines a positioning result according to the at least one target satellite signal.
The description of step 502 may refer to the related description of step 210 in the above embodiment, and will not be repeated here.
Step 504, if the distance between the second position coordinate and the first position coordinate is greater than the distance threshold, obtaining second position information according to a preset positioning rule, and sending the second position information to the GPS chip, so that the GPS chip determines a new satellite searching range according to the second position information, searches for at least one new target satellite signal within the new satellite searching range, and determines a new positioning result according to the at least one new target satellite signal.
In some embodiments, after the GPS chip of the electronic device determines the positioning result according to the positioning performed by at least one target satellite signal within the satellite search range, in order to reduce the positioning time and improve the positioning efficiency, to ensure the accuracy of positioning performed by the GPS chip, the electronic device may determine and process the obtained positioning result, so that the second position coordinate in the positioning result may accurately represent the current position.
In some embodiments, the electronic device may determine whether to perform positioning again by calculating a distance between the second position coordinate and the first position coordinate, and determining a magnitude relation between the distance and a distance threshold.
The distance threshold refers to a criterion for measuring whether a positioning result is reasonable. In some embodiments, the distance threshold may be associated with a first time interval, the larger the distance threshold, the smaller the first time interval; the distance threshold may also be associated with a variety of factors, such as the rate of movement of the user or the electronic device.
In some embodiments, if the distance between the second position coordinate and the first position coordinate is greater than the distance threshold, the result of positioning obtained in this time is indicated to be abrupt compared with the last positioning result or the position input by the user, that is, the result of positioning obtained in this time is out of a reasonable range, and the result of positioning obtained in this time is considered to be abnormal; therefore, the electronic equipment can acquire the second position information according to the preset positioning rule, so that the GPS chip can determine a new satellite searching range according to the second position information, and the electronic equipment can reposition the satellite searching range to acquire a new positioning result; until the new positioning result is less than or equal to the distance threshold.
The preset positioning rule refers to a method for determining second position information; the second location information is used to determine location information for a new satellite search range for repositioning the GPS chip, and may include second location coordinates and/or second location accuracy. In the embodiment of the application, when the distance between the second position coordinate and the first position coordinate is larger than the distance threshold, the electronic equipment determines to acquire the second position information according to the positioning rule preset by the user, so that a reasonable satellite searching range is determined through the second position information, a reasonable positioning result is obtained, and the accuracy of the positioning result is ensured.
In some embodiments, the step of obtaining the second location information according to a preset positioning rule may include: generating second position information according to the position coordinates input by the user and the input position precision; or determining a target region range to which the first position coordinate belongs, and generating second position information according to the center coordinate corresponding to the target region range and the corresponding position precision.
In some specific embodiments, if the electronic device detects that the positioning result obtained by the GPS chip has a larger difference from the first position information, the defined position coordinate of the first position information may be manually changed, and the center longitude and latitude of the current city or region is selected as the position coordinate, or the custom position is selected as the position coordinate, so as to generate second position information, and the second position information is injected into the GPS chip for positioning; because the latitude and longitude of the center of the city or the region or the position input by the user is a rough positioning point, certain deviation exists, and when the second position precision in the second position information is determined, the second position precision can be obtained by expanding the range of the first position precision, or the user can input the second position precision in a self-defining way.
In the embodiment of the application, the GPS chip can determine the satellite searching range by sending the first position information to the GPS chip and search satellite signals in the satellite searching range, and the GPS chip does not need to search and position all available satellites. In addition, the threshold value judgment is carried out on the first time interval, so that the position deviation of the GPS chip positioning can be reduced, and the accuracy of the GPS chip positioning is improved. And the position accuracy or position coordinates are changed by user input in a self-defined way, so that the positioning result of the GPS chip can be more in line with the expected assumption of the user.
As shown in fig. 6, in one embodiment, a positioning device 600 is provided and can be applied to the electronic device. The positioning device 600 may include a positioning module 610.
The positioning module 610 is configured to send first location information to a GPS chip in response to a positioning request, so that the GPS chip determines a satellite search range according to the first location information, searches for at least one target satellite signal within the satellite search range, and determines a positioning result according to the at least one target satellite signal.
As an alternative implementation manner, in an embodiment of the present application, the positioning device 600 further includes: the position acquisition module is used for acquiring the first position precision and the first position coordinate; and generating first position information according to the first position precision and the first position coordinate.
Optionally, the positioning module 610 is further configured to determine, by using a GPS chip, a satellite search range according to the first position accuracy and the first position coordinate.
Optionally, the position obtaining module is further configured to obtain a first position coordinate, where the first position coordinate is a position coordinate obtained by last positioning of the GPS chip, or the first position coordinate is a position coordinate input by a user; acquiring a first time interval from the current moment to the last positioning of the GPS chip; determining a first position accuracy according to the first time interval; the first position accuracy is in positive correlation with the first time interval.
In some embodiments, the location acquisition module is further configured to determine a target time range to which the first time interval belongs; and determining a first position accuracy corresponding to the target time range.
Optionally, the positioning module is further configured to generate a positioning instruction according to the first location information based on an instruction set corresponding to the GPS chip; and sending the positioning instruction to the GPS chip so that the GPS chip analyzes the positioning instruction to obtain the first position information.
As an alternative implementation manner, in an embodiment of the present application, the positioning device 600 further includes: and the secondary positioning module is used for acquiring second position information according to a preset positioning rule and sending the second position information to the GPS chip if the distance between the second position coordinate and the first position coordinate is larger than a distance threshold value, so that the GPS chip can determine a new satellite searching range according to the second position information, search at least one new target satellite signal in the new satellite searching range, and determine a new positioning result according to the at least one new target satellite signal.
Optionally, the secondary positioning module is further configured to generate second position information according to the position coordinates input by the user and the input position accuracy; or determining a target region range to which the first position coordinate belongs, and generating second position information according to a center coordinate corresponding to the target region range and the corresponding position precision.
In the embodiment of the application, the GPS chip can determine the satellite searching range by sending the first position information to the GPS chip and search satellite signals in the satellite searching range, and the GPS chip does not need to search and position all available satellites. In addition, the threshold value judgment is carried out on the first time interval, so that the position deviation of the GPS chip positioning can be reduced, and the accuracy of the GPS chip positioning is improved. And the position accuracy or position coordinates are changed by user input in a self-defined way, so that the positioning result of the GPS chip can be more in line with the expected assumption of the user.
Fig. 7 is a block diagram of an electronic device in one embodiment. The electronic device can be a mobile phone, a tablet computer, an intelligent wearable device and the like. As shown in fig. 7, the electronic device 700 may include one or more of the following components: the system comprises a processor 710, a memory 720 coupled to the processor 710, and a GPS chip 730, wherein the memory 720 may store one or more computer programs that, when executed by the one or more processors 710, may be configured to implement the method of GPS chip 730 for positioning as described in the various embodiments above.
Processor 710 may include one or more processing cores. The processor 710 utilizes various interfaces and lines to connect various portions of the overall electronic device 700, perform various functions of the electronic device 700, and process data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 720, and invoking data stored in the memory 720. Alternatively, the processor 710 may be implemented in hardware in at least one of digital signal Processing (DIGITAL SIGNAL Processing, DSP), field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 710 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), and a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for being responsible for rendering and drawing of display content; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor 710 and may be implemented solely by a single communication chip.
Memory 720 may include random access Memory (Random Access Memory, RAM) or Read-Only Memory (ROM). Memory 720 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 720 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described above, and the like. The storage data area may also store data created by the electronic device 700 in use, and the like.
The GPS chip 730 may be a stand-alone chip, a combination chip, a dual-frequency chip, or the like.
It will be appreciated that the electronic device 700 may include more or fewer structural elements than those described in the above structural block diagrams, including, for example, a power source, input keys, a camera, a speaker, a screen, an RF (Radio Frequency) circuit, a Wi-Fi (WIRELESS FIDELITY) module, a bluetooth module, a sensor, etc., and may not be limited herein.
The embodiments of the present application disclose a computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the method as described in the above embodiments.
Embodiments of the present application disclose a computer program product comprising a computer program which, when executed by a processor, implements the method as described in the above embodiments.
Those skilled in the art will appreciate that all or part of the processes in the methods of the above embodiments may be implemented by a computer program for instructing relevant hardware, where the program may be stored in a non-volatile computer readable storage medium, and where the program, when executed, may include processes in the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), or the like.
Any reference to memory, storage, database, or other medium as used herein may include non-volatile and/or volatile memory. Suitable nonvolatile memory can include ROM, programmable ROM (PROM), erasable PROM (EPROM), electrically Erasable PROM (ELECTRICALLY ERASABLE PROM, EEPROM), or flash memory. Volatile memory can include random access memory (random access memory, RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as static RAM (STATIC RAM, SRAM), dynamic RAM (Dynamic Random Access Memory, DRAM), synchronous DRAM (SDRAM), double-data-rate SDRAM (Double DATA RATE SDRAM, DDR SDRAM), enhanced SDRAM (Enhanced Synchronous DRAM, ESDRAM), synchronous link DRAM (SYNCHLINK DRAM, SLDRAM), memory bus Direct RAM (Rambus DRAM, RDRAM), and Direct memory bus dynamic RAM (Direct Rambus DRAM, DRDRAM).
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. Those skilled in the art will also appreciate that the embodiments described in the specification are alternative embodiments and that the acts and modules referred to are not necessarily required for the present application.
In various embodiments of the present application, it should be understood that the sequence numbers of the foregoing processes do not imply that the execution sequences of the processes should be determined by the functions and internal logic of the processes, and should not be construed as limiting the implementation of the embodiments of the present application.
The technical features of the foregoing embodiments may be arbitrarily combined, and for brevity, all of the possible combinations of the technical features of the foregoing embodiments are not described, however, all of the combinations of the technical features should be considered as being within the scope of the disclosure.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units described above, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer-accessible memory. Based on this understanding, the technical solution of the present application, or a part contributing to the prior art or all or part of the technical solution, may be embodied in the form of a software product stored in a memory, comprising several requests for a computer device (which may be a personal computer, a server or a network device, etc., in particular may be a processor in a computer device) to execute some or all of the steps of the above-mentioned method of the various embodiments of the present application.
The foregoing describes in detail a positioning method, apparatus, electronic device and computer readable storage medium according to embodiments of the present application, and specific examples are applied to illustrate the principles and embodiments of the present application, where the foregoing examples are only used to help understand the method and core idea of the present application. Meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.

Claims (10)

1. A positioning method, characterized by being applied to an electronic device, the electronic device comprising a global positioning system GPS chip, the method comprising:
And responding to the positioning request, sending first position information to a GPS chip, so that the GPS chip determines a satellite searching range according to the first position information, searches at least one target satellite signal in the satellite searching range, and determines a positioning result according to the at least one target satellite signal.
2. The method of claim 1, wherein prior to said sending the first location information to the GPS chip, the method further comprises:
Acquiring a first position precision and a first position coordinate;
generating first position information according to the first position precision and the first position coordinate;
The GPS chip determines a satellite searching range according to the first position information, and comprises the following steps:
and the GPS chip determines a satellite searching range according to the first position precision and the first position coordinate.
3. The method of claim 2, wherein the obtaining the first position accuracy and the first position coordinates comprises:
Acquiring a first position coordinate, wherein the first position coordinate is a position coordinate obtained by last positioning of the GPS chip or is a position coordinate input by a user;
acquiring a first time interval from the current moment to the last positioning of the GPS chip;
determining a first position accuracy according to the first time interval; the first position accuracy is in positive correlation with the first time interval.
4. A method according to claim 3, wherein said determining a first position accuracy from said first time interval comprises:
determining a target time range to which the first time interval belongs;
and determining a first position accuracy corresponding to the target time range.
5. The method of claim 1, wherein the sending the first location information to the GPS chip comprises:
Generating a positioning instruction according to the first position information based on an instruction set corresponding to the GPS chip;
and sending the positioning instruction to the GPS chip so that the GPS chip analyzes the positioning instruction to obtain the first position information.
6. The method of claim 1, wherein the first location information comprises first location coordinates and the positioning result comprises second location coordinates corresponding to a current location; after said determining a positioning result from said at least one target satellite signal, the method further comprises:
If the distance between the second position coordinate and the first position coordinate is greater than a distance threshold, acquiring second position information according to a preset positioning rule, and sending the second position information to the GPS chip, so that the GPS chip determines a new satellite searching range according to the second position information, searches at least one new target satellite signal in the new satellite searching range, and determines a new positioning result according to the at least one new target satellite signal.
7. The method of claim 6, wherein the obtaining the second location information according to the preset positioning rule includes:
Generating second position information according to the position coordinates input by the user and the input position precision;
or determining a target region range to which the first position coordinate belongs, and generating second position information according to a center coordinate corresponding to the target region range and the corresponding position precision.
8. A positioning device for use with a GPS chip, said device comprising:
And the positioning module is used for responding to the positioning request, sending first position information to the GPS chip, enabling the GPS chip to determine a satellite searching range according to the first position information, searching at least one target satellite signal in the satellite searching range, and determining a positioning result according to the at least one target satellite signal.
9. An electronic device comprising a memory, a processor and a GPS chip, the memory storing a computer program which, when executed by the processor, causes the processor to implement the method of any of claims 1 to 7.
10. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 7.
CN202410228121.5A 2024-02-29 2024-02-29 Positioning method, positioning device, electronic equipment and computer readable storage medium Pending CN118091722A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410228121.5A CN118091722A (en) 2024-02-29 2024-02-29 Positioning method, positioning device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410228121.5A CN118091722A (en) 2024-02-29 2024-02-29 Positioning method, positioning device, electronic equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN118091722A true CN118091722A (en) 2024-05-28

Family

ID=91159698

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410228121.5A Pending CN118091722A (en) 2024-02-29 2024-02-29 Positioning method, positioning device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN118091722A (en)

Similar Documents

Publication Publication Date Title
US9681269B2 (en) Positioning accuracy using 3D building models
EP2602643B1 (en) GNSS architecture
US9103917B2 (en) Method and system for determining location within a building based on historical location information
US20110237185A1 (en) Method and system for determining a location for a rf communication device based on its proximity to a mobile device
CN110320536B (en) Satellite positioning parameter calibration method, device, terminal equipment and storage medium
CN111781619B (en) Positioning method, device, equipment and storage medium based on near field communication network
KR20080027564A (en) Mobile communication terminal for providing position information and method thereof
KR20150061587A (en) Method and system for automatically generating location signatures for positioning using inertial sensors
US10659916B2 (en) Retrospective path analysis
CN108780155B (en) Positioning method, terminal and server
KR20110135809A (en) Precision positioning apparatus and method utilizing virtual reference station by wireless access point
US20160124069A1 (en) Systems and methods for estimating a two-dimensional position of a receiver
US20110199257A1 (en) Method and system for updating altitude information for a location by using terrain model information to prime altitude sensors
US9720071B2 (en) Mitigating effects of multipath during position computation
CN113376674A (en) Terminal positioning method, device, equipment and storage medium
KR20200047211A (en) Method for detecting multipath state of global navigation satellite system signal and electronic device for supporting the same
CN118091722A (en) Positioning method, positioning device, electronic equipment and computer readable storage medium
CN111397602A (en) High-precision positioning method and device integrating broadband electromagnetic fingerprint and integrated navigation
KR102221875B1 (en) Method for searching location of vehicle
JP6521853B2 (en) INFORMATION PROCESSING APPARATUS, POSITIONING SYSTEM, INFORMATION PROCESSING METHOD, AND COMPUTER PROGRAM
CN114449647B (en) Positioning method and device
US10873834B2 (en) Radio maps for location and/or positioning services
US11650333B2 (en) Methods and apparatuses for automatic object heading determinations
WO2017213724A1 (en) Global navigation satellite signal categorization
CN115585807A (en) GNSS/INS integrated navigation method based on machine learning

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication