Method, system and storage medium for detecting elevator communication protocol

文档序号:1637142 发布日期:2020-01-17 浏览:17次 中文

阅读说明:本技术 电梯通信协议的检测方法、系统和存储介质 (Method, system and storage medium for detecting elevator communication protocol ) 是由 林松益 王蕊 于 2019-09-19 设计创作,主要内容包括:本发明公开了一种电梯通信协议的检测方法、系统和存储介质,所述方法包括以下步骤:读取电梯控制板的控制指令;检测指定的电梯动作;根据检测到指定的电梯动作前的设定时间内所读取到的控制指令,预测指定的电梯动作对应的控制指令,得到多个指定的电梯动作的控制指令的预测结果;根据多个指定的电梯动作的控制指令的预测结果,在多个通信协议中匹配出目标通信协议。本发明根据检测到的指定的电梯动作来预测对应的控制指令,从而匹配出通信协议,本发明可以在电梯运行的过程中,自动识别出电梯控制板的通信协议,从而大大减少人工干预的情况。本发明可以广泛应用于电梯领域。(The invention discloses a detection method, a system and a storage medium of an elevator communication protocol, wherein the method comprises the following steps: reading a control instruction of an elevator control panel; detecting a designated elevator action; predicting a control command corresponding to the designated elevator action according to the control command read in the set time before the designated elevator action is detected, and obtaining prediction results of the control commands of the plurality of designated elevator actions; a target communication protocol is matched among a plurality of communication protocols according to the prediction results of the control commands of the designated elevator actions. The invention predicts the corresponding control command according to the detected appointed elevator action so as to match the communication protocol. The invention can be widely applied to the field of elevators.)

1. A detection method of an elevator communication protocol is characterized in that: the method comprises the following steps:

reading a control instruction of an elevator control panel;

detecting a designated elevator action;

predicting a control command corresponding to the designated elevator action according to the control command read in the set time before the designated elevator action is detected, and obtaining prediction results of the control commands of the plurality of designated elevator actions;

a target communication protocol is matched among a plurality of communication protocols according to the prediction results of the control commands of the designated elevator actions.

2. The method for detecting the communication protocol of the elevator according to claim 1, wherein: further comprising the steps of:

and when a plurality of target communication protocols are obtained through matching, reading a plurality of control commands of the elevator control panel, and eliminating the target communication protocol which cannot be correctly analyzed for at least one of the plurality of read control commands.

3. The method for detecting the communication protocol of the elevator according to claim 1, wherein: further comprising the steps of:

when a plurality of target communication protocols are obtained through matching, a plurality of control commands of the elevator control panel are continuously read, the plurality of control commands which are continuously read are analyzed through the plurality of target communication protocols, an elevator action sequence which is analyzed according to each target communication protocol is obtained, and the target communication protocols of which the elevator action sequences which are analyzed according to the target communication protocols meet set conditions are eliminated.

4. The method for detecting the communication protocol of the elevator according to claim 1, wherein: the method for predicting the control command corresponding to the appointed elevator action according to the control command read in the set time before the appointed elevator action is detected specifically comprises the following steps:

counting the times of the occurrence of a plurality of control commands read within a set time before the same specified elevator action is detected for a plurality of times;

the control command with the largest occurrence frequency is used as the prediction result of the designated elevator action.

5. The method for detecting the communication protocol of the elevator according to any one of claims 1-4, wherein: further comprising the steps of:

and generating an alarm when the number of the read control commands is larger than a first set threshold value and the unique target communication protocol is not matched.

6. The method for detecting the communication protocol of the elevator according to any one of claims 1-4, wherein: further comprising the steps of:

acquiring a specified communication protocol, and configuring the specified communication protocol as a target communication protocol.

7. The method for detecting the communication protocol of the elevator according to any one of claims 1-4, wherein: before reading the control command of the elevator control panel, the method also comprises the following steps:

and detecting the baud rate of the elevator control board, and configuring and reading the baud rate when the control instruction is read according to the baud rate obtained by detection.

8. A detection system for an elevator communication protocol, characterized by: the method comprises the following steps:

the reading unit is used for reading a control command of the elevator control panel;

