Concurrent pressure test system and method for acquisition terminal and electronic equipment

By generating concurrent stress test commands through the cloud management module and terminal adaptation module, and combining them with JMeter and Shell scripts, accurate stress testing of the data acquisition terminal is achieved. This solves the problem of inflexible testing methods in existing technologies, improves the accuracy and reliability of test results, and identifies the performance bottleneck of the system under high concurrency.

CN120950313APending Publication Date: 2025-11-14WUHAN SAN FRAN ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510932603.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-07
Publication Date
2025-11-14

AI Technical Summary

Technical Problem

Existing data acquisition terminal equipment cannot fully assess its collaborative operation capabilities in high-concurrency scenarios, making it difficult to discover potential problems such as resource allocation and thread scheduling. The testing methods lack flexibility and accuracy.

Method used

A concurrent stress testing system is provided, including a cloud management module, a test control module, a terminal adaptation module, and a hardware interface module. It generates concurrent stress commands through multi-layer stress gradient control, and combines JMeter and Shell scripts to achieve accurate stress testing on the data acquisition terminal. It also sends excitation signals through a secure tunnel, collects and feeds back data in real time to generate test reports.

Benefits of technology

It enables comprehensive and accurate concurrent stress testing of the data acquisition terminal system, improves the accuracy and reliability of test results, can identify performance bottlenecks and potential problems of the system under high concurrency, and supports system optimization and stability verification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120950313A_ABST
    Figure CN120950313A_ABST
Patent Text Reader

Abstract

The invention provides a concurrent pressure testing system and method for an acquisition terminal and electronic equipment, and is applied to the technical field of pressure testing, the system comprises a cloud management module which configures a concurrent pressure testing scene and generates a testing script; the test control module is used for generating a concurrent pressure instruction and a Shell script according to multi-layer pressure gradient control on the basis of the received test script; issuing the concurrent pressure instruction and the Shell script through a security tunnel; the terminal adaptation module is used for generating an excitation signal for a target interface based on the received concurrent pressure instruction and the Shell script; the hardware interface module calls a target interface for execution based on the excitation signal to obtain state feedback data of the acquisition terminal system; and the cloud management module generates a pressure test report of the acquisition terminal system based on the state feedback data. According to the invention, the system overall test can be carried out on the acquisition terminal equipment, and the accuracy and reliability of the test result are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of stress testing technology, and in particular to a concurrent stress testing system, method, and electronic device for data acquisition terminals. Background Technology

[0002] Currently, some exploration has been carried out in testing data acquisition terminal equipment. Some tests focus on functional testing to ensure that its various functions operate normally; some tests focus on data acquisition performance testing to evaluate its data acquisition capabilities; and some tests target uplink and downlink systems to examine the data transmission status between the terminal and the outside world.

[0003] However, existing functional tests, communication tests, and stress tests conducted on other objects using virtual terminals cannot fully and deeply uncover the performance bottlenecks of the data acquisition terminal system under high-concurrency scenarios. It is difficult to assess the collaborative operation capabilities of the underlying system under high-concurrency pressure, nor can it detect potential problems in resource allocation, thread scheduling, and other aspects of the system.

[0004] It is evident that the concurrent stress testing methods for data acquisition terminals in related technologies have a technical flaw: the functional tests are independent of each other, and they cannot reflect the overall collaborative capabilities of the data acquisition terminal equipment. Summary of the Invention

[0005] This invention provides a concurrent stress testing system, method, and electronic device for data acquisition terminals, which solves the problem of low testing flexibility in existing concurrent stress testing methods for data acquisition terminals. This invention enables overall system testing of data acquisition terminal devices and improves the accuracy and reliability of test results.

[0006] This invention provides a concurrent stress testing system for data acquisition terminals, comprising the following modules.

[0007] The system includes a cloud management module for configuring concurrent stress test scenarios and generating test scripts; a test control module, communicating with the cloud management module, for generating concurrent stress commands and a Shell script based on the received test scripts and multi-layer stress gradient control; and for distributing the concurrent stress commands and the Shell scripts through a secure tunnel; a terminal adaptation module, communicating with the test control module, for generating stimulus signals for a target interface based on the received concurrent stress commands and the Shell scripts; and a hardware interface module, communicating with the terminal adaptation module, for calling the target interface to execute based on the stimulus signals, thereby obtaining status feedback data from the acquisition terminal system; wherein, the terminal adaptation module collects the status feedback data in real time and feeds it back to the cloud management module via the test control module; the cloud management module then generates a stress test report for the acquisition terminal system based on the status feedback data.

[0008] According to the present invention, a concurrent stress testing system for a data acquisition terminal is provided. The multi-layer stress gradient control includes: a base stress layer, a peak impact layer, and a steady-state verification layer. The test control module is specifically used to execute at least one of the multi-layer stress gradient control methods. The base stress layer is used to perform steady-state load simulation based on resource utilization and base load, and to collect response latency baseline and resource consumption benchmark values. The peak impact layer is used to perform hardware interruption simulation based on mixed traffic concurrency and burst signals, and to collect maximum concurrent processing volume and crash threshold. The steady-state verification layer is used to collect memory leak rate and performance degradation curves based on stress increment testing, hardware aging acceleration testing, and memory leak simulation.

