CN107040610A - Method of data synchronization, device, storage medium, terminal and server - Google Patents
Method of data synchronization, device, storage medium, terminal and server Download PDFInfo
- Publication number
- CN107040610A CN107040610A CN201710393105.1A CN201710393105A CN107040610A CN 107040610 A CN107040610 A CN 107040610A CN 201710393105 A CN201710393105 A CN 201710393105A CN 107040610 A CN107040610 A CN 107040610A
- Authority
- CN
- China
- Prior art keywords
- terminal
- data
- synchronized
- server
- synchronization
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephonic Communication Services (AREA)
Abstract
The embodiment of the present invention provides a kind of method of data synchronization, device, storage medium, terminal and server.The method of data synchronization, comprises the following steps:Synchronization request is sent to server, the synchronization request is used to ask data to be synchronized to the server;The response message of the synchronization request is obtained at the server, the response message carries the data to be synchronized that are stored with the device identification of one or more second terminals, the second terminal;Target terminal is determined from one or more of second terminals, the target terminal is located in the preset range of the first terminal;The data to be synchronized are obtained from the target terminal;The data to be synchronized are obtained from the target terminal.The present invention has the beneficial effect for saving network traffics.
Description
Technical field
The present invention relates to the communications field, more particularly to a kind of method of data synchronization, device, storage medium, terminal and
Server.
Background technology
With the development of internet, the use of cloud is more and more extensive.In the prior art, frequent user is often by hand
Data in the terminals such as machine are backuped in Cloud Server, and the shared cloud account of multiple terminals of user often occurs
Situation.
When one of terminal needs to obtain the data of other-end backup, it can only be gone by network from the Cloud Server
It is middle to download, it is very big consumption for the flow of user for the larger data of data volume, is unfavorable for reducing cost, and
Also certain pressure can be produced to cloud server end.
The content of the invention
The embodiment of the present invention provides a kind of method of data synchronization, device, storage medium, terminal and server, to save
Network traffics.
The embodiment of the present invention provides a kind of method of data synchronization, and applied in first terminal, methods described includes following step
Suddenly:
Synchronization request is sent to server, the synchronization request is used to ask data to be synchronized to the server;
The response message of the synchronization request is obtained at the server, the response message carries one or more
Be stored with the data to be synchronized in the device identification of second terminal, the second terminal;
Target terminal is determined from one or more of second terminals, the target terminal is located at the first terminal
Preset range in;
The data to be synchronized are obtained from the target terminal.
The embodiment of the present invention provides a kind of data synchronization unit, including:
First sending module, for sending synchronization request to server, the synchronization request is used for please to the server
Seek data to be synchronized;
First acquisition module, the response message for obtaining the synchronization request at the server, the response disappears
Breath carries the data to be synchronized that are stored with the device identification of second terminal, the second terminal;
First determining module, for determining target terminal from one or more of second terminals, the target is whole
End is in the preset range of the first terminal;
Second acquisition module, for obtaining the data to be synchronized from the target terminal.
The embodiment of the present invention provides a kind of storage medium, and be stored with a plurality of instruction, and applied in first terminal, its feature exists
In the instruction is loaded and the method described in performing any of the above-described as processor.
A kind of terminal of the embodiment of the present invention, including memory, processor and store on a memory and can be on a processor
The computer program of operation, realizes the method described in any of the above-described during the computing device computer program.
The embodiment of the present invention provides a kind of method of data synchronization, applied in server, the described method comprises the following steps:
The synchronization request that first terminal is sent is received, the synchronization request is used to ask the data to be synchronized;
Determined according to the synchronization request and treat same described in being stored with one or more second terminals, the second terminal
Step data;
The device identification of each second terminal is sent to the first terminal.
The embodiment of the present invention provides a kind of server, including memory, processor and stores on a memory and can locate
The computer program run on reason device, the above method is realized described in the computing device during computer program.
Brief description of the drawings
Fig. 1 is the method for data synchronization and the schematic diagram of a scenario of device in one embodiment of the present invention.
Fig. 2 be one embodiment of the present invention in method of data synchronization the first flow chart.
Fig. 3 be one embodiment of the present invention in method of data synchronization second of flow chart.
Fig. 4 be one embodiment of the present invention in method of data synchronization the third flow chart.
Fig. 5 be one embodiment of the present invention in data synchronization unit the first structure chart.
Fig. 6 be one embodiment of the present invention in data synchronization unit second of structure chart.
Fig. 7 be one embodiment of the present invention in data synchronization unit the third structure chart.
Fig. 8 be one embodiment of the present invention in data synchronization unit the 4th kind of structure chart.
Fig. 9 be one embodiment of the present invention in terminal the first structure chart.
Figure 10 be one embodiment of the present invention in terminal second of structure chart.
Figure 11 be one embodiment of the present invention in method of data synchronization flow chart.
Figure 12 be one embodiment of the present invention in data synchronization unit structure chart.
Figure 13 be one embodiment of the present invention in server structure chart.
Embodiment
It refer to schema, wherein identical element numbers represent identical component, principle of the invention is to implement one
Illustrated in appropriate computing environment.The following description is that, based on the illustrated specific embodiment of the invention, it should not be by
It is considered as the limitation present invention other specific embodiments not detailed herein.
In the following description, specific embodiment of the invention will be referred to as the operation performed by one or multi-section computer
The step of and symbol illustrate, unless otherwise stating clearly.Therefore, it will appreciate that these steps and operation, be carried for several times wherein having
To be performed by computer, include by representing with the computer disposal list of the electronic signal of the data in a structuring pattern
Member is manipulated.At this manipulation transforms data or the position being maintained in the memory system of the computer, it can match somebody with somebody again
Put or change in a manner familiar to those skilled in the art in addition the running of the computer.The data knot that the data are maintained
Structure is the provider location of the internal memory, and it has the particular characteristics as defined in the data format.But, the principle of the invention is with above-mentioned
Word illustrates, it is not represented as a kind of limitation, those skilled in the art will appreciate that plurality of step as described below and
Operation also may be implemented among hardware.
Refer to Fig. 1 and Fig. 2, Fig. 1 be a method of data synchronization of the invention and device schematic diagram of a scenario;The data are same
One step process and device are mainly used in terminal, in the mobile terminal such as mobile phone, IPAD.
Fig. 2 is the flow chart of the method for data synchronization in one embodiment of the present invention.The method of data synchronization is used for the
In one terminal, the method for data synchronization comprises the following steps:
S101, transmission synchronization request are to server, and the synchronization request is used to ask data to be synchronized to the server.
Wherein, first terminal sends synchronization request to server by internet.Carried in the synchronization request to be synchronized
The Data Identification of data.Server is received after the synchronization request, extracts the Data Identification of data to be synchronized.
S102, the response message for obtaining at the server synchronization request, the response message carry one
Or the device identification of multiple second terminals, be stored with the second terminal data to be synchronized.
Wherein, being set up in server has concordance list.The mapping relations for Backup Data and the terminal of being stored with the concordance list, lead to
Cross the concordance list and can find certain Backup Data and be present in which terminal.Therefore, server can be according to the data to be synchronized
Data Identification one or more second terminals are inquired from concordance list, be stored with the data to be synchronized in the second terminal.
The quantity of the second terminal may be one, it is also possible to be multiple.
S103, determine target terminal from one or more of second terminals, the target terminal is located at described the
In the preset range of one terminal.
Wherein, the preset range can refer to the effective range of short-distance wireless communication, can also refer to short-distance wireless communication
The preferable scope of communication quality.
If second terminal number is multiple, there may be some second terminals to be located in the preset range of first terminal, have
Some second terminals are located at outside the preset range of first terminal.Therefore need to pick out one second from the plurality of second terminal
Terminal can select suitable target whole as target terminal by the positional information of first terminal and each second terminal
End.Wherein, the number of the target terminal can be one, or multiple.
S104, from the target terminal obtain the data to be synchronized.
In this step, the first terminal sets up short-distance wireless according to the device identification of target terminal with the target terminal
Communication connection, for example, Bluetooth communication, ZigBee communication etc..After first terminal is connected with target terminal foundation, from the target
End obtains data to be synchronized.
From the foregoing, it will be observed that method of data synchronization provided in an embodiment of the present invention is by sending synchronization request to server, it is described
Synchronization request is used to ask data to be synchronized to the server;The response that the synchronization request is obtained at the server disappears
Breath, the response message carries described treat that be stored with the device identification of one or more second terminals, the second terminal
Synchrodata;Target terminal is determined from one or more of second terminals, the target terminal is located at described first eventually
In the preset range at end;The data to be synchronized are obtained from the target terminal;So as to complete data syn-chronization operation, with saving
The beneficial effect of flow.
Fig. 3 is the flow chart of the method for data synchronization in one embodiment of the present invention.The method of data synchronization is used for the
In one terminal, the method for data synchronization comprises the following steps:
S201, when detecting synchronous triggering signal, obtain the data volume of data to be synchronized.
In this step, the data to be synchronized typically can be lteral data, image data or application software, for example,
It can be batch photo.After User logs in cloud account, choose after data to be synchronized, can generate same from the list of user interface
Trigger signal is walked, the synchronous triggering signal is used to trigger first terminal generation synchronization request.In certain embodiments, in the use
Not only need the Data Identification of synchrodata in the list at family interface, need the data volume of synchrodata.For example, as user crowd
When amount have selected 100 photos as synchrodata, the data volume of 100 photos is added to obtain by first terminal automatically
The data volume of data to be synchronized.
If the data volume of S202, data to be synchronized is more than predetermined value, synchronization request is generated.
If, can be directly by internet from service it is to be appreciated that the data volume of data to be synchronized is less than predetermined value
Device obtains data to be synchronized.The predetermined value can be set as 20MB or 30MB etc..
In this step, the synchronization request of the generation is used to ask data to be synchronized to the server.
S203, transmission synchronization request are to server, and the synchronization request is used to ask data to be synchronized to the server.
Wherein, first terminal sends synchronization request to server by internet.Carried in the synchronization request to be synchronized
The Data Identification of data.Server is received after the synchronization request, extracts the Data Identification of data to be synchronized.
S204, the response message for obtaining at the server synchronization request, the response message carry one
Or the device identification of multiple second terminals, be stored with the second terminal data to be synchronized.
Wherein, being set up in server has concordance list.The mapping relations for Backup Data and the terminal of being stored with the concordance list, lead to
Cross the concordance list and can find certain Backup Data and be present in which terminal.Therefore, server can be according to the data to be synchronized
Data Identification one or more second terminals are inquired from concordance list, be stored with the data to be synchronized in the second terminal.
The quantity of the second terminal may be one, it is also possible to be multiple.
If it is to be appreciated that server is by search index table, finding that second with the data to be synchronized is not present
Terminal, then directly give the first terminal by the data to be synchronized by the Internet transmission.
S205, determine target terminal from one or more of second terminals, the target terminal is located at described the
In the preset range of one terminal.
Wherein, the preset range can refer to the effective range of short-distance wireless communication, can also refer to short-distance wireless communication
The preferable scope of communication quality.
If the number of second terminal is multiple (i.e. at least two), there may be some second terminals to be located at first terminal
In preset range, there are some second terminals to be located at outside the preset range of first terminal.Accordingly, it would be desirable to pick out a second terminal
As target terminal, suitable target terminal can be selected by the positional information of first terminal and each second terminal.
In certain embodiments, step S205 includes:
S2051, the second place information for obtaining each second terminal.
The second place information can be loaded directly into the response message returned according to synchronization request of server, the
One terminal can extract the second place information of each second terminal from the response message.Certainly, first terminal can be sent out
Inquiry request is sent to server, the inquiry request is used for the second place information that each second terminal is asked to server.
S2052, the first position information for obtaining the first terminal.Wherein, first terminal can be determined by the GPS carried
Position module obtains the first position information of itself.
S2053, the second place information according to each second terminal, and first position information, determine target terminal.
Wherein, step S2053 can include:
Target terminal is determined according to the first position information and the second place information, the target terminal is
The second terminal nearest apart from the first terminal.Because distance is near it is thus possible to improve communication quality and speed.
Step S2053 can also include:
A, at least one terminal to be selected determined according to the first position information and the second place information, it is described
Terminal to be selected is located in the preset range of the first terminal.In this step, can be by calculating each second terminal and the
The distance between one terminal determines terminal to be selected.
B, the terminal characteristic information for obtaining each terminal to be selected, the terminal characteristic information include the place of terminal to be selected
Manage device occupancy and/or information about power.
C, target terminal determined from least one described terminal to be selected according to the terminal characteristic information.
Wherein, when the terminal characteristic information only includes electricity, then electricity most sufficient terminal to be selected is selected to be used as mesh
Mark terminal.When the terminal characteristic information only includes processor occupancy, then the minimum terminal conduct to be selected of occupancy is selected
Target terminal.When the terminal characteristic information includes processor occupancy and electricity, then the target terminal is that electricity is more than in advance
The minimum terminal to be selected of processor occupancy in the terminal to be selected of definite value.
In further embodiments, first terminal has communication list, and the communication list, which is used to store, is located at first terminal
Preset range in terminal device identification.Step S205 includes:
S2054, at least one terminal to be selected, institute determined from one or more of second terminals according to communication list
Terminal to be selected is stated in the preset range of the first terminal.Generally, when terminal opens short-distance wireless communication
During function, the device identification for the terminal that can be communicated will be searched out automatically in its communication list and the device identification is stored
In communication list.
S2055, from least one terminal to be selected determine target terminal.
In step S2055, first terminal obtains the signal strength values for each terminal to be selected that first terminal is detected.
The signal strength values are stored and in the communication list;Then, determined according to signal strength values from least one terminal to be selected
Go out target terminal.Wherein, the target terminal is the maximum terminal to be selected of signal strength values.
S206, from the target terminal obtain the data to be synchronized.
In this step, it directly can send connection request to target terminal to set up connection by first terminal.Also may be used
To send link order to target terminal by server, then cause the target terminal is set up with first terminal to be connected.
As shown in figure 4, step S206 includes:
S2061, set up with target terminal after short-distance wireless communication is connected, receive the number to be synchronized that target terminal is sent
According to, and the detection connection status in real time during data to be synchronized are received.Due to that may go out during data are received
Existing target terminal leaves efficient communication scope, or situation about being shut down due to not enough power supply, therefore, is receiving data to be synchronized
During to detect connection status in real time, it is corresponding in order to be carried out when disconnecting and data to be synchronized are not finished receiving
Operation.
S2062, when detect connection disconnect and data receiver to be synchronized do not complete when, judge the data volume of not received data
Whether threshold value is more than.It can calculate and not connect according to the total amount of data size of data to be synchronized and the data volume being currently received
Receive the data volume of data.The threshold value can be 10MB, 20MB etc..
If the data volume of S2063 not received data is more than threshold value, so that not received data is as data to be synchronized and performs
The step of sending synchronization request to server, that is to say and go to step S203.
In this step, if the data volume of not received data is more than threshold value, number to be synchronized is used as using not received data
According to performing operation since step S203.
If the data volume of S2064, not received data in data to be synchronized is less than or equal to threshold value, synchronization request is sent
To be synchronized data of the server not received from server acquisition.If the data volume of not received data is less, it will not waste
Too many flow, directly can be obtained from server by network.
From the foregoing, it will be observed that method of data synchronization provided in an embodiment of the present invention is by sending synchronization request to server, it is described
Synchronization request is used to ask data to be synchronized to the server;The response that the synchronization request is obtained at the server disappears
Breath, the response message carries described treat that be stored with the device identification of one or more second terminals, the second terminal
Synchrodata;Target terminal is determined from one or more of second terminals, the target terminal is located at described first eventually
In the preset range at end;The data to be synchronized are obtained from the target terminal;So as to complete data syn-chronization operation, with saving
The beneficial effect of flow.
Fig. 5 is refer to, Fig. 5 is the data synchronization unit in one embodiment of the present invention, and the data synchronization unit 300 is wrapped
Include:First sending module 301, the first acquisition module 302, the first determining module 303 and the second acquisition module 304.
Wherein, first sending module 301 is used to send synchronization request to server, and the synchronization request is used for described
Server asks data to be synchronized.When first terminal by internet transmission synchronization request to server.Taken in the synchronization request
Data Identification with data to be synchronized.Server is received after the synchronization request, extracts the Data Identification of data to be synchronized.
First acquisition module 302 is used at the server response message for obtaining the synchronization request, the response
Message carries the data to be synchronized that are stored with the device identification of second terminal, the second terminal.Wherein, in server
Foundation has concordance list.The mapping relations for Backup Data and the terminal of being stored with the concordance list, certain can be found by the concordance list
Which terminal Backup Data is present in.Therefore, server can be according to the Data Identification of the data to be synchronized from concordance list
One or more second terminals are inquired, be stored with the data to be synchronized in the second terminal.The quantity of the second terminal may
For one, it is also possible to be multiple.
First determining module 303 is used to determine target terminal, the target from one or more of second terminals
Terminal is located in the preset range of the first terminal.Wherein, the preset range can refer to effective model of short-distance wireless communication
Enclose, the preferable scope of communication quality of short-distance wireless communication can also be referred to.
In one or more second terminals, there may be some second terminals to be located in the preset range of first terminal, have
Some second terminals are located at outside the preset range of first terminal;Therefore need to pick out one from one or more second terminals
Individual second terminal is as target terminal, and it is suitable to be selected by the positional information of first terminal and each second terminal
Target terminal.
Second acquisition module 304 is used to obtain the data to be synchronized from the target terminal.The first terminal is according to mesh
The device identification of mark terminal is set up short-distance wireless communication with the target terminal and is connected, for example, Bluetooth communication, ZigBee communication
Deng.After first terminal is connected with target terminal foundation, data to be synchronized are obtained at the target terminal.
In certain embodiments, as shown in fig. 6, first determining module 303 includes:First acquisition unit 3031, second
The determining unit 3033 of acquiring unit 3032 and first.
Wherein, the first acquisition unit 3031 is used for the second place information for obtaining each second terminal.At some
In embodiment, the second place information can be loaded directly into the response message returned according to synchronization request of server,
First terminal can extract the second place information of each second terminal from the response message.In further embodiments,
First terminal can send inquiry request to server, and the inquiry request is used to ask the second of each second terminal to server
Positional information.
Wherein, the second acquisition unit 3032 is used for the first position information for obtaining the first terminal.Wherein, this first
Determining unit 3033 is used to determine target terminal according to the first position information and the second place information.It is actual to answer
In, the first determining unit 3033 according to the second place information of each second terminal, and the first position information,
Determine target terminal.Wherein, the first determining unit 3033 can determine target terminal by two ways.
Method one:First terminal can be according to first position information and second place information, will be apart from first terminal most
Near second terminal is defined as target terminal.
Method two:First terminal obtains the terminal characteristic information of each terminal to be selected, and the terminal characteristic information includes to be selected
The processor occupancy and information about power of terminal;First terminal according to terminal characteristic information from least one terminal to be selected really
Make target terminal.Wherein, the target terminal is that the processor occupancy that electricity is more than in the terminal to be selected of predetermined value is minimum
Terminal to be selected.
In further embodiments, as shown in fig. 7, first determining module 303 includes:Check unit 3034 and second
Determining unit 3035.
Wherein, check that unit 3034 is used for the communication list for checking the terminal, with whole from one or more of second
At least one terminal to be selected is determined in end, the communication list is used to store in the preset range of the first terminal
The device identification of terminal, the terminal to be selected is located in the preset range of the first terminal.Second determining unit 3035 is used
In determining target terminal from least one described terminal to be selected.Second determining unit 3035 is used to obtain the first terminal
The signal strength values of each terminal to be selected detected;According to the signal strength values from least one described terminal to be selected
Middle determination target terminal.
Second acquisition module 304 includes detection unit 3041, judging unit 3042, trigger element 3043.
Detection unit 3041 is used for after being connected with target terminal foundation, receives the data to be synchronized that target terminal is sent, and
Detect connection status in real time during data to be synchronized are received.
Judging unit 3042 is used for when detecting connection disconnection and data receiver to be synchronized is not completed, and judgement does not receive number
According to data volume whether be more than threshold value;
If the data volume that trigger element 3043 is used for not received data is more than threshold value, using not received data as to be synchronized
Data simultaneously trigger the first sending module transmission synchronization request to server.
In further embodiments, Fig. 8 is refer to, the data synchronization unit 300 can also include one the 3rd acquisition module
305 and generation module 306.
Wherein, when the 3rd acquisition module 305 is used to detect synchronous triggering signal, the data volume of data to be synchronized is obtained.
If the data volume that generation module 306 is used for data to be synchronized is more than predetermined value, synchronization request is generated.
The embodiment of the present invention additionally provides a kind of storage medium, and be stored with a plurality of instruction, described applied in first terminal
Instruction is loaded by processor and performs the method described in any of the above-described embodiment.
Fig. 9 is refer to, the embodiment of the present invention additionally provides a kind of terminal 400, the terminal 400 includes memory 401, processing
Device 402 and the computer program that can be run on the memory 401 and on the processor 402 is stored in, the processor 402 is held
The method in above-described embodiment is realized during the row computer program.For example perform following steps:
Synchronization request is sent to server, the synchronization request is used to ask data to be synchronized to the server;
The response message of the synchronization request is obtained at the server, the response message carries one or more
Be stored with the data to be synchronized in the device identification of second terminal, the second terminal;
Target terminal is determined from one or more of second terminals, the target terminal is located at the first terminal
Preset range in;
The data to be synchronized are obtained from the target terminal.
Refer to Figure 10, the embodiment of the present invention also provides a kind of terminal 500, the terminal 500 can include radio frequency (RF,
Radio Frequency) circuit 501, include the memories 502, defeated of one or more computer-readable recording mediums
Enter unit 503, display unit 504, sensor 505, voicefrequency circuit 506, Wireless Fidelity (WiFi, Wireless Fidelity)
Module 507, include the part such as one or the processor 508 and power supply 509 of more than one processing core.This area skill
Art personnel are appreciated that the restriction of the terminal structure shown in Figure 10 not structure paired terminal, can include than illustrate it is more or
Less part, either combines some parts or different parts arrangement.Wherein:
RF circuits 501 can be used for receive and send messages or communication process in, the reception and transmission of signal, especially, by base station
After downlink information is received, transfer to one or more than one processor 508 is handled;In addition, being sent to up data are related to
Base station.Generally, RF circuits 501 include but is not limited to antenna, at least one amplifier, tuner, one or more oscillators, use
Family identity module (SIM, Subscriber Identity Module) card, transceiver, coupler, low-noise amplifier
(LNA, Low Noise Amplifier), duplexer etc..In addition, RF circuits 501 can also pass through radio communication and network and its
His equipment communication.The radio communication can use any communication standard or agreement, including but not limited to global system for mobile telecommunications system
Unite (GSM, Global System of Mobile communication), general packet radio service (GPRS, General
Packet Radio Service), CDMA (CDMA, Code Division Multiple Access), wideband code division it is many
Location (WCDMA, Wideband Code Division Multiple Access), Long Term Evolution (LTE, Long Term
Evolution), Email, Short Message Service (SMS, Short Messaging Service) etc..
Memory 502 can be used for storage software program and module, and processor 508 is stored in memory 502 by operation
Software program and module, so as to perform various function application and data processing.Memory 502 can mainly include storage journey
Sequence area and storage data field, wherein, the application program (ratio that storing program area can be needed for storage program area, at least one function
Such as sound-playing function, image player function) etc.;Storage data field can be stored uses created data according to terminal
(such as voice data, phone directory etc.) etc..In addition, memory 502 can include high-speed random access memory, it can also include
Nonvolatile memory, for example, at least one disk memory, flush memory device or other volatile solid-state parts.Phase
Ying Di, memory 502 can also include Memory Controller, to provide processor 508 and input block 503 to memory 502
Access.
Input block 503 can be used for the numeral or character information for receiving input, and generation to be set with user and function
The relevant keyboard of control, mouse, action bars, optics or the input of trace ball signal.Specifically, in a specific embodiment
In, input block 503 may include touch sensitive surface and other input equipments.Touch sensitive surface, also referred to as touch display screen or tactile
Control plate, collect user on or near it touch operation (such as user using any suitable object such as finger, stylus or
Operation of the annex on touch sensitive surface or near touch sensitive surface), and filled according to the corresponding connection of formula set in advance driving
Put.Optionally, touch sensitive surface may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus is examined
The touch orientation of user is surveyed, and detects the signal that touch operation is brought, touch controller is transmitted a signal to;Touch controller from
Touch information is received on touch detecting apparatus, and is converted into contact coordinate, then gives processor 508, and can reception processing
Order that device 508 is sent simultaneously is performed.Furthermore, it is possible to a variety of using resistance-type, condenser type, infrared ray and surface acoustic wave etc.
Type realizes touch sensitive surface.Except touch sensitive surface, input block 503 can also include other input equipments.Specifically, other are defeated
Physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse can be included but is not limited to by entering equipment
One or more in mark, action bars etc..
Display unit 504 can be used for the various of the information that is inputted by user of display or the information for being supplied to user and terminal
Graphical user interface, these graphical user interface can be made up of figure, text, icon, video and its any combination.Display
Unit 504 may include display panel, optionally, can using liquid crystal display (LCD, Liquid Crystal Display),
The forms such as Organic Light Emitting Diode (OLED, Organic Light-Emitting Diode) configure display panel.Further
, touch sensitive surface can cover display panel, after touch sensitive surface detects the touch operation on or near it, send processing to
Device 308 is provided accordingly on a display panel with determining the type of touch event with preprocessor 508 according to the type of touch event
Visual output.Although in Fig. 10, touch sensitive surface is input to be realized as two independent parts and defeated with display panel
Enter function, but it is in some embodiments it is possible to touch sensitive surface and display panel is integrated and realize input and output function.
Terminal may also include at least one sensor 505, such as optical sensor, motion sensor and other sensors.
Specifically, optical sensor may include ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to ambient light
Light and shade adjust the brightness of display panel, proximity transducer can close display panel and/or the back of the body when terminal is moved in one's ear
Light.As one kind of motion sensor, gravity accelerometer can detect in all directions (generally three axles) acceleration
Size, can detect that size and the direction of gravity when static, available for identification mobile phone posture application (such as horizontal/vertical screen switching,
Dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;It can also configure as terminal
The other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Voicefrequency circuit 506, loudspeaker, microphone can provide the COBBAIF between user and terminal.Voicefrequency circuit 506 can
Electric signal after the voice data received is changed, is transferred to loudspeaker, and voice signal output is converted to by loudspeaker;It is another
The voice signal of collection is converted to electric signal by aspect, microphone, by voicefrequency circuit 306 receive after be converted to voice data, then
After voice data output processor 508 is handled, through RF circuits 301 to be sent to such as another terminal, or by voice data
Output is to memory 502 so as to further processing.Voicefrequency circuit 306 is also possible that earphone jack, with provide peripheral hardware earphone with
The communication of terminal.
WiFi belongs to short range wireless transmission technology, and terminal can help user's transceiver electronicses postal by WiFi module 507
Part, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Figure 10 is shown
WiFi module 507, but it is understood that, it is simultaneously not belonging to must be configured into for terminal, can not change as needed completely
Become in the essential scope of invention and omit.
Processor 508 is the control centre of terminal, using various interfaces and the various pieces of connection whole mobile phone, is led to
Cross operation or perform and be stored in software program and/or module in memory 502, and call and be stored in memory 502
Data, perform the various functions and processing data of terminal, so as to carry out integral monitoring to mobile phone.Optionally, processor 508 can be wrapped
Include one or more processing cores;It is preferred that, processor 508 can integrated application processor and modem processor, wherein, should
Operating system, user interface and application program etc. are mainly handled with processor, modem processor mainly handles radio communication.
It is understood that above-mentioned modem processor can not also be integrated into processor 508.
Terminal also includes the power supply 509 (such as battery) powered to all parts, it is preferred that power supply can pass through power supply pipe
Reason system and processor 508 are logically contiguous, so as to realize management charging, electric discharge and power managed by power-supply management system
Etc. function.Power supply 509 can also include one or more direct current or AC power, recharging system, power failure inspection
The random component such as slowdown monitoring circuit, power supply changeover device or inverter, power supply status indicator.
Although not shown, terminal can also include camera, bluetooth module etc., will not be repeated here.Specifically in this implementation
In example, the processor 508 in terminal can be corresponding by the process of one or more application program according to following instruction
Executable file is loaded into memory 502, and the application program being stored in memory 502 is run by processor 508, from
And realize following functions:
Synchronization request is sent to server, the synchronization request is used to ask data to be synchronized to the server;
The response message of the synchronization request is obtained at the server, the response message carries one or more
Be stored with the data to be synchronized in the device identification of second terminal, the second terminal;
Target terminal is determined from one or more of second terminals, the target terminal is located at the first terminal
Preset range in;
The data to be synchronized are obtained from the target terminal.
Figure 11 is refer to, the embodiment of the present invention additionally provides a kind of method of data synchronization, applied in server, the data
Synchronous method comprises the following steps:
S601, the synchronization request for receiving first terminal transmission, the synchronization request are used to ask the data to be synchronized;
S602, determined and stored in one or more second terminals, the second terminal according to the synchronization request
State data to be synchronized;
S603, the device identification of each second terminal is sent to the first terminal.
Method of data synchronization provided in an embodiment of the present invention has the beneficial effect for saving flow.
Figure 12 is refer to, the embodiment of the present invention additionally provides a kind of data synchronization unit, including:Receiving module 701, second
Determining module 702 and sending module 703.
Receiving module 701 is used for the synchronization request for receiving first terminal transmission, and the synchronization request is used to ask described treat
Synchrodata;Second determining module 702 is used to determine one or more second terminals, described second according to the synchronization request
Be stored with the data to be synchronized in terminal;Sending module 703 is used to the device identification of each second terminal being sent to
The first terminal.
It refer to Figure 13, the embodiment of the present invention additionally provides a kind of server, including memory 801, processor 802 and deposit
The computer program that can be run on memory 801 and on processor 802 is stored up, the processor 802 performs the computer
The above method is realized during program, for example, performs following methods:
The synchronization request that first terminal is sent is received, synchronization request is used to ask data to be synchronized;
The data to be synchronized that are stored with one or more second terminals, second terminal are determined according to synchronization request;
The device identification of each second terminal is sent to first terminal.
Server provided in an embodiment of the present invention has the beneficial effect for saving flow.
There is provided herein the various operations of embodiment.In one embodiment, described one or more operations can be with structure
The computer-readable instruction stored on into one or more computer-readable mediums, it will cause eventually when being performed by electronic equipment
End performs the operation.The order for describing some or all of operations should not be construed as to imply that these operations necessarily order phase
Close.It will be appreciated by those skilled in the art that the alternative sequence of the benefit with this specification.Furthermore, it is to be understood that not being
All operations must exist in each embodiment provided in this article.
Moreover, word " preferably " used herein means serving as example, example or illustration.Feng Wen is described as " preferably
" any aspect or design be not necessarily to be construed as than other aspect or design it is more favourable.On the contrary, the use purport of word " preferably "
Concept is being proposed in a concrete fashion.Term "or" as used in this application is intended to mean the "or" included and non-excluded
"or".I.e., unless otherwise or clear from the context, " X means that nature includes any one of arrangement using A or B ".
That is, if X uses A;X uses B;Or X uses A and B both, then " X is met using A or B " in foregoing any example.
Although moreover, the disclosure, this area skill has shown and described relative to one or more implementations
Art personnel are based on the reading to the specification and drawings and understand it will be appreciated that equivalent variations and modification.The disclosure include it is all this
The modifications and variations of sample, and be limited only by the scope of the following claims.Particularly with by said modules (such as element,
Resource etc.) various functions that perform, it is intended to correspond to the specified work(for performing the component for describing the term of such component
The random component (unless otherwise instructed) of energy (for example it is functionally of equal value), it is illustrated herein with execution in structure
The disclosure exemplary implementations in function open structure it is not equivalent.Although in addition, the special characteristic of the disclosure is
Through being disclosed relative to the only one in some implementations, but this feature can with such as can be to given or application-specific
For be expect and other favourable implementations other one or more combinations of features.Moreover, with regard to term " comprising ", " tool
Have ", " containing " or its deformation be used in embodiment or claim for, such term be intended to with term
The similar mode of "comprising" includes.
Each functional unit in the embodiment of the present invention can be integrated in a processing module or unit list
Solely be physically present, can also two or more units be integrated in a module.Above-mentioned integrated module can both be used
The form of hardware is realized, it would however also be possible to employ the form of software function module is realized.If the integrated module is with software function
The form of module is realized and is situated between as independent production marketing or in use, an embodied on computer readable storage can also be stored in
In matter.Storage medium mentioned above can be read-only storage, disk or CD etc..Above-mentioned each device or system, can be with
Perform the method in correlation method embodiment.
In summary, although the present invention it is disclosed above with preferred embodiment, but above preferred embodiment and be not used to limit
The system present invention, one of ordinary skill in the art without departing from the spirit and scope of the present invention, can make various changes and profit
Adorn, therefore protection scope of the present invention is defined by the scope that claim is defined.
Claims (19)
1. a kind of method of data synchronization, applied in first terminal, it is characterised in that the described method comprises the following steps:
Synchronization request is sent to server, the synchronization request is used to ask data to be synchronized to the server;
The response message of the synchronization request is obtained at the server, the response message carries one or more second
Be stored with the data to be synchronized in the device identification of terminal, the second terminal;
Target terminal is determined from one or more of second terminals, the target terminal is located at the pre- of the first terminal
If in scope;
The data to be synchronized are obtained from the target terminal.
2. method of data synchronization according to claim 1, it is characterised in that the number of the second terminal is at least two
It is individual, it is described to include the step of determine target terminal from one or more of second terminals:
Obtain the second place information of each second terminal;
Obtain the first position information of the first terminal;
According to the second place information of each second terminal, and the first position information, determine that target is whole
End.
3. method of data synchronization according to claim 2, it is characterised in that it is described according to the first position information and
The step of second place information determines target terminal includes:
According to the first position information and the second place information, by the second terminal nearest apart from the first terminal
It is defined as target terminal.
4. method of data synchronization according to claim 2, it is characterised in that it is described according to the first position information and
The step of second place information determines target terminal includes:
At least one terminal to be selected, the end to be selected are determined according to the first position information and the second place information
End is in the preset range of the first terminal;
The terminal characteristic information of each terminal to be selected is obtained, the terminal characteristic information includes the processing of the terminal to be selected
Device occupancy and/or information about power;
Target terminal is determined from least one described terminal to be selected according to the terminal characteristic information.
5. method of data synchronization according to claim 1, it is characterised in that the first terminal includes communication list, institute
State communication list be used for store be located at the first terminal preset range in terminal device identification, the second terminal
Number is at least two, described to include the step of determine target terminal from one or more of second terminals:
At least one terminal to be selected is determined from one or more of second terminals according to the communication list;
Target terminal is determined from least one described terminal to be selected.
6. method of data synchronization according to claim 5, it is characterised in that described from least one described terminal to be selected
The step of determining target terminal includes:
Obtain the signal strength values for each terminal to be selected that the first terminal is detected;
According to the signal strength values target terminal is determined from least one described terminal to be selected.
7. method of data synchronization according to claim 1, it is characterised in that the step of the transmission synchronization request to server
Before rapid, in addition to:
When detecting synchronous triggering signal, the data volume of data to be synchronized is obtained;
If the data volume of data to be synchronized is more than predetermined value, synchronization request is generated.
8. method of data synchronization according to claim 1, it is characterised in that described to be treated from described in target terminal acquisition
The step of synchrodata, includes:
Set up with target terminal after being connected, receive the data to be synchronized that target terminal is sent, and in the mistake for receiving data to be synchronized
The connection status of the target terminal and the first terminal is detected in journey in real time;
When the connection disconnection for detecting the target terminal and the first terminal, and the data receiver to be synchronized is unfinished
When, judge whether the data volume of not received data is more than threshold value;
If the data volume of the not received data is more than threshold value, so that the not received data is as data to be synchronized and performs hair
The step of sending synchronization request to server.
9. a kind of data synchronization unit, it is characterised in that including:
First sending module, for sending synchronization request to server, the synchronization request is used to treat to server request
Synchrodata;
First acquisition module, the response message for obtaining the synchronization request at the server, the response message is taken
Be stored with the data to be synchronized in device identification with one or more second terminals, the second terminal;
First determining module, for determining target terminal, the target terminal position from one or more of second terminals
In in the preset range of the first terminal;
Second acquisition module, for obtaining the data to be synchronized from the target terminal.
10. data synchronization unit according to claim 9, it is characterised in that first determining module includes:
First acquisition unit, the second place information for obtaining each second terminal;
Second acquisition unit, the first position information for obtaining the first terminal;
First determining unit, for the second place information according to each second terminal, and the first position
Information, determines target terminal.
11. data synchronization unit according to claim 10, it is characterised in that first determining unit is used for according to institute
First position information and the second place information are stated, the second terminal nearest apart from the first terminal is defined as target
Terminal.
12. data synchronization unit according to claim 10, it is characterised in that first determining unit is used for according to institute
State first position information and the second place information determines at least one terminal to be selected, the terminal to be selected is located at described
In the preset range of first terminal, and obtain the terminal characteristic information of each terminal to be selected, the terminal characteristic information bag
Include the processor occupancy and/or information about power of terminal to be selected;And for according to the terminal characteristic information from it is described at least
Target terminal is determined in one terminal to be selected.
13. data synchronization unit according to claim 9, it is characterised in that the first terminal includes communication list, institute
State communication list be used for store positioned at the first terminal preset range in terminal device identification, it is described first determination mould
Block includes:
Unit is checked, for determining that at least one is to be selected from one or more of second terminals according to the communication list
Terminal, the terminal to be selected is located in the preset range of the first terminal;
Second determining unit, for determining target terminal from least one described terminal to be selected.
14. data synchronization unit according to claim 13, it is characterised in that second determining unit is used for:
Obtain the signal strength values for each terminal to be selected that the first terminal is detected;
According to the signal strength values target terminal is determined from least one described terminal to be selected.
15. a kind of terminal, it is characterised in that including memory, processor and be stored on the memory and can be in processor
The computer program of upper operation, realizes the side as described in claim 1-8 is any during the computing device computer program
Method.
16. a kind of storage medium, be stored with a plurality of instruction, applied in first terminal, it is characterised in that the instruction is by handling
Method described in device loading and perform claim requirement any one of 1-8.
17. a kind of method of data synchronization, applied in server, it is characterised in that the described method comprises the following steps:
The synchronization request that first terminal is sent is received, the synchronization request is used to ask the data to be synchronized;
The number to be synchronized that is stored with one or more second terminals, the second terminal is determined according to the synchronization request
According to;
The device identification of each second terminal is sent to the first terminal.
18. a kind of data synchronization unit, it is characterised in that including:
Receiving module, the synchronization request for receiving first terminal transmission, the synchronization request is used to ask the number to be synchronized
According to;
Second determining module, for being determined according to the synchronization request in one or more second terminals, the second terminal
Be stored with the data to be synchronized;
Sending module, for the device identification of each second terminal to be sent into the first terminal.
19. a kind of server, it is characterised in that including memory, processor and store on a memory and can be on a processor
The computer program of operation, realizes method as claimed in claim 17 during computer program described in the computing device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710393105.1A CN107040610B (en) | 2017-05-27 | 2017-05-27 | Method of data synchronization, device, storage medium, terminal and server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710393105.1A CN107040610B (en) | 2017-05-27 | 2017-05-27 | Method of data synchronization, device, storage medium, terminal and server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107040610A true CN107040610A (en) | 2017-08-11 |
CN107040610B CN107040610B (en) | 2019-10-25 |
Family
ID=59540546
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710393105.1A Expired - Fee Related CN107040610B (en) | 2017-05-27 | 2017-05-27 | Method of data synchronization, device, storage medium, terminal and server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107040610B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108627173A (en) * | 2018-06-01 | 2018-10-09 | Oppo广东移动通信有限公司 | Air navigation aid, device, terminal, navigation server and storage medium |
CN110166562A (en) * | 2019-05-24 | 2019-08-23 | 东软集团股份有限公司 | Data synchronous method, apparatus, storage medium and electronic equipment |
CN110782985A (en) * | 2019-10-25 | 2020-02-11 | 腾讯科技(深圳)有限公司 | Feature processing method and related equipment |
CN111506439A (en) * | 2020-04-08 | 2020-08-07 | Tcl移动通信科技(宁波)有限公司 | Data acquisition method and device, storage medium and mobile terminal |
CN112187842A (en) * | 2019-07-04 | 2021-01-05 | 北京京东振世信息技术有限公司 | Local area network data processing system and local area network data processing method |
CN113347233A (en) * | 2021-05-20 | 2021-09-03 | 深圳软牛科技有限公司 | Method, device, equipment and storage medium for extracting call and WIFI data from cloud |
CN113779153A (en) * | 2021-09-15 | 2021-12-10 | 四川久远银海软件股份有限公司 | Data synchronization method and device, electronic equipment and storage medium |
CN114567645A (en) * | 2022-03-01 | 2022-05-31 | 深圳市潮流网络技术有限公司 | Backup method and device between communication devices, computer device and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1725691A (en) * | 2004-07-23 | 2006-01-25 | 腾讯科技(深圳)有限公司 | Data download method and system |
CN101425899A (en) * | 2007-10-31 | 2009-05-06 | 北大方正集团有限公司 | Method and system for publishing and distributing implementation |
CN103533093A (en) * | 2012-11-30 | 2014-01-22 | Tcl集团股份有限公司 | Data transmission method and system based on voices |
CN104754618A (en) * | 2013-12-31 | 2015-07-01 | 索尼公司 | Wireless data transmission method and device |
US20150379214A1 (en) * | 2014-06-30 | 2015-12-31 | Baxter Corporation Englewood | Managed medical information exchange |
-
2017
- 2017-05-27 CN CN201710393105.1A patent/CN107040610B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1725691A (en) * | 2004-07-23 | 2006-01-25 | 腾讯科技(深圳)有限公司 | Data download method and system |
CN101425899A (en) * | 2007-10-31 | 2009-05-06 | 北大方正集团有限公司 | Method and system for publishing and distributing implementation |
CN103533093A (en) * | 2012-11-30 | 2014-01-22 | Tcl集团股份有限公司 | Data transmission method and system based on voices |
CN104754618A (en) * | 2013-12-31 | 2015-07-01 | 索尼公司 | Wireless data transmission method and device |
US20150379214A1 (en) * | 2014-06-30 | 2015-12-31 | Baxter Corporation Englewood | Managed medical information exchange |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108627173A (en) * | 2018-06-01 | 2018-10-09 | Oppo广东移动通信有限公司 | Air navigation aid, device, terminal, navigation server and storage medium |
CN110166562A (en) * | 2019-05-24 | 2019-08-23 | 东软集团股份有限公司 | Data synchronous method, apparatus, storage medium and electronic equipment |
CN112187842A (en) * | 2019-07-04 | 2021-01-05 | 北京京东振世信息技术有限公司 | Local area network data processing system and local area network data processing method |
CN112187842B (en) * | 2019-07-04 | 2024-04-09 | 北京京东振世信息技术有限公司 | Local area network data processing system and local area network data processing method |
CN110782985A (en) * | 2019-10-25 | 2020-02-11 | 腾讯科技(深圳)有限公司 | Feature processing method and related equipment |
CN110782985B (en) * | 2019-10-25 | 2021-08-17 | 腾讯科技(深圳)有限公司 | Feature processing method and related equipment |
CN111506439A (en) * | 2020-04-08 | 2020-08-07 | Tcl移动通信科技(宁波)有限公司 | Data acquisition method and device, storage medium and mobile terminal |
CN111506439B (en) * | 2020-04-08 | 2024-04-09 | 北京兰格云商科技有限公司 | Data acquisition method and device, storage medium and mobile terminal |
CN113347233A (en) * | 2021-05-20 | 2021-09-03 | 深圳软牛科技有限公司 | Method, device, equipment and storage medium for extracting call and WIFI data from cloud |
CN113347233B (en) * | 2021-05-20 | 2022-09-20 | 深圳软牛科技有限公司 | Method, device, equipment and storage medium for extracting call and WIFI data from cloud |
CN113779153A (en) * | 2021-09-15 | 2021-12-10 | 四川久远银海软件股份有限公司 | Data synchronization method and device, electronic equipment and storage medium |
CN114567645A (en) * | 2022-03-01 | 2022-05-31 | 深圳市潮流网络技术有限公司 | Backup method and device between communication devices, computer device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN107040610B (en) | 2019-10-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107040610B (en) | Method of data synchronization, device, storage medium, terminal and server | |
CN106331213B (en) | A kind of domain name system DNS processing method and processing device | |
CN104519485B (en) | Communication means, device and system between a kind of terminal | |
CN104427074B (en) | A kind of methods, devices and systems for showing incoming information | |
CN106708554B (en) | Program operating method and device | |
CN104253873A (en) | Domain name parsing method, domain name server, domain name access method, system and terminal | |
CN105022616A (en) | Method and device for generating web page | |
CN104253740A (en) | Picture registration method, device and system | |
CN106786962A (en) | Charge control method, device and terminal | |
CN104699501B (en) | A kind of method and device for running application program | |
CN104142868A (en) | Connection establishment method and device | |
CN105302452A (en) | Gesture interaction-based operation method and device | |
CN106385485A (en) | Call recording method, call recording device and mobile terminal | |
CN107276602A (en) | Radio frequency interference processing method, device, storage medium and terminal | |
CN104424211A (en) | Microblog-based service data release method, device and system | |
CN107219951A (en) | Touch screen control method, device, storage medium and terminal device | |
CN106936516A (en) | Display screen dispaly state control method, storage medium and terminal | |
CN104679724A (en) | Page noting method and device | |
CN103488720A (en) | Method, system and client for viewing data | |
CN104901992B (en) | A kind of method and apparatus of resource transfers | |
CN104391629B (en) | The method of directive sending message, the method for display message, server and terminal | |
CN106681884B (en) | A kind of monitoring method and device of system calling | |
CN103399706A (en) | Page interaction method, device and terminal | |
CN111274463B (en) | Information display method, device and storage medium based on IM contact person grouping setting | |
CN105022621A (en) | Method and device for collecting session message and terminal |
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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20191025 |