GPS data processing method and terminal equipment

By judging the static state in the terminal device and filtering out NMEA information, the application problem of GPS positioning static drift on OBD terminal devices is solved, more efficient and real-time GPS data processing is achieved, and it is suitable for a variety of terminal devices and reduces the cost of Positioning errors and equipment requirements.

CN113655506BActive Publication Date: 2024-08-30SHENZHEN NEOWAY TECH
View PDF 17 Cites 0 Cited by

Patent Information

Application Number
CN202111070018.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-13
Publication Date
2024-08-30
Estimated Expiration
2041-09-13

AI Technical Summary

Technical Problem

In terms of improving the static drift of GPS positioning, the existing technology has problems such as being unable to be applied to OBD terminal equipment, huge data processing workload, lack of real-time performance, and high requirements on terminal equipment.

Method used

Provides a method for processing terminal equipment and GPS data. By judging whether the terminal equipment is in a stationary state and filtering out NMEA information in the stationary state, the data processing workload is reduced, real-time performance is improved, and errors are reduced. It is suitable for OBD terminal equipment. No need to bring your own map or download surrounding map data in real time.

Benefits of technology

It has improved the static drift of GPS positioning on OBD terminal equipment, reduced GPS trajectory data deviation, improved positioning accuracy and real-time performance, expanded the scope of application, and reduced the requirements for terminal equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113655506B
    Figure CN113655506B
Patent Text Reader

Abstract

The present invention relates to a GPS data processing method, and more particularly to a method for improving static drift of GPS positioning of a terminal device, the method comprising: determining whether the terminal device is in a stationary state; filtering out NMEA information after the terminal device is in a stationary state. The present invention also provides a terminal device. The method of the present invention not only has a relatively wide range of applications, including being applicable to terminal devices with OBD systems, but also because the method filters out the NMEA information when the terminal device is in the stationary state without the need to correct the NMEA information in the GPS receiver, thereby avoiding the trouble of huge data processing workload and greater errors caused by the algorithm itself.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a GPS data processing method, and in particular to a method for improving static drift of GPS positioning of terminal equipment. Background Art

[0002] GPS (Global Positioning System) positioning technology is widely used in a variety of terminal devices, and is indispensable in the application of OBD (On Board Diagnostics, a detection system extended for automobile fault diagnosis) terminal devices (i.e., terminal devices with OBD systems). With the progress of the times, the accuracy of driving trajectory is becoming more and more important for the OBD terminal devices, so the performance requirements for GPS positioning are also getting higher and higher.

[0003] GPS positioning is easily affected by factors such as changes in the atmospheric ionosphere, clouds or tall buildings, so the position information calculated by the GPS receiver is prone to deviation from the actual position. The position information calculated by the GPS receiver will deviate from the actual position to varying degrees. If this deviation is within the allowable error range, it is accepted by the industry, that is, it is considered accurate positioning, but if it exceeds the range, it is considered positioning drift. This positioning drift phenomenon is particularly obvious when the terminal device being located is stationary, making the position of the terminal device appear erratic and disorganized on the monitoring platform map. In the case of weak signals, its position deviation can even reach a range of hundreds of meters or thousands of meters. This phenomenon is called GPS positioning static drift.

[0004] Although there are some methods in the industry to improve GPS static drift, they all have some defects or limitations to a greater or lesser extent. For example, they rely on the external working conditions of the terminal device and cannot be applied to OBD terminal devices that cannot detect external working conditions; the data processing workload is huge and lacks real-time performance; the terminal device is required to have its own map or download surrounding map data in real time through a wireless network, which has relatively high requirements on the terminal device and a small scope of application. Summary of the invention

[0005] In order to improve the static drift phenomenon of GPS positioning, the embodiments of the present invention provide a terminal device and a GPS data processing method in view of the defects or limitations in the current methods for improving the static drift of GPS positioning, including: the inability to be applied to OBD terminal devices; the huge workload of data processing and the lack of real-time performance; the high requirements for terminal devices and the small scope of application.

