Function test method of elevator, electronic equipment and medium
Through automated control of elevator execution test scripts, the elevator function test results are determined based on operation data, which solves the problems of low efficiency and high cost of elevator function detection, and achieves efficient and accurate elevator function detection.
Patent Information
- Application Number
- CN202411833823.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-12
- Publication Date
- 2025-04-11
AI Technical Summary
The elevator function detection efficiency is low, the inspection cost is high, and the existing test bench is difficult to move, resulting in long inspection time and high cost.
By obtaining test scripts, the elevator is automatically controlled to perform the functions to be tested, and the test results are determined based on the operation data. The elevator function test is carried out using terminals and servers to cover a variety of usage scenarios and improve test coverage and accuracy.
It significantly improves the detection efficiency of elevator function, shortens the test cycle, reduces the inspection cost, and ensures the accuracy and reliability of the test results.
Smart Images

Figure CN119807038A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of elevators, and more specifically, to a function testing method of an elevator, an electronic device, and a non-volatile computer-readable storage medium containing a computer program. Background Art
[0002] In the related art, elevators are usually tested by elevator testers (elevator inspectors or elevator inspectors, etc.) on a test bench of the elevator to measure and control various functions of the elevator (for example, the opening and closing of elevator doors, emergency stops, etc.).
[0003] In order to ensure the safety of elevator operation, elevator testers need to manually test each function of the elevator one by one. Due to the large number of functions of the elevator, the testing efficiency is low. Summary of the invention
[0004] The embodiments of the present application provide a function testing method, electronic device and computer-readable storage medium for an elevator, which can improve the detection efficiency.
[0005] A functional testing method for an elevator according to one embodiment of the present application comprises: obtaining a test script for testing a function to be tested of the elevator; running the test script to control the elevator to execute the function to be tested; and determining a test result of the function to be tested based on operating data when the elevator executes the function to be tested.
[0006] In some embodiments, the elevator includes a control cabinet, and running the test script to control the elevator to execute the function to be tested includes: running the test script, issuing control instructions to the control cabinet through a connected control panel, so as to control the elevator to execute the function to be tested through the control cabinet.
[0007] In some embodiments, the elevator includes a communication device and the control cabinet, and running the test script to control the elevator to execute the function to be tested includes: running the test script to send an elevator call instruction to the communication device, and the communication device forwarding the elevator call instruction to the control cabinet to control the elevator to execute the function to be tested through the control cabinet.
[0008] In some embodiments, the elevator includes a communication device and the control cabinet, and running the test script to control the elevator to execute the function to be tested includes: running the test script, sending an elevator call instruction to the communication device and issuing a control instruction to the control cabinet through a connected control panel, so as to control the elevator to execute the function to be tested through the control cabinet.
[0009] In some embodiments, the method further includes: displaying test information, wherein the test information includes each instruction sent during the running of the test script and the execution result after the elevator executes each of the instructions.
[0010] In certain embodiments, the control panel includes a plurality of first control interfaces, the control cabinet includes a plurality of second control interfaces, the first control interfaces and the second control interfaces are connected one-to-one, the test script includes a function library function, and the control instructions are sent to the control cabinet through the connected control panel, including: based on the currently called function library function and test parameters, controlling the corresponding first control interface to send the control instructions to the connected second control interface; and generating the elevator call instruction based on the current test parameters.
[0011] In some embodiments, obtaining a test script for testing the function to be tested of the elevator includes: calling the management interface to display a test task interface; obtaining the input of the target object to the test task interface to create the test task or edit the existing test task; based on the triggering condition of the test task, triggering the test task to obtain a test script corresponding to the task to be tested that the test task needs to test.
[0012] In certain embodiments, the function to be tested includes at least one of an emergency electric function, a ride function, an operation control function, a door control function, an instruction management function, and an indication management function.
[0013] In some implementations, the test script includes at least one of a Lua script, a Python script, and a JavaScript script.
[0014] The present application also proposes a functional testing device, comprising: an acquisition module, used to acquire a test script for testing the function to be tested of the elevator; an operation module, used to run the test script to control the elevator to perform the function to be tested; and a determination module, used to determine the test result of the function to be tested based on the operation data when the elevator performs the function to be tested.
[0015] The present application also proposes an electronic device, including: a terminal, and / or a server, wherein the terminal is used to execute the elevator function testing method described in any of the above embodiments.
[0016] The present application also proposes a non-volatile computer-readable storage medium containing a computer program, characterized in that when the computer program is executed by a processor, the processor executes the elevator function testing method described in any of the above embodiments.
[0017] The functional testing method, electronic device and computer-readable storage medium of the elevator in the embodiments of the present application obtain a test script for testing the function to be tested of the elevator, and run the test script to control the elevator to execute the function to be tested, thereby testing the function of the elevator, and finally determine the test result of the function to be tested based on the operating data when the elevator executes the function to be tested (for example, by recording and analyzing the operating data to determine the degree of completion and safety of the elevator running the function, etc.). Since the test script can cover a variety of usage scenarios of the elevator, that is, it can test a variety of functions of the elevator, it can achieve an improvement in the test coverage of the elevator, and the test script can be repeatedly executed, so the accuracy and reliability of the test results can also be ensured.
[0018] In addition, by using the operating data of the elevator when running the test script to detect the elevator's functions to be tested, there is no need to manually test each function of the elevator one by one, which can significantly improve the test efficiency and shorten the test cycle.
[0019] Additional aspects and advantages of the embodiments of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the embodiments of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0021] Figure 1 It is a schematic diagram of an application scenario of a function test method for an elevator in certain embodiments of the present application;
[0022] Figure 2 is a flow chart of a function test method of an elevator in certain embodiments of the present application;
[0023] Figure 3 is a flow chart of a function test method of an elevator in certain embodiments of the present application;
[0024] Figure 4 is a flow chart of a function test method of an elevator in certain embodiments of the present application;
[0025] Figure 5 is a flow chart of a function test method of an elevator in certain embodiments of the present application;
[0026] Figure 6 is a schematic diagram of a scenario of a functional testing method for an elevator in certain embodiments of the present application;
[0027] Figure 7 is a flow chart of a function test method of an elevator in certain embodiments of the present application;
[0028] Figure 8 is a schematic diagram of a scenario of a functional testing method for an elevator in certain embodiments of the present application;
[0029] Fig. 9 is a module schematic diagram of a functional testing device for an elevator in certain embodiments of the present application;
[0030] Fig.10 It is a schematic diagram of the connection status of a non-volatile computer-readable storage medium and a processor in certain embodiments of the present application. DETAILED DESCRIPTION
[0031] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals represent the same or similar elements or elements having the same or similar functions from beginning to end. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the embodiments of the present application, and cannot be understood as limiting the embodiments of the present application.
[0032] To facilitate understanding of this application, the terms and background technologies that appear in this application are explained below:
[0033] 1. Cloud server: is an Internet Technology (IT) product that provides cloud computing services. The characteristics of cloud servers are simplicity, efficiency, security, reliability, elastic scalability of processing power, and reduction of the difficulty of development and operation and overall IT costs. It provides a comprehensive business service platform for various Internet users, integrates the three core elements of Internet applications: computing, storage, and network, and provides public Internet infrastructure services. The service construction method of this application can be implemented based on cloud servers.
[0034] 2. Cloud technology refers to a hosting technology that unifies hardware, software, network and other resources in a wide area network or local area network to realize data computing, storage, processing and sharing. Cloud technology is a general term for network technology, information technology, integration technology, management platform technology, application technology, etc. based on the cloud computing business model. It can form a resource pool and be used on demand, which is flexible and convenient. Cloud computing technology will become an important support. The background services of technical network systems require a large amount of computing and storage resources, such as video websites, picture websites and more portal websites. With the high development and application of the Internet industry, each item may have its own identification mark in the future, and it needs to be transmitted to the background system for logical processing. Data of different levels will be processed separately. All kinds of industry data need strong system backing support, which can only be achieved through cloud computing.
[0035] Cloud computing is a computing model that distributes computing tasks on a resource pool composed of a large number of computers, allowing various application systems to obtain computing power, storage space and information services as needed. The network that provides resources is called a "cloud". From the user's perspective, the resources in the "cloud" are infinitely scalable and can be obtained at any time, used on demand, expanded at any time, and paid for by use.
[0036] 3. Elevator: A means of transportation used to move people, goods or other objects, enabling people or objects to move quickly between different locations and floors within a building.
[0037] The safety of elevator operation is directly related to the life safety of passengers. By performing functional tests on elevators (for example, testing the elevator's call function and floor selection function, etc.), the safety performance of the elevator can be determined, the elevator's operating efficiency can be improved, and potential failures can be prevented.
[0038] Elevator testers (elevator inspectors or elevator inspectors, etc.) usually test and control the various functions of the elevator (for example, the opening and closing of elevator doors, emergency stops, etc.) on the elevator test bench. In order to ensure the safety of elevator operation, elevator testers need to manually test each function of the elevator one by one. Due to the many functions of the elevator, the required testing time is long and the testing efficiency is low. In addition, due to the high cost of the test bench, it is difficult to move the test bench after it is made, resulting in high cost of measurement and control.
[0039] In order to solve the above technical problems, the embodiments of the present application provide a function testing method and electronic equipment for an elevator.
[0040] The following is an introduction to the application scenarios of the technical solution of the present application. The function test method of the elevator provided by the present application can be applied to the following scenarios: Figure 1 The test system shown.
[0041] like Figure 1 As shown, the test system 1000 includes an electronic device 100 and an elevator 200 , and the electronic device 100 is connected to the elevator 200 .
[0042] In one embodiment, the elevator 200 includes a control cabinet 201, which can be used to control the operating status of the elevator 200, monitor and protect the elevator 200, etc. (for example, by receiving signals from sensors installed on the elevator 200, the position, speed and load of the elevator 200 can be monitored; for example, fault detection can be performed on the elevator 200 to protect the elevator 200, etc.).
[0043] In one embodiment, the test system 1000 further includes a control panel 300 , which is connected to both the electronic device 100 and the elevator 200 ; or, the elevator 200 includes a control panel 300 and a control cabinet 201 , which is connected to both the electronic device 100 and the control cabinet 201 .
[0044] Optionally, the control board 300 may be a programmable logic controller (PLC) or the like.
[0045] In one embodiment, the electronic device 100 may include a terminal (eg, including a management terminal 101 and a test terminal 102 ), and / or a server 103 (which may be used to store test scripts, etc.).
[0046] Optionally, the terminal may be, but is not limited to, various personal computers (PCs), laptops, smart phones, tablet computers, and portable wearable devices. The server may be an independent physical server, or a server cluster or distributed system consisting of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The embodiments of the present application do not limit this.
[0047] In one embodiment, the electronic device 100 may include a management terminal 101 and a test terminal 102. For example, multiple test scripts may be set in the management terminal 101, and then the test scripts may be run through the test terminal 102 to control the elevator to execute various functions to be tested, thereby testing the functions of the elevator.
[0048] The functional testing method of the elevator of this application will be described in detail below:
[0049] See also Figure 1 and Figure 2 The embodiment of the present application provides a function test method for an elevator. The method is applied to an electronic device, where the electronic device includes a management terminal, a server, and a test terminal. The function test method for the elevator includes:
[0050] Step 011: Obtain a test script for testing the function to be tested of the elevator.
[0051] Optionally, the functions to be tested of the elevator include at least one of an emergency electric function, a ride function, an operation control function, a door control function, a command management function, and an indication management function.
[0052] Among them, the emergency electric function can be a function of controlling the elevator to move safely to return to the leveling floor when the elevator fails or other emergency situations occur and the elevator's safety circuit is disconnected. For example, it can be a function of short-circuiting part of the safety circuit so that the elevator can run at a low speed and return to the leveling floor.
[0053] Among them, the transportation function can be the function of the elevator to move users or goods to another place or another floor.
[0054] Among them, the operation control function may include control functions such as the elevator's running direction control and the elevator's moving speed.
[0055] Among them, the door control function may include the opening and closing control of the elevator door of the elevator.
[0056] The command management function may include a function for managing various elevator commands (eg, elevator call commands, lighting commands, etc.).
[0057] Among them, the indication management function may include the floor indication function in the elevator, the indication function of the elevator's operating status (operating direction, etc.), etc.
[0058] Optionally, the test script includes at least one of a Lua script, a Python script, and a JavaScript script.
[0059] Among them, the test script can be used to verify whether the elevator can operate normally under different conditions. Lua script is a scripting language written in standard C language. It is small in size after compilation and easy to embed in other programs. Python script is a program written in Python programming language, which can be used for tasks such as automation tasks, data processing and cross-platform operation. JavaScript script is an object-based and event-driven scripting language.
[0060] Specifically, multiple test scripts can be written for the elevator. The test scripts can be used to detect whether the various functions of the elevator can operate normally. Different test scripts can test different functions to be tested, and the test scripts correspond to the functions to be tested. According to the function to be tested, obtain the test script corresponding to the function to be tested. For example, taking the function to be tested as the door control function as an example, the test script corresponding to the door control function can be obtained. For another example, taking the electronic device including a cloud server as an example, the server can store multiple test scripts. When it is necessary to detect the function of the elevator, the test script of the function to be tested of the elevator can be obtained from the server through the communication between the management terminal (or test terminal) and the server.
[0061] See also Figure 3 Optionally, step 011: obtaining a test script for testing the function to be tested of the elevator, including:
[0062] Step 0111: calling the management interface to display the test task interface;
[0063] Step 0112: Obtain the target object's input to the test task interface to create a test task or edit an existing test task;
[0064] Step 0113: Based on the triggering condition of the test task, trigger the test task to obtain a test script corresponding to the task to be tested that the test task needs to test.
[0065] The target object may be a user, etc.
[0066] The test task may include one or more functions to be tested of the elevator, for example, the test task is obtained by arranging multiple functions to be tested. The target object (user) can create, edit, and modify the test task through the test task interface of the elevator.
[0067] The trigger condition may be a condition for starting a test task, etc.
[0068] Specifically, the electronic device including a management terminal, a test terminal and a server is used as an example for explanation. The server can store multiple test scripts, and the server is provided with a management interface for test tasks. The management terminal can display the test task interface on the display screen of the management terminal by calling the management interface, and the test tasks available for user selection in the interface displayed by the test task interface correspond to the test scripts stored in the server. The target object (user) can interact with the display screen of the management terminal to edit or sort the functions to be tested displayed on the test task interface, thereby creating a test task or editing a test task, and then trigger the test task when the triggering condition of the test task is met to obtain the test scripts of each function to be tested included in the test task.
[0069] For example, the user uses the display screen of the management terminal to choose to test the emergency electric function and the passenger transportation function of the elevator in sequence in the test task interface. In response to the user's input instructions in the test task interface, a test task including testing the emergency electric function and the passenger transportation function is created. It is assumed that the trigger condition includes a trigger instruction input by the user. When the trigger instruction is received, the test task is triggered to obtain the test scripts for the emergency electric function and the passenger transportation function.
[0070] Step 012: Run the test script to control the elevator to execute the function to be tested.
[0071] Specifically, the test terminal can be connected to the cloud server for communication. When the test terminal obtains the test script of the elevator's function to be tested from the cloud server, the test terminal can run the test script to control the elevator to execute the function to be tested (for example, the test terminal can be provided with an interface for communication with the elevator, and the interface controls the elevator's controller to execute the function to be tested to complete the detection).
[0072] Step 013: Determine the test result of the function to be tested based on the operation data when the elevator performs the function to be tested.
[0073] Among them, the operating data may include the operating status of the elevator (such as up, down, etc.), various parameters of the elevator (such as elevator door opening, elevator door closing, duration of a certain working condition of the elevator, etc.).
[0074] The test result may include that the function to be tested corresponding to the test script meets the requirements (including operation requirements, safety requirements, etc.); or the function to be tested corresponding to the test script does not meet the requirements, etc.
[0075] Specifically, by presetting preset operating data corresponding to each function to be tested, when the elevator is controlled to perform the function to be tested, the operating data of the elevator when performing the function to be tested is obtained, and the operating data is compared with the preset operating data to determine the test result of the function to be tested of the elevator.
[0076] In this way, by obtaining a test script for testing the function to be tested of the elevator, and running the test script to control the elevator to execute the function to be tested, the function of the elevator is tested, and finally based on the operating data when the elevator executes the function to be tested, the test result of the function to be tested is determined (for example, by recording and analyzing the operating data to determine the completion degree and safety of the elevator running the function, etc.), since the test script can cover a variety of usage scenarios of the elevator, that is, it can test a variety of functions of the elevator, it can achieve an improvement in the test coverage of the elevator, and the test script can be repeatedly executed, so the accuracy and reliability of the test results can also be ensured. The method of detecting the function to be tested of the elevator through the operating data when the elevator runs the test script can significantly improve the test efficiency and shorten the test cycle compared to the method of manually detecting each function of the elevator one by one. In addition, the test method of the present application does not need to be implemented through an additional test bench, so it can also save test costs.
[0077] See also Figure 4 In some embodiments, the elevator includes a control cabinet. Step 012: running a test script to control the elevator to perform a function to be tested, including:
[0078] Step 0121: Run the test script and send control instructions to the control cabinet through the connected control panel to control the elevator to execute the function to be tested through the control cabinet.
[0079] The elevator may include a control panel, which is communicatively connected to a control cabinet of the elevator; or the control panel may be independently provided with the elevator.
[0080] Specifically, when the test terminal runs the test script, the test terminal can be connected to the control board (for example, the test terminal can be connected to the control board and send a control signal to the control board), and the control board responds to the control signal to send a control instruction to the control cabinet of the elevator, thereby controlling the elevator to execute the function to be tested through the control cabinet.
[0081] For example, the function to be tested includes the power-off safety function in the operation control function of the elevator. The power-off safety function may refer to the function that when the elevator is disconnected from the power supply (for example, the power supply relay is disconnected, etc.), the elevator controls the elevator to return to the base station or level (such as the level with the smallest distance from the current position) to open the elevator door for passengers to leave the elevator through the backup energy (for example, it may be the power failure emergency device (Automatic Rescuer Device, ARD)) to open the elevator door for passengers to leave the elevator. Therefore, in the case of running the test script of the operation control function of the elevator, (for example, it may be the test terminal) a control signal may be sent to the control panel, and the control panel responds to the control signal and sends a control instruction to the control cabinet (for example, sends a power-off instruction to the control cabinet), and the operation data of the elevator starting the backup energy, returning to the base station and opening the door (such as opening the door for 0 seconds) in the case of power failure is obtained to determine the test result of the operation control function of the elevator.
[0082] For another example, the earthquake emergency function in the elevator's transportation function is taken as an example. The earthquake emergency function can be a function that controls the elevator to return to the base station or level (such as the level with the smallest distance from the current position) to open the elevator door for passengers to leave the elevator when the earthquake detection device of the elevator detects an earthquake. Therefore, in the case of running the test script of the elevator's transportation function, (for example, it can be a test terminal) a control signal can be sent to the control panel, and the control panel responds to the control signal and sends a control instruction to the control cabinet (for example, an earthquake emergency instruction to the control cabinet), and the door opening and closing data and operation data of the elevator in the case of "demonstration earthquake" are obtained to determine the test result of the elevator's operation control function.
[0083] Similarly, for another example, the water level monitoring function in the elevator's riding function is used as an example for explanation. The water level monitoring function can be a function that controls the elevator to return to the base station or level (such as the level with the smallest distance from the current position) when the water level detection device of the elevator detects that there is water accumulation at the bottom of the elevator. Therefore, in the case of running the test script of the elevator's riding function, (for example, it can be a test terminal) a control signal can be sent to the control panel, and the control panel responds to the control signal and sends a control instruction to the control cabinet (for example, a water level emergency instruction to the control cabinet), to obtain the elevator's door opening and closing data and operation data in the case of "demonstrating the presence of water accumulation", and determine the test result of the elevator's operation control function.
[0084] See also Figure 5 In some embodiments, the elevator includes a communication device and a control cabinet. Step 012: running a test script to control the elevator to perform a function to be tested, including:
[0085] Step 0122: Run the test script to send an elevator call command to the communication device, and the communication device forwards the elevator call command to the control cabinet to control the elevator to execute the function to be tested through the control cabinet.
[0086] The elevator call instruction may be an instruction for requesting the elevator to reach an instruction floor, a designated location, or requesting the elevator to perform a certain operation (such as opening a door, etc.).
[0087] Specifically, the battery cabinet can receive an elevator call instruction (such as sent by an electronic device or an elevator call device) through a communication device. Through the communication connection between the electronic device (such as a test terminal) and the communication component (for example, through a controller area network (CAN) communication), when the test terminal runs a test script, the elevator call instruction can be sent to the communication device, and the communication device then forwards the elevator call instruction to the control cabinet, so as to control the elevator to execute the function to be tested through the control cabinet.
[0088] For example, the function to be tested includes the uniform deceleration and stopping function in the transportation function. The uniform deceleration function can be a function for the elevator to determine the target floor when receiving the elevator call command, and uniformly decelerate and stop when approaching the target floor. Therefore, when running the test script of the uniform deceleration and stopping function in the transportation function, (for example, it can be a test terminal) sends an elevator call command (assuming that it includes an instruction to call the elevator to go down on the 5th floor) to the communication device of the elevator, and the communication device then sends the elevator call command to the control cabinet, and the control cabinet controls the elevator to go to the 5th floor, and uniformly decelerates and stops when approaching the 5th floor.
[0089] For another example, the door opening function of the function to be tested includes the door control function. The door opening function can be a function of opening the elevator door to allow passengers to enter when the elevator is parked. When running a test script including the door closing function of the door control function, (for example, a test terminal) sends an elevator call instruction (assuming that it includes an instruction to open the elevator door of the current parking floor) to the communication device of the elevator, and the communication device then sends the elevator call instruction to the control cabinet, which controls the elevator to open the elevator door.
[0090] For another example, taking the elevator including the driver driving mode as an example, the driver driving mode can be a mode in which the driver directly controls the operation of the elevator (for example, an operation mode in which the driver controls the operation of the elevator through a terminal or a controller, etc.). By running the test script of the passenger function, the elevator can be tested in the driver driving mode. When it receives the control command (such as the door opening command) issued by the driver, the operation data of the elevator (whether the door is always open, etc.) can be tested to determine the test result of the function to be tested.
[0091] In addition, the electronic device can also modify the parameters of the elevator through the elevator's communication device (for example, modify the elevator's sleep time, door opening and closing time, etc.).
[0092] It can be understood that in the event of a communication failure between the test terminal and the communication device, in order to ensure the safety of the elevator operation, the elevator control cabinet can issue a fault alarm and control the elevator to stop running.
[0093] See also Figure 6 In some embodiments, the elevator includes a communication device and a control cabinet. Step 012: running a test script to control the elevator to perform a function to be tested, including:
[0094] Step 0123: Run the test script, send an elevator call command to the communication device and send a control command to the control cabinet through the connected control panel, so as to control the elevator to execute the function to be tested through the control cabinet.
[0095] Specifically, when the test terminal runs the test script, the test terminal can control the control cabinet through the control panel and the communication device, so that the elevator is controlled by the control cabinet to execute the function to be tested.
[0096] For example, let's take the test script of the elevator's transportation function as an example. Assume that under this test script, when the elevator is fully loaded and heading to the target floor, if the elevator receives an elevator call command, it will not respond. It will respond again after completing the transportation to the target floor. Therefore, when running this test script, assuming that the elevator is parked on the 1st floor, a call command for the 5th floor can be sent to the communication device through the test terminal, and an operation command from the 1st floor to the 2nd floor can be sent to the control cabinet through the control panel to indicate that the elevator is currently fully loaded. The test result of the transportation function is determined by obtaining the elevator's operating data under the current working conditions (such as whether it stops on the 2nd floor and then goes to the 5th floor).
[0097] See also Figure 7 In some embodiments, the elevator function test method further includes:
[0098] Step 014: Display test information, which includes each instruction sent during the running of the test script and the execution result after the elevator executes each instruction.
[0099] The instructions may include elevator call instructions, door opening and closing instructions, emergency call instructions, etc.
[0100] The execution result of each instruction may include whether the instruction has been executed, or whether the instruction is being executed.
[0101] Specifically, when the elevator executes various functions, the display screen of the electronic device and / or the display, indicator light, etc. of the elevator can display various instructions sent during the running of the test script and the execution results after the elevator executes each instruction.
[0102] For example, taking the test script of the door opening instruction management function of the running instruction management function as an example, when the test script runs to the point where the door opening instruction is sent to the communication device of the elevator, the display screen of the electronic device can display that the communication device of the elevator has received the door opening instruction, and during the process of the elevator controlling the door to open, the "door opening" icon is displayed. After the door is opened, the execution result of the test script is displayed: door opening completed.
[0103] In some embodiments, the control panel includes a plurality of first control interfaces, the control cabinet includes a plurality of second control interfaces, the first control interfaces and the second control interfaces are connected in a one-to-one correspondence, and the test script includes a function library function, and sends a control instruction to the control cabinet through the connected control panel, including:
[0104] (1) Based on the currently called function library function and test parameters, control the corresponding first control interface to send a control instruction to the connected second control interface;
[0105] (2) Generate an elevator call command based on the current test parameters.
[0106] Among them, the function library function refers to a type of function that encapsulates some common functions into functions, stores them in library files, and allows users to call them in programs. The function library function can be set in the server, and / or, in the management terminal, and / or, in the test terminal.
[0107] Specifically, the control panel includes a plurality of first control interfaces, and the control cabinet includes a plurality of second control interfaces. The first control interface and the second control interface are connected one by one to form a communication link. The test script includes a function library function to execute various control instructions and control operations. According to the function to be tested, according to the currently called function library function and the test parameters, the signal output by the first control interface is controlled, the first control interface is connected to the second control interface, the second control interface receives the control instruction corresponding to the signal output by the first control interface, and then controls the generation of the elevator call instruction according to the currently called function library function and the test parameters (the test parameters can be the number of target floors for the elevator to run, the execution time of any working condition of the elevator, and other parameters). For example, by setting the level signal output by the first control interface of the control panel to 1 (indicating that the elevator is fully loaded), the second control interface responds to the signal "1" of the first control interface, receives the control instruction for running under full load, and then generates the elevator call instruction for the 5th floor when the elevator is in a fully loaded state based on the "5th floor" in the test parameters.
[0108] For example, see Figure 8 When testing the function to be tested of the elevator, the target object (user) can set the test task on the display screen of the electronic device (such as the management terminal) and trigger the test task by clicking the test start button. The electronic device (such as the test terminal) obtains the test script through communication with the server, generates code according to the test script and executes the code (i.e., runs the test script) to control the elevator to perform the function to be tested, wherein the display screen of the electronic device can display test information to remind the user.
[0109] See also Fig. 9 In order to better implement the function test method of the elevator of the embodiment of the present application, the embodiment of the present application also provides a function test device 300. The function test device 300 includes an acquisition module 301, an operation module 302 and a determination module 303. The acquisition module 301 is used to acquire a test script for testing the function to be tested of the elevator; the operation module 302 is used to run the test script to control the elevator to perform the function to be tested; the determination module 303 is used to determine the test result of the function to be tested based on the operation data when the elevator performs the function to be tested.
[0110] In some embodiments, the elevator includes a control cabinet, and the operation module 302 is specifically used to run the test script, and send control instructions to the control cabinet through the connected control panel, so as to control the elevator to execute the function to be tested through the control cabinet.
[0111] In some embodiments, the elevator includes a communication device and a control cabinet, and the operation module 302 is specifically used to run a test script to send an elevator call command to the communication device, and the communication device forwards the elevator call command to the control cabinet to control the elevator to execute the function to be tested through the control cabinet.
[0112] In some embodiments, the elevator includes a communication device and a control cabinet, and the operation module 302 is specifically used to run the test script, send an elevator call command to the communication device and send a control command to the control cabinet through a connected control panel, so as to control the elevator to execute the function to be tested through the control cabinet.
[0113] In some embodiments, the functional testing device 300 further includes a display module 304, and the display module 304 is used to display test information, where the test information includes various instructions sent during the running of the test script and the execution results after the elevator executes each instruction.
[0114] In some embodiments, the control panel includes multiple first control interfaces, the control cabinet includes multiple second control interfaces, the first control interfaces and the second control interfaces are connected one-to-one, the test script includes function library functions, and the operation module 302 is specifically used to control the corresponding first control interface to send control instructions to the connected second control interface based on the currently called function library function and test parameters; and generate an elevator call instruction based on the current test parameters.
[0115] In some embodiments, the acquisition module 301 is also specifically used to call the management interface to display the test task interface; obtain the target object's input to the test task interface to create a test task or edit an existing test task; trigger the test task based on the trigger condition of the test task to obtain the test script corresponding to the task to be tested by the test task.
[0116] The above describes the device from the perspective of functional modules in conjunction with the accompanying drawings. The functional modules can be implemented in hardware form, can be implemented by instructions in software form, or can be implemented by a combination of hardware and software modules. Specifically, each step of the method implementation method in the embodiment of the present application can be completed by the hardware integrated logic circuit in the processor and / or the instructions in software form. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware coding processor to execute, or can be executed by a combination of hardware and software modules in the coding processor. Optionally, the software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps in the above method implementation method in conjunction with its hardware.
[0117] See also Figure 1The electronic device of the embodiment of the present application includes a terminal and / or a server, and the terminal can be used to execute the instructions of the elevator function test method described in any of the above embodiments. For the sake of brevity, it will not be repeated here.
[0118] See also Fig.10 The embodiment of the present application also provides a computer-readable storage medium 500 on which a computer program 510 is stored. When the computer program 510 is executed by a processor 520, the steps of the elevator functional testing method of any of the above-mentioned embodiments are implemented. For the sake of brevity, they are not repeated here.
[0119] In the description of this specification, the descriptions with reference to the terms "certain embodiments", "in an example", "exemplarily", etc., mean that the specific features, structures, materials or characteristics described in conjunction with the embodiments or examples are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.
[0120] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0121] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A functional testing method for an elevator, characterized in that: include: Obtaining a test script for testing the function to be tested of the elevator; Running the test script to control the elevator to execute the function to be tested; Based on the operation data when the elevator performs the function to be tested, a test result of the function to be tested is determined.
2. The function test method of an elevator according to claim 1, characterized in that: The elevator includes a control cabinet, and the running of the test script to control the elevator to perform the function to be tested includes: The test script is run, and control instructions are sent to the control cabinet through the connected control panel, so as to control the elevator to execute the function to be tested through the control cabinet.
3. The function testing method of an elevator according to claim 1, characterized in that: The elevator includes a communication device and the control cabinet, and the running of the test script to control the elevator to perform the function to be tested includes: The test script is run to send an elevator call instruction to the communication device, and the communication device forwards the elevator call instruction to the control cabinet to control the elevator to execute the function to be tested through the control cabinet.
4. The function testing method of an elevator according to claim 1, characterized in that: The elevator includes a communication device and the control cabinet, and the running of the test script to control the elevator to perform the function to be tested includes: The test script is run, an elevator call instruction is sent to the communication device, and a control instruction is sent to the control cabinet through a connected control panel, so as to control the elevator to execute the function to be tested through the control cabinet.
5. The function testing method of an elevator according to any one of claims 1 to 4, characterized in that: The method further comprises: The test information is displayed, wherein the test information includes each instruction sent during the running of the test script and the execution result after the elevator executes each instruction.
6. The function testing method of an elevator according to claim 2 or 4, characterized in that: The control panel includes a plurality of first control interfaces, the control cabinet includes a plurality of second control interfaces, the first control interfaces and the second control interfaces are connected in a one-to-one correspondence, the test script includes a function library function, and the control panel connected to send a control instruction to the control cabinet includes: Based on the function library function currently called and the test parameters, controlling the corresponding first control interface to send the control instruction to the connected second control interface; Generate an elevator call based on the current test parameters.
7. The function testing method of an elevator according to claim 1, characterized in that: The obtaining of a test script for testing the function to be tested of the elevator comprises: Call the management interface to display the test task interface; Obtaining the input of the target object to the test task interface to create the test task or edit the existing test task; Based on the triggering condition of the test task, the test task is triggered to obtain a test script corresponding to the task to be tested that the test task needs to test.
8. The function testing method of an elevator according to claim 1, characterized in that: The function to be tested includes at least one of an emergency electric function, a ride function, an operation control function, a door control function, an instruction management function, and an indication management function.
9. An electronic device, characterized in that: include: A terminal, and / or a server, wherein the terminal is used to execute the elevator function testing method according to any one of claims 1 to 8.
10. A non-volatile computer-readable storage medium containing a computer program, characterized in that: When the computer program is executed by a processor, the processor executes the elevator function testing method according to any one of claims 1 to 8.
Citation Information
Cited By
Local access control cabinet test method, system, equipment and medium
CN121433203A