A method, apparatus, device, and storage medium for detecting a safety circuit.

By collecting the current values ​​of the elevator safety circuit to form an array, identifying the current type, and dynamically setting the detection threshold, the problem of low detection accuracy of the elevator safety circuit is solved, and higher detection accuracy is achieved.

CN116040431BActive Publication Date: 2026-03-06HITACHI BUILDING TECH GUANGZHOU CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202310082398.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-02
Publication Date
2026-03-06
Estimated Expiration
2043-02-02

AI Technical Summary

Technical Problem

In the existing technology, the detection accuracy of elevator safety circuits is low because the threshold used in the threshold method is fixed, while the current of the safety circuit may fluctuate over time or the relationship between the current value and the threshold may change due to component aging.

Method used

By collecting multiple current values ​​from the elevator safety circuit to form a current array, extracting current feature values, identifying the current type based on the current feature values, dynamically setting an appropriate detection threshold, and comparing current values ​​to detect the status of the safety circuit.

Benefits of technology

It improves the accuracy of detecting the status of elevator safety circuits, adapts to current fluctuations over time and component aging, and enhances the compatibility of detection thresholds with actual conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116040431B_ABST
    Figure CN116040431B_ABST
Patent Text Reader

Abstract

This invention discloses a method, apparatus, device, and storage medium for detecting a safety circuit. The method includes: acquiring multiple current values ​​of an elevator's safety circuit; arranging the current values ​​into a first current array during historical detection cycles; extracting current characteristics from the first current array as current feature values; identifying the type of current in the safety circuit based on the current feature values; setting a detection threshold for the safety circuit that matches the current type based on the current feature values; and comparing the current values ​​with the detection threshold during the current detection cycle to detect the status of the safety circuit. Dynamically setting the detection threshold based on the actual current situation in the elevator's safety circuit improves the compatibility between the detection threshold and the actual current situation in the elevator's safety circuit. This adapts to fluctuations in the safety circuit current over time and aging of components in the safety circuit, thereby improving the accuracy of detecting the status of the elevator's safety circuit.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the technical field of elevators, and more particularly to a method, apparatus, equipment, and storage medium for detecting a safety circuit. Background Technology

[0002] With the acceleration of urbanization, elevators, as public facilities in residential buildings, office buildings, and other buildings, have become widespread, and people are increasingly reliant on their use, especially in high-rise buildings where elevators are one of the most commonly used pieces of equipment.

[0003] Elevators are typically equipped with safety circuits. At regular intervals, external sensors such as Hall effect sensors are used to detect the current value of the safety circuit. The status of the safety circuit is determined based on the current value using a threshold method. However, the threshold used in the threshold method is usually fixed, while the current of the safety circuit may fluctuate over time, or the components of the safety circuit may age, causing the relationship between the current value and the threshold to change, resulting in low detection accuracy of the threshold method. Summary of the Invention

[0004] This invention provides a method, apparatus, device, and storage medium for detecting safety circuits, in order to improve the accuracy of detecting the status of elevator safety circuits.

[0005] According to one aspect of the present invention, a method for detecting a safety circuit is provided, comprising:

[0006] Collect multiple current values ​​from the elevator's safety circuit;

[0007] The current values ​​are arranged into a first current array during the historical detection period;

[0008] Extract the current characteristics in the safety circuit from the first current array and use them as current characteristic values;

[0009] The type of current in the safety circuit is identified based on the current characteristic value;

[0010] Based on the current characteristic value, a detection threshold that is compatible with the type of current is set for the safety circuit;

[0011] During the current detection cycle, the current value is compared with the detection threshold to detect the state of the safety circuit.

[0012] According to another aspect of the present invention, a detection device for a safety circuit is provided, comprising:

[0013] The current acquisition module is used to acquire multiple current values ​​from the elevator's safety circuit.

[0014] A current array arrangement module is used to arrange the current values ​​into a first current array during historical detection cycles.

[0015] A current feature extraction module is used to extract the features of the current in the safety circuit from the first current array as current feature values.

[0016] A current type identification module is used to identify the type of current in the safety circuit based on the current characteristic value;

[0017] The detection threshold setting module is used to set a detection threshold for the safety circuit that is compatible with the type of the current based on the current characteristic value;

[0018] The loop status detection module is used to compare the current value with the detection threshold during the current detection cycle to detect the status of the safety loop.

[0019] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0020] At least one processor; and

[0021] A memory communicatively connected to the at least one processor; wherein,

[0022] The memory stores a computer program that can be executed by the at least one processor, which enables the at least one processor to perform the detection method for the security loop according to any embodiment of the present invention.

[0023] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing a computer program configured to cause a processor to execute and implement the method for detecting a security loop according to any embodiment of the present invention.

[0024] In this embodiment, multiple current values ​​are collected for the elevator's safety circuit. These current values ​​are arranged into a first current array based on historical detection cycles. Current characteristics within the safety circuit are extracted from this first current array as current feature values. The type of current in the safety circuit is identified based on these feature values. A detection threshold matching the current type is set for the safety circuit based on the current feature values. In the current detection cycle, the current value is compared with the detection threshold to detect the state of the safety circuit. By dynamically setting the detection threshold according to the actual current situation in the elevator's safety circuit, the detection threshold can be flexibly adjusted, improving the compatibility between the detection threshold and the actual current situation in the elevator's safety circuit. This allows for adaptation to current fluctuations over time and component aging in the safety circuit, thereby improving the accuracy of detecting the state of the elevator's safety circuit.

[0025] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description

[0026] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0027] Figure 1 This is a flowchart of a safety circuit detection method provided according to Embodiment 1 of the present invention;

[0028] Figure 2 This is a flowchart of a safety circuit detection method according to Embodiment 2 of the present invention;

[0029] Figure 3 This is a schematic diagram of the structure of a safety circuit detection device according to Embodiment 3 of the present invention;

[0030] Figure 4 This is a schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. Detailed Implementation

[0031] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0032] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0033] Example 1

[0034] Figure 1 This is a flowchart of a safety loop detection method provided in Embodiment 1 of the present invention. This embodiment is applicable to dynamically setting thresholds to detect the safety loop status of an elevator. The method can be executed by a safety loop detection device, which can be implemented in hardware and / or software. This safety loop detection device can be configured in electronic equipment, particularly a remote monitoring terminal in an elevator. The remote monitoring terminal is installed on the top of the elevator car and moves with the elevator car. Figure 1 As shown, the method includes:

[0035] Step 101: Collect multiple current values ​​for the elevator's safety circuit.

[0036] Different buildings, especially high-rise buildings, have different transportation needs for people and goods. Therefore, different types of elevators can be deployed in buildings according to different transportation needs, such as passenger elevators, freight elevators, sightseeing elevators, etc. This embodiment does not limit this.

[0037] The structure also varies among different types of elevators.

[0038] In one example, the components of a certain type of elevator include a traction machine, control cabinet, speed governor, door operator, car frame, car door, counterweight guide rail, car guide rail, guide rail support, traveling cable, counterweight device, compensating chain (cable), landing door, guide device for compensating chain (cable), buffer, etc.

[0039] In some types of elevators, the traction machine, control cabinet, speed governor, traveling cable, etc., can be omitted.

[0040] These components can be divided into different sets according to their functions, thus forming various subsystems that support the operation of the elevator. The elevator controller is connected to multiple systems of the elevator via wired means such as serial port or serial clock line (SCL). The controller monitors each system and controls the operation of each subsystem.

[0041] In one example, the system includes a door system, a frequency conversion system, a call system, and a traction system. The door system controls the car doors and the doors of the waiting halls on each floor. The frequency conversion system controls the frequency converter. The call system controls the logic of internal call (calling the elevator from inside the car) and external call (calling the elevator from the waiting hall). The traction system controls the car's movement in the hoistway.

[0042] To ensure the safe operation of elevators, safety circuits are installed in them. The various safety components (such as safety switches) of the safety circuits are installed in various systems of the elevator. These safety components are usually connected in series. When all systems are operating normally, all safety components are connected, the safety circuit is operating normally, and the elevator is running normally. If a system malfunctions, its internal safety component is disconnected, the safety circuit stops operating, and the elevator stops running.

[0043] In this embodiment, an external sensor such as a Hall sensor can be configured for the elevator's safety circuit. The external sensor is connected to the signal line of the safety circuit and can continuously collect multiple current values ​​of the safety circuit on the signal line. The remote monitoring terminal reads the current values ​​collected by the external sensor such as the Hall sensor at preset time intervals.

[0044] Step 102: Arrange the current values ​​into the first current array within the historical detection cycle.

[0045] In this embodiment, multiple detection cycles can be divided on the time axis according to the frequency of current value acquisition by the remote monitoring terminal. In the historical detection cycles, the current values ​​in the detection cycle are sorted by time to form the first current array.

[0046] For example, if the remote monitoring terminal collects current values ​​from external sensors such as Hall sensors every 1ms, the interval period can be set to 5s. Within 5s, the remote monitoring terminal collects 5000 current values ​​from external sensors such as Hall sensors, which are denoted as the first current array A

[5000] .

[0047] Step 103: Extract the current characteristics of the safety loop from the first current array as current characteristic values.

[0048] Statistical analysis is performed on the current values ​​in the first current array, and the characteristics of the current in the safety circuit are extracted within the range of the first current array and recorded as current characteristic values.

[0049] In one example, the current characteristic values ​​include at least one of the upper current limit Amax, the lower current limit Amin, the current amplitude, and the average current value Aaver.

[0050] Therefore, in this example, at least one of the following operations can be performed:

[0051] In the first current array, the values ​​of each current are compared, and the current value with the largest value is selected as the upper limit value Amax, and the current value with the smallest value is selected as the lower limit value Amin.

[0052] Calculate the first difference between the upper and lower current limits, and use it as the current amplitude (Amax-Amin).

[0053] Calculate the first average value of the current values ​​in the first current array, which is taken as the current average value Aaver.

[0054] Step 104: Identify the type of current in the safety circuit based on the current characteristic value.

[0055] In this embodiment, the type of current in the safety circuit can be identified by applying current feature values ​​based on deep learning, machine learning, rules, and other methods.

[0056] In the specific implementation, a type threshold A0 can be set in advance according to the actual situation of different types of current connected to the safety circuit in the elevator. The current current characteristic value includes the current amplitude (Amax-Amin), and the current amplitude (Amax-Amin) is compared with the type threshold A0.

[0057] If the current amplitude (Amax-Amin) is less than the preset type threshold A0, that is, Amax-Amin<A0, it means that the current fluctuation in the safety circuit is small, and the type of current in the safety circuit can be determined to be direct current.

[0058] If the current amplitude (Amax-Amin) is greater than or equal to the preset type threshold A0, that is, Amax-Amin≥A0, it indicates that the current fluctuation in the safety circuit is large, and the type of current in the safety circuit can be determined to be alternating current.

[0059] Step 105: Set a detection threshold for the safety circuit that is compatible with the type of current based on the current characteristic value.

[0060] Different types of current have different characteristics. The characteristics of current values ​​also change over time or when the safety circuit ages. Therefore, this embodiment can select appropriate current characteristic values ​​according to the type of current. These current characteristic values ​​can be applied based on deep learning, machine learning, rules and other methods to dynamically set the detection threshold of the safety circuit that is adapted to the type of current.

[0061] In a specific implementation, the current characteristic values ​​include the current amplitude (Amax-Amin) and the average current value Aaver. For alternating current, the current amplitude (Amax-Amin) is denoted as A1.

[0062] If the current type is direct current, then take a specified first percentage (the first percentage is less than 1 and tends to the lower limit value of 0, such as 10%) of the current average value Aaver as the detection threshold set for the safety circuit.

[0063] If the current type is alternating current, then a specified second proportion (the second proportion is less than 1 and tends to the lower limit value of 0, such as 10%) is taken for the current amplitude A1 as the detection threshold for the safety circuit.

[0064] Step 106: In the current detection cycle, compare the current value with the detection threshold to detect the status of the safety circuit.

[0065] In the current detection cycle, for different types of current, some or all current values ​​can be screened out. Under one or more dimensions, some or all current values ​​are compared with the corresponding detection threshold for that type. Based on the comparison, the status of the safety circuit is detected, and it is determined whether the safety circuit is normal or abnormal.

[0066] In one embodiment of the present invention, the current characteristic value includes the average current value Aaver, and step 106 may include the following steps:

[0067] S61. If the current type is direct current, then in the current detection cycle, the current value is subtracted from the average current value to obtain the current fluctuation value.

[0068] S62. Compare the current fluctuation value with the detection threshold to obtain the first result.

[0069] S63. If the first result is that the current value is less than or equal to the detection threshold, then the state of the safety circuit is determined to be normal.

[0070] S64. If the first result is that the current value is greater than the detection threshold, then the state of the safety circuit is determined to be abnormal.

[0071] For a safety circuit using direct current, the current value A can be selected from the current detection cycle. The selected current value A can be any current value in the current detection cycle, or it can be a statistically significant value in the current detection cycle, such as the median or average value. This embodiment does not impose any restrictions on this.

[0072] Subtract the average current value Aaver from the current value A to obtain the current fluctuation value (A-Aaver). The current fluctuation value characterizes the fluctuation of the current value A relative to the average current value Aaver. The current fluctuation value (A-Aaver) is then compared with the detection threshold (Aaver*10%).

[0073] If the first result of the comparison is that the current fluctuation value (A-Aaver) is less than or equal to the detection threshold (Aaver*10%), that is, A-Aaver≤Aaver*10%, it means that the fluctuation of the current value A relative to the average current value Aaver is small, and the state of the safety circuit can be determined to be normal.

[0074] If the first result of the comparison is that the current fluctuation value (A-Aaver) is greater than the detection threshold (Aaver*10%), that is, A-Aaver>Aaver*10%, it means that the current value A fluctuates greatly relative to the average current value Aaver, and the state of the safety circuit can be determined to be abnormal.

[0075] In another embodiment of the present invention, step 106 may include the following steps:

[0076] S65. If the current type is alternating current, then count the frequency of alternating current in the first current array.

[0077] For a safety circuit using alternating current, the distribution of each current value can be analyzed in the first current array A

[5000] to calculate the frequency f of the alternating current.

[0078] In the specific implementation, the current characteristic values ​​include the upper limit value Amax, the lower limit value Amin, and the current amplitude A1. A specified third ratio is taken for the current amplitude A1 (the third ratio is less than 1 and tends to the lower limit value 0, such as 10%), which is used as the frequency threshold (A1*10%).

[0079] In the first current array, calculate the second difference between each current value and the upper limit value Amax, and the third difference between each current value and the lower limit value Amin.

[0080] In the first current array, count the first number N1 of current values ​​whose second difference is less than the frequency threshold (A1*10%) and whose order is consecutive. N1 represents the peak of the AC waveform. Count the second number N2 of current values ​​whose third difference is less than the frequency threshold (A1*10%) and whose order is consecutive. N2 represents the trough of the AC waveform.

[0081] Calculate the second average value, Naver, between the first quantity N1 and the second quantity N2.

[0082] Calculate the ratio between the first duration of the first current array A

[5000] and the second average value Naver, and use it as the frequency f of the alternating current. For example, if the first duration of A

[5000] is 5s, then f = 5 / Naver.

[0083] S66. In the current detection cycle, select a portion of the consecutively arranged current values ​​according to frequency to form a second current array.

[0084] In the current detection cycle, the current values ​​are selected in a continuous sequence based on the frequency of the alternating current to form a second current array A[x], so that the second current array A[x] contains multiple continuous waveforms of the alternating current.

[0085] In a specific implementation, the reciprocal of the frequency f can be taken to obtain the acquisition period 1 / f. The acquisition period 1 / f can be multiplied by the preset buffer coefficient (the buffer coefficient is a constant, such as 10) to obtain the second duration. If f = 5 / Naver, then the second duration is 10*Naver / 5.

[0086] During the current detection cycle, current values ​​that are consecutively arranged and greater than or equal to the second duration (e.g., 10*Naver / 5) are cached to form the second current array A[x].

[0087] To ensure the timeliness of the second current array A[x], the current values ​​in the second current array A[x] are the latest current values ​​collected in the current detection cycle.

[0088] S67. Calculate the difference between the first current array and the second current array.

[0089] The first current array A

[5000] represents the waveform of the alternating current in the historical detection cycle, and the second current array A[x] represents the waveform of the alternating current in the current detection cycle. By comparing the two in multiple dimensions, the overall difference between the two can be obtained.

[0090] In a specific implementation, the current characteristic values ​​include the upper limit of current Amax and the lower limit of current Amin.

[0091] In the second current array A[x], the current value with the largest value is selected as the upper limit reference value Axmax, and the current value with the smallest value is selected as the lower limit reference value Axmin.

[0092] The fourth difference (Amax-Axmax) between the upper limit current value Amax and the reference upper limit value Axmax, and the fifth difference (Amin-Axmin) between the lower limit current value Amin and the reference lower limit value Axmin are calculated respectively to characterize the difference between the first current array and the second current array.

[0093] S68. Compare the difference with the detection threshold to detect the state of the safety loop.

[0094] The overall difference between the first current array A

[5000] and the second current array A[x] is compared with the detection threshold (A1*10%) to detect the state of the safety circuit.

[0095] In the specific implementation, the fourth difference (Amax-Axmax) can be compared with the detection threshold (A1*10%), and the fifth difference (Amin-Axmin) can be compared with the detection threshold (A1*10%) to obtain the second result.

[0096] If the second result is that the fourth difference (Amax-Axmax) is less than or equal to the detection threshold (A1*10%), and the fifth difference (Amin-Axmin) is less than or equal to the detection threshold (A1*10%), that is, Amax-Axmax≤A1*10% and Amin-Axmin≤A1*10%, it means that the waveform of the first current array A

[5000] is highly similar to that of the second current array A[x], and then the state of the safety circuit can be determined to be normal.

[0097] If the second result is that the fourth difference (Amax-Axmax) is greater than the detection threshold (A1*10%), and / or the fifth difference (Amin-Axmin) is greater than the detection threshold (A1*10%), that is, Amax-Axmax>A1*10%, and / or Amin-Axmin>A1*10%, it indicates that the waveform of the first current array A

[5000] is less similar to that of the second current array A[x], and then the state of the safety circuit can be determined to be abnormal.

[0098] In this embodiment, multiple current values ​​are collected for the elevator's safety circuit. These current values ​​are arranged into a first current array based on historical detection cycles. Current characteristics within the safety circuit are extracted from this first current array as current feature values. The type of current in the safety circuit is identified based on these feature values. A detection threshold matching the current type is set for the safety circuit based on the current feature values. In the current detection cycle, the current value is compared with the detection threshold to detect the state of the safety circuit. By dynamically setting the detection threshold according to the actual current situation in the elevator's safety circuit, the detection threshold can be flexibly adjusted, improving the compatibility between the detection threshold and the actual current situation in the elevator's safety circuit. This allows for adaptation to current fluctuations over time and component aging in the safety circuit, thereby improving the accuracy of detecting the state of the elevator's safety circuit.

[0099] Example 2

[0100] Figure 2 This is a flowchart of a safety circuit detection method provided in Embodiment 2 of the present invention. This embodiment adds an operation of updating the current characteristic value based on the previous embodiment. Figure 2 As shown, the method includes:

[0101] Step 201: Collect multiple current values ​​for the elevator's safety circuit.

[0102] Step 202: Arrange the current values ​​into the first current array within the historical detection cycle.

[0103] Step 203: Extract the current characteristics of the safety loop from the first current array as current characteristic values.

[0104] Step 204: Identify the type of current in the safety circuit based on the current characteristic value.

[0105] Step 205: Set a detection threshold for the safety circuit that is compatible with the type of current based on the current characteristic value.

[0106] Step 206: In the current detection cycle, compare the current value with the detection threshold to detect the status of the safety circuit.

[0107] Step 207: Calculate the deviation of each current characteristic value between the current detection cycle and the historical detection cycle.

[0108] Step 208: If the deviation of each current characteristic value exceeds the preset deviation threshold, save the current characteristic value of the current detection cycle to update it with the current characteristic value of the historical detection cycle.

[0109] Step 209: If the deviation of any current characteristic value does not exceed the preset deviation threshold, the current characteristic value of the historical detection cycle remains unchanged.

[0110] In practical applications, the current in the safety circuit may change over time, or some components may age, causing the current value to drift.

[0111] In response, each detection cycle is continuously updated over time. In each detection cycle, the current values ​​can be arranged into a first current array, and the characteristics of the current in the safety circuit can be extracted from the first current array as current characteristic values, such as the upper limit of current Amax, the lower limit of current Amin, the current amplitude A1 and the average current Aaver, etc.

[0112] For the same type of current characteristic value, the deviation between its value in the current detection cycle and its value in historical detection cycles can be calculated. That is, the absolute value of the difference between its value in the current detection cycle and its value in historical detection cycles is taken, and the ratio between the absolute value and the value in historical detection cycles is calculated as the deviation.

[0113] If the deviation of each current characteristic value exceeds the preset deviation threshold (e.g., 5%), it indicates a large deviation. In this case, the current characteristic value of the current detection cycle can be saved and updated to the current characteristic value of the new, historical detection cycle, and used as a reference for subsequent detection of the elevator's safety circuit status to ensure the accuracy of the current characteristic value.

[0114] If the deviation of any current characteristic value does not exceed the preset deviation threshold (e.g., 5%), it indicates that the deviation is small. In this case, the current characteristic value of the historical detection cycle can be kept unchanged and used as a reference for subsequent detection of the elevator's safety circuit status, thus ensuring the accuracy of the current characteristic value.

[0115] Example 3

[0116] Figure 3 This is a schematic diagram of the structure of a safety circuit detection device provided in Embodiment 3 of the present invention. Figure 3 As shown, the device includes:

[0117] The current value acquisition module 301 is used to acquire multiple current values ​​from the elevator's safety circuit.

[0118] The current array arrangement module 302 is used to arrange the current values ​​into a first current array during historical detection cycles.

[0119] The current feature value extraction module 303 is used to extract the features of the current in the safety circuit from the first current array as current feature values.

[0120] The current type identification module 304 is used to identify the type of current in the safety circuit based on the current characteristic value;

[0121] The detection threshold setting module 305 is used to set a detection threshold for the safety circuit that is compatible with the type of the current based on the current characteristic value.

[0122] The loop status detection module 306 is used to compare the current value with the detection threshold during the current detection cycle to detect the status of the safety loop.

[0123] In one embodiment of the present invention, the current characteristic value includes at least one of the following: upper limit current value, lower limit current value, current amplitude, and average current value;

[0124] The current feature value extraction module 303 includes:

[0125] The limit value filtering module is used to filter the current value with the largest value from the first current array as the upper limit value of the current and the current value with the smallest value as the lower limit value of the current.

[0126] The current amplitude calculation module is used to calculate the first difference between the upper limit value of the current and the lower limit value of the current, as the current amplitude.

[0127] The current average value calculation module is used to calculate a first average value for the current values ​​in the first current array, which is then used as the current average value.

[0128] In one embodiment of the present invention, the current characteristic value includes the current amplitude, and the current type identification module 304 includes:

[0129] A DC current determination module is used to determine that the type of current in the safety circuit is DC if the current amplitude is less than a preset type threshold.

[0130] An AC current determination module is used to determine that the type of current in the safety circuit is AC if the current amplitude is greater than or equal to a preset type threshold.

[0131] In one embodiment of the present invention, the current characteristic value includes the current amplitude and the average current value; the detection threshold setting module 305 includes:

[0132] A DC current setting module is used to take a specified first proportion of the average value of the current as a detection threshold for setting the safety circuit if the current type is DC current.

[0133] An AC setting module is used to, if the current type is AC, take a specified second ratio of the current amplitude as a detection threshold for the safety circuit setting.

[0134] In one embodiment of the present invention, the loop state detection module 306 includes:

[0135] The current fluctuation value calculation module is used to subtract the average current value from the current value in the current detection cycle if the current type is direct current, in order to obtain the current fluctuation value.

[0136] The first comparison module is used to compare the current fluctuation value with the detection threshold to obtain a first result;

[0137] The first normal determination module is used to determine that the state of the safety circuit is normal if the first result is that the current fluctuation value is less than or equal to the detection threshold.

[0138] The first anomaly determination module is used to determine that the state of the safety circuit is abnormal if the first result is that the current fluctuation value is greater than the detection threshold.

[0139] In another embodiment of the present invention, the loop state detection module 306 includes:

[0140] A frequency statistics module is used to count the frequency of the AC current in the first current array if the current type is AC.

[0141] A current array filtering module is used to select a portion of the continuously arranged current values ​​to form a second current array according to the frequency in the current detection cycle.

[0142] The array difference calculation module is used to calculate the difference between the first current array and the second current array;

[0143] The difference detection module is used to compare the difference with the detection threshold to detect the state of the safety loop.

[0144] In one embodiment of the present invention, the current characteristic value includes an upper limit value of current, a lower limit value of current, and current amplitude;

[0145] The frequency statistics module includes:

[0146] The frequency threshold setting module is used to take a specified third ratio of the current amplitude as the frequency threshold.

[0147] The extreme value deviation calculation module is used to calculate, in the first current array, the second difference between the current value and the upper limit value of the current, and the third difference between the current value and the lower limit value of the current, respectively;

[0148] The quantity statistics module is used to count, in the first current array, the first number of current values ​​whose second difference is less than the frequency threshold and whose order is consecutive, and the second number of current values ​​whose third difference is less than the frequency threshold and whose order is consecutive.

[0149] The quantity average calculation module is used to calculate the second average value between the first quantity and the second quantity;

[0150] The ratio calculation module is used to calculate the ratio between the first duration of the first current array and the second average value, which is used as the frequency of the alternating current.

[0151] In one embodiment of the present invention, the current array filtering module includes:

[0152] The acquisition period calculation module is used to take the reciprocal of the frequency to obtain the acquisition period;

[0153] The duration calculation module is used to multiply the acquisition period by a preset buffer coefficient to obtain the second duration;

[0154] The current value caching module is used to cache consecutively arranged current values ​​that are greater than or equal to the second duration during the current detection cycle to form a second current array.

[0155] In one embodiment of the present invention, the current characteristic value includes an upper limit current value and a lower limit current value;

[0156] The array difference calculation module includes:

[0157] The reference value filtering module is used to filter the current value with the largest value from the second current array as the upper limit reference value and the current value with the smallest value as the lower limit reference value.

[0158] The reference deviation calculation module is used to calculate the fourth difference between the upper limit of the current and the upper limit of the reference, and the fifth difference between the lower limit of the current and the lower limit of the reference, respectively, to characterize the difference between the first current array and the second current array.