[0006] On the one hand, an embodiment of the present invention provides a terminal device, which includes a memory, a processor, and a GPS receiver. The memory stores program instructions, which are used for the processor to call and execute the GPS data processing method; the GPS receiver can be used to receive satellite signals and convert them into NMEA (National Marine Electronics Association, the abbreviation of the National Marine Electronics Association of the United States, which is now the unified RTCM standard protocol for GPS navigation devices) information, and GPS trajectory data can be parsed from the NMEA information. When the terminal device is an OBD terminal device, the terminal device is connected to the gsensor acceleration sensor at the same time.

[0007] On the other hand, an embodiment of the present invention provides a GPS data processing method, which is applied to the terminal device, and the GPS data processing method includes: judging whether the terminal device is in a stationary state; when it is determined that the terminal device is in the stationary state, filtering out the NMEA information of the GPS receiver in the terminal device when the terminal device is in the stationary state.

[0008] The GPS data processing method of the present invention can not only be applied to the OBD terminal device, but also does not require modification of the NMEA information, thereby reducing the workload of data processing, improving real-time performance, and avoiding greater errors caused by algorithm defects, and reducing the deviation of GPS trajectory data when the terminal device is stationary. At the same time, the GPS data processing method of the present invention does not require the terminal device to carry its own map or download surrounding map data in real time through a wireless network, and has low requirements for the terminal device and a certain degree of universality. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the technical solutions and embodiments are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0010] Figure 1 A flowchart of a GPS data processing method provided by an embodiment of the present invention;

[0011] Figure 2 A flowchart of a GPS data processing method provided by another embodiment of the present invention;

[0012] Figure 3 for Figure 2A schematic diagram of the process of step 201 in one embodiment;

[0013] Figure 4 for Figure 2 A schematic diagram of the flow chart of step 201 in another embodiment;

[0014] Figure 5 for Figure 1 A schematic diagram of a flow chart provided in step 101 of an embodiment;

[0015] Figure 6 A flowchart of a GPS data processing method provided by yet another embodiment of the present invention. DETAILED DESCRIPTION

[0016] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0017] The basic principle of GPS positioning technology is: the GPS receiver receives the signal transmitted by the satellite and converts its satellite signal into NMEA information, and then transmits the NMEA information to the processor of the terminal device. The processor of the terminal device processes the NMEA information to a certain extent, including error processing, etc., and then uploads the GPS trajectory data parsed from the NMEA information to the GPS monitoring platform. The GPS monitoring platform processes the GPS trajectory data to obtain corresponding positioning information, and sends the corresponding positioning information to the user end, thereby realizing the positioning of the terminal device.

[0018] The GPS data processing method of the present invention is applied to a terminal device with a GPS positioning function, wherein the terminal device comprises a memory, a processor and a GPS receiver, wherein the GPS receiver is used to receive satellite signals and convert them into NMEA information and then transmit them to the processor of the terminal device, wherein program instructions are stored in the memory, wherein the program instructions are used for the processor to call and then execute the GPS data processing method, wherein the content of the GPS data processing method is the processing of the NMEA information.

[0019] In the GPS data processing method, the processing of the NMEA information includes: filtering out the NMEA information when the terminal device is in a stationary state, so that the terminal device will no longer parse out the GPS track data from the NMEA information, nor will it report the GPS track data, and the GPS monitoring platform will no longer receive the GPS track data reported by the terminal device, but will always use the position determined by the last acquisition of the GPS track data before filtering as the current stationary position of the terminal device. Thereby, the positioning of the terminal device can be completed, and the purpose of improving the static drift phenomenon of GPS positioning can be achieved. Among them, filtering out the NMEA information when the terminal device is in a stationary state can be that the processor of the terminal device filters and discards the NMEA information received from the GPS receiver.

[0020] See also Figure 1 , is a flow chart of a GPS data processing method provided by an embodiment of the present invention. The GPS data processing method of the present invention is applied to a terminal device, and the GPS data processing method may include the following steps:

[0021] 101. Determine whether the terminal device is in a stationary state. If yes, execute step 102; if no, return to execute step 101.

[0022] 102. When it is determined that the terminal device is in the stationary state, filter out NMEA information of the GPS receiver in the terminal device when the terminal device is in the stationary state.

[0023] In some embodiments, the “determining whether the terminal device is in a stationary state” may include: determining whether the terminal device is in the stationary state according to the data information of the terminal device itself. Figure 5 .

[0024] Therefore, in the present application, after determining that the terminal device is in the stationary state, the NMEA information of the terminal device when in the stationary state is filtered out, and the GPS track data parsed from the NMEA information acquired before filtering is reported to the GPS monitoring platform. Therefore, the GPS monitoring platform will no longer receive the GPS track data parsed from the NMEA information after the terminal device is in the stationary state, but will always use the position determined by the last acquired GPS track data before filtering as the current stationary position of the terminal device. Thereby, the purpose of improving the static drift phenomenon of GPS positioning is achieved.

[0025] In some embodiments, after determining that the current terminal device is in a valid positioning state, it is determined whether the current terminal device is in the static state. For more specific steps, refer to Figure 2 .

[0026] See also Figure 2 , is a flow chart of a GPS processing method provided by another embodiment of the present invention. Figure 2 As shown, in another embodiment, the GPS processing method includes the following steps:

[0027] 201. Determine whether the terminal device is in a valid positioning state. If yes, execute step 202; if no, return to execute step 201.

[0028] 202. After determining that the terminal device is in the valid positioning state, determine whether the terminal device is in the static state. If yes, that is, in the static state, execute step 203; otherwise, return to execute step 202.

[0029] 203. When it is determined that the terminal device is in the stationary state, filter out NMEA information of the GPS receiver in the terminal device when the terminal device is in the stationary state.

[0030] In some embodiments, the determining whether the terminal device is in a valid positioning state includes: determining whether the terminal device is in a valid positioning state according to the NMEA information. For more specific steps, see Figure 3 , Figure 4 .

[0031] That is, in some embodiments, after determining that the terminal device is in the effective positioning state, it is determined whether the terminal device is in the stationary state. The purpose of determining that the terminal device is in the effective positioning state is to ensure the accuracy of the first positioning point, so as to better perform the subsequent positioning process. For more specific steps, please refer to Figure 3 , Figure 4 .

[0032] In some embodiments, step 202 "when it is determined that the terminal device is in the state where the positioning is valid, determining whether the terminal device is in the stationary state" includes: when it is determined that the terminal device is in the state where the positioning is valid, reporting the GPS track data parsed from the NMEA at this time to the GPS monitoring platform, and starting from the time when the next NMEA information is received, determining whether the terminal device is in the stationary state.

[0033] In some embodiments, step 201 of "determining whether the terminal device is in a valid positioning state" includes: determining whether the terminal device is in a valid positioning state according to the NMEA information. In some embodiments, the NMEA information includes stdLat and stdLon information. In this case, the step of determining whether the terminal device is in a valid positioning state can refer to Figure 3 In some embodiments, the NMEA information does not include stdLat and stdLon information, but includes PDOP information. In this case, the step of determining whether the terminal device is in a valid positioning state can refer to Figure 4 .

[0034] Among them, the stdLat is the standard deviation of the receiver's latitude error, unit: meter; the stdLon is the standard deviation of the receiver's longitude error, unit: meter; and the PDOP is the comprehensive positioning factor.

[0035] See also Figure 3 , Figure 3 for Figure 2 The flowchart of step 201 in one embodiment includes the following specific steps:

