[go: up one dir, main page]

CN105992332B - Data synchronization method and device - Google Patents

Data synchronization method and device Download PDF

Info

Publication number
CN105992332B
CN105992332B CN201510058650.6A CN201510058650A CN105992332B CN 105992332 B CN105992332 B CN 105992332B CN 201510058650 A CN201510058650 A CN 201510058650A CN 105992332 B CN105992332 B CN 105992332B
Authority
CN
China
Prior art keywords
wifi
data
synchronous
synchronization
server
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
CN201510058650.6A
Other languages
Chinese (zh)
Other versions
CN105992332A (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.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201510058650.6A priority Critical patent/CN105992332B/en
Publication of CN105992332A publication Critical patent/CN105992332A/en
Application granted granted Critical
Publication of CN105992332B publication Critical patent/CN105992332B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the application provides a data synchronization method and device. The data synchronization method comprises the following steps: determining current synchronous state information of the mobile terminal, wherein the synchronous state information comprises at least one of a wireless fidelity (WIFI) connection state, geographical position information and preset synchronous parameters; determining whether synchronous WIFI exists in the scanned WIFI according to a preset data synchronization strategy and synchronization state information, wherein the synchronous WIFI is the WIFI which needs data synchronization; and if the synchronous WIFI exists, obtaining data of the synchronous WIFI from a server. According to the method, different data synchronization modes are adopted, the WIFI data synchronization is carried out efficiently and controllably and in a reasonable data volume, the mobile terminal is guaranteed to support the most accurate WIFI service with small storage consumption and network flow consumption, and transmission of useless WIFI data between the server and the mobile terminal is reduced.

Description

Data synchronization method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a data synchronization method and a data synchronization apparatus.
Background
The mobile device can perform network communication by connecting with a Wireless Fidelity (WIFI), and compared with other communication modes of the mobile device, the WIFI has the advantages of high speed, good stability and low price.
Before being connected with WIFI, the mobile device needs to request the server for obtaining related data of the WIFI, and then the server synchronizes WIFI data to the mobile device. The existing methods for synchronizing WIFI data to mobile equipment by a server include full data synchronization, data synchronization according to user latitude, paging data synchronization and the like, however, in the methods, as the server cannot determine the WIFI which can be really used by the mobile equipment, the server can synchronize more or even all related data of the WIFI to the mobile terminal, a large amount of useless data is generated, and network flow and storage space of a user are wasted.
Therefore, one technical problem that needs to be urgently solved by those skilled in the art is: how to reduce the transmission of unwanted WIFI data between the server and the mobile device.
Disclosure of Invention
The technical problem to be solved by the embodiments of the present application is to provide a data synchronization method, which can reduce transmission of useless WIFI data between a server and a mobile device.
Correspondingly, the embodiment of the application also provides a data synchronization device, which is used for ensuring the realization and the application of the method.
In order to solve the above problem, the present application discloses a data synchronization method, including:
determining current synchronous state information of the mobile terminal, wherein the synchronous state information comprises at least one of a wireless fidelity (WIFI) connection state, geographical position information and preset synchronous parameters;
determining whether synchronous WIFI exists in the scanned WIFI according to a preset data synchronization strategy and the synchronization state information, wherein the synchronous WIFI is the WIFI which needs data synchronization;
and if the synchronous WIFI exists, obtaining data of the synchronous WIFI from a server.
Further, the preset synchronization parameter includes at least one of a data synchronization period, a minimum geographic radius of data synchronization, and a data radius for synchronization.
Further, the determining whether synchronous WIFI exists in the scanned WIFI according to a preset data synchronization policy and the synchronization state information includes:
and when the WIFI connection state is connected and has no geographic position information, all the scanned WIFI are used as synchronous WIFI.
Further, the obtaining data of the synchronized WIFI from the server includes:
requesting the data of the synchronous WIFI from the server according to the data synchronization period;
and receiving the data of the synchronous WIFI sent by the server.
Further, the determining whether synchronous WIFI exists in the scanned WIFI according to a preset data synchronization policy and the synchronization state information includes:
and when the WIFI connection state is connected and the geographical position information is obtained, using the WIFI meeting the synchronized data radius in the scanned WIFI as the synchronized WIFI.
Further, the obtaining data of the synchronized WIFI from the server includes:
requesting the data of the synchronous WIFI from a server according to the data synchronization period or the minimum geographic radius of the data synchronization;
and receiving the data of the synchronous WIFI sent by the server.
Further, the determining whether synchronous WIFI exists in the scanned WIFI according to a preset data synchronization policy and the synchronization state information includes:
and when the WIFI connection state is not connected, if the specific WIFI stored in the mobile terminal exists in the scanned WIFI, determining that no synchronous WIFI exists in the scanned WIFI.
Further, the determining whether synchronous WIFI exists in the scanned WIFI according to a preset data synchronization policy and the synchronization state information includes:
when the WIFI connection state is disconnected, if the specific WIFI stored by the mobile terminal does not exist in the scanned WIFI, sending the scanned WIFI to the server, so that the server compares the scanned WIFI with the specific WIFI stored by the server;
and taking the specific WIFI stored by the server in the scanned WIFI as synchronous WIFI.
Further, the obtaining data of the synchronized WIFI from the server includes:
and receiving the data of the synchronous WIFI sent by the server.
The present application further provides a data synchronization apparatus, including:
the information acquisition unit is configured to determine current synchronous state information of the mobile terminal, wherein the synchronous state information comprises at least one of a wireless fidelity (WIFI) connection state, geographic position information and preset synchronous parameters;
the synchronization determining unit is configured to determine whether synchronous WIFI exists in the scanned WIFI according to a preset data synchronization strategy and the synchronization state information, wherein the synchronous WIFI is the WIFI which needs data synchronization;
a data acquisition unit configured to acquire data of the synchronized WIFI from a server when the synchronization determination unit determines that the synchronized WIFI exists.
Further, the preset synchronization parameter includes at least one of a data synchronization period, a minimum geographic radius of data synchronization, and a data radius for synchronization.
Compared with the prior art, the embodiment of the application has the following advantages:
according to the embodiment of the application, the synchronous state information of the mobile terminal is obtained, and the corresponding data synchronization strategy is adopted according to the synchronous state information, so that the WIFI scanned by the mobile terminal is screened, and the WIFI capable of providing service is screened out to be used by the mobile terminal. According to the method, different data synchronization modes are adopted, the WIFI data synchronization is carried out efficiently and controllably and in a reasonable data volume, the mobile terminal is guaranteed to support the most accurate WIFI service with small storage consumption and network flow consumption, and transmission of useless WIFI data between the server and the mobile terminal is reduced.
Drawings
FIG. 1 is a flow chart of the steps of an embodiment of a data synchronization method of the present application;
FIG. 2 is a flow chart of steps of another data synchronization method embodiment of the present application;
FIG. 3 is a flow chart of steps of another data synchronization method embodiment of the present application;
FIG. 4 is a flow chart of steps of another data synchronization method embodiment of the present application;
fig. 5 is a block diagram of an embodiment of a data synchronization apparatus according to the present application.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, the present application is described in further detail with reference to the accompanying drawings and the detailed description.
Referring to fig. 1, a flowchart illustrating steps of an embodiment of a data synchronization method according to the present application is shown, which may specifically include the following steps:
step 101, determining current synchronization state information of the mobile terminal, wherein the synchronization state information comprises at least one of a wireless fidelity (WIFI) connection state, geographical position information and preset synchronization parameters.
In the embodiment of the present application, the data synchronization apparatus may be the mobile terminal itself, or may be a part of the mobile terminal. The data synchronization device firstly determines the current synchronization state information of the mobile terminal, wherein the synchronization state information can be one or a combination of any two or more than two of the WIFI connection state of the mobile terminal, the geographical position information of the mobile terminal, or the preset synchronization parameters in the mobile terminal.
The WIFI connection state of the mobile terminal can be obtained from a wireless communication module of the mobile terminal, and the SSID (WIFI name) and the MAC address of a WIFI network can be identified while the mobile terminal is connected with the WIFI, so that a WIFI device can be uniquely determined.
The geographical Location information of the mobile terminal may be Location Based Service (LBS) that obtains geographical Location information of the mobile terminal, such as longitude and latitude geographical coordinate data, through a mobile communication network, satellite positioning Service, and the like.
The preset synchronization parameter in the mobile terminal may include at least one of a data synchronization period, a minimum geographical radius of data synchronization, and a data radius for synchronization.
The data synchronization period (syncPeriod) is the minimum period for data synchronization, such as 24 hours, to ensure that the data is not repeated in a certain period of time, and avoid traffic waste.
The minimum geographical radius (syncRange) of data synchronization is the minimum geographical radius difference for data synchronization, e.g., the geographical location of a mobile terminal moves more than 5km before data synchronization.
The radius of data to be synchronized (syncDataRange) is a definition of the amount of data to be synchronized, the geographical radius of data synchronization to be performed centered around the location of the mobile terminal, e.g. the data within 10km from the current mobile terminal.
And step 102, determining whether synchronous WIFI exists in the scanned WIFI according to a preset data synchronization strategy and synchronization state information, wherein the synchronous WIFI is the WIFI which needs data synchronization.
The data synchronization device is preset with a data synchronization strategy, the data synchronization strategy comprises a rule for determining synchronous WIFI under different synchronization state information, wherein the synchronous WIFI is the WIFI which needs data synchronization.
For example, when the synchronous state information indicates that the WIFI of the mobile terminal is connected and no geographical location information exists, the WIFI scanned by the mobile terminal is used as the synchronous WIFI.
And when the synchronous state information is that the WIFI of the mobile terminal is connected and geographical position information exists, using the WIFI meeting the data radius synchronized in the preset synchronous parameters in the WIFI scanned by the mobile terminal as the synchronous WIFI.
When the synchronous state information is that the WIFI of the mobile terminal is not connected, if the WIFI scanned by the mobile terminal has the specific WIFI locally stored by the mobile terminal, the fact that the synchronous WIFI does not exist is determined, and data synchronization is not needed. The scanned WIFI and the specific WIFI stored in the mobile terminal can be compared, and as long as the scanned WIFI exists on the mobile terminal, the WIFI is considered to be the specific WIFI, and identification information of the WIFI can be compared specifically.
When the synchronous state information indicates that the WIFI of the mobile terminal is not connected and the WIFI scanned by the mobile terminal does not have the specific WIFI locally stored by the mobile terminal, the data synchronization device can send the WIFI scanned by the mobile terminal to the server, the server performs matching on the local specific WIFI, namely, the server determines whether the specific WIFI locally stored by the server exists in the WIFI scanned by the mobile terminal, and if the specific WIFI exists, the specific WIFI can be used as the synchronous WIFI.
The specific WIFI can be free WIFI which can be used by the mobile terminal, such as Paobao WIFI and the like, the Paobao WIFI is used for providing available, safe and free WIFI services nearby for the user, so that the user can use a WIFI network free of charge through WIFI connection, and other services provided by the Paobao can be used.
Of course, other data synchronization strategies may also be set according to the specific conditions of the mobile terminal, such as a traffic package, so as to select a suitable data synchronization strategy according to the synchronization state information of the mobile terminal. And when the synchronous WIFI is determined according to the preset data synchronization strategy and the current synchronous state information of the mobile terminal, executing the step 103, otherwise, not performing WIFI data synchronization.
And 103, acquiring data of the synchronous WIFI from the server.
After the data synchronization device determines the synchronous WIFI, the data synchronization device can directly request the server for the related data of the synchronous WIFI, and then receives the synchronous WIFI data sent by the server. When the preset synchronization parameters include the data synchronization period and/or the minimum geographic radius of the data synchronization, the data synchronization device can perform data synchronization control according to the data synchronization period and/or the minimum geographic radius of the data synchronization, and when the data synchronization period or the minimum geographic radius of the data synchronization is met, the data synchronization device requests the server to synchronize WIFI data. The data synchronization device can also directly receive data of the synchronized WIFI sent by the server without a request, for example, when the server performs specific WIFI matching, the server can directly send the matched data of the specific WIFI to the data synchronization device without the data synchronization device initiating a request.
The data synchronization device may interact with the server via Remote Procedure Call (RPC) requests.
The data of the WIFI needing to be synchronized may include MAC information and SSID information of the WIFI.
According to the embodiment of the application, the synchronous state information of the mobile terminal is obtained, and the corresponding data synchronization strategy is adopted according to the synchronous state information, so that the WIFI scanned by the mobile terminal is screened, and the WIFI capable of providing service is screened out to be used by the mobile terminal. According to the method, different data synchronization modes are adopted, the WIFI data synchronization is carried out efficiently and controllably and in a reasonable data volume, the mobile terminal is guaranteed to support the most accurate WIFI service with small storage consumption and network flow consumption, and transmission of useless WIFI data between the server and the mobile terminal is reduced.
Referring to fig. 2, a flowchart illustrating steps of another embodiment of a data synchronization method according to the present application is shown, which may specifically include the following steps:
step 201, determining current synchronization state information of the mobile terminal, where the synchronization state information includes a WIFI connection state and a preset synchronization parameter.
In this embodiment, the mobile terminal may be in an initial stage of service development, the data size is small, and the synchronization state information of the mobile terminal that can be obtained by the data synchronization device is a WIFI connection state and a preset synchronization parameter, and geographical location information cannot be obtained temporarily. Wherein the preset synchronization parameter comprises a data synchronization period.
Step 202, when the WIFI connection state is connected and there is no geographic location information, all the scanned WIFI are used as synchronous WIFI.
The mobile terminal has no flow burden in the WIFI connection environment, data screening cannot be performed according to geographical position information, and at the moment, the WIFI scanned by the mobile terminal can be used as synchronous WIFI.
And step 203, requesting the server for synchronizing WIFI data according to the data synchronization period.
In this embodiment, data synchronization of the synchronized WIFI may be performed according to a data synchronization period in the preset synchronization parameter.
And step 204, receiving the data of the synchronous WIFI sent by the server.
According to the embodiment, data synchronization is performed according to the data synchronization period, so that repeated synchronization of data in the data synchronization period is avoided, and transmission of useless WIFI data between the server and the mobile terminal is reduced.
Referring to fig. 3, a flowchart illustrating steps of another embodiment of a data synchronization method according to the present application is shown, which may specifically include the following steps:
step 301, determining current synchronization state information of the mobile terminal, where the synchronization state information includes a WIFI connection state, geographical location information, and preset synchronization parameters.
In this embodiment, the current synchronization state information of the mobile terminal, which can be obtained by the data synchronization device, includes a WIFI connection state, geographic location information, and a preset synchronization parameter, where the preset synchronization parameter includes a data synchronization period, a minimum geographic radius of data synchronization, and a data radius for synchronization.
Step 302, when the WIFI connection state is connected and the geographical location information is obtained, regarding the WIFI meeting the synchronized data radius in the scanned WIFI as a synchronized WIFI.
In this embodiment, when the WIFI connection state of the mobile terminal is connected and the geographical location information of the mobile terminal is obtained, it may be determined that the WIFI within the synchronized data radius is performed as the synchronized WIFI according to the geographical location information of the mobile terminal and the geographical location information of the scanned WIFI, where the mobile terminal may learn the geographical location information of the WIFI through an existing manner.
And step 303, requesting the server for data of the synchronized WIFI according to the data synchronization period or the minimum geographic radius of the data synchronization.
In this step, the request for the data of the synchronized WIFI to the server may be triggered when the data synchronization period or the minimum geographic radius of the data synchronization is satisfied, or the request for the data of the synchronized WIFI to the server may be triggered when any one of the data synchronization period and the minimum geographic radius of the data synchronization is satisfied.
And step 304, receiving the data of the synchronous WIFI sent by the server.
The data synchronization device can also inform the server of the geographical position information of the mobile terminal and the WIFI acquired by the data synchronization device and the scanned nearby WIFI network, so that the geographical position information base and the WIFI base of the server are enriched, and the capability of accurately screening and matching data is gradually improved.
In the embodiment, the scanned WIFI is screened according to the WIFI connection state, the geographic position information and the data radius for synchronization, so that WIFI data needing synchronization are reduced, data synchronization is controlled through the data synchronization period or the minimum geographic radius for data synchronization, repeated synchronization of the data is avoided, and transmission of useless WIFI data between the server and the mobile terminal is further reduced.
Referring to fig. 4, a flowchart illustrating steps of another embodiment of a data synchronization method according to the present application is shown, which may specifically include the following steps:
step 401, determining current synchronization state information of the mobile terminal, where the synchronization state information at least includes a WIFI connection state.
Step 402, when the WIFI connection state is not connected, determining whether specific WIFI exists in the WIFI scanned by the mobile terminal.
When the connection state of the mobile terminal WIFI is unconnected, performing data synchronization in this scenario may cause user traffic waste. In this step, the data synchronization device needs to determine whether a specific WIFI locally stored by the mobile terminal exists in the WIFI scanned by the mobile terminal, specifically, the scanned WIFI and the WIFI stored by the mobile terminal can be compared, and as long as the scanned WIFI exists on the mobile terminal, the WIFI is considered to be the specific WIFI, and specifically, identification information of the WIFI, such as MAC information and the like, can be compared.
In this embodiment, the specific WIFI may be a pay WIFI specifically.
In this step, if it is determined that a specific WIFI exists in the WIFI scanned by the mobile terminal, step 403 is executed; if not, go to step 404.
Step 403, determining that synchronous WIFI does not exist.
Specific WIFI exists in the scanned WIFI, if the precious WIFI is paid, the WIFI service provided by the precious WIFI is directly used, at the moment, the fact that synchronous WIFI does not exist in the scanned WIFI is determined, and the mobile terminal does not need to perform data synchronization.
And step 404, sending the WIFI scanned by the mobile terminal to a server.
Specifically, the data synchronization device may send the scanned WIFI to the server according to the control of the data synchronization period, and the server compares the scanned WIFI of the mobile terminal with the specific WIFI locally stored in the server. When the server determines that specific WIFI exists in the scanned WIFI, if paying for precious WIFI, the server can inform the data synchronization device of the determined specific WIFI, namely, the synchronous WIFI, and the server sends data of the specific WIFI to the data synchronization device.
Step 405, receiving synchronous WIFI data sent by the server, where the synchronous WIFI is a specific WIFI of the scanned WIFI determined by the server.
The data synchronization device can also inform the server of the geographic position information and the like of the mobile terminal and the WIFI network, which are acquired by the data synchronization device, so that the geographic position information base of the server is enriched, and the capability of accurately screening and matching data is gradually improved.
According to the embodiment, the WIFI data synchronization is avoided or reduced by utilizing specific WIFI in the state that the mobile terminal WIFI is not connected, such as paying precious WIFI, and the storage consumption and the network flow consumption of the mobile terminal are reduced.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the embodiments are not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the embodiments. Further, those skilled in the art will also appreciate that the embodiments described in the specification are presently preferred and that no particular act is required of the embodiments of the application.
Referring to fig. 5, a block diagram of a data synchronization apparatus according to an embodiment of the present application is shown, which may specifically include the following units:
the information obtaining unit 501 is configured to determine current synchronization state information of the mobile terminal, where the synchronization state information includes at least one of a WIFI connection state, geographic location information, and preset synchronization parameters.
A synchronization determining unit 502 configured to determine whether a synchronous WIFI exists in the scanned WIFI according to a preset data synchronization policy and the synchronization state information, where the synchronous WIFI is a WIFI that needs data synchronization.
A data obtaining unit 503 configured to obtain data of the synchronized WIFI from a server when the synchronization determining unit determines that the synchronized WIFI exists.
In the embodiment of the application, the device screens the WIFI scanned by the mobile terminal by acquiring the synchronous state information of the mobile terminal and adopting a corresponding data synchronization strategy according to the synchronous state information, so that the WIFI capable of providing service is screened out for the mobile terminal to use. The device is efficient and controllable by adopting different data synchronization modes and performs WIFI data synchronization with reasonable data volume, so that the mobile terminal can support the most accurate WIFI service with smaller storage consumption and network flow consumption, and transmission of useless WIFI data between the server and the mobile terminal is reduced.
In another embodiment, the preset synchronization parameters include at least one of a data synchronization period, a minimum geographic radius of data synchronization, and a radius of data to synchronize.
In another embodiment of the present application, the synchronization determining unit 502 may be specifically configured to determine the scanned WIFI as the synchronized WIFI when the WIFI connection status is connected and there is no geographic location information. The data obtaining unit 503 may be specifically configured to request the server for the data of the synchronized WIFI according to the data synchronization period; and receiving the data of the synchronous WIFI sent by the server.
In another embodiment, the synchronization determining unit 502 may be specifically configured to determine, as the synchronized WIFI, a WIFI that satisfies the synchronized data radius from among the scanned WIFI that is connected and the geographic location information is obtained. The data obtaining unit 503 may be specifically configured to request the data of the synchronized WIFI from the server according to the data synchronization period or the minimum geographic radius of the data synchronization; and receiving the data of the synchronous WIFI sent by the server.
In another embodiment, the synchronization determining unit 502 may be specifically configured to determine that there is no synchronized WIFI among the scanned WIFI if there is a specific WIFI stored by the mobile client in the scanned WIFI when the WIFI connection status is unconnected.
In another embodiment, the synchronization determining unit 502 may be specifically configured to, when the WIFI connection state is unconnected, if there is no specific WIFI stored by the mobile terminal in the scanned WIFI, send the scanned WIFI to the server, so that the server compares the scanned WIFI with the specific WIFI stored by the server; and taking the specific WIFI stored by the server in the scanned WIFI as synchronous WIFI. The data obtaining unit 503 may be specifically configured to receive the data of the synchronized WIFI transmitted by the server.
The embodiment of the present application further provides an electronic device, which includes a data bus, a memory, a transceiver, and a processor, where the memory stores a section of running program code, and the processor obtains the program code in the memory through the data bus and executes the following steps:
determining current synchronous state information of the mobile terminal, wherein the synchronous state information comprises at least one of a wireless fidelity (WIFI) connection state, geographical position information and preset synchronous parameters;
determining whether synchronous WIFI exists in the scanned WIFI according to a preset data synchronization strategy and the synchronization state information, wherein the synchronous WIFI is the WIFI which needs data synchronization;
and the transceiver is used for obtaining the data of the synchronous WIFI from the server when the processor determines that the synchronous WIFI exists in the scanned WIFI.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one of skill in the art, embodiments of the present application may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
In a typical configuration, the computer device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory. The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium. Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-transitory computer readable media (fransitory media), such as modulated data signals and carrier waves.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present application have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the true scope of the embodiments of the application.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. The term "comprising" is used to specify the presence of stated elements, but not necessarily the presence of stated elements, unless otherwise specified.
The data synchronization method and the data synchronization apparatus provided by the present application are introduced in detail above, and specific examples are applied herein to explain the principles and embodiments of the present application, and the descriptions of the above embodiments are only used to help understand the method and the core ideas of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (7)

1. A method of data synchronization, comprising:
determining current synchronous state information of the mobile terminal, wherein the synchronous state information comprises a wireless fidelity (WIFI) connection state and at least one of geographical position information and preset synchronous parameters;
determining whether synchronous WIFI exists in the scanned WIFI according to a preset data synchronization strategy and the synchronization state information, wherein the synchronous WIFI is the WIFI which needs data synchronization, and the preset data synchronization strategy contains different synchronization state information and a rule of the synchronous WIFI;
if the synchronous WIFI exists, obtaining data of the synchronous WIFI from a server;
wherein, according to a preset data synchronization policy and the synchronization state information, determining whether a synchronous WIFI exists in the scanned WIFI includes:
when the WIFI connection state is connected and no geographic position information exists, the scanned WIFI is used as synchronous WIFI;
when the WIFI connection state is connected and the geographical position information is obtained, using the WIFI meeting the synchronized data radius in the scanned WIFI as synchronized WIFI;
when the WIFI connection state is not connected, if specific WIFI stored by the mobile terminal exists in the scanned WIFI, determining that synchronous WIFI does not exist in the scanned WIFI;
when the WIFI connection state is disconnected, if the specific WIFI stored by the mobile terminal does not exist in the scanned WIFI, sending the scanned WIFI to the server, so that the server compares the scanned WIFI with the specific WIFI stored by the server;
and taking the specific WIFI stored by the server in the scanned WIFI as synchronous WIFI.
2. The method of claim 1, wherein the preset synchronization parameters comprise at least one of a data synchronization period, a minimum geographic radius of data synchronization, and a radius of data to synchronize;
the minimum geographic radius of the data synchronization is the minimum geographic radius difference for data synchronization;
the data radius for synchronization is the geographical radius of data synchronization required by taking the position of the mobile terminal as the center.
3. The method of claim 1, wherein the obtaining data for the synchronized WIFI from a server comprises:
requesting the data of the synchronous WIFI from the server according to a data synchronization period;
and receiving the data of the synchronous WIFI sent by the server.
4. The method of claim 2, wherein the obtaining data for the synchronized WIFI from a server comprises:
requesting the data of the synchronous WIFI from a server according to the data synchronization period or the minimum geographic radius of the data synchronization;
and receiving the data of the synchronous WIFI sent by the server.
5. The method of claim 1, wherein the obtaining data for the synchronized WIFI from a server comprises:
and receiving the data of the synchronous WIFI sent by the server.
6. A data synchronization apparatus, comprising:
the information acquisition unit is configured to determine current synchronous state information of the mobile terminal, wherein the synchronous state information comprises a wireless fidelity (WIFI) connection state and at least one of geographical position information and preset synchronous parameters;
the device comprises a synchronization determining unit, a synchronization determining unit and a synchronization processing unit, wherein the synchronization determining unit is configured to determine whether synchronous WIFI exists in the scanned WIFI according to a preset data synchronization strategy and the synchronization state information, the synchronous WIFI is the WIFI which needs data synchronization, and the preset data synchronization strategy contains different synchronization state information and determines a rule of the synchronous WIFI;
a data acquisition unit configured to acquire data of the synchronized WIFI from a server when the synchronization determination unit determines that the synchronized WIFI exists;
wherein, the synchronization determining unit is specifically configured to:
when the WIFI connection state is connected and no geographic position information exists, the scanned WIFI is used as synchronous WIFI;
when the WIFI connection state is connected and the geographical position information is obtained, using the WIFI meeting the synchronized data radius in the scanned WIFI as synchronized WIFI;
when the WIFI connection state is not connected, if specific WIFI stored by the mobile terminal exists in the scanned WIFI, determining that synchronous WIFI does not exist in the scanned WIFI;
when the WIFI connection state is disconnected, if the specific WIFI stored by the mobile terminal does not exist in the scanned WIFI, sending the scanned WIFI to the server, so that the server compares the scanned WIFI with the specific WIFI stored by the server;
and taking the specific WIFI stored by the server in the scanned WIFI as synchronous WIFI.
7. The apparatus of claim 6, wherein the preset synchronization parameters comprise at least one of a data synchronization period, a minimum geographic radius of data synchronization, and a radius of data to synchronize;
the minimum geographic radius of the data synchronization is the minimum geographic radius difference for data synchronization;
the data radius for synchronization is the geographical radius of data synchronization required by taking the position of the mobile terminal as the center.
CN201510058650.6A 2015-02-04 2015-02-04 Data synchronization method and device Active CN105992332B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510058650.6A CN105992332B (en) 2015-02-04 2015-02-04 Data synchronization method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510058650.6A CN105992332B (en) 2015-02-04 2015-02-04 Data synchronization method and device

Publications (2)

Publication Number Publication Date
CN105992332A CN105992332A (en) 2016-10-05
CN105992332B true CN105992332B (en) 2020-02-21

Family

ID=57037426

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510058650.6A Active CN105992332B (en) 2015-02-04 2015-02-04 Data synchronization method and device

Country Status (1)

Country Link
CN (1) CN105992332B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102907121A (en) * 2010-05-20 2013-01-30 At&T移动第二有限责任公司 WI-FI intelligent selection engine
CN102946591A (en) * 2012-11-15 2013-02-27 天津黑米网络科技有限公司 Method for instantly releasing information by utilizing WiFi (Wireless Fidelity)
CN103024929A (en) * 2012-12-20 2013-04-03 惠州Tcl移动通信有限公司 Mobile terminal and method for connecting wireless network based on mobile terminal
CN103176997A (en) * 2011-12-21 2013-06-26 上海博路信息技术有限公司 Publishing and receiving system for multi-dimensional information
WO2013147862A1 (en) * 2012-03-30 2013-10-03 Intel Corporation Wireless network connectivity prediction based on user patterns and behavior
CN103442413A (en) * 2013-08-29 2013-12-11 惠州Tcl移动通信有限公司 Wireless network setting method of mobile terminal
CN103475996A (en) * 2013-08-19 2013-12-25 小米科技有限责任公司 Network connecting method, network sharing method and devices

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8750265B2 (en) * 2009-07-20 2014-06-10 Wefi, Inc. System and method of automatically connecting a mobile communication device to a network using a communications resource database

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102907121A (en) * 2010-05-20 2013-01-30 At&T移动第二有限责任公司 WI-FI intelligent selection engine
CN103176997A (en) * 2011-12-21 2013-06-26 上海博路信息技术有限公司 Publishing and receiving system for multi-dimensional information
WO2013147862A1 (en) * 2012-03-30 2013-10-03 Intel Corporation Wireless network connectivity prediction based on user patterns and behavior
CN102946591A (en) * 2012-11-15 2013-02-27 天津黑米网络科技有限公司 Method for instantly releasing information by utilizing WiFi (Wireless Fidelity)
CN103024929A (en) * 2012-12-20 2013-04-03 惠州Tcl移动通信有限公司 Mobile terminal and method for connecting wireless network based on mobile terminal
CN103475996A (en) * 2013-08-19 2013-12-25 小米科技有限责任公司 Network connecting method, network sharing method and devices
CN103442413A (en) * 2013-08-29 2013-12-11 惠州Tcl移动通信有限公司 Wireless network setting method of mobile terminal

Also Published As

Publication number Publication date
CN105992332A (en) 2016-10-05

Similar Documents

Publication Publication Date Title
CN109673037B (en) A network function discovery method and device
US8774836B2 (en) Method and system for optimized transfer of location database information
KR20210119504A (en) Communication method and apparatus, entity and computer readable storage medium
CN107182098B (en) Method and equipment for realizing switching of user equipment between wireless access points
KR20170102517A (en) Method and apparatus for determining an area to be superimposed on an image, image superimposing method and apparatus, image displaying method and apparatus
CN109246658B (en) Method and equipment for transmitting no-flow data
CN110069919B (en) Information acquisition method and device
JP2016517518A (en) Access point selection for assistance data generation
EP3667489A1 (en) Method and device for managing application program
CN108024308B (en) Method and equipment for sharing and connecting wireless access points
CN103744672A (en) Service data obtaining method, mobile terminal, server and data providing system
CN110336592B (en) Data transmission method, electronic device and storage medium suitable for Bluetooth card reader
CN103810010A (en) Information processing method and first electronic device terminal
EP3198916A1 (en) Requesting extra spectrum
CN106888461B (en) Method and equipment for constructing weak network environment
CN106331048B (en) Data processing method, device and system and mobile equipment
CN105704296A (en) Application environment cloning method and device
CN108449705B (en) Method and device for controlling internet access position of wireless broadband user
CN110875947A (en) Data processing method and edge node equipment
CN110620808A (en) Method and device for pushing information
WO2022239349A1 (en) Server, request entity, and methods therefor
CN107094083B (en) Information pushing method, information obtaining method, information pushing equipment, information obtaining equipment
US9386411B2 (en) Radio access system, controlling apparatus, and terminal apparatus
CN109699068B (en) Base station synchronization method and device
CN105992332B (en) Data synchronization method and device

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
TR01 Transfer of patent right

Effective date of registration: 20200924

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20200924

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Patentee before: Alibaba Group Holding Ltd.

TR01 Transfer of patent right