CN106453639A - Message synchronization method and message synchronization device - Google Patents
Message synchronization method and message synchronization device Download PDFInfo
- Publication number
- CN106453639A CN106453639A CN201611053264.9A CN201611053264A CN106453639A CN 106453639 A CN106453639 A CN 106453639A CN 201611053264 A CN201611053264 A CN 201611053264A CN 106453639 A CN106453639 A CN 106453639A
- Authority
- CN
- China
- Prior art keywords
- message
- instant message
- instant
- terminal
- order information
- 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.)
- Pending
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]
-
- 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]
- H04L51/043—Real-time or near real-time messaging, e.g. instant messaging [IM] using or handling presence information
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention provides a message synchronization method. The message synchronization method comprises the following steps of: receiving an instant message; analyzing sequence information of the instant message; comparing the sequence information of the instant message with sequence information of a local message in a corresponding terminal, and abandoning the instant message when the sequence information of the instant message is earlier than the sequence information of the local message in the terminal; and notifying multiple terminals of the instant message when the sequence information of the instant message is later than the sequence information of the local message in the terminal. The cross-terminal message real-time synchronization problem of the mobile internet is solved; the message synchronization method has the advantages of being real-time and synchronous, and can avoid loss of messages; message retry storing and computing resources are saved; and the consistency experience of various terminals when an instant communication application is used by users can be ensured. The invention further provides a message synchronization device.
Description
Technical field
The present invention relates to a kind of synchronous method of multiple terminals message and its device.
Background technology
Instant messaging (instant message, IM) is the business referring to immediately send and receive internet message etc.,
User can set up, using network, the real-time communication service connecting and realize instant messaging using a terminal.With mobile Internet
Develop rapidly, the outburst of the various terminals such as mobile phone, panel computer, intelligent television, how eventually the mode that user links up gradually tends to
Endization.It is desirable to reach the experience keeping instant messaging application consistent when user switches between multiple terminals.
Content of the invention
In view of this it is necessary to provide a kind of message synchronization method being capable of message content real-time synchronization and its dress
Put.
Embodiments of the invention provide a kind of message synchronization method, have logged in a communication for being sent to an instant message
One or more terminals of account, described message synchronization method includes:
Receive instant message;
The order information of analyzing instant messages;
Compare the order information of this instant message and the order information of local message in counterpart terminal, when the order of this instant message
Information abandons this instant message early than in terminal during the order information of local message;
When the order information of this instant message is later than the order information of local message in terminal, this instant message notifies this end
End.
As a kind of preferred version, described step receives instant message and also includes:
Generate this order information for each instant message.
As a kind of preferred version, described order information is a sequence number, wherein, this sequence number have strict order with
Indicate the order of corresponding instant message.
As a kind of preferred version, after described step receives instant message, further comprising the steps of:
Whether the terminal quantity that detecting logs in communications account is more than one;If the terminal quantity logging in communications account is one, should
Instant message notifies this terminal;If the terminal quantity logging in communications account is more than one, the order letter of execution analyzing instant messages
Breath step.
As a kind of preferred version, this instant message of step also includes step after notifying this terminal:
By this instant message according to its order information orderly be saved in locally stored, and the order of local message is carried out more
Newly.
Embodiments of the invention also provide a kind of message synchronization device, have logged in one and lead to for being sent to an instant message
One or more terminals of news account, described message synchronization device includes:
Receiver module, for receiving instant message;
Resolution unit, for the order information of analyzing instant messages;
Comparing unit, for comparing the order information of this instant message and the order information of local message in counterpart terminal, when this
The order information of instant message abandons this instant message early than in terminal during the order information of local message;
Notification module, when the order information of this instant message is later than the order information of local message in terminal, this notification module
This instant message is notified this terminal.
As a kind of preferred version, described receiver module also includes a sequence number signal generating unit, and described sequence number generates single
Unit generates described order information for each instant message.
As a kind of preferred version, described order information is a sequence number, wherein, this sequence number have strict order with
Indicate the order of corresponding instant message.
As a kind of preferred version, described message synchronization device also includes a detecting module, and described detecting module is used for detecing
Whether survey the terminal quantity logging in communications account more than one.
As a kind of preferred version, described message synchronization device also includes a memory module, and described memory module is used for will
This instant message according to its order information orderly be saved in locally stored, and the order of local message is updated.
According to the message synchronization method and apparatus based on the multiple terminals of sequence number for the present invention, solve mobile interchange network information
The problem of cross-terminal real-time synchronization, has real-time synchronization, the advantage preventing information drop-out, saves storage and the meter that message retries
Calculate resource it is ensured that user is in the consistent sexual experience applying each terminal using instant messaging.
Brief description
In accompanying drawing:
Fig. 1 illustrates the schematic diagram of message synchronization device better embodiment of the present invention.
Fig. 2 illustrates the block diagram of message synchronization device better embodiment of the present invention.
The flow chart that Fig. 3 illustrates message synchronization method better embodiment of the present invention.
Following specific embodiment will further illustrate the present invention in conjunction with above-mentioned accompanying drawing.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation description is it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of not making creative work
Embodiment, broadly falls into the scope of protection of the invention.It is appreciated that accompanying drawing only provides using with reference to explanation, not it is used for this
Bright it is any limitation as.In accompanying drawing, the connection of display is only to describe for ease of clear, and does not limit connected mode.
It should be noted that when an assembly is considered as " connection " another assembly, it can be directly to separately
One assembly or may be simultaneously present assembly placed in the middle.Unless otherwise defined, all of technology used herein and section are academic
The implication that language is generally understood that with the those skilled in the art belonging to the present invention is identical.Herein in the description of the invention
The term being used be intended merely to describe specific embodiment purpose it is not intended that in limit the present invention.
Fig. 1 illustrates that message synchronization device 100 of the present invention is connected with multiple terminals, and the plurality of terminal has all logged in a communication
Account, such as QQ, wechat, Fetion etc. is it is to be understood that this communication account can also be that Wang Wang of microblogging, Taobao etc. can connect
Communication program or webpage by instant message.This terminal can be for example the communication such as PC 200, mobile phone 300, flat board 400
Terminal.This message synchronization device 100 is used for being sent to an instant message the multiple communicating terminals logging in this communication account
200、300、400.
Fig. 2 is the block diagram of the better embodiment of this message synchronization device 100.This message synchronization device includes receiving mould
Block 10, detecting module 30, a synchronization module 50 and a notification module 70.Described receiver module 10 is used for reception one and immediately disappears
Breath.Described detecting module 30 is used for detecting and whether logs in the terminal quantity of communications account more than one.If logging in communications account
Terminal quantity is one, and this instant message is notified this terminal by described notification module 70.If logging in the terminal quantity of communications account
More than one, after described synchronization module 50 this instant message of synchronization, this instant message is notified the plurality of by described notification module 70
Terminal.
Specifically, described receiver module 10 includes a sequence number signal generating unit 12 and a receiving unit 14.Described sequence number
Signal generating unit 12 is used for generating a sequence number for each instant message, and wherein, this sequence number has strict order, as being incremented by
Numeral.Described receiving unit 14 receives this instant message and its corresponding sequence number information.It is understood that described sequence number
Information can also be other order informations such as time.
Described synchronization module 50 includes a resolution unit 52 and a comparing unit 54.Described resolution unit 52 connects for parsing
The sequence number information of the instant message received.The sequence number information that described comparing unit 54 is used for comparing this instant message is whole with corresponding
The sequence number information of local message in end.When the sequence number information of this instant message is less than the sequence number letter of local message in terminal
During breath, abandon this instant message.Described notification module 70 is used for being more than in terminal locally when the sequence number information of this instant message
During the sequence number information of message, this instant message is notified the plurality of terminal by described notification module 70.
In present embodiment, described message synchronization device 100 also includes a memory module 90.Described memory module 90 is used for
After instant message is notified the plurality of terminal by described notification module 70, this instant message is orderly according to its sequence number information
It is saved in locally stored, and the sequence number information of local message is updated.
It is understood that the detecting module 30 in above-mentioned message synchronization device 100 can omit that is to say, that no matter
Whether the terminal quantity logging in communications account is more than one, described synchronization module 50 this instant message all synchronous, and then described logical
Know that this instant message is notified this terminal by module 70.
Refer to Fig. 3 simultaneously, be the corresponding message synchronization method of message synchronization device 100 of the present invention, this message synchronization side
Method includes:
S301:Generate a sequence number information for each instant message;
S302:Receive this instant message and its corresponding sequence number information;
S303:Whether the terminal quantity that detecting logs in communications account is more than one;If it is not, execution step S306, if so, execute step
Rapid S304;
S304:The sequence number information of the instant message that parsing receives;
S305:Whether the sequence number information of relatively this instant message is more than the sequence number information of local message in counterpart terminal, if
No, execution step S308;If so, execution step S306;
S306:This instant message is notified counterpart terminal;
S307:By this instant message according to its sequence number information orderly be saved in locally stored, and the sequence to local message
Number information is updated;
S308:Abandon this instant message.
It is understood that step S303 can be omitted, now, whether the terminal quantity no matter logging in communications account is more than
One, described synchronization module 50 this instant message all synchronous.Meanwhile, the terminal in step S306 is to log in the end of communication account
End, quantity can be one or more.
Note that the step shown in Fig. 3 is not necessarily to follow the order in diagram to execute, continuous two steps illustrating
Suddenly in fact can also substantially execute, such as step S301 and step S302, step S306 and step S307 simultaneously, or adjacent
Two steps are also not necessarily continuously, also can perform other operations therebetween.The embodiment illustrating also simply enumerates, not
As limitation of the present invention.
To sum up, a kind of multiple terminals message synchronization method and apparatus based on sequence number according to embodiments of the present invention, solves
The problem of mobile interchange network information cross-terminal real-time synchronization, has real-time synchronization, and the advantage preventing information drop-out saves and disappears
Cease the storage retrying with computing resource it is ensured that user is in the consistent sexual experience applying each terminal using instant messaging.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all essences in the present invention
Any modification, equivalent and improvement made within god and principle etc., should be included within the scope of the present invention.
Claims (10)
1. a kind of message synchronization method, for being sent to the one or more ends logging in a communication account by an instant message
End, described message synchronization method includes:Receive instant message;The order information of analyzing instant messages;Relatively this instant message
Order information and counterpart terminal in local message order information, local in the order information of this instant message is early than terminal
During the order information of message, abandon this instant message;When the order information of this instant message is later than the suitable of local message in terminal
During sequence information, this instant message notifies this terminal.
2. message synchronization method as claimed in claim 1 is it is characterised in that described step reception instant message also includes:For
Each instant message generates this order information.
3. message synchronization method as claimed in claim 1, it is characterised in that described order information is a sequence number, wherein, is somebody's turn to do
Sequence number has strict order to indicate the order of corresponding instant message.
4. message synchronization method as claimed in claim 1 is it is characterised in that after described step reception instant message, also include
Following steps:Whether the terminal quantity that detecting logs in communications account is more than one;If the terminal quantity logging in communications account is one
Individual, this instant message notifies this terminal;If the terminal quantity logging in communications account is more than one, execute the suitable of analyzing instant messages
Sequence information Step.
5. message synchronization method as claimed in claim 1 is it is characterised in that this instant message of step also wraps after notifying this terminal
Include step:By this instant message according to its order information orderly be saved in locally stored, and the order of local message is carried out
Update.
6. a kind of message synchronization device, for being sent to the one or more ends logging in a communication account by an instant message
End, described message synchronization device includes:Receiver module, for receiving instant message;Resolution unit, for analyzing instant messages
Order information;Comparing unit, for comparing the order information of this instant message and the order letter of local message in counterpart terminal
Breath, in the order information of this instant message is early than terminal during the order information of local message, abandons this instant message;Notify
Module, when the order information of this instant message is later than the order information of local message in terminal, this notification module is instant by this
This terminal of message informing.
7. message synchronization device as claimed in claim 6 is it is characterised in that described receiver module also includes a sequence number generation
Unit, described sequence number signal generating unit generates described order information for each instant message.
8. message synchronization device as claimed in claim 6, it is characterised in that described order information is a sequence number, wherein, is somebody's turn to do
Sequence number has strict order to indicate the order of corresponding instant message.
9. message synchronization device as claimed in claim 6 is it is characterised in that described message synchronization device also includes a detecting mould
Block, described detecting module is used for detecting and whether logs in the terminal quantity of communications account more than one.
10. message synchronization device as claimed in claim 6 is it is characterised in that described message synchronization device also includes a storage
Module, described memory module be used for by this instant message according to its order information orderly be saved in locally stored, and to local
The order of message is updated.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611053264.9A CN106453639A (en) | 2016-11-25 | 2016-11-25 | Message synchronization method and message synchronization device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611053264.9A CN106453639A (en) | 2016-11-25 | 2016-11-25 | Message synchronization method and message synchronization device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106453639A true CN106453639A (en) | 2017-02-22 |
Family
ID=58218693
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611053264.9A Pending CN106453639A (en) | 2016-11-25 | 2016-11-25 | Message synchronization method and message synchronization device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106453639A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107171769A (en) * | 2017-05-25 | 2017-09-15 | 电子科技大学 | A kind of subpackage sends data syn-chronization head establishing method and sort method |
CN108848024A (en) * | 2018-07-25 | 2018-11-20 | 深圳市比特熊科技有限公司 | message synchronization method, system and device |
CN115102918A (en) * | 2022-06-14 | 2022-09-23 | Oppo广东移动通信有限公司 | Message synchronization method, device and system, related equipment and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102611641A (en) * | 2012-01-20 | 2012-07-25 | 上海量明科技发展有限公司 | Method and system for acquiring and collecting instant messaging records |
US20140297727A1 (en) * | 2013-02-28 | 2014-10-02 | Tencent Technology (Shenzhen) Company Limited | Method, system, server and client device for message sychronizing |
-
2016
- 2016-11-25 CN CN201611053264.9A patent/CN106453639A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102611641A (en) * | 2012-01-20 | 2012-07-25 | 上海量明科技发展有限公司 | Method and system for acquiring and collecting instant messaging records |
US20140297727A1 (en) * | 2013-02-28 | 2014-10-02 | Tencent Technology (Shenzhen) Company Limited | Method, system, server and client device for message sychronizing |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107171769A (en) * | 2017-05-25 | 2017-09-15 | 电子科技大学 | A kind of subpackage sends data syn-chronization head establishing method and sort method |
CN107171769B (en) * | 2017-05-25 | 2020-01-07 | 电子科技大学 | Method for setting synchronous head of packet-sending data and sorting method |
CN108848024A (en) * | 2018-07-25 | 2018-11-20 | 深圳市比特熊科技有限公司 | message synchronization method, system and device |
CN115102918A (en) * | 2022-06-14 | 2022-09-23 | Oppo广东移动通信有限公司 | Message synchronization method, device and system, related equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP1653693A1 (en) | File transmission method in instant messaging service | |
CN104980898A (en) | Information pushing method, system and equipment | |
KR101538004B1 (en) | Method and apparatus for quickly adding recipient and mobile terminal | |
CN110768895A (en) | Message prompting method and device, electronic equipment and storage medium | |
CN106933839A (en) | A kind of method for page jump and device | |
CN106453639A (en) | Message synchronization method and message synchronization device | |
CN104954233A (en) | Information push method, device and system | |
CN114979984B (en) | Message transmission method and device | |
CN105376136B (en) | Instant communication method, server and system | |
CN104301428A (en) | Data synchronization method and server | |
CN109005107A (en) | The means of communication, intelligent terminal and the device with store function | |
CN101888607A (en) | Method for realizing mobile phone chats based on widget and mobile phone | |
CN105635996A (en) | Mobile phone short message receiving method of intelligent wearable equipment and server thereof | |
US9444775B2 (en) | Multipurpose internet mail extensions (“MIME”) metadata for group messaging | |
CN101834808A (en) | Method and system for realizing information interaction based on instant messaging (IM) paging enterprises end | |
CN105516933A (en) | Message processing method, message processing device, mobile terminal and server | |
CN105491223B (en) | Information processing method, related equipment and system | |
CN103856395A (en) | Method and system for calling friends and making discussion on webpage | |
CN104283762A (en) | Method, system, client-side and server for transmitting instant messaging conversation content | |
CN101072182B (en) | Network content update synchronizing method, device and system | |
US8930467B2 (en) | Mobile communication terminal | |
CN102868980A (en) | MMS (multimedia message) sending method and communication terminal | |
CN106850862B (en) | Method and device for migrating data from sending end to receiving end | |
CN106793173B (en) | The method and mobile terminal of information processing | |
CN112530435B (en) | Data transmission method, device and system, readable storage medium and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170222 |
|
RJ01 | Rejection of invention patent application after publication |