[0036] 301. Determine whether the terminal device is in a valid positioning state according to the stdLat and stdLon information in the NMEA information.

[0037] 302. Calculate STD (standard value of GPS receiver latitude and longitude comprehensive error) through the stdLat and stdLon information.

[0038] 303. Determine whether there are a first preset number of consecutive STD values ​​that are all within the first preset range. If yes, go to step 304; if not, go to step 305.

[0039] 304. Determine that the terminal device is in the positioning effective state, and report the GPS track data parsed from the NMEA information at this time to the GPS monitoring platform.

[0040] 305. The terminal device is not in a state where the positioning is valid.

[0041] In step 302, the method for calculating STD includes: assuming that the value of stdLat is a and the value of stdLon is b, then the STD value is:

[0042] In some embodiments, the first preset number is 2, and the first preset range is determined by the specific application scenario of the terminal device, and is generally within 20 meters. When the STD values ​​of the first preset number of bars are all within the first preset range, it is determined that the terminal device is currently in the valid positioning state, and the GPS track data parsed from the NMEA information at this time is reported to the GPS monitoring platform. If the STD values ​​of the first preset number of bars are not all within the first preset range, the terminal device is not currently in the valid positioning state, and the GPS track data parsed from the current NMEA information will not be reported to the GPS monitoring platform at this time.

[0043] See also Figure 4 , Figure 4 for Figure 2 The flowchart of step 201 in another embodiment includes the following specific steps:

[0044] 401. Determine whether the terminal device is in a valid positioning state according to the PDOP information in the NMEA information.

[0045] 402. Determine the PDOP value.

[0046] 403. If the PDOP value is within a second preset range.

[0047] 404. Determine whether a second preset number of consecutive PDOP values ​​are within the second preset range.

[0048] 405. If the PDOP value is within a third preset range.

[0049] 406. Determine whether a third preset number of consecutive PDOP values ​​are within the third preset range.

[0050] 407: If the PDOP value is neither within the second preset range nor within the third preset range.

[0051] 408. Determine that the terminal device is in the positioning effective state, and report the GPS track data parsed from the NMEA information at this time to the GPS monitoring platform.

[0052] 409. The terminal device is not in a state where the positioning is valid.

[0053] The determining of the PDOP value includes: if the PDOP value is within the second preset range, executing step 403; if the PDOP value is within the third preset range, executing step 405; if the PDOP value is neither within the second preset range nor within the third preset range, the terminal device is currently not in the valid positioning state.

[0054] In some embodiments, the second preset range is (3, 6], and the second preset number is 5. When the PDOP values ​​of the second preset number of consecutive bars are all within the second preset range, starting from the next NMEA information in the second preset number of bars being received by the GPS receiver, it is determined that the current terminal device is in the valid positioning state, and the GPS track data parsed from the NMEA information at this time is reported to the GPS monitoring platform. If the PDOP values ​​of the second preset number of consecutive bars are not all within the second preset range, the current terminal device is not in the valid positioning state, and the GPS track data parsed from the current NMEA information will not be reported to the GPS monitoring platform.

[0055] In some embodiments, the third preset range is (-∞,3], and the third preset number is 2. When the PDOP values ​​for the third preset number of consecutive bars are within the third preset range, starting from the time when the next NMEA information in the third preset number of bars is received by the GPS receiver, it is determined that the terminal device is currently in the valid positioning state, and the GPS track data parsed from the NMEA information at this time is reported to the GPS monitoring platform. If the PDOP values ​​for the third preset number of consecutive bars are not all within the third preset range, the terminal device is currently not in the valid positioning state, and the GPS track data parsed from the current NMEA information will not be reported to the GPS monitoring platform at this time.

