CN106559158B - A kind of mobile device data exchange method based on timestamp - Google Patents

A kind of mobile device data exchange method based on timestamp Download PDF

Info

Publication number
CN106559158B
CN106559158B CN201510634081.5A CN201510634081A CN106559158B CN 106559158 B CN106559158 B CN 106559158B CN 201510634081 A CN201510634081 A CN 201510634081A CN 106559158 B CN106559158 B CN 106559158B
Authority
CN
China
Prior art keywords
data
time
server
mobile device
timestamp
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510634081.5A
Other languages
Chinese (zh)
Other versions
CN106559158A (en
Inventor
朱亮
彭林
吴军民
林为民
韩海韵
黄涛
周鹏
鲍兴川
王刚
徐敏
侯战胜
于海
侯功
王鹤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
State Grid Corp of China SGCC
Zhenjiang Power Supply Co of Jiangsu Electric Power Co
Smart Grid Research Institute of SGCC
Original Assignee
State Grid Corp of China SGCC
Zhenjiang Power Supply Co of Jiangsu Electric Power Co
Smart Grid Research Institute of SGCC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by State Grid Corp of China SGCC, Zhenjiang Power Supply Co of Jiangsu Electric Power Co, Smart Grid Research Institute of SGCC filed Critical State Grid Corp of China SGCC
Priority to CN201510634081.5A priority Critical patent/CN106559158B/en
Publication of CN106559158A publication Critical patent/CN106559158A/en
Application granted granted Critical
Publication of CN106559158B publication Critical patent/CN106559158B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention provides a kind of mobile device data exchange method based on timestamp, and the exchange method includes: that the data element that (1) is mobile device input increases timestamp;(2) when carrying out data interaction between mobile device and server or mobile device and mobile device, time synchronizing is carried out, and be modified to mobile device clock and data elementary time stamp, then carried out data transmission;(3) storage and reading of data element are carried out according to timestamp.It is added timestamp by the input data to mobile device, between mobile device and server or mobile device, it can be according to timestamp, carry out the orderly storage and reading of data, it solves the problems, such as that the data interaction between mobile device is chaotic, is moved easily the mutual calibration and further processing of device data.

Description

A kind of mobile device data exchange method based on timestamp
Technical field
The present invention relates to mobile message fields, and in particular to a kind of mobile device data exchange method based on timestamp.
Background technique
With the development of mobile technology, more and more mobile devices are used in operation system at present, each movement Equipment is owned by a variety of data input ports, such as: voice, video, image and other various sensing datas form a large amount of Data, due to the characteristic of its movement, mobile device can not carry out time calibration and data interaction in real time, therefore in equipment Between carry out data interaction when, can usually generate data corruption.The problem of being primarily present is as follows: (1) sensor of mobile device compared with It is more, therefore the data generated are more many and diverse, it is difficult to orderly storage.(2) mobile device is not able to maintain due to the mobility of itself Real-time online, time can generate error with server, and carrying out data interaction can lead to the problem of.(3) data are carried out between mobile device Lack unified data interaction foundation when interaction, data time, data type have differences.
Summary of the invention
To overcome above-mentioned the deficiencies in the prior art, the present invention provides a kind of mobile device data interaction side based on timestamp Method, comprising: when initiating equipment and server, which access the same network, carries out data interaction, its data element is in server It is interior to be stored according to timestamp information.When target device and server access consolidated network carry out data interaction, read Data element is read out according to timestamp.When accessing the same network data exchange between mobile device, counted according to timestamp According to the storage and reading of member.
Realize solution used by above-mentioned purpose are as follows:
A kind of mobile device data exchange method based on timestamp, the exchange method include: that (1) is that mobile device is defeated The data element entered increases timestamp;
(2) when carrying out data interaction between mobile device and server or mobile device and mobile device, the time is carried out Synchronization process, and mobile device clock and data elementary time stamp are modified, then carry out data transmission;
(3) storage and reading of data element are carried out according to timestamp.
Preferably, the timestamp includes data summarization, data generation time and digital signature.
Preferably, the mobile device includes initiating equipment and target device.
Further, specific step is as follows for the initiating equipment and server access consolidated network progress data interaction:
(1) initiating equipment initiates data transfer request to server;
(2) server verifies solicited message, authenticating device, returns to confirmation message;
(3) clock time of initiating equipment sending device;
(4) it server receiving device clock time and is verified with the server clock time, generates time difference information, and It is sent to mobile device;
(5) initiating equipment receives server time difference information, modifies equipment clock according to the time difference, and modifies last logical Temporal information in the timestamp for the data element that letter generates between communicating with this sends data transfer request and equipment time;
(6) server receives initiating equipment data transfer request, and checking time, and time consistency is then sent to initiating equipment Data transmission confirmation order, repeats step (4) (5) if Time Inconsistency, until time consistency;
(7) initiating equipment receives data transfer request, transmission data element to server;
(8) server receives data element, the data summarization of the timestamp according to data element, stores same class data, and root Sequential storage is carried out according to the time of timestamp;
(9) initiating equipment sends ending request after data end of transmission;
(10) server receives ending request, returns to confirmation message.
Further, specific step is as follows for the target device and server access consolidated network progress data interaction:
(1) server sends data transfer request to target device;
(2) target device receives server transport request, verifies server, and sends data receiver request;
(3) server verifies solicited message, authenticating device, returns to confirmation message;
(4) clock time of target device sending device;
(5) server receives target device clock time and is verified with the server clock time, generates the time difference, and It is sent to equipment;
(6) target device receives server time difference information, modifies equipment clock according to the time difference, and modifies last logical Temporal information in the timestamp for the data element that letter generates between communicating with this sends data transfer request and equipment time;
(7) server receives target equipment data transmission request, and checking time, time consistency are then sent to target device Data transmission confirmation order, repeats step (4) (5) if Time Inconsistency, until time consistency;
(8) target device receives data transmission confirmation order, server transport data element to target device;
(9) target device receives data element, the data summarization of the timestamp according to data element, stores same class data, and Sequential storage is carried out according to the time of timestamp;
(10) server sends ending message after data end of transmission.
Further, the initiating equipment and target device access consolidated network carry out the specific steps of data interaction It is as follows:
(1) initiating equipment initiates data transfer request to target device;
(2) target device verifies solicited message, authenticating device, returns to confirmation message;
(3) clock time of initiating equipment sending device;
(4) it target device receiving device clock time and is verified with target device clock time, generates the time difference, and It is sent to initiating equipment;
(5) initiating equipment receives target device time difference information, modifies equipment clock according to the time difference, and modify the last time Temporal information in the timestamp for the data element that communication generates between communicating with this sends data transfer request and equipment time;
(6) target device receives initiating equipment data transfer request, and checking time, and time consistency is then sent out to initiating equipment Data transmission confirmation order is sent, step (4) (5) are repeated if Time Inconsistency, until time consistency;
(7) initiating equipment receives data transfer request, transmission data element to target device;
(8) target device receives data element, the data summarization of the timestamp according to data element, stores same class data, and It is different according to the time of timestamp, carry out sequential storage;
(9) initiating equipment sends ending request after data end of transmission;
(10) target device receives ending request, returns to ending message.
Compared with the latest prior art, technical solution provided by the invention has following excellent fruit:
It is added timestamp by the input data to mobile device, it, can between mobile device and server or mobile device According to timestamp, the orderly storage and reading of data are carried out, solves the problems, such as that the data interaction between mobile device is chaotic, it is convenient The mutual calibration and further processing of mobile device data.
Detailed description of the invention
Fig. 1 is that device data local data member of the invention generates schematic diagram;
Fig. 2 is that initiating equipment of the invention interacts schematic diagram with server data;
Fig. 3 is that target device of the invention interacts schematic diagram with server data;
Fig. 4 is equipment room data interaction schematic diagram of the invention.
Specific embodiment
A specific embodiment of the invention is described in further detail with reference to the accompanying drawing.
Mobile device data exchange method based on timestamp, this method are related to initiating equipment, target device, time Stamp, data element, input port, delivery outlet, server etc..
Initiating equipment is the equipment for initiating data interaction, when each data element by input port input adds unique Between stab, as shown in Figure 1.Timestamp includes: the data summarization that (1) needs to add timestamp, to carry out data element classification;(2) it is based on The clock of mobile device itself, the time that logging data generates, and time synchronization information when can be transmitted according to device data, It modifies;(3) digital security signature guarantees data transmission security.
Initiating equipment and the signal that server access consolidated network carries out data interaction are as shown in Figure 2, the specific steps are as follows:
(1) initiating equipment initiates data transfer request to server.
(2) server verifies solicited message, authenticating device, returns to confirmation message.
(3) clock time of initiating equipment sending device.
(4) it server receiving device clock time and is verified with the server clock time, generates the time difference, and send To mobile device.
(5) initiating equipment receives server time difference information, modifies equipment clock according to the time difference, and modifies last logical Temporal information in the timestamp for the data element that letter generates between communicating with this sends data transfer request and equipment time.
(6) server receives initiating equipment data transfer request, and checking time, and time consistency is then sent to initiating equipment Data transmission confirmation order, repeats step (4) (5) if Time Inconsistency, until time consistency.
(7) initiating equipment receives data transfer request, transmission data element to server.
(8) server receives data element, the data summarization of the timestamp according to data element, stores same class data, and root It is different according to the time of timestamp, carry out sequential storage.
(9) initiating equipment sends ending request after data end of transmission.
(10) server receives ending request, returns to confirmation message.
Target device and the signal that server access consolidated network carries out data interaction are as shown in Figure 3, the specific steps are as follows:
(1) server sends data transfer request to target device.
(2) target device receives server transport request, verifies server, and sends data receiver request.
(3) server verifies solicited message, authenticating device, returns to confirmation message.
(4) clock time of target device sending device.
(5) server receives target device clock time and is verified with the server clock time, generates the time difference, and It is sent to equipment.
(6) target device receives server time difference information, modifies equipment clock according to the time difference, and modifies last logical Temporal information in the timestamp for the data element that letter generates between communicating with this sends data transfer request and equipment time.
(7) server receives target equipment data transmission request, and checking time, time consistency are then sent to target device Data transmission confirmation order, repeats step (4) (5) if Time Inconsistency, until time consistency.
(8) target device receives data transmission confirmation order, server transport data element to target device.
(9) target device receives data element, the data summarization of the timestamp according to data element, stores same class data, and It is different according to the time of timestamp, carry out sequential storage.
(10) server sends ending message after data end of transmission.
Initiating equipment and target device access consolidated network carry out data interaction signal as shown in figure 4, specific steps such as Under:
(1) initiating equipment initiates data transfer request to target device.
(2) target device verifies solicited message, authenticating device, returns to confirmation message.
(3) clock time of initiating equipment sending device.
(4) it target device receiving device clock time and is verified with target device clock time, generates the time difference, and It is sent to initiating equipment.
(5) initiating equipment receives target device time difference information, modifies equipment clock according to the time difference, and modify the last time Temporal information in the timestamp for the data element that communication generates between communicating with this sends data transfer request and equipment time.
(6) target device receives initiating equipment data transfer request, and checking time, and time consistency is then sent out to initiating equipment Data transmission confirmation order is sent, step (4) (5) are repeated if Time Inconsistency, until time consistency.
(7) initiating equipment receives data transfer request, transmission data element to target device.
(8) target device receives data element, the data summarization of the timestamp according to data element, stores same class data, and It is different according to the time of timestamp, carry out sequential storage.
(9) initiating equipment sends ending request after data end of transmission.
(10) target device receives ending request, returns to ending message.
Finally it should be noted that: above embodiments are merely to illustrate the technical solution of the application rather than to its protection scopes Limitation, although the application is described in detail referring to above-described embodiment, those of ordinary skill in the art should Understand: those skilled in the art read the specific embodiment of application can still be carried out after the application various changes, modification or Person's equivalent replacement, but these changes, modification or equivalent replacement, are applying within pending claims.

Claims (4)

1. a kind of mobile device data exchange method based on timestamp, which is characterized in that the exchange method includes: that (1) is The data element of mobile device input increases timestamp;
(2) synchronous progress data interaction and time-triggered protocol between mobile device and server or mobile device and mobile device, And data are transmitted after correcting mobile device clock and data elementary time stamp;
(3) according to timestamp, storage or reading data element;
The mobile device includes initiating equipment and target device;
The initiating equipment and server access consolidated network carry out data interaction, and specific step is as follows:
(1) initiating equipment sends data transfer request to server;
(2) server verifies solicited message, and authenticating device returns to confirmation message;
(3) clock time of initiating equipment sending device;
(4) it server receiving device clock time and is verified with the server clock time, generates time difference information, and send To mobile device;
(5) initiating equipment receives server time difference information, modifies equipment clock according to the time difference, and modify last communication with Temporal information in the timestamp of the data element generated between this communication, sends data transfer request and equipment time;
(6) server receives initiating equipment data transfer request, and checking time, and time consistency then sends data to initiating equipment Transmission confirmation order, repeats step (4) (5) if Time Inconsistency, until time consistency;
(7) initiating equipment receives data transfer request, transmission data element to server;
(8) server receive data element, according to data element timestamp data summarization, store same class data, and according to when Between time for stabbing carry out sequential storage;
(9) initiating equipment sends ending request after data end of transmission;
(10) server receives ending request, returns to confirmation message.
2. exchange method according to claim 1, which is characterized in that the timestamp includes data summarization, data generation Time and digital signature.
3. a kind of mobile device data exchange method based on timestamp, which is characterized in that the exchange method includes: that (1) is The data element of mobile device input increases timestamp;
(2) synchronous progress data interaction and time-triggered protocol between mobile device and server or mobile device and mobile device, And data are transmitted after correcting mobile device clock and data elementary time stamp;
(3) according to timestamp, storage or reading data element;
The mobile device includes initiating equipment and target device;
The target device and server access consolidated network carry out data interaction, and specific step is as follows:
(1) server sends data transfer request to target device;
(2) target device receives server transport request, verifies server, and sends data receiver request;
(3) server verifies solicited message, and authenticating device returns to confirmation message;
(4) clock time of target device sending device;
(5) server receives target device clock time and is verified with the server clock time, generates time difference information, and It is sent to target device;
(6) target device receives server time difference information, modifies equipment clock according to the time difference, while modifying last communication Temporal information in the timestamp of the data element generated between communicating with this sends data transfer request and equipment time;
(7) server receives target equipment data transmission request, and checking time, time consistency then send data to target device Transmission confirmation order, repeats step (4) (5) if Time Inconsistency, until time consistency;
(8) target device receives data transmission confirmation order, server transport data element to target device;
(9) target device receives data element, the data summarization of the timestamp according to data element, storage same class data, and according to The time of timestamp carries out sequential storage;
(10) server sends ending message after data end of transmission.
4. a kind of mobile device data exchange method based on timestamp, which is characterized in that the exchange method includes: that (1) is The data element of mobile device input increases timestamp;
(2) synchronous progress data interaction and time-triggered protocol between mobile device and server or mobile device and mobile device, And data are transmitted after correcting mobile device clock and data elementary time stamp;
(3) according to timestamp, storage or reading data element;
The mobile device includes initiating equipment and target device;
The initiating equipment and target device access consolidated network carry out data interaction, and specific step is as follows:
(1) initiating equipment sends data transfer request to target device;
(2) target device verifies solicited message, authenticating device, returns to confirmation message;
(3) clock time of initiating equipment sending device;
(4) it target device receiving device clock time and is verified with target device clock time, generates time difference information, and It is sent to initiating equipment;
(5) initiating equipment receives target device time difference information, modifies equipment clock according to the time difference, and modifies upper last logical Temporal information in the timestamp for the data element that letter generates between communicating with this sends data transfer request and equipment time;
(6) target device receives initiating equipment data transfer request, and checking time, and time consistency then sends number to initiating equipment According to transmission confirmation order, step (4) (5) are repeated if Time Inconsistency, until time consistency;
(7) initiating equipment receives data transfer request, transmission data element to target device;
(8) target device receives data element, the data summarization of the timestamp according to data element, storage same class data, and according to The time of timestamp carries out sequential storage;
(9) initiating equipment sends ending request after data end of transmission;
(10) target device receives ending request, returns to ending message.
CN201510634081.5A 2015-09-29 2015-09-29 A kind of mobile device data exchange method based on timestamp Active CN106559158B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510634081.5A CN106559158B (en) 2015-09-29 2015-09-29 A kind of mobile device data exchange method based on timestamp

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510634081.5A CN106559158B (en) 2015-09-29 2015-09-29 A kind of mobile device data exchange method based on timestamp

Publications (2)

Publication Number Publication Date
CN106559158A CN106559158A (en) 2017-04-05
CN106559158B true CN106559158B (en) 2018-12-04

Family

ID=58415966

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510634081.5A Active CN106559158B (en) 2015-09-29 2015-09-29 A kind of mobile device data exchange method based on timestamp

Country Status (1)

Country Link
CN (1) CN106559158B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013007145A1 (en) * 2011-07-08 2013-01-17 中兴通讯股份有限公司 Multimedia data transmission method and system
CN103199980A (en) * 2013-04-07 2013-07-10 浙江中控技术股份有限公司 Synchronous control method, synchronous control device and synchronous control system
CN103957258A (en) * 2014-04-30 2014-07-30 中国工商银行股份有限公司 Trans-regional data communication method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013007145A1 (en) * 2011-07-08 2013-01-17 中兴通讯股份有限公司 Multimedia data transmission method and system
CN103199980A (en) * 2013-04-07 2013-07-10 浙江中控技术股份有限公司 Synchronous control method, synchronous control device and synchronous control system
CN103957258A (en) * 2014-04-30 2014-07-30 中国工商银行股份有限公司 Trans-regional data communication method and system

Also Published As

Publication number Publication date
CN106559158A (en) 2017-04-05

Similar Documents

Publication Publication Date Title
CN105049425B (en) A kind of physical isolation transmission method based on Quick Response Code
CN106209948B (en) A kind of data push method and device
CN102724310B (en) A kind of method that realizes cloud search by mobile terminal
US10021182B2 (en) Method and apparatus for data synchronization
ES2954995T3 (en) Method and system to synchronize the writing path of multiple clients
CN103916482A (en) Data synchronous transmission method based on sqlite
CN104580454A (en) Data synchronizing method, device and system
US20100071008A1 (en) System and method for transmitting an animated figure
CN108833578B (en) Method and related equipment for duplex communication based on FIFO named pipeline
CN103685554A (en) Upgrading method, device and system
CN101547184A (en) Method and device for authenticating data block transmitted in network
MX2015011047A (en) Method for preventing repeated use of digital packet data.
CN107911466A (en) A kind of association method under multi-layer framework
CN109547510A (en) A kind of off-line system method of data synchronization
CN105610953A (en) Distributed data synchronizing system and method
CN103763380B (en) A kind of method and system of synchronous demonstrating data
CN106330465A (en) Processing method, server and system for distributed timestamp
CN108024243A (en) A kind of eSIM is caught in Network Communication method and its system
CN105554750B (en) A kind of transmission method and terminal of data frame
CN113114665A (en) Data transmission method and device, storage medium and electronic device
CN107925894A (en) System and method for channel safety
EP3725079B1 (en) Securing digital data transmission in a communication network
CN106559158B (en) A kind of mobile device data exchange method based on timestamp
CN107104919A (en) The processing method of firewall box, SCTP SCTP packet
CN106068500A (en) There is the data transmission method of the robustness of improvement, and for performing one group of equipment of the method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant