CN106559158A - 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
CN106559158A
CN106559158A CN201510634081.5A CN201510634081A CN106559158A CN 106559158 A CN106559158 A CN 106559158A CN 201510634081 A CN201510634081 A CN 201510634081A CN 106559158 A CN106559158 A CN 106559158A
Authority
CN
China
Prior art keywords
data
time
server
equipment
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.)
Granted
Application number
CN201510634081.5A
Other languages
Chinese (zh)
Other versions
CN106559158B (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:(1) data element for mobile device input increases timestamp;(2), when data interaction is carried out between mobile device and server or mobile device and mobile device, carry out time synchronizing, 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.Added timestamp by the input data to mobile device, between mobile device and server or mobile device, can be according to timestamp, carry out the orderly storage and reading of data, solve the problems, such as that the data interaction between mobile device is chaotic, be moved easily the mutual calibration and further process of device data.

Description

A kind of mobile device data exchange method based on timestamp
Technical field
The present invention relates to mobile message field, and in particular to a kind of mobile device data based on timestamp is interacted Method.
Background technology
With the development of mobile technology, increasing mobile device is used in operation system at present, each Individual mobile device is owned by various data input ports, such as:Voice, video, image and other various biographies Sense data, define substantial amounts of data, and due to the characteristic which moves, mobile device can not enter in real time Row time calibration and data interaction, therefore when equipment room carries out data interaction, can usually produce data corruption. The problem being primarily present is as follows:(1) sensor of mobile device is more, therefore the data for producing are more numerous and diverse, It is difficult to storage in order.(2) mobile device can not keep real-time online, time due to the mobility of itself Error can be produced with server, carry out data interaction and can produce problem.(3) data friendship is carried out between mobile device Lack unified data interaction foundation when mutually, its data time, data type have differences.
The content of the invention
To overcome above-mentioned the deficiencies in the prior art, the present invention to provide a kind of mobile device data based on timestamp and hand over Mutual method, including:When initiating equipment and server access same network carries out data interaction, it Data element stored according to timestamp information in server.Target device accesses same net with server When network carries out data interaction, read data element and be read out according to timestamp.Access between mobile device same During one network data exchange, the storage and reading of data element are carried out according to timestamp.
Realize solution that above-mentioned purpose adopted for:
A kind of mobile device data exchange method based on timestamp, the exchange method include:(1) it is movement The data element of equipment input increases timestamp;
(2), when carrying out data interaction between mobile device and server or mobile device and mobile device, enter Row time synchronizing, 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 genaration time and digital signature.
Preferably, the mobile device includes initiating equipment and target device.
Further, the concrete steps that the initiating equipment carries out data interaction with server access consolidated network are such as Under:
(1) initiating equipment initiates data transfer request to server;
(2) server is verified to solicited message, authenticating device, returns confirmation;
(3) initiating equipment sends the clock time of equipment;
(4) server receiving device clock time verified with the server clock time, generated time difference Information, and it is sent to mobile device;
(5) initiating equipment the reception server time difference information, changes equipment clock according to time difference, and changes Temporal information in the timestamp of the data element that last communication is generated between being communicated with this, sending data transfer please Ask and the equipment time;
(6) server receives initiating equipment data transfer request, and checking time, and time consistency is then to initiation Equipment sending data transmission confirms order, repeat step (4) (5) if Time Inconsistency, until the time one Cause;
(7) server is arrived in initiating equipment receiving data transmission request, transmission data unit;
(8) server receiving data unit, according to the data summarization of the timestamp of data element, stores same class number According to, and sequential storage is carried out according to the time of timestamp;
(9) data transfer finishes rear initiating equipment and sends ending request;
(10) server receives ending request, returns confirmation.
Further, the concrete steps that the target device carries out data interaction with server access consolidated network are such as Under:
(1) server sends data transfer request to target device;
(2) target device the reception server transmission request, verifies server, and sends data receiver request;
(3) server is verified to solicited message, authenticating device, returns confirmation;
(4) target device sends the clock time of equipment;
(5) server is received target device clock time and is verified with the server clock time, during generation Between it is poor, and be sent to equipment;
(6) target device the reception server time difference information, changes equipment clock according to time difference, and changes Temporal information in the timestamp of the data element that last communication is generated between being communicated with this, sending data transfer please Ask and the equipment time;
(7) server receives target equipment data transmission request, and checking time, and time consistency is then to target Equipment sending data transmission confirms order, repeat step (4) (5) if Time Inconsistency, until the time one Cause;
(8) target device receiving data transmission confirms order, and server transmission data unit arrives target device;
(9) target device receiving data unit, according to the data summarization of the timestamp of data element, stores same class Data, and sequential storage is carried out according to the time of timestamp;
(10) data transfer finishes rear server and sends ending message.
Further, the initiating equipment accesses consolidated network with the target device and carries out the concrete of data interaction Step is as follows:
(1) initiating equipment initiates data transfer request to target device;
(2) target device is verified to solicited message, authenticating device, returns confirmation;
(3) initiating equipment sends the clock time of equipment;
(4) target device receiving device clock time verified with target device clock time, during generation Between it is poor, and be sent to initiating equipment;
(5) initiating equipment receives target device time difference information, changes equipment clock according to time difference, and repaiies Change temporal information in the timestamp of the data element generated between last communication is communicated with this, send data transfer Request and equipment time;
(6) target device receives initiating equipment data transfer request, and checking time, and time consistency is then to sending out Play equipment sending data transmission and confirm order, repeat step (4) (5) if Time Inconsistency, until the time Unanimously;
(7) target device is arrived in initiating equipment receiving data transmission request, transmission data unit;
(8) target device receiving data unit, according to the data summarization of the timestamp of data element, stores same class Data, and it is different according to the time of timestamp, carry out sequential storage;
(9) data transfer finishes rear initiating equipment and sends ending request;
(10) target device receives ending request, returns ending message.
With immediate prior art ratio, the present invention provide technical scheme there is following excellent fruit:
Added timestamp by the input data to mobile device, between mobile device and server or mobile device, The orderly storage and reading of data according to timestamp, can be carried out, the data interaction between mobile device is solved Chaotic problem, is moved easily the mutual calibration and further process of device data.
Description of the drawings
Fig. 1 is that the device data local data unit of the present invention generates schematic diagram;
Fig. 2 is that the initiating equipment of the present invention interacts schematic diagram with server data;
Fig. 3 is that the target device of the present invention interacts schematic diagram with server data;
Fig. 4 is the equipment room data interaction schematic diagram of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawings the specific embodiment of the present invention is described in further detail.
Based on the mobile device data exchange method of timestamp, the method be related to initiating equipment, target device, Timestamp, data element, input port, delivery outlet, server etc..
Initiating equipment is the equipment for initiating data interaction, is added through each data element of input port input unique Timestamp, as shown in Figure 1.Timestamp includes:(1) data summarization for adding timestamp is needed, to carry out Data element is classified;(2) clock based on mobile device itself, the time that logging data is generated, it is possible to root Time synchronization information when transmitting according to device data, modifies;(3) digital security signature, it is ensured that data Transmission safety.
Initiating equipment accesses consolidated network with server and carries out the signal of data interaction as shown in Fig. 2 concrete steps It is as follows:
(1) initiating equipment initiates data transfer request to server.
(2) server is verified to solicited message, authenticating device, returns confirmation.
(3) initiating equipment sends the clock time of equipment.
(4) server receiving device clock time verified with the server clock time, generated time difference, And it is sent to mobile device.
(5) initiating equipment the reception server time difference information, changes equipment clock according to time difference, and changes Temporal information in the timestamp of the data element that last communication is generated between being communicated with this, sending data transfer please Ask and the equipment time.
(6) server receives initiating equipment data transfer request, and checking time, and time consistency is then to initiation Equipment sending data transmission confirms order, repeat step (4) (5) if Time Inconsistency, until the time one Cause.
(7) server is arrived in initiating equipment receiving data transmission request, transmission data unit.
(8) server receiving data unit, according to the data summarization of the timestamp of data element, stores same class number According to, and it is different according to the time of timestamp, carry out sequential storage.
(9) data transfer finishes rear initiating equipment and sends ending request.
(10) server receives ending request, returns confirmation.
Target device accesses consolidated network with server and carries out the signal of data interaction as shown in figure 3, concrete steps It is as follows:
(1) server sends data transfer request to target device.
(2) target device the reception server transmission request, verifies server, and sends data receiver request.
(3) server is verified to solicited message, authenticating device, returns confirmation.
(4) target device sends the clock time of equipment.
(5) server is received target device clock time and is verified with the server clock time, during generation Between it is poor, and be sent to equipment.
(6) target device the reception server time difference information, changes equipment clock according to time difference, and changes Temporal information in the timestamp of the data element that last communication is generated between being communicated with this, sending data transfer please Ask and the equipment time.
(7) server receives target equipment data transmission request, and checking time, and time consistency is then to target Equipment sending data transmission confirms order, repeat step (4) (5) if Time Inconsistency, until the time one Cause.
(8) target device receiving data transmission confirms order, and server transmission data unit arrives target device.
(9) target device receiving data unit, according to the data summarization of the timestamp of data element, stores same class Data, and it is different according to the time of timestamp, carry out sequential storage.
(10) data transfer finishes rear server and sends ending message.
Initiating equipment accesses consolidated network with target device and carries out the signal of data interaction as shown in figure 4, concrete walk It is rapid as follows:
(1) initiating equipment initiates data transfer request to target device.
(2) target device is verified to solicited message, authenticating device, returns confirmation.
(3) initiating equipment sends the clock time of equipment.
(4) target device receiving device clock time verified with target device clock time, during generation Between it is poor, and be sent to initiating equipment.
(5) initiating equipment receives target device time difference information, changes equipment clock according to time difference, and repaiies Change temporal information in the timestamp of the data element generated between last communication is communicated with this, send data transfer Request and equipment time.
(6) target device receives initiating equipment data transfer request, and checking time, and time consistency is then to sending out Play equipment sending data transmission and confirm order, repeat step (4) (5) if Time Inconsistency, until the time Unanimously.
(7) target device is arrived in initiating equipment receiving data transmission request, transmission data unit.
(8) target device receiving data unit, according to the data summarization of the timestamp of data element, stores same class Data, and it is different according to the time of timestamp, carry out sequential storage.
(9) data transfer finishes rear initiating equipment and sends ending request.
(10) target device receives ending request, returns ending message.
Finally it should be noted that:Above example is merely to illustrate the technical scheme of the application rather than which is protected The restriction of scope, although being described in detail to the application with reference to above-described embodiment, art it is common Technical staff should be understood:Those skilled in the art still can be to the specific embodiment of application after reading the application A variety of changes, modification or equivalent, but these changes, modification or equivalent are carried out, in Shen Within claims that please be pending.

Claims (6)

1. a kind of mobile device data exchange method based on timestamp, it is characterised in that the exchange method Including:(1) data element for mobile device input increases timestamp;
(2) synchronously data interaction is carried out between mobile device and server or mobile device and mobile device And time-triggered protocol, and correct transmission data after mobile device clock and data elementary time stamp;
(3) according to timestamp, store or read data element.
2. exchange method according to claim 1, it is characterised in that the timestamp includes that data are plucked Will, data genaration time and digital signature.
3. exchange method according to claim 1, it is characterised in that the mobile device includes initiating Equipment and target device.
4. exchange method according to claim 3, it is characterised in that the initiating equipment and server Accessing consolidated network carries out comprising the following steps that for data interaction:
(1) initiating equipment sends data transfer request to server;
(2) server verification solicited message, authenticating device return confirmation;
(3) initiating equipment sends the clock time of equipment;
(4) server receiving device clock time verified with the server clock time, generated time difference Information, and it is sent to mobile device;
(5) initiating equipment the reception server time difference information, changes equipment clock according to time difference, and changes Temporal information in the timestamp of the data element that last communication is generated between being communicated 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 to initiation Equipment sending data transmission confirms order, repeat step (4) (5) if Time Inconsistency, until the time one Cause;
(7) server is arrived in initiating equipment receiving data transmission request, transmission data unit;
(8) server receiving data unit, according to the data summarization of the timestamp of data element, stores same class number According to, and sequential storage is carried out according to the time of timestamp;
(9) data transfer finishes rear initiating equipment and sends ending request;
(10) server receives ending request, returns confirmation.
5. exchange method according to claim 3, it is characterised in that the target device and server Accessing consolidated network carries out comprising the following steps that for data interaction:
(1) server sends data transfer request to target device;
(2) target device the reception server transmission request, verifies server, and sends data receiver request;
(3) server verification solicited message, authenticating device return confirmation;
(4) target device sends the clock time of equipment;
(5) server is received target device clock time and is verified with the server clock time, during generation Between difference information, and be sent to target device;
(6) target device the reception server time difference information, changes equipment clock according to time difference, while repairing Change temporal information in the timestamp of the data element generated between last communication is communicated with this, send data transfer Request and equipment time;
(7) server receives target equipment data transmission request, and checking time, and time consistency is then to target Equipment sending data transmission confirms order, repeat step (4) (5) if Time Inconsistency, until the time one Cause;
(8) target device receiving data transmission confirms order, and server transmission data unit arrives target device;
(9) target device receiving data unit, according to the data summarization of the timestamp of data element, stores same class Data, and sequential storage is carried out according to the time of timestamp;
(10) data transfer finishes rear server and sends ending message.
6. exchange method according to claim 3, it is characterised in that the initiating equipment and the mesh Marking device accesses consolidated network and carries out comprising the following steps that for data interaction:
(1) initiating equipment sends data transfer request to target device;
(2) target device is verified to solicited message, authenticating device, returns confirmation;
(3) initiating equipment sends the clock time of equipment;
(4) target device receiving device clock time verified with target device clock time, during generation Between difference information, and be sent to initiating equipment;
(5) initiating equipment receives target device time difference information, changes equipment clock according to time difference, and repaiies Change temporal information in the timestamp of the data element generated between upper last communication is communicated with this, send data and pass Defeated request and equipment time;
(6) target device receives initiating equipment data transfer request, and checking time, and time consistency is then to sending out Play equipment sending data transmission and confirm order, repeat step (4) (5) if Time Inconsistency, until the time Unanimously;
(7) target device is arrived in initiating equipment receiving data transmission request, transmission data unit;
(8) target device receiving data unit, according to the data summarization of the timestamp of data element, stores same class Data, and sequential storage is carried out according to the time of timestamp;
(9) data transfer finishes rear initiating equipment and sends ending request;
(10) target device receives ending request, returns 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 true CN106559158A (en) 2017-04-05
CN106559158B 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
CN106559158B (en) 2018-12-04

Similar Documents

Publication Publication Date Title
CN103685554A (en) Upgrading method, device and system
CN107211001A (en) Forced gate flow is acted on behalf of for input-bound device
CN108156232A (en) Data sharing method and device
US9386181B2 (en) Device proximity detection
CN104580104A (en) Method, device and system for identity verification
CN101436923A (en) Method, equipment and network system for synchronizing clock
CN106612308A (en) Data transmission method and device
CN101547184A (en) Method and device for authenticating data block transmitted in network
CN108024243A (en) A kind of eSIM is caught in Network Communication method and its system
CN104063958A (en) Non-card public bicycle system and bicycle borrowing and returning method thereof
CN105227309B (en) Encryption method for internet-of-things terminal and cloud communication
CN106713495A (en) Uploading method and apparatus, access method and apparatus, and access system of IP geographic position
CN106060065A (en) Communication system and method for use in restricted network environment
CN101778134A (en) Data synchronization method and mobile communication terminal
CN105554750B (en) A kind of transmission method and terminal of data frame
CN103179196A (en) System and method for achieving sing terminal networking interaction and data center
CN107925894A (en) System and method for channel safety
CN103999411B (en) For by the method and system of equipment and gateway association
CN109936539B (en) Account information transmission method
CN103442029A (en) Method and system for heterogeneous real-time historical database synchronization
CN107181795B (en) Convenient filling method and system for wireless security terminal firmware
CN109607341A (en) Elevator operation information management system based on block chain
CN107105045B (en) Convenient filling method and system for wired security terminal firmware
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