[0009] According to the present invention, a concurrent stress testing system for a data acquisition terminal is provided. The terminal adaptation module is specifically used for: extracting thread control parameters, protocol stack parameters, and stress waveform parameters from the concurrent stress command using an embedded lightweight JMeter; using a thread control component to execute the thread control parameters to generate a concurrent thread group; using a stress waveform generation component to convert the stress waveform parameters into a time-series stress wave; obtaining the target interface based on the environment configuration instructions in the Shell script, and generating an excitation signal for the target interface by combining the protocol stack parameters and the time-series stress wave.

[0010] According to the present invention, a concurrent stress testing system for a data acquisition terminal is provided. The terminal adaptation module is specifically used for: parsing container communication instructions in the Shell script and stress gradient parameters in the concurrent stress instructions; distributing communication instructions containing interactive data to multiple target containers through a message center; determining the data interaction amount between the multiple target containers according to the stress gradient parameters, and triggering interactive communication between the multiple target containers; and converting hardware call requests generated during the interactive communication between the multiple target containers into excitation signals for the target interfaces.

[0011] According to the present invention, a concurrent stress testing system for a data acquisition terminal is provided. The system further includes a proportional-integral-derivative controller, which is communicatively connected to the test control module, for determining the target resource occupancy rate and the actual resource occupancy rate in the returned state feedback data, and adaptively adjusting the levels of the multi-layer stress gradient control based on the target resource occupancy rate and the actual resource occupancy rate.

[0012] According to the present invention, a concurrent stress testing system for a data acquisition terminal is provided, wherein the adaptive adjustment of the levels of the multi-layer stress gradient control based on the target resource occupancy rate and the actual resource occupancy rate includes: in, The difference between the target resource utilization rate and the actual resource utilization rate. This indicates the adjusted number of concurrent threads. Indicates the current number of concurrent threads. Represents the proportionality coefficient. Represents the integral coefficient. Represents the differential coefficient. Represents a time variable.

[0013] This invention also provides a concurrent stress testing method for a data acquisition terminal, comprising: configuring a concurrent stress test scenario and generating a test script through a cloud management module; generating concurrent stress commands and a Shell script based on the received test script and multi-layer stress gradient control through a test control module; and distributing the concurrent stress commands and the Shell script through a secure tunnel; generating an excitation signal for a target interface based on the received concurrent stress commands and the Shell script through a terminal adaptation module; and calling the target interface for execution based on the excitation signal through a hardware interface module to obtain status feedback data of the data acquisition terminal system; wherein, the terminal adaptation module collects the status feedback data in real time and feeds the status feedback data back to the cloud management module through the test control module, and the cloud management module generates a stress test report of the data acquisition terminal system based on the status feedback data.

[0014] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the concurrent stress testing method for the acquisition terminal as described above.

[0015] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the concurrent stress testing method for a data acquisition terminal as described above.

[0016] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the concurrent stress testing method for a data acquisition terminal as described above.

[0017] The concurrent stress testing system, method, and electronic device for data acquisition terminals provided by this invention first configure the test scenario and generate test scripts through a cloud management module, providing the basic settings for testing. After receiving the scripts, the test control module generates concurrent stress commands and Shell scripts based on multi-layer stress gradient control and sends them down through a secure tunnel to achieve precise and flexible stress control. The terminal adaptation module receives the commands and scripts to generate excitation signals, which are applied to the hardware interface module. The hardware interface module calls the target interface to execute and obtain status feedback data. The terminal adaptation module collects the data in real time and sends it back to the cloud management module through the test control module. Finally, the cloud management module generates a stress test report. The entire process realizes the integration of test scenario configuration, stress command issuance, interface execution, data feedback, and report generation, enabling comprehensive and accurate concurrent stress testing of the data acquisition terminal system. Attached Figure Description

[0018] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced one by one below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0019] Figure 1 This is a schematic diagram of the concurrent stress testing system for data acquisition terminals provided by the present invention.

[0020] Figure 2 This is a framework diagram of a concurrent stress testing system for data acquisition terminals provided by the present invention.

[0021] Figure 3 This is a schematic diagram of container communication provided by the present invention.

[0022] Figure 4 This is a schematic diagram of the timing process of the pressure test provided by the present invention.

[0023] Figure 5 This is a flowchart illustrating the concurrent stress testing method for data acquisition terminals provided by the present invention.

[0024] Figure 6 This is a schematic diagram of the physical structure of the electronic device provided by the present invention. Detailed Implementation

[0025] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.

[0026] The data acquisition terminal system is built on the Linux kernel and uses a hardware abstraction layer to provide interfaces for container deployment. In addition to the basic application containers, each manufacturer needs to develop its own edge computing applications and advanced business applications to meet the diverse data acquisition needs of the power grid. To ensure better compatibility between the basic system and the secondary developed applications, and to fully leverage the advantages of software, a thorough understanding of system performance bottlenecks is essential. Simultaneously, conducting overall system performance testing on the final product helps to more comprehensively understand and evaluate product performance.

[0027] Currently, there are various testing methods for data acquisition terminal devices. Some tests focus on functional testing to ensure that all functions of the acquisition terminal operate normally; some tests focus on acquisition performance testing to evaluate its data acquisition capabilities; and some tests target the uplink and downlink systems of the acquisition terminal to examine the data transmission between the terminal and the outside world.

[0028] In addition, stress tests are sometimes conducted using data acquisition terminals in power systems. For example, virtual terminals can be used to stress test the entire electricity consumption data acquisition system, or stress tests can be conducted on the main station of the data acquisition system.

[0029] As can be seen from the above, the current testing methods for data acquisition terminals mainly focus on functionality and communication, or use virtual terminals to test the data acquisition system, without conducting stress tests on the data acquisition terminal system itself.

[0030] This invention aims to provide a system capable of performance testing of data acquisition terminal systems. By conducting concurrent stress tests on the acquisition terminals, developers can better understand the system performance of the acquisition terminal products during the development cycle and optimize the design in real time based on the test results. Furthermore, this system can also be used to verify and test the final system reliability and stability of the acquisition terminal products.

[0031] refer to Figure 1 , Figure 1 This is a schematic diagram of the concurrent stress testing system for data acquisition terminals provided by the present invention.

[0032] The cloud management module 101 is used to configure concurrent stress test scenarios and generate test scripts; The test control module 102 is communicatively connected to the cloud management module 101. It is used to generate concurrent pressure commands and Shell scripts based on the received test scripts and according to multi-layer pressure gradient control; and to send the concurrent pressure commands and Shell scripts down through a secure tunnel. The terminal adaptation module 103 is communicatively connected to the test control module 102 and is used to generate excitation signals for the target interface based on the received concurrent pressure commands and Shell scripts. The hardware interface module 104 is communicatively connected to the terminal adapter module 103 and is used to call the target interface based on the excitation signal to execute and obtain the status feedback data of the acquisition terminal system. The terminal adaptation module 103 collects status feedback data in real time and sends the status feedback data back to the cloud management module 101 via the test control module 102. The cloud management module 101 generates a stress test report of the collection terminal system based on the status feedback data.

[0033] In this embodiment of the invention, the cloud management module is responsible for configuring concurrent stress test scenarios and generating test scripts. Users can interact with the cloud management module through a graphical interface or command-line interface to set various parameters of the test scenario according to actual needs, such as the number of concurrent users, the stress gradient change pattern, and the test duration.

[0034] The test control module communicates with the cloud management module. Based on the received test script, it generates concurrent pressure commands and Shell scripts according to the multi-layer pressure gradient control, and sends these commands and scripts to the terminal adaptation module through a secure tunnel.

[0035] The terminal adaptation module communicates with the test control module and is responsible for generating stimulus signals for the target interface based on the received concurrent pressure commands and Shell scripts. These stimulus signals are used to simulate various requests and operations received by the terminal system in real-world business scenarios.

[0036] The hardware interface module communicates with the terminal adapter module, and executes the target interface based on the excitation signal to obtain the status feedback data of the acquisition terminal system. The status feedback data reflects the operating status and performance indicators of the acquisition terminal system under concurrent stress testing of the acquisition terminal.

[0037] The terminal adaptation module collects status feedback data returned by the hardware interface module in real time and feeds this data back to the cloud management module through the test control module. During the data feedback process, the test control module caches and forwards the data to ensure its integrity and timeliness.

[0038] After receiving the status feedback data, the cloud management module first stores and manages the data. Then, it uses data analysis algorithms and models to analyze the data and extract key performance indicators of the data acquisition terminal system under concurrent stress testing of the acquisition terminal, such as response time, throughput, and error rate.

[0039] Based on the data analysis results, the cloud management module generates a stress test report for the data acquisition terminal system. The stress test report presents the test results in an intuitive format using charts and text, including an overview of the test scenario, performance indicator trend graphs, and statistics on abnormal situations.

[0040] refer to Figure 2 , Figure 2 This is a framework diagram of a concurrent stress testing system for a data acquisition terminal system provided by the present invention, which includes: a cloud management layer, a test control layer, a terminal adaptation layer, and a hardware interface layer.

[0041] The cloud-based management layer includes a test configuration center (containing a test scenario library to manage stress gradient templates, and a script management module to uniformly manage JMeter and Shell test scripts) and a data analysis engine (performing hardware-software correlation analysis and generating test reports).

[0042] The test control layer executes three-level pressure gradient control (including basic steady-state pressure, sudden peak impact, and high-load steady-state verification) through the JMeter control terminal, and securely manages the terminal through the XShell secure tunnel (which enables Shell script execution, JMeter integration, and provides an encrypted transmission channel).

[0043] The terminal adaptation layer includes a stress execution engine and a core test agent. The stress execution engine is responsible for injecting actual test stress (such as MQTT stress on the protocol stack), performing computational task simulation, and stimulating hardware interfaces (RS485 / GPIO). The core test agent is responsible for collecting hardware status (CPU / memory / temperature), monitoring real-time resources, and running in a resource isolation container.

[0044] The hardware interface layer directly connects to the underlying hardware, including communication interface groups (RS485, Ethernet, 4G), control interface groups (GPIO, ADC), and sensor interface groups (temperature and power consumption sensor interfaces).

