[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN105897811A - data synchronization method and device - Google Patents

data synchronization method and device Download PDF

Info

Publication number
CN105897811A
CN105897811A CN201510038885.9A CN201510038885A CN105897811A CN 105897811 A CN105897811 A CN 105897811A CN 201510038885 A CN201510038885 A CN 201510038885A CN 105897811 A CN105897811 A CN 105897811A
Authority
CN
China
Prior art keywords
network
location information
geographical location
network quality
mobile terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510038885.9A
Other languages
Chinese (zh)
Other versions
CN105897811B (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 present invention discloses a data synchronization method and device for realizing the synchronization of game data in the mobile network environment with a fast network quality change. The game data synchronization method comprises a step of obtaining the geographic position information of a mobile terminal at different times to form a first geographic position information set, a step of predicting the geographic position of the mobile terminal at a next time according to a second geographic position information set when the first geographic position information set of a current time and any second geographic position information set stored in advance are matched, a step of determining a network quality change trend of the next time according to the service cell where the mobile terminal is located at present and the network measurement information of the neighbor area of the geographic position of the mobile terminal at the next time, and a step of determining the data synchronization mode of the next time according to the network quality change trend of the next time.

Description

A kind of method of data synchronization and device
Technical field
The present invention relates to technical field of data processing, particularly relate to a kind of method of data synchronization and device.
Background technology
Along with development of Mobile Internet technology development and the raising of mobile terminal hardware configuration, mobile terminal is used to enter Row game on line becomes the newly selected of terminal use.How to provide the user high-quality, smooth, have The mobile online game of good Consumer's Experience, is an extremely challenging technical field.
And for mobile online game, user to be given is good, high-quality, smooth user's body Testing, in addition to carrying out continuous technological innovation on mobile terminal software and hardware, network quality is also that impact moves One of key factor of dynamic game on line quality.Due to game data along with game process be to be continually changing , how to solve the game data between mobile terminal and server and synchronize, become the pass of mobile online game One of key.
At present, the mobile online game simultaneous techniques scheme of more main flow mainly has following several: the whole network is broadcasted Synchronization scenario, compensates synchronization scenario and prediction synchronization scenario, introduces it individually below.
(1) the whole network broadcast synchronization
The whole network broadcast synchronization is the simplest, is also most basic mobile online game data syn-chronization scheme, its base This thought is to be recorded by the game data of each game on line user by mobile terminal, and is sent to Server, server also sends the current game data of this user to all users of the whole network simultaneously, this same One step process consumes resource greatly, and is fluctuated by network environment very much and affected, and Consumer's Experience is poor.
(2) synchronization scenario is compensated
The most another kind of relatively common mobile online game data synchronization technology scheme is to compensate synchronization scenario, Its basic thought is according to the time tolerance between server and mobile terminal, and information is being returned by server During mobile terminal, it is automatically added to difference and compensates, thus avoid between each user, or user and server The nonsynchronous situation of data.
(3) prediction synchronization scenario
Another kind of mobile online game data synchronization technology scheme more typically is prediction synchronization scenario.It is basic Thinking is by user's behavior within a certain period of time, as clicked on a certain button, performs a certain action record and gets off, And according to this series of user behavior, the behavior of user is predicted and this behavior model is sent to Server, and processed by server, thus the more effective behavior to each user represents, fall Low-resource demand.
The most several frequently seen mobile online game data synchronization technology scheme is mainly for server and movement The asynchronous problem of data between terminal proposes solution, and its main thought is to repair game data Just, the network quality impact on data syn-chronization is not accounted for.Therefore, existing several game data synchronization side Case is often suitable only in the case of network delay more fixing (such as fixed network environment, WiFi environment), and In a mobile environment, mobile terminal is often faced with extremely complex network environment, and network quality often occurs Change, such as, be switched to 4G networking from 2G network, the network bandwidth it may happen that the change of hundreds of times, because of This, existing several mobile online game data synchronization technology schemes cannot meet network quality and change faster Game data under mobile network environment synchronizes.
Summary of the invention
The embodiment of the present invention provides a kind of method of data synchronization and device, in order to change faster in network quality Under mobile network environment, it is achieved the synchronization of data.
The embodiment of the present invention provides a kind of method of data synchronization, including:
Obtain described mobile terminal and form the first geographical position letter successively at geographical location information the most in the same time Breath set;
In the first geographical location information set determining current time position geographical with arbitrary second prestored During confidence breath sets match, according to a period of time under mobile terminal described in described second geographical location information ensemble prediction The geographical position carved;
The geographical position of Serving cell and described mobile terminal subsequent time it is currently located according to described mobile terminal Put the Network measurement information of affiliated adjacent area, determine subsequent time network quality variation tendency;
The data syn-chronization mode 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 synchronizer, including:
Acquiring unit, forms for obtaining described mobile terminal successively at geographical location information the most in the same time One geographical location information set;
Position prediction unit, for determining the first geographical location information set of current time and prestoring Arbitrary second geographical location information sets match time, according to described second geographical location information ensemble prediction institute State the geographical position of mobile terminal subsequent time;
Network quality anticipation unit, for being currently located Serving cell and described movement according to described mobile terminal The Network measurement information of adjacent area belonging to the geographical position of terminal subsequent time, determines that subsequent time network quality becomes Change trend;
Data synchronisation unit, for the subsequent time network matter determined according to described network quality anticipation unit Amount variation tendency determines the data syn-chronization mode of subsequent time.
The method of data synchronization of embodiment of the present invention offer and device, obtain mobile terminal on ground the most in the same time Reason positional information form geographical location information set successively, if itself and prestore arbitrary geographical position letter Breath coupling, then according to the ground that the geographical location information ensemble prediction mobile terminal subsequent time prestored is possible Reason position, and according to mobile terminal to Serving cell and the Network measurement information of adjacent area, anticipation subsequent time Network quality variation tendency, and then determine data syn-chronization according to the network quality variation tendency of subsequent time Mode, thus solve and change faster under mobile network environment in network quality, change according to network quality The problem that trend carries out data syn-chronization.
Other features and advantages of the present invention will illustrate in the following description, and, partly from explanation Book becomes apparent, or understands by implementing the present invention.The purpose of the present invention and other advantages can Realize by structure specifically noted in the description write, claims and accompanying drawing and obtain ?.
Accompanying drawing explanation
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes of the present invention Point, the schematic description and description of the present invention is used for explaining the present invention, is not intended that to the present invention not Work as restriction.In the accompanying drawings:
Fig. 1 is in the embodiment of the present invention, the implementing procedure schematic diagram of method of data synchronization;
Fig. 2 is in the embodiment of the present invention, the structural representation of data synchronization unit;
Fig. 3 is in the embodiment of the present invention, " course " that the geographical location information set that prestores is corresponding Schematic diagram;
Fig. 4 is in the embodiment of the present invention, the structural representation of data synchronization unit.
Detailed description of the invention
The Consumer's Experience of mobile online game to be improved, it is important to allow users in mobile online game process In, what continual acquisition was smooth includes game operation and game operation feedback etc., and this depends on mobile terminal And the game data transmission between network side server is the most smooth, due to the network matter under mobile network environment Amount instability, causes the instability that moving game data are transmitted, if the trip between mobile terminal and server Play data are inconsistent, and the seriality causing moving game operation and operational feedback is affected by this, Jin Erying Ring user's game experiencing.In order to realize the game data under network quality changes mobile network environment faster Synchronize, embodiments provide a kind of method of data synchronization and device.
It should be noted that the embodiment of the present invention provide method of data synchronization be applicable to mobile terminal need with Network side carries out the application scenarios of real-time data synchronization or data interaction, is particularly suited for using mobile terminal The game data carrying out game on line etc. synchronizes.For the ease of describing, all with game data in following example As a example by synchronization.
Below in conjunction with Figure of description, the preferred embodiments of the present invention are illustrated, it will be appreciated that this place The preferred embodiment described is merely to illustrate and explains the present invention, is not intended to limit the present invention, and not In the case of conflict, the embodiment in the present invention and the feature in embodiment can be mutually combined.
The user of mobile online game is typically to utilize chip time, and road the most on and off duty is first-class so that user Occupation mode for mobile online game has certain regularity.Based on this, in the embodiment of the present invention, When being under mobile status by collecting mobile terminal, at geographical location information the most in the same time, it may be determined that Go out " course " (ground being i.e. made up of in a certain order of a user multiple geographical location information Reason positional information set), so, again detect that user is in the upper use of this " course " if follow-up During mobile online game, the geographical position of user's subsequent time can be predicted, simultaneously as mobile Terminal needs periodicity that Serving cell and the adjacent area at self place are carried out network measure, forms measurement report Report base station.Owing to wherein comprising the network measure letter that mobile terminal is currently located the adjacent area of Serving cell Breath, it is thus possible to anticipation mobile terminal is in the network quality situation of change of subsequent time position, and then, Different data syn-chronization modes can be taked according to network quality situation of change.
Time initial, mobile terminal may not exist " course ", in this case, can with During family uses mobile terminal to carry out game operation, believe in geographical position the most in the same time by collecting user Breath gradually builds up different " courses " and stores.As it is shown in figure 1, be in the embodiment of the present invention, " OK Route line " determine schematic flow sheet, may comprise steps of:
Whether S11, detection mobile terminal are in game state, if it is, perform step S12, if it does not, Perform step S15.
When being embodied as, can be periodically detected whether mobile terminal is in game state, if mobile terminal It is in game state, then determines whether whether mobile terminal is in mobile status, if it is not, then periodically Whether detection mobile terminal is in game state, with when user uses mobile terminal to carry out game operation, touches Send out and start " course " collection flow process.For the ease of describing, below mobile terminal is simultaneously in game When state and mobile status, it is referred to as this mobile terminal and is in the game state under mobile environment.
S12, the geographical location information of acquisition mobile terminal.
When being embodied as, it is possible to use the GPS of mobile terminal configuration (Global Positioning System, Global positioning system) obtain the geographical location information of mobile terminal.
S13, judge whether mobile terminal is in mobile status, if it is, perform step S14, otherwise, Perform step S16.
When being embodied as, can be, but not limited to judge whether mobile terminal is in mobile shape in accordance with the following methods State:
Mode one, whether change judgement according to the mobile terminal geographical position obtained.
If the mobile terminal geographical position that adjacent two moment obtain changes, then may determine that mobile whole End is in mobile status, if the mobile terminal geographical position that adjacent two moment obtain is identical, then and can be true Determine mobile terminal and stop mobile.
Mode two, Network measurement information according to this mobile terminal judge whether mobile terminal is in mobile shape State.For example, it is possible to whether change according to the tracking area of mobile terminal judge whether mobile terminal is in shifting Dynamic state.
The geographical location information that S14, record obtain.
When being embodied as, when determining that mobile terminal is in mobile status and carries out game operation, record The geographical position of the mobile terminal that current time obtains, and wait the arrival in next cycle.
S15, wait that next cycle arrives, and perform step S11.
S16, judge that mobile terminal the most continuous multiple cycles are not moved, if it is, perform step S17, If it is not, then perform step S15.
When being embodied as, it can be determined that mobile terminal the most multiple (can preset, such as, can To be set to 3) cycle is not moved, if it is, explanation mobile terminal stops mobile, then stores and currently obtains The geographical location information set of the geographical location information composition taken, otherwise, waits the arrival in next cycle.
S17, the geographical location information set of the current geographical location information composition obtained of storage.
So, time under the game state under mobile terminal is in mobile environment, when each cycle arrives, By being collected in the geographical position of mobile terminal the most in the same time, geographical position can be formed successively according to acquisition order Put set, it is assumed that for (G1, G2, G3... Gn)。
When being embodied as, if multiple cycle (can preset, for example, it can be set to be 2 cycles) Detect when mobile terminal is not in game state or is in game state but is not in mobile status, stop Collect the geographical position of mobile terminal, and store the geographical position set of current time, it is assumed that for (G1, G2, G3... Gn)。
By the way, mobile terminal can gradually be collected multiple different geographical position collection and merges and be stored in Mobile terminal is local, when subsequent detection is gathered to the geographical position with locally stored geographical position sets match Time, according to next geographical position of ensemble prediction user, geographical position of storage, and then network quality can be entered Row prediction, and the method for synchronization of game data is determined according to predicting the outcome.
Based on this, as in figure 2 it is shown, the enforcement stream of the game data synchronous method provided for the embodiment of the present invention Journey schematic diagram, may comprise steps of:
S21, obtain this mobile terminal and form the first geographical position successively at geographical location information the most in the same time Information aggregate.
It is also preferred that the left when the game state under mobile terminal is in mobile environment being detected, can periodically obtain Take the geographical location information of mobile terminal, such as, obtain the geographical position of a mobile terminal every 3 minutes.
S22, on the first geographical location information set determining current time and arbitrary second ground prestored During reason positional information set coupling, according to the second geographical location information ensemble prediction mobile terminal subsequent time Geographical position.
When being embodied as, according to the geographical location information comprised in the first geographical location information set, often obtaining Take a geographical position, according to the second geographical location information that acquisition order is locally stored with mobile terminal successively The geographical location information that set (" course " i.e. set up according to flow process shown in above-mentioned Fig. 1) comprises enters Row coupling, for example, it is assumed that at T1In the moment, the geographical position of the mobile terminal of acquisition is G1, mobile whole First geographical location information of lookup that end prestores is G1The second geographical location information set, at T2 In the moment, the geographical position of the mobile terminal of acquisition is G2, then the lookup first that prestores at mobile terminal Geographical location information is G1And second geographical location information is G2The second geographical location information set, depend on Secondary analogize, if the predetermined number that the first geographical location information set comprises (can preset, such as may be used To be set as 3) geographical location information and the second geographical location information set comprise continuous print, identical number When the geographical location information of amount is identical, can confirm that the first geographical location information set and the second geographical position letter Breath sets match.First three is geographical to assume the first geographical location information set and the second geographical location information set Positional information is the most identical, then can dope mobile terminal in lower a period of time according to the second geographical location information set The geographical position carved is G4, will next geographical position in the second geographical location information set as movement Terminal is in the geographical position of subsequent time.
If it should be noted that in the first geographical location information set and the second geographical location information set, The geographical location information of predetermined number is different continuously, it is determined that the first geographical location information set is geographical with second Positional information set is not mated, and in this case, enters flow process shown in Fig. 1, is determining that mobile terminal stops During mobile status (geographical position that continuous multiple cycles obtain is identical), the geographical location information of acquisition is pressed Forming the second geographical location information collection successively according to acquisition order, to be incorporated in mobile terminal locally stored.
S23, it is currently located the geographical position institute of Serving cell and mobile terminal subsequent time according to mobile terminal Belong to the Network measurement information of adjacent area, determine subsequent time network quality variation tendency.
When being embodied as, can obtain in conjunction with mobile terminal to Serving cell and the measurement of adjacent area wireless network Take the Network measurement information in measurement report.And according to the Network measurement information obtained, anticipation subsequent time Network quality variation tendency.Such as, Network measurement information can be network signal intensity, so, according to survey In amount report, the signal intensity of current mobile terminal place Serving cell and according to G4The letter of affiliated adjacent area Number intensity, anticipation network quality variation tendency.When being embodied as, mobile terminal can prestore geographical position Put the mapping relations between base station cell, and determine adjacent area belonging to each geographical position according to these mapping relations.
Concrete, the network signal intensity of mobile terminal current service cell and the ground of subsequent time can be compared The network signal intensity of adjacent area belonging to reason position, if the network signal intensity of current service cell is better than adjacent area Network signal intensity, and both differences are more than or equal to the first predetermined threshold value, then anticipation current time network matter Amount is better than subsequent time network quality, i.e. subsequent time network quality and will be deteriorated;If current service cell Network signal intensity is better than the network signal intensity of adjacent area, and both differences are less than the first predetermined threshold value, the most in advance Sentence network quality and keep constant;If the network signal intensity of adjacent area is better than the network signal of current service cell Intensity, and both differences are more than or equal to the second predetermined threshold value, then anticipation subsequent time network quality is better than currently Moment network quality, i.e. network quality will improve;If it is little that the network signal intensity of adjacent area is better than current service The network signal intensity in district, and both differences are less than the second predetermined threshold value, then anticipation network quality keeps constant. Wherein, the first predetermined threshold value and the second predetermined threshold value can preset, and both can be identical, it is also possible to no With, this is not limited by the embodiment of the present invention.
The subsequent time network quality variation tendency that S 24, basis are determined determines the game data of subsequent time The method of synchronization.
Corresponding with the network quality variation tendency determined in step S23, according to network quality variation tendency, The embodiment of the present invention has following three kinds of different data syn-chronization modes:
Mode one, anticipation network quality are deteriorated
When according to when step S23 determining, subsequent time network quality will be deteriorated, determine subsequent time and be positioned at The virtual server of mobile terminal this locality carries out game data synchronization.According to going game data syn-chronization mode, Can there is a following two processing mode:
It is positioned at the virtual server that mobile terminal is local, i.e. current and network side server if currently do not opened Interactive game data, then immediately can carry out once alternately with network side server, obtain current time network The game data of side server record, after opening virtual server, the net that notice virtual server obtains The game data of the current time of network side server record so that virtual server game based on current time Data record game data during virtual server is opened, in order to recover the communication with network side server Afterwards, game data is carried out with network side server synchronization.
If currently having turned on virtual server, then the interactive mode keeping current is constant, i.e. continues with local The virtual server interactive game data opened.
Such as, client elder generation and network side when anticipation network quality will be deteriorated, and need to open virtual server Server once communicates, and preserves current game data A.Virtual clothes are opened in mobile terminal this locality After business device, the game data A of preservation is placed in virtual server, hereafter, based on game data A Exchanging game data is carried out with 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 and network side server Carry out game data synchronization.Same, according to the currently used game data method of synchronization, have the most accordingly Following two processing mode:
If currently opening mobile terminal local virtual server when carrying out game data mutual, then with void Intend server sync going game data, prepare close virtual server and when subsequent time arrives recover and The communication of network side server.After recovering to communicate with network side server, carry out with network side server Before game data synchronizes, obtain the first game data and the virtual server of network side server storage respectively Second game data of storage, melts the first game data obtained and the second game data according to preset rules Network side server it is sent to after conjunction.Network side real server can be continued based on current game data Continue and carry out game data simultaneously operating.
If current mobile terminal and network side server carry out exchanging game data, then keep current friendship Mode is constant mutually.
When being embodied as, if anticipation network quality will improve, when subsequent time arrives, can close Before virtual server, first once communicate with virtual server, synchronize game data, and preserve current Game data B1, afterwards, close virtual server, and with network side server recover communicate, acquisition The game data B2 that network side server is current, melts B1 according to certain rule with the B2 of acquisition After conjunction, obtain the game data B3 of current time and be sent to network side server so that network-side service Device can proceed exchanging game data according to the B3 received.
Such as, in game process, game muscle power value is 80, it is assumed that it is A value, afterwards, uses Virtual server is opened at family, and in virtual server opening process, game client is mutual with virtual server Game data, and game muscle power value due to consume become 60 (80-20), it is assumed that it is B1 value, After recovering the communication with network side server, find that colony's muscle power value increases operation, each user Muscle power value increase by 15, the muscle power value that the most now network side server preserves is 95 (80+15), it is assumed that for B2 Value, game client needs to merge B1 and B2 data to determine the muscle power value that game is current, During i.e. opening virtual server, the local muscle power consumed is worth colony's body of (-20) and network side server Force value increases (+15) sum, i.e.-20+15=-5, and can obtain game truly muscle power value is 80-5=75, The most now, the muscle power value of game is 75, this value is sent to network side server to carry out game data Synchronize.
Mode three, anticipation network quality keep constant
If determine that network quality keeps constant according to step S23, then keep and the most mutual server Synchronize game data.
In order to be better understood from the embodiment of the present invention, below in conjunction with the specific embodiment embodiment party to the present invention Formula illustrates.Assume in mobile terminal that storage has table 1, table 2 and a geographical position set shown in table 3:
Table 1
Sequence number Geographical location information
1 A
2 B1
3 C1
4 D1
5 E1
Table 2
Sequence number Geographical location information
1 A
2 B2
3 C2
4 D2
5 E2
Table 3
Sequence number Geographical location information
1 A
2 B3
3 C3
4 D3
5 E3
As it is shown on figure 3, for " course " schematic diagram corresponding to the geographical location information set that prestores.
Assume the geographical location information collection of real-time collecting when user uses its mobile terminal to carry out game operation Close as follows: at T1The geographical position that moment collects is A, at T2The geographical position that moment collects is B2, T,3The geographical position that moment collects is C2, according to three geographical location information currently collected, composition First geographical location information set is as follows: { A, B2, C2, according to the geographical location information collected, Carrying out mating can obtain with the geographical location information set stored in mobile terminal, it mates with table 2, thus Understanding, user is D in the geographical position that subsequent time is possible2, and then little to own services according to mobile terminal District and the measurement of adjacent area, compare the geographical position D that current service cell is possible with subsequent time2Place is adjacent The network signal intensity in district, it is judged that network quality variation tendency, and then determine according to network quality variation tendency Subsequent time should carry out Tong Bu or with network side the real server of game data and enter with virtual server Row game data synchronizes.
Continuation of the previous cases, if at T,3The geographical position that moment collects is C4, due to it with mobile terminal Arbitrary geographical location information set (i.e. table 1, table 2 and table 3) of storage is not mated, in this case, By continuation collection mobile terminal in geographical position the most in the same time, after mobile terminal stops moving, according to ground Collection order in reason position forms new geographical location information collection successively and merges storage.
The game data synchronous method provided according to embodiments of the present invention, comes from mobile terminal by collection and surveys The current area metrical information of amount and neighbor measurement information, and according to above metrical information, network quality is entered Row is estimated, and carrys out the interactive mode of anticipation and server by the change of network quality and improve Mobile Online travel Play is experienced.Concrete, by the way of setting up virtual server at mobile terminal, in the poor feelings of network quality Alternate network side server and game client interactive game data under condition, network quality improve and recovers and After the communication of network side server, by the side by network side server Yu virtual server data fusion Formula, it is achieved thereby that change faster under mobile network environment in network quality, it is achieved the synchronization of game data.
Based on same inventive concept, the embodiment of the present invention additionally provides a kind of game data synchronous method and dress Putting, due to said apparatus, to solve the principle of problem to game data synchronous method similar, therefore said apparatus Implement the enforcement of the method that may refer to, repeat no more in place of repetition.
As shown in Figure 4, the structural representation of data synchronization unit provided for the embodiment of the present invention, including:
Acquiring unit 41, forms first for obtaining mobile terminal successively at geographical location information the most in the same time Geographical location information set;
Position prediction unit 42, for determining the first geographical location information set of current time and depositing in advance During the arbitrary second geographical location information sets match stored up, according to described second geographical location information ensemble prediction The geographical position of described mobile terminal subsequent time;
Network quality anticipation unit 43, for being currently located Serving cell and described shifting according to described mobile terminal Belonging to the geographical position of dynamic terminal subsequent time, the Network measurement information of adjacent area, determines subsequent time network quality Variation tendency;
Data synchronisation unit 44, for the subsequent time network determined according to described network quality anticipation unit Mass change trend determines the data syn-chronization mode of subsequent time.
Wherein, network metrical information includes network signal intensity;Network quality anticipation unit 43, including:
Relatively subelement, the first network signal being currently located Serving cell for relatively described mobile terminal is strong Second network signal intensity of adjacent area belonging to the geographical position of degree and described mobile terminal subsequent time;
First determines subelement, if for described first network signal intensity more than described second network signal Intensity, and when both differences are more than or equal to the first predetermined threshold value, under determining that the network quality of current time is better than The network quality in one moment;If described first network signal intensity is more than described second network signal intensity, And both differences less than described first predetermined threshold value time, determine network quality keep constant;If described first Network signal intensity is less than described second network signal intensity, and both differences are more than or equal to the second predetermined threshold value Time, determine that the network quality of subsequent time is better than the network quality of current time;If described first network is believed Number intensity less than described second network signal intensity, and both differences less than described second predetermined threshold value time, really Determine network quality and keep constant.
If it is also preferred that the left data synchronisation unit 44 determines current time net for network quality anticipation unit 43 Network quality is better than subsequent time network quality, it is determined that the void that subsequent time is local with being positioned at described mobile terminal Intend server and carry out data syn-chronization;If it is determined that subsequent time network quality is better than current time network quality, Then determine that subsequent time and network side server carry out data syn-chronization;If it is determined that subsequent time network quality is protected Hold constant, then keep carrying out data syn-chronization with the most mutual server.
When being embodied as, the data synchronization unit that the embodiment of the present invention provides, it is also possible to including:
First acquiring unit, if determining the network of current time for described network quality anticipation unit 43 Quality is better than subsequent time network quality and current time when carrying out data syn-chronization with network side server, is opening Open before described virtual server carries out data syn-chronization with it, obtain its record to described network side server The data of current time;
Notification unit, for opening after described virtual server, notifies described in described virtual server first Acquiring unit obtains, the data of current time.
When being embodied as, the data synchronization unit that the embodiment of the present invention provides, it is also possible to including:
Second acquisition unit, if determining subsequent time network matter for described network quality anticipation unit 43 Amount is better than current time network quality and current time and carries out data syn-chronization, then in lower a period of time with virtual server Carve after recovering to be connected with network side server, before carrying out data syn-chronization with network side server, obtain respectively First data of described network side server storage and the second data of described virtual server storage;
Data transmission unit, is used for the first data obtained and described second data fusion according to preset rules After be sent to described network side server.
When being embodied as, the data synchronization unit that the embodiment of the present invention provides, it is also possible to including:
Determine unit, for determining described second geographical location information set according to following methods: detecting When described mobile terminal is under the game state under mobile environment, obtain described mobile terminal the most in the same time Geographical location information form described second geographical location information set.
When being embodied as, position prediction unit 42, including:
Judgment sub-unit, for the geographical position letter comprised in the first geographical location information set of current time When breath quantity reaches predetermined number, it is judged that the geographical location information that described first geographical location information set comprises Whether with continuous print, the geographical location information of equal number in the second geographical location information set prestored Identical;
Coupling subelement, for when the judged result of described judgment sub-unit is for being, determines the of current time One geographical location information set and the second geographical location information sets match prestored;
First obtains subelement, for when described judging unit result is no, continues to obtain described movement eventually End forms the second geographical location information set successively at geographical location information the most in the same time;
Storing sub-units, for storing the acquisition of described acquisition subelement, described mobile terminal the most in the same time The second geographical location information set of forming successively of geographical location information.
When being embodied as, the data synchronization unit that the embodiment of the present invention provides can also include detector unit, uses Whether it is in the game state under mobile environment in detection mobile terminal, may include that
Detection sub-unit, is used for detecting whether described mobile terminal is in game state;
Second obtains subelement, for when detecting that described mobile terminal is in game state, obtains difference The geographical location information of mobile terminal described in the moment;
Second determines subelement, determines for obtaining the geographical location information of subelement acquisition according to described second Described mobile terminal, when geographical position difference the most in the same time, determines that described mobile terminal is in mobile environment Under game state.
For convenience of description, above each several part is divided by function and is respectively described for each module (or unit). Certainly, when implementing the present invention can the function of each module (or unit) at same or multiple softwares or Hardware realizes.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or meter Calculation machine program product.Therefore, the present invention can use complete hardware embodiment, complete software implementation or knot The form of the embodiment in terms of conjunction software and hardware.And, the present invention can use and wherein wrap one or more Computer-usable storage medium containing computer usable program code (include but not limited to disk memory, CD-ROM, optical memory etc.) form of the upper computer program implemented.
The present invention is with reference to method, equipment (system) and computer program product according to embodiments of the present invention The flow chart of product and/or block diagram describe.It should be understood that can by computer program instructions flowchart and / or block diagram in each flow process and/or flow process in square frame and flow chart and/or block diagram and/ Or the combination of square frame.These computer program instructions can be provided to general purpose computer, special-purpose computer, embedding The processor of formula datatron or other programmable data processing device is to produce a machine so that by calculating The instruction that the processor of machine or other programmable data processing device performs produces for realizing at flow chart one The device of the function specified in individual flow process or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and computer or the process of other programmable datas can be guided to set In the standby computer-readable memory worked in a specific way so that be stored in this computer-readable memory Instruction produce and include the manufacture of command device, this command device realizes in one flow process or multiple of flow chart The function specified in flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, makes Sequence of operations step must be performed to produce computer implemented place on computer or other programmable devices Reason, thus the instruction performed on computer or other programmable devices provides for realizing flow chart one The step of the function specified in flow process or multiple flow process and/or one square frame of block diagram or multiple square frame.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know base This creativeness concept, then can make other change and amendment to these embodiments.So, appended right is wanted Ask and be intended to be construed to include preferred embodiment and fall into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various change and modification without deviating from this to the present invention Bright spirit and scope.So, if the present invention these amendment and modification belong to the claims in the present invention and Within the scope of its equivalent technologies, then the present invention is also intended to comprise these change and modification.

Claims (13)

1. a method of data synchronization, it is characterised in that including:
Obtain described mobile terminal and form the first geographical position letter successively at geographical location information the most in the same time Breath set;
In the first geographical location information set determining current time position geographical with arbitrary second prestored During confidence breath sets match, according to a period of time under mobile terminal described in described second geographical location information ensemble prediction The geographical position carved;
The geographical position of Serving cell and described mobile terminal subsequent time it is currently located according to described mobile terminal Put the Network measurement information of affiliated adjacent area, determine subsequent time network quality variation tendency;
The data syn-chronization mode of subsequent time is determined according to the subsequent time network quality variation tendency determined.
2. the method for claim 1, it is characterised in that described Network measurement information includes network Signal intensity.
3. method as claimed in claim 2, it is characterised in that be currently located according to described mobile terminal Belonging to the geographical position of Serving cell and described mobile terminal subsequent time, the Network measurement information of adjacent area, determines Network quality variation tendency, specifically includes:
The first network signal intensity that the described mobile terminal of comparison is currently located Serving cell is mobile whole with described Second network signal intensity of adjacent area belonging to the geographical position of end subsequent time;
If described first network signal intensity is more than described second network signal intensity, and both differences are more than During equal to the first predetermined threshold value, determine that the network quality of current time is better than the network quality of subsequent time;
If described first network signal intensity is more than described second network signal intensity, and both differences are less than During described first predetermined threshold value, determine that network quality keeps constant;
If described first network signal intensity is less than described second network signal intensity, and both differences are more than During equal to the second predetermined threshold value, determine that the network quality of subsequent time is better than the network quality of current time;
If described first network signal intensity is less than described second network signal intensity, and both differences are less than During described second predetermined threshold value, determine that network quality keeps constant.
4. method as claimed in claim 3, it is characterised in that according to the network quality change determined Trend determines the data syn-chronization mode of subsequent time, specifically includes:
If it is determined that the network quality of current time is better than subsequent time network quality, it is determined that at subsequent time The virtual server local with being positioned at described mobile terminal carries out data syn-chronization;
If it is determined that subsequent time network quality is better than the network quality of current time, it is determined that subsequent time with Network side server carries out data syn-chronization;
If it is determined that subsequent time network quality keeps constant, then keep and the most mutual server number According to synchronization.
5. method as claimed in claim 4, it is characterised in that if it is determined that the network matter of current time Amount is better than subsequent time network quality and current time when carrying out data syn-chronization with network side server, is opening Before described virtual server carries out data syn-chronization with it, also include:
The data of the current time of its record are obtained to described network side server;And
Opening after described virtual server, notifying the data of the current time that described virtual server obtains.
6. method as claimed in claim 4, it is characterised in that if it is determined that subsequent time network quality The network quality and the current time that are better than current time carry out data syn-chronization, then in lower a period of time with virtual server Carve after recovering to be connected with network side server, before carrying out data syn-chronization with network side server, described method, Also include:
Obtain first data and the of the storage of described virtual server of described network side server storage respectively Two data;
After the first data obtained and described second data fusion, it is sent to described network according to preset rules Side server.
7. the method for claim 1, it is characterised in that determine current time in accordance with the following methods Described first geographical location information set and the second geographical location information sets match prestored:
The geographical location information quantity comprised in the first geographical location information set of current time reaches default During quantity, it is judged that the geographical location information that described first geographical location information set comprises whether with prestore The second geographical location information set in continuous print, equal number geographical location information identical;
If it is identical, it is determined that the first geographical location information set of current time and the second ground prestored Reason positional information set coupling;
Form successively if it is different, then continue to obtain described mobile terminal at geographical location information the most in the same time Second geographical location information collection merges storage.
8. a data synchronization unit, it is characterised in that including:
Acquiring unit, forms the first ground for obtaining mobile terminal successively at geographical location information the most in the same time Reason positional information set;
Position prediction unit, for determining the first geographical location information set of current time and prestoring Arbitrary second geographical location information sets match time, according to described second geographical location information ensemble prediction institute State the geographical position of mobile terminal subsequent time;
Network quality anticipation unit, for being currently located Serving cell and described movement according to described mobile terminal The Network measurement information of adjacent area belonging to the geographical position of terminal subsequent time, determines that subsequent time network quality becomes Change trend;
Data synchronisation unit, for the subsequent time network matter determined according to described network quality anticipation unit Amount variation tendency determines the data syn-chronization mode of subsequent time.
9. device as claimed in claim 8, it is characterised in that described Network measurement information includes network Signal intensity;And
Described network quality anticipation unit, including:
Relatively subelement, the first network signal being currently located Serving cell for relatively described mobile terminal is strong Second network signal intensity of adjacent area belonging to the geographical position of degree and described mobile terminal subsequent time;
First determines subelement, if for described first network signal intensity more than described second network signal Intensity, and when both differences are more than or equal to the first predetermined threshold value, under determining that the network quality of current time is better than The network quality in one moment;If described first network signal intensity is more than described second network signal intensity, And both differences less than described first predetermined threshold value time, determine network quality keep constant;If described first Network signal intensity is less than described second network signal intensity, and both differences are more than or equal to the second predetermined threshold value Time, determine that the network quality of subsequent time is better than the network quality of current time;If described first network is believed Number intensity less than described second network signal intensity, and both differences less than described second predetermined threshold value time, really Determine network quality and keep constant.
10. device as claimed in claim 9, it is characterised in that
Described data synchronisation unit, if determining current time specifically for described network quality anticipation unit Network quality is better than subsequent time network quality, it is determined that at subsequent time with to be positioned at described mobile terminal local Virtual server carry out data syn-chronization;If it is determined that subsequent time network quality is better than the network of current time Quality, it is determined that subsequent time and network side server carry out data syn-chronization;If it is determined that subsequent time network Quality keeps constant, then keep carrying out data syn-chronization with the most mutual server.
11. devices as claimed in claim 10, it is characterised in that also include:
First acquiring unit, if determining the network quality of current time for described network quality anticipation unit It is better than subsequent time network quality and current time when carrying out data syn-chronization with network side server, opens institute State before virtual server carries out data syn-chronization with it, obtain the current of its record to described network side server The data in moment;
Notification unit, for opening after described virtual server, notifies described in described virtual server first The data of the current time that acquiring unit obtains.
12. devices as claimed in claim 10, it is characterised in that also include:
For described network quality anticipation unit, second acquisition unit, if determining that subsequent time network quality is excellent Network quality and current time in current time carry out data syn-chronization, then at subsequent time with virtual server After recovering to be connected with network side server, before carrying out data syn-chronization with network side server, obtain institute respectively State the first data and second data of described virtual server storage of network side server storage;
Data transmission unit, is used for the first data obtained and described second data fusion according to preset rules After be sent to described network side server.
13. devices as claimed in claim 8, it is characterised in that described position prediction unit, including:
Judgment sub-unit, for the geographical position letter comprised in the first geographical location information set of current time When breath quantity reaches predetermined number, it is judged that the geographical location information that described first geographical location information set comprises Whether with continuous print, the geographical location information of equal number in the second geographical location information set prestored Identical;
Coupling subelement, for when the judged result of described judgment sub-unit is for being, determines the of current time One geographical location information set and the second geographical location information sets match prestored;
First obtains subelement, for when described judging unit result is no, continues to obtain described movement eventually End forms the second geographical location information set successively at geographical location information the most in the same time;
Storing sub-units, for storing the acquisition of described acquisition subelement, described mobile terminal the most in the same time The second geographical location information set of forming successively of geographical location information.
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 true CN105897811A (en) 2016-08-24
CN105897811B 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)

Cited By (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
CN109582726A (en) * 2018-12-18 2019-04-05 网易(杭州)网络有限公司 The treating method and apparatus of tables of data
CN109660469A (en) * 2018-10-23 2019-04-19 惠州Tcl移动通信有限公司 Method, terminal and the device with store function of synchronous variation network signal
CN110971936A (en) * 2019-12-06 2020-04-07 中车青岛四方车辆研究所有限公司 Video data processing method, server and video receiving end
CN111589107A (en) * 2020-05-14 2020-08-28 北京代码乾坤科技有限公司 Behavior prediction method and device of virtual model
CN112911620A (en) * 2021-02-18 2021-06-04 联想(北京)有限公司 Information processing method, information processing device, electronic equipment and storage medium
CN112947315A (en) * 2021-02-25 2021-06-11 华强方特(深圳)科技有限公司 Double-buffer-based on-line generation method of shaft motion data and related equipment
WO2023221488A1 (en) * 2022-05-17 2023-11-23 腾讯科技(深圳)有限公司 Remote driving control method and apparatus, computer device, 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

Cited By (10)

* 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
CN109660469A (en) * 2018-10-23 2019-04-19 惠州Tcl移动通信有限公司 Method, terminal and the device with store function of synchronous variation network signal
CN109660469B (en) * 2018-10-23 2022-09-02 惠州Tcl移动通信有限公司 Method and terminal for synchronously changing network signals and device with storage function
CN109582726A (en) * 2018-12-18 2019-04-05 网易(杭州)网络有限公司 The treating method and apparatus of tables of data
CN110971936A (en) * 2019-12-06 2020-04-07 中车青岛四方车辆研究所有限公司 Video data processing method, server and video receiving end
CN111589107A (en) * 2020-05-14 2020-08-28 北京代码乾坤科技有限公司 Behavior prediction method and device of virtual model
CN112911620A (en) * 2021-02-18 2021-06-04 联想(北京)有限公司 Information processing method, information processing device, electronic equipment and storage medium
CN112911620B (en) * 2021-02-18 2023-05-02 联想(北京)有限公司 Information processing method and device, electronic equipment and storage medium
CN112947315A (en) * 2021-02-25 2021-06-11 华强方特(深圳)科技有限公司 Double-buffer-based on-line generation method of shaft motion data and related equipment
WO2023221488A1 (en) * 2022-05-17 2023-11-23 腾讯科技(深圳)有限公司 Remote driving control method and apparatus, computer device, and storage medium

Also Published As

Publication number Publication date
CN105897811B (en) 2019-04-23

Similar Documents

Publication Publication Date Title
CN105897811A (en) data synchronization method and device
Altman et al. Forever young: Aging control for hybrid networks
CN102377462B (en) Method and system for interactively selecting auxiliary cell
CN107333232B (en) Terminal positioning method and network equipment
He et al. A simple and robust vertical handoff algorithm for heterogeneous wireless mobile networks
CN104468327B (en) A kind of group Adding Way, Apparatus and system
CN101529947A (en) Selecting a target cell for a blind handover
CN106686607B (en) Communication network, service access method and related device
CN104641683B (en) Processing method, user equipment and the base station of radio jink failure
CN106489274A (en) One kind is in RRC Idle state terminal control method for movement, terminal and base station
CN102843738B (en) Determine the method and apparatus of terminal management mark and wireless signaling in switching
CN102368745A (en) Method for providing time difference information in instant messaging and system thereof
CN103533577B (en) Vertical Handover judgement control method and system between a kind of heterogeneous wireless network
EP2903344A1 (en) Server device capable of analyzing communication behavior, control method for mobile terminal, and computer program
CN110177331A (en) A kind of positioning of terminal device, the method and device for establishing hotspot knowledge base
CN108966339A (en) Base station clock synchronization method, device, equipment and computer readable storage medium
CN110475383A (en) Determine the method and device of father node
CN103379618B (en) Estimate the method for terminal velocity, target BS and system
CN109996240A (en) A kind of edge data center dynamic piles up configuration method and device
US20230403612A1 (en) Cell data transmission method and apparatus and electronic device
CN106454880A (en) Signaling tracking task processing method and apparatus
CN112954774B (en) Wi-Fi network identification method and device, electronic equipment and storage medium
CN111787584B (en) Data acquisition method and system based on Internet of things
CN108513263A (en) A kind of localization method and terminal
CN115802418A (en) Connection switching management system and method

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