[0159] In one embodiment of the present invention, the difference detection module includes:

[0160] The second comparison module is used to compare the fourth difference with the detection threshold and the fifth difference with the detection threshold respectively to obtain a second result;

[0161] The second normal determination module is used to determine that the state of the safety loop is normal if the second result is that the fourth difference is less than or equal to the detection threshold, and the fifth difference is less than or equal to the detection threshold.

[0162] The second anomaly determination module is used to determine that the state of the safety loop is abnormal if the second result is that the fourth difference is greater than the detection threshold, and / or the fifth difference is greater than the detection threshold.

[0163] In one embodiment of the present invention, it further includes:

[0164] The cycle deviation calculation module is used to calculate the deviation between the current detection cycle and the historical detection cycles for each of the current characteristic values.

[0165] The current feature value update module is used to save the current feature value of the current detection period and update it to the current feature value of the historical detection period if the deviation of each current feature value exceeds a preset deviation threshold.

[0166] A current characteristic value maintenance module is used to maintain the current characteristic value of the historical detection period unchanged if the deviation of any current characteristic value does not exceed a preset deviation threshold.

[0167] The safety circuit detection device provided in this embodiment of the invention can execute the safety circuit detection method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects for executing the safety circuit detection method.

[0168] Example 4

[0169] Figure 4A schematic diagram of an electronic device 10 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.

[0170] like Figure 4 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 may also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0171] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0172] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as methods for detecting security loops.

[0173] In some embodiments, the method for detecting a secure loop can be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the secure loop detection method described above can be performed. Alternatively, in other embodiments, processor 11 can be configured to perform the secure loop detection method by any other suitable means (e.g., by means of firmware).

[0174] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0175] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0176] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0177] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0178] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0179] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.

[0180] Example 5

[0181] This invention also provides a computer program product, which includes a computer program that, when executed by a processor, implements the method for detecting a security loop as provided in any embodiment of this invention.

[0182] In implementing the computer program product, computer program code for performing the operations of this invention can be written in one or more programming languages ​​or a combination thereof. Programming languages ​​include object-oriented programming languages ​​such as Java, Smalltalk, and C++, as well as conventional procedural programming languages ​​such as C or similar languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0183] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.

[0184] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Claims

1. A method of detecting a safety circuit, characterized in that, The method comprises: collecting multiple current values of a safety circuit of an elevator; arranging the current values as a first current array in a historical detection period; extracting a feature of the current in the safety circuit as a current feature value in the first current array; identifying a type of the current in the safety circuit according to the current feature value, the type of the current being determined by comparing a current amplitude with a preset type threshold value; setting a detection threshold value for the safety circuit according to the current feature value, the detection threshold value being adapted to the type of the current; comparing the current values with the detection threshold value in a current detection period to detect a state of the safety circuit, comprising: if the type of the current is alternating current, counting a frequency of the alternating current in the first current array; selecting, according to the frequency, a part of the current values arranged continuously to form a second current array in the current detection period; calculating a difference between the first current array and the second current array; comparing the difference with the detection threshold value to detect the state of the safety circuit.

2. The method of claim 1, wherein, The current feature value comprises at least one of a current upper limit value, a current lower limit value, a current amplitude and a current average value; The extracting the feature of the current in the safety circuit as the current feature value in the first current array comprises: selecting, in the first current array, a current value with a maximum value as the current upper limit value and a current value with a minimum value as the current lower limit value; calculating a first difference between the current upper limit value and the current lower limit value as the current amplitude; calculating a first average value of the current values in the first current array as the current average value.

3. The method of claim 1, wherein, The identifying the type of the current in the safety circuit according to the current feature value comprises: if the current amplitude is less than a preset type threshold value, determining that the type of the current in the safety circuit is direct current; and if the current amplitude is greater than or equal to the preset type threshold value, determining that the type of the current in the safety circuit is alternating current.

4. The method of claim 1, wherein, The current feature value comprises the current amplitude and the current average value; and the setting the detection threshold value for the safety circuit according to the current feature value comprises: if the type of the current is direct current, taking a specified first proportion of the current average value as the detection threshold value set for the safety circuit; and if the type of the current is alternating current, taking a specified second proportion of the current amplitude as the detection threshold value set for the safety circuit.