[0045] In this invention, the system data flow begins with configuring the test scenario in the cloud and sending test scripts to the test control module. Based on the configured pressure gradient scenario, the test control module sends pressure commands and Shell scripts to the terminal (terminal adaptation module) through the XShell secure tunnel. The terminal adaptation module then sends stimuli to the hardware interface module (hardware interface) and the software interface. The hardware interface module feeds back relevant status feedback data to the terminal adaptation module. The terminal adaptation module monitors the data acquisition in real time and transmits it to the cloud data analysis engine through the test control module to complete the closed-loop feedback adjustment and finally output the test report.

[0046] In this embodiment of the invention, the cloud management module first configures the test scenario and generates a test script, providing the basic settings for testing. After receiving the script, the test control module generates concurrent pressure commands and a Shell script based on multi-layer pressure gradient control and sends them through a secure tunnel to achieve precise and flexible pressure control. The terminal adaptation module receives the commands and the script to generate excitation signals, which are applied to the hardware interface module. The hardware interface module calls the target interface to execute and obtain status feedback data. The terminal adaptation module collects the data in real time and sends it back to the cloud management module through the test control module. Finally, the cloud management module generates a stress test report. The entire process realizes the integration of test scenario configuration, stress command issuance, interface execution, data feedback, and report generation, enabling comprehensive and accurate concurrent stress testing of the data acquisition terminal system.

[0047] According to the present invention, a concurrent stress testing system for a data acquisition terminal is provided, comprising multi-layer pressure gradient control, including: a base pressure layer, a peak impact layer, and a steady-state verification layer; the test control module is specifically used to execute at least one of the multi-layer pressure gradient control methods. The basic stress layer is used to perform steady-state load simulation based on resource utilization and basic load, and to collect response delay baseline and resource consumption benchmark value. The peak impact layer is used to simulate hardware interruptions based on mixed traffic concurrency and burst signals, and to collect the maximum concurrent processing volume and the crash threshold. The steady-state verification layer is used to collect memory leak rate and performance degradation curves based on stress increment testing, hardware aging acceleration testing, and memory leak simulation.

[0048] In this embodiment of the invention, the multi-layer pressure gradient control (system) in the above-mentioned test control module is specifically a three-layer pressure gradient control system. The final test result can be obtained through the following methods and indicators: The basic stress layer (steady-state load simulation) primarily aims to establish a system baseline performance curve. This is achieved by dynamically adjusting the number of concurrent threads to control resource utilization to 70%, maintaining the basic load through long-term protocol stack connections, and implementing steady-state excitation of the hardware interface through long-term stability of pulses and control signals. Ultimately, the system response latency baseline and resource consumption baseline values ​​are used as output metrics.

[0049] The peak impact layer (burst flow injection) primarily aims to verify the system's ultimate load-bearing capacity. It utilizes a Gaussian timer to generate pulsed pressure waveforms, employs multi-protocol mixed flow to achieve concurrent impacts, and simulates hardware interrupt storms through burst signals of pulses and control signals. Ultimately, the maximum concurrent processing capacity and the system's critical collapse point are used as output metrics.

[0050] The steady-state verification layer (continuous high-load testing) primarily aims to detect system degradation trends. It achieves stepped stress increases by adding 10% load every 5 minutes; accelerates hardware aging testing through long-term continuous communication on the channel and high-power device modes; and performs fault injection testing by simulating memory leaks. Ultimately, the memory leak rate and system performance degradation curves are used as output metrics.

[0051] In this embodiment of the invention, the basic pressure layer establishes a performance benchmark (response latency and resource consumption) under steady-state load, providing a reference for subsequent testing; the peak impact layer exposes the system's limit capacity (maximum processing capacity) and collapse boundary (critical point) under high concurrency and hardware interruption scenarios through sudden traffic impacts; the steady-state verification layer focuses on the stability issues under long-term high-load operation, and quantitatively analyzes the memory leak rate and performance degradation curve through incremental pressure, aging acceleration and memory leak simulation, revealing the system's deterioration trend under continuous pressure.

[0052] The three-layer structure is progressively advanced, covering extreme scenarios of sudden peak impacts and deeply verifying reliability risks during long-term operation, providing precise data support for hardware performance optimization and disaster recovery design.

[0053] In this embodiment of the invention, there are two methods for system pressure injection. One is to configure it during testing in the cloud configuration center, where JMeter pressure injection, Shell script execution, or both in parallel can be selected. The other is to dynamically adjust the selection during the software and hardware correlation analysis by the data analysis engine, which can achieve real-time switching based on terminal status awareness. The two paths (JMeter and Shell script) for system pressure injection in this invention are as follows.

[0054] According to the present invention, a concurrent stress testing system for a data acquisition terminal includes a terminal adapter module, which is specifically used for: The thread control parameters, protocol stack parameters, and stress waveform parameters in the concurrent stress commands are extracted using an embedded lightweight JMeter. Use the thread control component to execute thread control parameters to generate concurrent thread groups; use the pressure waveform generation component to convert pressure waveform parameters into time-sequential pressure waves; The target interface is obtained based on the environment configuration instructions in the Shell script, and an excitation signal for the target interface is generated by combining the protocol stack parameters and the timing pressure wave.