[0056] In the above steps 301 to 305 and steps 401 to 409, what is actually reported is the GPS track data parsed from the NMEA information that meets the appropriate accuracy standard, and the appropriate accuracy standard includes satisfying one of the conditions of step 303, step 404, and step 406. Therefore, in the present invention, the provided Figure 2In the two embodiments of step 201, namely steps 301 to 305, and steps 401 to 409, "determining whether the terminal device is in a valid positioning state" is to determine that the terminal device is in a valid positioning state when it is determined that the received NMEA information reaches the appropriate accuracy standard, and report the GPS track data at this time to the GPS monitoring platform. Before determining that the terminal device is in a valid positioning state, no GPS track data is reported to the GPS monitoring platform, thereby ensuring the accuracy of the first positioning point.

[0057] In some embodiments, the GPS data processing method of the present invention can be applied to OBD terminal devices, that is, terminal devices with OBD systems (On Board Diagnostics, a detection system extended for automobile fault diagnosis). Currently, in the market, the terminal devices with OBD systems generally include automobiles. When the terminal device is the OBD terminal device, Figure 1 The flowchart of step 101 in the embodiment is as follows: Figure 5 .

[0058] See also Figure 5 ,for Figure 1 The flowchart of step 101 in the embodiment is provided, and the specific steps include:

[0059] 501. Determine whether the OBD terminal device is in a stationary state according to data information of the OBD terminal device itself.

[0060] 502. Calculate the motion noise value of the terminal device according to the data in the gsensor acceleration sensor.

[0061] 503. Determine whether the motion noise value of the terminal device is less than or equal to the stationary noise value when the terminal device is stationary.

[0062] 504. Determine whether the bus speed is 0.

[0063] 505. Determine whether the terminal device is in the stationary state.

[0064] 506. The terminal device is not in the static state.

[0065] In some embodiments, the OBD terminal device includes a gsensor acceleration sensor, and the data information of the OBD terminal device itself includes: data in the gsensor acceleration sensor (including: directional acceleration parameters of the x-axis, y-axis, and z-axis of the OBD terminal device) and the bus speed of the OBD system.

[0066] The determining whether the OBD terminal device is in a stationary state based on the data information of the OBD terminal device itself includes: determining whether the OBD terminal device is in the stationary state based on the data in the gsensor acceleration sensor, which is specifically carried out according to steps 502, 503, 505, and 506.

[0067] Determining whether the OBD terminal device is in a stationary state based on the data information of the OBD terminal device itself also includes: judging whether the OBD terminal device is in the stationary state based on the bus speed of the OBD system, which is specifically carried out according to steps 504, 505, and 506.

[0068] In step 502, the calculating of the motion noise value of the terminal device comprises the steps of:

[0069] (1) Setting the sampling rate of the gsensor acceleration sensor to 100 Hz;

[0070] (2) Record 100 groups of corresponding x-axis, y-axis, and z-axis accelerations acquired by the gsensor acceleration sensor within one second as (x1, y1, z1), (x2, y2, z2), ..., (x100, y100, z100), respectively;

[0071] (3) calculating the corresponding total acceleration of each group of the corresponding x-axis, y-axis, and z-axis accelerations acquired by the gsensor acceleration sensor within one second by using the first calculation method, and recording the corresponding total accelerations as a1, a2, ..., a100 respectively;

[0072] (4) filtering the a1, a2, ..., a100 respectively, and averaging the 100 values ​​after filtering, and recording the average as A;

[0073] (5) Subtract the a1, a2, ..., a100 from A and calculate their absolute values, and record the calculation results as Aa1, Aa2, ..., Aa100;

[0074] (6) Taking square roots of Aa1, Aa2, ..., Aa100 respectively, and then accumulating them, and then dividing the accumulated result by 100, the obtained value is the motion noise value;

[0075] Wherein, the first calculation method is: Among them, x n ,y n 、z n are the accelerations of the nth group of x-axis, y-axis, and z-axis, respectively, nis the total acceleration of the nth group, where n is a natural number from 1 to 100.

[0076] In step 503, the stationary noise value is If the motion noise value of the terminal device is less than or equal to the static noise value, it is determined that the terminal device is currently in the static state.

