WO2019237628A1 - 一种rcu掉线判断方法、系统、设备及计算机存储介质 - Google Patents

一种rcu掉线判断方法、系统、设备及计算机存储介质 Download PDF

Info

Publication number
WO2019237628A1
WO2019237628A1 PCT/CN2018/111605 CN2018111605W WO2019237628A1 WO 2019237628 A1 WO2019237628 A1 WO 2019237628A1 CN 2018111605 W CN2018111605 W CN 2018111605W WO 2019237628 A1 WO2019237628 A1 WO 2019237628A1
Authority
WO
WIPO (PCT)
Prior art keywords
control server
rcu
room control
heartbeat
sent
Prior art date
Application number
PCT/CN2018/111605
Other languages
English (en)
French (fr)
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 WO2019237628A1 publication Critical patent/WO2019237628A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Definitions

  • the present invention relates to the technical field of RCU, and in particular, to a method, a system, a device, and a computer storage medium for determining an RCU disconnection.
  • the RCU Room Control Unit
  • the RCU needs to communicate with the room control server.
  • the RCU may be disconnected during communication with the room control server, that is, the RCU is disconnected from the room control server. At this time, the RCU cannot continue to communicate with the room control server. There are methods to determine whether the RCU is offline.
  • An object of the present invention is to provide a method for determining an RCU disconnection, which can solve a technical problem of how to determine whether an RCU is disconnected to a certain extent.
  • the invention also provides an RCU disconnection determination system, device and computer-readable storage medium.
  • the present invention provides the following technical solutions:
  • An RCU disconnection determination method which is applied to RCU, includes:
  • the heartbeat response signal is a signal generated after the room control server receives the heartbeat signal.
  • the determining whether the heartbeat response signal sent by the room control server includes:
  • the determining whether the heartbeat response signal sent by the room control server includes:
  • the method further includes:
  • the establishing a connection with the room control server includes:
  • the method further includes:
  • An RCU disconnection determination system applied to the RCU includes:
  • a sending module for sending a heartbeat signal to the room control server
  • a judging module configured to judge whether a heartbeat response signal sent by the room control server is received, and if not, determine that the RCU is offline;
  • the heartbeat response signal is a signal generated after the room control server receives the heartbeat signal.
  • An RCU disconnection determination device includes:
  • a processor configured to implement the steps of the RCU offline determination method as described above when the computer program is executed.
  • a computer-readable storage medium stores a computer program in the computer-readable storage medium, and when the computer program is executed by a processor, implements the steps of the RCU offline determination method as described above.
  • An RCU disconnection determination method which is applied to a room control server, includes:
  • the RCU sends a heartbeat signal to the room control server, and determines whether a heartbeat response signal sent by the room control server is received to determine whether it is offline.
  • the RCU provides A method for judging whether the RCU is offline is provided, and a technical problem of how to judge whether the RCU is offline is solved.
  • the RCU disconnection determination system, device and computer-readable storage medium provided by the present invention also solve the corresponding technical problems.
  • FIG. 1 is a flowchart of a method for determining an RCU disconnection according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of an RCU disconnection determination system according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of an RCU disconnection determination device according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a method for determining an RCU disconnection according to an embodiment of the present invention.
  • An RCU disconnection determination method provided by an embodiment of the present invention, which is applied to an RCU, may include the following steps:
  • Step S101 Send a heartbeat signal to the room control server.
  • the heartbeat signal mentioned here is a method of sending a small data packet to the other party of the interconnect at regular intervals, and judging whether the communication link between the two parties of the interconnect has been disconnected through the reply of the other party.
  • the frequency at which the RCU sends the heartbeat signal to the room control server can be determined according to the actual situation.
  • the RCU (RoomControllerlUnit) mentioned here refers to the guest room intelligent controller, which is a unit that controls the hardware equipment of each guest room.
  • the room control server mentioned here refers to the server that manages each RCU.
  • Step S102 determine whether a heartbeat response signal sent by the room control server is received, and if not, perform step S103: determine that the RCU is offline;
  • the heartbeat response signal is a signal generated by the room control server after receiving the heartbeat signal.
  • the room control server When the room control server receives the heartbeat signal sent by the RCU, it will generate and send a heartbeat response signal to the RCU.
  • the RCU determines whether it is offline by determining whether it has received the heartbeat response signal sent by the room control server.
  • the specific content and form of the heartbeat signal and the heartbeat response signal can be determined according to actual needs.
  • the data capacity of the heartbeat signal and the heartbeat response signal can be set as small as possible to improve the communication between the RCU and the room control server. Efficiency, thereby improving the judgment efficiency of the RCU disconnection judgment method.
  • the RCU judges that it has received the heartbeat response signal sent by the room control server, it determines that it is not offline.
  • the RCU sends a heartbeat signal to the room control server, and determines whether a heartbeat response signal sent by the room control server is received to determine whether it is offline.
  • the RCU sends a heartbeat signal to the room control server, and determines whether a heartbeat response signal sent by the room control server is received to determine whether it is offline.
  • it provides A method for judging whether the RCU is offline is provided, and a technical problem of how to judge whether the RCU is offline is solved.
  • the RCU disconnection determination method provided by the embodiment of the present invention determines whether a heartbeat response signal sent by the room control server is received, which may specifically be :
  • the preset time period mentioned here can be determined according to the actual situation, such as 1 minute, 5 minutes, and so on.
  • the RCU disconnection determination method provided by the embodiment of the present invention determines whether a heartbeat response signal sent by the room control server is received, which may specifically be :
  • the preset threshold mentioned here can be determined according to actual needs, such as 2, 5 and so on. Take the preset threshold of 2 as an example. In actual application, it may happen that the RCU sends 3 consecutive heartbeat signals to the room control server, and the heartbeat response signal returned by the room control server is not received 3 times. The difference between the number of signals and the received heartbeat signal is 3, which is greater than the preset threshold 2. At this time, the RCU determines that it has not received a heartbeat response signal; in addition, it may happen that the RCU sends 4 consecutive Heartbeat signal, and during the first 3 transmissions, only one heartbeat response signal was received. At this time, the difference between the number of sent heartbeat signals and the received heartbeat signal is 3, which is greater than the preset threshold 2.
  • the RCU It is determined that it has not received a heartbeat response signal.
  • the difference between the number of sent heartbeat signals and the number of received heartbeat response signals is within a preset threshold, it may be that if the RCU receives a heartbeat response signal once, the number of accumulated heartbeat signals is cleared. And the number of heartbeat response signals, and restarting from the current moment to accumulate the number of heartbeat signals sent and the number of heartbeat response signals received.
  • the present invention is not specifically limited herein.
  • the method may further include:
  • the RCU can also re-establish a connection with the room control server.
  • establishing a connection with a room control server may include:
  • Receiving system configuration commands sent by the room control server, and the system configuration commands are commands sent by the room control server after receiving the registration command;
  • Receiving the synchronization time command sent by the room control server, and the synchronization time command is a command sent by the room control server after receiving the synchronization time command;
  • the method may further include:
  • the room control server After the RCU sends a registration command to the room control server, the room control server first determines whether it has the status data of the RCU after receiving the registration command. If so, it sends the RCU status data to the RCU. Accordingly, the RCU can First determine whether the RCU status data sent by the room control server is received. If it is, the RCU is not offline and the registration process is interrupted. If not, the RCU is offline and execute the steps of receiving the system configuration command sent by the room control server.
  • the RCU status data mentioned here includes, but is not limited to, hotel identification numbers, room numbers, and the like.
  • establishing a communication connection with a room control server may specifically be:
  • the RCU establishes a TCP connection to port 21221 of the room control server. After successful, it sends an RCU_REGISTER message to the room control server for registration. After the room control server receives the RCU registration, it sends a SYSTEM_CONFIG message to the RCU to configure system parameters. The RCU returns SYSTEM_CONFIG_ACK as a response. At this time, the RCU and the room control server were formally connected successfully. When the room control server receives the scene configuration information submitted by the RCU, it will send configuration and sequence related information to the RCU. First, the room control server sends SEQUENCE_ERASE to clear the scene sequence data in the RCU.
  • the RCU sends SEQUENCE_ERASE_ACK to the room control server as a wipe.
  • the room control server then sends SCENE_ADD, updates the scenes one by one, sends SEQUENCE_ADD, and updates the sequence one by one; after the RCU receives a SCENE_ADD message and the update is successful, it sends SCENE_ADD_ACK, and the room control server sends the next SCENE_ADD message.
  • the RCU will also send a SEQUENCE_ADD_ACK message, indicating that the SEQUENCE_ADD message was received and updated successfully, and the house control server sends the next SEQUENCE_ADD message.
  • the house control server sends SEQUENCE_END, and the RCU sends SEQUENCE_END_ACK.
  • the present invention also provides an RCU disconnection determination system, which has the corresponding effect of the RCU disconnection determination method provided by the embodiment of the present invention.
  • FIG. 2 is a schematic structural diagram of an RCU disconnection determination system according to an embodiment of the present invention.
  • An RCU disconnection determination system provided by an embodiment of the present invention, which is applied to an RCU, may include:
  • a sending module 101 configured to send a heartbeat signal to a room control server
  • the determining module 102 is configured to determine whether a heartbeat response signal sent by the room control server is received, and if not, determine that the RCU is offline;
  • the heartbeat response signal is a signal generated by the room control server after receiving the heartbeat signal.
  • the determination module may include:
  • the judging unit is configured to judge whether a heartbeat response signal is received within a preset time period after the heartbeat signal is sent to the room control server, and if not, it is determined that no response signal is received.
  • the determination module may include:
  • An accumulation unit for accumulating the number of heartbeat signals sent and the number of heartbeat response signals received
  • the comparison unit is configured to compare whether the difference between the number of sent heartbeat signals and the number of received heartbeat response signals is within a preset threshold; if not, it is determined that no heartbeat response signal is received.
  • the establishment module is used to establish a connection with the room control server after the determination module determines that the RCU is offline.
  • the establishment module may include:
  • a first sending unit configured to send a registration command to the room control server
  • a first receiving unit configured to receive a system configuration command sent by a room control server, where the system configuration command is a command sent after the room control server receives a registration command;
  • a second sending unit configured to send a configuration response signal to the room control server after completing system configuration
  • a second receiving unit configured to receive a synchronization time command sent by the room control server, where the synchronization time command is a command sent by the room control server after receiving the synchronization time command;
  • the third sending unit is configured to send a synchronization response signal to the room control server after completing time synchronization with the room control server to complete the connection with the room control server.
  • the establishment module may further include:
  • a judging unit configured to determine whether the RCU status data sent by the room control server is received after the first sending unit sends a registration command to the room control server, and before the first receiving unit receives the system configuration command sent by the room control server; In the registration process, if not, the first receiving unit is prompted to perform the steps of receiving the system configuration command sent by the room control server.
  • the establishment unit may include:
  • the establishment subunit is used to establish a TCP connection with the room control server.
  • the present invention also provides an RCU disconnection determination device and a computer-readable storage medium, both of which have the corresponding effects of the RCU disconnection determination method provided by the embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of an RCU disconnection determination device according to an embodiment of the present invention.
  • the memory 201 is configured to store a computer program
  • the processor 202 is configured to implement the steps of the RCU disconnection determination method described in any one of the foregoing embodiments when executing a computer program.
  • a computer-readable storage medium provided by an embodiment of the present invention.
  • a computer program is stored in the computer-readable storage medium.
  • the computer program is executed by a processor, the steps of the RCU disconnection determination method described in any of the foregoing embodiments are implemented.
  • An RCU disconnection determination method provided by an embodiment of the present invention, which is applied to a room control server, may include:
  • the room control server can also determine whether a heartbeat signal sent by the RCU is received within a preset time period. If it is, then it is determined that the heartbeat signal sent by the RCU is received. In specific application scenarios, the heartbeat signal sent by the RCU responds immediately to those who need an immediate response; for other data than the heartbeat signals that do not require an immediate response, a new thread can be used to respond.
  • the process of the house control server responding to data other than the heartbeat signal with the help of a new thread is as follows: to achieve high-performance multi-concurrent TCPSocket communication; AsynUserToken stores state data of data other than the heartbeat signal; copies AsynUserToken-related information to the new storage when analyzing the data In the object, a new thread is enabled to process data other than the heartbeat signal.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Debugging And Monitoring (AREA)
  • Selective Calling Equipment (AREA)