[0055] In this embodiment of the invention, the traditional testing tool JMeter is embedded, and a secure link from the remote host to the acquisition terminal is established via the SSH protocol using XShell software, thereby realizing a major path for concurrent stress testing of the acquisition terminal.

[0056] JMeter Embedded Acquisition Terminal. This mainly involves lightweighting JMeter and installing it onto the acquisition terminal. The detailed steps include removing the JMeter GUI-related modules, retaining only the core components: ThreadGroup (thread control), Sampler (protocol simulation), and Timer (timer component). After lightweighting, assuming the acquisition terminal has a Java environment, install the lightweight JMeter and configure the corresponding environment variables in the acquisition terminal's etc path. Relying on the lightweight JMeter core components, it handles stress injection for threads, protocol stacks, stress waves, and hardware stimuli.

[0057] In some embodiments, the standard JMeter GUI module (such as a visual operation interface) is removed, and only the three core components are retained: ThreadGroup (thread control component), Sampler (protocol simulation component, supporting protocol stacks such as MQTT), and Timer (timer component) to form a lightweight JMeter package, which significantly reduces resource consumption.

[0058] On a data acquisition terminal with a Java runtime environment, install the lightweight JMeter and configure environment variables in the / etc path of the terminal system to ensure that the component is callable.

[0059] The embedded JMeter parses thread control parameters (concurrency / duration), protocol stack parameters (MQTT configuration), and stress waveform parameters (timing model) from concurrent stress commands. The ThreadGroup component generates concurrent thread groups based on the parameters; the Timer component converts the waveform parameters into timed stress waves (such as stepped increments or pulse impulses); combined with environment configuration commands from the Shell script (such as interface address / hardware port), the protocol stack parameters are fused with the timed stress waves to generate excitation signals for target interfaces such as RS485 / GPIO.

[0060] It relies on XShell to establish a secure SSH tunnel, enabling encrypted command transmission from the remote host to the terminal, triggering a lightweight JMeter to perform pressure injection tasks, and ensuring the reliability and security of operations such as protocol stack pressure injection and hardware interface stimulation.

[0061] In this embodiment of the invention, JMeter is transformed from a desktop tool into a terminal-level stress engine through embedded lightweight modification. Remote control is achieved by combining it with an SSH secure tunnel. Modular parameter parsing and execution chains (thread group → protocol stack → waveform synthesis) are used to accurately generate hardware interface excitation signals. This retains JMeter's core stress control capabilities while adapting to the resource limitations of embedded terminals.

[0062] According to the present invention, a concurrent stress testing system for a data acquisition terminal includes a terminal adapter module, which is specifically used for: Parse the pressure gradient parameters in container communication commands and concurrent pressure commands in Shell scripts; Distribute communication commands containing interactive data to multiple target containers through the message center; The amount of data interaction between multiple target containers is determined based on the pressure gradient parameters, triggering interactive communication between the multiple target containers. Hardware call requests generated during the interaction and communication between multiple target containers are transformed into excitation signals for the target interface.

[0063] In this embodiment of the invention, another path for stress testing is to trigger a large amount of data interaction between containers deployed in the system through a Shell script. This is mainly achieved through two methods: broadcast communication and point-to-point communication between containers. The APPs deployed in the data collection terminal are mainly divided into three types: basic, edge computing, and advanced services, as shown in Table 1.

[0064] Table 1 APP Classification

[0065] refer to Figure 3 , Figure 3 This is a schematic diagram of container communication provided by the present invention, wherein, Figure 3 The left side represents direct communication (including: container A, MQTT Broker, and container B). Figure 3 The right side shows broadcast communication (including: broadcast, MQTT Broker, container A, and container B).

[0066] In this embodiment of the invention, using the MQTT protocol, the MQTT Broker built into the acquisition terminal system acts as the message center, either through broadcast or direct communication. The message format definitions for broadcast communication and container direct communication are shown in Table 2.

[0067] Table 2 Message Format Definitions

[0068] In this embodiment of the invention, after parsing the container communication instructions and pressure gradient parameters in the Shell script, the MQTT Broker message center built into the acquisition terminal distributes the instructions containing specified interaction data (such as message frequency and load size) to three types of containerized applications (basic container, edge computing container, and advanced business container). By using broadcast communication (one-to-many) or point-to-point communication (direct connection between containers), the amount of data interaction between containers is dynamically adjusted according to the pressure gradient parameter (e.g., increased to 5000 messages / second), thereby triggering the containers to generate hardware resource call requests (e.g., GPIO control, RS485 sensor reading) when performing communication tasks. Finally, the adaptation module captures these requests in real time and converts them into physical excitation signals (e.g., analog electrical pulses or sensor data streams) for the target interface (RS485 / GPIO / ADC, etc.), realizing a closed-loop transmission from high-frequency interaction at the software layer to real signal injection at the hardware layer, so as to reproduce the hardware pressure load under real business scenarios.

[0069] In this embodiment of the invention, the MQTT Broker is used to control broadcast / point-to-point communication and generate high-frequency data interaction in real time according to the pressure gradient parameters, so that the three types of business containers can actively call the underlying hardware resources when executing tasks. By converting the native hardware access requests into physical excitation signals (such as electrical pulses and analog sensor data streams) in real time, the concurrency bottlenecks, resource competition and protocol stack defects of the hardware interface driver layer are exposed simultaneously while avoiding simulation distortion.

