WO2016177128A1 - Shutdown detection method, device and core network - Google Patents

Shutdown detection method, device and core network Download PDF

Info

Publication number
WO2016177128A1
WO2016177128A1 PCT/CN2016/076643 CN2016076643W WO2016177128A1 WO 2016177128 A1 WO2016177128 A1 WO 2016177128A1 CN 2016076643 W CN2016076643 W CN 2016076643W WO 2016177128 A1 WO2016177128 A1 WO 2016177128A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
user equipment
predetermined time
received
timer
Prior art date
Application number
PCT/CN2016/076643
Other languages
French (fr)
Chinese (zh)
Inventor
黄志强
徐华
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016177128A1 publication Critical patent/WO2016177128A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W60/00Affiliation to network, e.g. registration; Terminating affiliation with the network, e.g. de-registration
    • H04W60/02Affiliation to network, e.g. registration; Terminating affiliation with the network, e.g. de-registration by periodical registration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W60/00Affiliation to network, e.g. registration; Terminating affiliation with the network, e.g. de-registration
    • H04W60/06De-registration or detaching

Definitions

  • the present invention relates to the field of communications, and in particular, to a shutdown detection method, apparatus, and core network.
  • the trunking communication system currently implements a second generation mobile communication technology (2G), a third generation mobile communication technology (3G), and a fourth generation mobile communication technology (4G) cluster system, and the cluster system includes: a core network, a base station, and a terminal ( Also known as user equipment), to implement cluster services, each network element entity needs to design its own implementation plan according to the cluster business process.
  • the cluster services include registration, half-duplex single-call, group call, full-duplex single-call, call rights application, voice release, call queue, and group information update.
  • the registration is the basis, and the terminal in the trunking communication system completes the initial interaction with the base station and the core network through the registration process, so that the base station and the core network establish the context of the terminal, and record various service states of the terminal.
  • a 4G broadband trunking communication system for a registered terminal, in a normal soft shutdown situation, the terminal interacts with the network side through a deregistration process, so that the network side records the shutdown state of the terminal; and in the case of a hard shutdown, such as direct disconnection As the terminal cannot complete the interaction with the deregistration process on the network side, the network side cannot know the shutdown status of the terminal, which affects subsequent service operations.
  • the embodiment of the invention provides a shutdown detection method, a device and a core network, so as to solve at least the problem that the network side cannot detect the shutdown state of the user equipment due to the hard shutdown of the user equipment in the related art.
  • a shutdown detection method including: determining whether a first message from a user equipment is received within a first predetermined time, wherein the first predetermined time is received last Determining, by the user equipment Whether a second response from the user equipment is received within a second predetermined time after the second message; and determining that the second response is not received within the second predetermined time, determining the user equipment Shut down.
  • the first message is sent by the user equipment according to a predetermined period, wherein a duration of the predetermined period is less than a duration of the first predetermined time.
  • the method further includes: sending a third message to the user equipment, where the third message is used to indicate The user equipment sends the first a duration of the predetermined period of a message, and instructing the user equipment to start transmitting the first message upon receiving the third message.
  • the method further includes: performing an execution determination to determine whether the first is received in the first predetermined time a step of a message, wherein the first predetermined time is a timed starting point at a time when the first message is received.
  • the method further includes: performing an execution determining whether the first time is received in the first predetermined time a step of a message, wherein the first predetermined time is a timed starting point at which the second message is received.
  • a shutdown detection apparatus including: a first determining module, configured to determine whether a first message from a user equipment is received within a first predetermined time, wherein the first The predetermined time is the starting point of the time when the message of the user equipment is last received; the first sending module is configured to send the first message if it is determined that the first message is not received within the first predetermined time a second message to the user equipment; the second determining module is configured to determine whether a second response from the user equipment is received within a second predetermined time after the sending the second message; and the determining module is configured to determine In a case where the second response is not received within the second predetermined time, it is determined that the user equipment is powered off.
  • the first message is sent by the user equipment according to a predetermined period, wherein a duration of the predetermined period is less than a duration of the first predetermined time.
  • the device further includes: a second sending module, configured to send a third message to the user equipment, where the third message is used to indicate that the user equipment sends the first message And a duration of the predetermined period, and instructing the user equipment to start sending the first message when receiving the third message.
  • a second sending module configured to send a third message to the user equipment, where the third message is used to indicate that the user equipment sends the first message And a duration of the predetermined period, and instructing the user equipment to start sending the first message when receiving the third message.
  • a core network including: a first timer, a second timer, a communication module, and a determining module, wherein the first timer is configured to The time when the communication module finally receives the message of the user equipment is the timing of the start time of the time counting for the first predetermined time; the communication module is connected with the first timer, and is set to timeout when the first timer expires.
  • the second timer is connected to the communication module, and is configured to use the time when the communication module sends the second message as a time start point, and the duration is a second predetermined
  • the timing module is connected to the second timer and the communication module, and configured to determine whether the communication module receives the second response before the second timer expires, wherein The user equipment is determined to be shut down if the communication module does not receive the second response before the second timer expires.
  • the communication module is further configured to send a third message to the user equipment, where the third message is used to indicate that the user equipment sends the first message in a predetermined period, and indicates the user equipment The first message is sent when the third message is received.
  • a computer storage medium is further provided, and the computer storage medium may store an execution instruction for executing the shutdown detection method in the above embodiment.
  • the first message from the user equipment is received in the first predetermined time, wherein the first predetermined time is the starting time of the last received message of the user equipment; If the first message is not received within a predetermined time, the second message is sent to the user equipment; determining whether the second response from the user equipment is received within the second predetermined time after the second message is sent; In the case that the second response is not received within the second predetermined time, the manner in which the user equipment is turned off is determined, and the problem that the network side cannot detect the shutdown state of the user equipment due to the hard shutdown of the user equipment is solved, and the accuracy of the shutdown detection is improved.
  • FIG. 1 is a flow chart of a shutdown detection method according to an embodiment of the present invention.
  • FIG. 2 is a block diagram showing the structure of a shutdown detecting device according to an embodiment of the present invention.
  • FIG. 3 is a block diagram showing an optional structure of a shutdown detecting device according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a core network according to an embodiment of the present invention.
  • FIG. 5 is a flow chart of a shutdown detection method in accordance with a preferred embodiment of the present invention.
  • FIG. 1 is a flowchart of a shutdown detection method according to an embodiment of the present invention. As shown in FIG. 1, the flow includes the following steps:
  • Step S102 determining whether a first message from the user equipment is received in the first predetermined time, wherein the first predetermined time is a time starting point of the last time the message of the user equipment is received;
  • Step S104 if it is determined that the first message is not received within the first predetermined time, sending the second message to the user equipment;
  • Step S106 determining whether a second response from the user equipment is received within a second predetermined time after the second message is sent;
  • Step S108 if it is determined that the second response is not received within the second predetermined time, it is determined that the user equipment is powered off.
  • the state of the user equipment is detected by using a timeout detection method, in the first predetermined time and the first If the two predetermined times have timed out, the user equipment may be considered to be in a shutdown state. Because the related technology needs to detect the shutdown state of the user equipment through the deregistration process, the core network cannot detect the shutdown state of the user equipment when the user equipment cannot complete the deregistration process in the hard shutdown state. After the above method is adopted, the problem that the network side cannot detect the shutdown state of the user equipment due to the hard shutdown of the user equipment is solved, and the shutdown detection of the hard shutdown is realized, and the accuracy of the shutdown detection is improved.
  • the foregoing steps are performed by the corresponding functional entity in the core network or the core network.
  • the core network is taken as an example for description and description.
  • the foregoing first message is sent by the user equipment according to a predetermined period, wherein the duration of the predetermined period is less than the duration of the first predetermined time.
  • the first message includes, but is not limited to, a message dedicated to advertising that the user equipment is powered on.
  • the period in which the user equipment sends the first message may be preset, or may be configured by the core network, for example, before determining whether the first message is received in the first predetermined time, the core network sends the third.
  • the message is sent to the user equipment, where the third message is used to indicate the duration of the predetermined period in which the user equipment sends the first message, and indicates that the user equipment starts to send the first message when receiving the third message.
  • step S102 if it is determined that the first message is received within the first predetermined time, the core network may return to perform the step of determining whether the first message is received within the first predetermined time, where The time at which the first message is received is a predetermined time starting point.
  • step S106 in a case that it is determined that the second message is received within the second predetermined time, the core network may return to perform the step of determining whether the first message is received within the first predetermined time, where The first predetermined time is the timing start point at the time when the second message is received.
  • the second message includes, but is not limited to, a message dedicated to querying a user equipment shutdown state.
  • the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation.
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
  • the optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
  • a shutdown detection device is also provided, which is used to implement the above-mentioned embodiments and preferred embodiments, and has not been described again.
  • the term “module” may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • the apparatus includes: a first determination module 22, a first transmission module 24, a second determination module 26, and a determination module 28, where The first determining module 22 is configured to determine whether a first message from the user equipment is received within a first predetermined time, wherein the first predetermined time is The time when the message of the user equipment is received is the starting point of the timing; the first sending module 24 is coupled to the first determining module 22, and is configured to send the first message if it is determined that the first message is not received within the first predetermined time.
  • the second determining module 26 is coupled to the first sending module 24, configured to determine whether a second response from the user equipment is received within a second predetermined time after the second message is sent; the determining module 28, Coupled to the second determining module 26, it is configured to determine that the user equipment is shut down if it is determined that the second response is not received within the second predetermined time.
  • the foregoing first message is sent by the user equipment according to a predetermined period, wherein the duration of the predetermined period is less than the duration of the first predetermined time.
  • FIG. 3 is a block diagram showing an optional structure of a shutdown detection apparatus according to an embodiment of the present invention.
  • the apparatus further includes: a second sending module 32 coupled to the first determining module 22 and configured to transmit The third message is sent to the user equipment, where the third message is used to indicate the duration of the predetermined period in which the user equipment sends the first message, and indicates that the user equipment starts to send the first message when receiving the third message.
  • the first determining module 22 is further configured to: when it is determined that the first message is received within the first predetermined time, returning to the execution determining whether the first message is received within the first predetermined time, where The time at which the first message is received is a predetermined time starting point.
  • the first determining module 22 is coupled to the second determining module 26, and is further configured to: when it is determined that the second message is received within the second predetermined time, returning to the execution determining whether to receive in the first predetermined time Go to the first message, wherein the first predetermined time is the timed starting point of the time when the second message is received.
  • each of the above modules may be implemented by software or hardware.
  • the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the modules are located in multiple In the processor.
  • This embodiment further provides a core network, which is configured to implement the foregoing shutdown detection method.
  • the core network includes: a first timer 42, a second timer 44, a communication module 46, and a judging module 48, where
  • the timer 42 is configured to set the time of the first predetermined time to the time when the communication module 46 finally receives the message of the user equipment, and the communication module 46 is connected to the first timer 42 to be set to the first time.
  • the second message is sent to the user equipment; the second timer 44 is connected to the communication module 46, and is set to use the time when the communication module 46 sends the second message as the starting point of the time for the second predetermined time.
  • the timing module is connected to the second timer 44 and the communication module 46, and is configured to determine whether the communication module 46 receives the second response before the second timer 44 times out, wherein the second timer 44 is determined. In case the communication module 46 does not receive the second response before the timeout, it is determined that the user equipment is powered off.
  • the communication module 46 is further configured to send a third message to the user equipment, where the third message is used to indicate that the user equipment sends the first message in a predetermined period, and instruct the user equipment to start sending when receiving the third message.
  • the first message is further configured to send a third message to the user equipment, where the third message is used to indicate that the user equipment sends the first message in a predetermined period, and instruct the user equipment to start sending when receiving the third message. The first message.
  • Embodiments of the present invention also provide a software for performing the technical solutions described in the above embodiments and preferred embodiments.
  • Embodiments of the present invention also provide a storage medium.
  • the above storage medium may be configured to store program code for performing the following steps:
  • Step S102 determining whether a first message from the user equipment is received in the first predetermined time, wherein the first predetermined time is a time starting point of the last time the message of the user equipment is received;
  • Step S104 if it is determined that the first message is not received within the first predetermined time, sending the second message to the user equipment;
  • Step S106 determining whether a second response from the user equipment is received within a second predetermined time after the second message is sent;
  • Step S108 if it is determined that the second response is not received within the second predetermined time, it is determined that the user equipment is powered off.
  • the foregoing storage medium may include, but is not limited to, a USB flash drive, a Read-Only Memory (ROM), and a Random Access Memory (RAM).
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • a cluster system shutdown detection method and device are proposed, so that the cluster system can quickly detect the terminal hard shutdown, so that the network side can quickly grasp the shutdown of the terminal. Status, and then corresponding rendering and next processing.
  • FIG. 5 is a flow chart of a shutdown detection method in accordance with a preferred embodiment of the present invention. As shown in FIG. 5, a preferred embodiment of the present invention includes the following steps:
  • Step 1 the operation and maintenance module sets the shutdown fast detection timer T1, the duration is L1; the periodic handshake timer T2, the duration is L2; the shutdown query timer T3, the duration is L3. Where L1 is greater than L2.
  • Step 2 The terminal initiates a registration process, and the core network notifies the terminal of the configured periodic handshake timer and its duration.
  • Step 3 After the registration is successful, the terminal starts the periodic handshake timer, and the core network starts the shutdown fast detection timer.
  • Step 4 After the terminal works normally, and the periodic handshake timer expires, the handshake request message is sent to the core network.
  • Step 5 The core network receives the periodic handshake request message sent by the terminal, sends a periodic handshake confirmation message to the terminal, and restarts the shutdown fast detection timer, records the terminal status as a normal state, and displays the operation and maintenance interface.
  • Step 6 The terminal suddenly shuts down and shuts down.
  • Step 7 The core gateway machine quickly detects that the timer expires, records the terminal status as a false shutdown state, and displays the operation and maintenance interface.
  • Step 8 The core network sends a shutdown query request message to the terminal, and starts a shutdown query timer to wait for the terminal to respond to the shutdown query response message.
  • Step 9 The core gateway machine queries the timer timeout, records the terminal status as the shutdown state, and displays the operation and maintenance interface.
  • the cluster system can quickly detect the terminal hard shutdown, so that the network side can quickly grasp the shutdown state of the terminal, and then perform corresponding user presentation and One step.
  • the shutdown detection in this example includes the following steps:
  • Step 1 The operation and maintenance module sets the shutdown detection timer for 30 seconds, the periodic handshake timer for 15 seconds, and the shutdown query timer for 10 seconds.
  • Step 2 The radio station initiates a registration process, and obtains a periodic handshake timer of 15 seconds.
  • Step 3 The terminal of the vehicle station periodically times out, sends a handshake request to the core network, and the core network responds with a handshake response message to the terminal.
  • Step 4 The handshake successfully restarts the periodic handshake timer, and the core network restarts the critical detection timer.
  • the terminal is hard shut down after normal operation.
  • This is the shutdown detection in the example includes the following steps:
  • Step 1 The operation and maintenance module sets the shutdown detection timer for 30 seconds, the periodic handshake timer for 15 seconds, and the shutdown query timer for 10 seconds.
  • Step 2 The radio station initiates a registration process, and obtains a periodic handshake timer of 15 seconds.
  • Step 3 The terminal of the vehicle station periodically times out, sends a handshake request to the core network, and the core network responds with a handshake response message to the terminal.
  • Step 4 The handshake successfully restarts the periodic handshake timer, and the core network restarts the shutdown detection timer.
  • Step 5 The terminal of the vehicle station suddenly shuts down and shuts down.
  • Step 6 The core gateway machine quickly detects that the timer expires, sets the terminal state to false shutdown, starts the shutdown query timer, and sends a shutdown query request message to the target terminal.
  • Step 7 The shutdown query timer expires, and the terminal state is turned off, and is displayed to the operation and maintenance interface.
  • the various modules or steps of the present invention described above can be used with general calculations.
  • the devices are implemented, they may be centralized on a single computing device, or distributed over a network of multiple computing devices, optionally they may be implemented in program code executable by the computing device, such that they may be stored Executed by the computing device in a storage device, and in some cases, the steps shown or described may be performed in an order different than that herein, or separately fabricated into individual integrated circuit modules, or Multiple modules or steps are made into a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the first message from the user equipment is received in the first predetermined time, wherein the first predetermined time is the starting time of the last received message of the user equipment; If the first message is not received within a predetermined time, the second message is sent to the user equipment; determining whether the second response from the user equipment is received within the second predetermined time after the second message is sent; In the case that the second response is not received within the second predetermined time, the manner in which the user equipment is turned off is determined, and the problem that the network side cannot detect the shutdown state of the user equipment due to the hard shutdown of the user equipment is solved, and the accuracy of the shutdown detection is improved.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

