CN105337849B - Synchronization message processing method, synchronization message controller, transmitting and receiving device - Google Patents
Synchronization message processing method, synchronization message controller, transmitting and receiving device Download PDFInfo
- Publication number
- CN105337849B CN105337849B CN201510895917.7A CN201510895917A CN105337849B CN 105337849 B CN105337849 B CN 105337849B CN 201510895917 A CN201510895917 A CN 201510895917A CN 105337849 B CN105337849 B CN 105337849B
- Authority
- CN
- China
- Prior art keywords
- message
- synchronization message
- synchronization
- sending device
- controller
- 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
- 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/046—Interoperability with other network applications or services
-
- 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/21—Monitoring or handling of messages
- H04L51/234—Monitoring or handling of messages for tracking messages
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Multi Processors (AREA)
- Mobile Radio Communication Systems (AREA)
- Communication Control (AREA)
Abstract
The invention discloses a kind of Synchronization message processing methods, synchronization message controller, transmitting and receiving device, the following steps are included: obtaining the mark for the synchronization message that sending device is sent, synchronization message mark is used to identify synchronization message, and synchronization message is sent to receiving device by sending device;First message is sent to sending device, first message makes sending device stop synchronization message treatment progress;The second message of receiving device transmission is received and stored, second message carries synchronization message mark;Notice sending device recovering process simultaneously obtains second message.The invention enables in synchronization message treatment process sending device wait without poll, and can be received when replying message in receiving device, therefore resource utilization can be improved while improving the real-time that synchronization message is handled.
Description
Technical field
The present invention relates to field of communication technology, more particularly to a kind of Synchronization message processing method, synchronization message controller,
Transmitting and receiving device.
Background technique
The mode of message transmission can be divided into synchronization message and asynchronous message in communication system.For synchronization message: message
Transmitting terminal before not obtaining message sink end feedback message, does not return after issuing message and request, but poll etc.
Receiving end waiting replies message.Namely for the transmission of synchronization message, must exactly do the synchronization message that is over transmission and
The process of reply can just continue next process.And for asynchronous message: message sending end is issuing message and request
Afterwards, obstructed overpolling waits, but after message sink end replies message, the request is executed by returning function.
It is understood that in message processing procedure can, message sending end and message sink end are opposite.Message
Receiving end is also required to reply message after the message and request for receiving message sending end transmission, replies message this operation at this time
Particularly as be send message, that is, message sink end be also required to send message, send and receive only to local terminal and opposite end
Expression, does not influence actual operation.
In existing application, according to different application scenarios, both communication modes are generally used in various communication systems
In.Wherein, synchronization message treatment process is a more troublesome thing, because of message sending end (the namely request of message
Person) it does not often know to reply message when message sink end (the namely reply person of message), to need ceaselessly poll waiting.
The shortcomings that this way is, due to needing ceaselessly poll, wastes system resource, and poll is there are time error, processing
Real-time is not high.
Summary of the invention
The purpose of the present invention is to propose to a kind of Synchronization message processing method, synchronization message controller and synchronization message hairs
Equipment and synchronization message receiving device are sent, is to carry out poor, waste system to solve synchronization message treatment process in the prior art
Disadvantage more than resource.
A technical solution according to the present invention, provides a kind of Synchronization message processing method, including by synchronization message control
The following steps that device processed executes: obtaining the mark for the synchronization message that sending device is sent, and synchronization message mark is used to identify synchronization
Message, synchronization message are sent to receiving device by sending device;First message is sent to sending device, first message to send
Equipment stops synchronization message treatment progress;The second message of receiving device transmission is received and stored, second message carrying, which synchronizes, to disappear
Breath mark;Notice sending device recovering process simultaneously obtains second message.
Another technical solution according to the present invention provides a kind of Synchronization message processing method, further comprising the steps of:
Obtain the preset time that sending device is sent;When not receiving second message within a preset time, notice sending device stops
Process.
Another technical solution according to the present invention provides a kind of Synchronization message processing method, further comprising the steps of:
Obtain sending device send process mark, process identification (PID) be used for identify processing synchronization message process, process identification (PID) with together
Message identifier is walked to correspond.
Preferably, in technical solution of the present invention, stop process or recovering process or stop process, specifically, according into
Journey mark stops or restores or stop process.
Another technical solution according to the present invention provides a kind of Synchronization message processing method, further comprising the steps of:
Delete second message.
A technical solution according to the present invention, provides a kind of Synchronization message processing method, including held by sending device
Capable following steps: synchronization message is sent to receiving device, synchronization message carries the mark of mark synchronization message;Transmission, which synchronizes, to disappear
Breath mark gives synchronization message controller;First message stops synchronization message treatment progress based on the received, and first message is to synchronize
What messaging controller was sent;Third message recovery process and second message is obtained based on the received, third message is synchronization message
What controller was sent, second message is that receiving device is sent to synchronization message controller, and second message carries synchronization message
Mark.
Another technical solution according to the present invention provides a kind of Synchronization message processing method, further comprising the steps of:
Preset time is sent to synchronization message controller, so that synchronization message controller is not when preset time receives second message,
Sending device is notified to stop process.
Another technical solution according to the present invention provides a kind of Synchronization message processing method, further comprising the steps of:
To synchronization message controller send process mark, process identification (PID) be used for identify processing synchronization message process, process identification (PID) and
Synchronization message mark corresponds.
Another technical solution according to the present invention, provides a kind of Synchronization message processing method, including by receiving device
The following steps of execution: receiving the synchronization message that sending device is sent, and synchronization message carries the mark of mark synchronization message;It sends
Second message gives synchronization message controller, and sending device is enabled to obtain second message, second message from messaging controller
Carry synchronization message mark.
A technical solution according to the present invention, provides a kind of synchronization message controller, comprising: and first obtains module,
For obtaining the mark of the synchronization message of sending device transmission, synchronization message mark is used to identify synchronization message, synchronization message by
Sending device is sent to receiving device;First sending module, for sending first message to sending device, first message to send out
Equipment is sent to stop synchronization message treatment progress;Memory module, the second message sent for receiving and storing receiving device, second
Message carries synchronization message mark;First notification module, for notifying sending device recovering process and obtaining second message.
Another technical solution according to the present invention provides a kind of synchronization message controller, further includes: second obtains mould
Block, for obtaining the preset time of sending device transmission;Second notification module disappears for not receiving second within a preset time
When breath, notice sending device stops process.
Another technical solution according to the present invention provides a kind of synchronization message controller, further includes: third obtains mould
Block, the mark of the process for obtaining sending device transmission, process identification (PID) are used to identify the process of processing synchronization message, process mark
Know and is corresponded with synchronization message mark.
Another technical solution according to the present invention provides a kind of synchronization message controller, further includes: removing module,
For deleting second message.Another technical solution according to the present invention provides a kind of synchronization message sending device, comprising:
Second sending module, for sending synchronization message to receiving device, synchronization message carries the mark of mark synchronization message;Third hair
Module is sent, indicates for sending synchronization message and gives synchronization message controller;Process processing module disappears for based on the received first
Breath stops synchronization message treatment progress, and first message is what synchronization message controller was sent;4th obtains module, connects for basis
The third message recovery process of receipts simultaneously obtains second message, and third message is what synchronization message controller was sent, and second message is
Receiving device is sent to synchronization message controller, and second message carries synchronization message mark.
Another technical solution according to the present invention provides a kind of synchronization message sending device, further includes: the 4th sends
Module, for sending preset time to synchronization message controller, so that synchronization message controller does not receive the in preset time
When two message, notice sending device stops process.
Preferably, in technical solution of the present invention, process processing module be also used to be stopped according to synchronization message controller into
Journey.
Another technical solution according to the present invention provides a kind of synchronization message sending device, further includes: the 5th sends
Module, for sending the mark of process to synchronization message controller, process identification (PID) is used to identify the process of processing synchronization message, into
Journey mark is corresponded with synchronization message mark.
Another technical solution according to the present invention provides a kind of synchronization message receiving device, comprising: receiving module,
For receiving the synchronization message of sending device transmission, synchronization message carries the mark of mark synchronization message;6th sending module is used
Synchronization message controller is given in sending second message, sending device is enabled to obtain second message from messaging controller, the
Two message carry synchronization message mark.
A technical solution according to the present invention, provides a kind of any of the above-described kind of synchronization message controller, and above-mentioned
A kind of synchronization message sending device and any of the above-described kind of synchronization message receiving device.
Compared with prior art, Synchronization message processing method of the present invention, synchronization message controller are receiving sending device hair
So that sending device is stopped process after the synchronization message mark sent, makes to send out again when receiving the second message of receiving device transmission
It send equipment recovering process and obtains the message of receiving device reply, so that sending device is without wheel in synchronization message treatment process
It askes and waits, and can be received when replying message in receiving device, therefore resource utilization can be improved while being improved
The real-time of synchronization message processing.
Detailed description of the invention
Below by clearly understandable mode, preferred embodiment is described with reference to the drawings, to key property of the invention, skill
Art feature, advantage and its implementation are further described.
Fig. 1 is a kind of flow chart of Synchronization message processing method of one embodiment of the invention;
Fig. 2 is a kind of flow chart of Synchronization message processing method of another embodiment of the present invention;
Fig. 3 is a kind of flow chart of Synchronization message processing method of further embodiment of the present invention;
Fig. 4 is a kind of synchronization message controller architecture schematic diagram of one embodiment of the invention;
Fig. 5 is a kind of synchronization message sending device structural schematic diagram of one embodiment of the invention;
Fig. 6 is the synchronization message receiving device structural schematic diagram of one embodiment of the invention;
Fig. 7 is the Signalling exchange flow chart of one embodiment of the invention.
Drawing reference numeral explanation:
First obtains module 410, and the first sending module 420, memory module 430, the first notification module 440, second sends
Module 510, third sending module 520, process processing module 530, the 4th obtains module 540, and receiving module 601, the 6th sends
Module 602.
Specific embodiment
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, Detailed description of the invention will be compareed below
A specific embodiment of the invention.It should be evident that drawings in the following description are only some embodiments of the invention, for
For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other
Attached drawing, and obtain other embodiments.
To make simplified form, part related to the present invention is only schematically shown in each figure, they are not represented
Its practical structures as product.In addition, there is identical structure or function in some figures so that simplified form is easy to understand
Component only symbolically depicts one of those, or has only marked one of those.Herein, "one" is not only indicated
" only this ", can also indicate the situation of " more than one ".
Fig. 1 is a kind of flow chart of Synchronization message processing method of one embodiment of the invention.It is illustrated with reference to Fig. 1 the present invention
A kind of Synchronization message processing method, including the following steps executed by synchronization message controller:
Step 110, the mark for the synchronization message that sending device is sent is obtained, synchronization message mark is used to identify to synchronize to disappear
Breath, the synchronization message are sent to receiving device by sending device;
In this step, synchronization message controller receives identifying comprising the synchronization message for synchronization message sending device transmission
Information, the synchronization message mark can be with the unique identification synchronization message.It is understood that synchronizing of being marked of the mark disappears
Breath is the synchronization message that synchronization message sending device is sent to synchronization message receiving device.
Step 120, first message is sent to sending device, which makes sending device stop synchronization message processing
Process;
After synchronization message controller receives synchronization message mark, so that it may think that the synchronization message has been synchronized to disappear
Breath sending device is sent to synchronization message receiving device, therefore, at this point, synchronization message controller can send first message to this
Synchronization message sending device, so that the synchronization message sending device stops the processing of synchronization message after receiving the first message
Process.It is understood that stop synchronization message treatment progress the specific can be that, be arranged the process be dormant state.Value
It must illustrate, be to have begun to a synchronization message treatment progress when synchronization message sending device sends a synchronization message,
When the synchronization message sending device receives the message of synchronization message receiving device reply, synchronization message treatment progress
Terminate.Namely a synchronization message can occupy or correspond to a synchronization message treatment progress.
In embodiments of the present invention, the first message that synchronization message controller is sent makes the synchronization message sending device
After receiving the first message, stop the synchronization message treatment progress.Specifically the transmission first message makes this same
Message sending device is walked without poll, whether poll does not receive reply.
Step 130, the second message of receiving device transmission is received and stored, which carries synchronization message mark;
In this step, synchronization message controller receives the second message of synchronization message receiving device transmission, this second
The content of message is the content that synchronization message receiving device will finally be replied to synchronization message sending device, in the embodiment of the present invention
In, due in the step 120, synchronization message controller control the synchronization message sending device stop the synchronization message handle into
Journey, therefore synchronization message controller receives synchronization message receiving device and replys the second message sent, carries in the second message
Synchronization message mark.It is understood that the synchronization message identifies not only unique identification synchronization message, but also entirely synchronizing
In Message Processing process, which is all identified synchronization message.When disappearing of receiving of synchronization message controller in step 130
When mark in breath is identical with the mark that synchronization message controller receives in step 110, then illustrate that the message is to reply to this
Synchronization message sending device.
Step 140, it notifies sending device recovering process and obtains second message.
In this step, synchronization message controller notice synchronization message sending device restores the synchronizing information treatment progress,
And the synchronization message sending device is notified to obtain the second message.Synchronization message controller receives second and disappears in step 130
Breath illustrates that synchronization message receiving device has been directed to the synchronization message sending device and has replied message, the content of the message of the reply
It is included in the second message.Once synchronization message is sent it is understood that synchronization message receiving device has replied message
Equipment receives the message of the reply, then completes this synchronization message treatment progress.Therefore, when synchronization message controller receives this
Second message, so that it may notify sending device recovering process at once, such as be waken up, the purpose of recovering process is to can receive
The information that synchronization message receiving end is replied, and it is entire synchronous to complete to notify synchronization message sending device to obtain the second message
Message Processing process.
Synchronization message controller makes sending device stop process after the synchronization message mark for receiving sending device transmission,
Make sending device recovering process again when receiving the second message of receiving device transmission and obtain the message of receiving device reply,
So that sending device is waited without poll in synchronization message treatment process, and can be in receiving device when replying message
It can receive, therefore resource utilization can be improved while improving the real-time of synchronization message processing.
It further, in an alternative embodiment of the invention, can also include the following step executed by synchronization message controller
It is rapid:
Obtain the preset time that sending device is sent;
Synchronization message controller receives the preset time of synchronization message sending device transmission, for example, it may be 5ms.At this
In preset time, if synchronization message controller has received the second message sent from synchronization message receiving device, carry out
The step 130 of the corresponding embodiment of Fig. 1.
When not receiving second message within a preset time, notice sending device stops process.
If synchronization message controller does not receive the sent from synchronization message receiving device in the preset time
Two message, then synchronization message controller notice synchronization message sending device stops process.
In embodiments of the present invention, preset time is obtained, within a preset time if not receiving second message, notice is same
It walks message sending device and stops process, can make synchronization message sending device that need not wait in vain and waste time, further increase
Resource utilization.
It further, in an alternative embodiment of the invention, can also include the following step executed by synchronization message controller
It is rapid:
The mark for the process that sending device is sent is obtained, which is used to identify the process of processing synchronization message, into
Journey mark is corresponded with synchronization message mark.
In the present embodiment, the process identification (PID) sent by obtaining synchronization message transmitting terminal, can receive synchronization message
To the synchronization message transmitting terminal when further determining the message of the reply when receiving end replies message, increase information receiving and transmitting
Accuracy.
Further, in an alternative embodiment of the invention, stop process or recovering process or stop process, specifically, root
Stop or restore or stop process according to process identification (PID).
When synchronization message controller gets process identification (PID), it can use process identification (PID) and carry out identification process, therefore, own
For the process operation can with process identification (PID) come identification process, for example, when the process of suspension can by identify come
Instruction stops the process, and recovering process when can indicate to restore the process by identifying, can also when stopping process
To indicate to stop the process by identifying.
In embodiments of the present invention, by according to process identification (PID) stop restore or stop process, can be improved for into
The accuracy of journey operation information transmitting-receiving.
It further, in an alternative embodiment of the invention, can also include the following step executed by synchronization message controller
It is rapid: to delete second message.
In embodiments of the present invention, it is to be understood that when synchronization message controller notice synchronization message sending device obtains
After taking second message, after synchronization message sending device obtains second message, which has then been completed, therefore synchronization message
Controller disappears after synchronization message sending device obtains second message by be stored in the synchronization message controller second
Breath is deleted.
The embodiment of the present invention can be removed after the completion of synchronization message treatment progress and be synchronized by deleting second message
It is not required to information to be used on messaging controller, to increase the utilization rate of memory space.
Fig. 2 is a kind of flow chart of Synchronization message processing method of another embodiment of the present invention.In conjunction with Fig. 2, the present invention
A kind of Synchronization message processing method of embodiment, including the following steps executed by sending device:
Step 210, synchronization message is sent to receiving device, and synchronization message carries the mark of mark synchronization message;
Synchronization message sending device sends synchronization message and gives synchronization message receiving device, in the synchronization message, carries
For identifying the mark of the synchronization message.Synchronization message transmitting terminal sends the beginning that synchronization message is synchronization message treatment progress,
After sending device, which receives synchronization message receiving device, replys the information to come, this synchronization message treatment progress is just completed.
Sending method in this step can be realized with the prior art.
Step 220, transmission synchronization message, which indicates, gives synchronization message controller;
While step 210 or later, synchronization message mark is sent to synchronization message by synchronization message sending device
Controller.It is to receive the purpose that mark is sent to synchronization message controller synchronization message in synchronization message controller and receive
When the message of device replied, it can judge that the received message of institute is to reply to the synchronization message sending device by message identifier
, the message is extracted to notify the synchronization message sending device in the message for receiving the reply.
Step 230, first message stops synchronization message treatment progress based on the received, and first message is synchronization message control
What device was sent;
In this step, after synchronization message controller receives the mark that synchronization message sending device is sent, synchronization message
Sending device can not then go whether poll receives replying message for the message, but can stop the synchronization message handle into
Journey.Therefore, after synchronization message controller receives the mark of synchronization message sending device transmission, first message can be sent to same
Message sending device is walked, which makes the synchronization message sending device stop the synchronization using notice or other methods
Message Processing process, for example, into dormant state.It is worth noting that stopping to mean temporarily without and pre- meeting
If restoring treatment progress when condition again.
Step 240, third message recovery process and second message is obtained based on the received, third message is synchronization message control
What device processed was sent, second message is that receiving device is sent to synchronization message controller, and second message carries synchronization message mark
Show.
In step of the present invention, due to synchronization message receiving device after receiving synchronization message not directly by synchronization message
Synchronization message sending device is replied to, but by message back to synchronization message controller, therefore, synchronization message controller is being received
After the second message sent to synchronization message receiving device, need that synchronization message sending device is notified to restore synchronization message processing
Process, to obtain second message from the synchronization message controller.In this step, synchronization message sending device receives to synchronize and disappear
The third message that controller is sent is ceased, restores the synchronization message treatment progress, and obtain second message, specifically, for example can be with
The second message is read into the memory of synchronization message controller.The second message carries synchronization message mark.Pass through the mark
Knowledge can determine that the second message is intended for the synchronization message sending device.
In embodiments of the present invention synchronization message sending device by synchronization message be sent to synchronization message receiving device it
Synchronization message mark is sent to synchronization message controller afterwards or simultaneously, synchronization message sending device can stop later
The synchronization message treatment progress, until synchronization message controller receives second message, after sending third message, this, which is synchronized, disappears
Sending device recovering process is ceased, second message is obtained, so that sending device is waited without poll in synchronization message treatment process,
And it can be received when replying message in receiving device, therefore resource utilization can be improved while improving synchronization message
The real-time of processing.
Further, in another embodiment of the present invention, further include executed by synchronization message sending device it is following
Step:
Preset time is sent to synchronization message controller, so that synchronization message controller does not receive second in preset time
When message, notice sending device stops process.
In this step, synchronization message sending device sends a preset time to synchronization message controller, so that together
Step messaging controller can clock by, for example, timer, when the time of clocking reaching preset time, if the synchronization
Messaging controller receives the second message of synchronization message receiving device reply not yet, then synchronization message controller notifies the synchronization
Message sending device stops process, it is, terminating the treatment progress of the synchronization message.It is understood that due to usually coming
It says, when the second message for receiving the reply of synchronization message receiving device not yet more than the regular hour, it is believed that this, which is synchronized, disappears
Breath is lost in transmission process, and the second message perhaps replied loses or goes wrong in other treatment processes,
Then without continuing the process.
In the present embodiment, by sending preset time to synchronization message controller, so that the synchronization message controller exists
It notifies the sending device to stop process when not receiving second message in the preset time, can rapidly terminate some ask
The process of topic, therefore resource utilization is further increased, improve the time of synchronization message processing.
Further, in another embodiment of the present invention, further include executed by synchronization message sending device it is following
Step:
The mark of process is sent to synchronization message controller, process identification (PID) is used to identify the process of processing synchronization message, into
Journey mark is corresponded with synchronization message mark.
Synchronization message sending device sends the mark of process to synchronization message controller, can use process identification (PID) to identify
Process, therefore, all operations for the process can be with process identification (PID)s come identification process, for example, when the process of suspension
It can indicate to stop the process by identifying, recovering process when can indicate to restore the process by identifying, and stop
It can also indicate to stop the process by identifying when process.
In embodiments of the present invention, it by process identification (PID) come identification process, can be improved for process operation information receiving and transmitting
Accuracy.
Fig. 3 is a kind of flow chart of Synchronization message processing method of further embodiment of the present invention.As shown in connection with fig. 3, one
Kind Synchronization message processing method includes the following steps executed by receiving device:
Step 301, the synchronization message that synchronization message sending device is sent is received, synchronization message carries mark synchronization message
Mark;
In embodiments of the present invention, synchronization message receiving device is pair for handling the synchronization message sending device of synchronization message
End equipment.Synchronization message is sent corresponding to synchronization message sending device, synchronization message receiving device receives synchronization message.It synchronizes and disappears
The mark for carrying mark synchronization message in sending device is ceased, then is equally carried in the message that synchronization message receiving device receives same
Walk message identifier.In this step, synchronization message receiving device receives the synchronization message that synchronization message sending device is sent, synchronous
Message carries the mark of mark synchronization message.
Step 302, it sends second message and gives synchronization message controller, sending device is obtained from messaging controller
Second message is taken, second message carries synchronization message mark.
In this step, message is not returned to synchronization message sending device directly by synchronization message receiving device, but
By message back to synchronization message controller, so that synchronization message controller after receiving the message sets synchronization message transmission
It is standby to wake up so that white synchronization message sending device extracts message.Synchronization message receiving device is sent second message in this step
Synchronization message controller is given, sending device is enabled to obtain second message from messaging controller, second message, which carries, to be synchronized
Message mark.
In embodiments of the present invention, second message is sent to synchronization message controller by synchronization message receiving device, without
It is to be transmitted directly to synchronization message sending device, synchronization message sending device can be made not have to poll always and wait that replys to disappear
Breath, to improve the utilization rate of resource.
Fig. 4 is a kind of synchronization message controller architecture schematic diagram of one embodiment of the invention.In conjunction with Fig. 4, the present invention is a kind of
Synchronization message controller, comprising: first obtains module 410, the first sending module 420, memory module 430 and the first notification module
440, wherein
First obtains module 410, and the mark of the synchronization message for obtaining sending device transmission, synchronization message mark is used to
Synchronization message is identified, synchronization message is sent to receiving device by sending device;
Synchronization message controller receives the information comprising synchronization message mark of synchronization message sending device transmission, this is same
Walking message identifier can be with the unique identification synchronization message.The first of synchronization message controller obtains module 410 and obtains sending device
The mark of the synchronization message of transmission.
First sending module 420, for sending first message to sending device, it is same that first message stops sending device
Walk Message Processing process;
Synchronization message controller first acquisition module 410 get synchronization message mark after, so that it may think this
Synchronization message has been synchronized message sending device and has been sent to synchronization message receiving device, therefore, at this point, synchronization message controller
The first sending module 420 can send first message and give the synchronization message sending device so that the synchronization message sending device
Stop the treatment progress of synchronization message after receiving the first message.
Memory module 430, for receiving and storing the second message of receiving device transmission, second message carries synchronization message
Mark;
The memory module 430 of synchronization message controller receives the second message of synchronization message receiving device transmission, this
The content of two message is the content that synchronization message receiving device will finally be replied to synchronization message sending device.
First notification module 440, for notifying sending device recovering process and obtaining second message.
The first notification module 440 notice synchronization message sending device of synchronization message controller restores synchronizing information processing
Process, and the synchronization message sending device is notified to obtain the second message.It is understood that once synchronization message reception is set
Standby to have replied message, synchronization message sending device receives the message of the reply, then completes this synchronization message treatment progress.Cause
This, when the memory module 430 of synchronization message controller receives the second message, the first notification module 440 can notify at once
Sending device recovering process, such as waken up, the purpose of recovering process is the letter that can receive the reply of synchronization message receiving end
Breath, and synchronization message sending device is notified to obtain the second message to complete entire synchronization message treatment progress.
The first sending module, which sends message, after the synchronization message mark for receiving sending device transmission stops sending device
Process, the first notification module makes sending device recovering process when memory module receives the second message of receiving device transmission, makes
In synchronization message treatment process sending device without poll waiting, and can receiving device when replying message just
It can receive, therefore resource utilization can be improved while improving the real-time of synchronization message processing.
Further, in an alternative embodiment of the invention, a kind of synchronization message controller, further includes:
Second obtains module, for obtaining the preset time of sending device transmission;
Synchronization message controller second obtains the preset time that module receives the transmission of synchronization message sending device, default at this
In time, if the memory module of synchronization message controller has received the second message sent from synchronization message receiving device,
Then the first notification module works, and ought not receive second message within a preset time, then the second notification module works.
Second notification module, when for not receiving second message within a preset time, notice sending device stops process.
If synchronization message controller does not receive the sent from synchronization message receiving device in the preset time
Two message, then the second notification module of synchronization message controller notice synchronization message sending device stops process.
In embodiments of the present invention, preset time is obtained, within a preset time if not receiving second message, notice is same
It walks message sending device and stops process, can make synchronization message sending device that need not wait in vain and waste time, further increase
Resource utilization.
Further, in an alternative embodiment of the invention, a kind of synchronization message controller, further includes:
Third obtains module, the mark of the process for obtaining sending device transmission, and process identification (PID) is same for identifying processing
The process of message is walked, process identification (PID) and synchronization message mark correspond.
Third obtains the process identification (PID) that module is sent by obtaining synchronization message transmitting terminal, can connect receiving synchronization message
To the synchronization message transmitting terminal when further determining the message of the reply when receiving end replies message, increase the standard of information receiving and transmitting
True property.
Further, in an alternative embodiment of the invention, a kind of synchronization message controller, further includes:
Removing module, for deleting second message.
After the first notification module notice synchronization message sending device of synchronization message controller obtains second message, same
After step message sending device obtains second message, which has then been completed, therefore removing module will be stored in the synchronization
Second message in messaging controller is deleted.
The embodiment of the present invention deletes second message by removing module, can be after the completion of synchronization message treatment progress
It removes and is not required to information to be used on synchronization message controller, to increase the utilization rate of memory space.
Fig. 5 is a kind of synchronization message sending device structural schematic diagram of one embodiment of the invention.In conjunction with Fig. 5, the present invention one
Kind synchronization message sending device, comprising: the second sending module 510, third sending module 520, process processing module 530 and the 4th
Obtain module 540, wherein
Second sending module 510, for sending synchronization message to receiving device, synchronization message carries mark synchronization message
Mark;
Second sending module 510 sends synchronization message and gives synchronization message receiving device, in the synchronization message, carries useful
To identify the mark of the synchronization message.Second sending module 510 sends the beginning that synchronization message is synchronization message treatment progress, when
After sending device receives the information that the reply of synchronization message receiving device comes, this synchronization message treatment progress is just completed.
Third sending module 520 indicates for sending synchronization message and gives synchronization message controller;
Synchronization message mark is sent to synchronization message controller by third sending module 520.Mark is sent to synchronize and is disappeared
The purpose of breath controller is, when synchronization message controller receives the message of synchronization message receiving device reply, can to pass through
Message identifier judgement received message reply to the synchronization message sending device, so as in the message for receiving the reply
When the synchronization message sending device can be notified to extract the message.
Process processing module 530 stops synchronization message treatment progress for first message based on the received, and first message is
What synchronization message controller was sent;
After synchronization message controller receives the mark of synchronization message sending device transmission, process processing module can be sent
First message gives synchronization message sending device, which set synchronization message transmission using notice or other methods
It is standby to stop the synchronization message treatment progress, for example, into dormant state.It is worth noting that stop mean temporarily not into
Row, and restore treatment progress when meeting preset condition.
4th obtains module 540, for third message recovery process based on the received and obtains second message, third message
It is sent for synchronization message controller, second message is that receiving device is sent to synchronization message controller, and second message is taken
Band synchronization message indicates.
Synchronization message controller needs to notify to synchronize to disappear after the second message for receiving the transmission of synchronization message receiving device
It ceases sending device and restores synchronization message treatment progress, to obtain second message from the synchronization message controller.4th obtains mould
Block restores the synchronization message treatment progress, and obtains second message.
Module is obtained in the embodiment of the present invention the 4th and third message recovery process and obtains second message based on the received, is made
In synchronization message treatment process sending device without poll waiting, and can receiving device when replying message just
It can receive, therefore resource utilization can be improved while improving the real-time of synchronization message processing
Further, in an alternative embodiment of the invention, a kind of synchronization message sending device, further includes:
4th sending module, for sending preset time to synchronization message controller, so that synchronization message controller is pre-
If the time does not receive second message, notice sending device stops process.
4th sending module sends a preset time to synchronization message controller, so that synchronization message controller can be with
It by, for example, timer, clocks, when the time of clocking reaching preset time, if the synchronization message controller is not yet
The second message of synchronization message receiving device reply is received, then synchronization message controller notifies the synchronization message sending device to stop
Process, it is, terminating the treatment progress of the synchronization message.It is understood that due to usually, when being more than certain
Between receive not yet synchronization message receiving device reply second message, it is believed that the synchronization message occurs in transmission process
Lose, the second message perhaps replied loses or goes wrong in other treatment processes, then without continue this into
Journey.
In the present embodiment, the 4th sending module sends preset time to synchronization message controller, so that the synchronization message
Controller notifies the sending device to stop process when not receiving second message in the preset time, can rapidly terminate one
The process to go wrong a bit, therefore resource utilization is further increased, improve the time of synchronization message processing.
Further, in an alternative embodiment of the invention, process processing module is also used to be stopped according to synchronization message controller
Only process.
Further, in another embodiment, synchronization message sending module further include:
5th sending module, for sending the mark of process to synchronization message controller, process identification (PID) is for mark processing
The process of synchronization message, process identification (PID) and synchronization message mark correspond.
5th sending module sends the mark of process to synchronization message controller, and process identification (PID) is synchronized for mark processing to disappear
The process of breath, process identification (PID) and synchronization message mark correspond.
5th sending module to synchronization message controller send process mark, can use process identification (PID) identify into
Journey, therefore, all operations for the process can be with process identification (PID)s come identification process, for example, can when the process of suspension
To indicate to stop the process by identifying, recovering process when, can indicate to restore the process by identifying, stop into
It can also indicate to stop the process by identifying when journey.
Fig. 6 is the synchronization message receiving device structural schematic diagram of one embodiment of the invention, as shown in connection with fig. 6, the present invention
A kind of synchronization message receiving device of embodiment, comprising: receiving module 601, the 6th sending module 602, wherein
Receiving module 601, for receiving the synchronization message of sending device transmission, synchronization message carries mark synchronization message
Mark;
Synchronization message receiving device is the opposite equip. for handling the synchronization message sending device of synchronization message.Corresponding to synchronization
Message sending device sends synchronization message, and synchronization message receiving device receives synchronization message.It is carried in synchronization message sending device
The mark of synchronization message is identified, then equally carries synchronization message mark in the message that synchronization message receiving device receives.At this
In step, the receiving module 601 of synchronization message receiving device receives the synchronization message that synchronization message sending device is sent, and synchronizes and disappears
Breath carries the mark of mark synchronization message
6th sending module 602 gives synchronization message controller for sending second message, enables sending device from disappearing
Second message is obtained in breath controller, second message carries synchronization message mark.
Message is not returned to synchronization message sending device directly by the 6th sending module of synchronization message receiving device, and
It is by message back to synchronization message controller, so that synchronization message controller after receiving the message sends synchronization message
Equipment wakes up so that white synchronization message sending device extracts message.
In embodiments of the present invention, second message is sent to synchronize by the 6th sending module of synchronization message receiving device disappears
Controller is ceased, rather than is transmitted directly to synchronization message sending device, synchronization message sending device can be made not have to a through ship
The message for waiting and replying is ask, to improve the utilization rate of resource
A technical solution according to the present invention, provides a kind of any of the above-described kind of synchronization message controller, and above-mentioned
A kind of synchronization message sending device and any of the above-described kind of synchronization message receiving device.
Fig. 7 is the Signalling exchange flow chart of one embodiment of the invention.Fig. 7 embodies the letter in synchronization message treatment process
The basic process of interaction is enabled, it is worth noting that, in Fig. 7, synchronization message sending device is known as transmitting terminal, by synchronization message
Receiving device is known as receiving end, as the meanings of two kinds of names with effect are.In conjunction with Fig. 7, include the following steps:
Step 710: transmitting terminal sends synchronization message to receiving device, and synchronization message carries the mark of mark synchronization message;
Step 720, transmitting terminal transmission synchronization message, which indicates, gives synchronization message controller;
Step 730, synchronization message controller sends first message to sending device, which makes in sending device
Only synchronization message treatment progress;
Transmitting terminal enters dormant state later.
Step 740, receiving end sends second message and gives synchronization message controller, and sending device is controlled from message
Second message is obtained in device, second message carries synchronization message mark;
Step 750, synchronization message controller notifies sending device recovering process and obtains second message.
So far, transmitting terminal recovering process.Sending end pending obtains second message, and process terminates.
Further, while step 720, process identification (PID), preset time can also be sent to synchronize by transmitting terminal to disappear
Cease controller.Whether the process identification (PID) can be used to identify instruction for the process.Preset time can be used to refer to, if
In the preset time, synchronization message controller does not receive the second message of receiving end transmission, then stops the process.
The embodiment of the present invention can increase the utilization rate of resource, improve synchronization message treatment effeciency.
It should be noted that above-described embodiment can be freely combined as needed.The above is only of the invention preferred
Embodiment, it is noted that for those skilled in the art, in the premise for not departing from the principle of the invention
Under, several improvements and modifications can also be made, these modifications and embellishments should also be considered as the scope of protection of the present invention.
Claims (20)
1. a kind of Synchronization message processing method, which is characterized in that including the following steps executed by synchronization message controller:
The mark for the synchronization message that sending device is sent is obtained, the synchronization message mark, which is used to identify described synchronize, to disappear
Breath, the synchronization message are sent to receiving device by the sending device;
First message is sent to the sending device, the first message stops the sending device at the synchronization message
Reason process;
The second message that the receiving device is sent is received and stored, the second message carries the synchronization message mark;
It notifies the sending device to restore the process and obtains the second message.
2. a kind of Synchronization message processing method according to claim 1, which is characterized in that further comprising the steps of:
Obtain the preset time that the sending device is sent;
When not receiving the second message in the preset time, the sending device is notified to stop the process.
3. a kind of Synchronization message processing method according to claim 1 or 2, which is characterized in that further comprising the steps of:
Obtain sending device send the process mark, the process identification (PID) be used for identify it is described processing synchronization message into
Journey, the process identification (PID) and synchronization message mark correspond.
4. a kind of Synchronization message processing method according to claim 3, which is characterized in that
Suspension process or recovering process stop process, specifically, according to stopping the process identification (PID) or restores or stops
Process.
5. a kind of Synchronization message processing method according to claim 1,2 or 4, which is characterized in that further comprising the steps of:
Delete the second message.
6. a kind of Synchronization message processing method, which is characterized in that including the following steps executed by sending device:
Synchronization message is sent to receiving device, the synchronization message carries the mark for indicating the synchronization message;
It sends the synchronization message and indicates and give synchronization message controller;
First message stops the synchronization message treatment progress based on the received, and the first message is synchronization message control
What device was sent;
Process described in third message recovery and second message is obtained based on the received, the third message is the synchronization message control
What device processed was sent, the second message is that receiving device is sent to the synchronization message controller, and the second message is taken
It is indicated with the synchronization message.
7. Synchronization message processing method according to claim 6, which is characterized in that further comprising the steps of:
Preset time is sent to the synchronization message controller, so that the synchronization message controller does not have in the preset time
When receiving the second message, the sending device is notified to stop the process.
8. Synchronization message processing method according to claim 7, which is characterized in that further comprising the steps of:
Stop the process according to the notice of the synchronization message controller.
9. Synchronization message processing method a method according to any one of claims 6-8, which is characterized in that further include following step
It is rapid:
The mark of the process is sent to the synchronization message controller, the process identification (PID) disappears for identifying the processing and synchronizing
The process of breath, the process identification (PID) and synchronization message mark correspond.
10. a kind of Synchronization message processing method, which is characterized in that including the following steps executed by receiving device:
The synchronization message that sending device is sent is received, the synchronization message carries the mark for indicating the synchronization message;
It sends second message and gives synchronization message controller, the synchronization message sending device is waken up, so that the sending device
The second message can be obtained from the messaging controller, the second message carries the synchronization message mark.
11. a kind of synchronization message controller characterized by comprising
First obtains module, and the mark of the synchronization message for obtaining sending device transmission, the synchronization message mark is used to mark
Know the synchronization message, the synchronization message is sent to receiving device by the sending device;
First sending module, for sending first message to the sending device, the first message makes the sending device
Stop the synchronization message treatment progress;
Memory module, the second message sent for receiving and storing the receiving device, the second message carry described same
Walk message identifier;
First notification module, for notifying the sending device to restore the process and obtaining the second message.
12. synchronization message controller according to claim 11, which is characterized in that further include:
Second obtains module, the preset time sent for obtaining the sending device;
Second notification module when for not receiving the second message in the preset time, notifies the sending device
Stop the process.
13. synchronization message controller according to claim 11 or 12, which is characterized in that further include:
Third obtains module, and the mark of the process for obtaining sending device transmission, the process identification (PID) is for identifying institute
The process of processing synchronization message is stated, the process identification (PID) and synchronization message mark correspond.
14. synchronization message controller according to claim 11 or 12, which is characterized in that further include:
Removing module, for deleting the second message.
15. a kind of synchronization message sending device characterized by comprising
Second sending module, for sending synchronization message to receiving device, the synchronization message, which carries, indicates the synchronization message
Mark;
Third sending module indicates for sending the synchronization message and gives synchronization message controller;
Process processing module stops the synchronization message treatment progress, the first message for first message based on the received
It is sent for the synchronization message controller;
4th obtains module, for process described in third message recovery based on the received and obtains second message, the third disappears
Breath is what the synchronization message controller was sent, and the second message is that receiving device is sent to the synchronization message controller,
And the second message carries the synchronization message mark.
16. synchronization message sending device according to claim 15, which is characterized in that further include:
4th sending module, for sending preset time to the synchronization message controller, so as to the synchronization message controller
When the preset time does not receive the second message, the sending device is notified to stop the process.
17. synchronization message sending device according to claim 16, which is characterized in that the process processing module is also used to
Stop the process according to the synchronization message controller.
18. the described in any item synchronization message sending devices of 5-17 according to claim 1, which is characterized in that further include:
5th sending module, for sending the mark of the process to the synchronization message controller, the process identification (PID) is used for
The process of the processing synchronization message is identified, the process identification (PID) and synchronization message mark correspond.
19. a kind of synchronization message receiving device characterized by comprising
Receiving module, for receiving the synchronization message of sending device transmission, the synchronization message, which carries, indicates the synchronization message
Mark;
6th sending module gives synchronization message controller for sending second message, and the synchronization message sending device is waken up,
The sending device is enabled to obtain the second message from the messaging controller, the second message carries described same
Walk message mark.
20. a kind of synchronization message processing system characterized by comprising the described in any item synchronizations of 1-14 according to claim 1
Messaging controller, the according to claim 1 described in any item synchronization message sending devices of 5-18 and according to claim 19 institute
The synchronization message receiving device stated.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510895917.7A CN105337849B (en) | 2015-12-07 | 2015-12-07 | Synchronization message processing method, synchronization message controller, transmitting and receiving device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510895917.7A CN105337849B (en) | 2015-12-07 | 2015-12-07 | Synchronization message processing method, synchronization message controller, transmitting and receiving device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105337849A CN105337849A (en) | 2016-02-17 |
CN105337849B true CN105337849B (en) | 2019-09-13 |
Family
ID=55288160
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510895917.7A Active CN105337849B (en) | 2015-12-07 | 2015-12-07 | Synchronization message processing method, synchronization message controller, transmitting and receiving device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105337849B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117729172A (en) * | 2024-02-18 | 2024-03-19 | 成都深瑞同华科技有限公司 | Data transmission method, device and storage medium in isolated network environment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101674326A (en) * | 2009-09-21 | 2010-03-17 | 中兴通讯股份有限公司 | Method for realizing interprocess synchronization communication and agent unit |
CN102103526A (en) * | 2011-02-14 | 2011-06-22 | 博视联(苏州)信息科技有限公司 | Method and system for performing inter-process communication between server and client by service management |
CN102647365A (en) * | 2011-02-16 | 2012-08-22 | 北京大学 | Method and device for processing message and message status and data exchange server |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100596054C (en) * | 2006-01-18 | 2010-03-24 | 杭州华三通信技术有限公司 | Synchronous communication method, system and apparatus |
US8677158B2 (en) * | 2011-08-10 | 2014-03-18 | Microsoft Corporation | System and method for assigning a power management classification including exempt, suspend, and throttling to an process based upon various factors of the process |
-
2015
- 2015-12-07 CN CN201510895917.7A patent/CN105337849B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101674326A (en) * | 2009-09-21 | 2010-03-17 | 中兴通讯股份有限公司 | Method for realizing interprocess synchronization communication and agent unit |
CN102103526A (en) * | 2011-02-14 | 2011-06-22 | 博视联(苏州)信息科技有限公司 | Method and system for performing inter-process communication between server and client by service management |
CN102647365A (en) * | 2011-02-16 | 2012-08-22 | 北京大学 | Method and device for processing message and message status and data exchange server |
Non-Patent Citations (1)
Title |
---|
《同步互斥机制中的读者-写者模型》;帖军 等;《中南民族大学学报(自然科学版)》;20050930;第24卷(第3期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN105337849A (en) | 2016-02-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105930580B (en) | Time synchronization and data exchange device and method for joint simulation of power system and information communication system | |
CN101425887A (en) | Time synchronization method used for wireless sensor network | |
CN100461708C (en) | Alarm synchronization method | |
CN102868560A (en) | System and method for realizing hot standby of servers | |
EP3402106B1 (en) | Method and system for synchronization between robot and server | |
CN102984042A (en) | Deterministic scheduling method and system for realizing bus communication | |
CN106773749A (en) | Internet of things equipment control method, control end and system | |
CN103874171A (en) | Data transmitting and receiving methods in human body communication device | |
CN104579746A (en) | Method and device for controlling dual-link transmission | |
CA2438370A1 (en) | Command synchronization establishment system | |
CN103874172A (en) | Data transmission method and system in wireless body area network | |
CN109565772A (en) | Method for synchronizing time, equipment and storage medium | |
CN103957258B (en) | A kind of transregional data communications method and system | |
CN105337849B (en) | Synchronization message processing method, synchronization message controller, transmitting and receiving device | |
CN112398661B (en) | Equipment dormancy processing method and device, ioT equipment and storage medium | |
CN109005509B (en) | Terminal positioning method, device, terminal and storage medium | |
CN106888431A (en) | The method and system of good friend are added on a kind of intelligent watch | |
WO2018153127A1 (en) | Device resource collection method based on 485 time-sharing communication | |
CN104617982B (en) | Passive frequency hopping method and device | |
CN107437971A (en) | The processing method and processing device of Synchronization Status Message | |
CN105049477A (en) | Method and device for maintaining long connection | |
KR20150033688A (en) | Data transfer between clock domains | |
CN105322977B (en) | A kind of active RFID tag low power consumption data reception device and its method | |
CN108307416A (en) | A kind of internet-of-things terminal management method | |
JP2006186474A (en) | Wireless communication system and wireless repeater |
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: 20201102 Address after: 318015 no.2-3167, zone a, Nonggang City, no.2388, Donghuan Avenue, Hongjia street, Jiaojiang District, Taizhou City, Zhejiang Province Patentee after: Taizhou Jiji Intellectual Property Operation Co.,Ltd. Address before: 201616 Shanghai city Songjiang District Sixian Road No. 3666 Patentee before: Phicomm (Shanghai) Co.,Ltd. |
|
TR01 | Transfer of patent right |