Method, device and equipment for testing central controller
By providing a central controller test method with automatic, single-function and single-object test modes and automatically generating test parameters, the problem of low efficiency in central controller maintenance testing is solved, and efficient and low-cost testing is achieved.
Patent Information
- Application Number
- CN202510813103.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-18
- Publication Date
- 2025-09-26
AI Technical Summary
The maintenance and testing efficiency of the central controller is low, the wiring is cumbersome, and the cooperation of the operation department is required, which affects the safe operation and operation services of subway trains.
A central controller testing method is provided, which includes automatic testing, single-function testing and single-object testing modes, automatically generates test parameters, reduces manual intervention and improves test efficiency.
It realizes flexible and efficient central controller testing, improves testing efficiency, reduces testing costs, and solves the problems of cumbersome wiring and coordination with the operations department.
Smart Images

Figure CN120704285A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of central controller testing, and in particular to a central controller testing method, device and equipment. Background Art
[0002] As the core control component of the public address system, the central controller (CCU) serves as the passenger user interface for the subway vehicle public address system. It provides passengers with operational information (such as the current route, stations, and alternate routes). It also serves as a crucial channel for driver-passenger interaction (e.g., emergency intercoms and driver announcements). With the rapid development of urban rail transit, the maintenance and testing of CCUs are crucial to the safe operation of subway trains. As subway trains age, the failure rate of CCUs increases dramatically. The shortage of spare parts severely impacts the supply of trains to the main line and disrupts external operations.
[0003] However, the wiring of the central controller is complicated and the test data is large during maintenance and testing. After maintenance, the operation department still needs to cooperate with debugging, resulting in low testing efficiency. Therefore, a central controller needs a testing method for the central controller after maintenance to improve testing efficiency. Summary of the Invention
[0004] In order to overcome the shortcomings of the prior art, the purpose of the present invention is to provide a testing method, device and equipment for a central controller, which can test the central controller without the cooperation of the operation department, thereby improving the testing efficiency and providing testing in different modes to better meet the different testing requirements of the central controller.
[0005] In order to solve the above technical problems, the present invention is implemented according to the following scheme:
[0006] A central controller testing method is provided, comprising:
[0007] Get the test pattern;
[0008] When the test mode is an automatic test mode, determining a plurality of test objects having a test sequence, and determining test items for performing different functional tests on the test objects according to the test objects;
[0009] When the test mode is a single-function test mode, determining test items with different function types, and determining objects with the function types as test objects according to the test items;
[0010] When the test mode is a single-object test mode, determining a test object among multiple objects, and determining test items for performing different functional tests on the test object based on the test object;
[0011] Determining test parameters according to the test items and the test object;
[0012] A functional test is performed on the test object according to the test parameters to determine a test result indicating a working status of the test object.
[0013] Compared with the prior art, the beneficial effects of the testing method of a central controller of the present invention are as follows: by providing three test modes: automatic testing, single-function testing and single-object testing, flexible and efficient testing of the central controller is achieved, the test efficiency is improved, and precise testing can be performed on specific functions or objects; and the test results are obtained by automatically generating test parameters, which solves the problems of cumbersome wiring and the need for cooperation from the operation department in traditional testing, reduces manual intervention, and effectively reduces testing costs.
[0014] Optionally, the central controller includes an output module, an input module, and a communication module; when the test mode is an automatic test mode, determining a plurality of test objects having a test sequence includes:
[0015] The output module, the input module and the communication module are taken as test objects, and the test sequence is to test the output module, the input module and the communication module in sequence.
[0016] Optionally, determining test items for performing different functional tests on the test object based on the test object includes:
[0017] Determining the functions to be tested and the corresponding function types possessed by the test object;
[0018] According to the function to be tested, a test item having the function type is determined.
[0019] Optionally, when the test mode is a single-function test mode, determining test items with different function types includes:
[0020] Get the target function and the corresponding target function type;
[0021] According to the target function, a test item having the target function type is determined.
[0022] Optionally, the central controller includes an output module, an input module, and a communication module; and according to the test item, determining an object having the function type as a test object includes:
[0023] The output module, the input module and the communication module are used as objects to be tested;
[0024] Obtaining the function to be tested possessed by the object to be tested;
[0025] According to the target function and the function to be tested, the test object is determined from the object to be tested having the target function.
[0026] Optionally, the central controller includes an output module, an input module, and a communication module; when the test mode is a single-object test mode, determining a test object from among multiple objects includes:
[0027] The output module, the input module and the communication module are used as objects to be tested;
[0028] A target object is obtained, and an object to be tested that is the same as the target object is determined as the test object.
[0029] Optionally, determining test items for performing different functional tests on the test object based on the test object includes:
[0030] Determining the functions to be tested and the corresponding function types possessed by the test object;
[0031] According to the function to be tested, a test item having the function type is determined.
[0032] Optionally, determining test parameters according to the test item and the test object includes:
[0033] Obtaining initial parameters of the test object;
[0034] The test parameters are determined according to the test items and the initial parameters.
[0035] A central controller test device is also provided, which is applied to the central controller test method described above, and includes:
[0036] Data acquisition module, used to:
[0037] Get the test pattern;
[0038] When the test mode is an automatic test mode, determining a plurality of test objects having a test sequence, and determining test items for performing different functional tests on the test objects according to the test objects;
[0039] When the test mode is a single-function test mode, determining test items with different function types, and determining objects with the function types as test objects according to the test items;
[0040] When the test mode is a single-object test mode, determining a test object among multiple objects, and determining test items for performing different functional tests on the test object based on the test object;
[0041] Determining test parameters according to the test items and the test object;
[0042] The test module is used to perform a functional test on the test object according to the test parameters, and determine a test result indicating a working status of the test object.
[0043] A computer device is also provided, comprising a processor and a memory, wherein the memory stores at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by the processor to implement the testing method of a central controller. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 Flowchart of the testing method of the present invention. DETAILED DESCRIPTION
[0045] The preferred embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.
[0046] When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims. In the description of the present application, it should be understood that the terms "first", "second", "third", etc. are only used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence, nor can they be understood as indicating or implying relative importance. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to the specific circumstances.
[0047] See also Figure 1 As shown, a central controller testing method of the present invention includes:
[0048] S1: Obtain a test mode, wherein the test mode includes an automatic test mode for performing all functional tests on all modules in the central controller, a single function test mode for performing a target function test on an object with a target function in the central controller, and a single object test mode for performing all functional tests on a target object in the central controller.
[0049] S2: Determine the test object and test items according to the test mode. In one embodiment of the present invention, step S2 includes:
[0050] Step S201: When the test mode is the automatic test mode, a plurality of test objects having a test sequence are determined, and according to the test objects, test items for performing different functional tests on the test objects are determined.
[0051] In one embodiment of the present invention, the central controller includes an output module, an input module and a communication module, wherein the output module includes 13 output circuits, the input module includes 12 input circuits, and the communication module includes 4 communication circuits; when the test mode is an automatic test mode, multiple test objects with a test sequence are determined, including: taking the output module, input module and communication module as test objects, and the test sequence is to test the output module, input module and communication module in turn.
[0052] According to the test object, the test items for performing different functional tests on the test object are determined, including: determining the functions to be tested and the corresponding function types of the test object, the functions to be tested of the output module include the output function, and the corresponding function type is the output type; the functions to be tested of the input module include the input function, and the corresponding function type is the input type; the functions to be tested of the communication module include the input function (receiving) and the output function (sending), the function type corresponding to the input function is the receiving type, and the function type corresponding to the output function is the sending type; according to the functions to be tested, the test items with functional types are determined; when the function to be tested is an output function, the test items include generating a level output signal for controlling the output module to output a target level, and a data packet sending signal for controlling the communication module to send a target data packet, so as to test whether the output module correctly outputs the target level and whether the communication module correctly sends the target data packet; when the function to be tested is an input function, the test items include generating a target level signal sent to the input module and a target data packet sent to the communication module, so as to test whether the signal output by the input module is consistent with the target level signal and whether the data packet received by the communication module is the same as the target data packet.
[0053] Step S202: When the test mode is a single-function test mode, test items with different function types are determined, and objects with the function types are determined as test objects according to the test items.
[0054] In one embodiment of the present invention, when the test mode is a single-function test mode, test items with different function types are determined, including: obtaining a target function and a corresponding target function type; determining a test item with a target function type based on the target function; wherein the target function includes an output function and an input function, the function type corresponding to the output function is an output type or a sending type, and the function type corresponding to the input function is an input type or a receiving type; when the target function is an output function, the test item includes generating a level output signal for controlling the output module to output a target level, and a data packet sending signal for controlling the communication module to send a target data packet, so as to test whether the output module correctly outputs the target level (output type) and whether the communication module correctly sends the target data packet (sending type); when the target function is an input function, the test item includes generating a target level signal sent to the input module and a target data packet sent to the communication module, so as to test whether the signal output by the input module is consistent with the target level signal (input type) and whether the data packet received by the communication module is the same as the target data packet (receiving type).
[0055] The central controller includes an output module, an input module and a communication module, wherein the output module includes 13 output circuits, the input module includes 12 input circuits, and the communication module includes 4 communication circuits; according to the test items, objects with functional types are determined as test objects, including: taking the output module, input module and communication module as the objects to be tested; obtaining the functions to be tested of the objects to be tested; according to the target function and the functions to be tested, determining the test object of the objects to be tested with the target functions, the functions to be tested of the output module include the output function, the functions to be tested of the input module include the input function, and the functions to be tested of the communication module include the input function and the output function; when the target function is the input function, the input module and the communication module are taken as test objects; when the target function is the output function, the output module and the communication module are taken as test objects.
[0056] Step S203: When the test mode is a single-object test mode, a test object is determined from among the multiple objects, and test items for performing different functional tests on the test object are determined according to the test object.
[0057] In one embodiment of the present invention, a central controller includes an output module, an input module, and a communication module; when the test mode is a single-object test mode, a test object is determined among multiple objects, including: taking the output module, the input module, and the communication module as objects to be tested, wherein the output module includes 13 output circuits, the input module includes 12 input circuits, and the communication module includes 4 communication circuits; obtaining a target object, and determining the object to be tested that is the same as the target object as the test object.
[0058] According to the test object, test items for performing different functional tests on the test object are determined, including: determining the function to be tested and the corresponding function type of the test object; determining the test items with functional types according to the function to be tested; when the test object is an output module, the function to be tested it has is the output function, and the corresponding function type is the output type, and the test items include generating a level output signal for controlling the output module to output a target level, so as to test whether the output module correctly outputs the target level (output type); when the test object is an input module, the function to be tested it has is the input function, and the corresponding function type is the input type, and the test items include generating a target level signal sent to the input module, so as to test whether the signal output by the input module is consistent with the target level signal (input type); when the test object is a communication module, the functions to be tested it has are the input function and the output function, the function type corresponding to the input function is the receiving function, and the function type corresponding to the output function is the sending function, and the test items include generating a data packet sending signal for controlling the communication module to send a target data packet, sending a target data packet to the communication module, so as to test whether the communication module correctly sends the target data packet (sending type), and testing whether the data packet received by the communication module is the same as the target data packet (receiving type).
[0059] S3: Determine test parameters according to the test items and the test object, including: obtaining initial parameters of the test object; and determining test parameters according to the test items and the initial parameters.
[0060] The test objects include the output module (13 output loops), the input module (12 input loops) and the communication module (4 communication loops). The test items include generating a level output signal for controlling the output module to output the target level, generating a data packet sending signal for controlling the communication module to send the target data packet, generating a target level signal sent to the input module, and sending a target data packet to the communication module, so as to test whether the output module correctly outputs the target level, whether the communication module correctly sends the target data packet, whether the signal output by the input module is consistent with the target level signal, and whether the data packet received by the communication module is the same as the target data packet.
[0061] The initial parameters of the output module include but are not limited to the initial level state and the maximum output current. The test parameters used to test the output module include the duration of the level output signal and the output current threshold. The test parameters are determined based on the test items and the initial parameters, including: determining the duration of the level output signal based on the initial level state and the target level of the output module to determine whether the output module can stably output the target level. If the target level cannot be stably output, the output module is abnormal; and using the maximum output current as the output current threshold to determine whether the current output by the output module exceeds the output current threshold. If it exceeds, the output module is abnormal.
[0062] The initial parameters of the input module include but are not limited to the maximum input voltage. The test parameters used to test the output module include the level voltage of the target level signal. The test parameters are determined according to the test items and the initial parameters, including: based on the maximum input voltage, determining the high level voltage (lower than the maximum input voltage) and low level voltage of the target level signal to determine whether the input module can correctly output the level state. If the level state cannot be output correctly, the input module is abnormal.
[0063] The initial parameters of the communication module include but are not limited to the communication protocol type, baud rate, data bits, stop bits, and check mode. The test parameters used to test the communication module include the data packet format, content and sending frequency of the target data packet, and the start bit, data bit, stop bit, check bit and end bit of the data packet format; according to the test items and the initial parameters, the test parameters are determined, including: according to the communication protocol type and baud rate, the data packet format, content and sending frequency of the target data packet are determined, and according to the data bit, stop bit and check mode, the start bit, data bit, stop bit, check bit and end bit of the data packet format are determined.
[0064] S4: Performing a functional test on the test object according to the test parameters, and determining a test result indicating a working status of the test object.
[0065] The process of functional testing the output module is as follows: control the output module to output a level output signal of the target level, and the output time is equal to the duration in the test parameters. When the level state output by the output module is different from the target level, and / or the output level voltage exceeds the output current threshold, the test result is that the output module is abnormal, and the abnormality is indicated by a red light, and normal is indicated by a green light.
[0066] The process of functional testing the input module is as follows: send target level signals of high level voltage and low level voltage to the input module in sequence. When the level received by the input module is different from the target level signal, the test result is that the input module is abnormal, and the abnormality is indicated by a red light, and normal is indicated by a green light.
[0067] The process of functional testing the communication module is as follows: control the communication module to output data packets. When the data packets output by the communication module are different from the target data packets (data packet format, content and sending frequency of the target data packet, start bit, data bit, stop bit, check bit and end bit of the data packet format), the test result is that the communication module is abnormal; send the target data packet to the communication module. When the data packet received by the input module is different from the target data packet, the test result is that the communication module is abnormal, and the abnormality is indicated by lighting up the red light and the normal is indicated by lighting up the green light.
[0068] The present invention provides three test modes: automatic testing, single-function testing, and single-object testing. This enables flexible and efficient testing of the central controller, improves test efficiency, and can accurately test specific functions or objects. It also obtains test results by automatically generating test parameters, solving the problems of cumbersome wiring and the need for cooperation from the operations department in traditional testing, reducing manual intervention, and effectively lowering testing costs.
[0069] A central controller testing device of the present invention is applied to the above-mentioned central controller testing method, comprising:
[0070] Data acquisition module, used to:
[0071] Get the test pattern;
[0072] When the test mode is an automatic test mode, determining a plurality of test objects having a test sequence, and determining test items for performing different functional tests on the test objects according to the test objects;
[0073] When the test mode is a single-function test mode, determining test items with different function types, and determining objects with the function types as test objects according to the test items;
[0074] When the test mode is a single-object test mode, determining a test object among multiple objects, and determining test items for performing different functional tests on the test object based on the test object;
[0075] Determine test parameters based on test items and test objects;
[0076] The test module is used to perform a functional test on the test object according to the test parameters and determine a test result indicating the working status of the test object.
[0077] A computer device of the present invention includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by the processor to implement the above-mentioned testing method.
[0078] The processor can be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
[0079] The memory can be used to store the computer program or module, and the processor implements the various functions of the test method by running or executing the computer program or module stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc.; the data storage area can store data created based on the use of the mobile phone, etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage device.
[0080] The above are only preferred embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application.
Claims
1. A central controller testing method, characterized in that: include: Get the test pattern; When the test mode is an automatic test mode, determining a plurality of test objects having a test sequence, and determining test items for performing different functional tests on the test objects according to the test objects; When the test mode is a single-function test mode, determining test items with different function types, and determining objects with the function types as test objects according to the test items; When the test mode is a single-object test mode, determining a test object among multiple objects, and determining test items for performing different functional tests on the test object based on the test object; Determining test parameters according to the test items and the test object; A functional test is performed on the test object according to the test parameters to determine a test result indicating a working status of the test object.
2. A central controller testing method according to claim 1, characterized in that: The central controller includes an output module, an input module, and a communication module; when the test mode is an automatic test mode, a plurality of test objects having a test sequence are determined, including: The output module, the input module and the communication module are taken as test objects, and the test sequence is to test the output module, the input module and the communication module in sequence.
3. A central controller testing method according to claim 2, characterized in that: Determine test items for performing different functional tests on the test object based on the test object, including: Determining the functions to be tested and the corresponding function types possessed by the test object; According to the function to be tested, a test item having the function type is determined.
4. A central controller testing method according to claim 1, characterized in that: When the test mode is a single-function test mode, test items with different function types are determined, including: Get the target function and the corresponding target function type; According to the target function, a test item having the target function type is determined.
5. A central controller testing method according to claim 4, characterized in that: The central controller includes an output module, an input module, and a communication module. According to the test items, an object with the function type is determined as a test object, including: The output module, the input module and the communication module are used as objects to be tested; Obtaining the function to be tested possessed by the object to be tested; According to the target function and the function to be tested, the test object is determined from the object to be tested having the target function.
6. A central controller testing method according to claim 1, characterized in that: The central controller includes an output module, an input module, and a communication module; when the test mode is a single-object test mode, determining a test object from among multiple objects includes: The output module, the input module and the communication module are used as objects to be tested; A target object is obtained, and an object to be tested that is the same as the target object is determined as the test object.
7. A central controller testing method according to claim 6, characterized in that: Determine test items for performing different functional tests on the test object based on the test object, including: Determining the functions to be tested and the corresponding function types possessed by the test object; According to the function to be tested, a test item having the function type is determined.
8. A central controller testing method according to claim 1, characterized in that: Determining test parameters based on the test items and the test object includes: Obtaining initial parameters of the test object; The test parameters are determined according to the test items and the initial parameters.
9. A central controller testing device, applied to the central controller testing method according to claims 1 to 8, characterized in that: include: Data acquisition module, used to: Get the test pattern; When the test mode is an automatic test mode, determining a plurality of test objects having a test sequence, and determining test items for performing different functional tests on the test objects according to the test objects; When the test mode is a single-function test mode, determining test items with different function types, and determining objects with the function types as test objects according to the test items; When the test mode is a single-object test mode, determining a test object among multiple objects, and determining test items for performing different functional tests on the test object based on the test object; Determining test parameters according to the test items and the test object; The test module is used to perform a functional test on the test object according to the test parameters, and determine a test result indicating a working status of the test object.
10. A computer device, characterized in that: The computer device includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by the processor to implement a testing method for a central controller as described in any one of claims 1 to 8.
Citation Information
Patent Citations
Method and device for automatically testing interface application program
CN118295907A
Subway vehicle inversion module test system based on single-chip microcomputer design
CN219997201U