[0077] In step 504, if the bus speed is 0, it is considered that the terminal device is in an off or idling state, and the terminal device is currently in the stationary state.

[0078] In step 506, if the motion noise value of the terminal device is greater than the static noise value, and the bus speed is not 0, it is considered that the OBD terminal device is not currently in the static state.

[0079] In some embodiments, after determining that the terminal device is in a valid positioning state, the method further includes: calculating a unit driving distance through the GPS longitude and latitude information in the NMEA information, wherein the unit driving distance is the absolute value of the difference between the GPS longitude and latitude information in the previous second and the current second; if the unit driving distance is not within the fourth preset range, filtering out the current NMEA information. For more specific steps, refer to Figure 6 .

[0080] See also Figure 6 , is a flow chart of a GPS data processing method provided by another embodiment of the present invention, and its specific steps include:

[0081] 601. Determine whether the terminal device is in a valid positioning state. If yes, execute steps 602 and 604 simultaneously; if no, return to execute step 601.

[0082] 602. After determining that the terminal device is in the valid positioning state, determine whether the terminal device is in the stationary state.

[0083] 603. When it is determined that the terminal device is in the stationary state, filter out NMEA information of the GPS receiver in the terminal device when the terminal device is in the stationary state.

[0084] 604. When it is determined that the terminal device is in the valid positioning state, the unit driving distance is calculated using the GPS longitude and latitude information in the NMEA information.

[0085] 605. If the unit driving distance is not within a fourth preset range, filter out the current NMEA information.

[0086] Step 601 corresponds to step 201 , and the related descriptions can be referenced to each other.

[0087] In step 604, the unit driving distance is calculated as: the absolute value of the difference between the GPS latitude and longitude information between the last second and the current second. In some embodiments, the fourth preset range is a typical value: [0,100], unit: m, and the fourth preset number is 5.

[0088] After determining that the terminal device is in the state where the positioning is valid, steps 602 and 604 are executed simultaneously. If it is determined that the terminal device is in the stationary state, the NMEA information of the GPS receiver in the terminal device when the terminal device is in the stationary state (i.e., the current NMEA information) is filtered out; if the unit driving distance calculated by step 604 is not within the fourth preset range, it means that the moving speed of the terminal device calculated by the positioning information is too large and does not conform to the reality. The positioning at this time is inaccurate, and the current NMEA information is also filtered out; if the terminal device is not in the stationary state, and the unit driving distance calculated by step 604 is also within the fourth preset range, the current NMEA information is not filtered out, and the GPS track data parsed from the NMEA information at this time is reported to the GPS monitoring platform.

[0089] In some embodiments, steps 601 to 605 further include: if the unit driving distance calculated by the fourth preset number of consecutive bars is not within the fourth preset range, foolproof processing is required. The foolproof processing includes: when the unit driving distance calculated by the corresponding GPS latitude and longitude information in the NMEA information for the fourth preset number of consecutive bars is not within the fourth preset range, the GPS trajectory data parsed from the last NMEA information in the fourth preset number of bars is reported to the GPS monitoring platform.

[0090] The embodiment of the present invention further provides a terminal device, the terminal device includes a memory, a processor, and the terminal device is connected to a GPS receiver. The memory stores program instructions, and the program instructions are used for the processor to call and execute; the GPS receiver can be used to receive satellite signals and convert them into NMEA information. When the terminal device is an OBD terminal device, the terminal device is also connected to a gsensor acceleration sensor.

[0091] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by instructing the relevant hardware through program instructions, and the program instructions are stored in the memory of the terminal device and executed after being called by the processor, thereby completing all or part of the steps in the various methods of the above-mentioned embodiments.

