Positioning information output stability testing method, system, electronic equipment and medium
By sending satellite signals on the positioning device and measuring the time difference between signals, the lack of stability testing of the positioning device output positioning information is solved, and an automated, accurate and reliable test of the stability of the positioning device output information is realized.
Patent Information
- Application Number
- CN202411936302.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-26
- Publication Date
- 2025-04-08
AI Technical Summary
The prior art lacks methods for testing the stability of output positioning information of positioning devices, especially for devices that output positioning information through an asynchronous serial interface.
A positioning information output stability testing method and system are provided, which sends satellite signals to the positioning device to be measured through the signal generation module, and measures the time difference between the effective asynchronous serial signal and the first time synchronization signal sent within the preset test time to evaluate the stability of the positioning information output.
This method can automatically test the stability of positioning information output of positioning equipment, improve the accuracy and reliability of the test, and is simple to operate without manual participation.
Smart Images

Figure CN119780973A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of satellite positioning technology, and more specifically to a positioning information output stability testing method, system, electronic equipment and medium. Background Art
[0002] GNSS (Global Navigation Satellite System) refers to an air-based radio navigation and positioning system that can provide users with all-weather three-dimensional coordinates, speed and time information at any location on the Earth's surface or in near-Earth space. It includes one or more satellite constellations and their augmentation systems required to support specific tasks. Currently, it mainly includes GPS (Global Positioning System), BDS (Beidou Satellite Navigation System), GLONASS and GALILEO (Galileo Satellite Positioning System).
[0003] With the continuous development of the Internet of Things, the number of positioning devices that rely on the global positioning system for positioning is gradually increasing. Each time a positioning device performs positioning, it outputs a set of positioning information, which is used to indicate the current location of the positioning device. When the positioning information output by the positioning device is unstable, the location indicated by the current positioning information may be inconsistent with the actual location of the positioning device. Therefore, the stability of the positioning information output by the positioning device is an important performance indicator of the positioning device. At present, there is no solution for testing the stability of positioning information output.
[0004] In view of this, the present invention is proposed. Summary of the invention
[0005] The present invention is proposed in view of the above problems. According to one aspect of the present invention, a positioning information output stability test method is provided, which is applied to a positioning information output stability test system, wherein the positioning information output stability test system is used to test the stability of the positioning information output by the positioning device to be measured, and the positioning device to be measured outputs the positioning information through an asynchronous serial interface; the positioning information output stability test system comprises a signal generating module; The method comprises: Controlling the signal generating module to send a satellite signal to the positioning device to be measured, wherein the signal generating module outputs a first time synchronization signal while sending the satellite signal; Determine in sequence the first time difference between the valid asynchronous serial signal sent each time by the positioning device to be measured and the corresponding first time synchronization signal within a preset test duration, wherein the valid asynchronous serial signal carries the positioning information sent by the positioning device to be measured; Based on the determined first time difference, a positioning information output stability test result of the device to be positioned is determined.
[0006] Exemplarily, the positioning information output stability testing system further includes a standard positioning device; The controlling the signal generating module to send a satellite signal to the device to be positioned comprises: Control the signal generating module to send satellite signals to the positioning device to be measured and the standard positioning device at the same time; Before sequentially determining the time difference between the valid asynchronous serial signal sent by the positioning device to be measured each time within the preset test duration and the corresponding first time synchronization signal, the method further includes: Determine in sequence the second time difference between the second time synchronization signal sent each time by the standard positioning device and the corresponding first time synchronization signal within the preset test duration; determining the reliability of the test result based on the determined second time difference; The step of sequentially determining the time difference between the valid asynchronous serial signal sent each time by the positioning device to be measured within the preset test duration and the corresponding first time synchronization signal is performed when the reliability of the test result is reliable.
[0007] Exemplarily, the second time synchronization signal is a time synchronization signal sent by the standard positioning device when positioning is successful.
[0008] Exemplarily, determining the reliability of the test result based on the determined second time difference includes: Determining whether a maximum value among the determined second time differences exceeds a first time threshold; When the maximum value of the determined second time differences does not exceed the first time threshold, the reliability of the test result is determined to be reliable.
[0009] Exemplarily, the valid asynchronous serial signal is a signal sent by the device to be positioned when positioning is successful.
[0010] Exemplarily, the determining, based on the determined first time difference, a positioning information output stability test result of the positioning device to be measured includes: Determining whether a maximum value among the determined first time differences exceeds a second time threshold; determining that the test result is stable at least when the maximum value of the determined first time differences does not exceed the second time threshold; and / or, The step of determining a positioning information output stability test result of the positioning device to be measured based on the determined first time difference includes: calculating a standard deviation of the determined first time difference; comparing the determined standard deviation of the first time difference with a first difference threshold; Determining that the test result is stable at least when the determined standard deviation of the first time difference does not exceed the first difference threshold; and / or, The step of determining a positioning information output stability test result of the positioning device to be measured based on the determined first time difference includes: Calculate twice the standard deviation of the first time difference determined; Comparing 2 times the standard deviation of the determined first time difference with a second difference threshold; The test result is determined to be stable when at least twice the standard deviation of the determined first time difference does not exceed the second difference threshold.
[0011] Exemplarily, before sequentially determining the time difference between the valid asynchronous serial signal sent each time by the positioning device to be measured within the preset test duration and the corresponding first time synchronization signal, the method further includes: Determine whether there is a valid asynchronous serial signal in the asynchronous serial signals sent each time by the positioning device to be measured within the preset test time; The step of sequentially determining the time difference between the valid asynchronous serial signal sent each time by the positioning device to be measured and the corresponding first time synchronization signal within the preset test duration is performed when there is a valid asynchronous serial signal in the asynchronous serial signal sent each time by the positioning device to be measured.
[0012] According to another aspect of the present invention, a positioning information output stability testing system is provided, wherein the positioning information output stability testing system is used to test the stability of the positioning information output by the positioning device to be measured, and the positioning device to be measured outputs the positioning information through an asynchronous serial interface; the positioning information output stability testing system comprises a signal generating module and a control module; the control module is used to execute the above method.
[0013] According to another aspect of the present invention, there is provided an electronic device, including a processor and a memory, wherein a computer program is stored in the memory, and the processor is used to execute the computer program to implement the above method.
[0014] According to another aspect of the present invention, a computer-readable storage medium is provided, storing a computer program / instruction, and the computer program / instruction implements the above method when executed by a processor.
[0015] In the above technical scheme, the stability of the positioning information output of the device to be measured is measured according to the first time difference between the effective asynchronous serial signal emitted by the device to be measured each time within the preset test duration and the corresponding first time synchronization signal. This scheme is simple to operate, does not require human participation, can improve the degree of automation of the test, and helps to ensure the accuracy and reliability of the test results.
[0016] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The above and other purposes, features and advantages of the present invention will become more apparent by describing the embodiments of the present invention in more detail in conjunction with the accompanying drawings. The accompanying drawings are used to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings, the same reference numerals generally represent the same components or steps.
[0018] Figure 1 A schematic flow chart showing a method for testing the stability of positioning information output according to an embodiment of the present invention is shown; Figure 2 A schematic block diagram of an electronic device according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0019] In order to make the purpose, technical scheme and advantages of the present invention more obvious, the exemplary embodiments according to the present invention will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments of the present invention, and it should be understood that the present invention is not limited to the exemplary embodiments described herein. Based on the embodiments of the present invention described in the present invention, all other embodiments obtained by those skilled in the art without creative work should fall within the protection scope of the present invention.
[0020] Positioning information is usually in the form of NMEA sentences. NMEA is the abbreviation of National Marine Electronics Association, and is also the unified RTCM standard protocol for GPS navigation equipment. The output of NMEA sentences is often used to display positioning conditions, and usually a set of positioning information is output every 1 second. However, in actual use, it is found that the actual output time interval is not a stable 1 second, and there are even some obviously abnormal output conditions. For example, a set of NMEA sentences should be output in the current second, but due to the high CPU occupancy rate of the device to be positioned, the system does not have sufficient resources to ensure the output of NMEA sentences, etc., no NMEA sentences are output at this time. When the next second comes, the NMEA sentences of these 2 seconds are output at the same time. Due to the instability of the output of NMEA sentences, the position output by the device to be positioned may be stuck or the displayed position may not correspond to the actual position. At present, there is still a lack of a solution to test the stability of the positioning information output by the device to be positioned. In particular, there is a lack of a solution for testing the stability of the positioning information output by the device to be positioned that outputs positioning information through an asynchronous serial (UART) interface. In view of this, the present invention provides a positioning information output stability testing method, system, electronic device and medium. The method can realize automated testing of the stability of the positioning information output by the positioning device to be tested, and the test results have high accuracy and reliability.
[0021] According to one aspect of an embodiment of the present invention, a positioning information output stability test method is provided. The method is applied to a positioning information output stability test system, which is used to test the stability of positioning information output by a positioning device to be measured, and the positioning device to be measured outputs positioning information through an asynchronous serial (UART) interface; the positioning information output stability test system includes a signal generation module.
[0022] Figure 1 FIG. 2 is a schematic flow chart of a method for testing the stability of positioning information output according to an embodiment of the present invention. Figure 1 As shown, the method may include the following steps S110, S120 and S150.
[0023] In step S110, the signal generating module is controlled to send a satellite signal to the device to be positioned, wherein the signal generating module outputs a first time synchronization signal while sending the satellite signal.
[0024] The signal generating module may be any module that is currently available or will be developed in the future and can generate GNSS signals. The signal generating module may also be referred to as a GNSS signal source.
[0025] In this example, the signal generation module can output a first time synchronization signal while outputting a satellite signal. The first time synchronization signal is a pulse per second (PPS) signal. The PPS signal is an accurate PPS signal of the ns level generated by an atomic clock.
[0026] In step S140, the first time difference between the valid asynchronous serial signal sent by the device to be measured and the corresponding first time synchronization signal within the preset test duration is determined in sequence, and the valid asynchronous serial signal carries the positioning information sent by the device to be measured.
[0027] The preset test duration can be set according to actual needs and will not be elaborated here.
[0028] It can be understood that the device to be positioned can generate a corresponding asynchronous serial signal each time it receives a satellite signal. The asynchronous serial signal carries the positioning information sent by the device to be positioned. The asynchronous serial signal is a UART signal. Within the preset test duration, the device to be positioned can send multiple asynchronous serial signals. For example, if the positioning cycle of the device to be positioned is 1s and the preset test duration is 1h, the device to be positioned can send 3600 asynchronous serial signals within the preset test duration.
[0029] As described above, the signal generating module can output a first time synchronization signal while outputting a satellite signal. In this article, the first time synchronization signal corresponding to the asynchronous serial signal is the first time signal output simultaneously with the satellite signal corresponding to the asynchronous serial signal. The first time synchronization signal corresponding to the valid asynchronous serial signal is the first time signal output simultaneously with the satellite signal corresponding to the valid asynchronous serial signal.
[0030] In this example, the valid asynchronous serial signal may be all the asynchronous serial signals emitted by the device to be measured within the preset test duration, that is, each asynchronous serial signal emitted by the device to be measured within the preset test duration is a valid asynchronous serial signal. In some embodiments, the valid asynchronous serial signal is a signal emitted by the device to be measured when the positioning is successful. By measuring the stability of the positioning information output of the device to be measured based on the signal emitted by the device to be measured when the positioning is successful, the stability result of the positioning information output of the device to be measured can be determined more accurately.
[0031] In some embodiments, the method further comprises the following steps: for each asynchronous serial signal sent by the positioning device to be measured, determining whether the asynchronous serial signal is a valid asynchronous signal according to the positioning information carried by the asynchronous serial signal. The positioning information includes parameters for indicating the positioning state. It can be understood that the positioning information carried by the asynchronous serial signal is a NMEA sentence. The NMEA sentence contains 15 parameters: the first parameter indicates UTC time; the second parameter indicates latitude; the third parameter indicates latitude hemisphere (i.e., north latitude or south latitude); the fourth parameter indicates longitude; the fifth parameter indicates longitude hemisphere (i.e., east longitude or west longitude); the sixth parameter indicates positioning quality indication, the value of which can be 0, 1, 2, 6, where 0 indicates invalid positioning, 1 indicates valid positioning, 2 indicates valid differential positioning, and 6 indicates estimating; the seventh parameter indicates the number of satellites used; the eighth parameter indicates the HDOP horizontal accuracy; the ninth parameter indicates the height of the antenna from the sea level; the tenth parameter indicates the height unit (of the ninth parameter); the eleventh parameter indicates the height of the earth ellipsoid relative to the geoid; the twelfth parameter indicates the height unit (of the eleventh parameter); the thirteenth parameter indicates differential time; the fourteenth parameter indicates the differential station ID number; and the fifteenth parameter indicates the checksum. In this embodiment, the sixth parameter indicates the positioning status. Therefore, whether the asynchronous serial signal is a valid asynchronous serial signal can be determined according to the value of the sixth parameter in the NMEA sentence. That is, when the value of the sixth parameter is 1 or 2, the asynchronous serial signal is determined to be a valid asynchronous serial signal.
[0032] In this example, the first time difference between the valid asynchronous serial signal received each time from the device to be measured and the corresponding first time synchronization signal can be calculated, thereby obtaining a plurality of first time differences corresponding to the valid asynchronous serial signal sent each time from the device to be measured within the preset test duration. For example, if the number of valid asynchronous serial signals sent by the device to be measured within the preset test duration is 3600, 3600 first time differences can be obtained through step S140.
[0033] In step S150, based on the determined first time difference, a positioning information output stability test result of the positioning device to be measured is determined.
[0034] After obtaining multiple first time differences within the preset test duration, the positioning information output stability test result of the positioning device to be measured can be determined according to these first time differences. For example, at least one statistic among the maximum value, average value, variance, standard deviation, 2 times standard deviation, etc. of the multiple first time differences can be used and compared with the corresponding threshold value, and whether the positioning device to be measured can stably output positioning information can be determined according to the comparison result.
[0035] In the above scheme, the stability of the positioning information output of the device to be measured is measured according to the first time difference between the effective asynchronous serial signal sent by the device to be measured each time within the preset test duration and the corresponding first time synchronization signal. This scheme is simple to operate, does not require human participation, can improve the degree of automation of the test, and helps to ensure the accuracy and reliability of the test results.
[0036] Exemplarily, the positioning information output stability testing system also includes a standard positioning device; step S110, controlling the signal generating module to send a satellite signal to the positioning device to be measured, including: controlling the signal generating module to send a satellite signal to the positioning device to be measured and the standard positioning device at the same time.
[0037] Before the step S140 of sequentially determining the time difference between the valid asynchronous serial signal sent each time by the positioning device to be measured within the preset test time and the corresponding first time synchronization signal, the method further includes the following steps S120 and S130.
[0038] Step S120, sequentially determining the second time difference between the second time synchronization signal sent each time by the standard positioning device within the preset test time and the corresponding first time synchronization signal.
[0039] Step S130, based on the determined second time difference, determines the reliability of the test result; wherein, step S140, the step of sequentially determining the time difference between the valid asynchronous serial signal emitted each time by the positioning device to be measured within the preset test duration and the corresponding first time synchronization signal, is performed when the reliability of the test result is reliable.
[0040] In this example, the standard positioning device is a positioning device with accurate positioning and high output accuracy of the PPS signal (the accuracy is a known quantity). The reliability of the test result can be more accurately measured by the time difference between the time synchronization signal (i.e., the second time synchronization signal) emitted by the standard positioning device and the corresponding first time synchronization signal.
[0041] In some embodiments, the positioning information output stability testing system further includes a power divider, and the GNSS signal source can simultaneously input the GNSS signal to the positioning device to be measured and the standard positioning device through the power divider.
[0042] In this article, the standard positioning device can simultaneously output corresponding positioning information and a time synchronization signal when receiving a satellite signal, and the time synchronization signal is a pulse per second (PPS) signal. The first time synchronization signal corresponding to the PPS signal is the first time synchronization signal output simultaneously with the satellite signal corresponding to the PPS signal.
[0043] In some embodiments, the second time synchronization signal in step S120 may be all PPS signals emitted by the standard positioning device within the preset test duration. That is, each PPS signal emitted by the standard positioning device within the preset test duration is a second time synchronization signal. In other embodiments, the second time synchronization signal is a time synchronization signal emitted by the standard positioning device when positioning is successful. By measuring the reliability of the test result based on the time synchronization signal emitted by the standard positioning device when positioning is successful, the reliability result obtained is more accurate.
[0044] In some embodiments, the method further includes the following steps: for each time synchronization signal sent by the standard positioning device, determining whether the time synchronization signal is a second time synchronization signal according to the positioning information corresponding to the time synchronization signal. The positioning information includes parameters for indicating the positioning status. It can be understood that the positioning information sent by the standard positioning device is a NMEA sentence. According to the above description of the NMEA sentence, the sixth parameter in the NMEA sentence can indicate the positioning status. Therefore, it can be determined whether the time synchronization signal sent by the standard positioning device is a second time synchronization signal according to the value of the sixth parameter in the NMEA sentence.
[0045] After obtaining multiple second time differences within the preset test duration, the reliability of the test results can be measured based on these second time differences. For example, at least one statistic among the maximum value, average value, variance, standard deviation, 2 times standard deviation, etc. of the multiple second time differences can be used and compared with the corresponding threshold value, and the reliability of the test results can be determined based on the comparison result.
[0046] The above scheme can more accurately measure the reliability of the test results by utilizing multiple second time differences within the preset test duration, so that it can be determined whether the test environment is normal (for example, whether the signal generating module is damaged) based on the reliability results, avoiding meaningless execution of steps and waste of computing resources, while ensuring the reliability of the test results.
[0047] Exemplarily, step S130, based on the determined second time difference, determines the reliability of the test result, including: judging whether the maximum value in the determined second time difference exceeds the first time threshold; when the maximum value in the determined second time difference does not exceed the first time threshold, determining that the reliability of the test result is reliable.
[0048] It can be understood that the maximum value in the determined second time difference does not exceed the first time threshold, that is, the maximum value in the determined second time difference is less than or equal to the first time threshold. The size of the first time threshold can be set as needed, and the accuracy of the time synchronization signal output by the standard positioning device is less than the first time threshold. For example, if the first time threshold is 50ns, a standard positioning device with an accuracy less than or equal to 50ns can be selected. In a specific embodiment, a standard positioning device with an accuracy of 20ns can be selected.
[0049] The above technical solution can quickly determine the reliability of the test result by judging whether the maximum value in the determined second time difference exceeds the first time threshold. The calculation is simple and the test efficiency can be effectively improved.
[0050] Exemplarily, the method may further include the following steps: when the maximum value in the determined second time difference exceeds the first time threshold, determining whether the signal generating module is working normally; if the signal generating module is not working normally, resetting the signal generating module and returning to step S110; if the signal generating module is working normally, determining that the standard positioning device is damaged, and outputting a prompt message to prompt the user to replace the standard positioning device.
[0051] In the solution of this example, when the maximum value of the determined second time difference exceeds the first time threshold, it can be determined whether the GNSS signal source is working properly. If the GNSS signal source is not working properly, the GNSS signal source can be reset, and the device to be measured can be retested using the reset GNSS signal source (i.e., return to step S110). If the signal generation module is working properly, a prompt message can be output to prompt the user to replace the standard positioning device. After the standard positioning device is replaced, the device to be measured is retested.
[0052] The prompt information in this example may include any one or more of sound information (such as an alarm sound), light information (such as a flashing indicator light), text information, etc., which will not be described in detail.
[0053] The above technical solution can realize automatic diagnosis of factors that cause abnormal test environment, and automatically reset the signal generating module when the abnormal factor is that the signal generating module does not work normally, thereby helping to improve the overall test efficiency and user experience.
[0054] Exemplarily, step S150, based on the determined first time difference, determines the stability test result of the positioning information output of the positioning device to be measured, including: judging whether the maximum value in the determined first time difference exceeds the second time threshold; at least when the maximum value in the determined first time difference does not exceed the second time threshold, determining that the test result is stable.
[0055] and / or, Based on the determined first time difference, determining a positioning information output stability test result of the positioning device to be measured includes: calculating a standard deviation of the determined first time difference (for ease of distinction, it can be called 1 times the standard deviation); comparing the standard deviation of the determined first time difference with a first difference threshold; and determining that the test result is stable at least when the standard deviation of the determined first time difference does not exceed the first difference threshold.
[0056] and / or, Based on the determined first time difference, determining a positioning information output stability test result of the positioning device to be measured includes: calculating twice the standard deviation of the determined first time difference; comparing twice the standard deviation of the determined first time difference with a second difference threshold; and determining that the test result is stable at least when twice the standard deviation of the determined first time difference does not exceed the second difference threshold.
[0057] The second time threshold, the first difference threshold and the second difference threshold can all be set according to actual needs and will not be described in detail.
[0058] In some embodiments, the test result can be determined based on the comparison result of the maximum value, 1 times the standard deviation, and 2 times the standard deviation in the determined first time difference with the corresponding threshold value. In other embodiments, the test result can be determined based on the comparison result of the maximum value, 1 times the standard deviation, and 2 times the standard deviation in the determined first time difference with the corresponding threshold value. For example, the test result can be determined based on the comparison result of the maximum value, 1 times the standard deviation, and 2 times the standard deviation in the determined first time difference with the corresponding threshold value. In this embodiment, the test result can be determined to be stable when the maximum value in the determined first time difference does not exceed the second time threshold value, the standard deviation of the determined first time difference does not exceed the first difference threshold value, and the 2 times the standard deviation of the determined first time difference does not exceed the second difference threshold value.
[0059] The above technical solution is simple to calculate, can quickly determine the reliability of the test results, and helps to improve test efficiency.
[0060] Exemplarily, before successively determining the time difference between a valid asynchronous serial signal emitted each time by the positioning device to be measured within a preset test duration and the corresponding first time synchronization signal, the method further includes: determining whether there is a valid asynchronous serial signal among the asynchronous serial signals emitted each time by the positioning device to be measured within the preset test duration; the step of successively determining the time difference between a valid asynchronous serial signal emitted each time by the positioning device to be measured within the preset test duration and the corresponding first time synchronization signal is performed when there is a valid asynchronous serial signal among the asynchronous serial signals emitted each time by the positioning device to be measured.
[0061] In the solution of this example, it is possible to pre-determine whether there is a valid asynchronous serial signal in the asynchronous serial signal sent by the positioning device to be measured each time within the preset test duration. If there is, the subsequent steps can be continued. The method of determining whether each asynchronous serial signal is a valid asynchronous serial signal has been described in detail above and will not be repeated here.
[0062] In some embodiments, the method may further include the following step: when there is no valid asynchronous serial signal in the asynchronous serial signal sent by the device to be measured each time, determining that the device to be measured is damaged.
[0063] The above technical solution can determine whether the device to be measured is damaged by the asynchronous serial signal sent by the device to be measured each time. When the device to be measured is damaged, there is no need to execute subsequent steps, which helps to avoid meaningless execution of steps and thus avoid waste of computing resources.
[0064] According to another aspect of an embodiment of the present invention, a positioning information output stability testing system is provided, wherein the positioning information output stability testing system is used to test the stability of the positioning information output by the positioning device to be measured, and the positioning device to be measured outputs the positioning information through an asynchronous serial interface; the positioning information output stability testing system includes a signal generating module and a control module; the control module is used to execute the method of any of the above embodiments.
[0065] In some embodiments, the positioning information output stability testing system further includes a power divider and a standard positioning device, and the signal generating module sends the satellite signal to the positioning device to be measured and the standard positioning device respectively through the power divider.
[0066] Optionally, the control module may include a controller and a detection and analysis module, wherein the detection and analysis module is connected to the positioning device to be measured and the signal generation module to receive the first time synchronization signal sent by the signal generation module and the asynchronous serial signal sent by the positioning device to be measured. The controller is used to control the signal generation module to send a satellite signal to the positioning device to be measured; the detection and analysis module is used to sequentially determine the first time difference between the valid asynchronous serial signal sent by the positioning device to be measured each time within a preset test duration and the corresponding first time synchronization signal, wherein the valid asynchronous serial signal carries the positioning information sent by the positioning device to be measured; the detection and analysis module is used to determine the stability test result of the positioning information output of the positioning device to be measured based on the determined first time difference.
[0067] In the embodiment where the positioning information output stability test system further includes a standard positioning device, the detection and analysis module is connected to the standard positioning device to receive the positioning information and time synchronization information sent by the standard positioning device. The controller is also used to sequentially determine the second time difference between the second time synchronization signal sent by the standard positioning device each time within the preset test duration and the corresponding first time synchronization signal; based on the determined second time difference, determine the reliability of the test result.
[0068] In some embodiments, the controller can also be used to control the start-up of the standard positioning device, the positioning device to be measured, the detection and analysis module, and the signal generation module. The controller can control the signal generation module to send satellite signals after each module and device is started for an appropriate time, so that each module and device is in normal working state.
[0069] In some embodiments, the signal generation module may be composed of a GNSS signal generator and a PPS signal generator. The detection and analysis module may be composed of a signal detection unit, a data acquisition unit and a data analysis unit, and each module cooperates with each other to complete the steps of the method in the above embodiment, which will not be repeated.
[0070] The positioning information output stability testing system of the above solution can relatively accurately test the positioning information output stability of the positioning device and has better testing efficiency.
[0071] According to yet another aspect of the embodiments of the present invention, an electronic device is provided. Figure 2 FIG. 2 shows a schematic block diagram of an electronic device according to an embodiment of the present invention. Figure 2 As shown, the electronic device 200 includes: a processor 210 and a memory 220. The memory 220 stores a computer program, and the processor 210 is used to execute the computer program to implement the above method.
[0072] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is also provided. The storage medium stores a computer program / instruction, and the computer program / instruction implements the above method when executed by a processor. The storage medium may include, for example, a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a portable compact disk read-only memory (CD-ROM), a USB memory, or any combination of the above storage media. The computer-readable storage medium may be any combination of one or more computer-readable storage media.
[0073] A person skilled in the art can easily understand the implementation structure, working principle and beneficial effects of the test system, electronic device and computer-readable storage medium by reading the above positioning information output stability test method. For the sake of brevity, it will not be described here.
[0074] Although example embodiments have been described herein with reference to the accompanying drawings, it should be understood that the above example embodiments are merely exemplary and are not intended to limit the scope of the present invention thereto. Various changes and modifications may be made therein by one of ordinary skill in the art without departing from the scope and spirit of the present invention. All such changes and modifications are intended to be included within the scope of the present invention as required by the appended claims.
[0075] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0076] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed.
[0077] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.
[0078] Similarly, it should be understood that in order to streamline the present invention and help understand one or more of the various inventive aspects, in the description of the exemplary embodiments of the present invention, the various features of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, the method of the present invention should not be interpreted as reflecting the following intention: the claimed invention requires more features than the features explicitly stated in each claim. More specifically, as reflected in the corresponding claims, the inventive point is that the corresponding technical problem can be solved with less than all the features of a single disclosed embodiment. Therefore, the claims following the specific embodiment are hereby expressly incorporated into the specific embodiment, wherein each claim itself serves as a separate embodiment of the present invention.
[0079] Those skilled in the art will understand that, except for mutually exclusive features, all features disclosed in this specification (including the accompanying claims, abstract and drawings) and all processes or units of any method or device disclosed in this specification may be combined in any combination. Unless otherwise explicitly stated, each feature disclosed in this specification (including the accompanying claims, abstract and drawings) may be replaced by an alternative feature that provides the same, equivalent or similar purpose.
[0080] In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present invention and form different embodiments. For example, in the claims, any one of the claimed embodiments may be used in any combination.
[0081] The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all of the functions of some modules in a test system or electronic device according to an embodiment of the present invention. The present invention may also be implemented as a device program (e.g., a computer program and a computer program product) for executing part or all of the methods described herein. Such a program for implementing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.
[0082] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc., does not indicate any order. These words may be interpreted as names.
[0083] The above is only a specific embodiment of the present invention or an explanation of a specific embodiment. The protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. The protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A positioning information output stability testing method, characterized in that: Applicable to a positioning information output stability test system, the positioning information output stability test system is used to test the stability of the positioning information output by the positioning device to be measured, the positioning device to be measured outputs the positioning information through an asynchronous serial interface; The positioning information output stability testing system includes a signal generating module; The method comprises: Controlling the signal generating module to send a satellite signal to the positioning device to be measured, wherein the signal generating module outputs a first time synchronization signal while sending the satellite signal; Determine in sequence the first time difference between the valid asynchronous serial signal sent each time by the positioning device to be measured and the corresponding first time synchronization signal within a preset test duration, wherein the valid asynchronous serial signal carries the positioning information sent by the positioning device to be measured; Based on the determined first time difference, a positioning information output stability test result of the device to be positioned is determined.
2. The method according to claim 1, characterized in that The positioning information output stability testing system also includes a standard positioning device; The controlling the signal generating module to send a satellite signal to the device to be positioned comprises: Control the signal generating module to send satellite signals to the positioning device to be measured and the standard positioning device at the same time; Before sequentially determining the time difference between the valid asynchronous serial signal sent by the positioning device to be measured each time within the preset test duration and the corresponding first time synchronization signal, the method further includes: Determine in sequence the second time difference between the second time synchronization signal sent each time by the standard positioning device and the corresponding first time synchronization signal within the preset test duration; determining the reliability of the test result based on the determined second time difference; The step of sequentially determining the time difference between the valid asynchronous serial signal sent each time by the positioning device to be measured within the preset test duration and the corresponding first time synchronization signal is performed when the reliability of the test result is reliable.
3. The method according to claim 2, characterized in that The second time synchronization signal is a time synchronization signal sent by the standard positioning device when positioning is successful.
4. The method according to claim 2, characterized in that: The step of determining the reliability of the test result based on the determined second time difference comprises: Determining whether a maximum value among the determined second time differences exceeds a first time threshold; When the maximum value of the determined second time differences does not exceed the first time threshold, the reliability of the test result is determined to be reliable.
5. The method according to claim 1, characterized in that The effective asynchronous serial signal is a signal sent by the device to be positioned when positioning is successful.
6. The method according to any one of claims 1 to 5, characterized in that: The step of determining a positioning information output stability test result of the positioning device to be measured based on the determined first time difference includes: Determining whether a maximum value among the determined first time differences exceeds a second time threshold; determining that the test result is stable at least when the maximum value of the determined first time differences does not exceed the second time threshold; and / or, The step of determining a positioning information output stability test result of the positioning device to be measured based on the determined first time difference includes: calculating a standard deviation of the determined first time difference; comparing the determined standard deviation of the first time difference with a first difference threshold; determining that the test result is stable at least when the determined standard deviation of the first time difference does not exceed the first difference threshold; and / or, The step of determining a positioning information output stability test result of the positioning device to be measured based on the determined first time difference includes: Calculate twice the standard deviation of the first time difference determined; Comparing 2 times the standard deviation of the determined first time difference with a second difference threshold; The test result is determined to be stable when at least twice the standard deviation of the determined first time difference does not exceed the second difference threshold.
7. The method according to any one of claims 1 to 5, characterized in that: Before sequentially determining the time difference between the valid asynchronous serial signal sent by the positioning device to be measured each time within the preset test duration and the corresponding first time synchronization signal, the method further includes: Determine whether there is a valid asynchronous serial signal in the asynchronous serial signals sent each time by the positioning device to be measured within the preset test time; The step of sequentially determining the time difference between the valid asynchronous serial signal sent each time by the positioning device to be measured and the corresponding first time synchronization signal within the preset test duration is performed when there is a valid asynchronous serial signal in the asynchronous serial signal sent each time by the positioning device to be measured.
8. A positioning information output stability testing system, characterized in that: The positioning information output stability testing system is used to test the stability of the positioning information output by the positioning device to be measured, and the positioning device to be measured outputs the positioning information through an asynchronous serial interface; the positioning information output stability testing system includes a signal generating module and a control module; the control module is used to execute the method described in any one of claims 1-7.
9. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a computer program, and the processor is used to execute the computer program to implement the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: A computer program / instruction is stored, and when the computer program / instruction is executed by a processor, the method according to any one of claims 1 to 7 is implemented.