[0070] According to the present invention, a concurrent stress testing system for a data acquisition terminal is provided, the system further includes: The proportional-integral-derivative controller communicates with the test control module to determine the target resource occupancy rate and the actual resource occupancy rate in the returned state feedback data, and adaptively adjusts the levels of the multi-layer pressure gradient control based on the target resource occupancy rate and the actual resource occupancy rate.

[0071] In this embodiment of the invention, the system further integrates a proportional-integral-derivative (PID) controller, which establishes a real-time communication link with the test control module to execute the following closed-loop voltage regulation process.

[0072] Continuously collect the actual resource utilization rate of the terminal under test (such as real-time CPU / memory load) and calculate the deviation with the target resource utilization rate preset in the test strategy (such as 80% steady-state pressure threshold); The deviation between the actual value and the target value is dynamically compensated based on the PID algorithm (such as when the current load is 20% lower than the target value), and the hierarchical parameters of the multi-layer pressure gradient control are corrected in real time by outputting the pressure regulation coefficient.

[0073] In some embodiments, a hardware-in-the-loop (HIL) test architecture is constructed based on a PID control mechanism, which includes real hardware devices, virtual environment simulation, and real-time closed-loop feedback.

[0074] For example, real hardware devices (acquisition terminals) are directly connected to the test environment as the entity under test; virtual environment simulation is connected to the virtual operating condition simulator through the sensor-actuator interface group (RS485 / GPIO / ADC) to dynamically inject simulation parameters such as temperature, power consumption, and signal interference; real-time closed-loop feedback can form a real-time control loop of "hardware stimulus → software response → environmental feedback → PID parameter adjustment → pressure re-injection" (for example, when the hardware temperature exceeds the standard, the PID controller automatically reduces the pressure level and triggers a cooling command to the virtual environment).

[0075] In this embodiment of the invention, the dynamic voltage regulation of the PID controller and the hardware-software linkage of the HIL architecture solve the defect that static loads cannot respond to changes in hardware status in traditional stress testing.

[0076] According to the present invention, a concurrent stress testing system for a data acquisition terminal adaptively adjusts the levels of a multi-layer stress gradient control based on a target resource utilization rate and an actual resource utilization rate, including: in, The difference between the target resource utilization rate and the actual resource utilization rate. This indicates the adjusted number of concurrent threads. Indicates the current number of concurrent threads. Represents the proportionality coefficient. Represents the integral coefficient. Represents the differential coefficient. Represents a time variable.

[0077] In an embodiment of the present invention, Target resource utilization rate - actual resource utilization rate, where resources can be a hardware parameter such as temperature or CPU utilization rate. Implement a closed-loop control mechanism that dynamically adjusts simulation environment parameters based on terminal responses.

[0078] This is a dynamic deviation, reflecting the difference between the real-time hardware status and the preset target. The final output command represents the adjusted number of concurrent threads, i.e., the pressure injection intensity. This represents the current number of concurrent threads, which serves as a baseline value for iterative calculations.

[0079] The actual resource utilization of the hardware is continuously obtained through the resource monitoring agent. This represents the proportionality coefficient, used to compensate for the current deviation; This represents the integral coefficient, used to accumulate historical deviations; This represents the differential coefficient, used to predict trends.

[0080] when When the preset threshold is exceeded, the pressure gradient level is automatically switched, for example, from the basic pressure layer to the peak impact layer; or from the peak impact layer to the steady-state verification layer.

[0081] refer to Figure 4 , Figure 4 This is a schematic diagram of the timing process of the pressure test provided by the present invention.

[0082] Based on the stress testing system implementation process shown in the diagram, its essential operation mechanism can be summarized as follows: The cloud control platform initializes the test (distributing stress gradient parameters and container stress scripts), and then activates dual-path stress injection in parallel. Path 1 (JMeter stress flow) establishes an encrypted session through an SSH tunnel, loads a lightweight JMeter engine to inject protocol stress (such as concurrent 1000 Modbus TCP connections), and triggers hardware interrupts (50Hz GPIO interrupt storm), while simultaneously collecting interrupt response counts and CPU / IRQ latency data in real time. Path 2 (container stress flow) drives the container cluster with broadcast communication and point-to-point instructions, executing system call stress (high-frequency fork()), malformed message injection (RS485 protocol fuzzing test), and simultaneously monitoring memory leak rate and driver layer error codes. In the collaborative control phase, a closed-loop control is achieved through a dynamic routing decision mechanism (such as triggering a 50% reduction in thread count when CPU temperature > 70℃) and a fault switching strategy (activating full container compensation stress in Path 2 if Path 1 heartbeat is lost 3 times). Finally, the session is safely closed and the cleanup script completes the termination and release. The entire process forms a complete testing loop covering both hardware and software through coordinated pressure injection and real-time feedback across the hardware interface layer, container layer, and protocol layer.

