CN109873857A - Mobile terminal method of data synchronization and device under a kind of no network state - Google Patents

Mobile terminal method of data synchronization and device under a kind of no network state Download PDF

Info

Publication number
CN109873857A
CN109873857A CN201811601691.5A CN201811601691A CN109873857A CN 109873857 A CN109873857 A CN 109873857A CN 201811601691 A CN201811601691 A CN 201811601691A CN 109873857 A CN109873857 A CN 109873857A
Authority
CN
China
Prior art keywords
mobile terminal
data
network state
business datum
network
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.)
Pending
Application number
CN201811601691.5A
Other languages
Chinese (zh)
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.)
Guangzhou Elephant Technology Co Ltd
Original Assignee
Guangzhou Elephant Technology Co Ltd
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 Guangzhou Elephant Technology Co Ltd filed Critical Guangzhou Elephant Technology Co Ltd
Priority to CN201811601691.5A priority Critical patent/CN109873857A/en
Publication of CN109873857A publication Critical patent/CN109873857A/en
Pending legal-status Critical Current

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses mobile terminal method of data synchronization under a kind of no network state, comprising the following steps: storing step: when mobile terminal is in no network connection state, the business datum received being stored in the local data base of mobile terminal;Markers step: the business datum of storage in the local database is marked;First synchronizing step: when mobile terminal is in network connection state, the synchronizing traffic data marked in local data base is transmitted at server.The invention also discloses a kind of electronic equipment and computer readable storage medium.The design method for passing through modification mobile terminal tables of data and servers' data table without mobile terminal method of data synchronization under network state of the invention, so that mobile terminal work well under the scene of not network environment;And due to without constantly being interacted with server, it is possible to save the performance cost that a large amount of network transmission enters process, improve system performance.

Description