Abstract

一种RCU掉线判断方法、系统、设备及计算机存储介质,其中该方法应用于RCU中时包括:发送心跳信号至房控服务器;判断是否接收到房控服务器发送的心跳应答信号,若否,则确定RCU掉线;其中,心跳应答信号为房控服务器接收到心跳信号后生成的信号。本发明公开的一种RCU掉线判断方法中,RCU向房控服务器发送心跳信号,并判断是否接收到房控服务器发送的心跳应答信号来判断自身是否掉线,与现有技术相比,提供了一种判断RCU是否掉线的方法,解决了如何判断RCU是否掉线的技术问题。本发明公开的一种RCU掉线判断系统、设备及计算机可读存储介质也解决了相应技术问题。

Description

一种RCU掉线判断方法、系统、设备及计算机存储介质
本申请要求于2018年06月11日提交中国专利局、申请号为201810595431.5、发明名称为“一种RCU掉线判断方法、系统、设备及计算机存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及RCU技术领域,特别涉及一种RCU掉线判断方法、系统、设备及计算机存储介质。
背景技术
在酒店服务业中,通常采用RCU(Room Control Unit,客房控制系统)来对酒店房间内的相应设备进行管理,在此过程中,RCU需要与房控服务器间进行通信。
然而,RCU在与房控服务器进行通信的过程中可能发生掉线,也即RCU与房控服务器断开通信连接,此时,RCU不能与房控服务器继续进行通信,而现有技术中并未有判断RCU是否掉线的方法。
综上所述,如何判断RCU是否掉线是目前本领域技术人员亟待解决的问题。
发明内容
本发明的目的是提供一种RCU掉线判断方法,其能在一定程度上解决如何判断RCU是否掉线的技术问题。本发明还提供了一种RCU掉线判断系统、设备及计算机可读存储介质。
为了实现上述目的,本发明提供如下技术方案:
一种RCU掉线判断方法,应用于RCU中,包括:
发送心跳信号至房控服务器;
判断是否接收到所述房控服务器发送的心跳应答信号,若否,则确定所述RCU掉线;
其中,所述心跳应答信号为所述房控服务器接收到所述心跳信号后生成的信号。
优选的,所述判断是否接收到所述房控服务器发送的心跳应答信号,包括:
判断在发送所述心跳信号至所述房控服务器后的预设时间段内,是否接收到所述心跳应答信号,若否,则判断出未接收到所述应答信号。
优选的,所述判断是否接收到所述房控服务器发送的心跳应答信号,包括:
累积发送的所述心跳信号的数量及接收的所述心跳应答信号的数量;
比较发送的所述心跳信号的数量与接收的所述心跳应答信号的数量的差值是否在预设阈值内,若否,则判断出未接收到所述心跳应答信号。
优选的,所述确定所述RCU掉线之后,还包括:
建立与所述房控服务器间的连接。
优选的,所述建立与所述房控服务器间的连接,包括:
建立与所述房控服务器间的通信连接;
发送注册命令至所述房控服务器;
接收所述房控服务器发送的系统配置命令,所述系统配置命令为所述房控服务器接收到所述注册命令后发送的命令;
完成系统配置后,发送配置应答信号至所述房控服务器;
接收所述房控服务器发送的同步时间命令,所述同步时间命令为所述房控服务器接收到所述同步时间命令后发送的命令;
完成与所述房控服务器间的时间同步后,发送同步应答信号至所述房控服务器,以完成与所述房控服务器间的连接。
优选的,所述发送注册命令至所述房控服务器之后,所述接收所述房控服务器发送的系统配置命令之前,还包括:
判断是否接收到所述房控服务器发送的RCU状态数据,若是,则中断注册流程,若否,则执行所述接收所述房控服务器发送的系统配置命令的步骤。
一种RCU掉线判断系统,应用于RCU中,包括:
发送模块,用于发送心跳信号至房控服务器;
判断模块,用于判断是否接收到所述房控服务器发送的心跳应答信号,若否,则确定所述RCU掉线;
其中,所述心跳应答信号为所述房控服务器接收到所述心跳信号后生成的信号。
一种RCU掉线判断设备,包括:
存储器,用于存储计算机程序;
处理器,用于执行所述计算机程序时实现如上任一所述的RCU掉线判断方法的步骤。
一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,所述计算机程序被处理器执行时实现如上任一所述的RCU掉线判断方法的步骤。
一种RCU掉线判断方法,应用于房控服务器中,包括:
判断是否接收到所述RCU发送的心跳信号,若是,则生成并发送心跳应答信号至所述RCU,若否,则判断出所述RCU掉线。
本发明提供的一种RCU掉线判断方法中,RCU向房控服务器发送心跳信号,并判断是否接收到房控服务器发送的心跳应答信号来判断自身是否掉线,与现有技术相比,提供了一种判断RCU是否掉线的方法,解决了如何判断RCU是否掉线的技术问题。本发明提供的一种RCU掉线判断系统、设备及计算机可读存储介质也解决了相应技术问题。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。
图1为本发明实施例提供的一种RCU掉线判断方法的流程图;
图2为本发明实施例提供的一种RCU掉线判断系统的结构示意图;
图3为本发明实施例提供的一种RCU掉线判断设备的结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
请参阅图1,图1为本发明实施例提供的一种RCU掉线判断方法的流程图。
本发明实施例提供的一种RCU掉线判断方法,应用于RCU中,可以包括如下步骤:
步骤S101:发送心跳信号至房控服务器。
这里所说的心跳信号是每隔一段时间向互联的另一方发送一个很小的数据包,通过对方回复情况判断互联的双方之间的通讯链路是否已经断开的方法。相应的,RCU向房控服务器发送心跳信号的频率可以根据实际情况确定。这里所说的RCU(RoomControllerlUnit)指的是客房智能控制器,是控制每个客房硬件设备的单元,这里所说的房控服务器指的是管理各个RCU的服务器。
步骤S102:判断是否接收到房控服务器发送的心跳应答信号,若否,则执行步骤S103:确定RCU掉线;
其中,心跳应答信号为房控服务器接收到心跳信号后生成的信号。
当房控服务器接收到RCU发送的心跳信号后,会生成并发送心跳应答信号至RCU,RCU通过判断是否接收到房控服务器发送的心跳应答信号来判断自身是否掉线。这里所说的心跳信号及心跳应答信号的具体内容、形式等可以根据实际需要确定,此外,心跳信号、心跳应答信号的数据容量可以设置的尽可能小,以提高RCU和房控服务器间的通信效率,进而提高RCU掉线判断方法的判断效率。此外,在RCU判断出接收到房控服务器发送的心跳应答信号后,确定自身未掉线。
本发明提供的一种RCU掉线判断方法中,RCU向房控服务器发送心跳 信号,并判断是否接收到房控服务器发送的心跳应答信号来判断自身是否掉线,与现有技术相比,提供了一种判断RCU是否掉线的方法,解决了如何判断RCU是否掉线的技术问题。
为了提高本发明实施例提供的一种RCU掉线判断方法的容错率,本发明实施例提供的一种RCU掉线判断方法中,判断是否接收到房控服务器发送的心跳应答信号,具体可以为:
判断在发送心跳信号至房控服务器后的预设时间段内,是否接收到心跳应答信号,若否,则判断出未接收到应答信号。
这里所说的预设时间段可以根据实际情况确定,比如1分钟、5分钟等。
为了提高本发明实施例提供的一种RCU掉线判断方法的容错率,本发明实施例提供的一种RCU掉线判断方法中,判断是否接收到房控服务器发送的心跳应答信号,具体可以为:
累积发送的心跳信号的数量及接收的心跳应答信号的数量;
比较发送的心跳信号的数量与接收的心跳应答信号的数量的差值是否在预设阈值内,若否,则判断出未接收到心跳应答信号。
这里所说的预设阈值可以根据实际需要确定,比如2、5等。以预设阈值为2举例说明,实际应用中,可能出现RCU向房控服务器发送了3个连续的心跳信号,而3次均未接收到房控服务器返回的心跳应答信号,这时发送的心跳信号的数量与接收的心跳信号的差值为3,大于预设阈值2,此时,RCU判断出自身未接收到心跳应答信号;此外,还可能出现RCU向房控服务器发送了4个连续的心跳信号,而在前3次发送过程中,仅仅接收到1次心跳应答信号,这时发送的心跳信号的数量与接收的心跳信号的差值为3,大于预设阈值2,此时,RCU判断出自身未接收到心跳应答信号。具体应用场景中,在发送的心跳信号的数量与接收的心跳应答信号的数量的差值在预设阈值内时,可以是若RCU接收到一次心跳应答信号,则清除已累积的心跳信号的数量及心跳应答信号的数量,并从当前时刻重新开始累积发送的心跳信号的数量与接收的心跳应答信号的数量。当然还有其他实施方式,本发明在这里不做具体限定。
本发明实施例提供的一种RCU掉线判断方法中,确定RCU掉线之后, 还可以包括:
建立与房控服务器间的连接。
实际应用中,为了保证RCU与房控服务器间的正常通信,RCU在确定自身掉线之后,还可以重新建立与房控服务器间的连接。
本发明实施例提供的一种RCU掉线判断方法中,建立与房控服务器间的连接,可以包括:
建立与房控服务器间的通信连接;
发送注册命令至房控服务器;
接收房控服务器发送的系统配置命令,系统配置命令为房控服务器接收到注册命令后发送的命令;
完成系统配置后,发送配置应答信号至房控服务器;
接收房控服务器发送的同步时间命令,同步时间命令为房控服务器接收到同步时间命令后发送的命令;
完成与房控服务器间的时间同步后,发送同步应答信号至房控服务器,以完成与房控服务器间的连接。
本发明实施例提供的一种RCU掉线判断方法中,发送注册命令至房控服务器之后,接收房控服务器发送的系统配置命令之前,还可以包括:
判断是否接收到房控服务器发送的RCU状态数据,若是,则中断注册流程,若否,则执行接收房控服务器发送的系统配置命令的步骤。
实际应用中可能存在服务器忙于处理其他通信数据而不能及时回复心跳应答信号,导致RCU误判自身掉线的情况,为了防止RCU误判自身掉线,RCU在重新建立与房控服务器间的连接时,RCU在发送注册命令至房控服务器之后,房控服务器在接收到注册命令后,先判断自身是否有该RCU的状态数据,若有,则发送RCU状态数据至该RCU,相应的,RCU可以先判断是否接收到房控服务器发送的RCU状态数据,若是,则该RCU未掉线,中断注册流程,若否,则该RCU掉线,执行接收房控服务器发送的系统配置命令的步骤。这里所说的RCU状态数据包括但不限于酒店标识号、房间号等。
本发明实施例提供的一种RCU掉线判断方法中,建立与房控服务器间 的通信连接,具体可以为:
建立与房控服务器间的TCP连接。
下面以实际应用中具体实施方式对本实施例进行说明。RCU向房控服务器的21221端口建立TCP连接,成功后,向房控服务器发送RCU_REGISTER消息,进行注册;房控服务器接收RCU的注册后,向RCU发送SYSTEM_CONFIG消息,配置系统参数,RCU返回SYSTEM_CONFIG_ACK作为应答,此时,RCU与房控服务器正式连接成功。当房控服务器接收到RCU提交的场景配置信息后,就会向RCU发送配置和序列相关信息,首先,房控服务器发送SEQUENCE_ERASE,清除RCU中的场景序列数据,RCU发送SEQUENCE_ERASE_ACK给房控服务器作为擦除成功应答,房控服务器然后发送SCENE_ADD,逐条更新场景,发送SEQUENCE_ADD,逐条更新序列;RCU每收到一条SCENE_ADD消息并更新成功后,会发送SCENE_ADD_ACK,房控服务器才会发送下一条SCENE_ADD消息,同样,RCU也会发送SEQUENCE_ADD_ACK消息,表示收到SEQUENCE_ADD消息并更新成功,并使房控服务器发送下一条SEQUENCE_ADD消息,场景序列发送结束时,房控服务器发送SEQUENCE_END,RCU发送SEQUENCE_END_ACK。
本发明还提供了一种RCU掉线判断系统,其具有本发明实施例提供的一种RCU掉线判断方法具有的对应效果。请参阅图2,图2为本发明实施例提供的一种RCU掉线判断系统的结构示意图。
本发明实施例提供的一种RCU掉线判断系统,应用于RCU中,可以包括:
发送模块101,用于发送心跳信号至房控服务器;
判断模块102,用于判断是否接收到房控服务器发送的心跳应答信号,若否,则确定RCU掉线;
其中,心跳应答信号为房控服务器接收到心跳信号后生成的信号。
本发明实施例提供的一种RCU掉线判断系统中,判断模块可以包括:
判断单元,用于判断在发送心跳信号至房控服务器后的预设时间段内, 是否接收到心跳应答信号,若否,则判断出未接收到应答信号。
本发明实施例提供的一种RCU掉线判断系统中,判断模块可以包括:
累积单元,用于累积发送的心跳信号的数量及接收的心跳应答信号的数量;
比较单元,用于比较发送的心跳信号的数量与接收的心跳应答信号的数量的差值是否在预设阈值内,若否,则判断出未接收到心跳应答信号。
本发明实施例提供的一种RCU掉线判断系统中,还可以包括:
建立模块,用于在判断模块确定RCU掉线之后,建立与房控服务器间的连接。
本发明实施例提供的一种RCU掉线判断系统中,建立模块可以包括:
建立单元,用于建立与房控服务器间的通信连接;
第一发送单元,用于发送注册命令至房控服务器;
第一接收单元,用于接收房控服务器发送的系统配置命令,系统配置命令为房控服务器接收到注册命令后发送的命令;
第二发送单元,用于完成系统配置后,发送配置应答信号至房控服务器;
第二接收单元,用于接收房控服务器发送的同步时间命令,同步时间命令为房控服务器接收到同步时间命令后发送的命令;
第三发送单元,用于完成与房控服务器间的时间同步后,发送同步应答信号至房控服务器,以完成与房控服务器间的连接。
本发明实施例提供的一种RCU掉线判断系统中,建立模块还可以包括:
判断单元,用于第一发送单元发送注册命令至房控服务器之后,第一接收单元接收房控服务器发送的系统配置命令之前,判断是否接收到房控服务器发送的RCU状态数据,若是,则中断注册流程,若否,则提示第一接收单元执行接收房控服务器发送的系统配置命令的步骤。
本发明实施例提供的一种RCU掉线判断系统中,建立单元可以包括:
建立子单元,用于建立与房控服务器间的TCP连接。
本发明还提供了一种RCU掉线判断设备及计算机可读存储介质,其均 具有本发明实施例提供的一种RCU掉线判断方法具有的对应效果。请参阅图3,图3为本发明实施例提供的一种RCU掉线判断设备的结构示意图。
本发明实施例提供的一种RCU掉线判断设备,可以包括:
存储器201,用于存储计算机程序;
处理器202,用于执行计算机程序时实现如上任一实施例所描述的RCU掉线判断方法的步骤。
本发明实施例提供的一种计算机可读存储介质,计算机可读存储介质中存储有计算机程序,计算机程序被处理器执行时实现如上任一实施例所描述的RCU掉线判断方法的步骤。
本发明实施例提供的一种RCU掉线判断方法,应用于房控服务器中,可以包括:
判断是否接收到RCU发送的心跳信号,若是,则生成并发送心跳应答信号至RCU,若否,则判断出RCU掉线。
此外,房控服务器还可以判断预设时间段内是否接收到RCU发送的心跳信号,若是,则判断出接收到RCU发送的心跳信号,若否,则判断出未接收到RCU发送的心跳信号。具体应用场景中,对于RCU发送的心跳信号,对于需要立即回复的,立即做出应答;对于那些不需要立即应答的心态信号以外的其他数据,可以借助新线程进行应答。
房控服务器借助新线程对心跳信号以外的其他数据进行应答的过程如下:实现高性能多并发TCPSocket通信;AsynUserToken存储心跳信号以外的其他数据的状态数据;分析数据时复制AsynUserToken相关信息至新的存储对象中,启用新线程对心跳信号以外的其他数据进行处理。
本发明实施例提供的一种RCU掉线判断系统、设备及计算机可读存储介质中相关部分的说明请参见本发明实施例提供的一种RCU掉线判断方法中对应部分的详细说明,在此不再赘述。另外,本发明实施例提供的上述技术方案中与现有技术中对应技术方案实现原理一致的部分并未详细说明,以免过多赘述。
对所公开的实施例的上述说明,使本领域技术人员能够实现或使用本 发明。对这些实施例的多种修改对本领域技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。

