CN106357764B - Data synchronization method of mobile terminal and server - Google Patents
Data synchronization method of mobile terminal and server Download PDFInfo
- Publication number
- CN106357764B CN106357764B CN201610826854.4A CN201610826854A CN106357764B CN 106357764 B CN106357764 B CN 106357764B CN 201610826854 A CN201610826854 A CN 201610826854A CN 106357764 B CN106357764 B CN 106357764B
- Authority
- CN
- China
- Prior art keywords
- message
- synchronized
- mobile terminal
- group
- historical traffic
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/04—Real-time or near real-time messaging, e.g. instant messaging [IM]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Description
技术领域technical field
本发明涉及计算机技术领域,特别涉及一种移动终端的数据同步方法、及服务器。The invention relates to the field of computer technology, in particular to a data synchronization method for a mobile terminal and a server.
背景技术Background technique
目前即时通讯软件都支持多终端设备同时登陆,例如:在手机和电脑上均登陆。At present, all instant messaging software supports simultaneous login on multiple terminal devices, for example: login on both mobile phones and computers.
在手机和电脑上均登陆的情况下,服务器会将即时通讯软件收到和发送的信息进行同步。When both the mobile phone and the computer are logged in, the server will synchronize the information received and sent by the instant messaging software.
所谓同步,就是把这些信息发送给手机和电脑上的即时通讯软件的客户端;也就是说,即时通讯软件的客户端,在手机侧和在电脑侧,均会接收到这些信息。The so-called synchronization is to send the information to the client of the instant messaging software on the mobile phone and the computer; that is to say, the client of the instant messaging software will receive the information on both the mobile phone side and the computer side.
目前即时通讯软件被初次安装后,通讯录里的个人或者群组使用默认的接收并提示消息。或者,用户设定屏蔽消息后不进行消息同步。At present, after the instant messaging software is installed for the first time, the individuals or groups in the address book will receive and prompt messages by default. Alternatively, the user does not perform message synchronization after blocking messages.
以上方案由于群组并不见得是所有信息都不关注,因此用户很多时候仍然会接收这些信息,存在浪费流量和存储空间的问题。In the above solution, because the group does not necessarily pay attention to all the information, users will still receive the information in many cases, and there is a problem of wasting traffic and storage space.
发明内容Contents of the invention
本发明实施例提供了一种移动终端的数据同步方法、及服务器,用于减少对移动终端流量的消耗,并节省移动终端有限的存储空间。Embodiments of the present invention provide a data synchronization method for a mobile terminal and a server, which are used to reduce the consumption of traffic of the mobile terminal and save the limited storage space of the mobile terminal.
一方面本发明实施例提供了一种移动终端的数据同步方法,包括:On the one hand, an embodiment of the present invention provides a data synchronization method for a mobile terminal, including:
服务器确定即时通讯软件在移动终端和另一终端同时登陆的情况下,获取所述即时通讯软件的通讯录中各群组的历史流量消耗量;The server determines that the instant messaging software obtains the historical traffic consumption of each group in the address book of the instant messaging software when the mobile terminal and another terminal log in at the same time;
有待同步消息需要发往所述移动终端前,确定所述待同步消息所属的群组,若所述待同步消息所属的群组的历史流量消耗量大于预定阈值,则存储所述待同步消息,并记录未同步到所述移动终端的消息数量;Before the message to be synchronized needs to be sent to the mobile terminal, determine the group to which the message to be synchronized belongs, and if the historical traffic consumption of the group to which the message to be synchronized belongs is greater than a predetermined threshold, store the message to be synchronized, And record the number of messages that are not synchronized to the mobile terminal;
向所述移动终端发送告知消息,在所述告知消息中携带所述待同步消息所属的群组的标识以及未同步的消息数量。Sending a notification message to the mobile terminal, where the notification message carries the identifier of the group to which the message to be synchronized belongs and the number of unsynchronized messages.
在一种可选的实现方式中,所述方法还包括:In an optional implementation, the method also includes:
接收来自所述移动终端的消息获取请求,所述消息获取请求指定获取所述待同步消息;receiving a message acquisition request from the mobile terminal, where the message acquisition request specifies acquisition of the message to be synchronized;
将存储的所述待同步消息发往所述移动终端。sending the stored message to be synchronized to the mobile terminal.
在一种可选的实现方式中,所述将存储的所述待同步消息发往所述移动终端包括:In an optional implementation manner, the sending the stored message to be synchronized to the mobile terminal includes:
首先将存储的所述待同步消息中的文字消息发往所述移动终端,在接收到图片获取指令后,发送存储的所述待同步消息中对应所述图片获取指令指定的图片。First, send the text message in the stored message to be synchronized to the mobile terminal, and after receiving the picture acquisition instruction, send the picture corresponding to the picture acquisition instruction in the stored message to be synchronized.
在一种可选的实现方式中,所述待同步消息所属的群组的历史流量消耗量大于预定阈值包括:In an optional implementation manner, the historical traffic consumption of the group to which the message to be synchronized belongs is greater than a predetermined threshold includes:
所述待同步消息所属的群组的历史流量消耗量在所有群组中消耗的流量从高到低排名高于预定排名值;The historical traffic consumption of the group to which the message to be synchronized belongs ranks higher than a predetermined ranking value among the traffic consumed in all groups from high to low;
或者,所述待同步消息所属的群组的历史流量消耗量中图片消息消耗的流量大于预定图片阈值;Or, in the historical traffic consumption of the group to which the message to be synchronized belongs, the traffic consumed by the picture message is greater than a predetermined picture threshold;
或者,所述待同步消息所属的群组的历史流量消耗量占所有群组流量总消耗量的比例大于预定比例阈值。Or, the ratio of the historical traffic consumption of the group to which the message to be synchronized belongs to the total traffic consumption of all groups is greater than a predetermined ratio threshold.
在一种可选的实现方式中,所述获取所述即时通讯软件的通讯录中各群组的历史流量消耗量包括:In an optional implementation manner, the obtaining the historical traffic consumption of each group in the address book of the instant messaging software includes:
获取所述即时通讯软件的通讯录中未设置消息屏蔽功能的各群组的历史流量消耗量。Acquiring the historical traffic consumption of each group in the address book of the instant messaging software that has no message blocking function set.
二方面本发明实施例提供了一种服务器,包括:In two aspects, the embodiment of the present invention provides a server, including:
消耗获取单元,用于确定即时通讯软件在移动终端和另一终端同时登陆的情况下,获取所述即时通讯软件的通讯录中各群组的历史流量消耗量;Consumption acquisition unit, used to determine the instant messaging software in the case of simultaneous login of the mobile terminal and another terminal, to obtain the historical traffic consumption of each group in the address book of the instant messaging software;
群组确定单元,用于在有待同步消息需要发往所述移动终端前,确定所述待同步消息所属的群组;A group determining unit, configured to determine the group to which the message to be synchronized belongs before the message to be synchronized needs to be sent to the mobile terminal;
存储单元,用于若所述待同步消息所属的群组的历史流量消耗量大于预定阈值,则存储所述待同步消息;记录未同步到所述移动终端的消息数量;A storage unit, configured to store the message to be synchronized if the historical traffic consumption of the group to which the message to be synchronized belongs is greater than a predetermined threshold; record the number of messages not synchronized to the mobile terminal;
发送单元,用于向所述移动终端发送告知消息,在所述告知消息中携带所述待同步消息所属的群组的标识以及未同步的消息数量。A sending unit, configured to send a notification message to the mobile terminal, where the notification message carries the identifier of the group to which the message to be synchronized belongs and the number of unsynchronized messages.
在一种可选的实现方式中,所述服务器还包括:In an optional implementation manner, the server further includes:
接收单元,用于接收来自所述移动终端的消息获取请求,所述消息获取请求指定获取所述待同步消息;a receiving unit, configured to receive a message acquisition request from the mobile terminal, where the message acquisition request specifies acquisition of the message to be synchronized;
所述发送单元,还用于将存储的所述待同步消息发往所述移动终端。The sending unit is further configured to send the stored message to be synchronized to the mobile terminal.
在一种可选的实现方式中,所述发送单元,具体用于首先将存储的所述待同步消息中的文字消息发往所述移动终端,在接收到图片获取指令后,发送存储的所述待同步消息中对应所述图片获取指令指定的图片。In an optional implementation manner, the sending unit is specifically configured to first send the stored text message in the message to be synchronized to the mobile terminal, and after receiving the picture acquisition instruction, send the stored text message to the mobile terminal. The picture corresponding to the picture specified in the picture acquisition instruction in the message to be synchronized.
在一种可选的实现方式中,所述待同步消息所属的群组的历史流量消耗量大于预定阈值包括:In an optional implementation manner, the historical traffic consumption of the group to which the message to be synchronized belongs is greater than a predetermined threshold includes:
所述待同步消息所属的群组的历史流量消耗量在所有群组中消耗的流量从高到低排名高于预定排名值;The historical traffic consumption of the group to which the message to be synchronized belongs ranks higher than a predetermined ranking value among the traffic consumed in all groups from high to low;
或者,所述待同步消息所属的群组的历史流量消耗量中图片消息消耗的流量大于预定图片阈值;Or, in the historical traffic consumption of the group to which the message to be synchronized belongs, the traffic consumed by the picture message is greater than a predetermined picture threshold;
或者,所述待同步消息所属的群组的历史流量消耗量占所有群组流量总消耗量的比例大于预定比例阈值。Or, the ratio of the historical traffic consumption of the group to which the message to be synchronized belongs to the total traffic consumption of all groups is greater than a predetermined ratio threshold.
在一种可选的实现方式中,所述消耗获取单元,具体用于获取所述即时通讯软件的通讯录中未设置消息屏蔽功能的各群组的历史流量消耗量。In an optional implementation manner, the consumption acquisition unit is specifically configured to acquire the historical traffic consumption of each group in the address book of the instant messaging software that does not have a message blocking function set.
三方面本发明实施例提供了一种服务器,包括:接收设备、发送设备、处理器以及存储器;所述处理器用于执行本发明实施例提供的任意一项所述的方法。Three aspects The embodiment of the present invention provides a server, including: a receiving device, a sending device, a processor, and a memory; the processor is configured to execute any one of the methods provided in the embodiments of the present invention.
从以上技术方案可以看出,本发明实施例具有以下优点:在即时通讯软件在移动终端和另一终端同时登陆的情况下,获取通讯录中各群组的历史流量消耗量;对于那些流量消耗特别大的群组,通常来说是人数特别多或者经常发各种图片的群组,如果将这些消息全部直接发送给移动终端会浪费移动终端的流量,还会增加即时通讯软件在移动终端的体量,通过先存储这些待同步消息,在接收到用户需要这些消息的请求后才发送这些待同步消息,这样可以减少对移动终端流量的消耗,并节省移动终端有限的存储空间。It can be seen from the above technical solutions that the embodiments of the present invention have the following advantages: when the instant messaging software is logged in at the mobile terminal and another terminal at the same time, the historical traffic consumption of each group in the address book can be obtained; A particularly large group is usually a group with a large number of people or who often send various pictures. If all these messages are sent directly to the mobile terminal, it will waste the traffic of the mobile terminal, and it will also increase the traffic of the instant messaging software on the mobile terminal. Volume, by storing these messages to be synchronized first, and sending these messages to be synchronized after receiving a request from the user for these messages, this can reduce the consumption of mobile terminal traffic and save the limited storage space of the mobile terminal.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For Those of ordinary skill in the art can also obtain other drawings based on these drawings without any creative effort.
图1为本发明实施例方法流程示意图;Fig. 1 is a schematic flow chart of the method of the embodiment of the present invention;
图2为本发明实施例方法流程示意图;Fig. 2 is a schematic flow chart of the method of the embodiment of the present invention;
图3为本发明实施例服务器结构示意图;FIG. 3 is a schematic structural diagram of a server according to an embodiment of the present invention;
图4为本发明实施例服务器结构示意图;FIG. 4 is a schematic structural diagram of a server according to an embodiment of the present invention;
图5为本发明实施例服务器结构示意图;FIG. 5 is a schematic structural diagram of a server according to an embodiment of the present invention;
图6为本发明实施例服务器结构示意图。FIG. 6 is a schematic structural diagram of a server according to an embodiment of the present invention.
具体实施方式Detailed ways
为了使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明作进一步地详细描述,显然,所描述的实施例仅仅是本发明一部份实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, rather than all embodiments . Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
本发明实施例可以应用的一个具体的应用场景如下:A specific application scenario to which the embodiment of the present invention can be applied is as follows:
用户的QQ可能会有很多QQ群,例如:小区业主群、同学群、闲聊群、工作群等。每个群重要程度是不一样的,特别是有些群并不重要但是消息特别多,而且可能有些人特别喜欢发很多图片、动图、视频等等;消耗流量不说,即使使用免费的网络,这些数据过多会使即时通讯软件体量越来越大。电脑一侧还好,手机一侧可能会受不了。因此需要本发实施例的解决方案。The user's QQ may have many QQ groups, such as community owners' groups, classmates' groups, chat groups, work groups, etc. The importance of each group is different, especially some groups are not important but have a lot of news, and some people may especially like to post a lot of pictures, animations, videos, etc. Not to mention the data consumption, even if you use a free network, Too much data will make the instant messaging software bigger and bigger. The computer side is okay, but the mobile phone side may not be able to stand it. Therefore, the solution of the embodiment of the present invention is needed.
本发明实施例提供了一种移动终端的数据同步方法,其特征在于,包括:An embodiment of the present invention provides a data synchronization method for a mobile terminal, which is characterized in that it includes:
101:服务器确定即时通讯软件在移动终端和另一终端同时登陆的情况下,获取上述即时通讯软件的通讯录中各群组的历史流量消耗量;101: The server determines the historical data consumption of each group in the address book of the instant messaging software when the instant messaging software is logged in at the same time on the mobile terminal and another terminal;
在本发明实施例中主要关注移动终端,这是由于移动终端对流量消耗较为敏感,另外移动终端的存储空间有限,即时通讯软件如果体量过大会对移动终端的性能造成较大的影响。In the embodiment of the present invention, the mobile terminal is mainly concerned. This is because the mobile terminal is sensitive to traffic consumption, and the storage space of the mobile terminal is limited. If the instant messaging software is too large, it will have a great impact on the performance of the mobile terminal.
102:有待同步消息需要发往上述移动终端前,确定上述待同步消息所属的群组,若上述待同步消息所属的群组的历史流量消耗量大于预定阈值,则存储上述待同步消息,并记录未同步到上述移动终端的消息数量;102: Before the message to be synchronized needs to be sent to the mobile terminal, determine the group to which the message to be synchronized belongs. If the historical traffic consumption of the group to which the message to be synchronized belongs is greater than a predetermined threshold, store the message to be synchronized and record The number of messages not synchronized to the above mobile terminal;
待同步消息是指接收端为上述即时通讯软件的消息,由于即时通讯软件在移动终端和另一终端同时登陆了,按照要求是应该将消息发往该移动终端和上述另一终端的,因此可以称为待同步消息。The message to be synchronized refers to the message that the receiving end is the above-mentioned instant messaging software. Since the instant messaging software has logged in the mobile terminal and another terminal at the same time, the message should be sent to the mobile terminal and the other terminal according to the requirements, so it can It is called a message to be synchronized.
103:向上述移动终端发送告知消息,在上述告知消息中携带上述待同步消息所属的群组的标识以及未同步的消息数量。103: Send a notification message to the mobile terminal, where the notification message carries the identifier of the group to which the message to be synchronized belongs and the number of unsynchronized messages.
可以理解的是,在本实施例中,仅发送了告知消息并未发送实际的待同步消息给移动终端。It can be understood that, in this embodiment, only the notification message is sent and the actual message to be synchronized is not sent to the mobile terminal.
在即时通讯软件在移动终端和另一终端同时登陆的情况下,获取通讯录中各群组的历史流量消耗量;对于那些流量消耗特别大的群组,通常来说是人数特别多或者经常发各种图片的群组,如果将这些消息全部直接发送给移动终端会浪费移动终端的流量,还会增加即时通讯软件在移动终端的体量,通过先存储这些待同步消息,在接收到用户需要这些消息的请求后才发送这些待同步消息,这样可以减少对移动终端流量的消耗,并节省移动终端有限的存储空间。When the instant messaging software logs in the mobile terminal and another terminal at the same time, the historical traffic consumption of each group in the address book is obtained; Groups of various pictures, if all these messages are sent directly to the mobile terminal, it will waste the traffic of the mobile terminal and increase the size of the instant messaging software on the mobile terminal. By storing these messages to be synchronized first, when the user needs The messages to be synchronized are sent only after these messages are requested, which can reduce the consumption of mobile terminal traffic and save the limited storage space of the mobile terminal.
进一步地,本发明实施例还提供了将存储的待同步消息发往移动终端的具体实现方案:上述方法还包括:Further, the embodiment of the present invention also provides a specific implementation scheme of sending the stored message to be synchronized to the mobile terminal: the above method also includes:
接收来自上述移动终端的消息获取请求,上述消息获取请求指定获取上述待同步消息;Receive a message acquisition request from the above mobile terminal, where the above message acquisition request specifies to acquire the above message to be synchronized;
将存储的上述待同步消息发往上述移动终端。sending the stored message to be synchronized to the mobile terminal.
在本实施例中,由移动终端发起消息获取请求,基于移动终端的消息获取需求来发送待同步消息,这样可以最大限度的减少不不要消息被发送的可能性。In this embodiment, the mobile terminal initiates a message acquisition request, and sends the message to be synchronized based on the message acquisition requirement of the mobile terminal, so that the possibility of sending unnecessary messages can be minimized.
进一步地,由于直接将所有待同步消息发往移动终端,仍然有可能发送过多的消息,并且消耗过多的流量,使即时通讯软件体量变得过大,基于此本发明实施例还提供了如下方案:上述将存储的上述待同步消息发往上述移动终端包括:Furthermore, since all the messages to be synchronized are directly sent to the mobile terminal, it is still possible to send too many messages and consume too much traffic, making the volume of the instant messaging software too large. Based on this, the embodiment of the present invention also provides The following scheme: the above-mentioned sending the above-mentioned message to be synchronized to the above-mentioned storage to the above-mentioned mobile terminal includes:
首先将存储的上述待同步消息中的文字消息发往上述移动终端,在接收到图片获取指令后,发送存储的上述待同步消息中对应上述图片获取指令指定的图片。First, the text message in the stored message to be synchronized is sent to the mobile terminal, and after receiving the picture acquisition instruction, the picture corresponding to the picture acquisition instruction in the stored message to be synchronized is sent.
本实施例,将待同步消息发往移动终端的过程分为两段,先发文字消息,在用户再次提出需求的情况下,发送对应的图片,尽量少发不必要的图片。在本发明实施例中可以将图片的范畴扩大理解为:静态的图片,即:通常意义上的图片,还可以是动态的图片,例如:动图,还可以是视频。In this embodiment, the process of sending the message to be synchronized to the mobile terminal is divided into two stages. The text message is sent first, and when the user requests again, the corresponding picture is sent, and unnecessary pictures are sent as little as possible. In the embodiment of the present invention, the scope of pictures may be expanded to include: static pictures, that is, pictures in the usual sense, dynamic pictures, such as moving pictures, or videos.
本实施例还提供了通过群组的历史流量消耗量来区分需要进行待同步消息控制发送的具体实现方案,如下:上述待同步消息所属的群组的历史流量消耗量大于预定阈值包括:This embodiment also provides a specific implementation scheme for distinguishing the need to control and send the message to be synchronized by the historical traffic consumption of the group, as follows: the historical traffic consumption of the group to which the message to be synchronized belongs is greater than a predetermined threshold includes:
上述待同步消息所属的群组的历史流量消耗量在所有群组中消耗的流量从高到低排名高于预定排名值;The historical traffic consumption of the group to which the above-mentioned message to be synchronized belongs is higher than the predetermined ranking value among the traffic consumed in all groups from high to low;
或者,上述待同步消息所属的群组的历史流量消耗量中图片消息消耗的流量大于预定图片阈值;Or, in the historical traffic consumption of the group to which the message to be synchronized belongs, the traffic consumed by the picture message is greater than a predetermined picture threshold;
或者,上述待同步消息所属的群组的历史流量消耗量占所有群组流量总消耗量的比例大于预定比例阈值。Alternatively, the ratio of the historical traffic consumption of the group to which the message to be synchronized belongs to the total traffic consumption of all groups is greater than a predetermined ratio threshold.
在本实施例中,提供了三种可选的实现方案,需要说明的是,以上三个方案不是本发明实施例中确定需要进行待同步消息控制发送的全部穷举,因此不应理解为对本发明实施例具有唯一性限定。In this embodiment, three optional implementation schemes are provided. It should be noted that the above three schemes are not exhaustive in the embodiment of the present invention, and therefore should not be interpreted as The invention embodiments are uniquely limited.
优选地,本发明实施例中,由于有些消息群组可能已经设置了消息屏蔽功能,例如:不接收消息;那么这种情况下,可以不对这些群组进行分析,这样可以减少数据分析量,并且使后续待同步消息发往移动终端更准确,具体如下:上述获取上述即时通讯软件的通讯录中各群组的历史流量消耗量包括:Preferably, in the embodiment of the present invention, since some message groups may have set a message shielding function, for example: do not receive messages; then in this case, these groups may not be analyzed, which can reduce the amount of data analysis, and It is more accurate to send the follow-up message to be synchronized to the mobile terminal, as follows: the above-mentioned historical traffic consumption of each group in the address book of the above-mentioned instant messaging software includes:
获取上述即时通讯软件的通讯录中未设置消息屏蔽功能的各群组的历史流量消耗量。Obtain the historical traffic consumption of each group in the address book of the above instant messaging software that has not set the message blocking function.
如图2所示,本发明实施例还提供了基于通信系统交互的流程图,在该通信系统中包含三个设备:移动终端、手机以及个人电脑;待同步数据的同步对象:个人电脑和手机;控制设备:即时通讯软件的客户端运营商的服务器;具体流程图如下:As shown in Figure 2, the embodiment of the present invention also provides a flow chart based on communication system interaction, in which three devices are included in the communication system: mobile terminal, mobile phone and personal computer; synchronization objects of data to be synchronized: personal computer and mobile phone ;Control device: the server of the client operator of the instant messaging software; the specific flow chart is as follows:
201、即时通讯软件在手机和个人电脑登录;201. Log in the instant messaging software on the mobile phone and personal computer;
202、在服务器一侧确定如果有消息要同步到手机,获取上述即时通讯软件中的QQ群消耗流量较多的群,默认这些群不同步消息;记录需要同步的消息数量,并告知到手机;202. Determine on the server side that if there is a message to be synchronized to the mobile phone, obtain the QQ group in the above instant messaging software that consumes more traffic, and default that these groups do not synchronize messages; record the number of messages that need to be synchronized, and notify the mobile phone;
如果有消息要同步到个人电脑,可以直接同步不用执行同步控制策略,也可以执行同步控制策略;对比本发明实施例不作唯一性限制。If there is a message to be synchronized to the personal computer, it can be directly synchronized without executing the synchronization control strategy, or the synchronization control strategy can be executed; compared with the embodiment of the present invention, there is no unique limitation.
203、在用户打开手机中的即时通讯软件后,显示未接收的消息条数;203. After the user opens the instant messaging software in the mobile phone, display the number of unreceived messages;
204、即时通讯软件在接收到到用户选择接收后,向服务器发送消息获取请求,然后接收对应消息;在用户选择接收图片后,再发一条图片获取请求,下载图片。204. After receiving the user's choice to receive, the instant messaging software sends a message acquisition request to the server, and then receives the corresponding message; after the user chooses to receive the picture, sends another picture acquisition request to download the picture.
基于以上说明可知:手机一侧的同步控制方案:获取手机里面消耗流量多的群,例如:特别活跃的群,人数特别多的群,总喜欢发图片的群;默认这些群只发信息条数,消息暂存服务器,用户选择接收,就把消息发过来,用户再选择接收图片,再发图片。Based on the above description, it can be seen that the synchronization control scheme on the mobile phone side: obtain the groups that consume a lot of traffic in the mobile phone, such as: particularly active groups, groups with a large number of people, and groups that always like to post pictures; by default, these groups only send messages. , the message temporary storage server, the user chooses to receive, the message is sent, the user chooses to receive the picture, and then sends the picture.
采用以上方案,可以大大节省手机一侧的存储空间,减少不必要消息的接收。By adopting the above solution, the storage space on one side of the mobile phone can be greatly saved, and the reception of unnecessary messages can be reduced.
本发明实施例还提供了一种服务器,如图3所示,包括:The embodiment of the present invention also provides a server, as shown in Figure 3, including:
消耗获取单元301,用于确定即时通讯软件在移动终端和另一终端同时登陆的情况下,获取上述即时通讯软件的通讯录中各群组的历史流量消耗量;The consumption acquisition unit 301 is used to determine the historical traffic consumption of each group in the address book of the instant messaging software when the instant messaging software is logged in at the same time as the mobile terminal and another terminal;
群组确定单元302,用于在有待同步消息需要发往上述移动终端前,确定上述待同步消息所属的群组;A group determination unit 302, configured to determine the group to which the message to be synchronized belongs before the message to be synchronized needs to be sent to the mobile terminal;
存储单元303,用于若上述待同步消息所属的群组的历史流量消耗量大于预定阈值,则存储上述待同步消息;记录未同步到上述移动终端的消息数量;The storage unit 303 is configured to store the message to be synchronized if the historical traffic consumption of the group to which the message to be synchronized belongs is greater than a predetermined threshold; record the number of messages that have not been synchronized to the mobile terminal;
发送单元304,用于向上述移动终端发送告知消息,在上述告知消息中携带上述待同步消息所属的群组的标识以及未同步的消息数量。The sending unit 304 is configured to send a notification message to the mobile terminal, where the notification message carries the identifier of the group to which the message to be synchronized belongs and the number of unsynchronized messages.
在本发明实施例中主要关注移动终端,这是由于移动终端对流量消耗较为敏感,另外移动终端的存储空间有限,即时通讯软件如果体量过大会对移动终端的性能造成较大的影响。In the embodiment of the present invention, the mobile terminal is mainly concerned. This is because the mobile terminal is sensitive to traffic consumption, and the storage space of the mobile terminal is limited. If the instant messaging software is too large, it will have a great impact on the performance of the mobile terminal.
待同步消息是指接收端为上述即时通讯软件的消息,由于即时通讯软件在移动终端和另一终端同时登陆了,按照要求是应该将消息发往该移动终端和上述另一终端的,因此可以称为待同步消息。The message to be synchronized refers to the message that the receiving end is the above-mentioned instant messaging software. Since the instant messaging software has logged in the mobile terminal and another terminal at the same time, the message should be sent to the mobile terminal and the other terminal according to the requirements, so it can It is called a message to be synchronized.
可以理解的是,在本实施例中,仅发送了告知消息并未发送实际的待同步消息给移动终端。It can be understood that, in this embodiment, only the notification message is sent and the actual message to be synchronized is not sent to the mobile terminal.
在即时通讯软件在移动终端和另一终端同时登陆的情况下,获取通讯录中各群组的历史流量消耗量;对于那些流量消耗特别大的群组,通常来说是人数特别多或者经常发各种图片的群组,如果将这些消息全部直接发送给移动终端会浪费移动终端的流量,还会增加即时通讯软件在移动终端的体量,通过先存储这些待同步消息,在接收到用户需要这些消息的请求后才发送这些待同步消息,这样可以减少对移动终端流量的消耗,并节省移动终端有限的存储空间。When the instant messaging software logs in the mobile terminal and another terminal at the same time, the historical traffic consumption of each group in the address book is obtained; Groups of various pictures, if all these messages are sent directly to the mobile terminal, it will waste the traffic of the mobile terminal and increase the size of the instant messaging software on the mobile terminal. By storing these messages to be synchronized first, when the user needs The messages to be synchronized are sent only after these messages are requested, which can reduce the consumption of mobile terminal traffic and save the limited storage space of the mobile terminal.
进一步地,本发明实施例还提供了将存储的待同步消息发往移动终端的具体实现方案:如图4所示,上述服务器还包括:Further, the embodiment of the present invention also provides a specific implementation scheme for sending the stored message to be synchronized to the mobile terminal: as shown in Figure 4, the above server also includes:
接收单元401,用于接收来自上述移动终端的消息获取请求,上述消息获取请求指定获取上述待同步消息;The receiving unit 401 is configured to receive a message acquisition request from the mobile terminal, where the message acquisition request specifies acquisition of the message to be synchronized;
上述发送单元304,还用于将存储的上述待同步消息发往上述移动终端。The sending unit 304 is further configured to send the stored message to be synchronized to the mobile terminal.
在本实施例中,由移动终端发起消息获取请求,基于移动终端的消息获取需求来发送待同步消息,这样可以最大限度的减少不不要消息被发送的可能性。In this embodiment, the mobile terminal initiates a message acquisition request, and sends the message to be synchronized based on the message acquisition requirement of the mobile terminal, so that the possibility of sending unnecessary messages can be minimized.
进一步地,由于直接将所有待同步消息发往移动终端,仍然有可能发送过多的消息,并且消耗过多的流量,使即时通讯软件体量变得过大,基于此本发明实施例还提供了如下方案:上述发送单元304,具体用于首先将存储的上述待同步消息中的文字消息发往上述移动终端,在接收到图片获取指令后,发送存储的上述待同步消息中对应上述图片获取指令指定的图片。Furthermore, since all the messages to be synchronized are directly sent to the mobile terminal, it is still possible to send too many messages and consume too much traffic, making the volume of the instant messaging software too large. Based on this, the embodiment of the present invention also provides The following scheme: the above-mentioned sending unit 304 is specifically configured to first send the text message in the stored message to be synchronized to the above-mentioned mobile terminal, and after receiving the picture acquisition instruction, send the corresponding picture acquisition instruction in the stored above-mentioned message to be synchronized The specified image.
本实施例,将待同步消息发往移动终端的过程分为两段,先发文字消息,在用户再次提出需求的情况下,发送对应的图片,尽量少发不必要的图片。在本发明实施例中可以将图片的范畴扩大理解为:静态的图片,即:通常意义上的图片,还可以是动态的图片,例如:动图,还可以是视频。In this embodiment, the process of sending the message to be synchronized to the mobile terminal is divided into two stages. The text message is sent first, and when the user requests again, the corresponding picture is sent, and unnecessary pictures are sent as little as possible. In the embodiment of the present invention, the scope of pictures may be expanded to include: static pictures, that is, pictures in the usual sense, dynamic pictures, such as moving pictures, or videos.
本实施例还提供了通过群组的历史流量消耗量来区分需要进行待同步消息控制发送的具体实现方案,如下:上述待同步消息所属的群组的历史流量消耗量大于预定阈值包括:This embodiment also provides a specific implementation scheme for distinguishing the need to control and send the message to be synchronized by the historical traffic consumption of the group, as follows: the historical traffic consumption of the group to which the message to be synchronized belongs is greater than a predetermined threshold includes:
上述待同步消息所属的群组的历史流量消耗量在所有群组中消耗的流量从高到低排名高于预定排名值;The historical traffic consumption of the group to which the above-mentioned message to be synchronized belongs is higher than the predetermined ranking value among the traffic consumed in all groups from high to low;
或者,上述待同步消息所属的群组的历史流量消耗量中图片消息消耗的流量大于预定图片阈值;Or, in the historical traffic consumption of the group to which the message to be synchronized belongs, the traffic consumed by the picture message is greater than a predetermined picture threshold;
或者,上述待同步消息所属的群组的历史流量消耗量占所有群组流量总消耗量的比例大于预定比例阈值。Alternatively, the ratio of the historical traffic consumption of the group to which the message to be synchronized belongs to the total traffic consumption of all groups is greater than a predetermined ratio threshold.
在本实施例中,提供了三种可选的实现方案,需要说明的是,以上三个方案不是本发明实施例中确定需要进行待同步消息控制发送的全部穷举,因此不应理解为对本发明实施例具有唯一性限定。In this embodiment, three optional implementation schemes are provided. It should be noted that the above three schemes are not exhaustive in the embodiment of the present invention, and therefore should not be interpreted as The invention embodiments are uniquely limited.
优选地,本发明实施例中,由于有些消息群组可能已经设置了消息屏蔽功能,例如:不接收消息;那么这种情况下,可以不对这些群组进行分析,这样可以减少数据分析量,并且使后续待同步消息发往移动终端更准确,具体如下:上述消耗获取单元301,具体用于获取上述即时通讯软件的通讯录中未设置消息屏蔽功能的各群组的历史流量消耗量。Preferably, in the embodiment of the present invention, since some message groups may have set a message shielding function, for example: do not receive messages; then in this case, these groups may not be analyzed, which can reduce the amount of data analysis, and It is more accurate to send subsequent messages to be synchronized to the mobile terminal, as follows: the above-mentioned consumption acquisition unit 301 is specifically used to obtain the historical traffic consumption of each group in the address book of the above-mentioned instant messaging software that does not have a message shielding function.
本发明实施例还提供了另一种服务器,如图5所示,包括:接收设备501、发送设备502、处理器503以及存储器504;其中存储器504可以用于提供处理器503在执行数据处理过程中的缓存,也可以用于提供其他例如待同步消息的存储空间;The embodiment of the present invention also provides another server, as shown in FIG. 5 , including: a receiving device 501, a sending device 502, a processor 503, and a memory 504; wherein the memory 504 can be used to provide The cache in , can also be used to provide other storage space such as messages to be synchronized;
上述处理器503,用于确定即时通讯软件在移动终端和另一终端同时登陆的情况下,获取上述即时通讯软件的通讯录中各群组的历史流量消耗量;有待同步消息需要发往上述移动终端前,确定上述待同步消息所属的群组,若上述待同步消息所属的群组的历史流量消耗量大于预定阈值,则存储上述待同步消息,并记录未同步到上述移动终端的消息数量;向上述移动终端发送告知消息,在上述告知消息中携带上述待同步消息所属的群组的标识以及未同步的消息数量。The above-mentioned processor 503 is used to determine the historical traffic consumption of each group in the address book of the above-mentioned instant messaging software when the instant messaging software is logged in at the same time as the mobile terminal and another terminal; messages to be synchronized need to be sent to the above-mentioned mobile Before the terminal, determine the group to which the message to be synchronized belongs, if the historical traffic consumption of the group to which the message to be synchronized belongs is greater than a predetermined threshold, then store the message to be synchronized, and record the number of messages not synchronized to the mobile terminal; Sending a notification message to the mobile terminal, where the notification message carries the identifier of the group to which the message to be synchronized belongs and the number of unsynchronized messages.
在本发明实施例中主要关注移动终端,这是由于移动终端对流量消耗较为敏感,另外移动终端的存储空间有限,即时通讯软件如果体量过大会对移动终端的性能造成较大的影响。In the embodiment of the present invention, the mobile terminal is mainly concerned. This is because the mobile terminal is sensitive to traffic consumption, and the storage space of the mobile terminal is limited. If the instant messaging software is too large, it will have a great impact on the performance of the mobile terminal.
待同步消息是指接收端为上述即时通讯软件的消息,由于即时通讯软件在移动终端和另一终端同时登陆了,按照要求是应该将消息发往该移动终端和上述另一终端的,因此可以称为待同步消息。The message to be synchronized refers to the message that the receiving end is the above-mentioned instant messaging software. Since the instant messaging software has logged in the mobile terminal and another terminal at the same time, the message should be sent to the mobile terminal and the other terminal according to the requirements, so it can It is called a message to be synchronized.
可以理解的是,在本实施例中,仅发送了告知消息并未发送实际的待同步消息给移动终端。It can be understood that, in this embodiment, only the notification message is sent and the actual message to be synchronized is not sent to the mobile terminal.
在即时通讯软件在移动终端和另一终端同时登陆的情况下,获取通讯录中各群组的历史流量消耗量;对于那些流量消耗特别大的群组,通常来说是人数特别多或者经常发各种图片的群组,如果将这些消息全部直接发送给移动终端会浪费移动终端的流量,还会增加即时通讯软件在移动终端的体量,通过先存储这些待同步消息,在接收到用户需要这些消息的请求后才发送这些待同步消息,这样可以减少对移动终端流量的消耗,并节省移动终端有限的存储空间。When the instant messaging software logs in the mobile terminal and another terminal at the same time, the historical traffic consumption of each group in the address book is obtained; Groups of various pictures, if all these messages are sent directly to the mobile terminal, it will waste the traffic of the mobile terminal and increase the size of the instant messaging software on the mobile terminal. By storing these messages to be synchronized first, when the user needs The messages to be synchronized are sent only after these messages are requested, which can reduce the consumption of mobile terminal traffic and save the limited storage space of the mobile terminal.
进一步地,本发明实施例还提供了将存储的待同步消息发往移动终端的具体实现方案:上述处理器503,还用于接收来自上述移动终端的消息获取请求,上述消息获取请求指定获取上述待同步消息;Further, the embodiment of the present invention also provides a specific implementation scheme for sending the stored message to be synchronized to the mobile terminal: the processor 503 is also configured to receive a message acquisition request from the mobile terminal, and the message acquisition request specifies to acquire the above-mentioned messages to be synchronized;
将存储的上述待同步消息发往上述移动终端。sending the stored message to be synchronized to the mobile terminal.
在本实施例中,由移动终端发起消息获取请求,基于移动终端的消息获取需求来发送待同步消息,这样可以最大限度的减少不不要消息被发送的可能性。In this embodiment, the mobile terminal initiates a message acquisition request, and sends the message to be synchronized based on the message acquisition requirement of the mobile terminal, so that the possibility of sending unnecessary messages can be minimized.
进一步地,由于直接将所有待同步消息发往移动终端,仍然有可能发送过多的消息,并且消耗过多的流量,使即时通讯软件体量变得过大,基于此本发明实施例还提供了如下方案:上述处理器503,用于将存储的上述待同步消息发往上述移动终端包括:Furthermore, since all the messages to be synchronized are directly sent to the mobile terminal, it is still possible to send too many messages and consume too much traffic, making the volume of the instant messaging software too large. Based on this, the embodiment of the present invention also provides The following solution: the processor 503, configured to send the stored message to be synchronized to the mobile terminal includes:
首先将存储的上述待同步消息中的文字消息发往上述移动终端,在接收到图片获取指令后,发送存储的上述待同步消息中对应上述图片获取指令指定的图片。First, the text message in the stored message to be synchronized is sent to the mobile terminal, and after receiving the picture acquisition instruction, the picture corresponding to the picture acquisition instruction in the stored message to be synchronized is sent.
本实施例,将待同步消息发往移动终端的过程分为两段,先发文字消息,在用户再次提出需求的情况下,发送对应的图片,尽量少发不必要的图片。在本发明实施例中可以将图片的范畴扩大理解为:静态的图片,即:通常意义上的图片,还可以是动态的图片,例如:动图,还可以是视频。In this embodiment, the process of sending the message to be synchronized to the mobile terminal is divided into two stages. The text message is sent first, and when the user requests again, the corresponding picture is sent, and unnecessary pictures are sent as little as possible. In the embodiment of the present invention, the scope of pictures may be expanded to include: static pictures, that is, pictures in the usual sense, dynamic pictures, such as moving pictures, or videos.
本实施例还提供了通过群组的历史流量消耗量来区分需要进行待同步消息控制发送的具体实现方案,如下:上述待同步消息所属的群组的历史流量消耗量大于预定阈值包括:This embodiment also provides a specific implementation scheme for distinguishing the need to control and send the message to be synchronized by the historical traffic consumption of the group, as follows: the historical traffic consumption of the group to which the message to be synchronized belongs is greater than a predetermined threshold includes:
上述待同步消息所属的群组的历史流量消耗量在所有群组中消耗的流量从高到低排名高于预定排名值;The historical traffic consumption of the group to which the above-mentioned message to be synchronized belongs is higher than the predetermined ranking value among the traffic consumed in all groups from high to low;
或者,上述待同步消息所属的群组的历史流量消耗量中图片消息消耗的流量大于预定图片阈值;Or, in the historical traffic consumption of the group to which the message to be synchronized belongs, the traffic consumed by the picture message is greater than a predetermined picture threshold;
或者,上述待同步消息所属的群组的历史流量消耗量占所有群组流量总消耗量的比例大于预定比例阈值。Alternatively, the ratio of the historical traffic consumption of the group to which the message to be synchronized belongs to the total traffic consumption of all groups is greater than a predetermined ratio threshold.
在本实施例中,提供了三种可选的实现方案,需要说明的是,以上三个方案不是本发明实施例中确定需要进行待同步消息控制发送的全部穷举,因此不应理解为对本发明实施例具有唯一性限定。In this embodiment, three optional implementation schemes are provided. It should be noted that the above three schemes are not exhaustive in the embodiment of the present invention, and therefore should not be interpreted as The invention embodiments are uniquely limited.
优选地,本发明实施例中,由于有些消息群组可能已经设置了消息屏蔽功能,例如:不接收消息;那么这种情况下,可以不对这些群组进行分析,这样可以减少数据分析量,并且使后续待同步消息发往移动终端更准确,具体如下:上述处理器503,用于获取上述即时通讯软件的通讯录中各群组的历史流量消耗量包括:Preferably, in the embodiment of the present invention, since some message groups may have set a message shielding function, for example: do not receive messages; then in this case, these groups may not be analyzed, which can reduce the amount of data analysis, and It is more accurate to make the follow-up message to be synchronized sent to the mobile terminal, as follows: the above-mentioned processor 503 is used to obtain the historical traffic consumption of each group in the address book of the above-mentioned instant messaging software including:
获取上述即时通讯软件的通讯录中未设置消息屏蔽功能的各群组的历史流量消耗量。Obtain the historical traffic consumption of each group in the address book of the above instant messaging software that has not set the message blocking function.
图6是本发明实施例提供的一种服务器结构示意图,该服务器600可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上中央处理器(central processingunits,CPU)622(例如,一个或一个以上处理器)和存储器632,一个或一个以上存储应用程序642或数据644的存储介质630(例如一个或一个以上海量存储设备)。其中,存储器632和存储介质630可以是短暂存储或持久存储。存储在存储介质630的程序可以包括一个或一个以上模块(图示没标出),每个模块可以包括对服务器中的一系列指令操作。更进一步地,中央处理器622可以设置为与存储介质630通信,在服务器600上执行存储介质630中的一系列指令操作。FIG. 6 is a schematic structural diagram of a server provided by an embodiment of the present invention. The server 600 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (central processing units, CPU) 622 (for example, one or more processors) and memory 632, and one or more storage media 630 (such as one or more mass storage devices) for storing application programs 642 or data 644. Wherein, the memory 632 and the storage medium 630 may be temporary storage or persistent storage. The program stored in the storage medium 630 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations for the server. Furthermore, the central processing unit 622 may be configured to communicate with the storage medium 630 , and execute a series of instruction operations in the storage medium 630 on the server 600 .
服务器600还可以包括一个或一个以上电源626,一个或一个以上有线或无线网络接口650,一个或一个以上输入输出接口658,和/或,一个或一个以上操作系统641,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM等等。The server 600 can also include one or more power supplies 626, one or more wired or wireless network interfaces 650, one or more input and output interfaces 658, and/or, one or more operating systems 641, such as Windows Server™, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
上述实施例中由服务器所执行的步骤可以基于该图6所示的服务器结构。The steps performed by the server in the foregoing embodiments may be based on the server structure shown in FIG. 6 .
值得注意的是,上述服务器实施例中,所包括的各个单元只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本发明的保护范围。It is worth noting that in the above server embodiment, the units included are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of each functional unit It is only for the convenience of distinguishing each other, and is not used to limit the protection scope of the present invention.
另外,本领域普通技术人员可以理解实现上述各方法实施例中的全部或部分步骤是可以通过程序来指令相关的硬件完成,相应的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。In addition, those of ordinary skill in the art can understand that all or part of the steps in the above-mentioned method embodiments can be completed by instructing related hardware through programs, and the corresponding programs can be stored in a computer-readable storage medium. The storage medium can be read-only memory, magnetic disk or optical disk and so on.
以上仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明实施例揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应该以权利要求的保护范围为准。The above are only preferred specific implementation modes of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the embodiments of the present invention. , should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be determined by the protection scope of the claims.
Claims (12)
- A kind of 1. method of data synchronization of mobile terminal, it is characterised in that including:In the case that server determines MSN in mobile terminal and another terminal while logged in, the IMU is obtained Interrogate the historical traffic consumption of the address list Zhong Ge groups of software;Needing synchronization message needs before being sent to the mobile terminal, the group belonging to the message to be synchronized is determined, if described treat The historical traffic consumption of group belonging to synchronization message is more than predetermined threshold, then stores the message to be synchronized, and record not It is synchronized to the message number of the mobile terminal;Advertisement message is sent to the mobile terminal, group belonging to the message to be synchronized is carried in the advertisement message Mark and not synchronous message number.
- 2. method according to claim 1, it is characterised in that methods described also includes:Receive message from the mobile terminal and obtain request, the message, which obtains request, specifies and obtain described to be synchronized disappear Breath;The message to be synchronized of storage is sent to the mobile terminal.
- 3. method according to claim 2, it is characterised in that described that the message to be synchronized of storage is sent to the movement Terminal includes:The word message in the message to be synchronized of storage is sent to the mobile terminal first, referred to receiving picture and obtaining After order, send and the picture that the picture acquisition is specified is corresponded in the message to be synchronized of storage.
- 4. according to claims 1 to 3 any one methods described, it is characterised in that group belonging to the message to be synchronized Historical traffic consumption includes more than predetermined threshold:The flow that the historical traffic consumption of group belonging to the message to be synchronized consumes in all groups is arranged from high to low Name is higher than predetermined rank value;Or the flow that image information consumes in the historical traffic consumption of the group belonging to the message to be synchronized is more than predetermined Picture threshold value;Or the historical traffic consumption of the group belonging to the message to be synchronized accounts for the ratio of all group traffic total flows More than predetermined ratio threshold value.
- 5. according to claims 1 to 3 any one methods described, it is characterised in that the acquisition MSN The historical traffic consumption of address list Zhong Ge groups includes:Obtain the historical traffic consumption for each group that message screening function is not provided with the address list of the MSN.
- A kind of 6. server, it is characterised in that including:Acquiring unit is consumed, in the case of determining MSN in mobile terminal and another terminal while logging in, obtaining Take the historical traffic consumption of the address list Zhong Ge groups of the MSN;Group's determining unit, for before needing synchronization message and needing to be sent to the mobile terminal, determining the message to be synchronized Affiliated group;Memory cell, if the historical traffic consumption for the group belonging to the message to be synchronized is more than predetermined threshold, deposit Store up the message to be synchronized;Record is not synchronized to the message number of the mobile terminal;Transmitting element, for sending advertisement message to the mobile terminal, described to be synchronized disappear is carried in the advertisement message The mark of group belonging to breath and not synchronous message number.
- 7. server according to claim 6, it is characterised in that the server also includes:Receiving unit, request is obtained for receiving the message from the mobile terminal, the message is obtained to ask to specify and obtained The message to be synchronized;The transmitting element, it is additionally operable to the message to be synchronized of storage being sent to the mobile terminal.
- 8. server according to claim 7, it is characterised in thatThe transmitting element, the word message in the message to be synchronized of storage is sent to specifically for first described mobile whole End, after receiving picture and obtaining instruction, send and correspond to the picture in the message to be synchronized of storage to obtain instruction specified Picture.
- 9. according to server described in claim 6 to 8 any one, it is characterised in that the group belonging to the message to be synchronized Historical traffic consumption include more than predetermined threshold:The flow that the historical traffic consumption of group belonging to the message to be synchronized consumes in all groups is arranged from high to low Name is higher than predetermined rank value;Or the flow that image information consumes in the historical traffic consumption of the group belonging to the message to be synchronized is more than predetermined Picture threshold value;Or the historical traffic consumption of the group belonging to the message to be synchronized accounts for the ratio of all group traffic total flows More than predetermined ratio threshold value.
- 10. according to server described in claim 6 to 8 any one, it is characterised in thatThe consumption acquiring unit, specifically for being not provided with message screening function in the address list of the acquisition MSN Each group historical traffic consumption.
- 11. a kind of server, including:Receiving device, send equipment, processor and memory;Characterized in that, the processing Device connects with the memory, the receiving device with the transmission equipment respectively;The memory exists for providing processor Perform the caching in data handling procedure;The receiving device is used to receive message, and the transmission equipment is used to send message;Institute State method of the processor described in for perform claim 1 to 5 any one of requirement.
- 12. a kind of server, including:Receiving device, send equipment, processor and memory;Characterized in that, the processing Device connects with the memory, the receiving device with the transmission equipment respectively;The memory is used to provide memory space; The receiving device is used to receive message, and the transmission equipment is used to send message;The processor is used for perform claim requirement 1 To the method described in 5 any one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610826854.4A CN106357764B (en) | 2016-09-14 | 2016-09-14 | Data synchronization method of mobile terminal and server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610826854.4A CN106357764B (en) | 2016-09-14 | 2016-09-14 | Data synchronization method of mobile terminal and server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106357764A CN106357764A (en) | 2017-01-25 |
CN106357764B true CN106357764B (en) | 2018-03-02 |
Family
ID=57859918
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610826854.4A Active CN106357764B (en) | 2016-09-14 | 2016-09-14 | Data synchronization method of mobile terminal and server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106357764B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107070774A (en) * | 2017-03-14 | 2017-08-18 | 广东小天才科技有限公司 | Social message processing method and service equipment |
CN110263099B (en) * | 2019-06-21 | 2021-07-13 | 北京小米移动软件有限公司 | Data synchronization flow adjustment method, device, equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7693534B1 (en) * | 2006-12-05 | 2010-04-06 | Sprint Spectrum L.P. | Method and apparatus for dynamic selection of complete or referenced group indication when initiating a group communication session |
CN102638416A (en) * | 2012-03-27 | 2012-08-15 | 上海量明科技发展有限公司 | Method for checking IM (instant messaging) information when multiple clients are logged in, client and system |
CN103051520A (en) * | 2013-01-05 | 2013-04-17 | 北京小米科技有限责任公司 | Method and device for synchronizing offline session messages in instant messaging tool |
CN105530272A (en) * | 2014-09-29 | 2016-04-27 | 阿里巴巴集团控股有限公司 | Method and device for application data synchronization |
-
2016
- 2016-09-14 CN CN201610826854.4A patent/CN106357764B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7693534B1 (en) * | 2006-12-05 | 2010-04-06 | Sprint Spectrum L.P. | Method and apparatus for dynamic selection of complete or referenced group indication when initiating a group communication session |
CN102638416A (en) * | 2012-03-27 | 2012-08-15 | 上海量明科技发展有限公司 | Method for checking IM (instant messaging) information when multiple clients are logged in, client and system |
CN103051520A (en) * | 2013-01-05 | 2013-04-17 | 北京小米科技有限责任公司 | Method and device for synchronizing offline session messages in instant messaging tool |
CN105530272A (en) * | 2014-09-29 | 2016-04-27 | 阿里巴巴集团控股有限公司 | Method and device for application data synchronization |
Also Published As
Publication number | Publication date |
---|---|
CN106357764A (en) | 2017-01-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11533220B2 (en) | Network-assisted consensus protocol | |
US10484347B2 (en) | Method and apparatus for supporting secure chat | |
US20190200047A1 (en) | Data processing method, apparatus, and system for live streaming page | |
WO2016008337A1 (en) | Method and system for synchronizing instant messages between multiple clients | |
US20190302867A1 (en) | Method and apparatus for reducing continuous-wakeup delay of bluetooth loudspeaker, and bluetooth loudspeaker | |
GB2494491A (en) | Mobile data management via a client-side cache | |
CN106658064B (en) | Virtual gift display method and device | |
CN104978176A (en) | Application program interface calling method and device | |
CN104954233B (en) | Information-pushing method, device and system | |
US11758087B2 (en) | Multimedia conference data processing method and apparatus, and electronic device | |
CN105657000A (en) | Message transmission method and device | |
US20160080519A1 (en) | Local caching and resolution of service calls | |
CN108268232B (en) | Picture display method, device, system and storage medium | |
CN106357764B (en) | Data synchronization method of mobile terminal and server | |
CN107786423B (en) | A kind of method and system of instant messaging | |
US10044829B2 (en) | Control system and method for cache coherency | |
CN110708238A (en) | Method and apparatus for processing information | |
WO2019242279A1 (en) | Message processing method and device | |
WO2015196586A1 (en) | Virtual desktop configuration and acquisition method and apparatus | |
CN113824675B (en) | Method and device for managing login state | |
CN112732548B (en) | Interface testing method and device | |
CN112311650B (en) | Session information loading method, device and storage medium | |
CN114363361A (en) | Data synchronization method and device, electronic equipment and storage medium | |
CN109657173B (en) | Network resource loading method and device | |
CN106487650B (en) | Message synchronization method and server |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder | ||
CP01 | Change in the name or title of a patent holder |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |