CN113534202A - Satellite positioning system detection method, device, computer equipment and storage medium - Google Patents

Satellite positioning system detection method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN113534202A
CN113534202A CN202010317055.0A CN202010317055A CN113534202A CN 113534202 A CN113534202 A CN 113534202A CN 202010317055 A CN202010317055 A CN 202010317055A CN 113534202 A CN113534202 A CN 113534202A
Authority
CN
China
Prior art keywords
positioning system
state
satellite
satellite positioning
counter
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
CN202010317055.0A
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.)
Oneplus Technology Shenzhen Co Ltd
Original Assignee
Oneplus Technology Shenzhen 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 Oneplus Technology Shenzhen Co Ltd filed Critical Oneplus Technology Shenzhen Co Ltd
Priority to CN202010317055.0A priority Critical patent/CN113534202A/en
Publication of CN113534202A publication Critical patent/CN113534202A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S19/00Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
    • G01S19/01Satellite radio beacon positioning systems transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
    • G01S19/13Receivers
    • G01S19/23Testing, monitoring, correcting or calibrating of receiver elements

Landscapes

  • Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Position Fixing By Use Of Radio Waves (AREA)

Abstract

The application relates to a satellite positioning system detection method, a satellite positioning system detection device, computer equipment and a storage medium. The method comprises the following steps: detecting a satellite state of a satellite positioning system; when the satellite state is a locatable state, triggering a counter to count according to a preset value; the counter is used for recording the duration that the satellite state is in a positioning state; when the position positioned by the satellite positioning system is received to be changed, acquiring the time length recorded by the counter; and determining the working state of the satellite positioning system according to the time length recorded by the counter and the preset positioning time length of the satellite positioning system. The method can improve the detection efficiency of the satellite positioning system.

Description