the detection unit is used for detecting the appointed elevator action;

the prediction unit is used for predicting the control command corresponding to the appointed elevator action according to the control command read in the set time before the appointed elevator action is detected, and obtaining the prediction results of the control commands of the appointed elevator actions;

and a matching unit for matching the target communication protocol in the plurality of communication protocols according to the prediction results of the control commands of the plurality of designated elevator actions.

9. A detection system for an elevator communication protocol, characterized by: the method comprises the following steps:

a memory for storing a program;

a processor for loading the program to perform the method of detecting an elevator communication protocol of any of claims 1-7.

10. A storage medium storing a program, characterized in that: the program, when executed by a processor, implements the method of detecting an elevator communication protocol of any of claims 1-7.

Technical Field

The invention relates to the field of elevators, in particular to a detection method, a detection system and a storage medium of an elevator communication protocol.

Background

As building floors increase, elevators become almost a standard fit for each building. However, there are now situations in the elevator industry where each individual has its own standard. The communication protocols adopted by control boards produced by different manufacturers are different. In addition, elevator manufacturers generally have the situation of control panel outsourcing design, so that the communication protocols of elevators of different models produced by the same elevator factory are possibly different. Among them, the mainstream communication protocols in the industry are as many as several tens of types.

Since most countries and regions do not require elevator networking, the operating data of the elevators can be read only by the elevator manufacturers themselves. Even if some newly-built elevators have the function of the internet of things, the elevators are only connected with the internet inside a manufacturer, and other people are difficult to acquire the running data of the elevators.

The improvement of data networking is imminent for the vast number of elevators in existence. Given that elevators belong to special equipment, it is generally not possible to modify the elevator to affect its safe operation, e.g. to rewrite the procedures of the elevator, which is not allowed. Fortunately, the elevator control panel is generally provided with a data outward transmission interface which is convenient for maintenance personnel to debug, and the control instruction of the elevator can be read through the data outward transmission interface. Thus, the existing elevator can be modified and a data acquisition device can be installed to determine the operating state of the elevator.

However, according to the above-described situation, even if the data acquisition device can read the commands, the data acquisition device still cannot correctly resolve the commands in the face of massive communication protocols.

Disclosure of Invention

To solve at least one of the above-mentioned technical problems, the present invention is directed to: a method, system and storage medium for detecting an elevator communication protocol are provided to automatically identify the communication protocol used by an elevator operating panel.

A first aspect of an embodiment of the present invention provides:

a detection method of an elevator communication protocol comprises the following steps:

reading a control instruction of an elevator control panel;

detecting a designated elevator action;

predicting a control command corresponding to the designated elevator action according to the control command read in the set time before the designated elevator action is detected, and obtaining prediction results of the control commands of the plurality of designated elevator actions;

a target communication protocol is matched among a plurality of communication protocols according to the prediction results of the control commands of the designated elevator actions.

Further, the method also comprises the following steps:

and when a plurality of target communication protocols are obtained through matching, reading a plurality of control commands of the elevator control panel, and eliminating the target communication protocol which cannot be correctly analyzed for at least one of the plurality of read control commands.

Further, the method also comprises the following steps:

when a plurality of target communication protocols are obtained through matching, continuously reading a plurality of control instructions of the elevator control panel, and analyzing the continuously read control instructions by using the target communication protocols to obtain an elevator action sequence analyzed according to each target communication protocol; and eliminating the target communication protocol of which the elevator action sequence obtained by analysis meets the set conditions.

Further, the predicting of the control instruction corresponding to the designated elevator action according to the control instruction read within the set time before the designated elevator action is detected specifically includes:

counting the times of the occurrence of a plurality of control commands read within a set time before the same specified elevator action is detected for a plurality of times;

the control command with the largest occurrence frequency is used as the prediction result of the designated elevator action.

Further, the method also comprises the following steps:

and generating an alarm when the number of the read control commands is larger than a first set threshold value and the unique target communication protocol is not matched.

Further, the method also comprises the following steps:

acquiring a specified communication protocol, and configuring the specified communication protocol as a target communication protocol.

Further, before reading the control command of the elevator control panel, the method also comprises the following steps:

