CN105530593A - Method and device for state synchronization between user equipment - Google Patents
Method and device for state synchronization between user equipment Download PDFInfo
- Publication number
- CN105530593A CN105530593A CN201410521065.0A CN201410521065A CN105530593A CN 105530593 A CN105530593 A CN 105530593A CN 201410521065 A CN201410521065 A CN 201410521065A CN 105530593 A CN105530593 A CN 105530593A
- Authority
- CN
- China
- Prior art keywords
- user equipment
- synchronization
- state synchronization
- state
- status
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
Description
技术领域technical field
本发明涉及通信技术领域,尤其涉及一种用户设备间的状态同步方法及装置。The present invention relates to the field of communication technology, in particular to a method and device for state synchronization between user equipments.
背景技术Background technique
目前用户设备与用户设备之间的通信,主要是靠网络侧的协同,用户设备与用户设备之间互相不了解对方所处的网络、状态等信息。例如,特殊呼叫需要主、被叫用户设备都附着在时分同步码分多址接入(TimeDivisionSynchronizedCodeDivisionMultipleAccess,TD-SCDMA)网络,如果一端不在网将导致无法呼通。目前技术方案,没有基于电路交换(CircuitSwitched,CS)域的可靠的实现用户设备与用户设备之间的状态同步(包括事件同步),其中,所述的状态,例如:对方用户设备是否在网,在哪个网等状态。所述的事件,例如:请求对方用户设备切换的具体某个网络的事件,从2G网切换到3G网。At present, the communication between user equipments mainly depends on the collaboration on the network side, and the user equipments do not know each other's network, status and other information. For example, a special call requires both the calling user equipment and the called user equipment to be attached to a Time Division Synchronized Code Division Multiple Access (TD-SCDMA) network. If one end is not in the network, the call cannot be made. In the current technical solution, there is no reliable implementation of state synchronization (including event synchronization) between user equipment and user equipment based on the circuit switched (CircuitSwitched, CS) domain. In which network and other states. The above-mentioned event, for example: an event of a specific network that requests the user equipment of the opposite party to switch from the 2G network to the 3G network.
综上所述,现有技术中,用户设备的状态信息等,都是网络侧和用户设备之间的同步,通信双方用户设备无法直接同步和控制。如果通信的一方用户设备想了解另外一方用户设备的状态,或者通知另外一方用户设备进行特殊事件处理,则由于通信双方用户设备无法直接实时地实现状态同步而难于实现。To sum up, in the prior art, the status information of the user equipment and the like are all synchronized between the network side and the user equipment, and the user equipment of both communicating parties cannot be directly synchronized and controlled. If the user equipment of one party in the communication wants to know the state of the user equipment of the other party, or notify the user equipment of the other party to handle a special event, it is difficult to realize because the user equipments of both communicating parties cannot directly realize the state synchronization in real time.
发明内容Contents of the invention
本发明实施例提供了一种用户设备间的状态同步方法及装置,用以通过短信信令实现用户设备之间的状态同步。Embodiments of the present invention provide a state synchronization method and device between user equipments, which are used to realize state synchronization between user equipments through short message signaling.
本发明实施例提供的一种用户设备间的状态同步方法,包括:A state synchronization method between user equipments provided by an embodiment of the present invention includes:
第一用户设备当确定需要与第二用户设备进行状态同步时,通过短信信令向所述第二用户设备发送状态同步请求,其中携带状态同步信息;When the first user equipment determines that it needs to perform state synchronization with the second user equipment, it sends a state synchronization request to the second user equipment through SMS signaling, which carries state synchronization information;
所述第一用户设备当接收到所述第二用户设备反馈的状态同步应答时,根据状态同步应答确定与所述第二用户设备之间的状态同步是否成功。When the first user equipment receives the status synchronization response fed back by the second user equipment, it determines whether the status synchronization with the second user equipment is successful according to the status synchronization response.
通过该方法,第一用户设备当确定需要与第二用户设备进行状态同步时,通过短信信令向所述第二用户设备发送状态同步请求,当接收到所述第二用户设备反馈的状态同步应答时,根据状态同步应答确定与所述第二用户设备之间的状态同步是否成功,从而通过短信信令实现用户设备之间的状态同步,使得通信的一方用户设备可以了解另外一方用户设备的状态,或者通知另外一方用户设备进行特殊事件处理,通信双方用户设备可以很便捷地实现状态同步。Through this method, when the first user equipment determines that it needs to perform state synchronization with the second user equipment, it sends a state synchronization request to the second user equipment through SMS signaling. When answering, determine whether the state synchronization with the second user equipment is successful according to the state synchronization response, so as to realize the state synchronization between the user equipment through SMS signaling, so that the user equipment of one party in communication can know the status of the user equipment of the other party. state, or notify the other party’s user equipment to process a special event, and the user equipment of both communicating parties can easily realize state synchronization.
较佳地,所述第一用户设备通过短信信令向所述第二用户设备发送状态同步请求的同时,该方法还包括:所述第一用户设备启动预设的等待定时器;Preferably, when the first user equipment sends a state synchronization request to the second user equipment through SMS signaling, the method further includes: the first user equipment starts a preset waiting timer;
所述第一用户设备当接收到所述第二用户设备反馈的状态同步应答时,根据状态同步应答确定与所述第二用户设备之间的状态同步是否成功,具体为:When the first user equipment receives the state synchronization response fed back by the second user equipment, it determines whether the state synchronization with the second user equipment is successful according to the state synchronization response, specifically:
所述第一用户设备当在所述等待定时器超时之前接收到所述第二用户设备反馈的状态同步应答时,根据状态同步应答确定与所述第二用户设备之间的状态同步是否成功。When the first user equipment receives the status synchronization response fed back by the second user equipment before the waiting timer expires, it determines whether the status synchronization with the second user equipment is successful according to the status synchronization response.
通过设置的等待定时器,避免长时间等待。Avoid long waits by setting the waiting timer.
较佳地,所述状态同步信息,包括:所述第一用户设备自身支持的协议版本、用于标识所述状态同步请求的序列号、所述第一用户设备需要与所述第二用户设备进行状态同步的同步类型和需要完成同步的同步参数。Preferably, the state synchronization information includes: the protocol version supported by the first user equipment itself, the serial number used to identify the state synchronization request, the first user equipment's need to communicate with the second user equipment The synchronization type for state synchronization and the synchronization parameters that need to be synchronized.
较佳地,该方法还包括:Preferably, the method also includes:
所述第一用户设备按照所述状态同步信息,对自身进行状态检查处理。The first user equipment performs status check processing on itself according to the status synchronization information.
较佳地,该方法还包括:Preferably, the method also includes:
所述第一用户设备当根据所述状态同步应答确定与所述第二用户设备之间的状态同步成功后,若确定无需进行与所述第二用户设备之间的状态同步,则恢复对自身进行状态检查处理之前的状态。从而可以继续进行原有业务。After the first user equipment determines that the state synchronization with the second user equipment is successful according to the state synchronization response, if it determines that there is no need to perform state synchronization with the second user equipment, resume its own Status before status check processing. So that the original business can continue.
本发明实施例提供的一种用户设备间的状态同步方法,包括:A state synchronization method between user equipments provided by an embodiment of the present invention includes:
第二用户设备当接收到第一用户设备发送的状态同步请求时,从中获取状态同步信息;When the second user equipment receives the status synchronization request sent by the first user equipment, acquire the status synchronization information therefrom;
所述第二用户设备根据所述状态同步信息,对自身是否能与所述第一用户设备进行状态同步进行判断处理,并通过短信信令向所述第一用户设备反馈状态同步应答。The second user equipment judges whether it can perform state synchronization with the first user equipment according to the state synchronization information, and feeds back a state synchronization response to the first user equipment through SMS signaling.
通过该方法,第二用户设备当接收到第一用户设备发送的状态同步请求时,从中获取状态同步信息,第二用户设备根据所述状态同步信息,对自身是否能与所述第一用户设备进行状态同步进行判断处理,并通过短信信令向所述第一用户设备反馈状态同步应答,从而通过短信信令实现了用户设备之间的状态同步,使得通信的一方用户设备可以了解另外一方用户设备的状态,或者通知另外一方用户设备进行特殊事件处理,通信双方用户设备可以很便捷地实现状态同步。Through this method, when the second user equipment receives the status synchronization request sent by the first user equipment, it obtains the status synchronization information from it, and the second user equipment determines whether it can communicate with the first user equipment according to the status synchronization information. Perform state synchronization for judgment processing, and feed back a state synchronization response to the first user equipment through SMS signaling, thereby realizing state synchronization between user equipment through SMS signaling, so that the user equipment of one party in communication can understand the user of the other party The state of the device, or notify the other party's user device to process a special event, and the user devices of both communicating parties can easily realize the state synchronization.
较佳地,所述第二用户设备根据所述状态同步信息,对自身是否能与所述第一用户设备进行状态同步进行判断处理,并通过短信信令向所述第一用户设备反馈状态同步应答,具体包括:Preferably, the second user equipment judges whether it can perform state synchronization with the first user equipment according to the state synchronization information, and feeds back state synchronization to the first user equipment through SMS signaling Response, including:
所述第二用户设备根据所述状态同步信息,判断是否能与所述第一用户设备进行状态同步,如果是,则与所述第一用户设备进行状态同步,并通过短信信令向所述第一用户设备反馈成功的状态同步应答;否则,通过短信信令向所述第一用户设备反馈失败的状态同步应答。The second user equipment determines whether it can perform state synchronization with the first user equipment according to the state synchronization information, and if so, performs state synchronization with the first user equipment, and sends a message to the The first user equipment feeds back a successful state synchronization response; otherwise, feeds back a failed state synchronization response to the first user equipment through SMS signaling.
较佳地,该方法还包括:所述第二用户设备当完成与所述第一用户设备之间的状态同步时,所述第二用户设备启动预设的保持定时器,当该保持定时器超时时,恢复与所述第一用户设备进行状态同步之前的状态。Preferably, the method further includes: when the second user equipment completes state synchronization with the first user equipment, the second user equipment starts a preset hold timer, and when the hold timer When timeout occurs, restore the state before performing state synchronization with the first user equipment.
通过设置的保持定时器,避免了第二用户设备长时间保持在同步后的状态。Through the set hold timer, the second user equipment is prevented from being kept in the synchronized state for a long time.
较佳地,在所述第二用户设备完成与所述第一用户设备之间的状态同步后,该方法还包括:所述第二用户设备若确定无需进行与所述第一用户设备之间的状态同步,则恢复与所述第一用户设备进行状态同步之前的状态。从而可以继续原来业务。Preferably, after the second user equipment completes state synchronization with the first user equipment, the method further includes: if the second user equipment determines that there is no need to synchronize the state with the first user equipment state synchronization, restore the state before the state synchronization with the first user equipment. So that the original business can be continued.
较佳地,所述状态同步应答中包括:Preferably, the status synchronization response includes:
所述第二用户设备自身支持的协议版本、用于标识所述状态同步请求的序列号、所述第一用户设备需要与所述第二用户设备进行状态同步的同步类型和同步结果。The protocol version supported by the second user equipment itself, the sequence number used to identify the state synchronization request, the synchronization type and synchronization result that the first user equipment needs to perform state synchronization with the second user equipment.
本发明实施例提供的一种用户设备间的状态同步装置,包括:A state synchronization device between user equipments provided by an embodiment of the present invention includes:
第一单元,用于当确定第一用户设备需要与第二用户设备进行状态同步时,通过短信信令向所述第二用户设备发送状态同步请求,其中携带状态同步信息;The first unit is configured to, when it is determined that the first user equipment needs to perform state synchronization with the second user equipment, send a state synchronization request to the second user equipment through SMS signaling, which carries state synchronization information;
第二单元,用于当接收到所述第二用户设备反馈的状态同步应答时,根据状态同步应答确定所述第一用户设备与所述第二用户设备之间的状态同步是否成功。The second unit is configured to, when receiving the status synchronization response fed back by the second user equipment, determine whether the status synchronization between the first user equipment and the second user equipment is successful according to the status synchronization response.
通过该装置,当确定第一用户设备需要与第二用户设备进行状态同步时,通过短信信令向所述第二用户设备发送状态同步请求,当接收到所述第二用户设备反馈的状态同步应答时,根据状态同步应答确定与所述第二用户设备之间的状态同步是否成功,从而通过短信信令实现用户设备之间的状态同步,使得通信的一方用户设备可以了解另外一方用户设备的状态,或者通知另外一方用户设备进行特殊事件处理,通信双方用户设备可以很便捷地实现状态同步。Through this device, when it is determined that the first user equipment needs to perform state synchronization with the second user equipment, a state synchronization request is sent to the second user equipment through SMS signaling, and when the state synchronization feedback fed back by the second user equipment is received When answering, determine whether the state synchronization with the second user equipment is successful according to the state synchronization response, so as to realize the state synchronization between the user equipment through SMS signaling, so that the user equipment of one party in communication can know the status of the user equipment of the other party. state, or notify the other party’s user equipment to process a special event, and the user equipment of both communicating parties can easily realize state synchronization.
较佳地,所述第一单元通过短信信令向所述第二用户设备发送状态同步请求的同时,还用于:启动预设的等待定时器;Preferably, when the first unit sends a state synchronization request to the second user equipment through SMS signaling, it is also used to: start a preset waiting timer;
所述第二单元当接收到所述第二用户设备反馈的状态同步应答时,根据状态同步应答确定所述第一用户设备与所述第二用户设备之间的状态同步是否成功,具体为:When the second unit receives the state synchronization response fed back by the second user equipment, it determines whether the state synchronization between the first user equipment and the second user equipment is successful according to the state synchronization response, specifically:
所述第二单元当在所述等待定时器超时之前接收到所述第二用户设备反馈的状态同步应答时,根据状态同步应答确定所述第一用户设备与所述第二用户设备之间的状态同步是否成功。When the second unit receives the state synchronization response fed back by the second user equipment before the waiting timer expires, determine the relationship between the first user equipment and the second user equipment according to the state synchronization response Whether the state synchronization was successful.
通过设置的等待定时器,避免长时间等待。Avoid long waits by setting the waiting timer.
较佳地,所述状态同步信息,包括:所述第一用户设备支持的协议版本、用于标识所述状态同步请求的序列号、所述第一用户设备需要与所述第二用户设备进行状态同步的同步类型和需要完成同步的同步参数。Preferably, the state synchronization information includes: the protocol version supported by the first user equipment, the serial number used to identify the state synchronization request, the first user equipment to communicate with the second user equipment The synchronization type of the state synchronization and the synchronization parameters that need to complete the synchronization.
较佳地,所述第一单元还用于:按照所述状态同步信息,对所述第一用户设备进行状态检查处理。Preferably, the first unit is further configured to: perform status check processing on the first user equipment according to the status synchronization information.
较佳地,所述第二单元还用于:Preferably, the second unit is also used for:
当根据所述状态同步应答确定所述第一用户设备与所述第二用户设备之间的状态同步成功后,若确定所述第一用户设备无需进行与所述第二用户设备之间的状态同步,则恢复对所述第一用户设备进行状态检查处理之前的状态。从而可以继续进行原有业务。After determining that the state synchronization between the first user equipment and the second user equipment is successful according to the state synchronization response, if it is determined that the first user equipment does not need to perform state synchronization with the second user equipment Synchronization, restore the state before performing state check processing on the first user equipment. So that the original business can continue.
本发明实施例提供的一种用户设备间的状态同步装置,包括:A state synchronization device between user equipments provided by an embodiment of the present invention includes:
第三单元,用于当接收到第一用户设备发送的与第二用户设备之间进行状态同步的状态同步请求时,从中获取状态同步信息;The third unit is configured to obtain state synchronization information when receiving a state synchronization request sent by the first user equipment for state synchronization with the second user equipment;
第四单元,用于根据所述状态同步信息,对所述第二用户设备是否能与所述第一用户设备进行状态同步进行判断处理,并通过短信信令向所述第一用户设备反馈状态同步应答。A fourth unit, configured to judge whether the second user equipment can perform state synchronization with the first user equipment according to the state synchronization information, and feed back the state to the first user equipment through SMS signaling Reply synchronously.
通过该装置,当接收到第一用户设备发送的状态同步请求时,从中获取状态同步信息,根据所述状态同步信息,对第二用户设备是否能与所述第一用户设备进行状态同步进行判断处理,并通过短信信令向所述第一用户设备反馈状态同步应答,从而通过短信信令实现了用户设备之间的状态同步,使得通信的一方用户设备可以了解另外一方用户设备的状态,或者通知另外一方用户设备进行特殊事件处理,通信双方用户设备可以很便捷地实现状态同步。By means of this device, when a state synchronization request sent by the first user equipment is received, state synchronization information is obtained therefrom, and whether the second user equipment can perform state synchronization with the first user equipment is judged according to the state synchronization information processing, and feed back a state synchronization response to the first user equipment through SMS signaling, thereby realizing the state synchronization between user equipment through SMS signaling, so that the user equipment of one party in communication can know the state of the user equipment of the other party, or The user equipment of the other party is notified to handle special events, and the user equipment of both communication parties can easily realize state synchronization.
较佳地,所述第四单元,具体用于:Preferably, the fourth unit is specifically used for:
根据所述状态同步信息,判断所述第二用户设备是否能与所述第一用户设备进行状态同步,如果是,则执行所述第二用户设备与所述第一用户设备之间的状态同步,并通过短信信令向所述第一用户设备反馈成功的状态同步应答;否则,通过短信信令向所述第一用户设备反馈失败的状态同步应答。According to the state synchronization information, determine whether the second user equipment can perform state synchronization with the first user equipment, and if so, perform state synchronization between the second user equipment and the first user equipment , and feeding back a successful status synchronization response to the first user equipment through SMS signaling; otherwise, feeding back a failed status synchronization response to the first user equipment through SMS signaling.
较佳地,所述第四单元还用于:当完成所述第二用户设备与所述第一用户设备之间的状态同步时,启动预设的保持定时器,当该保持定时器超时时,恢复所述第二用户设备与所述第一用户设备进行状态同步之前的所述第二用户设备的状态。Preferably, the fourth unit is further configured to: start a preset hold timer when the state synchronization between the second user equipment and the first user equipment is completed, and when the hold timer expires Restore the state of the second user equipment before the second user equipment performs state synchronization with the first user equipment.
通过设置的保持定时器,避免了第二用户设备长时间保持在同步后的状态。Through the set hold timer, the second user equipment is prevented from being kept in the synchronized state for a long time.
较佳地,所述第四单元还用于:在完成所述第二用户设备与所述第一用户设备之间的状态同步后,若确定所述第二用户设备无需进行与所述第一用户设备之间的状态同步,则恢复所述第二用户设备与所述第一用户设备进行状态同步之前的所述第二用户设备的状态。从而可以继续原来业务。Preferably, the fourth unit is further configured to: after completing the state synchronization between the second user equipment and the first user equipment, if it is determined that the second user equipment does not need to communicate with the first user equipment The state synchronization between user equipments restores the state of the second user equipment before the state synchronization between the second user equipment and the first user equipment. So that the original business can be continued.
较佳地,所述状态同步应答中包括:Preferably, the status synchronization response includes:
所述第二用户设备支持的协议版本、用于标识所述状态同步请求的序列号、所述第一用户设备需要与所述第二用户设备进行状态同步的同步类型和同步结果。The protocol version supported by the second user equipment, the sequence number used to identify the state synchronization request, the synchronization type and synchronization result that the first user equipment needs to perform state synchronization with the second user equipment.
较佳地,该装置还包括:Preferably, the device also includes:
第一单元,用于当确定第二用户设备需要与第一用户设备进行状态同步时,通过短信信令向所述第一用户设备发送状态同步请求,其中携带状态同步信息;The first unit is configured to, when it is determined that the second user equipment needs to perform state synchronization with the first user equipment, send a state synchronization request to the first user equipment through SMS signaling, which carries state synchronization information;
第二单元,用于当接收到所述第一用户设备反馈的状态同步应答时,根据状态同步应答确定所述第一用户设备与所述第二用户设备之间的状态同步是否成功。The second unit is configured to, when receiving the status synchronization response fed back by the first user equipment, determine whether the status synchronization between the first user equipment and the second user equipment is successful according to the status synchronization response.
附图说明Description of drawings
图1为本发明实施例提供的一端用户设备侧的一种用户设备间的状态同步方法的流程示意图;FIG. 1 is a schematic flow diagram of a state synchronization method between user equipments on a user equipment side provided by an embodiment of the present invention;
图2为本发明实施例提供的另一端用户设备侧的一种用户设备间的状态同步方法的流程示意图;FIG. 2 is a schematic flowchart of a state synchronization method between user equipments on the other end user equipment side provided by an embodiment of the present invention;
图3为本发明实施例提供的一种用户设备间的状态同步方法的总体流程示意图;FIG. 3 is an overall schematic flowchart of a state synchronization method between user equipments provided by an embodiment of the present invention;
图4为本发明实施例提供的一端用户设备侧的一种用户设备间的状态同步装置的结构示意图;FIG. 4 is a schematic structural diagram of an apparatus for state synchronization between user equipments on the user equipment side at one end provided by an embodiment of the present invention;
图5为本发明实施例提供的另一端用户设备侧的一种用户设备间的状态同步装置的结构示意图。FIG. 5 is a schematic structural diagram of an apparatus for state synchronization between user equipments on the other end user equipment side according to an embodiment of the present invention.
具体实施方式detailed description
本发明实施例提供了一种用户设备间的状态同步方法及装置,用以通过短信信令实现用户设备之间的状态同步。Embodiments of the present invention provide a state synchronization method and device between user equipments, which are used to realize state synchronization between user equipments through short message signaling.
本发明实施例中,采用基于短信信令的同步方法,利用短信的便捷性和通用性作为信息承载载体,实时地将通信一方的状态信息、事件处理信息等同步到通信的另外一方,基于短信进行信令交互,实现通信双方的实时状态同步。In the embodiment of the present invention, a synchronization method based on short message signaling is adopted, and the convenience and versatility of short messages are used as information bearing carriers to synchronize the status information and event processing information of one party to the other party in real time. Signaling interaction is carried out to realize real-time status synchronization of both communication parties.
下面结合附图对本发明实施例提供的技术方案进行说明。The technical solutions provided by the embodiments of the present invention will be described below in conjunction with the accompanying drawings.
在一端用户设备侧,参见图1,本发明实施例提供的一种用户设备间的状态同步方法,包括步骤:On the user equipment side at one end, referring to FIG. 1, a method for state synchronization between user equipment provided by an embodiment of the present invention includes steps:
S101、第一用户设备当确定需要与第二用户设备进行状态同步时,通过短信信令向所述第二用户设备发送状态同步请求,其中携带状态同步信息;S101. When the first user equipment determines that it needs to perform state synchronization with the second user equipment, it sends a state synchronization request to the second user equipment through SMS signaling, which carries state synchronization information;
其中,所述状态同步信息,包括:所述第一用户设备自身支持的协议版本、用于标识所述状态同步请求的序列号、所述第一用户设备需要与所述第二用户设备进行状态同步的同步类型和需要完成同步的同步参数。Wherein, the status synchronization information includes: the protocol version supported by the first user equipment itself, the serial number used to identify the status synchronization request, the status synchronization between the first user equipment and the second user equipment. The synchronization type of the synchronization and the synchronization parameters that need to complete the synchronization.
第一用户设备可以通过如下几种方式,确定需要与第二用户设备进行状态同步:The first user equipment may determine that it needs to perform state synchronization with the second user equipment in the following ways:
周期性触发,即周期性地通过短信信令向所述第二用户设备发送状态同步请求;periodically triggering, that is, periodically sending a state synchronization request to the second user equipment through SMS signaling;
事件触发,即当发生预设的事件条件时,确定需要与第二用户设备进行状态同步,例如,发起密话呼叫时,确定需要与第二用户设备进行状态同步。Event triggering means that when a preset event condition occurs, it is determined that state synchronization needs to be performed with the second user equipment, for example, when an encrypted call is initiated, it is determined that state synchronization needs to be performed with the second user equipment.
所述第一用户设备需要与所述第二用户设备进行状态同步的同步类型,例如:网络状态同步(例如,用0x01标识)、蓝牙开关同步(例如,用0x02标识)等;其中,所述网络状态,即UE是否已经在网络侧注册,并可以正常使用的状态信息。The synchronization type that the first user equipment needs to perform state synchronization with the second user equipment, for example: network state synchronization (for example, identified by 0x01), Bluetooth switch synchronization (for example, identified by 0x02), etc.; wherein, the Network status, that is, the status information of whether the UE has been registered on the network side and can be used normally.
所述需要完成同步的同步参数,用于指明同步类型的具体要求,例如:主、被叫用户设备同步到TD-SCDMA网络(例如,用0x01标识),或主、被叫用户设备同步到TD-LTE网络(例如,用0x02标识)等。The synchronization parameters that need to be synchronized are used to specify the specific requirements of the synchronization type, for example: the main and called user equipment are synchronized to the TD-SCDMA network (for example, marked with 0x01), or the main and called user equipment are synchronized to the TD-SCDMA network - LTE network (eg identified with 0x02), etc.
S102、所述第一用户设备当接收到所述第二用户设备反馈的状态同步应答时,根据状态同步应答确定与所述第二用户设备之间的状态同步是否成功。S102. When the first user equipment receives the status synchronization response fed back by the second user equipment, determine whether the status synchronization with the second user equipment is successful according to the status synchronization response.
通过该方法,第一用户设备当确定需要与第二用户设备进行状态同步时,通过短信信令向所述第二用户设备发送状态同步请求,当接收到所述第二用户设备反馈的状态同步应答时,根据状态同步应答确定与所述第二用户设备之间的状态同步是否成功,从而通过短信信令实现用户设备之间的状态同步,使得通信的一方用户设备可以了解另外一方用户设备的状态,或者通知另外一方用户设备进行特殊事件处理,通信双方用户设备可以很便捷地实现状态同步。Through this method, when the first user equipment determines that it needs to perform state synchronization with the second user equipment, it sends a state synchronization request to the second user equipment through SMS signaling. When answering, determine whether the state synchronization with the second user equipment is successful according to the state synchronization response, so as to realize the state synchronization between the user equipment through SMS signaling, so that the user equipment of one party in communication can know the status of the user equipment of the other party. state, or notify the other party’s user equipment to process a special event, and the user equipment of both communicating parties can easily realize state synchronization.
较佳地,所述第一用户设备通过短信信令向所述第二用户设备发送状态同步请求的同时,该方法还包括:所述第一用户设备启动预设的等待定时器;Preferably, when the first user equipment sends a state synchronization request to the second user equipment through SMS signaling, the method further includes: the first user equipment starts a preset waiting timer;
所述第一用户设备当接收到所述第二用户设备反馈的状态同步应答时,根据状态同步应答确定与所述第二用户设备之间的状态同步是否成功,具体为:When the first user equipment receives the state synchronization response fed back by the second user equipment, it determines whether the state synchronization with the second user equipment is successful according to the state synchronization response, specifically:
所述第一用户设备当在所述等待定时器超时之前接收到所述第二用户设备反馈的状态同步应答时,根据状态同步应答确定与所述第二用户设备之间的状态同步是否成功。When the first user equipment receives the status synchronization response fed back by the second user equipment before the waiting timer expires, it determines whether the status synchronization with the second user equipment is successful according to the status synchronization response.
这样,通过设置的等待定时器,避免第一用户设备长时间等待对端响应,若在所述等待定时器超时后,没有接收到所述第二用户设备反馈的状态同步应答,则可以放弃此次的状态同步,或者,重新向所述第二用户设备发送状态同步请求。In this way, by setting the waiting timer, it is avoided that the first user equipment waits for a response from the peer end for a long time. If the status synchronization response fed back by the second user equipment is not received after the waiting timer expires, then this can be abandoned. The second state synchronization, or, re-send the state synchronization request to the second user equipment.
较佳地,该方法还包括:Preferably, the method also includes:
所述第一用户设备按照所述状态同步信息,对自身进行状态检查处理。具体地,该步骤可以在通过短信信令向所述第二用户设备发送状态同步请求的同时进行,或者在通过短信信令向所述第二用户设备发送状态同步请求之前或之后进行,第一用户设备对自身进行状态检查处理时,例如,第一用户设备选择在TD-SCDMA网络拨打密话,则检查该第一用户设备当前网络是否处于TD-SCDMA网络,若是,则状态检查成功,否则,尝试将当前网络切换到TD-SCDMA网络。The first user equipment performs status check processing on itself according to the status synchronization information. Specifically, this step may be performed while sending the state synchronization request to the second user equipment through SMS signaling, or before or after sending the state synchronization request to the second user equipment through SMS signaling, the first When the user equipment performs status check processing on itself, for example, the first user equipment chooses to dial an encrypted call on the TD-SCDMA network, then check whether the current network of the first user equipment is in the TD-SCDMA network, if so, the status check is successful, otherwise , try to switch the current network to TD-SCDMA network.
较佳地,该方法还包括:Preferably, the method also includes:
所述第一用户设备当根据所述状态同步应答确定与所述第二用户设备之间的状态同步成功后,若确定无需进行与所述第二用户设备之间的状态同步,则恢复对自身进行状态检查处理之前的状态,从而可以继续进行原有业务。After the first user equipment determines that the state synchronization with the second user equipment is successful according to the state synchronization response, if it determines that there is no need to perform state synchronization with the second user equipment, resume its own The status before the status check is processed, so that the original business can continue.
相应地,在对端用户设备侧,参见图2,本发明实施例提供的一种用户设备间的状态同步方法,包括步骤:Correspondingly, on the opposite end user equipment side, referring to FIG. 2 , a method for state synchronization between user equipment provided by an embodiment of the present invention includes steps:
S201、第二用户设备当接收到第一用户设备发送的状态同步请求时,从中获取状态同步信息;S201. When the second user equipment receives the status synchronization request sent by the first user equipment, acquire the status synchronization information therefrom;
S202、所述第二用户设备根据所述状态同步信息,对自身是否能与所述第一用户设备进行状态同步进行判断处理,并通过短信信令向所述第一用户设备反馈状态同步应答。S202. The second user equipment judges whether it can perform state synchronization with the first user equipment according to the state synchronization information, and feeds back a state synchronization response to the first user equipment through SMS signaling.
通过该方法,第二用户设备当接收到第一用户设备发送的状态同步请求时,从中获取状态同步信息,第二用户设备根据所述状态同步信息,对自身是否能与所述第一用户设备进行状态同步进行判断处理,并通过短信信令向所述第一用户设备反馈状态同步应答,从而通过短信信令实现了用户设备之间的状态同步,使得通信的一方用户设备可以了解另外一方用户设备的状态,或者通知另外一方用户设备进行特殊事件处理,通信双方用户设备可以很便捷地实现状态同步。Through this method, when the second user equipment receives the status synchronization request sent by the first user equipment, it obtains the status synchronization information from it, and the second user equipment determines whether it can communicate with the first user equipment according to the status synchronization information. Perform state synchronization for judgment processing, and feed back a state synchronization response to the first user equipment through SMS signaling, thereby realizing state synchronization between user equipment through SMS signaling, so that the user equipment of one party in communication can understand the user of the other party The state of the device, or notify the other party's user device to process a special event, and the user devices of both communicating parties can easily realize the state synchronization.
较佳地,所述第二用户设备根据所述状态同步信息,对自身是否能与所述第一用户设备进行状态同步进行判断处理,并通过短信信令向所述第一用户设备反馈状态同步应答,具体包括:Preferably, the second user equipment judges whether it can perform state synchronization with the first user equipment according to the state synchronization information, and feeds back state synchronization to the first user equipment through SMS signaling Response, including:
所述第二用户设备根据所述状态同步信息,判断是否能与所述第一用户设备进行状态同步,如果是,则与所述第一用户设备进行状态同步,并通过短信信令向所述第一用户设备反馈成功的状态同步应答;否则,通过短信信令向所述第一用户设备反馈失败的状态同步应答。The second user equipment determines whether it can perform state synchronization with the first user equipment according to the state synchronization information, and if so, performs state synchronization with the first user equipment, and sends a message to the The first user equipment feeds back a successful state synchronization response; otherwise, feeds back a failed state synchronization response to the first user equipment through SMS signaling.
其中,所述状态同步信息,包括:所述第一用户设备支持的协议版本、用于标识所述状态同步请求的序列号、所述第一用户设备需要与所述第二用户设备进行状态同步的同步类型和需要完成同步的同步参数;Wherein, the state synchronization information includes: the protocol version supported by the first user equipment, the serial number used to identify the state synchronization request, the state synchronization between the first user equipment and the second user equipment The type of synchronization and the synchronization parameters that need to be synchronized;
第二用户设备根据所述状态同步信息,判断是否能与所述第一用户设备进行状态同步,例如,具体可以包括:The second user equipment judges whether it can perform state synchronization with the first user equipment according to the state synchronization information, for example, may specifically include:
若第一用户设备支持的协议版本,与第二用户设备支持的协议版本不符,并且第二用户设备不支持第一用户设备支持的协议版本,则确定不能与所述第一用户设备进行状态同步;If the protocol version supported by the first user equipment does not match the protocol version supported by the second user equipment, and the second user equipment does not support the protocol version supported by the first user equipment, it is determined that the state synchronization with the first user equipment cannot be performed ;
若所述第一用户设备需要与所述第二用户设备进行状态同步的同步类型,在第二用户设备侧不支持,则第二用户设备确定不能与所述第一用户设备进行状态同步;或者,第二用户设备按照需要完成同步的同步参数进行同步时出现失败,则第二用户设备确定不能与所述第一用户设备进行状态同步。If the synchronization type required by the first user equipment to perform state synchronization with the second user equipment is not supported by the second user equipment, the second user equipment determines that it cannot perform state synchronization with the first user equipment; or , when the second user equipment fails to perform synchronization according to the synchronization parameters required to complete synchronization, the second user equipment determines that it cannot perform state synchronization with the first user equipment.
较佳地,该方法还包括:所述第二用户设备当完成与所述第一用户设备之间的状态同步时,所述第二用户设备启动预设的保持定时器,当该保持定时器超时时,恢复与所述第一用户设备进行状态同步之前的状态。Preferably, the method further includes: when the second user equipment completes state synchronization with the first user equipment, the second user equipment starts a preset hold timer, and when the hold timer When timeout occurs, restore the state before performing state synchronization with the first user equipment.
通过设置的保持定时器,避免了第二用户设备长时间保持在同步后的状态。Through the set hold timer, the second user equipment is prevented from being kept in the synchronized state for a long time.
较佳地,在所述第二用户设备完成与所述第一用户设备之间的状态同步后,该方法还包括:所述第二用户设备若确定无需进行与所述第一用户设备之间的状态同步,则恢复与所述第一用户设备进行状态同步之前的状态,从而可以继续原来业务。Preferably, after the second user equipment completes state synchronization with the first user equipment, the method further includes: if the second user equipment determines that there is no need to synchronize the state with the first user equipment state synchronization, restore the state before the state synchronization with the first user equipment, so that the original service can be continued.
较佳地,所述状态同步应答中包括:Preferably, the status synchronization response includes:
所述第二用户设备自身支持的协议版本、用于标识所述状态同步请求的序列号、所述第一用户设备需要与所述第二用户设备进行状态同步的同步类型和同步结果。从而使得第一用户设备可以获知第二用户设备支持的协议版本,并根据该序列号确定该状态同步应答是针对哪一状态同步请求的应答,根据该同步类型确定同步的具体类型,根据该同步结果确定第二用户设备是否针对该类型的需要同步的内容成功完成了同步。The protocol version supported by the second user equipment itself, the sequence number used to identify the state synchronization request, the synchronization type and synchronization result that the first user equipment needs to perform state synchronization with the second user equipment. In this way, the first user equipment can know the protocol version supported by the second user equipment, and determine which state synchronization request the state synchronization response is based on the serial number, determine the specific type of synchronization according to the synchronization type, and determine the specific type of synchronization according to the synchronization type. The result determines whether the second user device has successfully completed synchronization for the type of content that needs to be synchronized.
下面以基于短信信令的同步方法实现加密通话为实施例进行同步流程说明。通过短信信令的同步方法,实时地将加密通话一方对另外一方的状态要求和事件处理指令发送到通话另外一方,实现通信双方同时将网络切换到可以实现加密通话的网络上,例如TD-SCDMA网络或者TD-LTE网络,实现加密通话。The following describes the synchronization process by taking the synchronization method based on the short message signaling as an example to realize the encrypted call. Through the synchronization method of SMS signaling, the status requirements and event processing instructions of one party to the other party in an encrypted call are sent to the other party in real time, so that both parties can simultaneously switch the network to a network that can realize encrypted calls, such as TD-SCDMA network or TD-LTE network to realize encrypted calls.
参见图3,密话终端1(即第一用户设备)和密话终端2(即第二用户设备)中均设置有密话模块、设备同步模块和通信模块。Referring to FIG. 3 , the encrypted speech terminal 1 (ie, the first user equipment) and the encrypted speech terminal 2 (ie, the second user equipment) are provided with an encrypted speech module, a device synchronization module and a communication module.
密话终端1(即第一用户设备)的密话模块欲向密话终端2(即第二用户设备)发起密话呼叫,密话终端1中的设备同步模块得到密话终端1(即第一用户设备)的密话模块的发起密话呼叫的通知,密话终端1中的设备同步模块启动等待定时器。用于等待对方密话终端2的事件响应,并进行相应的处理。例如:对方密话终端2长期没有响应(例如由于对方关机),该同步过程需要在等待定时器超时后,关闭本次同步流程。The encrypted speech module of the encrypted speech terminal 1 (i.e. the first user equipment) intends to initiate an encrypted speech call to the encrypted speech terminal 2 (i.e. the second user equipment), and the device synchronization module in the encrypted speech terminal 1 obtains the encrypted speech terminal 1 (i.e. the second user equipment). A notification of the encrypted call module of the user equipment) that initiates an encrypted call, and the device synchronization module in the encrypted call terminal 1 starts a waiting timer. It is used to wait for an event response from the other party's encrypted conversation terminal 2, and perform corresponding processing. For example, if the other party's encrypted conversation terminal 2 has not responded for a long time (for example, because the other party shuts down), the synchronization process needs to close the synchronization process after the waiting timer expires.
密话终端1的设备同步模块向密话终端2的设备同步模块发送状态同步请求短信,其中携带协议版本、序列号、同步类型、同步参数等。其中,协议版本用于对协议升级后,用户设备对旧版协议的兼容支持,所述协议是同步过程双方都能够识别的协议,是专为本同步流程设计的私有协议;序列号作为单次通话的唯一标识,防止出现短信延迟超时造成的信令交叠问题;同步类型用于定义设备同步类型,例如网络状态同步(0x01),蓝牙开关同步(0x02)等;同步参数用于指明同步类型具体要求,如主、被叫用户设备同步到TD-S网络0x01,主、被叫用户设备同步到TD-LTE网络0x02等。The device synchronization module of the encrypted call terminal 1 sends a status synchronization request message to the device synchronization module of the encrypted call terminal 2, which contains the protocol version, serial number, synchronization type, synchronization parameters, etc. Among them, the protocol version is used for the compatible support of the user equipment to the old version of the protocol after the protocol is upgraded. The protocol is a protocol that can be recognized by both parties in the synchronization process, and is a private protocol specially designed for this synchronization process; the serial number is used as a single call unique identifier to prevent signaling overlap caused by SMS delay and timeout; the synchronization type is used to define the device synchronization type, such as network status synchronization (0x01), Bluetooth switch synchronization (0x02), etc.; synchronization parameters are used to indicate the specific synchronization type Requirements, such as the synchronization of the calling user equipment and the called user equipment to the TD-S network 0x01, the synchronization of the calling user equipment and the called user equipment to the TD-LTE network 0x02, etc.
密话终端1中的设备同步模块向密话终端1中的通信模块发起网络检测及准备请求,即密话终端1对自身进行状态检查处理,若密话终端1选择在TD-SCDMA网络拨打密话,且当前网络处于TD-SCDMA网络,通信模块返回成功,否则,返回失败;若密话用户设备选择在TD-LTE网络拨打密话,且当前网络处于TD-LTE网络,通信模块返回成功,否则,返回失败。The device synchronization module in the encrypted phone terminal 1 initiates a network detection and preparation request to the communication module in the encrypted phone terminal 1, that is, the encrypted phone terminal 1 performs status check processing on itself, if the encrypted phone terminal 1 chooses to dial the encrypted call, and the current network is in the TD-SCDMA network, the communication module returns successfully, otherwise, the return fails; if the encrypted call user equipment chooses to dial the encrypted call in the TD-LTE network, and the current network is in the TD-LTE network, the communication module returns successfully, Otherwise, return failure.
密话终端2的设备同步模块收到密话终端1发送的状态同步请求短信后,密话终端2的设备同步模块向密话终端2的通信模块发起网络检测及准备请求,即密话终端2对自身是否能与密话终端1进行状态同步进行判断处理,若状态同步请求中的同步类型选择在TD-SCDMA网络拨打密话,且当前网络处于TD-SCDMA网络,则密话终端2的通信模块返回成功给密话终端2的设备同步模块,否则,返回失败;若状态同步请求中的同步类型选择在TD-LTE网络拨打密话,且当前网络处于TD-LTE网络,则密话终端2的通信模块返回成功给密话终端2的设备同步模块,否则,返回失败。After the device synchronization module of the encrypted call terminal 2 receives the status synchronization request message sent by the encrypted call terminal 1, the device synchronization module of the encrypted call terminal 2 initiates a network detection and preparation request to the communication module of the encrypted call terminal 2, that is, the encrypted call terminal 2 Whether oneself can carry out state synchronization with encrypted call terminal 1 is judged and processed, if the synchronization type in the state synchronization request selects to dial encrypted call in TD-SCDMA network, and current network is in TD-SCDMA network, then the communication of encrypted call terminal 2 The module returns successfully to the device synchronization module of the encrypted call terminal 2, otherwise, the return fails; if the synchronization type in the status synchronization request is selected to dial the encrypted call on the TD-LTE network, and the current network is in the TD-LTE network, the encrypted call terminal 2 The communication module returns success to the device synchronization module of the encrypted phone terminal 2, otherwise, returns failure.
若网络状况良好,即密话终端2的网络设置,能够满足密话终端1的状态同步请求,并能正确设置,则密话终端2的设备同步模块启动保持定时器,用于等待对方反馈,防止对方没有反应的情况下,进入长期等待。If the network condition is good, that is, the network setting of the encrypted call terminal 2 can satisfy the state synchronization request of the encrypted call terminal 1, and can be set correctly, then the device synchronization module of the encrypted call terminal 2 starts a holding timer for waiting for feedback from the other party. Prevent the other party from entering a long-term wait when there is no response.
密话终端2通过短信向密话终端1返回状态同步应答,其中携带密话终端2的协议版本、序列号、同步类型、密话终端2的同步结果等,其中携带协议版本的作用是指示通信协议是否采用统一的版本,主要是防止由于通信协议升级造成理解错误。同时,密话终端2启动等待定时器,用于等待对方发起密话呼叫,若在该定时器超时时一直没有收到对方发起的密话呼叫,则退出同步状态,恢复先前状态。其中的同步结果是指被叫用户设备反馈的结果,例如成功(用0x00标识)、无请求网络(用0x01标识)或被叫忙(用0x02标识)等。The encrypted phone terminal 2 returns a status synchronization response to the encrypted phone terminal 1 through a short message, which carries the protocol version, serial number, synchronization type, synchronization result of the encrypted phone terminal 2, etc., and the function of carrying the protocol version is to indicate the communication Whether the protocol adopts a unified version is mainly to prevent misunderstandings caused by communication protocol upgrades. Simultaneously, the encrypted speech terminal 2 starts a waiting timer for waiting for the other party to initiate an encrypted call. If the encrypted speech call initiated by the other party has not been received when the timer expires, it exits the synchronization state and restores the previous state. The synchronization result refers to the result fed back by the called user equipment, such as success (identified by 0x00), no network request (identified by 0x01), or the called party is busy (identified by 0x02).
密话终端1收到密话终端2发送的同步应答短信后,当同步结果为成功时,密话终端1中的密话模块向密话终端2中的密话模块发起保密通话。After the encrypted voice terminal 1 receives the synchronous response message sent by the encrypted voice terminal 2, when the synchronization result is successful, the encrypted voice module in the encrypted voice terminal 1 initiates a confidential call to the encrypted voice module in the encrypted voice terminal 2.
保密通话结束后,密话终端1中的密话模块通知密话终端1中的设备同步模块恢复先前网络设置,同样,密话终端2中的密话模块通知密话终端2中的设备同步模块恢复先前网络设置。由于为了进行密话通信,主叫和被叫均需要网络切换到TD_SCDMA或者LTE。为了保持用户原来的体验连续,加密通话结束后,主叫和被叫主动将网络设置为加密通话前的网络。After the confidential conversation ends, the encrypted conversation module in the encrypted conversation terminal 1 notifies the equipment synchronization module in the encrypted conversation terminal 1 to restore the previous network settings, and similarly, the encrypted conversation module in the encrypted conversation terminal 2 notifies the equipment synchronization module in the encrypted conversation terminal 2 Restore previous network settings. In order to carry out encrypted communication, both the calling party and the called party need to switch the network to TD_SCDMA or LTE. In order to maintain the continuity of the user's original experience, after the end of the encrypted call, the calling party and the called party actively set the network to the network before the encrypted call.
需要说明的是,上述密话终端1中的密话模块向密话终端2中的密话模块发起保密通话时,分别通过密话终端1和密话终端2中的通信模块的语音通道进行的,即密话终端1中的密话模块与密话终端2中的密话模块的交互都要通过各自终端的通信模块进行转发。同理,密话终端1中的设备同步模块和密话终端2中的设备同步模块的交互,也是都要通过各自终端的通信模块进行转发,不过采用的是通信模块中的短信通道进行的转发。It should be noted that, when the above-mentioned encrypted conversation module in the encrypted speech terminal 1 initiates a confidential call to the encrypted speech module in the encrypted speech terminal 2, the conversations are carried out through the voice channels of the communication modules in the encrypted speech terminal 1 and the encrypted speech terminal 2 respectively. , that is, the interaction between the encrypted speech module in the encrypted speech terminal 1 and the encrypted speech module in the encrypted speech terminal 2 must be forwarded through the communication modules of the respective terminals. Similarly, the interaction between the device synchronization module in encrypted call terminal 1 and the device synchronization module in encrypted call terminal 2 must also be forwarded through the communication modules of their respective terminals, but the forwarding is carried out by the SMS channel in the communication module .
综上所述,本发明实施例基于短信信令的同步效率很高、实时性、安全性和到达率都能够满足秒级实时信息同步的要求。因此,在目前运营商网络上可以实现基于短信的同步,并基于此方法的设备状态同步、事件发送能力,实现高实时性的业务。In summary, the embodiment of the present invention has high synchronization efficiency based on short message signaling, and its real-time performance, security and arrival rate can all meet the requirements of second-level real-time information synchronization. Therefore, synchronization based on short messages can be realized on the current operator network, and based on the device status synchronization and event sending capabilities of this method, high real-time services can be realized.
参见图4,在一端用户设备侧,本发明实施例提供的一种用户设备间的状态同步装置,包括:Referring to FIG. 4 , on the user equipment side at one end, an apparatus for state synchronization between user equipments provided by an embodiment of the present invention includes:
第一单元11,用于当确定第一用户设备需要与第二用户设备进行状态同步时,通过短信信令向所述第二用户设备发送状态同步请求,其中携带状态同步信息;The first unit 11 is configured to, when it is determined that the first user equipment needs to perform state synchronization with the second user equipment, send a state synchronization request to the second user equipment through SMS signaling, wherein the state synchronization information is carried;
第二单元12,用于当接收到所述第二用户设备反馈的状态同步应答时,根据状态同步应答确定所述第一用户设备与所述第二用户设备之间的状态同步是否成功。The second unit 12 is configured to, when receiving the status synchronization response fed back by the second user equipment, determine whether the status synchronization between the first user equipment and the second user equipment is successful according to the status synchronization response.
通过该装置,当确定第一用户设备需要与第二用户设备进行状态同步时,通过短信信令向所述第二用户设备发送状态同步请求,当接收到所述第二用户设备反馈的状态同步应答时,根据状态同步应答确定与所述第二用户设备之间的状态同步是否成功,从而通过短信信令实现用户设备之间的状态同步,使得通信的一方用户设备可以了解另外一方用户设备的状态,或者通知另外一方用户设备进行特殊事件处理,通信双方用户设备可以很便捷地实现状态同步。Through this device, when it is determined that the first user equipment needs to perform state synchronization with the second user equipment, a state synchronization request is sent to the second user equipment through SMS signaling, and when the state synchronization feedback fed back by the second user equipment is received When answering, determine whether the state synchronization with the second user equipment is successful according to the state synchronization response, so as to realize the state synchronization between the user equipment through SMS signaling, so that the user equipment of one party in communication can know the status of the user equipment of the other party. state, or notify the other party’s user equipment to process a special event, and the user equipment of both communicating parties can easily realize state synchronization.
较佳地,所述第一单元通过短信信令向所述第二用户设备发送状态同步请求的同时,还用于:启动预设的等待定时器;Preferably, when the first unit sends a state synchronization request to the second user equipment through SMS signaling, it is also used to: start a preset waiting timer;
所述第二单元当接收到所述第二用户设备反馈的状态同步应答时,根据状态同步应答确定所述第一用户设备与所述第二用户设备之间的状态同步是否成功,具体为:When the second unit receives the state synchronization response fed back by the second user equipment, it determines whether the state synchronization between the first user equipment and the second user equipment is successful according to the state synchronization response, specifically:
所述第二单元当在所述等待定时器超时之前接收到所述第二用户设备反馈的状态同步应答时,根据状态同步应答确定所述第一用户设备与所述第二用户设备之间的状态同步是否成功。When the second unit receives the state synchronization response fed back by the second user equipment before the waiting timer expires, determine the relationship between the first user equipment and the second user equipment according to the state synchronization response Whether the state synchronization was successful.
通过设置的等待定时器,避免长时间等待。Avoid long waits by setting the waiting timer.
较佳地,所述状态同步信息,包括:所述第一用户设备支持的协议版本、用于标识所述状态同步请求的序列号、所述第一用户设备需要与所述第二用户设备进行状态同步的同步类型和需要完成同步的同步参数。Preferably, the state synchronization information includes: the protocol version supported by the first user equipment, the serial number used to identify the state synchronization request, the first user equipment to communicate with the second user equipment The synchronization type of the state synchronization and the synchronization parameters that need to complete the synchronization.
较佳地,所述第一单元还用于:按照所述状态同步信息,对所述第一用户设备进行状态检查处理。Preferably, the first unit is further configured to: perform status check processing on the first user equipment according to the status synchronization information.
较佳地,所述第二单元还用于:Preferably, the second unit is also used for:
当根据所述状态同步应答确定所述第一用户设备与所述第二用户设备之间的状态同步成功后,若确定所述第一用户设备无需进行与所述第二用户设备之间的状态同步,则恢复对所述第一用户设备进行状态检查处理之前的状态。从而可以继续进行原有业务。After determining that the state synchronization between the first user equipment and the second user equipment is successful according to the state synchronization response, if it is determined that the first user equipment does not need to perform state synchronization with the second user equipment Synchronization, restore the state before performing state check processing on the first user equipment. So that the original business can continue.
相应地,在对端用户设备侧,参见图5,本发明实施例提供的一种用户设备间的状态同步装置,包括:Correspondingly, on the peer user equipment side, referring to FIG. 5 , an apparatus for state synchronization between user equipments provided by an embodiment of the present invention includes:
第三单元21,用于当接收到第一用户设备发送的与第二用户设备之间进行状态同步的状态同步请求时,从中获取状态同步信息;The third unit 21 is configured to acquire state synchronization information therefrom when receiving a state synchronization request sent by the first user equipment for state synchronization with the second user equipment;
第四单元22,用于根据所述状态同步信息,对所述第二用户设备是否能与所述第一用户设备进行状态同步进行判断处理,并通过短信信令向所述第一用户设备反馈状态同步应答。The fourth unit 22 is configured to judge whether the second user equipment can perform state synchronization with the first user equipment according to the state synchronization information, and feed back to the first user equipment through SMS signaling Status sync reply.
通过该装置,当接收到第一用户设备发送的状态同步请求时,从中获取状态同步信息,根据所述状态同步信息,对第二用户设备是否能与所述第一用户设备进行状态同步进行判断处理,并通过短信信令向所述第一用户设备反馈状态同步应答,从而通过短信信令实现了用户设备之间的状态同步,使得通信的一方用户设备可以了解另外一方用户设备的状态,或者通知另外一方用户设备进行特殊事件处理,通信双方用户设备可以很便捷地实现状态同步。By means of this device, when a state synchronization request sent by the first user equipment is received, state synchronization information is obtained therefrom, and whether the second user equipment can perform state synchronization with the first user equipment is judged according to the state synchronization information processing, and feed back a state synchronization response to the first user equipment through SMS signaling, thereby realizing the state synchronization between user equipment through SMS signaling, so that the user equipment of one party in communication can know the state of the user equipment of the other party, or The user equipment of the other party is notified to handle special events, and the user equipment of both communication parties can easily realize state synchronization.
较佳地,所述第四单元,具体用于:Preferably, the fourth unit is specifically used for:
根据所述状态同步信息,判断所述第二用户设备是否能与所述第一用户设备进行状态同步,如果是,则执行所述第二用户设备与所述第一用户设备之间的状态同步,并通过短信信令向所述第一用户设备反馈成功的状态同步应答;否则,通过短信信令向所述第一用户设备反馈失败的状态同步应答。According to the state synchronization information, determine whether the second user equipment can perform state synchronization with the first user equipment, and if so, perform state synchronization between the second user equipment and the first user equipment , and feeding back a successful status synchronization response to the first user equipment through SMS signaling; otherwise, feeding back a failed status synchronization response to the first user equipment through SMS signaling.
较佳地,所述第四单元还用于:当完成所述第二用户设备与所述第一用户设备之间的状态同步时,启动预设的保持定时器,当该保持定时器超时时,恢复所述第二用户设备与所述第一用户设备进行状态同步之前的所述第二用户设备的状态。Preferably, the fourth unit is further configured to: start a preset hold timer when the state synchronization between the second user equipment and the first user equipment is completed, and when the hold timer expires Restore the state of the second user equipment before the second user equipment performs state synchronization with the first user equipment.
通过设置的保持定时器,避免了第二用户设备长时间保持在同步后的状态。Through the set hold timer, the second user equipment is prevented from being kept in the synchronized state for a long time.
较佳地,所述第四单元还用于:在完成所述第二用户设备与所述第一用户设备之间的状态同步后,若确定所述第二用户设备无需进行与所述第一用户设备之间的状态同步,则恢复所述第二用户设备与所述第一用户设备进行状态同步之前的所述第二用户设备的状态。从而可以继续原来业务。Preferably, the fourth unit is further configured to: after completing the state synchronization between the second user equipment and the first user equipment, if it is determined that the second user equipment does not need to communicate with the first user equipment The state synchronization between user equipments restores the state of the second user equipment before the state synchronization between the second user equipment and the first user equipment. So that the original business can be continued.
较佳地,所述状态同步应答中包括:Preferably, the status synchronization response includes:
所述第二用户设备支持的协议版本、用于标识所述状态同步请求的序列号、所述第一用户设备需要与所述第二用户设备进行状态同步的同步类型和同步结果。The protocol version supported by the second user equipment, the sequence number used to identify the state synchronization request, the synchronization type and synchronization result that the first user equipment needs to perform state synchronization with the second user equipment.
考虑到同一用户设备,即可以作为状态同步的发起端也可以作为状态同步的响应端,因此,同一用户设备可以同时具有图4和图5所示的单元,因此,较佳地,该装置还包括:Considering that the same user equipment can be used as the initiator of state synchronization or as the responder of state synchronization, therefore, the same user equipment can have the units shown in Figure 4 and Figure 5 at the same time, therefore, preferably, the device also include:
第一单元,用于当确定第二用户设备需要与第一用户设备进行状态同步时,通过短信信令向所述第一用户设备发送状态同步请求,其中携带状态同步信息;The first unit is configured to, when it is determined that the second user equipment needs to perform state synchronization with the first user equipment, send a state synchronization request to the first user equipment through SMS signaling, which carries state synchronization information;
第二单元,用于当接收到所述第一用户设备反馈的状态同步应答时,根据状态同步应答确定所述第一用户设备与所述第二用户设备之间的状态同步是否成功。The second unit is configured to, when receiving the status synchronization response fed back by the first user equipment, determine whether the status synchronization between the first user equipment and the second user equipment is successful according to the status synchronization response.
以上各个单元,均可以由具有传输功能的处理器等器件实现。Each of the above units can be realized by a device such as a processor with a transmission function.
综上所述,本发明在短信信令层实现了高效的实时状态信息同步,实现端到端的状态同步和事件处理。而现有方案不能在通信网络层面实现端到端的状态同步和事件处理,信息是否到达、传送时间等条件无法确定。而本发明实施例提供的技术方案实现了一种在通信网络层的端到端同步,可以保证通信网络层同步的高效率、高抵达率、高安全性。In summary, the present invention realizes efficient real-time state information synchronization at the SMS signaling layer, and realizes end-to-end state synchronization and event processing. However, the existing solutions cannot realize end-to-end state synchronization and event processing at the communication network level, and conditions such as whether the information arrives and the transmission time cannot be determined. However, the technical solution provided by the embodiment of the present invention realizes an end-to-end synchronization at the communication network layer, which can ensure high efficiency, high arrival rate, and high security of communication network layer synchronization.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, systems, or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) having computer-usable program code embodied therein.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention also intends to include these modifications and variations.
Claims (21)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410521065.0A CN105530593B (en) | 2014-09-30 | 2014-09-30 | Method and device for state synchronization between user equipments |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410521065.0A CN105530593B (en) | 2014-09-30 | 2014-09-30 | Method and device for state synchronization between user equipments |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105530593A true CN105530593A (en) | 2016-04-27 |
CN105530593B CN105530593B (en) | 2019-04-30 |
Family
ID=55772509
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410521065.0A Active CN105530593B (en) | 2014-09-30 | 2014-09-30 | Method and device for state synchronization between user equipments |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105530593B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106487656A (en) * | 2016-09-30 | 2017-03-08 | 北京奇虎科技有限公司 | The method of state, apparatus and system under the line of synchronous user |
CN107590207A (en) * | 2017-08-24 | 2018-01-16 | 阿里巴巴集团控股有限公司 | Method of data synchronization and device, electronic equipment |
CN108289326A (en) * | 2018-01-03 | 2018-07-17 | 广东工业大学 | A kind of unmanned systems equipment communication means, system, equipment and computer media |
CN112929431A (en) * | 2021-02-01 | 2021-06-08 | 深圳市科漫达智能管理科技有限公司 | Message synchronous and asynchronous response conversion method and device based on micro-service framework |
US20220046414A1 (en) * | 2019-04-22 | 2022-02-10 | Canon Kabushiki Kaisha | Communication device, and control method and computer-readable medium storing program for communication device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1992556A (en) * | 2005-12-27 | 2007-07-04 | 展讯通信(上海)有限公司 | Method and system for uplink synchronization |
CN103108389A (en) * | 2011-11-15 | 2013-05-15 | 中兴通讯股份有限公司 | Communication method and communication system from device to device and user devices |
CN103581137A (en) * | 2012-08-02 | 2014-02-12 | 中兴通讯股份有限公司 | ECN proxy equipment and ECN notification method |
CN103686861A (en) * | 2012-09-06 | 2014-03-26 | 华为技术有限公司 | Method and device for transmitting reference signal in inter-device D2D communication |
CN103916423A (en) * | 2012-12-31 | 2014-07-09 | 华为技术有限公司 | Data synchronization method and device |
-
2014
- 2014-09-30 CN CN201410521065.0A patent/CN105530593B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1992556A (en) * | 2005-12-27 | 2007-07-04 | 展讯通信(上海)有限公司 | Method and system for uplink synchronization |
CN103108389A (en) * | 2011-11-15 | 2013-05-15 | 中兴通讯股份有限公司 | Communication method and communication system from device to device and user devices |
CN103581137A (en) * | 2012-08-02 | 2014-02-12 | 中兴通讯股份有限公司 | ECN proxy equipment and ECN notification method |
CN103686861A (en) * | 2012-09-06 | 2014-03-26 | 华为技术有限公司 | Method and device for transmitting reference signal in inter-device D2D communication |
CN103916423A (en) * | 2012-12-31 | 2014-07-09 | 华为技术有限公司 | Data synchronization method and device |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106487656A (en) * | 2016-09-30 | 2017-03-08 | 北京奇虎科技有限公司 | The method of state, apparatus and system under the line of synchronous user |
CN107590207A (en) * | 2017-08-24 | 2018-01-16 | 阿里巴巴集团控股有限公司 | Method of data synchronization and device, electronic equipment |
CN108289326A (en) * | 2018-01-03 | 2018-07-17 | 广东工业大学 | A kind of unmanned systems equipment communication means, system, equipment and computer media |
CN108289326B (en) * | 2018-01-03 | 2020-09-11 | 广东工业大学 | An unmanned system equipment communication method, system, device and computer medium |
US20220046414A1 (en) * | 2019-04-22 | 2022-02-10 | Canon Kabushiki Kaisha | Communication device, and control method and computer-readable medium storing program for communication device |
CN112929431A (en) * | 2021-02-01 | 2021-06-08 | 深圳市科漫达智能管理科技有限公司 | Message synchronous and asynchronous response conversion method and device based on micro-service framework |
CN112929431B (en) * | 2021-02-01 | 2022-12-20 | 深圳市科漫达智能管理科技有限公司 | Message synchronous and asynchronous response conversion method and device based on micro-service framework |
Also Published As
Publication number | Publication date |
---|---|
CN105530593B (en) | 2019-04-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105530593A (en) | Method and device for state synchronization between user equipment | |
JP2016500219A (en) | Delay after service request | |
CN108282846A (en) | A kind of service request processing method and device | |
CN106465453B (en) | More group call method for building up and equipment | |
CN111065171B (en) | Method for terminating call, application processor and modem | |
JP2023134625A (en) | Service data adaptation protocol layer entity management method, transmitting terminal, and receiving terminal | |
US20090219859A1 (en) | Radio Communication Terminal | |
CN104247473A (en) | Terminal device, interactive voice response device, missing call reminding system and method | |
CN105246129A (en) | Networking method and device for an intelligent terminal | |
CN107770035B (en) | Method and device for pushing offline notification | |
WO2016045293A1 (en) | All-group calling method, system, related device and computer storage medium | |
WO2013155927A1 (en) | Active login method and terminal | |
US9912782B2 (en) | Method and apparatus for recovery in a communication system employing redundancy | |
WO2016177222A1 (en) | Missed call reminding method and device | |
US8983049B2 (en) | Methods and systems for controlling a user device in a telecommunication network | |
CN109429180B (en) | Method and device for data exchange | |
CN108616485B (en) | Communication method and device based on fusion device | |
CN110769474A (en) | Call switching method and system | |
CN107295203A (en) | Method for message transmission and device in a kind of MPTY meeting | |
WO2017215317A1 (en) | Call processing method and device | |
WO2018233447A1 (en) | Method, device and storage medium for implementing link connection processing | |
CN106921503B (en) | A data synchronization method, device and system | |
CN104853047A (en) | Automatic callback method and equipment | |
WO2016165669A1 (en) | Automatic redialling method and device for mobile phone calling busy line, terminal and computer-readable storage medium | |
CN103024679A (en) | Method and network equipment for creating cluster call |
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 |