Satellite positioning system detection method, device, computer equipment and storage medium
Technical Field
The present application relates to the field of satellite positioning technologies, and in particular, to a method and an apparatus for detecting a satellite positioning system, a computer device, and a storage medium.
Background
With the development of satellite navigation technology, the application of a satellite positioning system is increasingly wide, the requirement of a user on the positioning accuracy of the satellite positioning system is higher and higher, and the stability of the function of the satellite positioning system is crucial to the positioning accuracy. The user can realize route navigation or positioning by using the satellite positioning system, and when the satellite positioning system cannot position, the user can only be frequently prompted to 'unable to obtain the position' by three-party application, and the stability of the function of the satellite positioning system cannot be detected in real time, so that the detection efficiency of the satellite positioning system is low.
Disclosure of Invention
In view of the above, it is necessary to provide a method, an apparatus, a computer device and a storage medium for detecting a satellite positioning system, which can improve the detection efficiency of the satellite positioning system.
A method of satellite positioning system detection, the method comprising:
detecting a satellite state of a satellite positioning system;
when the satellite state is a locatable state, triggering a counter to count according to a preset value; the counter is used for recording the duration that the satellite state is in a positioning state;
when the position positioned by the satellite positioning system is received to be changed, acquiring the time length recorded by the counter;
and determining the working state of the satellite positioning system according to the time length recorded by the counter and the preset positioning time length of the satellite positioning system.
In one embodiment, prior to detecting the satellite states of the satellite positioning system, the method further comprises:
when receiving the current position positioned by the satellite positioning system, generating a satellite positioning system detection instruction;
and executing the step of detecting the satellite state of the satellite positioning system according to the satellite positioning system detection instruction.
In one embodiment, the detecting the satellite state of the satellite positioning system includes:
the satellite states of the satellite positioning system are detected at preset time intervals.
In one embodiment, the detecting the satellite state of the satellite positioning system includes:
when the number of satellites in the satellite positioning system is greater than or equal to a preset number of satellites and the signal strength value is greater than or equal to a preset signal strength value, the satellite state is a positioning state.
In one embodiment, the determining the operating state of the satellite positioning system according to the time length recorded by the counter and the preset positioning time length of the satellite positioning system includes:
when the time length recorded by the counter is longer than the preset positioning time length of the satellite positioning system, determining that the working state of the satellite positioning system is an abnormal state;
and when the time length recorded by the counter is less than or equal to the preset positioning time length of the satellite positioning system, determining that the working state of the satellite positioning system is a normal state.
In one embodiment, the method further comprises:
and when the satellite state is in the non-locatable state, triggering the counter to reset and determining that the working state of the satellite positioning system is in an abnormal state.
In one embodiment, the operating state includes a normal state and an abnormal state, and the method further includes:
acquiring detection data corresponding to the working state of the satellite positioning system within preset time; the detection data comprises the starting time, the ending time, the abnormal times and the abnormal duration of the abnormal state;
and determining the total time length and the abnormal times of the abnormal state of the satellite positioning system within preset time according to the detection data.
A satellite positioning system detection apparatus, the apparatus comprising:
the detection module is used for detecting the satellite state of the satellite positioning system;
the counting module is used for triggering the counter to count according to a preset numerical value when the satellite state is a locatable state; the counter is used for recording the time length of the satellite state in a positioning state;
the acquisition module is used for acquiring the time length recorded by the counter when the position positioned by the satellite positioning system is received to be changed;
and the determining module is used for determining the working state of the satellite positioning system according to the time length recorded by the counter and the preset positioning time length of the satellite positioning system.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
detecting a satellite state of a satellite positioning system;
when the satellite state is a locatable state, triggering a counter to count according to a preset value; the counter is used for recording the time length of the satellite state in a positioning state;
when the change of the position positioned by the satellite positioning system is received, acquiring the time length recorded by the counter;
and determining the working state of the satellite positioning system according to the time length recorded by the counter and the preset positioning time length of the satellite positioning system.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
detecting a satellite state of a satellite positioning system;
when the satellite state is a locatable state, triggering a counter to count according to a preset value; the counter is used for recording the time length of the satellite state in a positioning state;
when the change of the position positioned by the satellite positioning system is received, acquiring the time length recorded by the counter;
and determining the working state of the satellite positioning system according to the time length recorded by the counter and the preset positioning time length of the satellite positioning system.
The satellite positioning system detection method, the device, the computer equipment and the storage medium detect the satellite state of the satellite positioning system; when the satellite state is a locatable state, triggering a counter to count according to a preset value; the counter is used for recording the duration that the satellite state is in a positioning state; when the position positioned by the satellite positioning system is received to be changed, acquiring the time length recorded by the counter; and determining the working state of the satellite positioning system according to the time length recorded by the counter and the preset positioning time length of the satellite positioning system. Under the condition that the satellite state of the satellite positioning system is in a positioning state, the counter continuously accumulates and records the positioning time length, the terminal receives the position positioned by the satellite positioning system, and the actual working state of the satellite positioning system in the positioning process can be detected by comparing the positioning time length with the preset positioning time length of the satellite positioning system, so that the detection efficiency of the satellite positioning system is improved.
Drawings
FIG. 1 is a diagram of an exemplary embodiment of a method for detecting a satellite positioning system;
FIG. 2 is a flow chart illustrating a method for detecting a satellite positioning system according to one embodiment;
FIG. 3 is a flowchart illustrating a method for detecting a satellite positioning system according to another embodiment;
FIG. 4 is a schematic flow chart illustrating the determination of the operating state of the satellite positioning system in one embodiment;
FIG. 5 is a flowchart illustrating the detection steps of the satellite positioning system in one embodiment;
FIG. 6 is a block diagram of an exemplary embodiment of an apparatus for detecting a satellite positioning system;
FIG. 7 is a block diagram showing the construction of a detecting apparatus for a satellite positioning system according to another embodiment;
FIG. 8 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The satellite positioning system detection method provided by the application can be applied to the application environment shown in fig. 1. Wherein the terminal 102 communicates with the server 104 via a network. The terminal detects the satellite state of the satellite positioning system; when the satellite state is a locatable state, triggering a counter to count according to a preset value; the counter is used for recording the duration that the satellite state is in a positioning state; when the position positioned by the satellite positioning system is received to be changed, acquiring the time length recorded by the counter; and determining the working state of the satellite positioning system according to the time length recorded by the counter and the preset positioning time length of the satellite positioning system. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the server 104 may be implemented by an independent server or a server cluster formed by a plurality of servers.
In one embodiment, as shown in fig. 2, a method for detecting a satellite positioning system is provided, which is described by taking the method as an example for being applied to the terminal in fig. 1, and includes the following steps:
in step 202, a satellite state of a satellite positioning system is detected.
The satellite positioning system can determine the current position of the terminal only by demodulating the position data of at least a preset number of satellites. The Satellite Positioning System may be a Global Navigation Satellite System (GNSS), and the GNSS at least includes a BeiDou Navigation Satellite System (BDS), a Global Positioning System (GPS), a russian Navigation Satellite (GLO), and a Galileo Satellite Navigation System (GAL). Optionally, the satellite positioning system in the terminal is a multi-satellite positioning system.
Specifically, when a terminal starts a satellite positioning system for positioning, a satellite positioning system detection instruction is generated by acquiring satellite data of a preset number in the satellite positioning system and when the current position of the terminal is determined by demodulating the satellite data, a satellite positioning system detection flow is executed according to the satellite positioning system detection instruction, and a counter is initialized so that the count value of the counter is zero; acquiring satellite parameters of a satellite positioning system, and determining the satellite state of the satellite positioning system according to the satellite parameters; the satellite parameters comprise the number of satellites and a signal strength value, wherein the signal strength value refers to the signal strength value of the satellite received by the terminal; the satellite states include a locatable state and a non-locatable state.
Step 204, when the satellite state is a locatable state, triggering a counter to count according to a preset value; the counter is used for recording the time length of the satellite state which is in the positioning state.
Wherein, the preset value is a predefined count value, and the count value may be but is not limited to 1; the counter is used for recording the time length of the satellite state which is in the positioning state.
Specifically, when the number of satellites in the satellite parameters acquired by the terminal is greater than or equal to the preset number of satellites and the signal strength value is greater than or equal to the preset signal strength value, the satellite state of the satellite positioning system is in a positionable state, and the trigger counter is accumulated according to a preset value to obtain the duration that the satellite state is in the positionable state. The preset number of satellites may be, but is not limited to, 6, and the preset signal strength value may be, but is not limited to, 30. Optionally, when the satellite state is the localizable state, the trigger counter is incremented by 1.
And step 206, acquiring the time length recorded by the counter when the position positioned by the satellite positioning system is received to be changed.
Specifically, when the satellite state in the satellite positioning system in the terminal is a locatable state, the position of the terminal is located at regular intervals, and when the position of the terminal receiving the satellite positioning system changes, the recorded time length is obtained from the counter.
And step 208, determining the working state of the satellite positioning system according to the time length recorded by the counter and the preset positioning time length of the satellite positioning system.
The preset positioning time is the maximum time-consuming time for positioning by the satellite positioning system, and the preset positioning time may be 120 seconds. The time length recorded by the counter refers to the total time length of the satellite state of the satellite positioning system recorded by the counter as a locatable state. The working state of the satellite positioning system comprises a normal state and an abnormal state.
Specifically, when the satellite state of the satellite positioning system is a positionable state, the satellite positioning system positions the position of the terminal every certain time period, when the terminal receives the change of the position positioned by the satellite positioning system, the relation between the time period recorded by the counter and the preset positioning time period of the satellite positioning system is judged, if the time period recorded by the counter is greater than the preset positioning time period, the satellite positioning system is indicated that the position of the terminal cannot be positioned within the preset positioning time period, and the working state of the satellite positioning system is an abnormal state; if the time length recorded by the counter is less than or equal to the preset positioning time length, the satellite positioning system is indicated to be capable of positioning the position of the terminal within the preset positioning time length, and the working state of the satellite positioning system is a normal state; the detection of the satellite state of the satellite positioning system is continued.
Optionally, if the duration recorded by the counter is greater than the preset positioning duration, it indicates that the satellite positioning system cannot position the location of the terminal within the preset positioning duration, and when the working state of the satellite positioning system is an abnormal state, a prompt message frame indicating that the working state of the satellite positioning system is abnormal may be displayed on a display screen of the terminal, and the time when the satellite positioning system is abnormal is stored in a memory of the terminal.
In the detection method of the satellite positioning system, the satellite state of the satellite positioning system is detected; when the satellite state is a locatable state, triggering a counter to count according to a preset value; the counter is used for recording the duration that the satellite state is in a positioning state; when the position positioned by the satellite positioning system is received to be changed, acquiring the time length recorded by the counter; and determining the working state of the satellite positioning system according to the time length recorded by the counter and the preset positioning time length of the satellite positioning system. Under the condition that the satellite state of the satellite positioning system is in a positioning state, the counter continuously accumulates and records the positioning time length, the terminal receives the position positioned by the satellite positioning system, and the actual working state of the satellite positioning system in the positioning process can be detected by comparing the positioning time length with the preset positioning time length of the satellite positioning system, so that the detection efficiency of the satellite positioning system is improved.
In another embodiment, as shown in fig. 3, a method for detecting a satellite positioning system is provided, which is exemplified by applying the method to a terminal, and the method includes the following steps:
step 302, detecting a satellite state of the satellite positioning system according to a preset time interval.
Wherein the preset time interval is a time interval preset for detecting a satellite state of the satellite positioning system. The preset time may be, but is not limited to, 1 second.
In one embodiment, before detecting the satellite state of the satellite positioning system at the preset time interval, when the terminal receives the current position located by the satellite positioning system, a satellite positioning system detection instruction is generated, and the terminal is triggered to execute the detection of the satellite state of the satellite positioning system at the preset time interval and the initialization of the initialization counter according to the satellite positioning system detection instruction.
Step 304, when the satellite state is a locatable state, triggering a counter to count according to a preset value; the counter is used for recording the time length of the satellite state which is in the positioning state.
And step 306, when the satellite state is in the non-locatable state, triggering a counter to reset and determining that the working state of the satellite positioning system is in an abnormal state.
Specifically, according to the fact that when the satellite number in the satellite parameters of the satellite positioning system is smaller than the preset satellite number and/or the signal intensity value is smaller than the preset signal intensity value, the satellite state is in the non-locatable state, the counter is triggered to reset, the working state of the satellite positioning state is determined to be in the abnormal state, and the time when the working state of the satellite positioning system is in the abnormal state and the time length recorded in the counter are saved.
Optionally, when the satellite state is the non-locatable state, triggering the counter to reset and determining that the working state of the satellite positioning system is the abnormal state, continuing to detect the satellite state of the satellite positioning system according to a preset time interval, and when the satellite state of the satellite positioning system is the locatable state, recording the time when the satellite state is the locatable state as the end time of the abnormal state. For example, the preset time interval and the preset value are 1 second, within the first 30 seconds, the satellite state of the satellite positioning system is a positionable state, the duration recorded in the counter is 30 seconds, at the 31 th second, the satellite state of the satellite positioning system is detected, the number of satellites in the satellite positioning system is less than 6, and the signal intensity value is less than 30, the satellite state of the satellite positioning system is an unmovable state, the counter is triggered to reset the count value from 30 to 0, the time when the satellite state of the satellite positioning system is the unmovable state is stored, the terminal performs the step of detecting the satellite state of the satellite positioning system again according to the preset time interval, and when the satellite state of the satellite positioning system is detected to be the positionable state, the end time when the current time is the abnormal state is recorded.
And 308, acquiring the time length recorded by the counter when the position positioned by the satellite positioning system is received to be changed.
And step 310, determining the working state of the satellite positioning system according to the time length recorded by the counter and the preset positioning time length of the satellite positioning system.
Specifically, the working state of the satellite positioning system is determined to be a normal state or an abnormal state according to the time length recorded by the counter and the preset positioning time length of the satellite positioning system, and detection data corresponding to the normal state and the abnormal state are stored.
In one embodiment, the terminal receives a termination instruction of the detection of the satellite positioning system, and ends the detection of the satellite positioning system and resets the counter according to the termination instruction. Wherein the termination command may be a user interface trigger to turn off the satellite positioning system detection button.
Step 312, acquiring detection data corresponding to the working state of the satellite positioning system within a preset time; the detection data includes the starting time, the ending time, the abnormal times and the abnormal duration of the abnormal state.
The preset time can be a preset time period, and can be in units of days, weeks, months and years.
Specifically, when the terminal receives a data query instruction, the query instruction carries the preset time of query, and the detection data corresponding to the state of the satellite positioning system in the preset time is acquired from the memory of the terminal according to the query instruction, wherein the working state includes a normal state and an abnormal state, and the detection data includes the starting time, the ending time, the abnormal times, the abnormal duration and the like of the abnormal state.
And step 314, determining the total time length and the abnormal times of the abnormal state of the satellite positioning system within the preset time according to the detection data.
Specifically, the total duration and the abnormal times of the abnormal state of the satellite positioning system in the preset time are determined according to the detection data. For example, the preset time is one day, the detection data of the satellite positioning system in one day time can be acquired, the total time length and the abnormal times of the abnormal state of the working state of the satellite positioning system can be determined according to the detection data, and the distribution condition of the abnormal state in one day can be determined according to the starting time and the ending time of the abnormal state. The preset time is one week, the detection data of the satellite positioning system in one week can be obtained, the total time length and the abnormal times of the abnormal state of the working state of the satellite positioning system can be determined according to the detection data, and the distribution condition of the abnormal state in one week can be determined according to the starting time and the ending time of the abnormal state.
In the detection method of the satellite positioning system, the satellite state of the satellite positioning system is detected according to a preset time interval; when the satellite state is a locatable state, triggering a counter to count according to a preset value; the counter is used for recording the duration that the satellite state is in a positioning state; when the satellite state is in the non-localizable state, triggering the counter to reset and determining that the working state of the satellite positioning system is in the abnormal state; when the position positioned by the satellite positioning system is received to be changed, acquiring the time length recorded by the counter; determining the working state of the satellite positioning system according to the time length recorded by the counter and the preset positioning time length of the satellite positioning system; acquiring detection data corresponding to the working state of the satellite positioning system within preset time; the detection data comprises the starting time, the ending time, the abnormal times and the abnormal duration of the abnormal state; and determining the total time length and the abnormal times of the satellite positioning system in the abnormal state within the preset time according to the detection data.
Detecting the satellite state of the satellite positioning system according to a preset time interval, and triggering a counter to count when the satellite state is in a positioning state; when the satellite state is in the non-localizable state, the counter is triggered to reset, and the state of the satellite positioning system is restarted to be detected, so that the real-time performance of the satellite positioning system detection is improved; when the satellite state is the positioning state, the stability of the satellite positioning system is detected according to the updating of the positioning position and the preset positioning duration of the satellite positioning system, and the detection efficiency of the satellite positioning system is improved. Historical traceability can be achieved for the stability of the satellite positioning system by storing the detection data.
In one embodiment, as shown in fig. 4, determining the operating state of the satellite positioning system according to the time length recorded by the counter and the preset positioning time length of the satellite positioning system includes:
step 402, when the time length recorded by the counter is longer than the preset positioning time length of the satellite positioning system, determining that the working state of the satellite positioning system is an abnormal state.
And step 404, determining that the working state of the satellite positioning system is a normal state when the time length recorded by the counter is less than or equal to the preset positioning time length of the satellite positioning system.
In this embodiment, when the satellite state of the satellite positioning system is a positionable state, and the position received by the acquisition terminal and positioned by the satellite positioning system changes, the time length recorded by the counter is compared with the preset positioning time length of the satellite positioning system, and the stability of the satellite positioning system in the preset positioning time length is determined, so that the detection efficiency of the satellite positioning system can be improved.
In an embodiment, as shown in fig. 5, a flowchart of a satellite positioning system detection step is provided, and this embodiment is exemplified by applying the method to a terminal, where the method includes the following steps:
step 502, receiving a current position located by a satellite positioning system.
Specifically, when the terminal receives the current position located by the satellite positioning system, it generates a satellite positioning system detection instruction, and executes step 504.
At step 504, a counter is initialized.
In step 506, the satellite states of the satellite positioning system are obtained.
Specifically, the terminal obtains the satellite state of the satellite positioning system according to the satellite positioning system detection instruction, and executes step 508.
In step 508, it is determined whether the satellite state is a locatable state, if so, step 510 is performed, otherwise, step 516 is performed.
Step 510, trigger a counter to count.
Specifically, when the satellite state of the satellite positioning system is in the locatable state, the counter is triggered to count according to a preset numerical value, and the duration that the satellite state of the satellite positioning system is in the locatable state is recorded.
In step 512, the position of the satellite positioning system is received and changed.
Step 514, determining whether the time length recorded by the counter is greater than a preset positioning time length of the satellite positioning system, if so, executing step 516, otherwise, executing step 508.
At step 516, the test data is saved and the counter is reset.
In the satellite positioning system detection step, when the terminal receives the current position positioned by the satellite positioning system, a satellite positioning system detection instruction is generated; initializing a counter, acquiring a satellite state of a satellite positioning system according to a satellite positioning system detection instruction and judging whether the satellite state is a positionable state or not according to a preset time interval; when the satellite state of the satellite positioning system is in a positioning state, the counter is triggered to count according to a preset numerical value, and the time length of the satellite state of the satellite positioning system in the positioning state is recorded; receiving the position change positioned by the satellite positioning system, judging whether the time length recorded by the counter is greater than the preset positioning time length of the satellite positioning system, if so, judging that the working state of the satellite positioning system in the preset positioning time length is an abnormal state, and storing detection data corresponding to the abnormal state by the terminal and resetting the counter; when the time length recorded by the counter is less than or equal to the preset positioning time length of the satellite positioning system, executing step 508; when the positioning status of the satellite positioning system is not the locatable status, step 516 is executed. The satellite state of the satellite positioning system is detected according to the preset time interval, so that the real-time performance of the satellite positioning system detection is improved; when the satellite state is the positioning state, the stability of the satellite positioning system is detected according to the updating of the positioning position and the preset positioning duration of the satellite positioning system, the detection efficiency of the satellite positioning system is improved, and history tracing and updating of the detection logic of the satellite positioning system can be realized by storing the detection data.
It should be understood that although the various steps in the flow charts of fig. 2-5 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-5 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
In one embodiment, as shown in fig. 6, there is provided a satellite positioning system detection apparatus, including: a detection module 602, a counting module 604, an acquisition module 606, and a determination module 608, wherein:
a detection module 602, configured to detect a satellite state of a satellite positioning system.
The counting module 604 is configured to trigger the counter to count according to a preset value when the satellite state is the locatable state; the counter is used for recording the time length of the satellite state which is in the positioning state.
An obtaining module 606, configured to obtain a duration recorded by the counter when the position of the satellite positioning system is changed.
The determining module 608 is configured to determine the working state of the satellite positioning system according to the time length recorded by the counter and a preset positioning time length of the satellite positioning system.
In the above-mentioned satellite positioning system detection device, the satellite state of the satellite positioning system is detected by the detection module 602; when the satellite state is a locatable state, a counter in the trigger counting module 604 counts according to a preset value; the counter is used for recording the duration that the satellite state is in a positioning state; when the position of the satellite positioning system is changed, the obtaining module 606 obtains the time length recorded by the counter; the determination module 608 determines the operating state of the satellite positioning system according to the time length recorded by the counter and the preset positioning time length of the satellite positioning system. Under the condition that the satellite state of the satellite positioning system is in a positioning state, the counter continuously accumulates and records the positioning time length, the terminal receives the position positioned by the satellite positioning system, and the actual working state of the satellite positioning system in the positioning process can be detected by comparing the positioning time length with the preset positioning time length of the satellite positioning system, so that the detection efficiency of the satellite positioning system is improved.
In another embodiment, as shown in fig. 7, there is provided a satellite positioning system detection apparatus, which comprises, in addition to a detection module 602, a counting module 604, an acquisition module 606 and a determination module 608: an execution module 610, a receiving module 612, a reset module 614, and a data processing module 616, wherein:
an executing module 610, configured to generate a satellite positioning system detection instruction when receiving a current position located by a satellite positioning system; and executing the step of detecting the satellite state of the satellite positioning system according to the satellite positioning system detection instruction.
The receiving module 612 is configured to receive a current position located by the satellite positioning system, and obtain a satellite state of the satellite positioning system according to the current position.
In one embodiment, the detection module 602 is further configured to detect a satellite state of the satellite positioning system at preset time intervals.
In one embodiment, the detection module 602 is further configured to determine the satellite state as a locatable state when the number of satellites in the satellite positioning system is greater than or equal to a preset number of satellites and the signal strength value is greater than or equal to a preset signal strength value.
In one embodiment, the determining module 608 is further configured to determine that the working state of the satellite positioning system is an abnormal state when the duration recorded by the counter is longer than the preset positioning duration of the satellite positioning system; and when the time length recorded by the counter is less than or equal to the preset positioning time length of the satellite positioning system, determining that the working state of the satellite positioning system is a normal state.
And a resetting module 614, configured to trigger the counter to reset and determine that the operating state of the satellite positioning system is an abnormal state when the satellite state is the non-localizable state.
The data processing module 616 is configured to obtain detection data corresponding to a working state of the satellite positioning system within a preset time; the detection data comprises the starting time, the ending time, the abnormal times and the abnormal duration of the abnormal state; and determining the total time length and the abnormal times of the satellite positioning system in the abnormal state within the preset time according to the detection data.
In one embodiment, the satellite state of the satellite positioning system is detected by following a preset time interval; when the satellite state is a locatable state, triggering a counter to count according to a preset value; the counter is used for recording the duration that the satellite state is in a positioning state; when the satellite state is in the non-localizable state, triggering the counter to reset and determining that the working state of the satellite positioning system is in the abnormal state; when the position positioned by the satellite positioning system is received to be changed, acquiring the time length recorded by the counter; determining the working state of the satellite positioning system according to the time length recorded by the counter and the preset positioning time length of the satellite positioning system; acquiring detection data corresponding to the working state of the satellite positioning system within preset time; the detection data comprises the starting time, the ending time, the abnormal times and the abnormal duration of the abnormal state; and determining the total time length and the abnormal times of the satellite positioning system in the abnormal state within the preset time according to the detection data. Detecting the satellite state of the satellite positioning system according to a preset time interval, and triggering a counter to count when the satellite state is in a positioning state; when the satellite state is in the non-localizable state, the counter is triggered to reset, and the state of the satellite positioning system is restarted to be detected, so that the real-time performance of the satellite positioning system detection is improved; when the satellite state is the positioning state, the stability of the satellite positioning system is detected according to the updating of the positioning position and the preset positioning duration of the satellite positioning system, and the detection efficiency of the satellite positioning system is improved. Historical traceability can be achieved for the stability of the satellite positioning system by storing the detection data.
For specific limitations of the detection apparatus of the satellite positioning system, reference may be made to the above limitations of the detection method of the satellite positioning system, which are not described herein again. The modules in the detection device of the satellite positioning system can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 8. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a method of satellite positioning system detection. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 8 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
detecting a satellite state of a satellite positioning system;
when the satellite state is a locatable state, triggering a counter to count according to a preset value; the counter is used for recording the duration that the satellite state is in a positioning state;
when the position positioned by the satellite positioning system is received to be changed, acquiring the time length recorded by the counter;
and determining the working state of the satellite positioning system according to the time length recorded by the counter and the preset positioning time length of the satellite positioning system.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
when receiving the current position positioned by the satellite positioning system, generating a satellite positioning system detection instruction;
and executing the step of detecting the satellite state of the satellite positioning system according to the satellite positioning system detection instruction.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
the satellite states of the satellite positioning system are detected at preset time intervals.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
when the number of satellites in the satellite positioning system is greater than or equal to the preset number of satellites and the signal strength value is greater than or equal to the preset signal strength value, the satellite state is a positioning state.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
when the time length recorded by the counter is longer than the preset positioning time length of the satellite positioning system, determining that the working state of the satellite positioning system is an abnormal state;
and when the time length recorded by the counter is less than or equal to the preset positioning time length of the satellite positioning system, determining that the working state of the satellite positioning system is a normal state.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
when the satellite state is the non-localizable state, the counter is triggered to reset and the working state of the satellite positioning system is determined to be an abnormal state.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
acquiring detection data corresponding to the working state of the satellite positioning system within preset time; the detection data comprises the starting time, the ending time, the abnormal times and the abnormal duration of the abnormal state;
and determining the total time length and the abnormal times of the satellite positioning system in the abnormal state within the preset time according to the detection data.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
detecting a satellite state of a satellite positioning system;
when the satellite state is a locatable state, triggering a counter to count according to a preset value; the counter is used for recording the duration that the satellite state is in a positioning state;
when the position positioned by the satellite positioning system is received to be changed, acquiring the time length recorded by the counter;
and determining the working state of the satellite positioning system according to the time length recorded by the counter and the preset positioning time length of the satellite positioning system.
In one embodiment, the computer program when executed by the processor further performs the steps of:
when receiving the current position positioned by the satellite positioning system, generating a satellite positioning system detection instruction;
and executing the step of detecting the satellite state of the satellite positioning system according to the satellite positioning system detection instruction.
In one embodiment, the computer program when executed by the processor further performs the steps of:
the satellite states of the satellite positioning system are detected at preset time intervals.
In one embodiment, the computer program when executed by the processor further performs the steps of:
when the number of satellites in the satellite positioning system is greater than or equal to the preset number of satellites and the signal strength value is greater than or equal to the preset signal strength value, the satellite state is a positioning state.
In one embodiment, the computer program when executed by the processor further performs the steps of:
when the time length recorded by the counter is longer than the preset positioning time length of the satellite positioning system, determining that the working state of the satellite positioning system is an abnormal state;
and when the time length recorded by the counter is less than or equal to the preset positioning time length of the satellite positioning system, determining that the working state of the satellite positioning system is a normal state.
In one embodiment, the computer program when executed by the processor further performs the steps of:
when the satellite state is the non-localizable state, the counter is triggered to reset and the working state of the satellite positioning system is determined to be an abnormal state.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring detection data corresponding to the working state of the satellite positioning system within preset time; the detection data comprises the starting time, the ending time, the abnormal times and the abnormal duration of the abnormal state;
and determining the total time length and the abnormal times of the satellite positioning system in the abnormal state within the preset time according to the detection data.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for detecting a satellite positioning system, the method comprising:
detecting a satellite state of a satellite positioning system;
when the satellite state is a locatable state, triggering a counter to count according to a preset value; the counter is used for recording the time length of the satellite state in a positioning state;
when the change of the position positioned by the satellite positioning system is received, acquiring the time length recorded by the counter;
and determining the working state of the satellite positioning system according to the time length recorded by the counter and the preset positioning time length of the satellite positioning system.
2. The method of claim 1, wherein prior to said detecting a satellite state of a satellite positioning system, the method further comprises:
when receiving the current position positioned by the satellite positioning system, generating a satellite positioning system detection instruction;
and executing the step of detecting the satellite state of the satellite positioning system according to the satellite positioning system detection instruction.
3. The method of claim 1, wherein detecting the satellite states of the satellite positioning system comprises:
the satellite states of the satellite positioning system are detected at preset time intervals.
4. The method of claim 1, wherein detecting a satellite state localizable state of a satellite positioning system comprises:
when the number of satellites in the satellite positioning system is greater than or equal to a preset number of satellites and the signal strength value is greater than or equal to a preset signal strength value, the satellite state is a positioning state.
5. The method according to claim 1, wherein determining the operating state of the satellite positioning system according to the time length recorded by the counter and the preset positioning time length of the satellite positioning system comprises:
when the time length recorded by the counter is longer than the preset positioning time length of the satellite positioning system, determining that the working state of the satellite positioning system is an abnormal state;
and when the time length recorded by the counter is less than or equal to the preset positioning time length of the satellite positioning system, determining that the working state of the satellite positioning system is a normal state.
6. The method of claim 1, further comprising:
and when the satellite state is in the non-locatable state, triggering the counter to reset and determining that the working state of the satellite positioning system is in an abnormal state.
7. The method of claim 1, wherein the operating state comprises a normal state and an abnormal state, the method further comprising:
acquiring detection data corresponding to the working state of the satellite positioning system within preset time; the detection data comprises the starting time, the ending time, the abnormal times and the abnormal duration of the abnormal state;
and determining the total time length and the abnormal times of the abnormal state of the satellite positioning system within preset time according to the detection data.
8. A satellite positioning system detection apparatus, the apparatus comprising:
the detection module is used for detecting the satellite state of the satellite positioning system;
the counting module is used for triggering the counter to count according to a preset numerical value when the satellite state is a locatable state; the counter is used for recording the time length of the satellite state in a positioning state;
the acquisition module is used for acquiring the time length recorded by the counter when the position positioned by the satellite positioning system is received to be changed;
and the determining module is used for determining the working state of the satellite positioning system according to the time length recorded by the counter and the preset positioning time length of the satellite positioning system.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202010317055.0A 2020-04-21 2020-04-21 Satellite positioning system detection method, device, computer equipment and storage medium Pending CN113534202A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010317055.0A CN113534202A (en) 2020-04-21 2020-04-21 Satellite positioning system detection method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010317055.0A CN113534202A (en) 2020-04-21 2020-04-21 Satellite positioning system detection method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113534202A true CN113534202A (en) 2021-10-22