Claims (10)

  1. 一种RCU掉线判断方法,其特征在于,应用于RCU中,包括:
    发送心跳信号至房控服务器;
    判断是否接收到所述房控服务器发送的心跳应答信号,若否,则确定所述RCU掉线;
    其中,所述心跳应答信号为所述房控服务器接收到所述心跳信号后生成的信号。
  2. 根据权利要求1所述的方法,其特征在于,所述判断是否接收到所述房控服务器发送的心跳应答信号,包括:
    判断在发送所述心跳信号至所述房控服务器后的预设时间段内,是否接收到所述心跳应答信号,若否,则判断出未接收到所述应答信号。
  3. 根据权利要求1所述的方法,其特征在于,所述判断是否接收到所述房控服务器发送的心跳应答信号,包括:
    累积发送的所述心跳信号的数量及接收的所述心跳应答信号的数量;
    比较发送的所述心跳信号的数量与接收的所述心跳应答信号的数量的差值是否在预设阈值内,若否,则判断出未接收到所述心跳应答信号。
  4. 根据权利要求1至3任一项所述的方法,其特征在于,所述确定所述RCU掉线之后,还包括:
    建立与所述房控服务器间的连接。
  5. 根据权利要求4所述的方法,其特征在于,所述建立与所述房控服务器间的连接,包括:
    建立与所述房控服务器间的通信连接;
    发送注册命令至所述房控服务器;
    接收所述房控服务器发送的系统配置命令,所述系统配置命令为所述房控服务器接收到所述注册命令后发送的命令;
    完成系统配置后,发送配置应答信号至所述房控服务器;
    接收所述房控服务器发送的同步时间命令,所述同步时间命令为所述房控服务器接收到所述同步时间命令后发送的命令;
    完成与所述房控服务器间的时间同步后,发送同步应答信号至所述房 控服务器,以完成与所述房控服务器间的连接。
  6. 根据权利要求5所述的方法,其特征在于,所述发送注册命令至所述房控服务器之后,所述接收所述房控服务器发送的系统配置命令之前,还包括:
    判断是否接收到所述房控服务器发送的RCU状态数据,若是,则中断注册流程,若否,则执行所述接收所述房控服务器发送的系统配置命令的步骤。
  7. 一种RCU掉线判断系统,其特征在于,应用于RCU中,包括:
    发送模块,用于发送心跳信号至房控服务器;
    判断模块,用于判断是否接收到所述房控服务器发送的心跳应答信号,若否,则确定所述RCU掉线;
    其中,所述心跳应答信号为所述房控服务器接收到所述心跳信号后生成的信号。
  8. 一种RCU掉线判断设备,其特征在于,包括:
    存储器,用于存储计算机程序;
    处理器,用于执行所述计算机程序时实现如权利要求1至6任一项所述的RCU掉线判断方法的步骤。
  9. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至6任一项所述的RCU掉线判断方法的步骤。
  10. 一种RCU掉线判断方法,其特征在于,应用于房控服务器中,包括:
    判断是否接收到所述RCU发送的心跳信号,若是,则生成并发送心跳应答信号至所述RCU,若否,则判断出所述RCU掉线。