[0083] pass Figure 4 This demonstration illustrates one scenario of stress testing using the present invention. The cloud management layer (module) injects stress simultaneously through two pathways: JMeter injects TCP protocol concurrency stress and GPIO interrupt stress, while container communication injects broadcast, low-pressure data collection and acquisition task scheduling management communication, and 485 malformed message stress. It also demonstrates how, when the core temperature of the acquisition terminal exceeds 70°C and a fault is triggered, the data analysis engine is activated, enabling hardware-software joint analysis and dynamic adjustment of the stress ratio between the two paths. Finally, after receiving the returned data from the cloud and completing the analysis test, the test terminates and memory is released.

[0084] In this embodiment of the invention, a method for performance testing of a data acquisition terminal system is proposed, which is the first complete technical solution proposed in this field. A key difference between this method and the performance testing of systems in other fields is that it combines the real-time hardware parameters of the data acquisition terminal to form a closed-loop feedback to adjust the concurrent pressure. Another key point of this method is that it injects pressure through two paths, JMeter and Shell script, to achieve concurrent pressure testing, and both paths are optimized according to the characteristics of the data acquisition terminal.

[0085] This invention addresses the current pain point of lacking a method for stress testing systems targeting data acquisition terminals. This invention helps developers better understand various data thresholds of the entire system during software development, enabling them to fully leverage the system's advantages during program design. Testers can also use this method to effectively verify the performance of the product system.

[0086] The method proposed in this invention, when conducting system stress testing, does not only focus on the software system but also considers hardware parameters to a certain extent, fully taking into account the overall product. Regarding pressure injection, pressure can be injected simultaneously through two paths, and the system adjusts the pressure in real time according to the overall system situation, ensuring improved accuracy and reliability of the test results obtained by this method.

[0087] The concurrent stress testing method for the acquisition terminal provided by the present invention is described below. The concurrent stress testing method for the acquisition terminal described below can be referred to in correspondence with the concurrent stress testing system for the acquisition terminal described above.

[0088] refer to Figure 5 , Figure 5 This is a flowchart illustrating the concurrent stress testing method for data acquisition terminals provided by the present invention.

[0089] Step 501: Configure concurrent stress test scenarios and generate test scripts through the cloud management module.

[0090] Step 502: Based on the received test script, the test control module generates concurrent pressure commands and Shell scripts according to multi-layer pressure gradient control; and sends the concurrent pressure commands and Shell scripts through a secure tunnel.

[0091] Step 503: The terminal adaptation module generates an excitation signal for the target interface based on the received concurrent pressure command and Shell script.

[0092] Step 504: Through the hardware interface module, the target interface is called based on the excitation signal to execute and obtain the status feedback data of the acquisition terminal system.

[0093] The terminal adaptation module collects status feedback data in real time and sends the data back to the cloud management module via the test control module. The cloud management module then generates a stress test report for the terminal system based on the status feedback data.

[0094] Specifically, the concurrent stress testing device for acquisition terminals provided by the present invention can implement all the method steps implemented in the above-described concurrent stress testing method embodiments for acquisition terminals, and can achieve the same technical effect. Here, the parts that are the same as those in the method embodiments and the beneficial effects will not be described in detail.

[0095] Figure 6 This is a schematic diagram of the physical structure of the electronic device provided by the present invention, such as... Figure 6As shown, the electronic device may include: a processor 610, a communications interface 620, a memory 630, and a communications bus 640, wherein the processor 610, the communications interface 620, and the memory 630 communicate with each other through the communications bus 640. The processor 610 can call logic instructions in the memory 630 to execute a concurrent stress test method for the acquisition terminal. This method includes: configuring a concurrent stress test scenario and generating a test script through a cloud management module; generating concurrent stress instructions and a Shell script based on the received test script and multi-layer stress gradient control through a test control module; and distributing the concurrent stress instructions and Shell script through a secure tunnel; generating a stimulus signal for the target interface based on the received concurrent stress instructions and Shell script through a terminal adaptation module; and calling the target interface for execution based on the stimulus signal through a hardware interface module to obtain status feedback data of the acquisition terminal system. The terminal adaptation module collects the status feedback data in real time and sends it back to the cloud management module via the test control module. The cloud management module generates a stress test report for the acquisition terminal system based on the status feedback data.

[0096] Furthermore, the logical instructions in the aforementioned memory 630 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0097] On the other hand, the present invention also provides a computer program product, which includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the concurrent stress testing method for the acquisition terminal provided by the above methods. The method includes: configuring a concurrent stress test scenario and generating a test script through a cloud management module; generating concurrent stress instructions and a Shell script based on the received test script and multi-layer stress gradient control through a test control module; and sending the concurrent stress instructions and Shell script through a secure tunnel; generating an excitation signal for a target interface based on the received concurrent stress instructions and Shell script through a terminal adaptation module; and calling the target interface for execution based on the excitation signal through a hardware interface module to obtain status feedback data of the acquisition terminal system. The terminal adaptation module collects the status feedback data in real time and sends the status feedback data back to the cloud management module via the test control module. The cloud management module generates a stress test report for the acquisition terminal system based on the status feedback data.