Provided are a shutdown detection method, device and core network. The method comprises: determining whether a first message from a user equipment (UE) is received at a first predetermined time, wherein the first predetermined time starts from a time of receiving a final message of the UE; if not, then transmitting a second message to the UE; determining whether a second response from the UE is received at a second predetermined time after transmitting the second message; and if not, then determining that the UE has shut down. The present invention addresses the problem in which a network side cannot detect whether the UE has shut down as a result of a forced shutdown of the UE, and improves a shutdown detection accuracy.

Description

关机检测方法、装置及核心网Shutdown detection method, device and core network 技术领域Technical field
本发明涉及通信领域,具体而言,涉及一种关机检测方法、装置及核心网。The present invention relates to the field of communications, and in particular, to a shutdown detection method, apparatus, and core network.
背景技术Background technique
集群通信系统目前实现了第二代移动通信技术(2G)、第三代移动通信技术(3G)、第四代移动通信技术(4G)的集群系统,集群系统包括:核心网、基站、终端(又称为用户设备),若要实现集群业务,每个网元实体需要根据集群业务流程设计各自的实现方案。集群业务包括注册登记,半双工单呼、组呼、全双工单呼、话权申请、话权释放、话权排队、组信息更新等业务。其中,注册登记是基础,集群通信系统中的终端通过注册登记流程完成与基站、核心网的初次交互,以便基站和核心网建立此终端的上下文,并记录此终端的各种业务状态。The trunking communication system currently implements a second generation mobile communication technology (2G), a third generation mobile communication technology (3G), and a fourth generation mobile communication technology (4G) cluster system, and the cluster system includes: a core network, a base station, and a terminal ( Also known as user equipment), to implement cluster services, each network element entity needs to design its own implementation plan according to the cluster business process. The cluster services include registration, half-duplex single-call, group call, full-duplex single-call, call rights application, voice release, call queue, and group information update. The registration is the basis, and the terminal in the trunking communication system completes the initial interaction with the base station and the core network through the registration process, so that the base station and the core network establish the context of the terminal, and record various service states of the terminal.
在4G宽带集群通信系统中,对于已注册终端,正常软关机情况下,终端会通过去注册流程与网络侧交互,以便网络侧记录此终端的关机状态;而对于硬关机情况下,如直接断电,由于终端无法完成与网络侧的去注册流程交互,将会导致网络侧无法掌握终端的关机状态,进而影响后续业务操作。In a 4G broadband trunking communication system, for a registered terminal, in a normal soft shutdown situation, the terminal interacts with the network side through a deregistration process, so that the network side records the shutdown state of the terminal; and in the case of a hard shutdown, such as direct disconnection As the terminal cannot complete the interaction with the deregistration process on the network side, the network side cannot know the shutdown status of the terminal, which affects subsequent service operations.
针对相关技术中由于用户设备的硬关机导致网络侧无法检测用户设备的关机状态的问题,目前尚未提出有效的解决方案。In view of the problem that the network side cannot detect the shutdown state of the user equipment due to the hard shutdown of the user equipment in the related art, an effective solution has not been proposed yet.
发明内容Summary of the invention
本发明实施例提供了一种关机检测方法、装置及核心网,以至少解决相关技术中由于用户设备的硬关机导致网络侧无法检测用户设备的关机状态的问题。The embodiment of the invention provides a shutdown detection method, a device and a core network, so as to solve at least the problem that the network side cannot detect the shutdown state of the user equipment due to the hard shutdown of the user equipment in the related art.
根据本发明实施例的一个方面,提供了一种关机检测方法,包括:判断在第一预定时间内是否接收到来自用户设备的第一消息,其中,所述第一预定时间以最后接收到所述用户设备的消息的时刻为计时起点;在判断到在所述第一预定时间内未收到所述第一消息的情况下,发送第二消息至所述用户设备;判断在发送所述第二消息后的第二预定时间内是否收到来自所述用户设备的第二响应;在判断到在所述第二预定时间内未收到所述第二响应的情况下,确定所述用户设备关机。According to an aspect of the embodiments of the present invention, a shutdown detection method is provided, including: determining whether a first message from a user equipment is received within a first predetermined time, wherein the first predetermined time is received last Determining, by the user equipment Whether a second response from the user equipment is received within a second predetermined time after the second message; and determining that the second response is not received within the second predetermined time, determining the user equipment Shut down.
可选地,所述第一消息是由所述用户设备按照预定周期发送的,其中,所述预定周期的时长小于所述第一预定时间的时长。Optionally, the first message is sent by the user equipment according to a predetermined period, wherein a duration of the predetermined period is less than a duration of the first predetermined time.
可选地,在判断在所述第一预定时间内是否接收到所述第一消息之前,所述方法还包括:发送第三消息至所述用户设备,其中,所述第三消息用于指示所述用户设备发送所述第 一消息的所述预定周期的时长,并指示所述用户设备在接收到所述第三消息时开始发送所述第一消息。Optionally, before determining whether the first message is received in the first predetermined time, the method further includes: sending a third message to the user equipment, where the third message is used to indicate The user equipment sends the first a duration of the predetermined period of a message, and instructing the user equipment to start transmitting the first message upon receiving the third message.
可选地,在判断到在所述第一预定时间内接收到所述第一消息的情况下,所述方法还包括:返回执行判断在所述第一预定时间内是否接收到所述第一消息的步骤,其中,所述第一预定时间以接收到所述第一消息的时刻为计时起点。Optionally, in a case that it is determined that the first message is received within the first predetermined time, the method further includes: performing an execution determination to determine whether the first is received in the first predetermined time a step of a message, wherein the first predetermined time is a timed starting point at a time when the first message is received.
可选地,在判断到在所述第二预定时间内接收到所述第二消息的情况下,所述方法还包括:返回执行判断在所述第一预定时间内是否接收到所述第一消息的步骤,其中,所述第一预定时间以接收到所述第二消息的时刻为计时起点。Optionally, in a case that it is determined that the second message is received in the second predetermined time, the method further includes: performing an execution determining whether the first time is received in the first predetermined time a step of a message, wherein the first predetermined time is a timed starting point at which the second message is received.
根据本发明的另一个方面,还提供了一种关机检测装置,包括:第一判断模块,设置为判断在第一预定时间内是否接收到来自用户设备的第一消息,其中,所述第一预定时间以最后接收到所述用户设备的消息的时刻为计时起点;第一发送模块,设置为在判断到在所述第一预定时间内未收到所述第一消息的情况下,发送第二消息至所述用户设备;第二判断模块,设置为判断在发送所述第二消息后的第二预定时间内是否收到来自所述用户设备的第二响应;确定模块,设置为在判断到在所述第二预定时间内未收到所述第二响应的情况下,确定所述用户设备关机。According to another aspect of the present invention, a shutdown detection apparatus is provided, including: a first determining module, configured to determine whether a first message from a user equipment is received within a first predetermined time, wherein the first The predetermined time is the starting point of the time when the message of the user equipment is last received; the first sending module is configured to send the first message if it is determined that the first message is not received within the first predetermined time a second message to the user equipment; the second determining module is configured to determine whether a second response from the user equipment is received within a second predetermined time after the sending the second message; and the determining module is configured to determine In a case where the second response is not received within the second predetermined time, it is determined that the user equipment is powered off.
可选地,所述第一消息是由所述用户设备按照预定周期发送的,其中,所述预定周期的时长小于所述第一预定时间的时长。Optionally, the first message is sent by the user equipment according to a predetermined period, wherein a duration of the predetermined period is less than a duration of the first predetermined time.
可选地,所述装置还包括:第二发送模块,设置为发送第三消息至所述用户设备,其中,所述第三消息用于指示所述用户设备发送所述第一消息的所述预定周期的时长,并指示所述用户设备在接收到所述第三消息时开始发送所述第一消息。Optionally, the device further includes: a second sending module, configured to send a third message to the user equipment, where the third message is used to indicate that the user equipment sends the first message And a duration of the predetermined period, and instructing the user equipment to start sending the first message when receiving the third message.
根据本发明实施例的另一个方面,还提供了一种核心网,包括:第一计时器、第二计时器、通信模块和判断模块,其中,所述第一计时器,设置为以所述通信模块最后接收到用户设备的消息的时刻为计时起点进行时长为第一预定时间的计时;所述通信模块,与所述第一计时器连接,设置为在所述第一计时器超时的情况下,发送第二消息至所述用户设备;所述第二计时器,与所述通信模块连接,设置为以所述通信模块发送所述第二消息的时刻为计时起点进行时长为第二预定时间的计时;所述判断模块,与所述第二计时器和所述通信模块连接,设置为判断在所述第二计时器超时前所述通信模块是否接收到第二响应,其中,在判断到在所述第二计时器超时前所述通信模块未接收到所述第二响应的情况下,确定所述用户设备关机。According to another aspect of the embodiments of the present invention, a core network is provided, including: a first timer, a second timer, a communication module, and a determining module, wherein the first timer is configured to The time when the communication module finally receives the message of the user equipment is the timing of the start time of the time counting for the first predetermined time; the communication module is connected with the first timer, and is set to timeout when the first timer expires. And sending a second message to the user equipment; the second timer is connected to the communication module, and is configured to use the time when the communication module sends the second message as a time start point, and the duration is a second predetermined The timing module is connected to the second timer and the communication module, and configured to determine whether the communication module receives the second response before the second timer expires, wherein The user equipment is determined to be shut down if the communication module does not receive the second response before the second timer expires.
可选地,所述通信模块,还设置为发送第三消息至所述用户设备,其中,所述第三消息用于指示所述用户设备以预定周期发送第一消息,并指示所述用户设备在接收到所述第三消息时开始发送所述第一消息。Optionally, the communication module is further configured to send a third message to the user equipment, where the third message is used to indicate that the user equipment sends the first message in a predetermined period, and indicates the user equipment The first message is sent when the third message is received.
在本发明实施例中,还提供了一种计算机存储介质,该计算机存储介质可以存储有执行指令,该执行指令用于执行上述实施例中的关机检测方法。 In the embodiment of the present invention, a computer storage medium is further provided, and the computer storage medium may store an execution instruction for executing the shutdown detection method in the above embodiment.
通过本发明实施例,采用判断在第一预定时间内是否接收到来自用户设备的第一消息,其中,第一预定时间以最后接收到用户设备的消息的时刻为计时起点;在判断到在第一预定时间内未收到第一消息的情况下,发送第二消息至用户设备;判断在发送第二消息后的第二预定时间内是否收到来自用户设备的第二响应;在判断到在第二预定时间内未收到第二响应的情况下,确定用户设备关机的方式,解决了由于用户设备的硬关机导致网络侧无法检测用户设备的关机状态的问题,提高了关机检测的准确性。According to the embodiment of the present invention, it is determined whether the first message from the user equipment is received in the first predetermined time, wherein the first predetermined time is the starting time of the last received message of the user equipment; If the first message is not received within a predetermined time, the second message is sent to the user equipment; determining whether the second response from the user equipment is received within the second predetermined time after the second message is sent; In the case that the second response is not received within the second predetermined time, the manner in which the user equipment is turned off is determined, and the problem that the network side cannot detect the shutdown state of the user equipment due to the hard shutdown of the user equipment is solved, and the accuracy of the shutdown detection is improved. .
附图说明DRAWINGS
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1是根据本发明实施例的关机检测方法的流程图;1 is a flow chart of a shutdown detection method according to an embodiment of the present invention;
图2是根据本发明实施例的关机检测装置的结构框图;2 is a block diagram showing the structure of a shutdown detecting device according to an embodiment of the present invention;
图3是根据本发明实施例的关机检测装置的可选结构框图;3 is a block diagram showing an optional structure of a shutdown detecting device according to an embodiment of the present invention;
图4是根据本发明实施例的核心网的结构示意图;4 is a schematic structural diagram of a core network according to an embodiment of the present invention;
图5是根据本发明优选实施例的关机检测方法的流程图。5 is a flow chart of a shutdown detection method in accordance with a preferred embodiment of the present invention.
具体实施方式detailed description
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It is to be understood that the terms "first", "second" and the like in the specification and claims of the present invention are used to distinguish similar objects, and are not necessarily used to describe a particular order or order.
在本实施例中提供了一种关机检测方法,图1是根据本发明实施例的关机检测方法的流程图,如图1所示,该流程包括如下步骤:In this embodiment, a shutdown detection method is provided. FIG. 1 is a flowchart of a shutdown detection method according to an embodiment of the present invention. As shown in FIG. 1, the flow includes the following steps:
步骤S102,判断在第一预定时间内是否接收到来自用户设备的第一消息,其中,第一预定时间以最后接收到用户设备的消息的时刻为计时起点;Step S102, determining whether a first message from the user equipment is received in the first predetermined time, wherein the first predetermined time is a time starting point of the last time the message of the user equipment is received;
步骤S104,在判断到在第一预定时间内未收到第一消息的情况下,发送第二消息至用户设备;Step S104, if it is determined that the first message is not received within the first predetermined time, sending the second message to the user equipment;
步骤S106,判断在发送第二消息后的第二预定时间内是否收到来自用户设备的第二响应;Step S106, determining whether a second response from the user equipment is received within a second predetermined time after the second message is sent;
步骤S108,在判断到在第二预定时间内未收到第二响应的情况下,确定用户设备关机。Step S108, if it is determined that the second response is not received within the second predetermined time, it is determined that the user equipment is powered off.
通过上述步骤,采用超时检测的方式对用户设备的状态进行检测,在第一预定时间和第 二预定时间均超时的情况下,则可以认为用户设备已经处于关机状态。由于相关技术中需要通过去注册流程检测用户设备的关机状态,因此在用户设备在硬关机状态下无法完成去注册流程则核心网无法检测到用户设备的关机状态。而采用上述方法后,解决了由于用户设备的硬关机导致网络侧无法检测用户设备的关机状态的问题,实现了硬关机的关机检测,提高了关机检测的准确性。Through the above steps, the state of the user equipment is detected by using a timeout detection method, in the first predetermined time and the first If the two predetermined times have timed out, the user equipment may be considered to be in a shutdown state. Because the related technology needs to detect the shutdown state of the user equipment through the deregistration process, the core network cannot detect the shutdown state of the user equipment when the user equipment cannot complete the deregistration process in the hard shutdown state. After the above method is adopted, the problem that the network side cannot detect the shutdown state of the user equipment due to the hard shutdown of the user equipment is solved, and the shutdown detection of the hard shutdown is realized, and the accuracy of the shutdown detection is improved.
可选地,上述步骤由核心网或者核心网中的相应功能实体完成,在本实施例中以核心网为例进行描述和说明。Optionally, the foregoing steps are performed by the corresponding functional entity in the core network or the core network. In this embodiment, the core network is taken as an example for description and description.
可选地,上述的第一消息是由用户设备按照预定周期发送的,其中,预定周期的时长小于第一预定时间的时长。第一消息包括但不限于专用于通告所述用户设备处于开机状态的消息。Optionally, the foregoing first message is sent by the user equipment according to a predetermined period, wherein the duration of the predetermined period is less than the duration of the first predetermined time. The first message includes, but is not limited to, a message dedicated to advertising that the user equipment is powered on.
可选地,用户设备发送第一消息的周期可以是预先设置的,也可以是由核心网配置的,例如,在判断在第一预定时间内是否接收到第一消息之前,核心网发送第三消息至用户设备,其中,第三消息用于指示用户设备发送第一消息的预定周期的时长,并指示用户设备在接收到第三消息时开始发送第一消息。Optionally, the period in which the user equipment sends the first message may be preset, or may be configured by the core network, for example, before determining whether the first message is received in the first predetermined time, the core network sends the third. The message is sent to the user equipment, where the third message is used to indicate the duration of the predetermined period in which the user equipment sends the first message, and indicates that the user equipment starts to send the first message when receiving the third message.
可选地,在步骤S102中,判断到在第一预定时间内接收到第一消息的情况下,核心网可以返回执行判断在第一预定时间内是否接收到第一消息的步骤,其中,第一预定时间以接收到第一消息的时刻为计时起点。Optionally, in step S102, if it is determined that the first message is received within the first predetermined time, the core network may return to perform the step of determining whether the first message is received within the first predetermined time, where The time at which the first message is received is a predetermined time starting point.
可选地,在步骤S106中,在判断到在第二预定时间内接收到第二消息的情况下,核心网可以返回执行判断在第一预定时间内是否接收到第一消息的步骤,其中,第一预定时间以接收到第二消息的时刻为计时起点。Optionally, in step S106, in a case that it is determined that the second message is received within the second predetermined time, the core network may return to perform the step of determining whether the first message is received within the first predetermined time, where The first predetermined time is the timing start point at the time when the second message is received.
可选地,第二消息包括但不限于专用于查询用户设备关机状态的消息。Optionally, the second message includes, but is not limited to, a message dedicated to querying a user equipment shutdown state.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, The optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
在本实施例中还提供了一种关机检测装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In the embodiment, a shutdown detection device is also provided, which is used to implement the above-mentioned embodiments and preferred embodiments, and has not been described again. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
图2是根据本发明实施例的关机检测装置的结构框图,如图2所示,该装置包括:第一判断模块22、第一发送模块24、第二判断模块26和确定模块28,其中,第一判断模块22,设置为判断在第一预定时间内是否接收到来自用户设备的第一消息,其中,第一预定时间以 最后接收到用户设备的消息的时刻为计时起点;第一发送模块24,耦合至第一判断模块22,设置为在判断到在第一预定时间内未收到第一消息的情况下,发送第二消息至用户设备;第二判断模块26,耦合至第一发送模块24,设置为判断在发送第二消息后的第二预定时间内是否收到来自用户设备的第二响应;确定模块28,耦合至第二判断模块26,设置为在判断到在第二预定时间内未收到第二响应的情况下,确定用户设备关机。2 is a structural block diagram of a shutdown detection apparatus according to an embodiment of the present invention. As shown in FIG. 2, the apparatus includes: a first determination module 22, a first transmission module 24, a second determination module 26, and a determination module 28, where The first determining module 22 is configured to determine whether a first message from the user equipment is received within a first predetermined time, wherein the first predetermined time is The time when the message of the user equipment is received is the starting point of the timing; the first sending module 24 is coupled to the first determining module 22, and is configured to send the first message if it is determined that the first message is not received within the first predetermined time. a second message to the user equipment; the second determining module 26 is coupled to the first sending module 24, configured to determine whether a second response from the user equipment is received within a second predetermined time after the second message is sent; the determining module 28, Coupled to the second determining module 26, it is configured to determine that the user equipment is shut down if it is determined that the second response is not received within the second predetermined time.
可选地,上述的第一消息是由用户设备按照预定周期发送的,其中,预定周期的时长小于第一预定时间的时长。Optionally, the foregoing first message is sent by the user equipment according to a predetermined period, wherein the duration of the predetermined period is less than the duration of the first predetermined time.
图3是根据本发明实施例的关机检测装置的可选结构框图,如图3所示,可选地,装置还包括:第二发送模块32,耦合至第一判断模块22,设置为发送第三消息至用户设备,其中,第三消息用于指示用户设备发送第一消息的预定周期的时长,并指示用户设备在接收到第三消息时开始发送第一消息。FIG. 3 is a block diagram showing an optional structure of a shutdown detection apparatus according to an embodiment of the present invention. As shown in FIG. 3, the apparatus further includes: a second sending module 32 coupled to the first determining module 22 and configured to transmit The third message is sent to the user equipment, where the third message is used to indicate the duration of the predetermined period in which the user equipment sends the first message, and indicates that the user equipment starts to send the first message when receiving the third message.
可选地,第一判断模块22,还设置为在判断到在第一预定时间内接收到第一消息的情况下,返回执行判断在第一预定时间内是否接收到第一消息,其中,第一预定时间以接收到第一消息的时刻为计时起点。Optionally, the first determining module 22 is further configured to: when it is determined that the first message is received within the first predetermined time, returning to the execution determining whether the first message is received within the first predetermined time, where The time at which the first message is received is a predetermined time starting point.
可选地,第一判断模块22,耦合至第二判断模块26,还设置为在判断到在第二预定时间内接收到第二消息的情况下,返回执行判断在第一预定时间内是否接收到第一消息,其中,第一预定时间以接收到第二消息的时刻为计时起点。Optionally, the first determining module 22 is coupled to the second determining module 26, and is further configured to: when it is determined that the second message is received within the second predetermined time, returning to the execution determining whether to receive in the first predetermined time Go to the first message, wherein the first predetermined time is the timed starting point of the time when the second message is received.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述模块分别位于多个处理器中。It should be noted that each of the above modules may be implemented by software or hardware. For the latter, the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the modules are located in multiple In the processor.
本实施例还提供了一种核心网,设置为实现上述关机检测方法。This embodiment further provides a core network, which is configured to implement the foregoing shutdown detection method.
图4是根据本发明实施例的核心网的结构示意图,如图4所示,该核心网包括:第一计时器42、第二计时器44、通信模块46和判断模块48,其中,第一计时器42,设置为以通信模块46最后接收到用户设备的消息的时刻为计时起点进行时长为第一预定时间的计时;通信模块46,与第一计时器连接42,设置为在第一计时器42超时的情况下,发送第二消息至用户设备;第二计时器44,与通信模块46连接,设置为以通信模块46发送第二消息的时刻为计时起点进行时长为第二预定时间的计时;判断模块48,与第二计时器44和通信模块46连接,设置为判断在第二计时器44超时前通信模块46是否接收到第二响应,其中,在判断到在第二计时器44超时前通信模块46未接收到第二响应的情况下,确定用户设备关机。4 is a schematic structural diagram of a core network according to an embodiment of the present invention. As shown in FIG. 4, the core network includes: a first timer 42, a second timer 44, a communication module 46, and a judging module 48, where The timer 42 is configured to set the time of the first predetermined time to the time when the communication module 46 finally receives the message of the user equipment, and the communication module 46 is connected to the first timer 42 to be set to the first time. When the device 42 times out, the second message is sent to the user equipment; the second timer 44 is connected to the communication module 46, and is set to use the time when the communication module 46 sends the second message as the starting point of the time for the second predetermined time. The timing module is connected to the second timer 44 and the communication module 46, and is configured to determine whether the communication module 46 receives the second response before the second timer 44 times out, wherein the second timer 44 is determined. In case the communication module 46 does not receive the second response before the timeout, it is determined that the user equipment is powered off.
可选地,通信模块46,还设置为发送第三消息至用户设备,其中,第三消息用于指示用户设备以预定周期发送第一消息,并指示用户设备在接收到第三消息时开始发送第一消息。Optionally, the communication module 46 is further configured to send a third message to the user equipment, where the third message is used to indicate that the user equipment sends the first message in a predetermined period, and instruct the user equipment to start sending when receiving the third message. The first message.
本发明的实施例还提供了一种软件,该软件用于执行上述实施例及优选实施方式中描述的技术方案。 Embodiments of the present invention also provide a software for performing the technical solutions described in the above embodiments and preferred embodiments.
本发明的实施例还提供了一种存储介质。在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:Embodiments of the present invention also provide a storage medium. In this embodiment, the above storage medium may be configured to store program code for performing the following steps:
步骤S102,判断在第一预定时间内是否接收到来自用户设备的第一消息,其中,第一预定时间以最后接收到用户设备的消息的时刻为计时起点;Step S102, determining whether a first message from the user equipment is received in the first predetermined time, wherein the first predetermined time is a time starting point of the last time the message of the user equipment is received;
步骤S104,在判断到在第一预定时间内未收到第一消息的情况下,发送第二消息至用户设备;Step S104, if it is determined that the first message is not received within the first predetermined time, sending the second message to the user equipment;
步骤S106,判断在发送第二消息后的第二预定时间内是否收到来自用户设备的第二响应;Step S106, determining whether a second response from the user equipment is received within a second predetermined time after the second message is sent;
步骤S108,在判断到在第二预定时间内未收到第二响应的情况下,确定用户设备关机。Step S108, if it is determined that the second response is not received within the second predetermined time, it is determined that the user equipment is powered off.
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in the embodiment, the foregoing storage medium may include, but is not limited to, a USB flash drive, a Read-Only Memory (ROM), and a Random Access Memory (RAM). A variety of media that can store program code, such as a hard disk, a disk, or an optical disk.
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。For example, the specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the optional embodiments, and details are not described herein again.
为了使本发明实施例的描述更加清楚,下面结合优选实施例进行描述和说明。In order to make the description of the embodiments of the present invention more clear, the following description and description are given in conjunction with the preferred embodiments.
以集群系统为例,在本发明优选实施例中,基于集群通信协议,提出了一种集群系统关机快速检测方法及装置,以实现集群系统快速检测终端硬关机,以便网络侧快速掌握终端的关机状态,进而进行相应的呈现及下一步处理。Taking the cluster system as an example, in the preferred embodiment of the present invention, based on the cluster communication protocol, a cluster system shutdown detection method and device are proposed, so that the cluster system can quickly detect the terminal hard shutdown, so that the network side can quickly grasp the shutdown of the terminal. Status, and then corresponding rendering and next processing.
图5是根据本发明优选实施例的关机检测方法的流程图,如图5所示,本发明优选实施例包括如下步骤:5 is a flow chart of a shutdown detection method in accordance with a preferred embodiment of the present invention. As shown in FIG. 5, a preferred embodiment of the present invention includes the following steps:
步骤1、操作与维护模块设置关机快速检测定时器T1,其时长为L1;周期性握手定时器T2,其时长为L2;关机查询定时器T3,其时长为L3。其中,L1大于L2。Step 1, the operation and maintenance module sets the shutdown fast detection timer T1, the duration is L1; the periodic handshake timer T2, the duration is L2; the shutdown query timer T3, the duration is L3. Where L1 is greater than L2.
步骤2、终端发起注册流程,通过注册流程,核心网将配置的周期性握手定时器及其时长通知给终端。Step 2: The terminal initiates a registration process, and the core network notifies the terminal of the configured periodic handshake timer and its duration.
步骤3、注册成功后,终端启动周期性握手定时器,核心网启动关机快速检测定时器。Step 3: After the registration is successful, the terminal starts the periodic handshake timer, and the core network starts the shutdown fast detection timer.
步骤4、终端正常工作,并且周期性握手定时器超时后,发送握手请求消息给核心网。Step 4: After the terminal works normally, and the periodic handshake timer expires, the handshake request message is sent to the core network.
步骤5、核心网收到终端发送的周期性握手请求消息,发送周期性握手确认消息给终端,并重启关机快速检测定时器,记录终端状态为正常状态,并显示到操作与维护界面。Step 5: The core network receives the periodic handshake request message sent by the terminal, sends a periodic handshake confirmation message to the terminal, and restarts the shutdown fast detection timer, records the terminal status as a normal state, and displays the operation and maintenance interface.
步骤6、终端突然断电关机。Step 6. The terminal suddenly shuts down and shuts down.
步骤7、核心网关机快速检测定时器超时,记录终端状态为假关机状态,并显示到操作与维护界面。 Step 7. The core gateway machine quickly detects that the timer expires, records the terminal status as a false shutdown state, and displays the operation and maintenance interface.
步骤8、核心网发送关机查询请求消息给终端,启动关机查询定时器等待终端回应关机查询响应消息。Step 8: The core network sends a shutdown query request message to the terminal, and starts a shutdown query timer to wait for the terminal to respond to the shutdown query response message.
步骤9、核心网关机查询定时器超时,记录终端状态为关机状态,并显示到操作与维护界面。Step 9. The core gateway machine queries the timer timeout, records the terminal status as the shutdown state, and displays the operation and maintenance interface.
在上述优选实施例中,通过引入一种集群系统关机快速检测方法及装置,能够有效的实现集群系统快速检测终端硬关机,以便网络侧快速掌握终端的关机状态,进而进行相应的用户呈现及下一步处理。In the above preferred embodiment, by introducing a cluster system shutdown detection method and device, the cluster system can quickly detect the terminal hard shutdown, so that the network side can quickly grasp the shutdown state of the terminal, and then perform corresponding user presentation and One step.
下面通过实例对本发明优选实施例进行描述和说明。The preferred embodiments of the present invention are described and illustrated by way of examples.
在本实例中,终端正常工作,保持开机状态。本实例中的关机检测包括如下步骤:In this example, the terminal works normally and remains powered on. The shutdown detection in this example includes the following steps:
步骤1、操作与维护模块设置关机快速检测定时器时长30秒,周期性握手定时器时长为15秒,关机查询定时器时长10秒。Step 1. The operation and maintenance module sets the shutdown detection timer for 30 seconds, the periodic handshake timer for 15 seconds, and the shutdown query timer for 10 seconds.
步骤2、车载台终端发起注册流程,获取周期性握手定时器时长15秒。Step 2: The radio station initiates a registration process, and obtains a periodic handshake timer of 15 seconds.
步骤3、车载台终端周期握手超时,发送握手请求给核心网,核心网回复握手响应消息给终端。Step 3: The terminal of the vehicle station periodically times out, sends a handshake request to the core network, and the core network responds with a handshake response message to the terminal.
步骤4、握手成功终端重新周期握手定时器,核心网重启关键检测定时器。Step 4: The handshake successfully restarts the periodic handshake timer, and the core network restarts the critical detection timer.
通过上述实例,实现了对终端状态的周期性检测。Through the above examples, periodic detection of the state of the terminal is achieved.
在另一个实例中,终端在正常工作后硬关机。本是实例中的关机检测包括如下步骤:In another example, the terminal is hard shut down after normal operation. This is the shutdown detection in the example includes the following steps:
步骤1、操作与维护模块设置关机快速检测定时器时长30秒,周期性握手定时器时长为15秒,关机查询定时器时长10秒。Step 1. The operation and maintenance module sets the shutdown detection timer for 30 seconds, the periodic handshake timer for 15 seconds, and the shutdown query timer for 10 seconds.
步骤2、车载台终端发起注册流程,获取周期性握手定时器时长15秒。Step 2: The radio station initiates a registration process, and obtains a periodic handshake timer of 15 seconds.
步骤3、车载台终端周期握手超时,发送握手请求给核心网,核心网回复握手响应消息给终端。Step 3: The terminal of the vehicle station periodically times out, sends a handshake request to the core network, and the core network responds with a handshake response message to the terminal.
步骤4、握手成功终端重新周期握手定时器,核心网重启关机检测定时器。Step 4: The handshake successfully restarts the periodic handshake timer, and the core network restarts the shutdown detection timer.
步骤5、车载台终端突然断电关机。Step 5: The terminal of the vehicle station suddenly shuts down and shuts down.
步骤6、核心网关机快速检测定时器超时,置终端状态为假关机,并启动关机查询定时器,发送关机查询请求消息给目标终端。Step 6: The core gateway machine quickly detects that the timer expires, sets the terminal state to false shutdown, starts the shutdown query timer, and sends a shutdown query request message to the target terminal.
步骤7、关机查询定时器超时,置终端状态为关机,并显示到操作与维护界面。Step 7. The shutdown query timer expires, and the terminal state is turned off, and is displayed to the operation and maintenance interface.
在上述方式中,通过合理设置各个定时器的时长,可以实现终端关机状态的快速检测。In the above manner, by setting the duration of each timer reasonably, the fast detection of the shutdown state of the terminal can be achieved.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算 装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art will appreciate that the various modules or steps of the present invention described above can be used with general calculations. The devices are implemented, they may be centralized on a single computing device, or distributed over a network of multiple computing devices, optionally they may be implemented in program code executable by the computing device, such that they may be stored Executed by the computing device in a storage device, and in some cases, the steps shown or described may be performed in an order different than that herein, or separately fabricated into individual integrated circuit modules, or Multiple modules or steps are made into a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above description is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
工业实用性Industrial applicability
通过本发明实施例,采用判断在第一预定时间内是否接收到来自用户设备的第一消息,其中,第一预定时间以最后接收到用户设备的消息的时刻为计时起点;在判断到在第一预定时间内未收到第一消息的情况下,发送第二消息至用户设备;判断在发送第二消息后的第二预定时间内是否收到来自用户设备的第二响应;在判断到在第二预定时间内未收到第二响应的情况下,确定用户设备关机的方式,解决了由于用户设备的硬关机导致网络侧无法检测用户设备的关机状态的问题,提高了关机检测的准确性。 According to the embodiment of the present invention, it is determined whether the first message from the user equipment is received in the first predetermined time, wherein the first predetermined time is the starting time of the last received message of the user equipment; If the first message is not received within a predetermined time, the second message is sent to the user equipment; determining whether the second response from the user equipment is received within the second predetermined time after the second message is sent; In the case that the second response is not received within the second predetermined time, the manner in which the user equipment is turned off is determined, and the problem that the network side cannot detect the shutdown state of the user equipment due to the hard shutdown of the user equipment is solved, and the accuracy of the shutdown detection is improved. .