PCT/CN2018/111605 2018-06-11 2018-10-24 一种rcu掉线判断方法、系统、设备及计算机存储介质 WO2019237628A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810595431.5A CN108833206A (zh) 2018-06-11 2018-06-11 一种rcu掉线判断方法、系统、设备及计算机存储介质
CN201810595431.5 2018-06-11

Publications (1)

Publication Number Publication Date
WO2019237628A1 true WO2019237628A1 (zh) 2019-12-19

Family

ID=64145070

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/111605 WO2019237628A1 (zh) 2018-06-11 2018-10-24 一种rcu掉线判断方法、系统、设备及计算机存储介质

Country Status (2)

Country Link
CN (1) CN108833206A (zh)
WO (1) WO2019237628A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115278213A (zh) * 2022-07-11 2022-11-01 海南乾唐视联信息技术有限公司 掉线检测方法、服务器、电子设备及存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030051188A1 (en) * 2001-09-10 2003-03-13 Narendra Patil Automated software testing management system
CN102014416A (zh) * 2010-12-03 2011-04-13 中兴通讯股份有限公司 一种对连接进行双向检测的方法及系统
CN107147546A (zh) * 2017-05-31 2017-09-08 河南康联安防科技股份有限公司 双网心跳监测方法及系统

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104202429A (zh) * 2014-09-25 2014-12-10 携程计算机技术(上海)有限公司 推送消息方法及系统
US10597055B2 (en) * 2015-11-02 2020-03-24 Methode Electronics, Inc. Locomotive control networks
CN106960511A (zh) * 2017-03-29 2017-07-18 无锡动力立方科技有限公司 一种物联网智能售货机及其售货系统

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030051188A1 (en) * 2001-09-10 2003-03-13 Narendra Patil Automated software testing management system
CN102014416A (zh) * 2010-12-03 2011-04-13 中兴通讯股份有限公司 一种对连接进行双向检测的方法及系统
CN107147546A (zh) * 2017-05-31 2017-09-08 河南康联安防科技股份有限公司 双网心跳监测方法及系统