[0098] In another aspect, the present invention also provides a non-transitory computer-readable storage medium storing a computer program thereon. When executed by a processor, the computer program implements the concurrent stress testing method for the acquisition terminal provided by the above-described methods. The method includes: configuring a concurrent stress test scenario and generating a test script through a cloud management module; generating concurrent stress instructions and a Shell script based on the received test script and multi-layer stress gradient control through a test control module; and distributing the concurrent stress instructions and the Shell script through a secure tunnel; generating an excitation signal for a target interface based on the received concurrent stress instructions and the Shell script through a terminal adaptation module; and calling the target interface for execution based on the excitation signal through a hardware interface module to obtain status feedback data of the acquisition terminal system. The terminal adaptation module collects the status feedback data in real time and feeds the status feedback data back to the cloud management module via the test control module. The cloud management module generates a stress test report for the acquisition terminal system based on the status feedback data.

[0099] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0100] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0101] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A concurrent stress testing system for a data acquisition terminal, characterized in that, include: The cloud management module is used to configure concurrent stress test scenarios and generate test scripts; The test control module is communicatively connected to the cloud management module and is used to generate concurrent pressure commands and Shell scripts based on the received test script and according to multi-level pressure gradient control. The concurrent pressure command and the Shell script are then sent through a secure tunnel. The terminal adaptation module is communicatively connected to the test control module and is used to generate an excitation signal for the target interface based on the received concurrent pressure command and the Shell script. The hardware interface module is communicatively connected to the terminal adaptation module and is used to call the target interface to perform execution based on the excitation signal, thereby obtaining the status feedback data of the acquisition terminal system. The terminal adaptation module collects the status feedback data in real time and sends the status feedback data back to the cloud management module via the test control module. The cloud management module generates a stress test report for the data collection terminal system based on the status feedback data.

2. The concurrent stress testing system for data acquisition terminals according to claim 1, characterized in that, The multi-layer pressure gradient control includes: a base pressure layer, a peak impact layer, and a steady-state verification layer; the test control module is specifically used to execute at least one of the multi-layer pressure gradient control. The basic pressure layer is used to perform steady-state load simulation based on resource utilization and basic load, and to collect response delay baseline and resource consumption benchmark value. The peak impact layer is used to simulate hardware interruption based on mixed traffic concurrency and burst signals, and to collect the maximum concurrent processing volume and the crash threshold. The steady-state verification layer is used to collect memory leak rate and performance degradation curves based on pressure increment testing, hardware aging acceleration testing, and memory leak simulation.

3. The concurrent stress testing system for data acquisition terminals according to claim 1, characterized in that, The terminal adaptation module is specifically used for: The thread control parameters, protocol stack parameters, and stress waveform parameters in the concurrent stress commands are extracted using an embedded lightweight JMeter. Use the thread control component to execute thread control parameters to generate concurrent thread groups; use the pressure waveform generation component to convert pressure waveform parameters into time-sequential pressure waves; The target interface is obtained based on the environment configuration instructions in the Shell script, and an excitation signal for the target interface is generated by combining the protocol stack parameters and the timing pressure wave.

4. The concurrent stress testing system for data acquisition terminals according to claim 1, characterized in that, The terminal adaptation module is specifically used for: Parse the container communication instructions in the Shell script and the pressure gradient parameters in the concurrent pressure instructions; Distribute communication commands containing interactive data to multiple target containers through the message center; The amount of data interaction between the multiple target containers is determined based on the pressure gradient parameters, and interactive communication between the multiple target containers is triggered. Hardware call requests generated during the interaction and communication between multiple target containers are transformed into excitation signals for the target interface.

5. The concurrent stress testing system for a data acquisition terminal according to claim 1, characterized in that, The system also includes: A proportional-integral-derivative controller is communicatively connected to the test control module. It is used to determine the target resource occupancy rate and the actual resource occupancy rate in the returned state feedback data, and adaptively adjust the level of the multi-layer pressure gradient control based on the target resource occupancy rate and the actual resource occupancy rate.

6. The concurrent stress testing system for the data acquisition terminal according to claim 5, characterized in that, The adaptive adjustment of the multi-layer pressure gradient control levels based on the target resource occupancy rate and the actual resource occupancy rate includes: in, The difference between the target resource utilization rate and the actual resource utilization rate. This indicates the adjusted number of concurrent threads. Indicates the current number of concurrent threads. Represents the proportionality coefficient. Represents the integral coefficient. Represents the differential coefficient. Represents a time variable.

7. A method for concurrent stress testing of a data acquisition terminal, characterized in that, include: Configure concurrent stress test scenarios and generate test scripts through the cloud management module; The test control module generates concurrent pressure commands and Shell scripts based on the received test script and according to multi-layer pressure gradient control. The concurrent pressure command and the Shell script are then sent through a secure tunnel. The terminal adaptation module generates an excitation signal for the target interface based on the received concurrent pressure command and the Shell script. The target interface is invoked through the hardware interface module based on the excitation signal to execute the data and obtain the status feedback data of the acquisition terminal system. The terminal adaptation module collects the status feedback data in real time and sends the status feedback data back to the cloud management module via the test control module. The cloud management module generates a stress test report for the data collection terminal system based on the status feedback data.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that, When the processor executes the computer program, it implements the concurrent stress test method for the acquisition terminal as described in claim 7.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the concurrent stress test method for the acquisition terminal as described in claim 7.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the concurrent stress test method for the acquisition terminal as described in claim 7.