5. The method according to any one of claims 1-4, characterized in that, The current feature value comprises the current average value; and the comparing the current values with the detection threshold value in the current detection period to detect the state of the safety circuit comprises: if the type of the current is direct current, obtaining a current fluctuation value by subtracting the current average value from the current values in the current detection period; comparing the current fluctuation value with the detection threshold value to obtain a first result; if the first result is that the current fluctuation value is less than or equal to the detection threshold value, determining that the state of the safety circuit is normal. If the first result is that the current fluctuation value is greater than the detection threshold, it is determined that the state of the safety circuit is abnormal.

6. The method of claim 1, wherein, The current characteristic value includes an upper limit value, a lower limit value, and a current amplitude; The frequency of the alternating current in the first current array is counted, including: Taking a specified third proportion of the current amplitude as a frequency threshold; In the first current array, a second difference between the current value and the upper limit value, and a third difference between the current value and the lower limit value are calculated respectively; In the first current array, a first number of the current values that are less than the frequency threshold and are sequentially arranged, and a second number of the current values that are less than the frequency threshold and are sequentially arranged are counted respectively; A second average value between the first number and the second number is calculated; A ratio between a first duration of the first current array and the second average value is calculated as the frequency of the alternating current; In the current detection period, a second current array is formed by selecting part of the current values arranged continuously according to the frequency, including: Taking the inverse of the frequency to obtain an acquisition period; Multiplying the acquisition period by a preset cache coefficient to obtain a second duration; In the current detection period, the current values that are arranged continuously and are greater than or equal to the second duration are cached to form a second current array.

7. The method of claim 1, wherein, The current characteristic value includes an upper limit value and a lower limit value; The difference between the first current array and the second current array is calculated, including: In the second current array, the current value with the maximum value is selected as a reference upper limit value, and the current value with the minimum value is selected as a reference lower limit value; A fourth difference between the upper limit value and the reference upper limit value, and a fifth difference between the lower limit value and the reference lower limit value are calculated to represent the difference between the first current array and the second current array; The difference is compared with the detection threshold to detect the state of the safety circuit, including: The fourth difference and the fifth difference are compared with the detection threshold respectively to obtain a second result; If the second result is that the fourth difference is less than or equal to the detection threshold, and the fifth difference is less than or equal to the detection threshold, it is determined that the state of the safety circuit is normal; If the second result is that the fourth difference is greater than the detection threshold, and / or the fifth difference is greater than the detection threshold, it is determined that the state of the safety circuit is abnormal.

8. The method of any one of claims 1-4, 6-7, wherein, Further comprising: The deviation between the current characteristic value in the current detection period and the historical detection period is calculated; If the deviation of each current characteristic value exceeds a preset deviation threshold, the current detection period is saved as the current characteristic value of the historical detection period to update the current characteristic value of the historical detection period; If the deviation of any current characteristic value does not exceed the preset deviation threshold, the current characteristic value of the historical detection period is maintained unchanged.

9. A detection device for a safety circuit, characterized in that Including: The current value collection module is configured to collect a plurality of current values of a safety circuit of an elevator. The current array arrangement module is configured to arrange the current values as a first current array in a historical detection period. The current characteristic value extraction module is configured to extract a characteristic of the current in the safety circuit as a current characteristic value in the first current array. The current type identification module is configured to identify a type of the current in the safety circuit according to the current characteristic value, the type of the current being determined by comparing a current amplitude with a preset type threshold. The detection threshold setting module is configured to set a detection threshold for the safety circuit according to the current characteristic value, the detection threshold being adapted to the type of the current. The circuit state detection module is configured to compare the current values with the detection threshold in a current detection period to detect a state of the safety circuit. The circuit state detection module includes: The frequency statistical module is configured to, if the type of the current is alternating current, count a frequency of the alternating current in the first current array. The current array screening module is configured to, in the current detection period, select, according to the frequency, a part of the current values that are arranged continuously to form a second current array. The array difference calculation module is configured to calculate a difference between the first current array and the second current array. The difference detection module is configured to compare the difference with the detection threshold to detect the state of the safety circuit.

10. An electronic device, comprising: The electronic device includes: at least one processor; and a memory connected to the at least one processor in communication; wherein The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to execute the safety circuit detection method of any one of claims 1-8.

11. A computer readable storage medium characterized by, The computer readable storage medium stores a computer program, and the computer program is used to enable the processor to execute the safety circuit detection method of any one of claims 1-8 when executed.

Citation Information

Patent Citations

  • Power supply type identification method and circuit and automatic change-over switch

    CN106772123A

  • Turnout fault detection method and device, electronic equipment and storage medium

    CN112477917A

  • Automatic control method for energy feedback and rectification of flexible traction power supply device

    CN113422397A

  • Power supply device and discharging method thereof

    CN115149785A