CN105897811B - A kind of method of data synchronization and device - Google Patents

A kind of method of data synchronization and device Download PDF

Info

Publication number
CN105897811B
CN105897811B CN201510038885.9A CN201510038885A CN105897811B CN 105897811 B CN105897811 B CN 105897811B CN 201510038885 A CN201510038885 A CN 201510038885A CN 105897811 B CN105897811 B CN 105897811B
Authority
CN
China
Prior art keywords
geographical location
network
location information
mobile terminal
network quality
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510038885.9A
Other languages
Chinese (zh)
Other versions
CN105897811A (en
Inventor
蔡叶飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
Original Assignee
China Mobile Communications Group 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 China Mobile Communications Group Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201510038885.9A priority Critical patent/CN105897811B/en
Publication of CN105897811A publication Critical patent/CN105897811A/en
Application granted granted Critical
Publication of CN105897811B publication Critical patent/CN105897811B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a kind of game data synchronous method and devices, to realize the synchronization of game data in the case where network quality changes faster mobile network environment.The game data synchronous method, comprising: obtain geographical location information of the mobile terminal in different moments and successively form the first geographical location information set;In the first geographical location information set and pre-stored any second geographical location information sets match for determining current time, according to the geographical location of mobile terminal subsequent time described in the second geographical location information ensemble prediction;It is currently located the Network measurement information of the affiliated adjacent area in geographical location of serving cell and the mobile terminal subsequent time according to the mobile terminal, determines subsequent time network quality variation tendency;The data method of synchronization of subsequent time is determined according to the subsequent time network quality variation tendency determined.

Description

A kind of method of data synchronization and device
Technical field
The present invention relates to technical field of data processing more particularly to a kind of method of data synchronization and device.
Background technique
With development of Mobile Internet technology development and the raising of mobile terminal hardware configuration, carried out using mobile terminal online Game becomes the new selection of terminal user.How for user high quality is provided, smooth, the movement with good user experience Game on line is an extremely challenging technical field.
And for mobile online game, to give that user is good, high quality, smooth user experience, in addition to It is carried out other than continuous technological innovation on mobile terminal software and hardware, network quality is also the weight for influencing mobile online game quality Want one of factor.Due to game data with the process of game be it is continually changing, how to solve mobile terminal and server it Between game data it is synchronous, become one of key of mobile online game.
Currently, the mobile online game simultaneous techniques scheme of more mainstream is mainly include the following types: the whole network broadcast synchronization side Case, compensation synchronization scheme and prediction synchronization scheme, introduce it individually below.
(1) the whole network broadcast synchronization
The whole network broadcast synchronization is most simple and most basic mobile online game data synchronization scheme, basic thought It is to be recorded the game data of each game on line user by mobile terminal, and be sent to server, services simultaneously Device also sends the current game data of the user to all users of the whole network, and this synchronous method consumption resource is big, and very It is influenced by network environment fluctuation, user experience is poor.
(2) synchronization scheme is compensated
Another relatively common mobile online game data synchronization technology scheme is compensation synchronization scheme now, basic Thought is according to the time tolerance between server and mobile terminal, and server is when returning to mobile terminal for information, automatically Difference compensation is added, to avoid the nonsynchronous situation of data between each user or user and server.
(3) synchronization scheme is predicted
Another more typical mobile online game data synchronization technology scheme is prediction synchronization scheme.Its basic ideas is By the behavior of user within a certain period of time, a certain button is such as clicked, a certain action record is executed and gets off, and is a series of according to this User behavior predicts the behavior of user and this behavior model is sent to server, and is handled by server, To more effectively show to the behavior of each user, resource requirement is reduced.
At present several frequently seen mobile online game data synchronization technology scheme mainly for server and mobile terminal it Between the asynchronous problem of data propose that solution, main thought are to be modified game data, do not account for network The quality influence synchronous to data.Therefore, existing several game data synchronization schemes be often suitable only for network delay more In the case where fixed (such as fixed network environment, WiFi environment), and in a mobile environment, mobile terminal is often faced with extremely complex Network environment, network quality changes frequent occurrence, such as from 2G network switching to the network 4G, network bandwidth may occur up to a hundred Variation again, therefore, it is very fast that existing several mobile online game data synchronization technology schemes are unable to satisfy network quality variation Mobile network environment under game data it is synchronous.
Summary of the invention
The embodiment of the present invention provides a kind of method of data synchronization and device, to change faster mobile network in network quality Under network environment, the synchronization of data is realized.
The embodiment of the present invention provides a kind of method of data synchronization, comprising:
It obtains geographical location information of the mobile terminal in different moments and successively forms the first geographical location information set;
In the first geographical location information set and pre-stored any second geographical location information for determining current time When sets match, according to the geographical location of mobile terminal subsequent time described in the second geographical location information ensemble prediction;
Belonging to the geographical location for being currently located serving cell and the mobile terminal subsequent time according to the mobile terminal The Network measurement information of adjacent area determines subsequent time network quality variation tendency;
The data method of synchronization of subsequent time is determined according to the subsequent time network quality variation tendency determined.
The embodiment of the present invention provides a kind of game data synchronizing device, comprising:
Acquiring unit successively forms the first geography for obtaining geographical location information of the mobile terminal in different moments Location information set;
Position prediction unit, for the first geographical location information set for determining current time with it is pre-stored any When the second geographical location information sets match, according to a period of time under mobile terminal described in the second geographical location information ensemble prediction The geographical location at quarter;
Network quality prejudges unit, for being currently located under serving cell and the mobile terminal according to the mobile terminal The Network measurement information of the affiliated adjacent area in the geographical location at one moment determines subsequent time network quality variation tendency;
Data synchronisation unit changes for prejudging the subsequent time network quality that unit is determined according to the network quality Trend determines the data method of synchronization of subsequent time.
Method of data synchronization and device provided in an embodiment of the present invention obtain mobile terminal in the geographical location of different moments Information successively forms geographical location information set, if it is matched with pre-stored any geographical location information, according to pre- The possible geographical location of geographical location information ensemble prediction mobile terminal subsequent time first stored, and according to mobile terminal to clothes The Network measurement information of cell of being engaged in and adjacent area, prejudges the network quality variation tendency of subsequent time, and then according to subsequent time Network quality variation tendency determine the synchronous mode of data, change faster mobile network's ring in network quality to solve Under border, the synchronous problem of data is carried out according to network quality variation tendency.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention can be by written explanation Specifically noted structure is achieved and obtained in book, claims and attached drawing.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes a part of the invention, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the implementation process diagram of method of data synchronization in the embodiment of the present invention;
Fig. 2 is the structural schematic diagram of data synchronization unit in the embodiment of the present invention;
Fig. 3 is corresponding " travelling route " schematic diagram of pre-stored geographical location information set in the embodiment of the present invention;
Fig. 4 is the structural schematic diagram of data synchronization unit in the embodiment of the present invention.
Specific embodiment
Improve the user experience of mobile online game, it is important to allow users to during mobile online game, no It is intermittent obtain it is smooth include game operation and game operation is fed back etc., this dependent on mobile terminal and network side server it Between game data transmission it is whether smooth, since the network quality under mobile network environment is unstable, cause moving game data Transmission it is unstable, if the game data between mobile terminal and server is inconsistent, this will lead to moving game operation and The continuity of operational feedback is affected, and then influences user's game experiencing.Change faster move in network quality to realize Game data under dynamic network environment is synchronous, and the embodiment of the invention provides a kind of method of data synchronization and devices.
It should be noted that method of data synchronization provided in an embodiment of the present invention is suitable for mobile terminal needs and network side The application scenarios for carrying out real-time data synchronization or data interaction are particularly suitable for carrying out game on line etc. using mobile terminal Game data is synchronous.For ease of description, in following embodiment by taking game data is synchronous as an example.
Below in conjunction with Figure of description, preferred embodiment of the present invention will be described, it should be understood that described herein Preferred embodiment only for the purpose of illustrating and explaining the present invention and is not intended to limit the present invention, and in the absence of conflict, this hair The feature in embodiment and embodiment in bright can be combined with each other.
The user of mobile online game is usually to utilize chip time, such as road on and off duty etc., so that user is for moving The usage mode of dynamic game on line has certain regularity.Based on this, in the embodiment of the present invention, by collecting at mobile terminal When under moving condition, in the geographical location information of different moments, " travelling route " of a user can be determined (i.e. by more The geographical location information set that a geographical location information forms in a certain order), in this way, if subsequent detect use again Family can predict the geographical location of user's subsequent time, together when using mobile online game in " travelling route " When, as mobile terminal need periodically to itself where serving cell and adjacent area carry out network measure, formed measurement report Announcement is reported to base station.Due to being wherein currently located the Network measurement information of the adjacent area of serving cell comprising mobile terminal, thus, it can To prejudge mobile terminal in the network quality situation of change of subsequent time position, in turn, can be changed according to network quality Situation takes the different data methods of synchronization.
When initial, may and " travelling route " be not present in mobile terminal, in this case, movement can be used in user During terminal carries out game operation, different " rows is gradually built up by collecting geographical location information of the user in different moments Route line " simultaneously stores.As shown in Figure 1, in the embodiment of the present invention, " travelling route " determines flow diagram, may include with Lower step:
Whether S11, detection mobile terminal are in game state, if so, step S12 is executed, if not, executing step S15。
When it is implemented, can be periodically detected whether mobile terminal is in game state, if mobile terminal is in trip Play state then further judges whether mobile terminal is in moving condition, if it is not, then being periodically detected whether mobile terminal is located In game state, with when user carries out game operation using mobile terminal, process is collected in triggering starting " travelling route ".In order to Convenient for description, when mobile terminal being in game state and moving condition simultaneously below, referred to as the mobile terminal is in shift(ing) ring Game state under border.
S12, the geographical location information for obtaining mobile terminal.
When it is implemented, can use the GPS of mobile terminal configuration, (Global Positioning System, the whole world are fixed Position system) obtain the geographical location information of mobile terminal.
S13, judge whether mobile terminal is in moving condition, if so, executing step S14, otherwise, execute step S16.
When it is implemented, can be, but not limited to judge whether mobile terminal is in moving condition in accordance with the following methods:
Whether mode one, change judgement according to the mobile terminal geographical location of acquisition.
If the mobile terminal geographical location that the two neighboring moment obtains changes, it can determine that mobile terminal is in Moving condition can determine that mobile terminal stops moving if the mobile terminal geographical location that the two neighboring moment obtains is identical It is dynamic.
Mode two judges whether mobile terminal is in moving condition according to the Network measurement information of the mobile terminal.For example, It can judge whether mobile terminal is in moving condition according to whether the tracking area of mobile terminal changes.
The geographical location information that S14, record obtain.
When it is implemented, when determining that mobile terminal is in moving condition and is carrying out game operation, when recording current The geographical location of the mobile terminal obtained is carved, and waits the arrival in next period.
S15, it waits next period to reach, and executes step S11.
S16, judge that mobile terminal whether continuous multiple periods do not move, if so, step S17 is executed, if not, Then follow the steps S15.
When it is implemented, may determine that whether mobile terminal is continuously multiple (can preset, for example, can be set to 3) Period does not move, if so, illustrating that mobile terminal stops movement, then stores the geographical location information composition currently obtained Otherwise geographical location information set waits the arrival in next period.
The geographical location information set for the geographical location information composition that S17, storage currently obtain.
In this way, when reaching in each period, passing through collection when mobile terminal is under the game state under mobile environment In the geographical location of different moments mobile terminal, geographical location set can be successively formed according to acquisition sequence, it is assumed that be (G1, G2, G3... ... Gn)。
Movement is detected when it is implemented, (can preset, for example, it can be set to being 2 periods) if multiple periods When terminal is not in game state or is in game state but is not in moving condition, stop the geographical position for collecting mobile terminal It sets, and stores the geographical location set at current time, it is assumed that be (G1, G2, G3... ... Gn)。
By the above-mentioned means, mobile terminal, which can gradually collect multiple and different geographical location collection merging, is stored in movement eventually End is local, can be according to storage when subsequent detection is to the geographical location for the geographical location sets match being locally stored set The lower geographical location of geographical location ensemble prediction user, and then network quality is predicted, and determined according to prediction result The method of synchronization of game data.
Based on this, as shown in Fig. 2, the implementing procedure for game data synchronous method provided in an embodiment of the present invention is illustrated Figure, may comprise steps of:
S21, it obtains geographical location information of the mobile terminal in different moments and successively forms the first geographical location information collection It closes.
Preferably, movement can be periodically acquired when detecting the game state that mobile terminal is under mobile environment The geographical location information of terminal, for example, obtaining the geographical location of a mobile terminal every 3 minutes.
S22, in the first geographical location information set for determining current time and pre-stored any second geographical location When information aggregate matches, according to the geographical location of the second geographical location information ensemble prediction mobile terminal subsequent time.
When it is implemented, obtaining one every according to the geographical location information for including in the first geographical location information set Geographical location, the second geographical location information set being successively locally stored with mobile terminal according to acquisition sequence is (i.e. according to above-mentioned " travelling route " that process shown in Fig. 1 is established) geographical location information that includes matched, for example, it is assumed that in T1Moment obtains Mobile terminal geographical location be G1, it is G in pre-stored first geographical location information of lookup of mobile terminal1Second Geographical location information set, in T2Moment, the geographical location of the mobile terminal of acquisition are G2, then pre-stored in mobile terminal Searching first geographical location information is G1And second geographical location information is G2The second geographical location information set, successively Analogize, if the preset quantity that the first geographical location information set includes (can be preset, for example, it can be set to for ground 3) It, can when the geographical location information for continuous, the identical quantity that reason location information includes with the second geographical location information set is identical To confirm the first geographical location information set and the second geographical location information sets match.Assuming that the first geographical location information set It is all the same with second geographical location information set first three geographical location information, then it can be with according to the second geographical location information set It is G that mobile terminal, which is predicted, in the geographical location of subsequent time4, i.e., by next geography in the second geographical location information set Position is as mobile terminal in the geographical location of subsequent time.
It should be noted that if in the first geographical location information set and the second geographical location information set, it is continuous pre- If the geographical location information of quantity is different, it is determined that the first geographical location information set and the second geographical location information set are not Match, in this case, into process shown in Fig. 1, is determining the mobile terminal stopping moving condition (ground that continuous multiple periods obtain It is identical to manage position) when, the geographical location information that will acquire successively forms the second geographical location information collection according to acquisition sequence and merges It is locally stored in mobile terminal.
S23, the affiliated adjacent area in geographical location that serving cell Yu mobile terminal subsequent time are currently located according to mobile terminal Network measurement information, determine subsequent time network quality variation tendency.
When it is implemented, measurement can be obtained in conjunction with measurement of the mobile terminal to serving cell and adjacent area wireless network Network measurement information in report.And according to the Network measurement information of acquisition, the network quality variation tendency of subsequent time is prejudged. For example, Network measurement information can be network signal intensity, in this way, according in measurement report, service where current mobile terminal The signal strength of cell and according to G4The signal strength of affiliated adjacent area prejudges network quality variation tendency.When it is implemented, moving The mapping relations between geographical location and base station cell can be stored in advance in dynamic terminal, and determine each geography according to the mapping relations The affiliated adjacent area in position.
Specifically, the network signal intensity of mobile terminal current service cell and the geographical location of subsequent time can be compared The network signal intensity of affiliated adjacent area, if the network signal intensity of current service cell is better than the network signal intensity of adjacent area, And the two difference is more than or equal to the first preset threshold, then prejudges current time network quality better than subsequent time network quality, i.e., Subsequent time network quality will be deteriorated;If the network signal intensity of current service cell is better than the network signal intensity of adjacent area, And the two difference then prejudges network quality and remains unchanged less than the first preset threshold;If the network signal intensity of adjacent area is better than The network signal intensity of current service cell, and the two difference is more than or equal to the second preset threshold, then prejudges subsequent time network Quality is better than current time network quality, i.e. network quality will improve;If the network signal intensity of adjacent area is better than current service The network signal intensity of cell, and the two difference then prejudges network quality and remains unchanged less than the second preset threshold.Wherein, One preset threshold and the second preset threshold can be preset, and the two may be the same or different, and the embodiment of the present invention is to this Without limitation.
S 24, the game data side of synchronization that subsequent time is determined according to the subsequent time network quality variation tendency determined Formula.
It is corresponding with the network quality variation tendency determined in step S23, according to network quality variation tendency, the present invention Embodiment has the following three kinds different data methods of synchronization:
Mode one, anticipation network quality are deteriorated
When according to determining that subsequent time network quality will be deteriorated in step S23, determines subsequent time and be located at movement eventually It is synchronous that the local virtual server in end carries out game data.According to the going game data method of synchronization, can have at following two Reason mode:
If currently not opening the virtual server positioned at mobile terminal local, i.e., trip is currently interacted with network side server Play data, then can once be interacted with network side server immediately, obtain the trip of current time network side server record Data of playing notify the current time of the network side server record of virtual server acquisition after opening virtual server Game data, so that game number of the virtual server based on the game data record at current time during virtual server is opened According to synchronous with network side server progress game data after restoring the communication with network side server.
If currently having turned on virtual server, keep current interactive mode constant, that is, continue and locally opens Virtual server interactive game data.
For example, when anticipation network quality will be deteriorated, client elder generation and network side server when needing to open virtual server It is once communicated, and saves current game data A.After mobile terminal locally opens virtual server, by preservation Game data A is placed in virtual server, hereafter, carries out exchanging game data based on game data A and virtual server.
Mode two, anticipation network quality improve
If determining that network quality will improve according to step S23, it is determined that subsequent time is swum with network side server Data of playing are synchronous.Likewise, also having following two processing mode accordingly according to the currently used game data method of synchronization:
If the virtual server for currently opening mobile terminal local carries out the interaction of game data, with Virtual Service Device synchronizes going game data, prepares to close virtual server and restores logical with network side server when subsequent time reaches Letter.After communicating with network side server recovery, before synchronous with network side server progress game data, net is obtained respectively First game data of network side server storage and the second game data of virtual server storage, will acquire according to preset rules The first game data and the second game data fusion after be sent to network side server.So that network side real server can be with Continue game data simultaneously operating based on current game data.
If current mobile terminal and network side server carry out exchanging game data, current interactive mode is kept It is constant.
When it is implemented, if anticipation network quality will improve, when subsequent time reaches, Virtual Service can be being closed It before device, is first once communicated with virtual server, synchronous game data, and saves current game data B1, later, closed Close virtual server, and communicate with network side server recovery, obtain the current game data B2 of network side server, by B1 and After the B2 of acquisition is merged according to certain rules, obtains the game data B3 at current time and be sent to network-side service Device allows network side server to continue exchanging game data according to the B3 received.
For example, game charater physical strength value is 80 in game process, it is assumed that it is A value, and later, user opens virtual clothes Business device, in virtual server opening process, game client and virtual server interactive game data, and game charater physical strength Value becomes 60 (80-20) due to consumption, it is assumed that and it is B1 value, after restoring the communication with network side server, discovery one A group's physical strength value increases operation, and each user's body force value increases by 15, i.e., the physical strength value that network side server saves at this time is 95 (80+15), it is assumed that be B2 value, game client needs to merge B1 and B2 data to determine the current physical strength of game charater Value, i.e., during unlatching virtual server, group's physical strength value of the physical strength value (- 20) that locally consumes and network side server increase (+ The sum of 15), i.e. -20+15=-5, the available true physical strength value of game charater is 80-5=75, i.e., at this point, the body of game charater Force value is 75, and it is synchronous to carry out game data which is sent to network side server.
Mode three, anticipation network quality remain unchanged
If determine that network quality remains unchanged according to step S23, keep swimming with the server sync currently interacted Play data.
Embodiment in order to better understand the present invention carries out embodiments of the present invention below in conjunction with specific embodiment Explanation.Assuming that being stored with the set of geographical location shown in table 1, table 2 and table 3 in mobile terminal:
Table 1
Serial number Geographical location information
1 A
2 B1
3 C1
4 D1
5 E1
Table 2
Serial number Geographical location information
1 A
2 B2
3 C2
4 D2
5 E2
Table 3
Serial number Geographical location information
1 A
2 B3
3 C3
4 D3
5 E3
As shown in figure 3, being corresponding " travelling route " schematic diagram of pre-stored geographical location information set.
Assuming that the geographical location information set of real-time collecting when user is using its mobile terminal progress game operation is as follows: In T1The geographical location that moment collects is A, in T2The geographical location that moment collects is B2, in T,3The geographical location that moment collects is C2, according to three geographical location information currently collected, it is as follows to form the first geographical location information set: { A, B2, C2, According to the geographical location information being collected into, match and can obtain with geographical location information set stored in mobile terminal, It is matched with table 2, it follows that user is D in the possible geographical location of subsequent time2, and then according to mobile terminal to itself Current service cell and the possible geographical location D of subsequent time are compared in the measurement of serving cell and adjacent area2The net of place adjacent area Network signal strength judges network quality variation tendency, and then determines that subsequent time should be with void according to network quality variation tendency It is synchronous that quasi- server carries out the synchronous or real server progress game data with network side of game data.
Continuation of the previous cases, if in T,3The geographical location that moment collects is C4, due to its times stored with mobile terminal One geographical location information set (i.e. table 1, table 2 and table 3) mismatches, and in this case, will continue to collect mobile terminal not Geographical location in the same time successively forms new geographical position according to geographical location collection sequence after mobile terminal stops movement It sets information aggregate and stores.
The game data synchronous method provided according to embodiments of the present invention is worked as by acquiring from what mobile terminal measured Preceding cell measurement information and neighbor measurement information, and network quality is estimated according to the above metrical information, and pass through net The variation of network quality improves mobile online game experience to prejudge with the interactive mode of server.Specifically, by movement Terminal adds the mode of virtual server, and alternative network side server is interacted with game client in the poor situation of network quality Game data, after network quality improves and restores the communication with network side server, by by network side server and empty The mode of quasi- server data fusion realizes game to realize in the case where network quality changes faster mobile network environment The synchronization of data.
Based on the same inventive concept, a kind of game data synchronous method and device are additionally provided in the embodiment of the present invention, by It is similar to game data synchronous method in the principle that above-mentioned apparatus solves the problems, such as, therefore the implementation of above-mentioned apparatus may refer to method Implementation, overlaps will not be repeated.
As shown in figure 4, being the structural schematic diagram of data synchronization unit provided in an embodiment of the present invention, comprising:
Acquiring unit 41 successively forms the first geographical position for obtaining geographical location information of the mobile terminal in different moments Set information aggregate;
Position prediction unit 42, in the first geographical location information set for determining current time and pre-stored When one second geographical location information sets match, according to one under mobile terminal described in the second geographical location information ensemble prediction The geographical location at moment;
Network quality prejudges unit 43, for being currently located serving cell and the mobile terminal according to the mobile terminal The Network measurement information of the affiliated adjacent area in the geographical location of subsequent time determines subsequent time network quality variation tendency;
Data synchronisation unit 44 becomes for prejudging the subsequent time network quality that unit is determined according to the network quality Change trend determines the data method of synchronization of subsequent time.
Wherein, network metrical information includes network signal intensity;Network quality prejudges unit 43, comprising:
Comparing subunit is currently located first network signal strength and the institute of serving cell for the mobile terminal State the second network signal intensity of the affiliated adjacent area in geographical location of mobile terminal subsequent time;
First determines subelement, if being greater than second network signal intensity for the first network signal strength, And the two difference be more than or equal to the first preset threshold when, determine current time network quality be better than subsequent time network matter Amount;If the first network signal strength is greater than second network signal intensity, and the two difference is less than described first in advance If when threshold value, determining that network quality remains unchanged;If it is strong that the first network signal strength is less than second network signal Degree, and the two difference be more than or equal to the second preset threshold when, determine subsequent time network quality be better than current time network Quality;If the first network signal strength is less than second network signal intensity, and the two difference is less than described second When preset threshold, determine that network quality remains unchanged.
Preferably, if data synchronisation unit 44 determines that current time network quality is excellent for network quality anticipation unit 43 In subsequent time network quality, it is determined that subsequent time and the virtual server progress data for being located at the mobile terminal local are same Step;If it is determined that subsequent time network quality is better than current time network quality, it is determined that subsequent time and network side server It is synchronous to carry out data;If it is determined that subsequent time network quality remains unchanged, then keep being counted with the server currently interacted According to synchronization.
When it is implemented, data synchronization unit provided in an embodiment of the present invention, can also include:
First acquisition unit, if determining that the network quality at current time is better than for network quality anticipation unit 43 Subsequent time network quality and current time and network side server carry out data it is synchronous when, open the virtual server and Before its progress data is synchronous, Xiang Suoshu network side server obtains the data at the current time of its record;
Notification unit, for after opening the virtual server, notifying the first acquisition described in the virtual server single Data that member obtains, current time.
When it is implemented, data synchronization unit provided in an embodiment of the present invention, can also include:
Second acquisition unit, if determining that subsequent time network quality is better than working as network quality anticipation unit 43 It is synchronous that preceding moment network quality and current time and virtual server carry out data, then extensive with network side server in subsequent time It is multiply-connected connect after, with network side server carry out data it is synchronous before, obtain network side server storage respectively first is several According to the second data stored with the virtual server;
Data transmission unit is sent after the first data and second data fusion for will acquire according to preset rules To the network side server.
When it is implemented, data synchronization unit provided in an embodiment of the present invention, can also include:
Determination unit, for determining the second geographical location information set according to following methods: detecting the shifting When dynamic terminal is under the game state under mobile environment, the mobile terminal is obtained in the geographical location information group of different moments At the second geographical location information set.
When it is implemented, position prediction unit 42, comprising:
Judgment sub-unit, the geographical location information quantity for including for the first geographical location information set at current time When reaching preset quantity, judge geographical location information that the first geographical location information set includes whether with it is pre-stored The geographical location information of continuous, identical quantity is identical in second geographical location information set;
Coupling subelement is when being for the judging result in the judgment sub-unit, and determine current time first is geographical Location information set and pre-stored second geographical location information sets match;
First obtains subelement, for continuing to obtain the mobile terminal or not the judging unit result is no Geographical location information in the same time successively forms the second geographical location information set;
Storing sub-units, for storing the mobile terminal that the acquisition subelement obtains, described in the geography of different moments The second geographical location information set that location information successively forms.
When it is implemented, data synchronization unit provided in an embodiment of the present invention can also include detection unit, for detecting Whether mobile terminal is in the game state under mobile environment, may include:
Detection sub-unit, for detecting whether the mobile terminal is in game state;
Second obtains subelement, for obtaining different moments institute when detecting that the mobile terminal is in game state State the geographical location information of mobile terminal;
Second determines subelement, and the geographical location information for being obtained according to the second acquisition subelement determines the shifting Dynamic terminal determines the game state that the mobile terminal is under mobile environment in the geographical location difference of different moments.
For convenience of description, above each section is divided by function describes respectively for each module (or unit).Certainly, exist Implement to realize the function of each module (or unit) in same or multiple softwares or hardware when the present invention.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications can be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (11)

1. a kind of method of data synchronization characterized by comprising
It obtains geographical location information of the mobile terminal in different moments and successively forms the first geographical location information set;
In the first geographical location information set and pre-stored any second geographical location information set for determining current time When matching, according to the geographical location of mobile terminal subsequent time described in the second geographical location information ensemble prediction;
The affiliated adjacent area in geographical location of serving cell Yu the mobile terminal subsequent time is currently located according to the mobile terminal Network measurement information, determine subsequent time network quality variation tendency;
The data method of synchronization of subsequent time is determined according to the subsequent time network quality variation tendency determined, wherein if Determine the network quality at current time better than subsequent time network quality, it is determined that in subsequent time and to be located at the mobile terminal It is synchronous that local virtual server carries out data;If it is determined that subsequent time network quality is better than the network quality at current time, Then determine that subsequent time is synchronous with network side server progress data;If it is determined that subsequent time network quality remains unchanged, then Keep synchronous with currently interactive server progress data.
2. the method as described in claim 1, which is characterized in that the Network measurement information includes network signal intensity.
3. method according to claim 2, which is characterized in that according to the mobile terminal be currently located serving cell with it is described The Network measurement information of the affiliated adjacent area in the geographical location of mobile terminal subsequent time, determines network quality variation tendency, specific to wrap It includes:
Compare the mobile terminal be currently located serving cell first network signal strength and the mobile terminal subsequent time The affiliated adjacent area in geographical location the second network signal intensity;
If the first network signal strength is greater than second network signal intensity, and the two difference is more than or equal to first in advance If when threshold value, determining that the network quality at current time is better than the network quality of subsequent time;
If the first network signal strength is greater than second network signal intensity, and the two difference is less than described first in advance If when threshold value, determining that network quality remains unchanged;
If the first network signal strength is less than second network signal intensity, and the two difference is more than or equal to second in advance If when threshold value, determining that the network quality of subsequent time is better than the network quality at current time;
If the first network signal strength is less than second network signal intensity, and the two difference is less than described second in advance If when threshold value, determining that network quality remains unchanged.
4. the method as described in claim 1, which is characterized in that if it is determined that the network quality at current time is better than subsequent time When network quality and current time synchronous with network side server progress data, counted opening the virtual server with it Before synchronization, further includes:
The data at the current time that it is recorded are obtained to the network side server;And
After opening the virtual server, the virtual server is notified to obtain the data at current time.
5. the method as described in claim 1, which is characterized in that if it is determined that subsequent time network quality is better than current time It is synchronous that network quality and current time and virtual server carry out data, then restores connection in subsequent time and network side server Afterwards, before synchronous with network side server progress data, the method, further includes:
The first data of the network side server storage and the second data of virtual server storage are obtained respectively;
The network side server is sent to after the first data and second data fusion that will acquire according to preset rules.
6. the method as described in claim 1, which is characterized in that determine first geography at current time in accordance with the following methods Location information set and pre-stored second geographical location information sets match:
When the geographical location information quantity that the first geographical location information set at current time includes reaches preset quantity, judgement The geographical location information that the first geographical location information set includes whether with pre-stored second geographical location information collection The geographical location information of continuous in conjunction, identical quantity is identical;
If identical, it is determined that the first geographical location information set at current time and pre-stored second geographical location information Sets match;
The second geographical position is successively formed in the geographical location information of different moments if it is different, then continuing to obtain the mobile terminal It sets information aggregate and stores.
7. a kind of data synchronization unit characterized by comprising
Acquiring unit successively forms the first geographical location information for obtaining geographical location information of the mobile terminal in different moments Set;
Position prediction unit, in the first geographical location information set and pre-stored any second for determining current time When geographical location information sets match, according to mobile terminal subsequent time described in the second geographical location information ensemble prediction Geographical location;
Network quality prejudges unit, for being currently located under serving cell and the mobile terminal for the moment according to the mobile terminal The Network measurement information of the affiliated adjacent area in the geographical location at quarter determines subsequent time network quality variation tendency;
Data synchronisation unit, for prejudging the subsequent time network quality variation tendency that unit is determined according to the network quality The data method of synchronization of subsequent time is determined, if determining the network at current time specifically for network quality anticipation unit Quality be better than subsequent time network quality, it is determined that subsequent time be located at the mobile terminal local virtual server into Row data are synchronous;If it is determined that subsequent time network quality is better than the network quality at current time, it is determined that subsequent time and net It is synchronous that network side server carries out data;If it is determined that subsequent time network quality remains unchanged, then keep and the clothes that currently interact Device progress data of being engaged in are synchronous.
8. device as claimed in claim 7, which is characterized in that the Network measurement information includes network signal intensity;And
The network quality prejudges unit, comprising:
Comparing subunit is currently located the first network signal strength and the shifting of serving cell for the mobile terminal Second network signal intensity of the affiliated adjacent area in geographical location of dynamic terminal subsequent time;
First determines subelement, if being greater than second network signal intensity, and two for the first network signal strength When person's difference is more than or equal to the first preset threshold, determine that the network quality at current time is better than the network quality of subsequent time;Such as First network signal strength described in fruit is greater than second network signal intensity, and the two difference is less than first preset threshold When, determine that network quality remains unchanged;If the first network signal strength is less than second network signal intensity, and two When person's difference is more than or equal to the second preset threshold, determine that the network quality of subsequent time is better than the network quality at current time;Such as First network signal strength described in fruit is less than second network signal intensity, and the two difference is less than second preset threshold When, determine that network quality remains unchanged.
9. device as claimed in claim 7, which is characterized in that further include:
First acquisition unit, if determining the network quality at current time better than lower a period of time for network quality anticipation unit Carve network quality and current time and network side server carry out data it is synchronous when, carried out in the unlatching virtual server with it Before data are synchronous, Xiang Suoshu network side server obtains the data at the current time of its record;
Notification unit, for notifying the virtual server from the first acquisition unit after opening the virtual server Obtain the data at current time.
10. device as claimed in claim 7, which is characterized in that further include:
Second acquisition unit, if determining subsequent time network quality better than current time for network quality anticipation unit Network quality and current time and virtual server to carry out data synchronous, then restore company in subsequent time and network side server After connecing, with network side server carry out data it is synchronous before, obtain respectively the first data of network side server storage with Second data of the virtual server storage;
Data transmission unit is sent to institute after the first data and second data fusion for will acquire according to preset rules State network side server.
11. device as claimed in claim 7, which is characterized in that the position prediction unit, comprising:
Judgment sub-unit, the geographical location information quantity for including for the first geographical location information set at current time reach When preset quantity, judge geographical location information that the first geographical location information set includes whether with pre-stored second The geographical location information of continuous, identical quantity is identical in geographical location information set;
Coupling subelement is when being, to determine first geographical location at current time for the judging result in the judgment sub-unit Information aggregate and pre-stored second geographical location information sets match;
First obtains subelement, for continuing to obtain the mobile terminal when different when the judging unit result is no The geographical location information at quarter successively forms the second geographical location information set;
Storing sub-units, for storing the mobile terminal that the acquisition subelement obtains, described in the geographical location of different moments The second geographical location information set that information successively forms.
CN201510038885.9A 2015-01-26 2015-01-26 A kind of method of data synchronization and device Active CN105897811B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510038885.9A CN105897811B (en) 2015-01-26 2015-01-26 A kind of method of data synchronization and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510038885.9A CN105897811B (en) 2015-01-26 2015-01-26 A kind of method of data synchronization and device

Publications (2)

Publication Number Publication Date
CN105897811A CN105897811A (en) 2016-08-24
CN105897811B true CN105897811B (en) 2019-04-23

Family

ID=56999232

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510038885.9A Active CN105897811B (en) 2015-01-26 2015-01-26 A kind of method of data synchronization and device

Country Status (1)

Country Link
CN (1) CN105897811B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109316743A (en) * 2018-07-31 2019-02-12 努比亚技术有限公司 A kind of game control method, terminal and computer readable storage medium
CN109660469B (en) * 2018-10-23 2022-09-02 惠州Tcl移动通信有限公司 Method and terminal for synchronously changing network signals and device with storage function
CN109582726B (en) * 2018-12-18 2021-09-07 网易(杭州)网络有限公司 Data table processing method and device
CN110971936A (en) * 2019-12-06 2020-04-07 中车青岛四方车辆研究所有限公司 Video data processing method, server and video receiving end
CN111589107B (en) * 2020-05-14 2023-04-28 北京代码乾坤科技有限公司 Behavior prediction method and device of virtual model
CN112911620B (en) * 2021-02-18 2023-05-02 联想(北京)有限公司 Information processing method and device, electronic equipment and storage medium
CN112947315B (en) * 2021-02-25 2022-11-01 华强方特(深圳)科技有限公司 Double-buffer-based on-line generation method and device for shaft motion data
CN117104253A (en) * 2022-05-17 2023-11-24 腾讯科技(深圳)有限公司 Remote driving control method, device, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101496427A (en) * 2006-08-02 2009-07-29 摩托罗拉公司 Identity verification using location over time information
CN102193948A (en) * 2010-03-16 2011-09-21 华为技术有限公司 Feature matching method and device
WO2013166251A1 (en) * 2012-05-02 2013-11-07 Ai Golf, LLC Web-based game platform with mobile device motion sensor input
CN103701918A (en) * 2013-12-31 2014-04-02 北京像素软件科技股份有限公司 Method and device for synchronizing client-side and server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101496427A (en) * 2006-08-02 2009-07-29 摩托罗拉公司 Identity verification using location over time information
CN102193948A (en) * 2010-03-16 2011-09-21 华为技术有限公司 Feature matching method and device
WO2013166251A1 (en) * 2012-05-02 2013-11-07 Ai Golf, LLC Web-based game platform with mobile device motion sensor input
CN103701918A (en) * 2013-12-31 2014-04-02 北京像素软件科技股份有限公司 Method and device for synchronizing client-side and server

Also Published As

Publication number Publication date
CN105897811A (en) 2016-08-24

Similar Documents

Publication Publication Date Title
CN105897811B (en) A kind of method of data synchronization and device
US10243824B2 (en) On-device attribution of network data usage
CN107398072B (en) The display methods and device of game picture
CN110463061A (en) Measurement report enhancing in system based on wave beam
CN104902101B (en) A kind of internet access method and device of double-card mobile phone
CN109076357A (en) Application method, relevant device and system are migrated in mobile limbic system
CN106354797B (en) Data recommendation method and device
US8990411B2 (en) Dynamic connection management on mobile peer devices
CN103581231B (en) UGC master/slave data synchronous method and its system
CN104852937B (en) Method for network access and device for mobile application
CN105959218A (en) Network route selection method and network route selection system
CN104955090B (en) A kind of area interference determines method and device
CN108289246A (en) Data processing method, device, storage medium and electronic device
CN104283769A (en) Instant messaging service based on item of interest to user
CN109211259A (en) Display methods, device, terminal and the storage medium of path
CN112333734A (en) Serving cell switching method and device
US20230169368A1 (en) Sequential decision analysis techniques for e-sports
Agarwal et al. Qoe-driven optimization in 5g o-ran-enabled hetnets for enhanced video service quality
CN110290596A (en) Network channel control method, system, intelligent terminal and computer readable storage medium
CN105848104B (en) Flow of personnel state monitoring method and device based on region
CN106390451A (en) Method and device for testing capacity of game server
CN104317473B (en) A kind of interface display method and client
CN103685388B (en) Method and device for information management
CN105872740B (en) Information integrating method and information integrated device
Lassoued et al. A methodology for evaluating vertical handoff decision mechanisms

Legal Events

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