Family

ID=78093816

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010317055.0A Pending CN113534202A (en) 2020-04-21 2020-04-21 Satellite positioning system detection method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113534202A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105842712A (en) * 2016-03-25 2016-08-10 广东欧珀移动通信有限公司 Global positioning system starting method and user terminal
CN106255188A (en) * 2016-09-19 2016-12-21 广州视源电子科技股份有限公司 Positioning method, device, equipment and system
CN109239749A (en) * 2018-08-22 2019-01-18 深圳普创天信科技发展有限公司 Localization method, terminal and computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105842712A (en) * 2016-03-25 2016-08-10 广东欧珀移动通信有限公司 Global positioning system starting method and user terminal
CN107678045A (en) * 2016-03-25 2018-02-09 广东欧珀移动通信有限公司 A kind of global positioning system starts method and user terminal and related media production
CN106255188A (en) * 2016-09-19 2016-12-21 广州视源电子科技股份有限公司 Positioning method, device, equipment and system
CN109239749A (en) * 2018-08-22 2019-01-18 深圳普创天信科技发展有限公司 Localization method, terminal and computer readable storage medium

Similar Documents

Publication Publication Date Title
US10671474B2 (en) Monitoring node usage in a distributed system
US10956172B2 (en) Memory management of data processing systems
CN111338804B (en) Resolving method and device for laser radar point cloud data and multithreading processing system
CN109343092B (en) Performance test method and device, electronic equipment and storage medium
CN115509859A (en) Third party application performance improvement toolkit
CN113204580A (en) Overwater target position information query method, system, device, equipment and medium
EP4182796B1 (en) Machine learning-based techniques for providing focus to problematic compute resources represented via a dependency graph
CN109766395B (en) Grid data processing method and device, computer equipment and storage medium
US12026523B1 (en) Dynamically-updatable deep transactional monitoring systems and methods
CN111309743A (en) Report pushing method and device
CN113254153B (en) Method and device for processing flow task, computer equipment and storage medium
CN110941549B (en) Memory leak detection method, device, medium and electronic equipment
CN112527543A (en) Client starting exception handling method and device, electronic equipment and storage medium
CN113534202A (en) Satellite positioning system detection method, device, computer equipment and storage medium
CN109493447B (en) Method and device for starting driving record, computer equipment and storage medium
US9323511B1 (en) Splitting application permissions on devices
CN114253825A (en) Memory leak detection method and device, computer equipment and storage medium
CN112905635A (en) Service processing method, device, equipment and storage medium
CN112303811A (en) Processing method, device and system for air conditioner operation data, air conditioner and storage medium
CN113630735B (en) Method and device for correcting position of commercial place, electronic device, and storage medium
Roshandel et al. User-centric monitoring of sensitive information access in Android applications
CN113900918B (en) Application performance data acquisition method, device, computer equipment and storage medium
CN113535505B (en) Electronic equipment power consumption detection method and device and computer equipment
CN109753405B (en) Application resource consumption detection method and device, storage medium and electronic equipment
CN114595111A (en) Method and device for determining motion trail, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination