Data storage method, device and application thereof
A data storage device and data storage technology, applied in memory systems, electrical digital data processing, medical care informatics, etc., can solve the asymmetry of stored data time information, the inability to achieve accurate time synchronization and display of data, and the inability to efficiently process data Time-sharing acquisition and other issues to achieve the effect of fast query, convenient query, and convenient time alignment
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0038] Such as Figure 1-3 As shown, the present invention includes a data storage method, comprising the steps of:
[0039] Step S1: Calibrate the start time msaveFileTime of each data packet received; because data packets are prone to loss of data packets during transmission, the start time msaveFileTime assigned by the system to each data packet is not the actual corresponding time of the data packet , so the start time msaveFileTime of each data packet is calibrated; so that the start time msaveFileTime information attached to each data packet corresponds to the actual time.
[0040] Before completing step S1, the data source sends data packets to the receiving end at regular intervals, and the receiving end parses the data packets, records the start time msaveFileTime of each data packet and mlastSaveFileTime when the data packet was last written into the cached data; then initialize; define Start to save the time flag isStartRecordTime, the default is true; judge whethe...
Embodiment 2
[0047] This embodiment is preferably as follows on the basis of Embodiment 1: the method for calibrating the start time msaveFileTime of each data packet is as follows:
[0048] Step S11: If the calibration data package is real-time data, the start time msaveFileTime is directly calibrated to the system time;
[0049] Step S12: If the calibration data packet is cached data, the time is calibrated according to the time offset carried by the front end of the small linked list on the large linked list. Whether the data is real-time data or buffered data is included at the end of each data packet, and it is only necessary to read the tail unit of the data packet to know whether the data packet is a real-time data packet or a buffered data packet.
[0050] The time offset carried by the front end of the small linked list is calculated according to the packet sequence number carried by the data packet. The start saving time msaveFileTime of each data packet after caching data calibr...
Embodiment 3
[0069] data storage devices, including
[0070] Time calibration module: used to calibrate the start time msaveFileTime of each data packet received;
[0071] Storage module: used to store each data packet in the form of one or more small linked lists nested within a large linked list after each data packet corresponds to the accompanying time information correctly.
[0072] When calibrating real-time data packets in the time calibration module, the start time msaveFileTime is directly calibrated to the system time;
[0073] The start time msaveFileTime of the data packet for calibrating cached data in the time calibration module is to calibrate the time according to the time offset carried by the front end of the small linked list on the large linked list.
[0074] The time offset carried by the front end of the small linked list is calculated according to the packet sequence number carried by the data packet. The start saving time msaveFileTime of each data packet after cac...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