and detecting the baud rate of the elevator control board, and configuring and reading the baud rate when the control instruction is read according to the baud rate obtained by detection.

A second aspect of an embodiment of the present invention provides:

a detection system for an elevator communication protocol, comprising:

the reading unit is used for reading a control command of the elevator control panel;

the detection unit is used for detecting the appointed elevator action;

the prediction unit is used for predicting the control command corresponding to the appointed elevator action according to the control command read in the set time before the appointed elevator action is detected, and obtaining the prediction results of the control commands of the appointed elevator actions;

and a matching unit for matching the target communication protocol in the plurality of communication protocols according to the prediction results of the control commands of the plurality of designated elevator actions.

A third aspect of embodiments of the present invention provides:

a detection system for an elevator communication protocol, comprising:

a memory for storing a program;

and the processor is used for loading the program to execute the detection method of the elevator communication protocol.

A fourth aspect of an embodiment of the present invention provides:

a storage medium storing a program which, when executed by a processor, implements the method of detecting an elevator communication protocol.

The embodiment of the invention has the beneficial effects that: the embodiment of the invention predicts the control instruction corresponding to the appointed elevator action by detecting the appointed elevator action and then according to the control instruction of the elevator control panel read within a period of time before the appointed elevator action is detected; the scheme is suitable for a data acquisition device after installation, and can automatically identify the communication protocol of the elevator control panel in the elevator running process, so that the condition of manual intervention is greatly reduced.

Drawings

FIG. 1 is a block diagram of a data acquisition device in accordance with one embodiment of the present invention;

fig. 2 is a flow chart of a method for detecting an elevator communication protocol according to an embodiment of the present invention.

Detailed Description

The invention is further described with reference to the drawings and the specific examples.

The embodiment discloses a detection method of an elevator communication protocol, which is applied to a data acquisition device mounted on an elevator, wherein the data acquisition device is generally provided with sensors such as an acceleration gyroscope, an image sensor, an infrared sensor and a current sensor, and the data acquisition device can acquire partial running states of an elevator car through the sensors. For example, elevator actions such as acceleration, deceleration, stopping, starting, and opening and closing of doors are detected. Meanwhile, the data acquisition device monitors the control instruction of the elevator control panel through the communication interface matched with the data outward transmission interface of the elevator control panel. Because the data outward transmission interface of the elevator control panel is unidirectional, the control instruction of the elevator control panel is read through the interface, and no influence is caused on the safe operation of the elevator.

As shown in fig. 1, the data acquisition device in the present embodiment may be implemented by the following structure.

The acceleration gyroscope 110 is used for acquiring motion data of the elevator car.

A current sensor 120 for acquiring current data of the supply line of the drive motor of the elevator car door.

A processor 130 for detecting the motion state of the elevator car, including acceleration, deceleration, start and stop actions, according to the data of the acceleration gyroscope 110; meanwhile, according to the data of the current sensor 120, the working state of the motor can be detected, thereby sensing the door opening and closing action. Two different actions of closing and opening the door can be determined by matching the data of the acceleration gyroscope 110 or according to the direction of the current. For example, after the elevator stops, the drive motor starts, which is necessarily the action of opening the door. After the elevator is opened, the driving motor is started, which is inevitably the action of closing the door. In the meantime, the processor 130 is also used to implement the method of the present embodiment.

A communication module 140 for transmitting data or alarm signals according to the control instructions of the processor 130, and the like, and also for receiving data.

And the power supply module 150 is used for supplying power to each component of the data acquisition device.

And a memory 160 for storing programs and data.

Referring to fig. 2, the method of the present embodiment includes steps S210 to S240:

before the steps of the present embodiment are performed, the present embodiment stores a plurality of known communication protocols in the memory of the data acquisition device, or stores the known communication protocols in the server. These known communication protocols are retrieved from memory or a server upon initialization of the data acquisition device. The data format of these communication protocols may be: "action name + control instruction". And the control instructions are typically 16 bits.

And S210, reading a control command of the elevator control panel.

In the step, the data acquisition device monitors the control instruction of the elevator control panel through the data outward transmission interface of the elevator control panel. In the step, each control instruction of the elevator control panel is read, a time mark is marked on the read control instruction, and the control instruction in a period of time is stored.

