CN107613024A - A kind of method of data synchronization and mobile terminal - Google Patents

A kind of method of data synchronization and mobile terminal Download PDF

Info

Publication number
CN107613024A
CN107613024A CN201711045876.8A CN201711045876A CN107613024A CN 107613024 A CN107613024 A CN 107613024A CN 201711045876 A CN201711045876 A CN 201711045876A CN 107613024 A CN107613024 A CN 107613024A
Authority
CN
China
Prior art keywords
data base
mobile terminal
local data
network
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.)
Pending
Application number
CN201711045876.8A
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201711045876.8A priority Critical patent/CN107613024A/en
Publication of CN107613024A publication Critical patent/CN107613024A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a kind of method of data synchronization and mobile terminal, wherein method of data synchronization includes:Judge whether local data base updates;If the determination result is YES, then when local data base updates, the more new content of local data base is obtained;The more new content of local data base is sent to cloud server, the update notification of local data base is pushed to the destination mobile terminal of association by cloud server.Pass through method of data synchronization provided in an embodiment of the present invention, it is possible to achieve the real-time synchronization of data between mobile terminal, lift the promptness and reliability of data syn-chronization.

Description

A kind of method of data synchronization and mobile terminal
Technical field
The present invention relates to communication technical field, more particularly to a kind of method of data synchronization and mobile terminal.
Background technology
In the mobile Internet epoch, many personal data of user are all stored in mobile terminal.And mobile terminal is easily lost The characteristics of mistake, causes data backup and synchronously becomes more and more important.For single device, traditional backup needs manual Click on and carry out, operation inconvenience.For multiple devices, if synchronizing data, required behaviour by click manually Making can be more cumbersome and less efficient.Synchronous best triggering mode is automatic synchronization, and how automatic synchronization ensures real-time It is the challenge currently faced.
The content of the invention
The embodiment of the present invention provides a kind of method of data synchronization and mobile terminal, during solving synchrodata in the prior art Operate inconvenient, less efficient and the problem of data syn-chronization requirement of real-time can not be ensured.
In order to solve the above problems, what the embodiment of the present invention was realized in:
In a first aspect, the embodiment of the present invention provides a kind of method of data synchronization, including:
Judge whether local data base updates;
If the determination result is YES, then when local data base updates, the more new content of local data base is obtained;
The more new content of local data base is sent to cloud server, by cloud server by the renewal of local data base Notice pushes to the destination mobile terminal of association.
Second aspect, the embodiment of the present invention provide a kind of mobile terminal, including:
First judge module, for judging whether local data base updates;
First acquisition module, for if the determination result is YES, then when local data base updates, obtaining local data The more new content in storehouse;
Sending module, for the more new content of local data base to be sent to cloud server, it incite somebody to action this by cloud server The update notification of ground database pushes to the destination mobile terminal of association.
The third aspect, the embodiment of the present invention provide a kind of mobile terminal, including processor, memory and are stored in memory Computer program that is upper and can running on a processor, realizes above-mentioned method of data synchronization when computer program is executed by processor The step of.
Fourth aspect, the embodiment of the present invention provide a kind of computer-readable recording medium, on computer-readable recording medium Store computer program, the step of above-mentioned method of data synchronization is realized when computer program is executed by processor.
In embodiments of the present invention, by judging the more new state of local data base, it is determined that local data base When updating, the more new content of local data base is obtained, more new content is sent to cloud server so that cloud server Update notification is pushed into destination mobile terminal, realizes the real-time synchronization of data between mobile terminal, lifted data syn-chronization and When property and reliability.
Brief description of the drawings
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, rather than whole embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made Example, belongs to the scope of protection of the invention.
Fig. 1 represents data syn-chronization schematic diagram provided in an embodiment of the present invention;
Fig. 2 represents mobile terminal schematic diagram provided in an embodiment of the present invention;
Fig. 3 represents mobile terminal hardware architecture diagram provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, rather than whole embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made Example, belongs to the scope of protection of the invention.
The embodiment of the present invention provides a kind of method of data synchronization, applied to mobile terminal, as shown in figure 1, including:
Step 101, judge whether local data base updates.
Mobile terminal monitors local data base information, judges whether local data base is updated.Wherein local data The information included in storehouse comprises at least communication contact people information, short message and note information etc..Corresponding local data base Renewal comprise at least:The renewal of communication contact people's information, the renewal of short message and the renewal of note information.Certainly it is local Other information can also be included in database, will not enumerate herein.Wherein the renewal of communication contact people information includes increasing Add associated person information, delete associated person information and change associated person information;The renewal of short message include delete short message or Receive short message;The renewal of note information includes newly-increased label or deletes label.
In embodiments of the present invention, judge that the process whether local data base updates is:Whether detect oneself state Meet default trigger condition;When oneself state meets default trigger condition, perform to whether local data base occurs more New judgment step.That is mobile terminal just may determine that local data base is when oneself state meets default trigger condition It is no to be updated.By setting default trigger condition, the judgement of local data base renewal can be carried out when having required, The necessity of deterministic process can be ensured, avoid the occurrence of the blindness of judgement.
Wherein, when oneself state meets default trigger condition, perform and sentence to what whether local data base updated The process of disconnected step is:During mobile terminal detects oneself state, if network switching or arrival occur for mobile terminal When at the time of timing being inquired about, determine that the oneself state of mobile terminal meets default trigger condition, perform is to local data base The no judgment step updated;Or during mobile terminal detects oneself state, if network does not occur for mobile terminal Switching, but mobile terminal show address list either short message interface when or when detecting unlocking screen action, it is determined that it is mobile eventually The oneself state at end meets default trigger condition, performs the judgment step whether updated to local data base.
Specially:During mobile terminal detects to oneself state, judge whether mobile terminal oneself state is full The default trigger condition of foot, wherein when mobile terminal detects generation network switching, it may be determined that the current shape of mobile terminal State meets default trigger condition, and now mobile terminal can generate triggering command, whether local data base is updated Judgement.Wherein using network switching as trigger condition, the usage scenario of most of normal users can be met.
On the other hand, mobile terminal can judge so that whether automatic regular polling occurs renewal to local data base, that is, move Terminal pre-sets a detection cycle, terminates in a detection cycle, when another detection cycle starts, it is determined that timing instant is reached, It can determine that the current state of mobile terminal meets default trigger condition, mobile terminal can generate triggering command, carry out to this The judgement whether ground database updates.Such as:Mobile terminal needed to carry out one-time detection every 10 minutes, was detected reaching During the moment, determine that mobile terminal state meets default trigger condition, now mobile terminal carries out sentencing for local data base renewal It is disconnected.Detected by the automatic regular polling of mobile terminal, the usage scenario of most of normal users can be met.And by shortening timing Polling interval, it may further ensure that the validity of mobile terminal judgement and the promptness of data syn-chronization.
Mobile terminal on the basis of network switching does not occur for mobile terminal, then may be used during oneself state is detected To be judged using other modes.Now mobile terminal can detect whether to show address list or short message interface, if moving On the basis of network switching does not occur for dynamic terminal, when mobile terminal shows address list interface, it may be determined that mobile terminal is current State meets default trigger condition, and now mobile terminal can generate triggering command, whether local data base is occurred more New judgement.Or if on the basis of network switching does not occur for mobile terminal, can be with when mobile terminal shows short message interface Determine that the current state of mobile terminal meets default trigger condition, now mobile terminal can generate triggering command, carry out to this The judgement whether ground database updates.Such a mode can ensure the promptness of local data base renewal detection, Jin Erke So that obtaining user is needing to use data, data syn-chronization can in time and be reliably carried out.
Mobile terminal on the basis of network switching does not occur for mobile terminal, may be used also during oneself state is detected To be judged using other modes.Now mobile terminal can detect whether that unlocking screen action occurs, if in mobile terminal On the basis of network switching does not occur, when unlocking screen action occurs for mobile terminal, it may be determined that the current state of mobile terminal Meet default trigger condition, now mobile terminal can generate triggering command, carry out what whether local data base was updated Judge.Such a mode can ensure the promptness of local data base renewal detection, and then ensure the real-time of data syn-chronization.
Wherein it should be noted that the embodiments of the invention provide four kinds of triggering judgment modes, respectively in network switching When triggering judge mode, reach timing inquiry the moment when triggering judge mode, mobile terminal show address list interface or The mode and detect the mode that judgement is triggered during unlocking screen action that triggering judges during short message interface, above-mentioned four kinds of modes can It individually to perform, can also be combined, can be combination of two during any combination, or any combination of other modes, example The combination of four kinds of judgment modes can such as be carried out:When network switching does not occur, detect whether to reach the timing inquiry moment, not Reach timing inquiry the moment when, detection mobile terminal whether show address list or short message interface, do not show address list or During short message interface, mobile terminal detects whether that unlocking screen action occurs.The combination of three kinds of judgment modes can also be carried out:Not During generation network switching, detect whether to reach the timing inquiry moment, when not reaching the timing inquiry moment, detection mobile terminal is No display address list or short message interface.It can also carry out the combination of two kinds of judgment modes, the combination of two of which judgment mode, The combination of three kinds of judgment modes, according to built-up sequence and selected various combination mode, multiple combinations can be corresponded to, four kinds are sentenced The combination of disconnected mode can also have a variety of according to the order difference of combination.
The independent judgment mode enumerated in this programme includes:The mode of triggering judgement, arrival timing are inquired about during network switching The mode that triggering judges during the moment;The judgment mode for the combination of two enumerated includes:Movement is detected when network switching does not occur Whether terminal shows address list or short message interface;Detect whether that unlocking screen action occurs when network switching does not occur.When Combination cited by the right present invention is only corresponding implementation process, and the embodiment of the present invention can also include others individually And combine detection mode, it will not enumerate herein.Furthermore, it is understood that those skilled in the art can also use others Judgment mode is triggered, is repeated no more herein.
Step 102, if the determination result is YES, then when local data base updates, obtain the renewal of local data base Content.
When mobile terminal determines that local data base updates, the more new content in local data base can be obtained, When obtaining the more new content in local data base, mobile terminal can obtain communication contact people fresh information, short message fresh information And note fresh information etc., wherein communication contact people fresh information include increase associated person information, delete associated person information with And change associated person information;Short message fresh information includes deleting short message or receives short message;Note information updating information includes Newly-increased label deletes label.
The mode of more new content for obtaining local data base is:Before the content stored in current database and renewal The content stored is compared, and the more new content of local data base is obtained according to comparative result.
Step 103, the more new content of local data base sent to cloud server, by cloud server by local data The update notification in storehouse pushes to the destination mobile terminal of association.
After the more new content of local data base is obtained, the more new content of the local data base of acquisition is sent to high in the clouds Server, cloud server is after the more new content for the local data base that mobile terminal uploads is obtained, according to local data base More new content carry out cloud server network data base content update, complete the network data base of cloud server After content update, the update notification of mobile terminal local data base is pushed to destination mobile terminal.Wherein destination mobile terminal It is associated with the mobile terminal for carrying out local data base content update, it can will carry out the mobile end of local data base content update End is referred to as the first mobile terminal, and destination mobile terminal is referred to as into the second mobile terminal, establishes the first mobile terminal and high in the clouds The connection of server, while the connection of the second mobile terminal and cloud server is established, according to the first mobile terminal, the second movement The connection of terminal and cloud server, the first mobile terminal of formation associates with the second mobile terminal, wherein the first mobile terminal Same user profile can be shared with the second mobile terminal, such as can be logged on the first mobile terminal and the second mobile terminal User A social account.First mobile terminal to cloud server, services the renewal content uploading of local data base beyond the clouds After content update occurs for the network data base of device, the update notification of the first mobile terminal local data base is pushed into the second movement Terminal, the second mobile terminal download newest delta data, to realize according to update notification from the network data base of cloud server Content update, ensure the synchronization of data.
In above process, trigger and judge in network switching, when it is determined that local data base updates, obtain local The more new content of database;The more new content of local data base is sent to the embodiment of cloud server, can be met big absolutely Most normal users scenes, but real-time is not high, is failed if not being pushed caused by internet off-line, and data can not be realized in real time It is synchronous.
When reaching the timing inquiry moment, triggering judges, when it is determined that local data base updates, obtains local data The more new content in storehouse;The more new content of local data base is sent to the embodiment of cloud server, the overwhelming majority can be met Normal users scene, but polling interval is too short can cause meaningless expense, it is long, the real-time of data syn-chronization can be influenceed.User can To select suitable polling interval to ensure the real-time of data syn-chronization, while avoid meaningless expense.
Detect whether mobile terminal shows address list or short message interface when network switching does not occur, in display address list Or trigger and judge during short message interface, when it is determined that local data base updates, obtain the more new content of local data base;Will The more new content of local data base is sent to the embodiment of cloud server, it is ensured that energy when user needs to use data Realize data syn-chronization.
Detect whether mobile terminal occurs unlocking screen action when network switching does not occur, unlocking screen action is occurring When, obtain the more new content of local data base;The more new content of local data base is sent to the embodiment of cloud server, can To ensure the timely and validity of real time data synchronization.
By above-mentioned implementation process, can or local device unstable in network condition it is offline when, it is same real When data synchronization, ensure data syn-chronization real-time and reliability, while relatively low electricity and traffic overhead can be kept.
Wherein using mobile terminal as subject of implementation in the embodiment of the present invention, said process is mobile terminal actively renewal Flow, the flow that mobile terminal passively updates is described below.
In embodiments of the present invention, if the judged result of step 101 is no, it is determined that local data base does not update When, this method also includes:
The very first time stamp of local data base is obtained, the very first time stabs the version for representing local data base;Obtain cloud The second timestamp of the network data base of server is held, the second timestamp is used for the version for representing network data base;According to first Timestamp and the second timestamp, judge whether network data base is updated relative to local data base;If network data base Updated relative to local data base, then when network data base updates, more new content is obtained from network data base Local data base is updated, and is the second timestamp by the update of time stamp of local data base after the completion of renewal.
If i.e. mobile terminal is on the premise of oneself state meets default trigger condition, judgement local data base is performed After the flow whether updated, when determining that data renewal does not occur for local data base, mobile terminal local data base can be obtained The very first time stabs, and the very first time stamp of wherein mobile terminal local data base is used for showing the version of mobile terminal local data base This.Mobile terminal can also obtain the network data base of cloud server after the very first time stamp of local data base is obtained Second timestamp of the second timestamp, wherein network data base is used for the version for representing network data base.
When obtaining the second of the very first time stamp of mobile terminal local data base and cloud server network data base Between stab after, network data base and local data base are compared according to very first time stamp and second timestamp, judge net Whether relative to local data base, there occurs data renewal for network database.
Wherein, according to very first time stamp and the second timestamp, judge whether network data base is sent out relative to local data base The step of having given birth to renewal includes:It will stab the very first time compared with the second timestamp, and judge very first time stamp and the second time Whether stamp is identical;If the very first time stamp it is different from the second timestamp, determine network data base relative to local data base there occurs Renewal.
Now mobile terminal will be stabbed and will be compared with the second timestamp the very first time, to judge whether both are identical, if the One timestamp is identical with the second timestamp, it is determined that the second timestamp does not update relative to very first time stamp, if when first Between stamp it is different from the second timestamp, and the second timestamp is updated for the very first time stabs, it is determined that network number Updated according to storehouse relative to local data base.
It is determined that network data base relative to local data base there occurs renewal after, it is necessary to by network data base and local Database is compared, and obtains difference content, and it is more new content to determine difference content, is then obtained and is updated from network data base Content, the renewal of local data base is carried out according to the more new content of acquisition, it is determined that after the completion of local data base renewal, incited somebody to action local The update of time stamp of database is the second timestamp.
, wherein it is desired to explanation, mobile terminal local data base does not update, but the network data of cloud server The reason for storehouse updates can be:Other destination mobile terminals being connected with cloud server are there occurs content update, here Other destination mobile terminals associated with mobile terminal.Other destination mobile terminals wherein associated with mobile terminal are whole with movement The shared cloud server in end.The renewal of terminal local database is moved by passive mode, may further ensure that number According to the real-time synchronization between multiple mobile terminals.
The embodiment of the present invention, by judging the more new state of local data base, it is determined that local data base occurs During renewal, the more new content of local data base is obtained, more new content is sent to cloud server so that cloud server will more New notice pushes to destination mobile terminal, realizes the real-time synchronization of data between mobile terminal, lifts the promptness of data syn-chronization And reliability.
Further, mobile terminal local data base can also be carried out more according to the more new content of network data base Newly, the promptness and accuracy of data renewal are ensured.
The embodiment of the present invention also provides a kind of mobile terminal, as shown in Fig. 2 including:
First judge module 10, for judging whether local data base updates;
First acquisition module 20, for if the determination result is YES, then when local data base updates, obtaining local number According to the more new content in storehouse;
Sending module 30, will by cloud server for the more new content of local data base to be sent to cloud server The update notification of local data base pushes to the destination mobile terminal of association.
Wherein, the first judge module 10 includes:
Detection sub-module 11, for detecting whether oneself state meets default trigger condition;
Implementation sub-module 12, for when oneself state meets default trigger condition, perform to local data base whether The judgement updated.
Wherein, implementation sub-module 12 includes:
First processing units 121, during detecting oneself state in mobile terminal, if network occurs for mobile terminal When at the time of switching or arrival timing being inquired about, determine that the oneself state of mobile terminal meets default trigger condition, execution pair The judgment step whether local data base updates;Or
Second processing unit 122, during detecting oneself state in mobile terminal, if net does not occur for mobile terminal Network switches, but mobile terminal show address list either short message interface when or when detecting unlocking screen action, it is determined that it is mobile The oneself state of terminal meets default trigger condition, performs the judgment step whether updated to local data base.
Wherein, mobile terminal also includes:
Second acquisition module 40, if the judged result for the first judge module 10 is no, it is determined that local data base When not updating, the very first time stamp of local data base is obtained, the very first time stabs the version for representing local data base;
3rd acquisition module 50, the second timestamp of the network data base for obtaining cloud server, the second timestamp For representing the version of network data base;
Second judge module 60, for according to very first time stamp and the second timestamp, judging network data base relative to this Whether ground database is updated;
Update module 70, if being updated for network data base relative to local data base, in network data base When updating, renewal content update local data base is obtained from network data base, and after the completion of renewal, by local data base Update of time stamp be the second timestamp.
Wherein, the second judge module 60 includes:
Judging submodule 61, for that will stab the very first time compared with the second timestamp, judge very first time stamp and the Whether two timestamps are identical;
Determination sub-module 62, if different from the second timestamp for very first time stamp, determine network data base relative to this Ground database is updated.
The mobile terminal of the embodiment of the present invention can realize each mistake that mobile terminal is realized in Fig. 1 embodiment of the method Journey, to avoid repeating, repeat no more here.
So, by judging the more new state of local data base, when it is determined that local data base updates, obtain The more new content of local data base is taken, more new content is sent to cloud server so that cloud server pushes away update notification Destination mobile terminal is delivered to, realizes the real-time synchronization of data between mobile terminal, lifts the promptness and reliability of data syn-chronization.
Fig. 3 is a kind of hardware architecture diagram for the mobile terminal for realizing each embodiment of the present invention, the mobile terminal 300 Including but not limited to:It is radio frequency unit 301, mixed-media network modules mixed-media 302, audio output unit 303, input block 304, sensor 305, aobvious Show the parts such as unit 306, user input unit 307, interface unit 308, memory 309, processor 310 and power supply 311. It will be understood by those skilled in the art that the mobile terminal structure shown in Fig. 3 does not form the restriction to mobile terminal, it is mobile whole End can be included than illustrating more or less parts, either combine some parts or different parts arrangement.In the present invention In embodiment, mobile terminal includes but is not limited to mobile phone, tablet personal computer, notebook computer, palm PC, car-mounted terminal, can worn Wear equipment and pedometer etc..
Processor 310 is used for:Judge whether local data base updates;If the determination result is YES, then in local data When storehouse updates, the more new content of local data base is obtained;The more new content of local data base is sent to cloud server, The update notification of local data base is pushed to the destination mobile terminal of association by cloud server.
Optionally, when judging whether local data base updates, processor 310 is additionally operable to perform following steps:Inspection Survey whether oneself state meets default trigger condition;When oneself state meets default trigger condition, perform to local number The judgment step whether updated according to storehouse.
Optionally, when oneself state meets default trigger condition, perform what whether local data base was updated During judgment step, processor 310 is additionally operable to perform following steps:During mobile terminal detects oneself state, if mobile When terminal occurs network switching or reached at the time of timing is inquired about, determine that the oneself state of mobile terminal meets default triggering Condition, perform the judgment step whether updated to local data base;Or the process in mobile terminal detection oneself state In, if network switching do not occur for mobile terminal, but mobile terminal show address list either short message interface when or detect screen During unlocking motion, it is determined that the oneself state of mobile terminal meets default trigger condition, performs to whether local data base is sent out The judgment step of raw renewal.
Optionally, if judged result is no, when it is determined that local data base does not update, processor 310 is additionally operable to Perform following steps:The very first time stamp of local data base is obtained, the very first time stabs the version for representing local data base;Obtain The second timestamp of the network data base of cloud server is taken, the second timestamp is used for the version for representing network data base;According to The very first time stabs and the second timestamp, judges whether network data base is updated relative to local data base;If network number Updated according to storehouse relative to local data base, then when network data base updates, obtain and update from network data base Content update local data base, and be the second timestamp by the update of time stamp of local data base after the completion of renewal.
Optionally, according to the very first time stamp and the second timestamp, judge network data base relative to local data base whether There occurs during renewal, processor 310 is additionally operable to perform following steps:It will stab the very first time compared with the second timestamp, sentence Whether disconnected very first time stamp is identical with the second timestamp;If very first time stamp is different from the second timestamp, network data base is determined Updated relative to local data base.
So, by judging the more new state of local data base, when it is determined that local data base updates, obtain The more new content of local data base is taken, more new content is sent to cloud server so that cloud server pushes away update notification Destination mobile terminal is delivered to, realizes the real-time synchronization of data between mobile terminal, lifts the promptness and reliability of data syn-chronization.
It should be understood that in the embodiment of the present invention, radio frequency unit 301 can be used for receiving and sending messages or communication process in, signal Reception and transmission, specifically, by from base station downlink data receive after, handled to processor 310;In addition, will be up Data are sent to base station.Generally, radio frequency unit 301 includes but is not limited to antenna, at least one amplifier, transceiver, coupling Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 301 can also by wireless communication system and network and other set Standby communication.
Mobile terminal has provided the user wireless broadband internet by mixed-media network modules mixed-media 302 and accessed, and such as helps user to receive Send e-mails, browse webpage and access streaming video etc..
Audio output unit 303 can be receiving by radio frequency unit 301 or mixed-media network modules mixed-media 302 or in memory 309 It is sound that the voice data of storage, which is converted into audio signal and exported,.Moreover, audio output unit 303 can also be provided and moved The audio output for the specific function correlation that dynamic terminal 300 performs is (for example, call signal receives sound, message sink sound etc. Deng).Audio output unit 303 includes loudspeaker, buzzer and receiver etc..
Input block 304 is used to receive audio or video signal.Input block 304 can include graphics processor (Graphics Processing Unit, GPU) 3041 and microphone 3042, graphics processor 3041 is in video acquisition mode Or the static images or the view data of video obtained in image capture mode by image capture apparatus (such as camera) are carried out Reason.Picture frame after processing may be displayed on display unit 306.Picture frame after the processing of graphics processor 3041 can be deposited Storage is transmitted in memory 309 (or other storage mediums) or via radio frequency unit 301 or mixed-media network modules mixed-media 302.Mike Wind 3042 can receive sound, and can be voice data by such acoustic processing.Voice data after processing can be The form output of mobile communication base station can be sent to via radio frequency unit 301 by being converted in the case of telephone calling model.
Mobile terminal 300 also includes at least one sensor 305, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 3061, and proximity transducer can close when mobile terminal 300 is moved in one's ear Display panel 3061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general For three axles) size of acceleration, size and the direction of gravity are can detect that when static, available for identification mobile terminal posture (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);Pass Sensor 305 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet Meter, thermometer, infrared ray sensor etc. are spent, will not be repeated here.
Display unit 306 is used for the information for showing the information inputted by user or being supplied to user.Display unit 306 can wrap Display panel 3061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 3061.
User input unit 307 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal The key signals input that family is set and function control is relevant.Specifically, user input unit 307 include contact panel 3071 and Other input equipments 3072.Contact panel 3071, also referred to as touch-screen, collect touch operation of the user on or near it (for example user uses any suitable objects or annex such as finger, stylus on contact panel 3071 or in contact panel 3071 Neighbouring operation).Contact panel 3071 may include both touch detecting apparatus and touch controller.Wherein, touch detection Device detects the touch orientation of user, and detects the signal that touch operation is brought, and transmits a signal to touch controller;Touch control Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 310, receiving area Manage the order that device 310 is sent and performed.It is furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Type realizes contact panel 3071.Except contact panel 3071, user input unit 307 can also include other input equipments 3072.Specifically, other input equipments 3072 can include but is not limited to physical keyboard, function key (such as volume control button, Switch key etc.), trace ball, mouse, action bars, will not be repeated here.
Further, contact panel 3071 can be covered on display panel 3061, when contact panel 3071 is detected at it On or near touch operation after, send processor 310 to determine the type of touch event, be followed by subsequent processing device 310 according to touch The type for touching event provides corresponding visual output on display panel 3061.Although in figure 3, contact panel 3071 and display Panel 3061 is the part independent as two to realize the input of mobile terminal and output function, but in some embodiments In, can be integrated by contact panel 3071 and display panel 3061 and realize input and the output function of mobile terminal, it is specific this Place does not limit.
Interface unit 308 is the interface that external device (ED) is connected with mobile terminal 300.For example, external device (ED) can include Line or wireless head-band earphone port, external power source (or battery charger) port, wired or wireless FPDP, storage card end Mouth, port, audio input/output (I/O) port, video i/o port, earphone end for connecting the device with identification module Mouthful etc..Interface unit 308 can be used for receive the input (for example, data message, electric power etc.) from external device (ED) and One or more elements that the input received is transferred in mobile terminal 300 can be used in the He of mobile terminal 300 Data are transmitted between external device (ED).
Memory 309 can be used for storage software program and various data.Memory 309 can mainly include storing program area And storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one function Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as Voice data, phone directory etc.) etc..In addition, memory 109 can include high-speed random access memory, can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 310 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection Individual part, by running or performing the software program and/or module that are stored in memory 309, and call and be stored in storage Data in device 309, the various functions and processing data of mobile terminal are performed, so as to carry out integral monitoring to mobile terminal.Place Reason device 310 may include one or more processing units;Preferably, processor 310 can integrate application processor and modulatedemodulate is mediated Device is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is main Handle radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 310.
Mobile terminal 300 can also include the power supply 311 (such as battery) to all parts power supply, it is preferred that power supply 311 Can be logically contiguous by power-supply management system and processor 310, so as to realize management charging by power-supply management system, put The function such as electricity and power managed.
In addition, mobile terminal 300 includes some unshowned functional modules, will not be repeated here.
Preferably, the embodiment of the present invention also provides a kind of mobile terminal, including processor 310, memory 309, is stored in On memory 309 and the computer program that can be run on the processor 310, the computer program are performed by processor 310 Each process of the above-mentioned method of data synchronization embodiments of Shi Shixian, and identical technique effect can be reached, to avoid repeating, here Repeat no more.
The embodiment of the present invention also provides a kind of computer-readable recording medium, and meter is stored with computer-readable recording medium Calculation machine program, the computer program realize each process of above-mentioned method of data synchronization embodiment, and energy when being executed by processor Reach identical technique effect, to avoid repeating, repeat no more here.Wherein, described computer-readable recording medium, such as only Read memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic disc or CD etc..
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements not only include those key elements, and And also include the other element being not expressly set out, or also include for this process, method, article or device institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Other identical element also be present in the process of key element, method, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal (can be mobile phone, computer, service Device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
Embodiments of the invention are described above in conjunction with accompanying drawing, but the invention is not limited in above-mentioned specific Embodiment, above-mentioned embodiment is only schematical, rather than restricted, one of ordinary skill in the art Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make a lot Form, belong within the protection of the present invention.

Claims (11)

  1. A kind of 1. method of data synchronization, applied to mobile terminal, it is characterised in that including:
    Judge whether local data base updates;
    If the determination result is YES, then when the local data base updates, the more new content of the local data base is obtained;
    The more new content of the local data base is sent to cloud server, by the cloud server by the local data The update notification in storehouse pushes to the destination mobile terminal of association.
  2. 2. method of data synchronization according to claim 1, it is characterised in that judge what whether local data base updated Step, including:
    Whether detection oneself state meets default trigger condition;
    When oneself state meets the default trigger condition, the judgement whether updated to the local data base is performed Step.
  3. 3. method of data synchronization according to claim 2, it is characterised in that meet the default triggering in oneself state During condition, the judgment step whether updated to the local data base is performed, including:
    During the mobile terminal detects oneself state, if the mobile terminal occurs network switching or reaches timing When at the time of inquiry, determine that the oneself state of the mobile terminal meets the default trigger condition, perform to the local The judgment step whether database updates;Or
    During the mobile terminal detects oneself state, if network switching, but the shifting do not occur for the mobile terminal Dynamic terminal show address list either short message interface when or when detecting unlocking screen action, it is determined that the mobile terminal Oneself state meets the default trigger condition, performs the judgment step whether updated to the local data base.
  4. 4. method of data synchronization according to claim 1, it is characterised in that if judged result is no, it is determined that described When local data base does not update, methods described also includes:
    The very first time stamp of the local data base is obtained, the very first time stabs the version for representing the local data base This;
    The second timestamp of the network data base of the cloud server is obtained, second timestamp is used to represent the network The version of database;
    According to very first time stamp and second timestamp, judge the network data base relative to the local data base Whether updated;
    If the network data base is updated relative to the local data base, updated in the network data base When, local data base described in renewal content update is obtained from the network data base, and after the completion of renewal, by the local number Update of time stamp according to storehouse is second timestamp.
  5. 5. method of data synchronization according to claim 4, it is characterised in that according to very first time stamp and described second Timestamp, judging the network data base, whether there occurs to include the step of renewal relative to the local data base:
    By very first time stamp compared with second timestamp, the very first time stamp and second time are judged Whether stamp is identical;
    If the very first time stamp is different from second timestamp, determine the network data base relative to the local data Storehouse is updated.
  6. A kind of 6. mobile terminal, it is characterised in that including:
    First judge module, for judging whether local data base updates;
    First acquisition module, for if the determination result is YES, then when the local data base updates, obtaining the local The more new content of database;
    Sending module, for the more new content of the local data base to be sent to cloud server, by the cloud server The update notification of the local data base is pushed to the destination mobile terminal of association.
  7. 7. mobile terminal according to claim 6, it is characterised in that first judge module includes:
    Detection sub-module, for detecting whether oneself state meets default trigger condition;
    Implementation sub-module, for when oneself state meets the default trigger condition, perform to be to the local data base The no judgement updated.
  8. 8. mobile terminal according to claim 7, it is characterised in that the implementation sub-module includes:
    First processing units, during detecting oneself state in the mobile terminal, if net occurs for the mobile terminal When network is switched or reached at the time of timing is inquired about, determine that the oneself state of the mobile terminal meets the default triggering bar Part, perform the judgment step whether updated to the local data base;Or
    Second processing unit, during detecting oneself state in the mobile terminal, if the mobile terminal does not occur Network switching, but the mobile terminal show address list either short message interface when or detect unlocking screen action when, then really The oneself state of the fixed mobile terminal meets the default trigger condition, performs to whether the local data base occurs more New judgment step.
  9. 9. mobile terminal according to claim 6, it is characterised in that the mobile terminal also includes:
    Second acquisition module, if the judged result for first judge module is no, it is determined that the local data base When not updating, the very first time stamp of the local data base is obtained, the very first time is stabbed for representing local data base Version;
    3rd acquisition module, the second timestamp of the network data base for obtaining the cloud server, second time Stab the version for representing the network data base;
    Second judge module, for according to very first time stamp and second timestamp, judging the network data base phase Whether updated for the local data base;
    Update module, if being updated for the network data base relative to the local data base, in the network When database updates, local data base described in renewal content update is obtained from the network data base, and complete in renewal Afterwards, it is second timestamp by the update of time stamp of the local data base.
  10. 10. mobile terminal according to claim 9, it is characterised in that second judge module includes:
    Judging submodule, for compared with second timestamp, very first time stamp to be judged into the very first time Whether stamp is identical with second timestamp;
    Determination sub-module, if different from second timestamp for very first time stamp, determine the network data base phase Updated for the local data base.
  11. 11. a kind of mobile terminal, it is characterised in that including processor, memory and be stored on the memory and can be in institute The computer program run on processor is stated, the computer program is realized such as claim 1 to 5 during the computing device Any one of method of data synchronization the step of.
CN201711045876.8A 2017-10-31 2017-10-31 A kind of method of data synchronization and mobile terminal Pending CN107613024A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711045876.8A CN107613024A (en) 2017-10-31 2017-10-31 A kind of method of data synchronization and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711045876.8A CN107613024A (en) 2017-10-31 2017-10-31 A kind of method of data synchronization and mobile terminal

Publications (1)

Publication Number Publication Date
CN107613024A true CN107613024A (en) 2018-01-19

Family

ID=61083784

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711045876.8A Pending CN107613024A (en) 2017-10-31 2017-10-31 A kind of method of data synchronization and mobile terminal

Country Status (1)

Country Link
CN (1) CN107613024A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109032768A (en) * 2018-08-10 2018-12-18 北京智能管家科技有限公司 Moving method, device, terminal, server and the storage medium of utility cession
CN109558465A (en) * 2018-11-22 2019-04-02 北京酷我科技有限公司 Relationship management method and system in a kind of social intercourse system between user
CN109902130A (en) * 2019-01-31 2019-06-18 北京明略软件系统有限公司 A kind of date storage method, data query method and apparatus, storage medium
CN110362393A (en) * 2019-07-18 2019-10-22 北京明略软件系统有限公司 The detection method and device of increment task
CN111368173A (en) * 2020-03-05 2020-07-03 五八有限公司 File transmission method and device, electronic equipment and readable storage medium
CN111953722A (en) * 2019-05-16 2020-11-17 武汉海康存储技术有限公司 Terminal address book synchronization method and device
CN115858688A (en) * 2023-03-03 2023-03-28 北京阿玛西换热设备制造有限公司 Remote data synchronization method and system for database

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1767520A (en) * 2004-10-26 2006-05-03 华为技术有限公司 Method for obtaining information in communication system
CN102710751A (en) * 2012-05-11 2012-10-03 惠州Tcl移动通信有限公司 Method and system for synchronous update of schedule
CN106453541A (en) * 2016-09-30 2017-02-22 厦门中控生物识别信息技术有限公司 Data synchronization method, server and data synchronization system
CN106512397A (en) * 2016-11-17 2017-03-22 北京像素软件科技股份有限公司 Data loading method for game server and game server
WO2017177621A1 (en) * 2016-04-12 2017-10-19 乐视控股(北京)有限公司 Data synchronization method in local area network, and apparatus and user terminal therefor

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1767520A (en) * 2004-10-26 2006-05-03 华为技术有限公司 Method for obtaining information in communication system
CN102710751A (en) * 2012-05-11 2012-10-03 惠州Tcl移动通信有限公司 Method and system for synchronous update of schedule
WO2017177621A1 (en) * 2016-04-12 2017-10-19 乐视控股(北京)有限公司 Data synchronization method in local area network, and apparatus and user terminal therefor
CN106453541A (en) * 2016-09-30 2017-02-22 厦门中控生物识别信息技术有限公司 Data synchronization method, server and data synchronization system
CN106512397A (en) * 2016-11-17 2017-03-22 北京像素软件科技股份有限公司 Data loading method for game server and game server

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109032768A (en) * 2018-08-10 2018-12-18 北京智能管家科技有限公司 Moving method, device, terminal, server and the storage medium of utility cession
CN109558465A (en) * 2018-11-22 2019-04-02 北京酷我科技有限公司 Relationship management method and system in a kind of social intercourse system between user
CN109902130A (en) * 2019-01-31 2019-06-18 北京明略软件系统有限公司 A kind of date storage method, data query method and apparatus, storage medium
CN111953722A (en) * 2019-05-16 2020-11-17 武汉海康存储技术有限公司 Terminal address book synchronization method and device
CN110362393A (en) * 2019-07-18 2019-10-22 北京明略软件系统有限公司 The detection method and device of increment task
CN111368173A (en) * 2020-03-05 2020-07-03 五八有限公司 File transmission method and device, electronic equipment and readable storage medium
CN115858688A (en) * 2023-03-03 2023-03-28 北京阿玛西换热设备制造有限公司 Remote data synchronization method and system for database
CN115858688B (en) * 2023-03-03 2023-04-18 北京阿玛西换热设备制造有限公司 Remote data synchronization method and system for database

Similar Documents

Publication Publication Date Title
CN107613024A (en) A kind of method of data synchronization and mobile terminal
CN110198550A (en) A kind of secondary cell group maintenance method, terminal device and network node
CN110198545A (en) A kind of secondary cell group adding method, terminal device and host node
CN108363524B (en) A kind of application icon display methods and mobile terminal
CN109062411A (en) A kind of screen luminance adjustment method and mobile terminal
CN108984066A (en) A kind of application icon display methods and mobile terminal
CN109739429A (en) Screens switch processing method and mobile terminal terminal device
CN109831359A (en) A kind of detection method and its terminal device of data network connection state
CN110399000A (en) A kind of mobile terminal temperature control method mobile terminal
CN109388456A (en) A kind of head portrait selection method and mobile terminal
CN108282834A (en) A kind of method and terminal of terminal access LTE network
CN110096203A (en) A kind of screenshot method and mobile terminal
CN110049187A (en) A kind of display methods and terminal device
CN108769202A (en) A kind of information push method and its server and terminal device
CN109144393A (en) A kind of image display method and mobile terminal
CN108009031A (en) The control method and mobile terminal of a kind of application program
CN107992378B (en) A kind of document handling method and mobile terminal
CN109002245A (en) A kind of operating method and mobile terminal of application interface
CN109982273A (en) A kind of information replying method and mobile terminal
CN109639738A (en) The method and terminal device of voice data transmission
CN109831582A (en) Non- response events processing method and terminal
CN109745699A (en) A kind of method and terminal device responding touch control operation
CN109348035A (en) A kind of recognition methods of telephone number and terminal device
CN109068084A (en) Video calling picture display process, mobile terminal and computer readable storage medium
CN108419283A (en) A kind of method and mobile terminal of WIFI hot spot scanning

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: 20180119

RJ01 Rejection of invention patent application after publication