[0092] The above description is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application; in the absence of conflict, the embodiments of the present application and the features in the embodiments can be combined with each other. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A GPS data processing method, applied to a terminal device, characterized in that: The method comprises the steps of: Determining whether the terminal device is in a stationary state; After determining that the terminal device is in the stationary state, filtering out NMEA information in the GPS receiver in the terminal device when the terminal device is in the stationary state; The method further comprises the steps of: determining whether the terminal device is in a valid positioning state; Before determining whether the terminal device is in the stationary state, the method further includes: determining that the terminal device is in the positioning effective state; The determining whether the terminal device is in a valid positioning state includes: According to the NMEA information, determining whether the terminal device is in a state where the positioning is valid; The determining, according to the NMEA information, whether the terminal device is in the positioning valid state includes: If the NMEA information contains PDOP but does not contain stdLat and stdLon, the value of the PDOP is determined, wherein the PDOP is a comprehensive positioning factor, the stdLat is the standard deviation of the GPS receiver's latitude error, and the stdLon is the standard deviation of the GPS receiver's longitude error; If the value of the PDOP is within a second preset range, determining whether a second preset number of consecutive PDOP values ​​are within the second preset range; If the values ​​of the PDOP for the second preset number of consecutive times are all within the second preset range, starting from the time when the next NMEA message of the second preset number of consecutive times is received, it is determined that the terminal device is in the valid positioning state, and at the same time, the GPS track data parsed from the next NMEA message of the second preset number of consecutive times is trusted and reported to the GPS monitoring platform; if the values ​​of the PDOP for the second preset number of consecutive times are not all within the second preset range, it is determined that the terminal device is not in the valid positioning state; If the PDOP value is within a third preset range, determining whether a third preset number of consecutive PDOP values ​​are within the third preset range; If the values ​​of the PDOP for the third preset number of consecutive bars are all within the third preset range, starting from the time when the next NMEA message of the third preset number of bars is received, it is determined that the terminal device is in the valid positioning state, and at the same time, the GPS track data parsed from the next NMEA message of the third preset number of bars is trusted and reported to the GPS monitoring platform; if the values ​​of the PDOP for the third preset number of consecutive bars are not all within the third preset range, it is determined that the terminal device is not in the valid positioning state; If the value of the PDOP is neither within the second preset range nor within the third preset range, it is determined that the terminal device is not in the positioning valid state.

2. The GPS data processing method according to claim 1, characterized in that: The determining, according to the NMEA information, whether the terminal device is in the positioning valid state further includes: If the NMEA information includes the stdLat and the stdLon, STD is calculated by using the stdLat and the stdLon, where the STD is a standard value of the comprehensive error of the latitude and longitude of the GPS receiver; Determining whether a first preset number of consecutive STD values ​​are within a first preset range; If the STD for the first preset number of bars is continuously within the first preset range, it is determined that the terminal device is in the valid positioning state, and the GPS track data parsed from the last NMEA information in the first preset number of bars is trusted and reported to the GPS monitoring platform; if the STD for the first preset number of bars is not continuously within the first preset range, it is determined that the terminal device is not in the valid positioning state.

3. The GPS data processing method according to claim 1, characterized in that: The determining whether the terminal device is in a stationary state includes: Whether the terminal device is in the stationary state is determined according to the data information of the terminal device itself.

4. The GPS data processing method according to claim 3, characterized in that: When the terminal device is a terminal device with an OBD system, the data information of the terminal device itself includes: the acceleration of the x-axis, y-axis, and z-axis in the gsensor acceleration sensor; the bus speed of the OBD system; Wherein, the gsensor acceleration sensor is a part of the terminal device and is installed on the terminal device; The determining, based on the data information of the terminal device itself, whether the terminal device is in the stationary state includes: When the terminal device is the terminal device having an OBD system, the determining whether the terminal device is in the stationary state includes: (1) Determine whether the terminal device is in a stationary state according to data from the gsensor acceleration sensor; Calculate the motion noise value of the terminal device according to the acceleration of the x-axis, the y-axis, and the z-axis in the gsensor acceleration sensor; Determining whether the motion noise value of the terminal device is less than or equal to the stationary noise value when the terminal device is stationary; If the motion noise value is less than or equal to the static noise value, it is determined that the terminal device is in the static state; Among them, the stationary noise value is (2) determining whether the terminal device is in a stationary state according to the bus speed of the terminal device; Determine whether the bus speed is 0; If the bus speed is 0, determining that the terminal device is in the stationary state; If the motion noise value is greater than the static noise value and the bus speed is not 0, it is determined that the terminal device is not in the static state.