Claims (10)

  1. 一种关机检测方法,包括:A shutdown detection method includes:
    判断在第一预定时间内是否接收到来自用户设备的第一消息,其中,所述第一预定时间以最后接收到所述用户设备的消息的时刻为计时起点;Determining whether a first message from the user equipment is received in the first predetermined time, wherein the first predetermined time is a timed start point of the last time the message of the user equipment is received;
    在判断到在所述第一预定时间内未收到所述第一消息的情况下,发送第二消息至所述用户设备;After determining that the first message is not received within the first predetermined time, sending a second message to the user equipment;
    判断在发送所述第二消息后的第二预定时间内是否收到来自所述用户设备的第二响应;Determining whether a second response from the user equipment is received within a second predetermined time after the sending of the second message;
    在判断到在所述第二预定时间内未收到所述第二响应的情况下,确定所述用户设备关机。When it is determined that the second response is not received within the second predetermined time, it is determined that the user equipment is powered off.
  2. 根据权利要求1所述的方法,其中,所述第一消息是由所述用户设备按照预定周期发送的,其中,所述预定周期的时长小于所述第一预定时间的时长。The method of claim 1, wherein the first message is transmitted by the user equipment according to a predetermined period, wherein a duration of the predetermined period is less than a duration of the first predetermined time.
  3. 根据权利要求2所述的方法,其中,在判断在所述第一预定时间内是否接收到所述第一消息之前,所述方法还包括:The method of claim 2, wherein the method further comprises: before determining whether the first message is received within the first predetermined time, the method further comprising:
    发送第三消息至所述用户设备,其中,所述第三消息用于指示所述用户设备发送所述第一消息的所述预定周期的时长,并指示所述用户设备在接收到所述第三消息时开始发送所述第一消息。Sending a third message to the user equipment, where the third message is used to indicate a duration of the predetermined period of the first message sent by the user equipment, and instructing the user equipment to receive the The first message is sent when the three messages are started.
  4. 根据权利要求1所述的方法,其中,在判断到在所述第一预定时间内接收到所述第一消息的情况下,所述方法还包括:The method of claim 1, wherein, in the case that it is determined that the first message is received within the first predetermined time, the method further comprises:
    返回执行判断在所述第一预定时间内是否接收到所述第一消息的步骤,其中,所述第一预定时间以接收到所述第一消息的时刻为计时起点。Returning to the step of performing a determination as to whether the first message is received within the first predetermined time, wherein the first predetermined time is a timed starting point at which the first message is received.
  5. 根据权利要求1所述的方法,其中,在判断到在所述第二预定时间内接收到所述第二消息的情况下,所述方法还包括:The method of claim 1, wherein, in the case that it is determined that the second message is received within the second predetermined time, the method further comprises:
    返回执行判断在所述第一预定时间内是否接收到所述第一消息的步骤,其中,所述第一预定时间以接收到所述第二消息的时刻为计时起点。Returning to the step of performing a determination as to whether the first message is received within the first predetermined time, wherein the first predetermined time is a timed starting point at which the second message is received.
  6. 一种关机检测装置,包括:A shutdown detection device includes:
    第一判断模块,设置为判断在第一预定时间内是否接收到来自用户设备的第一消息,其中,所述第一预定时间以最后接收到所述用户设备的消息的时刻为计时起点;The first judging module is configured to determine whether the first message from the user equipment is received in the first predetermined time, where the first predetermined time is the starting time of the last receiving the message of the user equipment;
    第一发送模块,设置为在判断到在所述第一预定时间内未收到所述第一消息的情况下,发送第二消息至所述用户设备;The first sending module is configured to send a second message to the user equipment if it is determined that the first message is not received within the first predetermined time;
    第二判断模块,设置为判断在发送所述第二消息后的第二预定时间内是否收到来自所述用户设备的第二响应; a second determining module, configured to determine whether a second response from the user equipment is received within a second predetermined time after the sending the second message;
    确定模块,设置为在判断到在所述第二预定时间内未收到所述第二响应的情况下,确定所述用户设备关机。And a determining module, configured to determine that the user equipment is powered off if it is determined that the second response is not received within the second predetermined time.
  7. 根据权利要求6所述的装置,其中,所述第一消息是由所述用户设备按照预定周期发送的,其中,所述预定周期的时长小于所述第一预定时间的时长。The apparatus of claim 6, wherein the first message is transmitted by the user equipment according to a predetermined period, wherein a duration of the predetermined period is less than a duration of the first predetermined time.
  8. 根据权利要求7所述的装置,其中,所述装置还包括:The apparatus of claim 7 wherein said apparatus further comprises:
    第二发送模块,设置为发送第三消息至所述用户设备,其中,所述第三消息用于指示所述用户设备发送所述第一消息的所述预定周期的时长,并指示所述用户设备在接收到所述第三消息时开始发送所述第一消息。a second sending module, configured to send a third message to the user equipment, where the third message is used to instruct the user equipment to send the duration of the predetermined period of the first message, and indicate the user The device starts transmitting the first message when receiving the third message.
  9. 一种核心网,包括:第一计时器、第二计时器、通信模块和判断模块,其中,A core network includes: a first timer, a second timer, a communication module, and a judging module, wherein
    所述第一计时器,设置为以所述通信模块最后接收到用户设备的消息的时刻为计时起点进行时长为第一预定时间的计时;The first timer is configured to perform a time period of a first predetermined time when a time when the communication module last receives the message of the user equipment is a time starting point;
    所述通信模块,与所述第一计时器连接,设置为在所述第一计时器超时的情况下,发送第二消息至所述用户设备;The communication module is connected to the first timer, and is configured to send a second message to the user equipment if the first timer expires;
    所述第二计时器,与所述通信模块连接,设置为以所述通信模块发送所述第二消息的时刻为计时起点进行时长为第二预定时间的计时;The second timer is connected to the communication module, and is configured to use a timing at which the communication module sends the second message is a timing start time and a duration of a second predetermined time;
    所述判断模块,与所述第二计时器和所述通信模块连接,设置为判断在所述第二计时器超时前所述通信模块是否接收到第二响应,其中,在判断到在所述第二计时器超时前所述通信模块未接收到所述第二响应的情况下,确定所述用户设备关机。The determining module is connected to the second timer and the communication module, and configured to determine whether the communication module receives the second response before the second timer expires, wherein the determining is in the The user equipment is determined to be shut down if the communication module does not receive the second response before the second timer expires.
  10. 根据权利要求9所述的核心网,其中,The core network according to claim 9, wherein
    所述通信模块,还设置为发送第三消息至所述用户设备,其中,所述第三消息用于指示所述用户设备以预定周期发送第一消息,并指示所述用户设备在接收到所述第三消息时开始发送所述第一消息。 The communication module is further configured to send a third message to the user equipment, where the third message is used to instruct the user equipment to send the first message in a predetermined period, and instruct the user equipment to receive the The first message is sent when the third message is described.