And S220, detecting the designated elevator action.

In this step, the designated elevator motion includes a plurality of acceleration, deceleration, stop, start, door open, door close, and the like. The detection of these actions is done by the data acquisition device.

The purpose of this step is to determine some actions of the elevator by its own sensor before the control command of the elevator control panel cannot be analyzed, and to conjecture the communication protocol of the elevator control panel in reverse in conjunction with the read control command.

And S230, predicting the control command corresponding to the designated elevator action according to the control command read in the set time before the designated elevator action is detected, and obtaining the prediction results of the control commands of the plurality of designated elevator actions.

In this step, a certain delay occurs when the data acquisition device detects the operation of the designated elevator, and the magnitude of this delay has a certain uncertainty. Therefore, it is necessary to analyze the control command read within a set time before the elevator operation is detected. Meanwhile, the set time is generally several times the read time of the control command. Of course, the detection delay is also taken into account sufficiently that the set time is placed before an estimated detection delay. Assuming that the predicted detection delay is 0.5 seconds and the read time of the control command is 0.1 seconds, the set time may be set to 0.5 seconds, i.e., 5 times the read time of the control command. If the specified elevator operation is detected at the time of 1 second, the control command read within 0 to 0.5 seconds is set as the command target for prediction.

In some embodiments there is only one control order within the set time, and thus, it can be uniquely confirmed that the control order corresponds to the detected designated elevator action.

In other embodiments, if there are multiple control commands within a set time, the control command corresponding to the designated elevator motion can be calculated statistically. The corresponding control command should be unique for the same designated elevator action, so that the control command appearing each time in a plurality of detections is the control command corresponding to the designated elevator action. Through the steps, the corresponding control commands of all the appointed elevator actions in the elevator control panel can be accurately predicted.

And S240, matching a target communication protocol in the plurality of communication protocols according to the prediction results of the control commands of the plurality of designated elevator actions.

In step 230, control commands for a plurality of designated elevator actions are predicted, and the target communication protocol can be determined by matching the known communication protocols according to the correspondence between the designated elevator actions and the control commands. If the difference degree between the communication protocols is large, the target communication protocol can be determined through a few corresponding relations.

The embodiment of the invention predicts the control instruction corresponding to the appointed elevator action by detecting the appointed elevator action and then according to the control instruction of the elevator control panel read within a period of time before the appointed elevator action is detected; the scheme is suitable for a data acquisition device after installation, and can automatically identify the communication protocol of the elevator control panel in the elevator running process, so that the condition of manual intervention is greatly reduced.

In real-world situations, however, there may also be situations where there are two or more target communication protocols that are matched. The present embodiment proposes a solution to this situation as a preferred embodiment.

Specifically, the present embodiment further includes the following steps:

and when a plurality of target communication protocols are obtained through matching, reading a plurality of control commands of the elevator control panel, and eliminating the target communication protocol which cannot be correctly analyzed for at least one of the plurality of read control commands.

After the plurality of target communication protocols are matched, the incorrect communication protocols are eliminated in an eliminating mode. The principle is that a plurality of control instructions are read and then a plurality of target communication protocols are adopted for analysis, if the control instructions cannot be analyzed correctly, the target communication protocols are not correct communication protocols and can be eliminated. In short, the corresponding elevator action is not found on the communication protocol according to the control command, which obviously means that the communication protocol is problematic. Then the remaining communication protocols, after elimination, have a high probability of being the correct communication protocol. The step is more accurate in matching, the condition that manual intervention is needed can be further reduced, and the data acquisition device is more intelligent.

The way of excluding part of the communication protocols when a plurality of target communication protocols are present has been discussed above, but if two communication protocols are present, the control commands of both are present on the other communication protocol, i.e. a few control commands are opposite to the elevator action. For this case, the above embodiments cannot be excluded.

Therefore, as a preferred embodiment, in order to eliminate such a situation and further improve the matching accuracy, the present embodiment further includes the following steps:

when a plurality of target communication protocols are obtained through matching, continuously reading a plurality of control instructions of the elevator control panel, and analyzing the continuously read control instructions by using the target communication protocols to obtain an elevator action sequence analyzed according to each target communication protocol; and eliminating the target communication protocol of which the elevator action sequence obtained by analysis meets the set conditions.

