Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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

Active Publication Date: 2018-03-30
SHENZHEN DETRAN TECH +1
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The technical problem to be solved by the present invention is to provide a GPS data storage method with high performance and high storage space utilization rate, and then solve the problems of high concurrency and large data volume access of GPS data in the Internet of Vehicles system

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method for saving GPS data
  • A method for saving GPS data
  • A method for saving GPS data

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present invention provides a method for storing GPS data, including the following steps: an initializing step, initializing a GPS data file, determining whether an index exists when receiving a write request, if not, skipping to an index upper limit determining step, if so, skipping to the last data block according to the index, and entering a data block determining step; the index upper limit determining step, determining whether the index upper limit is reached, if so, returning write failure information, if not, skipping to a newly building data block step; the newly building data block step, newly building a data block and writing the data in to an empty space, newly building and updating the index, and returning write success information; and, the data block determining step, determining whether the current data block is full, if not, directly writing data to the empty space, if so, newly building a data block and updating the index, and writing data to the newly built data block and updating the index of the previous data block. The present invention can greatly increase the GPS data peak concurrent write performance, and enormously increase usage rate of the disk space.

Description

technical field [0001] The invention relates to a data storage method, in particular to a GPS data storage method. Background technique [0002] The Internet of Vehicles system is used to provide services such as monitoring and dispatching of vehicles, and the basis of these services lies in the storage, calculation and processing of vehicle GPS data. GPS data has two characteristics: large concurrency and large data volume. A typical GPS data , generally includes the following fields: longitude, latitude, speed, time, and direction; taking a large and medium-sized GPS system as an example, if 2W vehicles are connected, a GPS data packet will be reported every 5 seconds on average, and the historical data of the last year will be saved. Each car generates about 17,000 pieces of data per day, about 500,000 pieces per month, and 6 million pieces per year; 2W vehicles generate 120 billion pieces of data a year. [0003] In traditional software, database systems are generally u...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F17/30
CPCG06F16/2272
Inventor 黄齐雄
Owner SHENZHEN DETRAN TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products