PCT/CN2016/076643 2015-08-05 2016-03-17 Shutdown detection method, device and core network WO2016177128A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510475822.XA CN106454875A (en) 2015-08-05 2015-08-05 Shutdown detecting method, shutdown detecting device and core network
CN201510475822.X 2015-08-05

Publications (1)

Publication Number Publication Date
WO2016177128A1 true WO2016177128A1 (en) 2016-11-10

Family

ID=57218132

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/076643 WO2016177128A1 (en) 2015-08-05 2016-03-17 Shutdown detection method, device and core network

Country Status (2)

Country Link
CN (1) CN106454875A (en)
WO (1) WO2016177128A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113568329B (en) * 2020-04-28 2023-10-24 广州汽车集团股份有限公司 Shutdown control method and system based on MCU and SOC communication

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101883368A (en) * 2009-05-05 2010-11-10 中兴通讯股份有限公司 Method and device for detecting off-line of mobile station
CN102075992A (en) * 2011-01-07 2011-05-25 大唐移动通信设备有限公司 Method and equipment for determining terminal anomaly
EP2421322A1 (en) * 2010-08-16 2012-02-22 Research in Motion Limited Methods and mobile station for reestablishing a connection by way of NAS procedures
CN102685926A (en) * 2011-03-08 2012-09-19 电信科学技术研究院 Method and device for connection releasing
CN103298023A (en) * 2012-02-23 2013-09-11 普天信息技术研究院有限公司 Method and device for detecting terminal heartbeat

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101883368A (en) * 2009-05-05 2010-11-10 中兴通讯股份有限公司 Method and device for detecting off-line of mobile station
EP2421322A1 (en) * 2010-08-16 2012-02-22 Research in Motion Limited Methods and mobile station for reestablishing a connection by way of NAS procedures
CN102075992A (en) * 2011-01-07 2011-05-25 大唐移动通信设备有限公司 Method and equipment for determining terminal anomaly
CN102685926A (en) * 2011-03-08 2012-09-19 电信科学技术研究院 Method and device for connection releasing
CN103298023A (en) * 2012-02-23 2013-09-11 普天信息技术研究院有限公司 Method and device for detecting terminal heartbeat