Mobile terminal method of data synchronization and device under a kind of no network state
Technical field
It is synchronous that the present invention relates to mobile terminal data under a kind of technical field of data processing more particularly to a kind of no network state Method and device.
Background technique
In the development of current information technology, the terminal device as Infomiation Production management has been not limited to PC machine, increasingly More other equipment are added to this function, such as mobile phone, plate etc..The utilization rate for wherein moving end equipment is also increasingly Height needs the data for generating mobile terminal to be synchronized on server, to keep the integrality of system data.
In current data synchronization scheme, most commonly seen is instant synchronization, i.e., all operations are all transmitted to service immediately Device is constantly consistent with server data information.But this scheme is necessarily required to mobile end equipment and constantly keeps network smooth Logical, once network can not connect, mobile end equipment can only stop working, and can just continue to make until can connect upper network With limiting the usage scenario of mobile terminal in this way.
Summary of the invention
For overcome the deficiencies in the prior art, one of the objects of the present invention is to provide mobile terminals under a kind of no network state Method of data synchronization can solve the data transmission technology problem under no network state.
The second object of the present invention is to provide a kind of electronic equipment, can solve the data transmission skill under no network state Art problem.
The third object of the present invention is to provide a kind of computer readable storage medium, can solve under no network state Data transmission technology problem.
An object of the present invention adopts the following technical scheme that realization:
Mobile terminal method of data synchronization under a kind of no network state, comprising the following steps:
Storing step: when mobile terminal is in no network connection state, the business datum received is stored in mobile terminal Local data base in;
Markers step: the business datum of storage in the local database is marked;
First synchronizing step: when mobile terminal is in network connection state, the business datum that will be marked in local data base At synchronous transfer to server.
Further, the markers step includes following sub-step:
Sync mark step: label is synchronized to the business datum of storage;
Action type markers step: data action type is marked;
Judge mark step: to whether having completed to synchronize and be marked.
Further, it in the sync mark step, is realized by setting unique identification field to being stored in local The business datum of database synchronizes label.
Further, in action type markers step, the data manipulation type includes newly-increased, modification and deletes.
Further, the synchronizing step specifically includes following sub-step:
Synchronous judgment step: judging whether the business datum is completed to synchronize, if it is, terminating, if it is not, then executing Second synchronizing step;
Second synchronizing step: the synchronization according to data manipulation type with the completion of synchronous correspondence markings to business datum.
It further, further include updating step after the second synchronizing step: subsynchronous more every preset time progress one Newly.
Further, in the storing step, the business datum includes package name, packet content and the number According to the timestamp information of packet;The timestamp information is between mobile terminal and server by the temporal information of preset rules agreement.
Further, in the first synchronizing step, when mobile terminal is in network connection state, believe according to the timestamp Breath will be needed in the business datum uploaded write-in isochronous queue and be transmitted at server by preset order.
The second object of the present invention adopts the following technical scheme that realization:
A kind of electronic equipment can be run on a memory and on a processor including memory, processor and storage Computer program, the processor are realized when executing the computer program one described in any one of one of the object of the invention Kind is without mobile terminal method of data synchronization under network state.
The third object of the present invention adopts the following technical scheme that realization:
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor Mobile terminal method of data synchronization under a kind of no network state as described in any one of one of the object of the invention is realized when row.
Compared with prior art, the beneficial effects of the present invention are:
Of the invention passes through modification mobile terminal tables of data and server end without mobile terminal method of data synchronization under network state The design method of tables of data, so that mobile terminal work well under the scene of not network environment;And since nothing takes When interacted with server, it is possible to save the performance cost that a large amount of network transmission enters process, improve system performance.
Detailed description of the invention
Fig. 1 is the flow chart without mobile terminal method of data synchronization under network state of embodiment one.
Specific embodiment
In the following, being described further in conjunction with attached drawing and specific embodiment to the present invention, it should be noted that not Under the premise of conflicting, new implementation can be formed between various embodiments described below or between each technical characteristic in any combination Example.
Embodiment one
As shown in Figure 1, present embodiments providing mobile terminal method of data synchronization under a kind of no network state, including following step It is rapid:
S1: when mobile terminal is in no network connection state, the business datum received is stored in the local of mobile terminal In database;The business datum includes the timestamp information of package name, packet content and the data packet;When described Between stamp information for mobile terminal and server between by preset rules reach an agreement on temporal information.When mobile terminal is in without network state When, corresponding application program is triggered, needs to store the data received, these business datums are stored in local End.
S2: the business datum of storage in the local database is marked;The step S2 includes following sub-step:
Sync mark step: label is synchronized to the business datum of storage;It is realized by setting unique identification field Label is synchronized to the business datum for being stored in local data base.
Action type markers step: data action type is marked;The data manipulation type includes newly-increased, modification And deletion.
Judge mark step: to whether having completed to synchronize and be marked.If stored, it is synchronizing When be also easy to lead to the problem of data and upload mistake, so after being stored, it is also necessary to data are marked, Confirmation can be synchronized according to flag node after being marked.When be stored with it is multiple in no network state when reception It when the business datum arrived, sometimes can not judge whether it has uploaded, so also needing to be configured it herein, come Judge whether to have completed upload, if it is words, then it is labeled, when subsequent network connection, without passing It is defeated.
S3:, will be on needs by preset order according to the timestamp information when mobile terminal is in network connection state In the business datum write-in isochronous queue of biography and it is transmitted at server.The step S3 specifically includes following sub-step:
Synchronous judgment step: judging whether the business datum is completed to synchronize, if it is, terminating, if it is not, then executing Second synchronizing step;
Second synchronizing step: the synchronization according to data manipulation type with the completion of synchronous correspondence markings to business datum.Preceding two Portion is at operation when no network state, due to that can not be synchronized to data when no network state, and When having detected network, then need to synchronize transmission to data therein.
It updates step: carrying out a synchronized update every preset time.This step is primarily directed in the state for having network When the case where because if real-time perfoming synchronized update, will affect bigger system money in having under network state Source, and carry out interval upload by the way that preset time is arranged, then it can be more efficiently.For example, I remembers when carrying out data record The preset time recorded 5 minutes, but be arranged is 10 minutes, then when reaching this timing node, then uploads me automatically The record content of completion;And in this process, it is also possible to can modify to content therein, and timing node is set Later, going to upload synchronous is final content, then can be much more efficient rate using the system resource.
In existing mobile device, mobile terminal must constantly connect network, once network can not connect, can not just continue Work, limits the usage scenario of mobile device.Due to needing constantly to access database, some performance can be consumed in net In network communication.
This system schema is made of the end PC server and mobile terminal equipment, by rationally designing database, has been cooperated At the realization of this scheme.The end PC keeps newest most full data as role server, relative to mobile terminal.First will mobile terminal The data that the course of work generates are stored in local device, when normally can connect network, the data in local device are synchronous Into PC server.
In this scheme, local data base and PC server database need synchronous tables of data to require setting can be with Facilitate the uniqueness of generation to identify field, such as UUID, for identifying the corresponding data of server and mobile terminal, while needing to set Set data manipulation identification field, for marking the data manipulation of mobile terminal to belong to which seed type, action type include (it is newly-increased, Modification is deleted and other), while the field that whether has synchronized of setting, for marking whether this data has been synchronized to server.
When each operational data changes, the action type of data and the synchronous regime of data have been marked, until have network rings When border, the data for extracting non-synchronous regime label pass to server and synchronize, again by the information of these extractions after synchronously completing It is revised as synchronous regime, data synchronously complete.
And mobile end equipment usage scenario can solve by the data synchronization scheme of the application and limit, by this scheme, Mobile end equipment can carry out the work uploaded without instant data in the environment of no network connection, and this course of work The data of generation are stored in local device, after the completion of all working processing, then mobile device are taken in the environment of network It is upload the data to server, can thus solve the use environment of mobile terminal very well.Since extensive work is without constantly Access network, it is possible to save a large amount of network overhead, improve system performance.
Of the invention passes through modification mobile terminal tables of data and server end without mobile terminal method of data synchronization under network state The design method of tables of data, so that mobile terminal work well under the scene of not network environment;And since nothing takes When interacted with server, it is possible to save the performance cost that a large amount of network transmission enters process, improve system performance.
Embodiment two
Embodiment two discloses a kind of electronic equipment, which includes processor, memory and program, wherein locating One or more can be used in reason device and memory, and program is stored in memory, and is configured to be executed by processor, When processor executes the program, mobile terminal method of data synchronization under a kind of no network state of embodiment one is realized.The electronics is set It is standby to can be a series of electronic equipment of mobile phone, computer, tablet computer etc..
Embodiment three
Embodiment three discloses a kind of computer readable storage medium, and the storage medium is for storing program, and the journey When sequence is executed by processor, mobile terminal method of data synchronization under a kind of no network state of embodiment one is realized.
Certainly, a kind of storage medium comprising computer executable instructions, computer provided by the embodiment of the present invention The method operation that executable instruction is not limited to the described above, can also be performed in method provided by any embodiment of the invention Relevant operation.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but in many cases, the former is more Good embodiment.Based on this understanding, technical solution of the present invention substantially in other words contributes to the prior art Part can be embodied in the form of software products, which can store in computer readable storage medium In, floppy disk, read-only memory (Read-Only Memory, ROM), random access memory (Random such as computer Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions use so that an electronic equipment (can be personal computer, server or the network equipment etc.) executes method described in each embodiment of the present invention.
It is worth noting that, in the above-mentioned embodiment based on content update notice device, included each unit and mould Block is only divided according to the functional logic, but is not limited to the above division, and is as long as corresponding functions can be realized It can;In addition, the specific name of each functional unit is also only for convenience of distinguishing each other, the protection model being not intended to restrict the invention It encloses.
The above embodiment is only the preferred embodiment of the present invention, and the scope of protection of the present invention is not limited thereto, The variation and replacement for any unsubstantiality that those skilled in the art is done on the basis of the present invention belong to institute of the present invention Claimed range.

Claims (10)

1. mobile terminal method of data synchronization under a kind of no network state, which comprises the following steps:
Storing step: when mobile terminal is in no network connection state, the business datum received is stored in the sheet of mobile terminal In ground database;
Markers step: the business datum of storage in the local database is marked;
First synchronizing step: when mobile terminal is in network connection state, the synchronizing traffic data that will be marked in local data base It is transmitted at server.
2. mobile terminal method of data synchronization under a kind of no network state as described in claim 1, which is characterized in that the label Step includes following sub-step:
Sync mark step: label is synchronized to the business datum of storage;
Action type markers step: data action type is marked;
Judge mark step: to whether having completed to synchronize and be marked.
3. mobile terminal method of data synchronization under a kind of no network state as claimed in claim 2, which is characterized in that described same In step mark step, mark is synchronized to the business datum for being stored in local data base to realize by setting unique identification field Note.
4. mobile terminal method of data synchronization under a kind of no network state as claimed in claim 2, which is characterized in that in operation class In phenotypic marker step, the data manipulation type includes newly-increased, modification and deletes.
5. mobile terminal method of data synchronization under a kind of no network state as described in any one of claim 1-4, feature It is, the synchronizing step specifically includes following sub-step:
Synchronous judgment step: judging whether the business datum is completed to synchronize, if it is, terminating, if it is not, then executing second Synchronizing step;
Second synchronizing step: the synchronization according to data manipulation type with the completion of synchronous correspondence markings to business datum.
6. mobile terminal method of data synchronization under a kind of no network state as claimed in claim 5, which is characterized in that same second Step by step rapid further includes updating step later: carrying out a synchronized update every preset time.
7. mobile terminal method of data synchronization under a kind of no network state as described in claim 1, which is characterized in that the storage In step, the business datum includes the timestamp information of package name, packet content and the data packet;The time Information is stabbed between mobile terminal and server by the temporal information of preset rules agreement.
8. mobile terminal method of data synchronization under a kind of no network state as claimed in claim 7, which is characterized in that same first In step by step rapid, when mobile terminal is in network connection state, according to the timestamp information, by preset order, it will need to upload Business datum write-in isochronous queue in and be transmitted at server.
9. a kind of electronic equipment including memory, processor and stores the meter that can be run on a memory and on a processor Calculation machine program, which is characterized in that the processor realizes any one of claim 1-8 institute when executing the computer program Mobile terminal method of data synchronization under a kind of no network state stated.
10. a kind of computer readable storage medium, is stored thereon with computer program, it is characterised in that: the computer program The mobile terminal data side of synchronization under a kind of no network state as described in claim 1-8 any one is realized when being executed by processor Method.
CN201811601691.5A 2018-12-26 2018-12-26 Mobile terminal method of data synchronization and device under a kind of no network state Pending CN109873857A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811601691.5A CN109873857A (en) 2018-12-26 2018-12-26 Mobile terminal method of data synchronization and device under a kind of no network state

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811601691.5A CN109873857A (en) 2018-12-26 2018-12-26 Mobile terminal method of data synchronization and device under a kind of no network state

Publications (1)

Publication Number Publication Date
CN109873857A true CN109873857A (en) 2019-06-11

Family

ID=66917162

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811601691.5A Pending CN109873857A (en) 2018-12-26 2018-12-26 Mobile terminal method of data synchronization and device under a kind of no network state

Country Status (1)

Country Link
CN (1) CN109873857A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110865988A (en) * 2019-11-15 2020-03-06 北京云迹科技有限公司 Data transmission method and device, robot and storage medium
CN111841015A (en) * 2020-07-29 2020-10-30 北京字节跳动网络技术有限公司 Game hall interaction method, device, equipment and system based on state machine
CN112311842A (en) * 2020-03-09 2021-02-02 北京沃东天骏信息技术有限公司 Method and device for information interaction
CN113407635A (en) * 2021-07-09 2021-09-17 浙江明度智控科技有限公司 Multi-terminal data synchronization method and system for intelligent manufacturing
CN113407555A (en) * 2021-07-09 2021-09-17 浙江明度智控科技有限公司 Operation data updating method and system of equipment handheld terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102857529A (en) * 2011-06-30 2013-01-02 镇江雅迅软件有限责任公司 Offline application system based on timestamp
CN103916482A (en) * 2014-04-21 2014-07-09 合肥盈云信息科技有限公司 Data synchronous transmission method based on sqlite
WO2018120681A1 (en) * 2016-12-30 2018-07-05 平安科技(深圳)有限公司 Data synchronization method, device and system, data processing server, and storage medium
CN108536752A (en) * 2018-03-13 2018-09-14 北京信安世纪科技有限公司 A kind of method of data synchronization, device and equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102857529A (en) * 2011-06-30 2013-01-02 镇江雅迅软件有限责任公司 Offline application system based on timestamp
CN103916482A (en) * 2014-04-21 2014-07-09 合肥盈云信息科技有限公司 Data synchronous transmission method based on sqlite
WO2018120681A1 (en) * 2016-12-30 2018-07-05 平安科技(深圳)有限公司 Data synchronization method, device and system, data processing server, and storage medium
CN108536752A (en) * 2018-03-13 2018-09-14 北京信安世纪科技有限公司 A kind of method of data synchronization, device and equipment

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110865988A (en) * 2019-11-15 2020-03-06 北京云迹科技有限公司 Data transmission method and device, robot and storage medium
CN112311842A (en) * 2020-03-09 2021-02-02 北京沃东天骏信息技术有限公司 Method and device for information interaction
CN111841015A (en) * 2020-07-29 2020-10-30 北京字节跳动网络技术有限公司 Game hall interaction method, device, equipment and system based on state machine
CN113407635A (en) * 2021-07-09 2021-09-17 浙江明度智控科技有限公司 Multi-terminal data synchronization method and system for intelligent manufacturing
CN113407555A (en) * 2021-07-09 2021-09-17 浙江明度智控科技有限公司 Operation data updating method and system of equipment handheld terminal
CN113407635B (en) * 2021-07-09 2022-06-03 明度智云(浙江)科技有限公司 Multi-terminal data synchronization method and system for intelligent manufacturing
CN113407555B (en) * 2021-07-09 2022-08-16 明度智云(浙江)科技有限公司 Operation data updating method and system of equipment handheld terminal

Similar Documents

Publication Publication Date Title
CN109873857A (en) Mobile terminal method of data synchronization and device under a kind of no network state
CN106209948B (en) A kind of data push method and device
CN102098342B (en) Transaction level-based data synchronizing method, device thereof and system thereof
CN107172169A (en) Method of data synchronization, device, server and storage medium
CN109542865A (en) Distributed cluster system configuration file synchronous method, device, system and medium
CN103970833A (en) Method for achieving two-way synchronous data circulation in heterogeneous database synchronizing system based on logs
CN103916482A (en) Data synchronous transmission method based on sqlite
CN107819795A (en) A kind of major-minor server data synchronous method of DNS, apparatus and system
CN100395987C (en) Method and system for realizing telecommunication network universal performance management
CN104462477B (en) The method, apparatus and system of data syn-chronization based on timestamp
ATE516652T1 (en) IDENTIFICATION DATA IN SYSTEMS AND APPARATUS USING NETWORK COMMUNICATIONS
CN105574109A (en) Database synchronizing method and equipment and system
CN105975502A (en) Method for realizing incremental data extract based on CDC (Change Data Capture) mode
CN108173915A (en) Call chain processing method and processing device
CN110222114B (en) Method and equipment for bidirectional synchronization of data in database
WO2010028529A1 (en) A method and device for maintaining a changelog in data synchronization
CN103701653B (en) The processing method of a kind of interface hot plug configuration data and network configuration server
CN106412697A (en) Method and device for automatically acquiring time zone for smart television
CN105472412A (en) Big data processing method capable of distinguishing state of intelligent television
CN111352760A (en) Data processing method and related device
CN103248522B (en) A kind of report method of performance data and device
CN105338107A (en) Stronghold operation synchronous management system and stronghold operation synchronous management method
CN108259105A (en) A kind of time synchronizing method, apparatus and synchronizing network
CN108777710B (en) Inter-node communication method and device of block chain and block chain node
CN114185991A (en) Method and related device for realizing data synchronization based on distributed database

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190611

RJ01 Rejection of invention patent application after publication