Also Published As

Publication number Publication date
CN108833206A (zh) 2018-11-16

Similar Documents

Publication Publication Date Title
CN106330475B (zh) 一种通信系统中管理主备节点的方法和装置及高可用集群
CN107645517B (zh) 数据推送方法及装置
WO2020103796A1 (zh) 一种实现容灾的方法及相关设备
US9392034B2 (en) Systems and methods of distributed silo signaling
CN109391691A (zh) 一种单节点故障下nas服务的恢复方法及相关装置
CN111010319B (zh) 基于vsf的链路检测方法及装置
WO2019237628A1 (zh) 一种rcu掉线判断方法、系统、设备及计算机存储介质
US10680972B2 (en) State report control method and apparatus
JP5472154B2 (ja) 通信端末、通信方法、及び通信プログラム
CN113132758B (zh) 内容分发网络的控制方法、装置及计算机程序产品
CN107087021B (zh) 主从服务器确定方法及装置
CN115086617A (zh) 视频流存储方法、装置、系统、设备及介质
CN114422428A (zh) 服务节点的重启方法、装置、电子设备及存储介质
CN108600302B (zh) 物联设备的控制方法、装置和可读存储介质及计算机设备
US9298370B2 (en) Methods and structure for selective propagation of SAS broadcast (change) primitives
CN110890989A (zh) 一种通道连接方法及装置
CN111258739A (zh) 一种服务器进程更新方法、装置、服务器和介质
US20180212789A1 (en) Communication Method and Storage Medium Storing Communication Program
CN105337996B (zh) 一种数据处理方法及系统
US9806939B2 (en) Method and apparatus for linear protection switching
CN112738187B (zh) 一种设备的安全连接方法、装置、电子设备及存储介质
CN109921933B (zh) 一种信息处理方法及网络安全设备
WO2016180227A1 (zh) 一种信用控制会话的恢复方法、装置和系统
CN110011914B (zh) 管理报文的转发方法及装置
CN111600830B (zh) 一种sip容灾方法、装置、设备及可读存储介质

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: 18922319

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: 18922319

Country of ref document: EP

Kind code of ref document: A1