Also Published As

Publication number Publication date
CN106454875A (en) 2017-02-22

Similar Documents

Publication Publication Date Title
US9906935B2 (en) Bluetooth low energy beacon device and advertising method
KR101597177B1 (en) Context awareness proximity-based establishment of wireless communication connection
RU2628324C2 (en) Method and device for signal transmission control and electronic device
WO2017185867A1 (en) Method for service transmission and terminal
US11723087B2 (en) Establishing a short-range communication pathway
KR101033763B1 (en) In a mobile network, suspending an active data call to use the channel for an incoming voice call
WO2015149471A1 (en) Information pushing method, system and device and computer storage medium
EP3439236B1 (en) Configuration information push method and device
WO2018107952A1 (en) Method and device for wireless connection
WO2017045433A1 (en) Method and device for detecting communication state between stations, and storage medium
US20180213027A1 (en) Receiving a communication event
US10505890B2 (en) Network access method, system and terminal device, and computer storage medium
CN107770035B (en) Method and device for pushing offline notification
WO2017219587A1 (en) Master-slave device switching method, slave device, management server, and storage medium
US8856311B2 (en) System coordinated WLAN scanning
CN108197958B (en) Method and device for counting off-line cattle and storage medium
WO2016177128A1 (en) Shutdown detection method, device and core network
CN107566215B (en) Wireless network cutout detection method, device, storage medium and mobile terminal
WO2015196698A1 (en) Paging method, system and device, and computer storage medium
EP3223493A1 (en) Point-to-point protocol (ppp)-based dial-on-demand method and device, and computer storage medium
WO2014180286A1 (en) Method, cse, and system for transmitting m2m application request
CN110809046B (en) Equipment network distribution method and device, electronic equipment and storage medium
EP3229446B1 (en) Application interaction method, device and terminal
WO2017219488A1 (en) Method and apparatus for application to receive information
JP6218937B2 (en) Service scheduling method, system, terminal, and storage medium based on clustering system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16789122

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16789122

Country of ref document: EP

Kind code of ref document: A1