Software testing device for escalator printing plate
By designing a software testing device for escalator printing boards, controlling and simulating all external interfaces of the escalator hardware system, the problems of incomplete testing coverage, low degree of automation and difficulty in long-term maintenance support in the prior art are solved, and efficient, comprehensive and automated software testing is achieved.
Patent Information
- Application Number
- CN202411736590.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-29
- Publication Date
- 2025-03-21
AI Technical Summary
The existing technology has problems such as incomplete test coverage, low degree of automation and difficulty in long-term maintenance and support in escalator printing board software testing, especially in a large number of hardware interfaces and complex scenarios in modern elevator systems, which are difficult to achieve comprehensive coverage and efficient automated testing.
A software testing device for escalator printing boards is designed, including relay output modules, IO input boards, IO output boards, pulse output boards, CAN communication boards, RS232 communication boards, relays and test systems. Through these hardware modules and software modules, all external interfaces of the escalator hardware system are simulated and controlled to achieve full coverage and automated testing.
It greatly reduces the preliminary preparation time for software testing, improves test coverage and quality, simplifies automated test development, shortens software iteration cycle, and supports long-term maintenance and support.
Smart Images

Figure CN119669070A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of escalators and moving walkways, and in particular to a software testing device for an escalator printing plate. Background Art
[0002] There are multiple problems with software testing for escalator printed boards in the existing technology: 1. Incomplete test coverage: In the fierce market competition, elevator manufacturers are under pressure to reduce costs and shorten time to market. How to control software testing costs and software iteration cycles while ensuring high quality is an important issue. Due to time pressure or resource constraints, it may not be possible to fully cover all functions and scenarios, and there may be a lack of sufficient test cases. In addition, since modern elevators contain a large number of hardware interfaces, some hardware interfaces may not be fully tested during the software testing process due to lack of resources, lack of sufficient test preparation or failure to consider complex situations such as boundary conditions. 2. Low degree of software testing automation and difficulty in developing automated tests: Compared with the IT field, traditional manufacturing is relatively lagging behind in the adoption of automated testing, which may lead to a long software iteration cycle and difficulty in quickly responding to market changes or user feedback. At the same time, modern elevator systems contain a large number of sensors, controllers and other electronic components, all of which need to be seamlessly integrated with the software, greatly increasing the difficulty of developing software testing automation. 3. Long-term maintenance and support: The life cycle of elevator systems is long and can usually run for decades. Software not only needs to pass rigorous testing at the time of initial deployment, but also needs to provide continuous support and updates throughout its service life to respond to new security threats and technological advances. In previous work, a set of available test environments was usually dismantled after the test cycle ended. This was inconvenient for dealing with the problem of software testing duplication caused by long-term software updates, and rebuilding a new test environment usually took a lot of time.
[0003] Therefore, how to provide a software testing technology solution for escalator printed boards that can replace all external interfaces of the escalator hardware system, cover more functions and scenarios, and improve the degree of automation of software testing is a technical problem currently faced. Summary of the invention
[0004] In order to solve the above technical problems, the present invention provides a software testing device for an escalator printed board, comprising a relay output module, an IO input board, an IO output board, a pulse output board, a CAN communication board, an RS232 communication board, a relay and a testing system;
[0005] The test system is connected with the relay output module, the IO input board, the IO output board, the pulse output board, the CAN communication board and the RS232 communication board;
[0006] The IO input board is connected to the relay, and the level output signal of the escalator printed board is transferred by the relay and then input into the IO input board;
[0007] The IO output board and the relay output module are connected to the relay, and the level output signals of the IO output board and the relay output module are transferred through the relay and then input into the level input interface of the escalator printed board;
[0008] The pulse output board is connected to the pulse input interface of the escalator printed board; the CAN communication board is connected to the CAN communication interface of the escalator printed board; the RS232 communication board is connected to the RS232 communication interface of the escalator printed board.
[0009] Preferably, the test system includes a software module and a test management software module; the software module simulates various external hardware or software signals of the escalator, and the software module includes a level signal input and output module, a pulse signal output module, a CAN signal communication module and an RS232 communication module; the test management software module automatically calls the software module and determines the returned data.
[0010] Preferably, the test management software module generates a test record of the current software test.
[0011] Preferably, the level signal input and output module includes an input signal reading module, an output signal generating module and a level signal automatic control module.
[0012] Preferably, the pulse signal output module includes a pulse generation module and a pulse signal automatic control module.
[0013] Preferably, the CAN signal communication module includes a CAN signal reading module, a CAN signal sending module, a CCAN protocol parsing module, an RCAN protocol parsing module and an ACAN protocol parsing module.
[0014] Preferably, the RS232 communication module includes an MTI batch reading or writing parameter module, an MTI modification memory module and an MTI batch monitoring memory module.
[0015] Compared with the prior art, the present invention has the following technical effects:
[0016] 1. The software testing device controls all external interfaces of the escalator hardware system, which greatly reduces the pre-preparation time of software testing and provides more testing time for software testing. The abundant time resources are conducive to improving the coverage of software testing. Since all hardware interfaces of the escalator system are controlled, it means that the test system can cover all functions and scenarios, so that software testing can be considered more comprehensively and more complex situations can be considered, thereby improving the quality of software testing.
[0017] 2. Since all external interfaces of the escalator hardware system are controlled by the software testing device, the development of software testing automation can be concentrated on a unified platform, making software testing automation possible and greatly reducing the development difficulty and cost of software testing automation, which is conducive to improving the degree of software testing automation.
[0018] 3. The establishment of a more complete overall test environment is also conducive to developers to quickly test the functionality and correctness of new programs in the complete system, and it is also convenient for developers to maintain software for a long time and improve the iteration efficiency of the software; in addition, a stable test environment is also conducive to the reproduction and repetition of tests. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments:
[0020] Figure 1 It is a structural schematic diagram of the software testing device for escalator printed circuit board of Example 1. DETAILED DESCRIPTION
[0021] The following describes the implementation methods of the present invention through specific specific embodiments, and those skilled in the art can fully understand other advantages and technical effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through different specific implementation methods, and the details in this specification can also be applied based on different viewpoints, and various modifications or changes can be made without deviating from the overall design concept of the invention. It should be noted that the following embodiments and the features in the embodiments can be combined with each other in the absence of conflict. The following exemplary embodiments of the present invention can be implemented in a variety of different forms and should not be interpreted as being limited to the specific embodiments described herein. It should be understood that these embodiments are provided to make the disclosure of the present invention thorough and complete, and to fully convey the technical solutions of these exemplary specific embodiments to those skilled in the art.
[0022] Example 1
[0023] like Figure 1 As shown, this embodiment provides a software testing device for an escalator printed board, including a relay output module, an IO input board, an IO output board, a pulse output board, a CAN communication board, an RS232 communication board, a relay and a test system;
[0024] The test system is connected with the relay output module, the IO input board, the IO output board, the pulse output board, the CAN communication board and the RS232 communication board;
[0025] The IO input board is connected to the relay, and the level output signal of the escalator printed board is transferred by the relay and then input into the IO input board;
[0026] The IO output board and the relay output module are connected to the relay, and the level output signals of the IO output board and the relay output module are transferred through the relay and then input into the level input interface of the escalator printed board;
[0027] The pulse output board is connected to the pulse input interface of the escalator printed board; the CAN communication board is connected to the CAN communication interface of the escalator printed board; the RS232 communication board is connected to the RS232 communication interface of the escalator printed board.
[0028] More specifically, the IO input board uses PXI-6511 and PXI-6528, the IO output board uses PXI-6513 and PXI-6528, the pulse output board uses PXI-6624, the CAN communication board uses PXI-8513, the RS232 communication board uses PXI-8432 / 4, the relay output module uses Mitsubishi relay output module QY10, and the relay uses WAGO relay 859-304. Other related peripheral hardware includes NI PXIe chassis PXIe-1088, NI controller board PXIe-8861, 100-pin junction box SCB-100A, Mitsubishi power module Q62P, Mitsubishi controller module Q02UCPU, etc.; PXIe-1088 and PXIe-8861 are used to form a host with 8 PXIe interfaces, and the NI-PXIe series boards are connected to the host through the PXIe interface; the IO input board and IO output board are connected to the relay with the help of the 100-pin junction box SCB-100A; the Mitsubishi relay output module QY10 communicates with the NI-PXIe host with the help of the Mitsubishi controller module Q02UCPU, and is powered by the Mitsubishi power module Q62P.
[0029] Since there is a 48V signal in the escalator output signal, the 48V signal cannot be directly connected to the NI board. Therefore, the input and output signals of the escalator are connected to the NI board through relays. This approach also decouples the test system and the system under test.
[0030] Compared with the traditional method of temporarily disassembling and assembling some hardware interfaces before testing, this test device can save about a week of preparatory work for software testing because the hardware interfaces are connected in advance, leaving more time for subsequent software testing. Moreover, since all interfaces have been connected to the test system and can be freely controlled, all test scenarios can be covered, and testers can also consider more comprehensive, even considering more complex test scenarios such as signal combinations and boundary conditions, which is conducive to improving the quality of software testing. Finally, since all hardware interfaces are connected and this test platform uses NI and Mitsubishi hardware, this paves the way for the subsequent use of LabVIEW and C# software platforms, and is the basis for programming and test automation of subsequent test software modules.
[0031] Example 2
[0032] This embodiment further describes the test system in detail on the basis of Embodiment 1. The test system of this embodiment includes a software module and a test management software module. Specifically, the software module is a test software developed by programming using LabVIEW and C# software platform. The test management software module uses TestStand software to automatically call the module and automatically determine the returned results, thereby realizing the automated operation of software testing and greatly shortening the software testing cycle. Traditional testing methods usually require a testing cycle of about 1 to 3 months for a test scale of about 200 test cases; while this test system only requires a testing cycle of about 2 to 6 weeks when the software module does not need to be reprogrammed. The testing cycle is shortened to half of that of traditional testing, and the testing efficiency is doubled.
[0033] According to the signal type of the escalator, the software module simulates various external hardware or software signals of the escalator. The software module includes a level signal input and output module, a pulse signal output module, a CAN signal communication module and an RS232 communication module.
[0034] The level signal input and output module includes an input signal reading module, an output signal generation module, and a level signal automatic control module. These software modules realize automatic control of the escalator level signal. The test personnel can also change the level and duration of the level signal at will through the software to cover all switch test scenarios. The level signal input and output module connects to PXI-6511, PXI-6513, and PXI-6528 boards.
[0035] The pulse signal output module includes a pulse generation module and a pulse signal automatic control module. These software modules realize automatic control of the escalator pulse signal. The tester can also change the frequency, duty cycle and initial delay of the pulse signal at will through the software to simulate all test scenarios of each sensor. The pulse signal output module is connected to the PXI-6624 board.
[0036] The CAN signal communication module includes a CAN signal reading module, a CAN signal sending module, a CCAN protocol parsing module, an RCAN protocol parsing module, and an ACAN protocol parsing module. These software modules enable the monitoring function of the escalator CAN signal. The tester can monitor the escalator's CAN signal data in real time, and can also simulate the sending of CAN signals at will and view the response of the software under test, thereby achieving software testing of the CAN signal. In addition, by performing different protocol parsing on the CAN signal, the readability of the CAN signal is increased, and important information support is also provided for software automation testing. The CAN signal communication module is connected to the PXI-8513 board.
[0037] The RS232 communication module includes the MTI (Maintenance Tools Interface) batch reading or writing parameter module, the MTI memory modification module, and the MTI batch monitoring memory module. These software modules enable batch modification of escalator parameters and batch monitoring of memory. Testers can modify escalator parameters, monitor memory values, and have a clear understanding of the overall operating status of the escalator. In addition, batch parameter modification and memory monitoring are also the premise and foundation of software test automation, providing important software modules for subsequent automation platforms. The RS232 signal communication module connects to the PXI-8432 / 4 board.
[0038] Finally, through the test management software module TestStand, the above software modules are automatically called, and the returned data and results are automatically judged by programming, so as to realize the automated operation of software testing. In addition, TestStand software can automatically generate test records for the current software test according to customized requirements, which is convenient for future viewing and reproduction, and further improves the automation level of the entire software testing, saves the time of test personnel to improve test records, and shortens the overall cycle of software testing.
[0039] The present invention has been described in detail above through specific implementation modes and embodiments, but these do not constitute limitations of the present invention. Without departing from the principles of the present invention, those skilled in the art may also make many variations and improvements, which should also be regarded as the protection scope of the present invention.
Claims
1. A software testing device for escalator printed circuit boards, characterized in that: Including relay output module, IO input board, IO output board, pulse output board, CAN communication board, RS232 communication board, relay and test system; The test system is connected with the relay output module, the IO input board, the IO output board, the pulse output board, the CAN communication board and the RS232 communication board; The IO input board is connected to the relay, and the level output signal of the escalator printed board is transferred by the relay and then input into the IO input board; The IO output board and the relay output module are connected to the relay, and the level output signals of the IO output board and the relay output module are transferred through the relay and then input into the level input interface of the escalator printed board; The pulse output board is connected to the pulse input interface of the escalator printed board; the CAN communication board is connected to the CAN communication interface of the escalator printed board; the RS232 communication board is connected to the RS232 communication interface of the escalator printed board.
2. The software testing device for escalator printed circuit board according to claim 1, characterized in that: The test system includes a software module and a test management software module; the software module simulates various external hardware or software signals of the escalator, and the software module includes a level signal input and output module, a pulse signal output module, a CAN signal communication module and an RS232 communication module; the test management software module automatically calls the software module and determines the returned data.
3. The software testing device for escalator printed circuit board according to claim 2, characterized in that: The test management software module generates a test record for the current software test.
4. The software testing device for escalator printed circuit board according to claim 2, characterized in that: The level signal input and output module includes an input signal reading module, an output signal generating module and a level signal automatic control module.
5. The software testing device for escalator printed circuit board according to claim 2, characterized in that: The pulse signal output module includes a pulse generation module and a pulse signal automatic control module.
6. The software testing device for escalator printed circuit board according to claim 2, characterized in that: The CAN signal communication module includes a CAN signal reading module, a CAN signal sending module, a CCAN protocol parsing module, an RCAN protocol parsing module and an ACAN protocol parsing module.
7. The software testing device for escalator printed circuit board according to claim 2, characterized in that: The RS232 communication module includes the MTI batch read or write parameter module, the MTI modify memory module and the MTI batch monitor memory module.