5. The GPS data processing method according to claim 4, characterized in that: The calculating the motion noise value of the terminal device according to the acceleration of the x-axis, the y-axis, and the z-axis in the gsensor acceleration sensor includes: (1) Setting the sampling rate of the gsensor acceleration sensor to 100 Hz; (2) Record 100 groups of corresponding x-axis, y-axis, and z-axis accelerations acquired by the gsensor acceleration sensor within one second as (x1, y1, z1), (x2, y2, z2), ..., (x100, y100, z100), respectively; (3) calculating the corresponding total acceleration of each group of the corresponding x-axis, y-axis, and z-axis accelerations acquired by the gsensor acceleration sensor within one second by using the first calculation method, and recording the corresponding total accelerations as a1, a2, ..., a100 respectively; (4) filtering the a1, a2, ..., a100 respectively, and averaging the 100 values ​​after filtering, and recording the average as A; (5) Subtract the a1, a2, ..., a100 from A and calculate their absolute values, and record the calculation results as Aa1, Aa2, ..., Aa100; (6) Taking square roots of Aa1, Aa2, ..., Aa100 respectively, and then accumulating them, and then dividing the accumulated result by 100, the obtained value is the motion noise value; Wherein, the first calculation method is: Among them, x n ,y n 、z n are the accelerations of the nth group of x-axis, y-axis, and z-axis, respectively, n is the total acceleration of the nth group, where n is a natural number from 1 to 100.

6. The GPS data processing method according to claim 1, further characterized in that: After determining that the terminal device is in the positioning valid state, the method further includes: The unit driving distance is calculated by the GPS longitude and latitude information in the NMEA information, and the unit driving distance is the absolute value of the difference between the change of the GPS longitude and latitude information between the previous second and the current second; if the unit driving distance is not within the fourth preset range, the current NMEA information is filtered out.

7. The GPS data processing method according to claim 6, further characterized in that: If the unit driving distance calculated for a fourth preset number of consecutive times is not within the fourth preset range, then foolproof processing is performed; The fool-proofing process includes: when the unit driving distances calculated through the corresponding GPS latitude and longitude information in the NMEA information for the fourth preset number of consecutive bars are not within the fourth preset range, the last NMEA information in the fourth preset number of bars will not be filtered out, and the GPS trajectory data parsed from the last NMEA information in the fourth preset number of bars will be trusted and reported to the GPS monitoring platform.

8. A terminal device, characterized in that: It includes a memory, a processor, and a GPS receiver, wherein the GPS receiver is used to receive satellite signals and convert them into NMEA information, and the memory stores program instructions, which are used for the processor to call and execute the method according to any one of claims 1 to 7 to process the NMEA information.

9. The terminal device according to claim 8, further characterized in that: The functions of the terminal device include a GPS positioning function, and the NMEA information of the terminal device is processed using the method described in any one of claims 1-2.

Citation Information

Patent Citations

  • Method for rectifying GPS framing signal offset of GPS terminal apparatus

    CN101101328A

  • Global positioning system navigation device and positioning method thereof

    CN101533084A

  • Method for uploading positioning data of vehicles

    CN102129078A

  • Golf cart navigation system based on acceleration transducer

    CN102141629A

  • Method for filtering ineffective drift signal of global positioning system (GPS) equipment

    CN102183773A