Terminal testing device, system and method
By introducing virtual modules and adapter control modules into the terminal testing device, seamless switching between whole machine testing and interface testing is achieved, the problem of low testing efficiency in the existing technology is solved, the automation level and testing efficiency are improved, and the cost is reduced.
Patent Information
- Application Number
- CN202510001629.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-02
- Publication Date
- 2025-05-09
AI Technical Summary
In the prior art, the whole machine test and interface test of terminal equipment need to be carried out in two test devices respectively, resulting in low testing efficiency.
A terminal testing device and system are designed to achieve seamless switching between the whole machine test and interface test through virtual modules and adaptation control modules. Two types of tests are performed in the same test device.
It improves the automation level of terminal testing, significantly improves testing efficiency, and effectively reduces testing costs.
Smart Images

Figure CN119959653A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of terminal equipment testing, and in particular to a terminal testing device, system and testing method. Background Art
[0002] The power data acquisition terminal is an intelligent data acquisition and control terminal device installed in a dedicated or public transformer substation, with a series of functions such as power metering, data acquisition, distribution transformer monitoring, and power management. The terminal relies on various functional modules (modules) to achieve flexible functional expansion, including remote communication modules (such as 4G communication modules, 5G communication modules, etc.), local communication modules (such as power line carrier communication modules, micro-power wireless communication modules, RS-485 communication modules, M-Bus communication modules, CAN communication modules, etc.), remote control modules, remote signaling modules, branch monitoring modules, etc.
[0003] In order to standardize the various functional performance and interface requirements for terminal production, testing and on-site operation, the power industry and power supply companies have formulated standards that define terminal type specifications, functional technical specifications and module interface specifications in detail. For terminals produced by suppliers, power companies need to conduct whole-machine tests on terminal functional performance and conduct interchangeability tests on terminal interfaces to detect whether the terminals meet the functional and interface specifications.
[0004] The existing patent application with publication number CN210835209U provides an automatic switching device for metering protocol channels, which can realize various types of test equipment such as PCs, laptops, mobile phones, handheld devices, etc., and various types of communication channels of smart grid equipment such as infrared signal transceiver channels, RS485 buses, RS232 serial ports, etc., and various types of data half-duplex interaction, thereby realizing terminal interface testing. The existing patent application with publication number CN112986725A provides an intelligent control terminal system for whole-machine testing of secondary power equipment, which realizes whole-machine testing of terminals by intelligently managing whole-machine testing of multiple testers. However, the current terminal interface test and whole-machine test must be tested separately in two devices, and the test efficiency is low. Summary of the invention
[0005] Based on this, it is necessary to provide a terminal testing device, system and testing method to address the problem that the prior art uses separate testing devices to perform whole-machine testing and interface testing on the terminal, resulting in low testing efficiency.
[0006] In a first aspect, the present application provides a terminal testing device. The device includes a testing tool and a testing device connected to the testing tool, wherein the testing tool includes a virtual module and a switching control module;
[0007] When the whole machine is tested, the first end of the switching control module is connected to the terminal interface to be tested in the whole machine to be tested, and the second end is connected to the module to be tested, and the whole machine to be tested is connected to the test equipment;
[0008] When performing a terminal interface test, the first end of the switching control module is connected to the terminal interface to be tested, and the second end is connected to the virtual module, and the virtual module is connected to the test device.
[0009] Furthermore, the test device includes a virtual terminal; when performing a module interface test, the first end of the switching control module is connected to the interface of the module to be tested in the whole machine to be tested, and the second end is connected to the virtual terminal.
[0010] Furthermore, the number of the virtual modules is the same as the number of interfaces of the module to be tested.
[0011] Furthermore, the number of the virtual terminals is the same as the number of the whole machines to be tested.
[0012] Furthermore, the first end of the switching control module is connected to the interface of the terminal to be tested through a first switching line.
[0013] Furthermore, the first end of the switching control module is connected to the interface of the module to be tested through a second switching line.
[0014] In a second aspect, the present application further provides a terminal interface testing system, wherein the system comprises a whole machine to be tested and the terminal interface testing device as described in the first aspect, wherein the whole machine to be tested is connected to the terminal interface testing device.
[0015] In a third aspect, the present application further provides a method for testing the terminal interface testing system as described in the second aspect. The method comprises:
[0016] Step S10, the test device switches the virtual module to the terminal interface to be tested;
[0017] Step S11, the terminal interface to be tested identifies the virtual module and sends the identification status to the test device;
[0018] Step S12, the test device establishes a virtual module mapping according to the identification state, and sends the test case to the virtual module mapping;
[0019] Step S13, the virtual module mapping forwards the test case to the virtual module;
[0020] Step S14, the virtual module executes the test steps according to the test case, and sends the test progress and results to the test device;
[0021] Step S15: the testing device summarizes the test results.
[0022] Furthermore, the method further comprises:
[0023] Step S20, the test device switches the interface of the module to be tested to the terminal to be tested;
[0024] Step S21, the testing device sends a whole machine testing plan to the whole machine to be tested;
[0025] Step S22: the whole machine to be tested executes the whole machine test plan and sends the whole machine test result to the test equipment.
[0026] Furthermore, the method further comprises:
[0027] Step S30, the test device switches the interface of the module to be tested to the virtual terminal;
[0028] Step S31, the test device controls the virtual terminal to identify the type of the module to be tested;
[0029] Step S32, the test device sends the test case to the virtual terminal;
[0030] Step S33, the virtual terminal tests the module to be tested according to the test case, and sends the test progress and results to the test device;
[0031] Step S34: the testing device summarizes the test results.
[0032] The above-mentioned terminal testing device, system and testing method realize whole machine testing and interface testing of the terminal in the same testing device by connecting the first end of the switching control module to the terminal interface to be tested in the whole machine to be tested, and connecting the second end to the module to be tested, and connecting the whole machine to the testing equipment when performing whole machine testing; and by connecting the first end of the switching control module to the terminal interface to be tested, and connecting the second end to the virtual module, and connecting the virtual module to the testing equipment when performing terminal interface testing, and realizing seamless switching between whole machine testing and interface testing through the switching control module, thereby improving the automation level of terminal testing, significantly improving testing efficiency, and effectively reducing testing costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 A schematic diagram of the structure of a terminal testing system in one embodiment;
[0034] Figure 2 A schematic diagram of a test method flow of a terminal test system in an embodiment;
[0035] Figure 3 A schematic diagram of a test method flow of a terminal test system in another embodiment;
[0036] Figure 4 The figure is a flowchart of a testing method of a terminal testing system in yet another embodiment. DETAILED DESCRIPTION
[0037] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0038] Example 1
[0039] Figure 1 A terminal testing device is shown, including a testing device and a detection tool, the detection tool includes N virtual modules and a transfer control module, and the testing device includes a virtual terminal. The terminal testing device is used to perform a whole machine test and a terminal interface test on the whole machine to be tested. The whole machine to be tested usually includes a body and multiple functional modules. The number of virtual modules is the same as the number of functional modules, and N is a positive integer. For example, when the number of functional modules is 3, the value of N can be 3.
[0040] Virtual modules are used to simulate functional modules in the whole machine under test, such as remote communication modules, local communication modules, etc., so as to replace the real modules under test during the test process. Virtual modules can simulate various possible input and output situations, helping testers to more comprehensively evaluate the performance and stability of the whole machine under test. Moreover, the same virtual module can detect terminals of different specifications and interfaces, which not only improves the flexibility of the test, but also reduces the dependence on the actual hardware, thereby reducing the test cost and improving the integrated detection capability and automation level.
[0041] The virtual terminal is used to simulate the main body of the whole machine under test and communicate with the module under test. The virtual terminal can send test instructions, receive test results, and monitor the test progress in real time during the test. In addition, the virtual terminal can also simulate a variety of communication protocols and interface standards to meet the test requirements of different modules under test.
[0042] Specifically, when the terminal interface test is performed on the whole machine to be tested, the terminal interface to be tested can be connected to the first end of the transfer control module through the first transfer line, the first end of each virtual module is connected to the second end of the transfer control module, and the second end of each virtual module is connected to the test equipment. During the formal test, the test equipment switches the virtual module to the terminal interface to be tested, and waits for the terminal interface to be tested to identify each virtual module one by one. The test equipment switches the virtual module to the terminal interface to be tested, that is, the test equipment controls the communication between the transfer control module and the terminal interface to be tested through its built-in control logic, and disconnects the communication with the module interface to be tested, so as to realize the connection between the virtual module and the terminal interface to be tested. The "switching" here can be understood as a configuration change inside the test equipment, which enables the terminal interface to be tested to recognize and communicate with the virtual module, rather than the actual module to be tested. In this way, the test equipment can simulate different test scenarios and verify the recognition ability and compatibility of the terminal interface to be tested for different virtual modules. After successful identification, the virtual module tells the test device that it has been successfully identified by the terminal interface under test. After that, the test device will establish a virtual module module mapping, which records the types of all successfully identified virtual modules, thereby realizing the connection between the virtual module and the test device. Subsequently, the test device loads the test case and distributes it to each virtual module for execution through the virtual module mapping. During the test, the test device will receive and summarize the test progress and results in real time.
[0043] In addition, when the number of the whole machines to be tested is at least one, the virtual module can be reused to perform a one-to-many serial test. Exemplarily, when performing a terminal interface test on M whole machines to be tested, the test equipment first controls the first end of the switching control module to connect to the terminal interface to be tested in the whole machine 1 to be tested, and the second end to connect to the virtual module, and the virtual module to connect to the test equipment. After the whole machine 1 to be tested completes the terminal interface test, the test equipment controls the first end of the switching control module to connect to the terminal interface to be tested in the whole machine 2 to be tested, and performs a terminal interface test on the whole machine 2 to be tested. Similarly, after the whole machine M-1 to be tested completes the terminal interface test, the test equipment controls the first end of the switching control module to connect to the terminal interface to be tested in the whole machine M to be tested, and performs a terminal interface test on the whole machine M to be tested.
[0044] When performing the terminal whole machine test, that is, checking whether the entire terminal device is working properly, the virtual module and the virtual terminal will be disabled, and the module to be tested will be directly plugged into the interface of the whole machine to be tested. At this time, the first end of the transfer control module is connected to the terminal interface to be tested in the whole machine to be tested, and the second end is connected to the module to be tested. During the formal test, first, the test equipment switches the interface of the module to be tested to the terminal to be tested. The switching here also refers to a configuration change inside the test equipment, which enables the interface of the module to be tested to communicate directly with the terminal to be tested in order to perform whole machine testing. Secondly, the test equipment sends the whole machine test plan to the whole machine to be tested, the whole machine to be tested executes the whole machine test plan, and feeds back the whole machine test results to the test equipment.
[0045] When executing the module interface test, that is, checking whether the module interface is working properly, the first end of the transfer control module is connected to the interface of the module to be tested in the whole machine to be tested through the second transfer line, and the second end is connected to the virtual terminal. During the formal test, the test equipment switches the interface of the module to be tested to the virtual terminal, that is, controls the communication between the transfer control module and the interface of the module to be tested and the virtual terminal, and disconnects the communication between the terminal interface to be tested and the virtual module. The virtual terminal can simulate the actual communication protocol and interface standard to interact with the interface of the module to be tested. The test equipment controls the virtual terminal to identify the type of the module to be tested, and the test equipment sends the test case to the virtual terminal. The virtual terminal sends the test case to the module to be tested for testing, and sends the test progress and results to the test equipment. The test equipment summarizes the test results.
[0046] Furthermore, in order to adapt to the whole machine to be tested with different structures and interfaces, it is only necessary to configure the corresponding adapter cable to easily achieve compatibility. Specifically, the first adapter cable and the second adapter cable can be selected from a variety of types, including but not limited to USB cables, RS232 communication cables, etc., thereby ensuring the stability and compatibility of data transmission. In addition, the connection between the detection tooling and the test equipment, and between the whole machine to be tested and the test equipment is also extremely flexible, supporting serial ports, networks, Bluetooth, CAN and other communication methods, further improving the flexibility and scope of application of the test, so that it can meet more diverse test needs.
[0047] The terminal testing device in this embodiment realizes whole machine testing and interface testing of the terminal in the same testing device by connecting the first end of the switching control module to the terminal interface to be tested in the whole machine to be tested, and connecting the second end to the module to be tested, and connecting the whole machine to the testing equipment when performing whole machine testing; and by connecting the first end of the switching control module to the terminal interface to be tested, and connecting the second end to the virtual module, and connecting the virtual module to the testing equipment when performing terminal interface testing, thereby realizing seamless switching between whole machine testing and interface testing through the switching control module, improving the automation level of terminal testing, significantly improving testing efficiency, and effectively reducing testing costs.
[0048] Example 2
[0049] like Figure 1 As shown, the present embodiment also provides a terminal testing system, including M whole machines to be tested, M detection fixtures and test equipment. Wherein, M is a positive integer. The M whole machines to be tested each include a terminal interface to be tested and N module interfaces to be tested, the M detection fixtures each include N virtual modules and a switching control module, and the test equipment includes M virtual terminals, and the M virtual terminals correspond to the M whole machines to be tested respectively. Optionally, the M whole machines to be tested can perform terminal whole machine testing, terminal interface testing and module interface testing at the same time, or they can be performed in sequence. In particular, when the terminal interface test is performed on the M whole machines to be tested, the test equipment establishes corresponding virtual module mappings for the N virtual modules in the M detection fixtures to ensure the smooth progress of the test and improve reliability.
[0050] The terminal test system in this embodiment, by separating the body and the module of the whole machine to be tested, not only does the system not need to pay attention to the specific size of the virtual terminal and the virtual module, but also cleverly uses the control module in the adapter and the test equipment to realize the automatic switching of the whole machine body between the actual module and the virtual module. This feature greatly enhances the flexibility of the system. Furthermore, since a single virtual module can adapt to terminals of various specifications and interfaces for detection, this not only greatly reduces the test cost, but also significantly improves the integrated detection capability and automation level of the system. More importantly, the system successfully realizes seamless switching between whole machine testing and interface testing, which not only further improves the degree of automation of the test, but also ensures a significant improvement in test efficiency, while effectively controlling the test cost.
[0051] Example 3
[0052] Based on the above embodiments, Figure 2 A test method of a terminal test system is shown, which is used to perform a terminal interface test on a whole device to be tested, and specifically includes:
[0053] Step S10: The test device switches the virtual module to the terminal interface to be tested.
[0054] The test equipment switches the virtual module to a state connected to the terminal interface under test through the internal control module. Specifically, the control module in the test equipment switches the communication between the control module and the terminal interface under test, while disconnecting the communication with the module interface under test, thereby connecting the virtual module to the terminal interface under test, which facilitates the subsequent test equipment to carry out terminal interface testing.
[0055] Step S11: The terminal interface to be tested identifies the virtual module and sends the identification status to the test equipment.
[0056] The identification status includes the type and quantity of the identified virtual modules.
[0057] Step S12: the test device establishes a virtual module mapping according to the identification state, and sends the test case to the virtual module.
[0058] The virtual module mapping includes identifying each virtual module successfully and establishing a mapping relationship with each virtual module, thereby ensuring that the test case can be accurately sent to the target virtual module.
[0059] Step S13: Virtual module mapping forwards the test case to the virtual module.
[0060] Step S14: the virtual module executes the test steps according to the test case and sends the test progress and results to the test device.
[0061] Step S15: the testing device summarizes the test results.
[0062] Furthermore, Figure 3 A test method of a terminal test system is shown, which is used to perform a terminal whole machine test on a whole machine to be tested, and specifically includes:
[0063] Step S20: the testing device switches the interface of the module under test to the terminal under test.
[0064] Specifically, the control module in the test equipment controls the communication between the switching control module and the terminal interface to be tested, and between the switching control module and the module to be tested, while disconnecting the communication between the interface of the module to be tested, thereby realizing the sequential connection of the terminal interface to be tested, the switching control module and the module to be tested (plugged into the whole machine to be tested), so as to facilitate the subsequent test equipment to carry out terminal whole machine testing.
[0065] Step S21: the testing device sends a whole machine testing plan to the whole machine to be tested.
[0066] Among them, the whole machine test plan includes all the test steps and parameters to be executed.
[0067] Step S22: the whole machine to be tested executes the whole machine test plan and sends the whole machine test result to the test equipment.
[0068] Furthermore, Figure 4 A test method of a terminal test system is shown, which is used to perform a module interface test on a whole device to be tested, and specifically includes:
[0069] Step S30: The testing device switches the interface of the module to be tested to the virtual terminal.
[0070] Specifically, the control module in the test equipment disconnects the communication between the control transfer module and the terminal interface under test, and the virtual module, while connecting the communication with the interface of the module under test, thereby realizing the connection between the interface of the module under test and the virtual terminal, making it easier for subsequent test equipment to carry out module interface testing.
[0071] Step S31: the test device controls the virtual terminal to identify the type of the module to be tested.
[0072] Step S32: The test device sends the test case to the virtual terminal.
[0073] Specifically, the test device sends a corresponding test case to the virtual terminal according to the identified type of the module to be tested.
[0074] Step S33: the virtual terminal tests the module to be tested according to the test case, and sends the test progress and results to the test device.
[0075] Specifically, the virtual terminal tests the module to be tested through the module to be tested interface according to the received test case, and feeds back the test progress and results to the test device in real time.
[0076] Step S34: the testing device summarizes the test results.
[0077] The testing method of the terminal testing system of the present embodiment realizes the terminal interface test, the whole machine test and the module interface test of the whole machine to be tested, and significantly improves the testing efficiency.
[0078] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0079] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A terminal testing device, characterized in that: The device comprises a detection tool and a test device connected to the detection tool, wherein the detection tool comprises a virtual module and a transfer control module; When the whole machine is tested, the first end of the switching control module is connected to the terminal interface to be tested in the whole machine to be tested, and the second end is connected to the module to be tested, and the whole machine to be tested is connected to the test equipment; When performing a terminal interface test, the first end of the switching control module is connected to the terminal interface to be tested, and the second end is connected to the virtual module, and the virtual module is connected to the test device.
2. The terminal testing device according to claim 1, characterized in that: The test device includes a virtual terminal; when performing a module interface test, the first end of the switching control module is connected to the interface of the module to be tested in the whole machine to be tested, and the second end is connected to the virtual terminal.
3. The terminal testing device according to claim 2, characterized in that: The number of the virtual modules is the same as the number of the interfaces of the module to be tested.
4. The terminal testing device according to claim 2, characterized in that: The number of the virtual terminals is the same as the number of the whole machines to be tested.
5. The terminal testing device according to claim 1, characterized in that: The first end of the switching control module is connected to the interface of the terminal to be tested through a first switching line.
6. The terminal testing device according to claim 2, characterized in that: The first end of the switching control module is connected to the interface of the module to be tested through a second switching line.
7. A terminal interface testing system, characterized in that: The system comprises a whole machine to be tested and a terminal interface testing device according to any one of claims 1 to 6, and the whole machine to be tested is connected to the terminal interface testing device.
8. A method for testing a terminal interface test system as claimed in claim 7, characterized in that: The method comprises: Step S10, the test device switches the virtual module to the terminal interface to be tested; Step S11, the terminal interface to be tested identifies the virtual module and sends the identification status to the test device; Step S12, the test device establishes a virtual module mapping according to the identification state, and sends the test case to the virtual module mapping; Step S13, the virtual module mapping forwards the test case to the virtual module; Step S14, the virtual module executes the test steps according to the test case, and sends the test progress and results to the test device; Step S15: the testing device summarizes the test results.
9. The test method of the terminal interface test system according to claim 8, characterized in that: The method further comprises: Step S20, the test device switches the interface of the module to be tested to the terminal to be tested; Step S21, the testing device sends a whole machine testing plan to the whole machine to be tested; Step S22: the whole machine to be tested executes the whole machine test plan and sends the whole machine test result to the test equipment.
10. The test method of the terminal interface test system according to claim 8, characterized in that: The method further comprises: Step S30, the test device switches the interface of the module to be tested to the virtual terminal; Step S31, the test device controls the virtual terminal to identify the type of the module to be tested; Step S32, the test device sends the test case to the virtual terminal; Step S33, the virtual terminal tests the module to be tested according to the test case, and sends the test progress and results to the test device; Step S34: the testing device summarizes the test results.
Citation Information
Patent Citations
Intelligent control terminal for testing power secondary equipment, testing method and electronic equipment
CN112986725A
Automatic switching device for metering protocol channels
CN210835209U