A method for saving GPS data
A GPS data and storage method technology, applied in the direction of electrical digital data processing, special data processing applications, instruments, etc., can solve the problem of high concurrent and large data volume access of GPS data, achieve cost reduction, improve writing performance, The effect of improving storage performance
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0046] Such as figure 1 As shown, this example provides a method for saving GPS data, including the following steps:
[0047] In the initialization step, after the GPS data file is initialized, when a data write request is received, first judge whether there is an index, if there is no index, jump to the index upper limit judgment step, if there is an index, jump to the last data according to the index block, and enter the data block judgment step;
[0048] Index upper limit judging step, judging whether the index upper limit has been reached, if so, returning the write failure information, otherwise jumping to the step of creating a new data block;
[0049] Create a new data block step, create a new data block, and write the data to the blank area, create and update the index, and return the write success message;
[0050] And, the data block judging step is to judge whether the current data block is full, if it is not full, then directly write the data to the nearest blank...
Embodiment 2
[0058] On the basis of embodiment 1, the GPS data file described in this example also includes an auxiliary file, and the auxiliary file is used to record the last piece of data, and when each vehicle reports GPS data, the latest reported data is refreshed to all In the auxiliary file mentioned above, it is used to provide the latest location query. This example provides an auxiliary file, which is specially used to save the latest piece of GPS data of each vehicle, which can greatly improve the positioning speed of GPS to quickly read the latest piece of GPS data.
[0059] In the prior art, it is impossible to quickly extract the last GPS data of a certain batch of devices. On the contrary, the auxiliary file in this example includes an auxiliary reserved area, an auxiliary index area and an auxiliary data area, the auxiliary reserved area is set in front of the auxiliary index area, and the auxiliary data area is set behind the auxiliary index area.
[0060] The data file n...
Embodiment 3
[0064] Such as Figure 8 Shown, on the basis of embodiment 1 or embodiment 2, the reading process of the GPS data file of this example comprises the following steps:
[0065] The call step is to call the GPS data file, query the index, and judge whether there is index data, if it does not exist, return an empty data unit and end, if it exists, jump to the step of reading the data block;
[0066] Read the data block step, jump to the data block pointed by the index, read the data block, and then jump to the data block judgment step;
[0067] And, the data block judging step is to judge whether there is a next data block, if it exists, then return to the data block judging step after reading the next data block pointed to, if it does not exist, then filter the read data, and return the data within the limited time period end after the data.
[0068] This example also includes a writing interface for GPS data. The workflow for writing a piece of GPS data to the storage system t...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com