Wherein the setting condition is that an action sequence against a conventional rule is satisfied. For example, an elevator must be started after being closed, and if the sequence of control commands issued by the elevator operating panel is started before being closed, this must be incorrect. If a target communication protocol resolves such an elevator action sequence, it is excluded that the target communication protocol is not the correct one. Of course, what kind of situation belongs to the abnormal action sequence needs to be configured according to the industry standard of the elevator control panel.

In the embodiment, by setting some abnormal action orders as setting conditions, target communication protocols meeting the conditions are excluded. The matching accuracy can be further improved, and the condition of manual intervention is further reduced.

As a preferred embodiment, the present embodiment discloses how to accurately determine a control command corresponding to a designated elevator action.

In this embodiment, the predicting, according to the control command read within the set time before the detection of the designated elevator operation, the control command corresponding to the designated elevator operation specifically includes:

counting the times of the occurrence of a plurality of control commands read within a set time before the same specified elevator action is detected for a plurality of times;

the control command with the largest occurrence frequency is used as the prediction result of the designated elevator action.

Since there is a possibility that it is impossible to match to the correct communication protocol, if the data acquisition device is always matched, this may result in the data acquisition device not functioning properly, therefore, this embodiment is a preferred embodiment, and it further includes the following steps:

and generating an alarm when the number of the read control commands is larger than a first set threshold value and the unique target communication protocol is not matched.

When the number of control commands read is sufficiently large, for example 100 or 300, manual intervention is required if the unique communication protocol has not been determined.

There are two cases, one is no match to any one correct communication protocol, and the other is a match to more than two correct communication protocols. In both of these more specific cases, the user should be notified to eliminate the problem by hand. In this embodiment, the alarm may be sent to the user in the form of information, for example, by a short message or a WeChat message.

The present embodiment provides a manual configuration of protocols to a user. This embodiment, as a preferred embodiment, further comprises the following steps:

acquiring a specified communication protocol, and configuring the specified communication protocol as a target communication protocol.

The embodiment supports manual setting of a communication protocol by a user, and the user can input the communication protocol into the data acquisition device through a debugging interface, a USB flash disk or a wireless communication mode, and the communication protocol can be configured as a target communication protocol in the data acquisition device.

In the practical situation, the baud rates adopted by the elevator control boards can be different, so that the baud rate of the elevator control board is detected before the baud rate is detected, and the problems of communication error and the like can be avoided.

As a preferred embodiment, before reading the control command of the elevator control panel, the method further comprises the following steps:

and detecting the baud rate of the elevator control board, and configuring and reading the baud rate when the control instruction is read according to the baud rate obtained by detection.

Of course, as an alternative embodiment, the baud rate may also be set manually by the user.

The embodiment discloses a detection system of elevator communication protocol, it includes:

an acquisition unit configured to acquire a plurality of communication protocols;

the reading unit is used for reading a control command of the elevator control panel;

the detection unit is used for detecting the appointed elevator action;

the prediction unit is used for predicting the control command corresponding to the appointed elevator action according to the control command read in the set time before the appointed elevator action is detected, and obtaining the prediction results of the control commands of the appointed elevator actions;

and a matching unit for matching the target communication protocol in the plurality of communication protocols according to the prediction results of the control commands of the plurality of designated elevator actions.

The embodiment discloses a detection system of elevator communication protocol, includes:

a memory for storing a program;

and the processor is used for loading the program to execute the detection method of the elevator communication protocol.

The embodiment discloses a storage medium which stores a program, and the program realizes the detection method of the elevator communication protocol when being executed by a processor.

The above-described system and storage medium embodiments may be used to implement the above-described method embodiments and achieve the same technical effects as the method embodiments.

The step numbers in the above method embodiments are set for convenience of illustration only, the order between the steps is not limited at all, and the execution order of each step in the embodiments can be adapted according to the understanding of those skilled in the art.

While the preferred embodiments of the present invention have been illustrated and described, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

10页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种光电平层传感器自清洁装置及方法及电梯设备

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!