Method for positioning chip and terminal equipment
阅读说明:本技术 定位芯片定位的方法及终端设备 (Method for positioning chip and terminal equipment ) 是由 谭伟强 于 2019-01-31 设计创作,主要内容包括:本发明适用于定位技术领域,提供了一种定位芯片定位的方法及终端设备,该方法包括:对定位芯片上电;根据定位芯片的当前工作阶段,在定位芯片上电后的至少一个预设时刻检测所述定位芯片确定当前位置所需的定位时间,可以根据定位芯片预估的定位时间,执行对应的操作,节省用户定位接收机的功耗,提高用户体验。(The invention is suitable for the technical field of positioning, and provides a method for positioning positioning chips and a terminal device.)
1, methods for positioning a chip, comprising:
powering on the positioning chip;
detecting positioning time required by the positioning chip to determine the current position at least preset moments after the positioning chip is powered on according to the current working stage of the positioning chip;
and executing corresponding operation according to the positioning time.
2. A method for positioning a chip as recited in claim 1, wherein said operational phase comprises: the method comprises a satellite signal acquisition working phase, a time decoding working phase, an ephemeris decoding working phase and a positioning calculation working phase.
3. The method of positioning a chip as recited in claim 2, wherein after the positioning chip is powered on, the method further comprises:
receiving satellite signals transmitted by a satellite;
detecting whether the time data and the ephemeris data stored in the positioning chip are valid or not;
when the time data and the ephemeris data stored in the positioning chip are invalid, performing time decoding and ephemeris decoding on the received satellite signal to obtain decoded time data and ephemeris data;
detecting the number of satellites corresponding to all received satellite signals;
and if all the received satellite signals correspond to at least four satellites, and the time decoding and the ephemeris decoding are successful, performing positioning calculation according to at least four decoded time data and at least four decoded ephemeris data, and outputting the current position.
4. The method for positioning the chip of claim 3, wherein the time required for acquiring the satellite signals is different, the time required for decoding the ephemeris is different, and the time required for resolving the position is different under different signal conditions.
5. The method for positioning chip of claim 4, wherein the detecting the positioning time required by the positioning chip to determine the current position at least preset times after the positioning chip is powered on according to the current working phase of the positioning chip comprises:
and detecting the positioning time required by the positioning chip to determine the current position according to the number of the satellites corresponding to the currently received sending satellite signals at least preset moments after the positioning chip is powered on.
6. The method for positioning chip of claim 4, wherein the detecting the positioning time required by the positioning chip to determine the current position at least preset times after the positioning chip is powered on according to the current working phase of the positioning chip comprises:
and detecting the positioning time required by the positioning chip to determine the current position according to the number of the satellites corresponding to the currently received transmitted satellite signals and the number of the satellites completing ephemeris decoding at least preset moments after the positioning chip is powered on.
7. The method for positioning chip of any of claims 1-6, wherein the performing corresponding operations according to the positioning time includes:
detecting whether the positioning time exceeds a preset time or not;
when the positioning time exceeds the preset time, performing power-off operation on the positioning chip;
and when the positioning time does not exceed the preset time, the positioning chip continues to execute the positioning operation.
An apparatus for positioning a chip in , comprising:
the power-on module is used for powering on the positioning chip;
the detection module is used for detecting the positioning time required by the positioning chip to determine the current position at least preset moments after the positioning chip is powered on according to the current working stage of the positioning chip;
and the processing module is used for executing corresponding operation according to the positioning time.
Terminal device of the kind 9, , comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 7 through when executing the computer program.
10, computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any of claims 1 to 7 or .
Technical Field
The invention belongs to the technical field of positioning, and particularly relates to a positioning method of positioning chips and terminal equipment.
Background
With the progress of the technical level, the technology of the Global Positioning System (GPS) is increasingly applied to various aspects of daily life, and particularly, in the application of Positioning children, the elderly, or people with intelligence restriction, the GPS Positioning technology plays an important role in Positioning and tracking with low power consumption, that is, in the application of Positioning times every 1 hour, a user Positioning receiver turns on a GPS chip every 1 hour for Positioning times, if Positioning can be performed within 3 minutes, the GPS is powered off immediately, if Positioning cannot be performed within 3 minutes, the GPS is powered off in 3 minutes, and the power-on Positioning is unsuccessful.
Due to the low-power-consumption positioning tracking application, the battery capacity is small, when the existing GPS chip cannot be positioned, the power of the GPS chip needs to be cut off in 3 rd minute, so that the power consumption of the GPS chip is large, and the user experience is poor.
Disclosure of Invention
In view of this, embodiments of the present invention provide positioning chip positioning methods and terminal devices, so as to solve the problems in the prior art that due to low power consumption of positioning tracking application, battery capacity is small, and when the existing GPS chip cannot perform positioning, the power of the GPS chip needs to be cut off in 3 rd minute, which results in large power consumption of the GPS chip and poor user experience.
The th aspect of the embodiment of the invention provides a method for positioning a chip, which comprises the following steps:
powering on the positioning chip;
detecting positioning time required by the positioning chip to determine the current position at least preset moments after the positioning chip is powered on according to the current working stage of the positioning chip;
and executing corresponding operation according to the positioning time.
In the embodiment, the operational phases include a satellite signal acquisition operational phase, a time decoding operational phase, an ephemeris decoding operational phase, and a position solution operational phase.
In the embodiment, after the positioning chip is powered on, the method further includes:
receiving satellite signals transmitted by a satellite;
detecting whether the time data and the ephemeris data stored in the positioning chip are valid or not;
when the time data and the ephemeris data stored in the positioning chip are invalid, performing time decoding and ephemeris decoding on the received satellite signal to obtain decoded time data and ephemeris data;
detecting the number of satellites corresponding to all received satellite signals;
and if all the received satellite signals correspond to at least four satellites, and the time decoding and the ephemeris decoding are successful, performing positioning calculation according to at least four decoded time data and at least four decoded ephemeris data, and outputting the current position.
In the embodiment, the satellite signal acquisition takes different times, the time decoding takes different times, the ephemeris decoding takes different times, and the position solution takes different times under different signal conditions.
In an embodiment, the detecting, according to the current working phase of the positioning chip, the positioning time required by the positioning chip to determine the current position at least preset moments after the positioning chip is powered on includes:
and detecting the positioning time required by the positioning chip to determine the current position according to the number of the satellites corresponding to the currently received sending satellite signals at least preset moments after the positioning chip is powered on.
The detecting, according to the current working phase of the positioning chip, the positioning time required by the positioning chip to determine the current position at least preset moments after the positioning chip is powered on includes:
and detecting the positioning time required by the positioning chip to determine the current position according to the number of the satellites corresponding to the currently received transmitted satellite signals and the number of the satellites completing ephemeris decoding at least preset moments after the positioning chip is powered on.
In the embodiment, the performing corresponding operations according to the positioning time includes:
detecting whether the positioning time exceeds a preset time or not;
when the positioning time exceeds the preset time, performing power-off operation on the positioning chip;
and when the positioning time does not exceed the preset time, the positioning chip continues to execute the positioning operation.
A second aspect of the embodiments of the present invention provides an apparatus for positioning a chip, including:
the power-on module is used for powering on the positioning chip;
the detection module is used for detecting the positioning time required by the positioning chip to determine the current position at least preset moments after the positioning chip is powered on according to the current working stage of the positioning chip;
and the processing module is used for executing corresponding operation according to the positioning time.
A third aspect of the embodiments of the present invention provides terminal devices, which include a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor, when executing the computer program, implements the steps of the method for positioning a chip as described above.
A fourth aspect of the embodiments of the present invention provides computer-readable storage media, which includes a computer program stored thereon, and when being executed by a processor, the computer program implements the steps of the method for positioning a chip as described above.
Compared with the prior art, the method and the device have the advantages that the positioning time required by the positioning chip to determine the current position is detected at least preset moments after the positioning chip is powered on according to the current working stage of the positioning chip, corresponding operation can be executed according to the positioning time estimated by the positioning chip, power consumption of a user positioning receiver is saved, and user experience is improved.
Drawings
To more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed for the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings according to these drawings without any creative effort.
Fig. 1 is a schematic flow chart illustrating an implementation of a method for positioning a chip according to an embodiment of the present invention;
fig. 2 is a schematic flow chart illustrating an implementation of another methods for positioning a chip according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an interaction flow for performing corresponding operations according to positioning time according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating an apparatus for positioning a chip according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
Fig. 1 is a schematic flow chart of an implementation of the method for positioning a chip according to the embodiment of the present invention, which is detailed as follows:
in some embodiments, the positioning chip can be a GPS chip.
Optionally, the working phase of positioning the chip may include: the method comprises a satellite signal acquisition working phase, a time decoding working phase, an ephemeris decoding working phase and a positioning calculation working phase, wherein the sequential execution of the working phases of the positioning chip is a positioning execution process of the positioning chip.
Optionally, as shown in fig. 2, after
The GPS navigation system satellite part is used for continuously transmitting satellite signals, and after the positioning chip is electrified, the satellite signals transmitted by the satellites can be received, so that positioning is carried out.
The satellite signal broadcasts frames of satellite data every 30 seconds, each frame of satellite data comprises 5 subframes, each subframe is 6 seconds in length, each subframe contains time information, in addition, 18 seconds in the frames of satellite data continuously contain ephemeris information, ephemeris refers to an accurate position or a track table of the flying object running along with time in GPS measurement, and is a function of time, the satellite ephemeris determines various parameters of the flying object such as time, coordinates, direction, speed and the like according to the mathematical relationship among the 6 orbit parameters of the Kepler's law, and has extremely high precision, the satellite ephemeris information is also called an ephemeris, and the ephemeris data is used for explaining the preset position of a certain satellite at intervals of times or times.
Optionally, it is detected whether the time data and the ephemeris data stored in the positioning chip are the latest time data and ephemeris data that can be used for subsequent positioning. For example, if the time data and the ephemeris data stored in the positioning chip are data before the preset time, the time data and the ephemeris data are not available, and if the time data and the ephemeris data stored in the positioning chip are data after the preset time, the time data and the ephemeris data are available. Optionally, the preset time is data set according to experience, and the preset time set for different positioning chips may be different. For example, the preset time is 5 minutes, that is, the time data and ephemeris data stored in the positioning chip are data before 5 minutes, and are not available.
And , when the time data and the ephemeris data stored in the positioning chip are valid, the time data and the ephemeris data can be directly used for positioning calculation.
The method comprises the steps of carrying out time decoding on satellite signals, extracting time data, comparing the time data with a clock of a user positioning receiver (the user positioning receiver comprises a positioning chip), obtaining the distance between a satellite and the user positioning receiver, extracting ephemeris data by carrying out ephemeris decoding on the satellite signals, calculating the position of the satellite when the satellite signals are transmitted according to the ephemeris data, and obtaining information such as the position speed of the user positioning receiver in a WGS-84 geodetic coordinate system.
And
Since the clock used by the user positioning receiver cannot always be synchronized with the satellite-borne clock, deltat, i.e. the time difference between the satellite and the user positioning receiver, are introduced as unknowns in addition to the three-dimensional coordinates x, y, z of the user positioning receiver, and then the 4 unknowns are solved by 4 equations for positioning.
The basic condition for -like satellite positioning is that at least four satellites are acquired and ephemeris decoding is successful for at least four acquired satellites.
For example, in an open environment, the signal condition is good, the time required for each working phase of satellite positioning is short, the satellite positioning time is short, in an environment such as under an overhead bridge, in a high-rise building in a city, in an indoor environment, the signal condition is good, the time required for each working phase of satellite positioning is longer than the time required for each working phase of the environment with good signal condition, so the time required for satellite positioning is longer than the time required for satellite positioning in the environment with good signal condition, and in the case of poor signal condition or no satellite signal, the positioning chip may not capture four satellites at , which may result in no success in satellite positioning .
Optionally, when the signal condition is good, at least preset times after the positioning chip is powered on, the positioning time required by the positioning chip to determine the current position is detected according to the number of currently received satellites corresponding to the transmitted satellite signals and the number of satellites completing ephemeris decoding, so that the time required by the positioning chip to position can be detected more accurately.
When the signal condition is good, various working progresses of the positioning chip are smooth, the positioning chip may have finished a satellite signal capturing working phase, a time decoding working phase and an ephemeris decoding working phase at preset moments after the positioning chip is powered on, and the positioning time required by the positioning chip to determine the current position is detected according to the number of captured satellites and the number of satellites completing ephemeris decoding.
Optionally, when the signal condition is poor, at least preset times after the positioning chip is powered on, the positioning time required by the positioning chip to determine the current position is detected according to the number of satellites corresponding to currently received transmitted satellite signals.
When the signal condition is poor, the positioning chip may only be in the satellite signal capturing working phase at preset moments after the positioning chip is powered on, and the number of captured satellites is less than four, and at this time, the positioning time required by the positioning chip to determine the current position is detected according to the number of captured satellites.
The preset time for detecting the positioning time may be set empirically, for example, the preset time may be 30 seconds for powering on the positioning chip, or the preset time may be 120 seconds for powering on the positioning chip.
The following describes a specific embodiment of detecting the time required for positioning the positioning chip at least preset moments after the positioning chip is powered on according to the working phase of the positioning chip under different signal conditions.
In an open environment, the signal condition is good, and the time required for the positioning chip to perform each item of work is shown in table 1.
Table 1 time required for the positioning chip to perform each work when the signal condition is good in an open environment
As shown in table 1, after the positioning chip is powered on, it starts to receive the satellite signal sent by the satellite, acquires the satellite, finds that the time data and ephemeris data stored in the positioning chip are invalid, and needs to perform time decoding and ephemeris decoding autonomously again, at this time, the estimated required positioning time is 300 seconds, at the time of powering on the positioning chip for the 2 nd second, eight satellites are successfully acquired, at this time, the estimated required positioning time is 40 seconds, in an open environment, the acquisition of the satellite signal only needs 1 to 2 seconds, at the time of powering on the positioning chip for the 7 th second, the time decoding of satellites succeeds, at this time, the estimated required positioning time is 24 seconds, multiple tests show that the time decoding of the satellites needs about 6 seconds, at the time of powering on the positioning chip for the 22 th second, the ephemeris decoding of satellites succeeds, at this time, the estimated required positioning time is 9 seconds, multiple tests show that the ephemeris decoding of the satellites needs about 18 to 30 seconds, and it is noted that the time decoding and the different satellites can be solved simultaneously, multiple tests show that the positioning can be completed within 1 second, therefore, under the condition of good ephemeris is about .
In an environment with better signal conditions, the time required for the positioning chip to perform each task is shown in table 2.
TABLE 2 time required for positioning the chip to perform various tasks in an environment with good signal conditions
As shown in table 2, after the positioning chip is powered on, satellite signals sent by satellites are received, satellites are acquired, time data and ephemeris data stored in the positioning chip are found to be invalid, time decoding and ephemeris decoding need to be performed autonomously again, 300 seconds are estimated to be required for positioning, th satellite is successfully acquired when the positioning chip is powered on for 4 seconds, 300 seconds is estimated to be required for positioning, a fourth satellite is successfully acquired when the positioning chip is powered on for 30 seconds, and therefore, under the environment with good signal conditions, the acquisition of the satellite signals needs 4 to 30 seconds.
In an environment with harsh signal conditions, the time required for the positioning chip to perform each operation is shown in table 3.
TABLE 3 time required for positioning the chip to perform various operations in an environment with harsh signal conditions
As shown in table 3, after the positioning chip is powered on, the satellite signal transmitted by the satellite starts to be received, the satellite is captured, it is found that the time data and the ephemeris data stored in the positioning chip are invalid, time decoding and ephemeris decoding need to be performed again autonomously, at this time, the estimated required positioning time is 300 seconds, when the positioning chip is powered on for 6 seconds, th satellite is successfully captured, at this time, the estimated required positioning time is 300 seconds, when the positioning chip is powered on for 26 seconds, a second satellite is successfully captured, at this time, the estimated required positioning time is 290 seconds, when the positioning chip is powered on for 300 seconds, only two satellites are captured, therefore, when the satellite signal is bad or none, the positioning chip may not capture 4 visible satellites, and thus positioning is unsuccessful.
And 103, executing corresponding operation according to the positioning time.
Alternatively, as shown in fig. 3,
Optionally, the preset time may be set empirically, for example, the preset time may be set to 80 seconds, or the preset time may be set to 120 seconds, and in this embodiment, the specific setting value of the preset time is not limited.
Optionally, if the preset time is set to 80 seconds and the positioning time is 280 seconds, the upper computer may directly power off the positioning chip in order to save power consumption.
Optionally, if the preset time is set to 80 seconds and the positioning time is 15 seconds, the positioning chip is not powered off first, and the positioning chip is powered off after the positioning is completed.
According to the method for positioning the positioning chip, the required positioning time of the positioning chip is detected at least preset moments after the positioning chip is powered on according to the current working stage of the positioning chip, corresponding operation can be executed according to the estimated positioning time of the positioning chip, the power consumption of a positioning receiver of a user is saved, and the user experience is improved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Fig. 4 shows an exemplary diagram of an apparatus for positioning a chip according to an embodiment of the present invention, which corresponds to the method for positioning a chip according to the above embodiment. As shown in fig. 4, the apparatus may include: a power-on
And a power-on
A detecting
And the
For example, in an open environment, the signal condition is good, the time required for each working phase of satellite positioning is short, the satellite positioning time is short, in an overhead bridge, an urban high building, an indoor environment and the like, the signal condition is good, the time required for each working phase of satellite positioning is longer than the time required for each working phase of the environment with good signal condition, so that the time required for satellite positioning is longer than the time required for satellite positioning in the environment with good signal condition, and in the case of poor signal condition or no satellite signal, the positioning chip may acquire less than four satellites, which may result in unsuccessful satellite positioning .
Optionally, when the signal condition is poor, at least preset times after the positioning chip is powered on, the positioning time required by the positioning chip to determine the current position is detected according to the number of satellites corresponding to currently received transmitted satellite signals.
Optionally, when the signal condition is good, at least preset times after the positioning chip is powered on, the positioning time required by the positioning chip to determine the current position is detected according to the number of currently received satellites corresponding to the transmitted satellite signals and the number of satellites completing ephemeris decoding, so that the time required by the positioning chip to position can be detected more accurately.
Optionally, the
According to the device for positioning the positioning chip, at least preset moments after the detection module is electrified on the positioning chip are used for detecting the positioning time required by the positioning chip for determining the current position according to the current working stage of the positioning chip, corresponding operation can be executed according to the positioning time estimated by the positioning chip, the power consumption of a positioning receiver of a user is saved, and the user experience is improved.
Fig. 5 is a schematic diagram of a terminal device provided in an embodiment of the present invention, as shown in fig. 5, the
For example, the
The
The
The
It is obvious to those skilled in the art that, for convenience and simplicity of description, only the division of the above functional units and modules is illustrated, and in practical applications, the above functions may be distributed by different functional units and modules as needed, that is, the internal structure of the apparatus is divided into different functional units or modules to complete all or part of the above described functions.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, for example, the modules or units may be divided into only logical functional divisions, and other divisions may be implemented in practice, for example, a plurality of units or components may be combined or integrated with another systems, or features may be omitted or not executed, and in addition, point, the shown or discussed coupling or direct coupling or communication connection between each other may be through interfaces, indirect coupling or communication connection between apparatuses or units, and may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in places, or may also be distributed on multiple network units.
In addition, the functional units in the embodiments of the present invention may be integrated into processing units, or each unit may exist alone physically, or two or more units are integrated into units.
Based on the understanding that the present invention implements all or part of the processes of the above-described method embodiments, and may also be implemented by a computer program instructing associated hardware, the computer program may be stored in computer readable storage medium, which when executed by a processor may implement the steps of the above-described method embodiments, wherein the computer program comprises computer program code, the computer program code may be in source code form, object code form, executable file or some intermediate form, the computer readable medium may comprise any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a removable hard drive, a magnetic disk, a compact disk, a computer Memory, a Read-Only Memory (ROM, Read-Only Memory), a Random Access Memory (RAM, Random Access Memory), an electrical carrier signal, an Access signal, a telecommunications signal, and other signals, and may be embodied in a computer readable storage medium containing instructions for carrying out the computer program, and may be embodied in a telecommunications system, and may include a telecommunications system, which may include a telecommunications system, and a method.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.
- 上一篇:一种医用注射器针头装配设备
- 下一篇:轨迹去噪的处理方法、装置以及电子设备