Method, system and storage medium for device burn-in testing based on dynamic protocol point table
By using a dynamic protocol point table method, the aging task process configuration is parsed and equipment objects and protocol objects are established to generate control commands. This solves the problem of equipment aging testing's dependence on specific equipment communication rules and achieves adaptability and flexibility in the test process.
Patent Information
- Application Number
- CN202611669101.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-27
- Publication Date
- 2026-11-27
AI Technical Summary
The existing equipment aging test process is highly dependent on specific equipment and communication protocols, making it difficult to adapt to changes in equipment models and protocol versions, thus limiting the adaptability of the aging test process.
A dynamic protocol point table-based approach is adopted. By parsing the aging task process configuration, equipment objects and protocol objects are established, control commands are generated and equipment data is read. The aging steps are executed according to the execution order of the process configuration, reducing the dependence on specific equipment communication rules.
It improves the adaptability of the equipment aging test process, enabling it to adapt to changes in equipment models and protocol versions without frequent modifications to the test program, ensuring the sequential execution of the test process and the flexibility of data reading.
Smart Images

Figure CN123176406A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of equipment aging test technology, and in particular to a method, system and storage medium for equipment aging test based on a dynamic protocol point table. Background Technology
[0002] During equipment research and development, verification, and production, aging tests are typically conducted according to a set process. This involves continuous operation, switching between operating conditions, and monitoring operating parameters to check the equipment's operational status. Taking energy storage equipment as an example, aging tests include charging, discharging, and resting steps. In addition to the device under test (DUT), the test station is equipped with external testing equipment such as electronic loads and programmable power supplies. During the test, the operating status of the DUT is controlled according to the requirements of each step, the operating parameters of the external testing equipment are set, and operating data is collected. Based on the collected results or the test duration, it is determined whether the current step meets the preset termination conditions. After the current step is completed, subsequent steps are executed in a set order until all steps are completed, ending the aging test.
[0003] Currently, equipment aging tests are typically performed using a host computer, PLC, or embedded gateway to run dedicated test programs. When writing these programs, the Modbus register addresses, SCPI commands, or CAN message rules required for device control and data reading, along with corresponding data parsing and conversion rules, are written into scripts, programs, or firmware, based on the communication protocols of the device under test (DUT) and external test equipment. The aging test process is then written according to the product model and the compatible test equipment. The test process specifies the execution order, control operations, data acquisition items, and termination conditions for each step. During test execution, the program sends control commands to the corresponding equipment according to the requirements of the current step, sets the operating status of the DUT and the operating parameters of the external test equipment, and reads the specified operating data. After the termination condition of the current step is met, the program executes the corresponding stop or state switching operation before proceeding to the next step until the aging test is completed.
[0004] However, the control operations and data reading in the above test procedures rely on pre-written device communication rules. When the model, protocol version, or external test equipment of the device under test changes, even if the aging process requirements are the same, the corresponding control commands, data locations, and parsing rules may differ, thus requiring adjustments to the original read / write procedures. Therefore, the existing device aging test process is highly dependent on specific devices and their communication protocols. Even if the aging process remains unchanged, it often requires modification of a dedicated test program to adapt to changes in equipment or protocols. As the models, protocol versions, and types of supporting test equipment increase, the number of communication rules that the test program needs to handle also increases. Strong coupling can easily form between process logic, communication protocol processing, and device drivers, making it difficult for the existing test process to be directly applied to different devices and protocol versions, thereby limiting the adaptability of the device aging test process. Summary of the Invention
[0005] This application provides a device aging test method, system, and storage medium based on a dynamic protocol point table. This method allows for greater delegation of device differences to corresponding configurations, reducing the dependence of process execution logic on specific device communication rules and supporting equipment combinations, thereby improving the adaptability of the device aging test process. This application provides the following technical solutions: In a first aspect, this application provides a device aging test method based on a dynamic protocol point table, the method comprising: Obtain and parse the aging process configuration corresponding to the aging task, and establish the equipment object and corresponding aging steps based on the parsing results; The protocol point table is obtained and parsed according to the protocol identifier corresponding to the device object. A protocol object associated with the device object is established according to the parsed protocol type, and the parsed point configuration is loaded into the protocol object. The aging steps are executed sequentially according to the execution order in the aging process configuration. When executing the current aging step, the aging step with the same type as the current aging step is selected from the aging steps corresponding to each device object as the matching step. Based on the point configuration in the protocol object associated with each device object, the control command corresponding to the pre-action of the matching step is generated and sent. Based on the sampling points configured in the matching step, the corresponding point configuration is searched in the protocol object associated with the corresponding device object, and the device data is read and parsed according to the point configuration. The termination condition of the current aging step in the aging process configuration is determined. After the termination condition is met, the control command corresponding to the post-action of the matching step is generated and sent according to the point configuration in the corresponding protocol object. The remaining aging steps are then executed in the execution order until all aging steps are completed, and the aging test ends.
[0006] In a specific implementation scheme, the step of obtaining and parsing the protocol point table based on the protocol identifier corresponding to the device object, establishing a protocol object associated with the device object based on the parsed protocol type, and loading the parsed point configuration into the protocol object includes: When performing the aging task, the protocol identifier corresponding to the device object is read from the aging process configuration, the protocol identifier is used as a query parameter to dynamically obtain the corresponding protocol point table, and the protocol type and point configuration in the protocol point table are parsed. Based on the protocol type, a protocol object associated with the device object is established using the corresponding protocol data structure; The point identifier and protocol parameter corresponding to the device data item or control parameter in the point configuration are read one by one. The point identifier and corresponding protocol parameter of each point are written into the corresponding data field of the protocol object to establish the association between each point identifier and the corresponding protocol parameter, thus completing the loading of the point configuration.
[0007] In a specific implementation scheme, selecting an aging step of the same type as the current aging step from the aging steps corresponding to each device object as the matching step includes: Based on the equipment definition in the aging process configuration, determine the device under test and the external test equipment in the equipment object; The aging steps are executed sequentially according to the execution order of the aging steps corresponding to the device under test object. The currently executed aging step is used as the matching step of the device under test object, and the step type of the current aging step is obtained. In the aging step configuration corresponding to each of the external test equipment objects, find the aging step with the same step type as the current aging step, use the found aging step as the matching step for the corresponding external test equipment object, and save the position of the matching step in the corresponding aging step configuration.
[0008] In one specific implementation, before generating and sending the control command corresponding to the pre-action of the matching step for the first time, the method further includes: Check whether the protocol point table of each external test device object is successfully parsed, whether the protocol type is successfully identified, and whether the point configuration is successfully loaded. After the protocol point table parsing, protocol type identification, and point configuration loading of each external test device object are all successful, for each external test device object, the point to be inspected is determined according to the sampling point in the aging process configuration, and the data of the point to be inspected is read according to the point configuration in the associated protocol object to verify the readability of the point to be inspected. After all the data at the points to be inspected are read normally, a communication check is performed on the device corresponding to the device under test. The communication response is confirmed to be normal by reading preset device information or status data. After the protocol point table parsing, protocol type identification, and point configuration loading of each external test device object are successful, the data of the points to be checked are read normally, and the communication response of the device corresponding to the device under test is normal, the control command corresponding to the pre-action of the matching step is generated and sent.
[0009] In a specific feasible implementation, the step of generating and sending control commands corresponding to the pre-actions of the matching step based on the point configuration in the protocol object associated with each device object includes: Using the parameter identifier configured in the pre-action of the matching step as the target point identifier, the point configuration corresponding to the target point identifier is searched in the protocol object associated with the device object corresponding to the matching step. The parameter values configured in the preceding actions are used as the values to be written, and the values to be written are converted according to the protocol parameters in the point configuration. Based on the converted data and the protocol parameters, a control command corresponding to the preceding action is generated, and the control command is sent through the communication sending interface of the device object.
[0010] In one specific implementation, the method further includes: When generating the control command corresponding to the preceding action, the command template is obtained from the point configuration corresponding to the target point identifier, and the parameter placeholder part in the command template is determined. The parameter placeholder is replaced with the converted data to generate the control command corresponding to the pre-action, and the control command is sent through the communication sending interface of the device object. Based on the sampling points configured in the matching step, the corresponding point configuration is searched in the protocol object associated with the corresponding device object, and the query command and response template are obtained from the point configuration. A query instruction for reading the data corresponding to the sampling point is generated based on the query command. The query instruction is sent through the communication sending interface of the corresponding device object, and the response data returned by the device is received through the communication receiving interface of the corresponding device object. The response data is parsed according to the response template, and the data values corresponding to the sampling points are extracted as the device data collected in the matching step.
[0011] In one specific implementation scheme, the determination based on the termination condition of the current aging step in the aging process configuration includes: The termination condition of the current aging step in the aging process configuration is analyzed. Based on the step type of the current aging step, the execution time or equipment operating parameters are determined as the judgment parameters, and the target value corresponding to the judgment parameters is obtained. When the execution duration is used as a judgment parameter, the target value is used as the set execution duration of the current aging step. The execution deadline is calculated based on the start time of the current aging step and the set execution duration. When the execution deadline is reached, it is determined that the termination condition of the current aging step is met. When using equipment operating parameters as judgment parameters, the current value of the judgment parameters is obtained from the read and parsed equipment data and continuously updated. The current value is compared with the target value, and the termination condition of the current aging step is determined according to the step type of the current aging step and the comparison result.
[0012] In one specific implementation, the method further includes: Structured aging data is generated based on the device data, and the network connection status between the device and the test platform is detected. When the network connection is normal, the structured aging data is uploaded to the test platform. If the network connection is interrupted during the aging test, the aging steps are continued according to the point configuration loaded in the protocol object, and the unuploaded structured aging data is saved locally and a non-uploaded flag is set. After the network connection is restored, the real-time generated structured aging data is uploaded to the test platform, and the local structured aging data with the non-uploaded flag is retrieved and re-uploaded to the test platform.
[0013] Secondly, this application provides a device aging test system based on a dynamic protocol point table, which adopts the following technical solution: A device aging test system based on dynamic protocol point table is used to execute the device aging test method based on dynamic protocol point table as described in the first aspect. The system includes a test platform, multiple intelligent aging gateways, the device under test, and external test equipment. The multiple intelligent aging gateways form a test network, which is divided into root node gateways and child node gateways according to their network roles. The root node gateway is communicatively connected to the test platform, and the child node gateways are communicatively connected to the root node gateway and to the test platform through the root node gateway. The device under test and the external test equipment are communicatively connected to the child node gateways respectively.
[0014] In one specific implementation scheme, the root node gateway connects to an external network and manages the test network; each child node gateway is configured with a different node identifier, and each node identifier is associated with a corresponding aging task, device under test (DUT), and external test equipment; the child node gateway receives the aging task associated with the node identifier of the child node gateway through the root node gateway, parses the aging process configuration and protocol point table corresponding to the aging task, controls the DUT and external test equipment associated with the node identifier according to the parsing result and collects device data, and after associating the collected device data with the node identifier, uploads it to the test platform through the root node gateway.
[0015] Thirdly, this application provides an electronic device, the device including a processor and a memory; the memory stores a program, the program being loaded and executed by the processor to implement the device aging test method based on a dynamic protocol point table as described in the first aspect.
[0016] Fourthly, this application provides a computer-readable storage medium storing a program that, when executed by a processor, is used to implement the device aging test method based on a dynamic protocol point table as described in the first aspect.
[0017] By parsing the aging process configuration, equipment objects and corresponding aging steps are established. The protocol point table is obtained and parsed based on the protocol identifier of the equipment object, associated protocol objects are established, and point configurations are loaded. The aging steps are then executed sequentially according to the execution order in the process configuration. Matching steps for each equipment object are selected based on the type of the current step, completing pre-action control and equipment data reading. After the termination condition of the current step is met, post-actions are executed, and the remaining steps continue until the aging test ends. In this process, the aging process configuration determines the actions, sampling content, and step termination requirements for each device at different test stages. The point configuration in the associated protocol objects is used to generate specific control commands and read and parse equipment data. Therefore, the test process associates process operation requirements with the communication rules of the corresponding devices through equipment objects, and specific control and reading operations can be completed based on the loaded point configurations. When changes in equipment model or protocol version cause changes in communication rules, provided that the corresponding protocol point table has been updated to reflect the changed communication rules, the adjusted communication rules can be applied to equipment control and data reading by obtaining and loading the corresponding point configuration through the protocol identifier, reducing the need to modify the aging process execution program to adapt to communication differences. Meanwhile, the current operation of each device is determined by the matching results of the same type of steps. When the supporting equipment changes, the process configuration and protocol point table corresponding to the corresponding equipment are used. The actions and sampling content of each device can still be determined according to the step type, and the specific operation is completed according to the point configuration in the associated protocol object. This allows the test process to continue to use the processing method of sequential execution, type matching, and control and reading according to the configuration, reducing the dependence on specific equipment communication rules and supporting equipment combinations, thereby improving the adaptability of the equipment aging test process.
[0018] The above description is only an overview of the technical solution of this application. In order to better understand the technical means of this application and to implement it in accordance with the contents of the specification, the preferred embodiments of this application are described in detail below with reference to the accompanying drawings. Attached Figure Description
[0019] Figure 1 This is a flowchart illustrating the device aging test method based on a dynamic protocol point table in an embodiment of this application.
[0020] Figure 2 This is a schematic diagram of the dynamic protocol point table acquisition and loading process in an embodiment of this application.
[0021] Figure 3 This is a schematic diagram of the joint inspection process before aging is started in the embodiments of this application.
[0022] Figure 4 This is a schematic diagram of the network state change and aging test continuous execution process in the embodiments of this application.
[0023] Figure 5 This is a schematic diagram of the aging data acquisition, storage, and retransmission process in the embodiments of this application.
[0024] Figure 6 This is a schematic diagram of the execution flow of a single aging step in an embodiment of this application.
[0025] Figure 7 This is a schematic diagram of the overall logic of the device aging test method based on dynamic protocol point tables in the embodiments of this application.
[0026] Figure 8 This is a structural block diagram of the device aging test system based on a dynamic protocol point table in the embodiments of this application.
[0027] Figure 9 This is a block diagram of an electronic device for device aging test based on a dynamic protocol point table in an embodiment of this application. Detailed Implementation
[0028] The specific embodiments of this application will be described in further detail below with reference to the accompanying drawings and examples. The following examples are used to illustrate this application, but are not intended to limit the scope of this application.
[0029] Optionally, this application uses the device aging test method based on dynamic protocol point table provided in various embodiments in electronic devices as an example for illustration. The electronic device is a terminal or server. The terminal can be a computer, tablet computer, etc. This embodiment does not limit the type of electronic device.
[0030] This application provides a device aging test method based on a dynamic protocol point table. In one embodiment, the method is executed by an intelligent aging gateway, which is communicatively connected to a test platform and also to the device under test (DUT) and external test equipment. The test platform manages aging tasks and maintains the aging process configuration and the corresponding protocol point table for the device. The DUT is the object of the aging test. External test equipment includes electronic loads, programmable power supplies, or power meters, used to apply loads, provide power output, or perform parameter measurements.
[0031] Reference Figure 1This is a flowchart illustrating a device aging test method based on a dynamic protocol point table according to an embodiment of this application. The method includes at least the following steps: Step S100: Obtain and parse the aging process configuration corresponding to the aging task, and establish the equipment object and the corresponding aging steps based on the parsing results.
[0032] In step S100, the intelligent aging gateway parses the device information and step content in the configuration into runtime data, saves the communication method, protocol identifier, and corresponding aging steps for each device, and saves the action, sampling point, and termination condition for each step. In this way, the description of the device and test operation in the process configuration is converted into device objects and step data that the gateway can use, so that the communication configuration of each device corresponds to the aging steps that need to be executed.
[0033] Specifically, the intelligent aging gateway obtains the aging process configuration corresponding to the current aging task. The aging process configuration is described in a structured manner, mainly including two parts: device definitions and aging steps. Device definitions record the devices involved in the current task and their communication information, while aging steps record the operations to be performed by each device, the data collected, and the step termination conditions. During parsing, both parts are read separately, and the parsing results are saved according to the correspondence between devices and steps in the configuration.
[0034] First, the device type, communication method, and protocol identifier for each device are obtained from the device definition. The device type indicates the device type; the communication method determines the communication interface for data interaction with the device; and the protocol identifier identifies the corresponding protocol configuration for the device. A device object is a data object created by the gateway at runtime for the actual device, storing basic information such as device name, communication method, and protocol identifier, as well as the number of aging steps and the specific content of each step, and is associated with the device's protocol object. The device object also records the hardware initialization status and protocol loading status, representing the completion status of communication interface initialization and protocol configuration loading, respectively. The intelligent aging gateway creates device objects according to the configuration of each device and saves the device's communication method, protocol identifier, and other information to the corresponding device object. After the aging steps for each device are parsed, they are saved to the corresponding device object. The hardware initialization status and protocol loading status are updated according to the completion status of communication interface initialization and protocol configuration loading, respectively. When the task involves multiple external test devices, a corresponding number of device objects are created for each device, ensuring that the configuration and status of different devices are saved independently.
[0035] Subsequently, the aging process steps are parsed one by one according to the execution order in the aging process configuration. The step type, termination condition, sampling point, and action configuration of each step are read, and corresponding runtime step data is established. The step type indicates the operation type used in the current step, such as resting, discharging, or charging; the termination condition determines whether the current step can be terminated; the sampling point specifies the data to be read during the step's execution; and the action configuration describes the equipment operations to be performed at the beginning and end of the step. The intelligent aging gateway saves the step type as the execution identifier of the corresponding step and retains the order of each step in the process configuration.
[0036] For termination conditions, the system reads the judgment parameters and their corresponding target values, and saves them in association. For example, when the judgment parameter is time, the target value represents the configured execution duration; when the judgment parameter is battery state of charge (SOC), the target value represents the configured target SOC. SOC is the ratio of the battery's current remaining capacity to its rated capacity. For sampling points, the system reads the point identifiers specified in the configuration and saves them to the step data of the corresponding aging step. This information is used to specify the device data to be read during the step's execution, such as battery SOC and input current. Both termination conditions and sampling points can be configured in list form, each containing one or more termination conditions and one or more sampling items.
[0037] Furthermore, the pre-actions and post-actions in the action configuration are analyzed separately. Pre-actions describe the operations to be performed at the beginning of the step, while post-actions describe the operations to be performed at the end of the step. Each action specifies the device function point to be operated through a parameter identifier and the corresponding value to be written through a parameter value. The intelligent aging gateway reads the parameter identifier and parameter value of each action, saves them as the action data of the corresponding step, and distinguishes between pre-actions and post-actions. After completing the step parsing, the number of steps and the specific content of each step are saved to the corresponding device object, establishing the association between the device object and the aging step. The actions, sampling points, and termination conditions of each aging step are saved to the corresponding step data, and the step data is arranged according to the execution order specified in the aging process configuration.
[0038] In one optional implementation, the aging process configuration can be in JSON format, storing device definitions and step content through fields and ordered arrays; alternatively, it can use CBOR, Protocol Buffers, MessagePack, database records, or other structured formats. This application does not limit the specific encoding format of the aging process configuration; regardless of the format used, the correspondence between device definitions, protocol identifiers, and actions, sampling points, and termination conditions within the steps is still preserved. Configuration data can be provided to the intelligent aging gateway by the test platform via the Message Queuing Telemetry Transport Protocol (MQTT). MQTT uses a publish-subscribe interaction method; the test platform publishes configuration messages to the corresponding business topic, and the gateway obtains the messages by subscribing to the corresponding topic, identifying the business type and parsing the configuration content based on the topic.
[0039] Taking an implementation using JSON format to describe process configuration as an example, the configuration of each device can be centrally stored through the device definition item `AgingDevices`. The `Devices` array organizes one or more devices, with `Type`, `Communication`, and `ProtoID` representing the device type, communication method, and protocol identifier, respectively. The aging steps, arranged in execution order, are stored through the step definition item `AgingFunctionList`. In each step, `Method`, `JudgingCondition`, `SampleData`, and `Action` represent the step type, termination condition, sampling point, and action configuration, respectively. In the termination condition, `Name` and `Value` represent the judgment parameter and target value, respectively; in the sampling item, `Value` represents the point to be read; in the action configuration, `PreAction` and `AfterAction` represent the pre-action and post-action, respectively, and in each action, `ParaID` and `ParaValue` represent the parameter identifier and parameter value, respectively. The parsed aging step data can be saved as `AgingSteps` in the device object, including the number of steps and the specific step content.
[0040] Regarding communication configuration for device objects, upon creation, the hardware initialization state is set to incomplete, and the protocol loading state is set to unconfigured. The corresponding underlying communication interface is selected based on the saved communication method, and interface initialization is completed. After successful initialization, the hardware initialization state is updated to complete, and the corresponding send and receive functions are bound to the device object, enabling the device object to call the corresponding link's send and receive functions through a unified communication send and receive interface. While the communication interface initialization is complete, the protocol loading state remains unconfigured; the protocol loading state is updated after the corresponding protocol point table is parsed and loaded, ensuring that the communication interface initialization status and protocol configuration loading status are recorded separately.
[0041] In one specific implementation, the corresponding sending and receiving functions for the device are stored in the send function pointer CurrentSendFunc and the receive function pointer CurrentRecvFunc. When using RS485 communication, RS485 transmit and receive functions are bound; the send function sends data through the RS485 interface, and the receive function retrieves data from the interface's receive buffer. When using Controller Area Network (CAN) communication, CAN transmit and receive functions are bound, providing data frame sending and receive queue reading functions. For data interactions requiring read / write responses, the sending, waiting for response, and data reception are completed according to the corresponding transmission process. When using Bluetooth Low Energy (BLE) communication, the communication interface provides device scanning, connection, and data transmission and reception functions after connection establishment, and is bound with corresponding send and receive functions. Each communication interface is responsible for data transmission; the generation of specific messages and data parsing are completed by the protocol processing procedure.
[0042] Optionally, the communication medium can also be RS232, Ethernet, Wi-Fi, USB, or LIN, and associated with corresponding communication transceiver interfaces. The association between the device object and the communication interface can be implemented using function pointers, virtual functions, interface tables, message buses, or driver registry. This application does not limit the specific communication medium and interface association method; all implementations determine the corresponding communication functions according to the device configuration and store the corresponding association relationships through the device object.
[0043] Through the above processing, the communication information of the equipment and the aging steps are associated in the equipment object. The step sequence, actions, sampling points, and termination conditions of each step are all obtained from the process configuration. When adjusting the step combination or step content, the gateway parses the adjusted aging process configuration and saves the corresponding step sequence, actions, sampling points, and termination conditions to the corresponding equipment object, so that the aging steps saved in the equipment object correspond to the adjusted process configuration. Therefore, the equipment used and the steps executed by different processes are determined by their respective configurations, and adjustments to the step content can be reflected in the corresponding equipment object through configuration parsing. In the implementation of binding communication interfaces, the send / receive functions corresponding to each device are saved by the equipment object. Device communication calls the corresponding functions through a unified interface, eliminating the need to judge and call the send / receive functions of specific links in each step, thereby reducing the direct dependence of process operations on the underlying communication links.
[0044] Step S200: Obtain and parse the protocol point table according to the protocol identifier corresponding to the device object, establish a protocol object associated with the device object according to the parsed protocol type, and load the parsed point configuration into the protocol object.
[0045] In step S200, the intelligent aging gateway obtains the corresponding protocol configuration according to the protocol identifier stored in the device object, associates the identifier of the device function point with the specific communication parameters and saves them to the protocol object, and saves the corresponding protocol object in the device object. In this way, the device operation and sampling items in the process configuration can be mapped to the actual communication parameters through the point identifier, and the device's register address, command format, and data processing parameters are provided by the protocol point table.
[0046] Specifically, the protocol point table uses a structured approach to describe the device's communication protocols and functional points, mainly including two parts: basic protocol information and point information. Basic protocol information describes the identifier, name, protocol type, and protocol version of the protocol point table; point information describes the specific functional points of the device, as well as the underlying communication parameters corresponding to each functional point. Here, a point represents a readable data item or configurable control parameter in the device, such as battery state of charge or output current setpoint; the point configuration records the point identifier and the protocol parameters required to read or set the corresponding data. Point information for different protocols uses a unified organization method and is configured with corresponding parameters according to the characteristics of the protocol.
[0047] First, during the aging task, the protocol identifier corresponding to the device object is read from the aging process configuration. The protocol identifier is used as a query parameter to dynamically obtain the corresponding protocol point table, and the protocol type and point configuration in the protocol point table are parsed. The read protocol identifier is consistent with the protocol identifier saved to the corresponding device object in step S100. The obtained protocol point table is determined by the protocol identifier of the corresponding device in the current task, and the specific point parameters are obtained by parsing the obtained protocol point table. In the implementation where the protocol point table is provided by the test platform, the test platform maintains the protocol configuration corresponding to the device. Upon receiving a query request, it queries the protocol point table according to the protocol identifier in the request and returns the basic protocol information and point information to the intelligent aging gateway.
[0048] In one implementation, the intelligent aging gateway sends a query request to the testing platform via a Hypertext Transfer Protocol (HTTP) interface, using the protocol identifier stored in the device object as the query parameter. The testing platform returns the query results in JSON format. The intelligent aging gateway receives the returned data, performs integrity checks and structure parsing, and obtains the protocol type and point configuration. Alternatively, the returned data can be organized separately into a service packet and protocol content structure. The service packet organizes the query results, while the protocol content stores the specific data for the corresponding protocol point table. The intelligent aging gateway parses the returned data according to its structure.
[0049] Optionally, the protocol point table can also be obtained through Message Queuing Telemetry Transport Protocol (MQTT) response messages, WebSocket, local files, Universal Serial Bus (USB) import, or gateway cache synchronization. This application does not limit the specific method of obtaining the protocol point table; all methods determine and obtain the corresponding protocol point table based on the protocol identifier corresponding to the device object. The protocol point table can also adopt CBOR, MessagePack, or other structured encoding forms, and the correspondence between protocol identifiers and protocol content, and between point identifiers and point configurations, is preserved during parsing.
[0050] Subsequently, based on the protocol type, a protocol object associated with the device object is established using the corresponding protocol data structure. The protocol object is a data object used at runtime to store specific protocol configurations, including the protocol type and configuration content for each point. Different protocol data structures have data fields corresponding to the relevant protocol parameters to store the parsed point configurations. For example, the data structure for the Modbus protocol sets fields such as register address and register length, while the data structure for the SCPI protocol sets fields such as command template and response template. The intelligent aging gateway associates the protocol object with the corresponding device object and stores the protocol object within the device object, enabling separate management of protocol configurations for different devices.
[0051] Reference Figure 2 , Figure 2 This is a schematic diagram of the dynamic protocol point table acquisition and loading process provided in one embodiment of this application, showing the process of acquiring the protocol point table based on the protocol identifier, identifying the protocol type, loading the point configuration, and handling acquisition or loading exceptions.
[0052] Specifically, each point configuration includes a point identifier, a point name, and corresponding protocol parameters. The point identifier is used to locate the device function point in the corresponding protocol object, and the point name describes the device parameter or control function corresponding to the function point. The point identifier and protocol parameters corresponding to the device data items or control parameters in the point configuration are read item by item. The point identifier and corresponding protocol parameters of each point are written into the corresponding data fields in the protocol object, establishing the association between each point identifier and the corresponding protocol parameter, thus completing the loading of the point configuration. The point name and the corresponding point configuration are saved together. By writing the configuration content of each point into the protocol object, the point identifier in the process configuration can find the corresponding protocol parameter in the corresponding protocol object. The search scope of the point identifier is the corresponding protocol object; global uniqueness of point identifiers in different devices or different protocol objects is not required.
[0053] For devices using Standard Programmable Instrument Commands (SCPI), the point identifier, point name, read / write attributes, command template, and response template are loaded into the corresponding protocol object. The read / write attributes describe the allowed read or write operations at the point; the command template describes the format of the instructions sent to the device and may include placeholders for control parameters; the response template describes how the device parses the returned data. For commands with parameters, configurations such as parameter name, unit, default value, and parameter limitations can also be loaded to describe the required values for the command parameters.
[0054] For devices using the Modbus protocol, the configurations such as point identifier, point name, read / write attributes, unit, data type, register address, register length, precision, compensation value, and unsigned attribute are loaded into the corresponding protocol object. Among them, the register address and register length are used to determine the register location and range corresponding to the point, the data type and unsigned attribute are used to describe the data representation method, and the precision and compensation value are used to describe the conversion relationship between the original register data and the actual physical quantity.
[0055] For devices using the Controller Area Network (CAN) protocol, the configurations such as point identifier, point name, read / write attributes, unit, data type, starting position, data length, precision, compensation value, and unsigned attribute are loaded into the corresponding protocol object, and parameters such as bit status are saved according to the point configuration. Among these, the starting position and data length are used to determine the position and range of the target data field in the data frame, the data type is used to determine the data parsing method, and the precision and compensation value are used to describe the conversion relationship between the original data and the actual physical quantity.
[0056] In one specific implementation, the protocol point table stores identifiers, names, and descriptions through fields such as id, uuid, name, and description; it stores the protocol type through the protocolType and protocolTypeStr fields; and it organizes the point configurations through a contents array, with each array element corresponding to a device function point. The intelligent aging gateway parses the protocolTypeStr field to determine the protocol type, then parses the contents array according to the point structure of the corresponding protocol, converting the configuration of each point into runtime protocol items and saving them to the corresponding protocol object. Here, the protocol point table identity field is used to identify the entire point table, and the point identifier is used to find the specific function point in the point table; both correspond to different levels of configuration content.
[0057] Furthermore, after the protocol point table parsing and point configuration loading are completed, the intelligent aging gateway updates the protocol loading status in the device object to "loaded" and associates the processing result of the protocol configuration with the device object. The protocol loading status reflects whether the protocol configuration is complete, while the initialization status of the communication interface is still recorded by the hardware initialization status in the device object. The two statuses reflect the completion status of the protocol configuration and the communication interface, respectively.
[0058] During the acquisition and loading of the protocol point table, the intelligent aging gateway assesses the acquisition, parsing, and loading results. If the protocol point table fails to be acquired within the specified time, or if the returned data cannot be parsed correctly, the protocol type cannot be identified, or the point configuration loading fails, the corresponding device's protocol loading status is marked as unloaded, and the aging process is stopped. For recoverable communication anomalies, the protocol point table is re-requested before the preset number of retries is reached. For unrecoverable anomalies, or if protocol loading is not completed after the preset number of retries is reached, the current aging task is classified as abnormal, and the abnormal status and error information are reported to the testing platform.
[0059] Optionally, the protocol type can also be extended to other register protocols or command protocols. During extension, point parameters are set according to the characteristics of the corresponding protocol, and corresponding protocol parsing and loading processes are provided, enabling the parsed point configuration to be saved to the corresponding protocol object. Communication methods and protocol types are handled separately; the protocol object stores the configuration required for message and data processing, while the communication interface already bound to the device object handles data transmission.
[0060] Through the above processing, the correspondence between device function points and specific communication parameters is stored in the protocol object. The point identifiers in the process configuration can be mapped to the registers, commands, or data fields actually used by the device. Since the protocol point table is dynamically obtained based on the corresponding protocol identifier of the device during aging tasks, and the parsed point parameters are loaded into the corresponding protocol object, when the device model or protocol version changes, provided the protocol type is supported and the point identifiers referenced by the process remain corresponding, the corresponding protocol point table can be updated, and the updated configuration can be obtained, parsed, and loaded during task execution to adapt to changes in register addresses, command formats, and conversion parameters. This allows adjustments to the specific communication parameters of the device to be reflected in the runtime protocol object through the point table configuration, reducing modifications to dedicated read / write programs and enabling a given process to adapt to devices with different communication parameters. Simultaneously, stopping the aging action execution process when acquisition, parsing, or loading fails avoids using an incompletely loaded protocol configuration to perform device operations.
[0061] Step S300: Execute the aging steps sequentially according to the execution order in the aging process configuration. When executing the current aging step, select the aging step of the same type as the current aging step from the aging steps corresponding to each equipment object as the matching step, and generate and send the control command corresponding to the pre-action of the matching step according to the point configuration in the protocol object associated with each equipment object.
[0062] In step S300, the intelligent aging gateway determines the steps that each device needs to execute based on the type of the current aging step of the device under test, and then converts the pre-action actions in the steps into control commands for the corresponding devices. When executing the pre-action actions for the first time, it first confirms that the device communication interface, protocol configuration, and test points meet the startup requirements, so that device control is established on the basis that communication and protocol configuration are available.
[0063] Specifically, based on the equipment definitions in the aging process configuration, the device under test (DUT) and external test equipment objects are determined within the equipment objects. Among these, the existing equipment objects are distinguished according to their definitions: the equipment object corresponding to the device undergoing aging testing is the DUT, and the equipment objects corresponding to devices participating in the test, such as electronic loads and programmable power supplies, are external test equipment objects. Step matching and action execution obtain step configurations, protocol configurations, and communication interfaces through the corresponding equipment objects, without recreating the equipment objects.
[0064] First, before generating and sending the control commands corresponding to the pre-actions of the matching step, the intelligent aging gateway checks the hardware initialization status recorded in each external test device object to confirm whether the corresponding communication interface has been initialized. It then checks whether the protocol point table of each external test device object has been successfully parsed, whether the protocol type has been successfully identified, and whether the point configuration has been successfully loaded. For the protocol configuration that has been obtained and loaded, the gateway confirms its availability by combining the parsing results, protocol type, and loading status. If the communication interface has not been initialized or the protocol configuration is abnormal, the aging action execution process will not proceed.
[0065] Reference Figure 3 , Figure 3 This is a schematic diagram of the pre-aging start joint inspection process provided in one embodiment of this application, illustrating the process of checking the communication interface of the external test equipment, protocol checking, point readability verification, communication checking of the device under test, and handling of inspection anomalies. The intelligent aging gateway sequentially confirms the completion status of the communication interface and protocol configuration, and then verifies whether the device has the communication conditions to perform the test through actual data interaction.
[0066] After successful parsing of protocol point tables, identification of protocol types, and loading of point configurations for each external test device, the points to be checked are determined based on the sampling points in the aging process configuration for each external test device. Data from these points is read according to the point configuration in the associated protocol object to verify their readability. The points to be checked are the sampling points of the corresponding external test device that need to be verified for data readability before the aging process begins. They originate from the process configuration of the current aging task, such as the points corresponding to the current, power, and other data required by the process. The intelligent aging gateway confirms whether the corresponding data can be obtained normally based on the device's returned results. If reading fails, an error is returned, or communication times out, the readability verification of the corresponding point is deemed unsuccessful. Point readability verification not only confirms that the device can establish communication but also confirms that the data required by the process can be read normally through the loaded point configuration.
[0067] After all data at the test points has been read normally, a communication check is performed on the device corresponding to the device under test (DUT). The normality of the communication response is confirmed by reading preset device information or status data. In one implementation, for DUTs using Bluetooth Low Energy communication, device scanning and connection are performed, and preset data is read after the connection is established. For DUTs using CAN or RS485 communication, preset device information, status data, or configured data points are read according to the loaded protocol configuration. If the DUT does not respond, communication is abnormal, or the required data cannot be obtained normally, the aging process is not initiated, and the abnormal status is reported to the test platform.
[0068] For temporary communication anomalies occurring during the startup check process, the intelligent aging gateway re-executes the check item that encountered the anomaly according to a preset number of retries, and determines whether the check passes based on the result of the re-execution. For example, if data cannot be obtained normally when reading data from the point to be checked due to a response timeout, the data reading of the corresponding point is re-executed; after successfully obtaining the data, the startup check that has not yet been completed continues. If the check still fails after reaching the preset number of retries, the startup process of the current aging task is terminated, the task is placed in an abnormal termination state, and the abnormal information is reported to the test platform. For check anomalies that cannot be recovered through retries, the startup process is stopped and an abnormality is reported.
[0069] In one implementation of a test process organized using a state machine, the initialization and protocol / point checks of the external test equipment are performed in the aging start check state, while the communication checks of the device under test (DUT) are performed in the device communication check state. After both types of checks are completed and the start requirements are met, the aging action state begins. These states can be denoted as AgingStartCheck, AgingDeviceCheck, and AgingAction, respectively, to distinguish whether the current task is in the external device check, DUT communication check, or step action execution phase. It should be noted that these states represent the execution phase of the aging task, which differs from the hardware initialization and protocol loading states recorded in the device object.
[0070] Regarding step matching, aging steps are executed sequentially according to the execution order of the aging steps corresponding to the device under test (DUT). The currently executing aging step is used as the matching step for the DUT, and the step type of the current aging step is obtained. The execution order specifies the sequential relationship of the aging steps of the DUT; the current aging step is the step that the gateway is executing in this order. The step type indicates the operation type, such as rest, discharge, or charge. The matching step indicates the step configuration that the corresponding device needs to use in the current aging operation; the matching step of the DUT is the current aging step.
[0071] Subsequently, in the aging step configuration corresponding to each external test equipment object, aging steps with the same step type as the current aging step are searched. These found aging steps are used as matching steps for the corresponding external test equipment object, and their positions in the corresponding aging step configuration are saved. The aging step configuration for each equipment object is the step content parsed from the aging process configuration and saved to the corresponding equipment object; the saved position indicates the storage location of the matching step in the corresponding external test equipment's own step configuration. The step positions for different devices are saved separately, and it is not required that the step sequence number of the external test equipment be the same as the current step sequence number of the device under test. When performing pre-actions, data acquisition, and post-actions, the corresponding configuration in the matching step is read according to the saved position, ensuring that the same device uses corresponding actions and sampling content in the current aging operation.
[0072] For example, when the current aging step of the device under test (DUT) is a discharge step, the intelligent aging gateway searches for the discharge step in the step configuration corresponding to the electronic load and obtains the action configuration that the electronic load needs to perform during the discharge process. The DUT and the electronic load establish a correspondence according to the same step type, but each uses the control parameters in its respective step, and the action configuration of the DUT is not directly applied to the electronic load.
[0073] After successful parsing of protocol point tables, identification of protocol types, and loading of point configurations for each external test device object, normal reading of data at all test points, and normal communication response from the device corresponding to the tested device object, control commands corresponding to the pre-actions of the matching step are generated and sent. The processing of pre-actions is based on the matching steps of the corresponding device, obtaining action parameters item by item, and generating control commands through the protocol object associated with the device object. The start check is completed before the first execution of the pre-actions; when switching aging steps, the pre-actions are processed according to the new matching steps.
[0074] Specifically, the parameter identifier configured in the pre-action of the matching step is used as the target point identifier. The point configuration corresponding to the target point identifier is searched in the protocol object associated with the device object corresponding to the matching step. The parameter value configured in the pre-action is used as the value to be written, and data conversion is performed on the value to be written according to the protocol parameters in the point configuration. The parameter identifier is used to specify the device function point of this action, and the parameter value is used to specify the control parameter to be written. For example, when setting the operating current of an electronic load, the parameter identifier corresponds to the current setting point, and the parameter value corresponds to the current setting value required by the process.
[0075] Based on the converted data and protocol parameters, control commands corresponding to the preceding actions are generated and sent through the device object's communication interface. Data conversion is performed according to the target point's data type and numerical representation requirements, and the generated control commands adopt the corresponding device's protocol format. The communication interface calls the send function bound to the device object to send the control commands to the corresponding device.
[0076] In the implementation method of generating control instructions using command templates, when generating control instructions corresponding to the preceding actions, the command template is obtained from the point configuration corresponding to the target point identifier, and the parameter placeholders in the command template are determined. The converted data replaces the parameter placeholders, generating the control instructions corresponding to the preceding actions, and the control instructions are sent through the device object's communication sending interface. The command template stores a fixed format for the instructions, and the parameter placeholders correspond to the content that needs to change with the action parameters, allowing the setpoints in the process to be filled into the instruction positions required by the equipment. For devices using the SCPI protocol, the intelligent aging gateway completes the write instruction construction according to the corresponding command template and receives and records the device's return information through the communication receiving interface. In one specific implementation, successful command generation and successful data transmission are used as the main criteria for successful write operation.
[0077] For devices using the Modbus protocol, the intelligent aging gateway obtains parameters such as register address, register length, precision, and compensation value from the target point configuration. It converts the value to be written into the corresponding physical quantity value, and then converts it into the raw register data required by the device according to the precision and compensation value. A write message is generated based on the device's slave address, the target register address, and the raw data, and sent through the corresponding communication interface. After receiving data from the device, the gateway determines whether the write is complete based on the received result. In one specific implementation, function code 0x06 is used to perform a single register write, with the register length of the corresponding target point being 1.
[0078] For devices using the CAN protocol, the intelligent aging gateway encodes the value to be written based on parameters such as the data type, data length, precision, and compensation value of the target point, constructs a write transmission object, and sends the data. In one specific implementation, a write start message and a write data message are sent sequentially, with corresponding type identifiers of 0x60 and 0x61, respectively. After sending, the gateway waits for a write response message with type identifier 0x62 through the communication receiving interface. The write result is determined based on the error code in the response message. If the error code indicates successful writing, the write is considered successful; if communication failure, response timeout, or the device returns an error code, the write is considered failed.
[0079] In one implementation of the action execution sequence, after determining the matching steps for each device, the intelligent aging gateway first executes the pre-actions in the current aging step of the device under test (DUT), and then executes the pre-actions in the matching steps of each external test device. The pre-actions of each device are processed sequentially according to the action configuration in its respective step, enabling the DUT and external test devices to enter the working state required by the current aging step. Specifically, this can be achieved by receiving the target point identifier and the value to be written through the unified data writing interface Data_Set, and then using the corresponding protocol processing procedure to complete point lookup, data conversion, and instruction generation.
[0080] Optionally, the external test equipment can be directly controlled by the intelligent aging gateway, or it can be controlled by a slave gateway or distributed node connected to the external test equipment. When using distributed control, step information is synchronized through messages between nodes, and the corresponding node executes the control operations in the matching steps of the external test equipment. The equipment control is still based on the corresponding step configuration and protocol point configuration.
[0081] Through the above processing, the device under test (DUT) and external test equipment determine their respective step configurations according to the step type. The cooperation relationship between the devices is established by the step type in the process configuration, without relying on the same step sequence number. Each pre-action is described by the target point identifier and the value to be written. The specific control command is generated by the point configuration in the corresponding protocol object. Therefore, when adjusting the device communication parameters, new command generation parameters can be provided through the corresponding protocol point table, reducing the direct dependence of step control on specific register addresses or command formats. At the same time, the startup check confirms the communication interface, protocol configuration, required points, and the response of the DUT. Pre-actions are only executed when the startup requirements are met, which can reduce the situation where the device operation is started even though the communication has been established but the protocol configuration or the data required for testing is unavailable.
[0082] Step S400: Based on the sampling points configured in the matching step, find the corresponding point configuration in the protocol object associated with the corresponding device object, and read and parse the device data according to the point configuration.
[0083] In step S400, the intelligent aging gateway obtains operational data according to the sampling points configured in each device matching step, converts the raw data returned by the device into data values for the corresponding points, and generates aging data by combining task, device, and step information. Device data is read by the gateway through the corresponding communication interface, and data upload is processed according to the network connection status, so that the established aging task can still perform device operation and data acquisition when the network connection with the test platform is interrupted, while saving the data that has not been uploaded.
[0084] Specifically, after the pre-processing of the current aging step is completed, the intelligent aging gateway reads the sampling points configured in the matching step according to the preset collection cycle. For the device under test, it reads the sampling points configured in the current aging step; for external test devices, it obtains the sampling points configured in the corresponding step based on the already saved matching step positions. Each device uses the point configuration in its own associated protocol object to read and parse device data, and does not use the protocol parameters of one device for reading data from other devices.
[0085] First, the intelligent aging gateway obtains the identifiers of each sampling point in the matching step, searches for the corresponding point in the protocol object associated with the corresponding device object, and reads the data location, data type, and conversion parameters of the point. For protocols that require sending read requests, a read request is generated based on the point configuration, and the request is sent and the response is received through the communication interface of the device object. For protocols that obtain data through data frames sent by the device, the data frame is obtained through the communication receiving interface, and the corresponding data is extracted according to the point configuration. Specifically, the point identifier can be received through the unified data reading interface Data_Get, and the data value parsed according to the corresponding protocol can be returned.
[0086] For the implementation using query commands and response templates, based on the sampling points configured in the matching step, the corresponding point configuration is searched in the protocol object associated with the corresponding device object, and the query command and response template are obtained from the point configuration. The query command is the command content recorded in the point configuration used to read the corresponding device parameters, and the response template is used to describe the parsing method of the data returned by the device. Both are obtained from the same point configuration, ensuring that the query content corresponds to the response parsing requirements.
[0087] Subsequently, a query instruction for reading the data corresponding to the sampling point is generated based on the query command. This query instruction is sent through the communication sending interface of the corresponding device object, and the response data returned by the device is received through the communication receiving interface of the corresponding device object. The response data is parsed according to the response template to extract the data value corresponding to the sampling point, which is then used as the device data collected in the matching step. The response data is the content returned by the device received through the communication interface, while the device data is the data value of the corresponding point extracted from the returned content according to the response template. For example, when the sampling point is power, the gateway generates a query instruction based on the corresponding query command and extracts the power value from the response data returned by the device, using it as the device data collected in the matching step. For devices using the SCPI protocol, the intelligent aging gateway constructs a corresponding instruction according to the query command and extracts the target value according to the data format described in the response template, using the parsing result as the reading result for the corresponding point.
[0088] For devices using the Modbus protocol, the intelligent aging gateway obtains the register address, register length, data type, precision, and compensation value configuration based on the sampling point. It then generates a read request according to the register address and register length and sends it to the device via the corresponding communication interface. Upon receiving the register data returned by the device, the gateway parses the original value according to the configured data type and converts it into an actual physical quantity based on the precision and compensation value. For points using linear conversion, the conversion relationship is: Actual physical quantity = Original data × Precision + Compensation value. Here, the original data is the register value parsed according to the data type, the precision is the proportional parameter used for value conversion in the point configuration, and the compensation value is the corresponding offset parameter. The conversion result serves as the device data corresponding to the sampling point.
[0089] For devices using the CAN protocol, the intelligent aging gateway obtains parameters such as starting position, data length, data type, precision, and compensation value from the point configuration, and receives the data frames sent by the device through the communication receiving interface. It extracts the target fields according to the starting position and data length, and then parses the field content according to the data type. When numerical conversion is required, it converts the original data into actual physical quantities based on the precision and compensation value. After parsing, the data from the target point is returned to the aging test processing procedure.
[0090] During the periodic data acquisition process, the intelligent aging gateway continuously acquires data from each sampling point according to the sampling points configured for each device's matching steps. When the battery state of charge (SOC) of the device under test is acquired, the corresponding current SOC value is updated. In one specific implementation, the current SOC value is saved as D_SOC, so that the device data record reflects the most recently acquired SOC. Whether a step has ended is determined according to the end condition of the current aging step in the aging process configuration.
[0091] In terms of data organization, structured aging data is generated based on device data, and the network connection status between the device and the test platform is monitored. The structured aging data associates device data with the current test process and mainly includes device identification information, aging task information, current step information, sampling time, sampling point data, device status, and anomaly information. Device identification is used to distinguish the data source, task information is used to determine the aging task to which the data belongs, and step information is used to determine the execution stage at the time of data collection. In one specific implementation, the tested product identification, collection sequence number, and corresponding data values can also be recorded, reflecting the test object and data collection order, respectively.
[0092] Reference Figure 4 , Figure 4 This is a schematic diagram illustrating the network status change and aging test continuous execution process provided in one embodiment of this application. It shows the identification of network availability, local testing and data saving during network interruption, and real-time uploading and retransmission processing after network recovery. The network connection status is determined based on the data interaction channel between the intelligent aging gateway and the test platform, and cannot be used as a basis for determining network availability solely based on the establishment of an internal communication connection between gateways.
[0093] In an implementation using multiple gateways to form a test network, the root gateway maintains a network status flag based on external network reachability events or network interface callbacks. Child gateways determine network availability with the test platform based on this flag. Specifically, a `Network_Flag` can be used to represent network status: set to 1 when the external network is available, and set to 0 when the root gateway's network connection to an external router or server is interrupted. The root gateway provides the external data transmission channel, while child gateways perform aging services and application-layer data interaction with the test platform, thereby determining the internal network connectivity and external network availability.
[0094] Furthermore, referring to Figure 5 , Figure 5This is a schematic diagram of the aging data acquisition, storage, and retransmission process provided in one embodiment of this application, illustrating the process of periodically acquiring device data, transmitting data through a queue, generating upload messages, recording transmission status, and retransmitting unuploaded records. In one implementation, the acquisition task and the upload task transmit data through a queue. The acquisition task reads data from the device under test and external test devices according to a preset period and writes the acquisition results into the upload queue; the upload task retrieves data from the queue, generates messages according to a unified data structure, and uploads them, thus enabling device acquisition and network transmission to be executed separately.
[0095] The data collection period and queue capacity can be configured according to task requirements. In one specific implementation, the collection period is 5 seconds and the queue capacity is 3 data items. This application does not limit the specific values of the collection period and queue capacity; when using different configurations, the collection results are still delivered to the upload task for processing through the queue.
[0096] When the network connection is normal, structured aging data is uploaded to the test platform. In one implementation, the intelligent aging gateway encapsulates the aging data in JSON format and publishes it to the corresponding data topic via MQTT. For example, the aging data topic can be in the form of device / Node ID / data / aging, where Node ID represents the gateway node identifier used to distinguish the gateway node to which the data belongs. The test platform identifies the service type based on the message topic, parses the device, task, step, and sampling data in the message, and performs data storage and test process monitoring.
[0097] For local records, the intelligent aging gateway saves the corresponding data and records the corresponding transmission status regardless of whether the real-time upload is successful. When the real-time upload is successful, a transmission success status is recorded; when the upload fails, a non-upload status is recorded. In one specific implementation, an SQLite database is used to store aging data and transmission status. SQLite is an embedded relational database that can store data records locally on the gateway and query the data that needs to be retransmitted according to the transmission status.
[0098] When the network connection is interrupted during aging testing, the aging steps continue to execute based on the point configuration already loaded in the protocol object, and any unuploaded structured aging data is saved locally and a non-upload flag is set. The running device object, protocol object, and aging steps are already stored in the gateway. Device control and point reading utilize the loaded configuration and are executed through the local device communication interface, eliminating the need to re-obtain protocol parameters from the test platform for each operation. The intelligent aging gateway continues to perform device control, periodic data collection, and step condition judgment, and records network interruption and upload anomaly information to the local loop log.
[0099] After the network connection is restored, the system continues to upload real-time generated structured aging data to the test platform and retrieves locally stored structured aging data marked as not uploaded, then re-uploads it to the test platform. During re-upload, the corresponding upload message is reconstructed based on local records, and the sending status is updated according to the re-upload result. Records successfully re-uploaded are updated to the uploaded status; records that fail to be re-uploaded retain the unuploaded mark, ensuring that data that was not completely sent can still be retrieved. In addition to re-upload being triggered by network recovery, it can also be performed by querying locally stored unuploaded records and sending the corresponding data when the aging task is completed or when a re-upload command is received from the test platform.
[0100] In one specific implementation, continuous testing of the network during interruption is contingent upon the establishment and loading of device objects, aging steps, and protocol point tables. If the network is unavailable when the gateway powers on, it waits for the network to recover before starting the MQTT and HTTP clients and reading power-off recovery information. During network unavailability, new server processes are not accepted, and uncached protocol point tables are not retrieved online, avoiding the use of out-of-network execution processing of running tasks for new tasks that have not yet obtained the necessary configurations.
[0101] In addition, the intelligent aging gateway can generate status information, operation logs, and error logs based on the test execution status, and upload them to the test platform through the corresponding business topics. Status information reflects the task's start, execution, completion, or exception status; operation logs record key operations; and error logs record exception information and the cause of the failure. Local logs can also be uploaded upon platform request, enabling the test platform to obtain device data, task status, and exception records separately. Data encoding can be in addition to JSON, CBOR, MessagePack, or other structured formats. Different encoding methods preserve the relationships between devices, tasks, steps, and sampled data.
[0102] Through the above processing, during data acquisition, the sampling points configured in the matching steps are searched in the protocol object of the corresponding device to find the point configuration. The actual data location, parsing method, and conversion parameters are provided by the found point configuration, enabling the acquisition operation to establish a correspondence between the point identifier and specific protocol parameters, reducing direct dependence on specific register addresses and message formats. The acquisition results are associated with the device, task, step, and time, ensuring that each data point corresponds to a specific test stage. In the implementation using queues, the acquisition task and the upload task handle device reading and network transmission respectively, reducing the direct impact of the network transmission process on the acquisition task. When the external network connection is interrupted during operation, the loaded configuration is still available for local device operation, and unuploaded data is managed through local records and transmission status. After the network is restored, it can be retrieved and re-uploaded, thereby reducing the impact of network interruption on started test tasks and the continuity of data upload.
[0103] Step S500: Determine the end condition of the current aging step in the aging process configuration. After the end condition is met, generate and send the control command corresponding to the follow-up action of the matching step according to the point configuration in the corresponding protocol object, and continue to execute the remaining aging steps in the execution order until all aging steps are completed and the aging test ends.
[0104] In step S500, the intelligent aging gateway determines the end time of a step based on the execution time of the current step or equipment operating data. When the end conditions are met, it executes the follow-up actions in each matching step and then switches steps according to the sequence specified in the process. After all steps are completed, the task data and operating status are processed, and the test ends, ensuring that the end judgment of each step, equipment operation, and step switching are interconnected.
[0105] Specifically, the process analyzes the termination condition of the current aging step in the aging process configuration. Based on the step type of the current aging step, it determines whether the execution duration or equipment operating parameters are used as judgment parameters and obtains the corresponding target values. The intelligent aging gateway retrieves the judgment parameters and target values from the saved judgment configuration of the current step and determines the purpose of the target values based on the step type. For example, the time target value in the resting step is used to determine the execution duration, and the state of charge target value in the discharging or charging step is used to determine the termination threshold of the corresponding operation. Termination conditions and subsequent actions are both configuration content of the corresponding steps in the aging process configuration, specifying the determination requirements for the step's termination and the equipment operations to be performed when the termination conditions are met. Point configurations are stored in the protocol object, providing the communication parameters required for equipment data reading and control command generation.
[0106] When using execution duration as a judgment parameter, the target value is set as the execution duration for the current aging step. The execution deadline is calculated based on the start time of the current aging step and the set execution duration. Upon reaching the execution deadline, the termination condition for the current aging step is deemed met. In one embodiment, when entering the execution phase of the current step, the current time is used as the start time of the current aging step. The start time is added to the set execution duration to obtain and save the execution deadline. During step execution, the current time and the execution deadline are continuously compared. When the current time reaches or exceeds the execution deadline, the termination condition for the current step is deemed met. During the resting process, device data is still periodically read and recorded according to the sampling points configured for the current step.
[0107] When using equipment operating parameters as judgment parameters, the current value of the judgment parameter is obtained from the read and parsed equipment data and continuously updated. The current value is compared with the target value, and based on the step type of the current aging step and the comparison result, it is determined whether the termination condition of the current aging step is met. The current value uses the data most recently read and parsed from the corresponding point, and is updated with the periodic acquisition results, so that the step judgment reflects the operating status of the equipment in the current execution process.
[0108] In one implementation using the battery's state of charge (SOC) as a judgment parameter, the discharge step continuously acquires the current SOC of the device under test (DUT). When the current SOC is less than the configured target SOC, the termination condition of the discharge step is determined to be met. Similarly, the charging step continuously acquires the current SOC of the DUT. When the current SOC is greater than the configured target SOC, the termination condition of the charging step is determined to be met. If the termination condition is not met, the current step's execution state is maintained, and data acquisition, updating, and judgment continue. In one specific implementation, the standby, discharge, and charging steps are represented by Standing, Discharge, and Recharge, respectively, and the current SOC value is stored using D_SOC.
[0109] Optionally, the termination condition can be expanded from a single primary condition to multiple conditions, and combined according to logical AND, OR, and OR relationships. When using a logical AND relationship, the combined condition is determined to be satisfied after all conditions are met; when using a logical OR relationship, the combined condition is determined to be satisfied if any one condition is met. Judgment parameters can also include cumulative capacity, cumulative energy, temperature, or execution count, with corresponding target values used to determine the judgment requirements for cumulative quantity, temperature, or number of executions. Furthermore, timeout conditions and safety conditions can be set to identify situations where the execution time exceeds the limit or the equipment operating state exceeds safety limits, serving as the basis for determining abnormal exit. This application does not limit the specific type of termination condition; the specific judgment method corresponds to the configured judgment parameters, target values, and step requirements.
[0110] Reference Figure 6 , Figure 6 This is a schematic diagram of the execution flow of a single aging step according to an embodiment of this application, illustrating the connection relationship between device step matching, pre-action, periodic data acquisition, termination condition determination, post-action, and step switching. If the termination condition of the current step is not met, the current step continues to execute and data is acquired; if the termination condition of the current step is met, the corresponding post-action is executed, and then it is determined whether there is a next aging step. If an external test device has a matching step, it participates in the current operation according to the corresponding matching step; if the current step does not have a matching step for an external test device, it executes according to the step configuration of the device under test.
[0111] Regarding post-action processing, after the termination conditions of the current aging step are met, the intelligent aging gateway first obtains the post-action configuration for the current step of the device under test (DUT), and then obtains the post-action configuration for the corresponding step based on the saved external test device matching step positions. Each device uses the action parameters from its own matching step to ensure that the device operation at the end of the step corresponds to the configuration used at the beginning of the step. If there is no external test device matching step, only the post-action for the current step of the DUT is executed.
[0112] Subsequently, the parameter identifiers and values in the post-actions are read item by item. The parameter identifiers are used as target point identifiers, and the parameter values are used as values to be written. The point configuration corresponding to the target point identifier is searched in the protocol object associated with the corresponding device object. Data conversion and control command generation are completed according to the point configuration, and the data is sent to the corresponding device through the device object's communication interface. The post-actions use the same point writing processing method as the pre-actions, and the specific command construction is executed according to the protocol processing procedure described in step S300. In one embodiment, the post-actions of the device under test are executed first, followed by the post-actions in each external test device matching step, completing the end operation of the current step configuration.
[0113] After completing the follow-up actions of the current step, the intelligent aging gateway records the execution result of the current step and determines whether there is a next step based on the execution order of the aging steps of the device under test. If there is a next step, the current step index is updated to the next step, the matching step for each device is determined using the new current step type, and the corresponding operations are performed according to the processing procedures of steps S300 to S500. When switching steps, if the execution duration is used as the judgment parameter, the execution deadline is calculated using the start time of the new step and the set execution duration; if the device operating parameters are used as the judgment parameters, the judgment parameters configured in the end conditions of the new step and the target value are compared and judged to ensure that each step is executed according to its own end requirements.
[0114] Once all aging steps are completed, the intelligent aging gateway will not enter a new aging step, ending the current device aging test and entering the aging completion processing stage. In the implementation using a state machine, the aging state is switched from the aging action state (AgingAction) to the aging completion state (AgingComplete) to distinguish between the step execution process and the task completion processing process.
[0115] During the aging process completion phase, the intelligent aging gateway processes the aging data that has not yet been uploaded, following the data storage and retransmission method in step S400. When the network connection is normal, the corresponding data is sent to the test platform; data that has not been uploaded continues to be saved in the local transmission state for retrieval when the network recovers or retransmission is performed. Subsequently, the aging data acquisition state is restored to the idle state, the recovery information related to the current task is cleared, and the Bluetooth connection is disconnected as needed.
[0116] After completing task status cleanup and releasing corresponding resources, delete the current aging task configuration and runtime device object, set the aging state to AgingIdle, and report the aging completion status to the test platform when the network connection is normal. The idle state indicates that the gateway is not currently executing an aging task; after the task is completed normally, exits abnormally, or is terminated, the gateway can return to the idle state and wait for a new aging task.
[0117] Through the above processing, the termination time of the current step is determined by the termination conditions in the aging process configuration and the actual execution time or equipment data. Equipment operating parameters are updated with the collected data and appropriate judgment rules are applied according to the step type. After the termination conditions are met, each device executes subsequent actions according to its matching steps, and then switches to the new step configuration, ensuring that the termination of the current step and the start of the next step are sequentially connected. Subsequent actions still obtain protocol parameters and generate control commands through point identifiers, reducing the direct dependence of the step termination operation on specific equipment command formats. After all steps are completed, the current task's execution process ends through data acquisition status reset, task recovery information cleanup, and runtime object release, allowing the gateway to receive new tasks in an idle state.
[0118] In summary, combining Figure 7 This application establishes equipment objects and aging steps for each device by parsing the aging process configuration corresponding to the aging task. It obtains and parses the protocol point table according to the protocol identifier in the equipment object, establishes a protocol object associated with the equipment object based on the parsed protocol type, and loads the point configuration into the protocol object. During test execution, the aging steps are executed sequentially according to the execution order in the aging process configuration. When executing the current aging step, an aging step of the same type as the current aging step is selected from the aging steps corresponding to each equipment object as a matching step, allowing each device to use its own step configuration. Control commands corresponding to the pre-actions of the matching step are generated and sent according to the point configuration in the corresponding protocol object. The corresponding point configuration is then searched according to the sampling points configured in the matching step, and equipment data is read and parsed. The termination condition of the current aging step in the aging process configuration is used for judgment. If the termination condition is met, control commands corresponding to the post-actions of the matching step are generated and sent. The remaining aging steps are then executed in the execution order until all steps are completed, ending the aging test.
[0119] In this process, the aging process configuration specifies the operations and steps that the equipment needs to perform. When the intelligent aging gateway executes a task, it obtains the protocol point table based on the protocol identifier corresponding to the device object and loads the parsed point configuration into the associated protocol object. The protocol point table used is determined by the protocol identifier corresponding to the device in the current task, and the specific communication parameters are loaded into the runtime protocol object through point table parsing. The actions and sampling items in the process look up the point configuration parsed from the dynamic protocol point table and loaded into the protocol object through the point identifier, thereby generating actual control commands or reading and parsing device data, reducing the direct dependence of the test process on specific register addresses, command formats, and data parsing rules. When the device model or protocol version changes, but the process requirements and the referenced device functions remain corresponding, for supported protocol types, the differences in communication parameters can be handled by updating and loading the corresponding dynamic protocol point table, reducing the need to modify dedicated read / write programs due to these differences. Simultaneously, each device obtains its matching step according to the type of the current aging process, and then uses its associated protocol object to complete control and reading. This allows the coordination between devices to be established through step types, and the specific operation of each device is determined by its respective step configuration and point configuration. When the supporting test equipment changes, the corresponding equipment and step configurations can be adjusted, reducing the need to rewrite the linkage process for specific models. As a result, the dependency between the process execution logic and the communication rules of specific devices is reduced, improving the adaptability of the equipment aging test process to different devices and protocol versions.
[0120] Furthermore, to further illustrate the implementation process of the above method, the following example uses an energy storage device AC70 and a Bech Electronics load for aging testing to explain the correspondence between process configuration, protocol point table, and actual equipment operation. In this embodiment, AC70 is the device under test, and the Bech Electronics load is the external test device. Both are communicatively connected to their respective sub-node gateways, which communicate with the test platform through the root node gateway. The Bech Electronics load is used to apply a discharge load according to the configuration and provide data such as voltage, current, and power during the discharge process.
[0121] Before the test begins, the test platform issues a product-under-test (DUT) identifier to the sub-node gateway to associate it with the test object for this task, and provides an aging process configuration including the discharge steps. The device definition in the configuration records the AC70's device type, communication method, and protocol identifier. The electronic load's communication method and protocol identifier can be pre-configured by the workstation and included in the device configuration used in this task. The sub-node gateway parses the configuration, establishing the DUT object corresponding to the AC70 and the external test device object corresponding to the electronic load, respectively, and saving the communication information and corresponding aging steps for each device. Specifically, the AC70's discharge step configuration specifies the discharge preparation actions, state-of-charge sampling points, and termination conditions; the electronic load's discharge step configuration specifies the target discharge current, input control actions, and voltage, current, and power sampling points. Each action and sampling item is identified by a point identifier representing the corresponding device function.
[0122] Subsequently, the sub-node gateway retrieves the protocol point tables for each of the two device objects using the protocol point table query interface of the test platform, based on their respective protocol identifiers. The AC70 uses the Modbus protocol, and its point configuration includes point identifiers, register addresses, data types, and data conversion parameters; for example, the register address corresponding to the "Query State of Charge" point is 102. The Bech Electronics load uses SCPI, and in its point configuration, the "Set Current" point corresponds to the command template "CURR". <nrf>"Input Control" point corresponds to the command template "INPut" <nrf>The query command for the "Read Average Power" point is "MEASure:POWer?", where " <nrf>"" indicates the location where the actual control parameters are entered. The sub-node gateway parses the protocol type, creates protocol objects associated with the two device objects respectively, and loads the corresponding point configurations into the protocol objects.
[0123] Before sending the initial pre-action control command, the sub-node gateway checks the protocol point table parsing, protocol type identification, and point configuration loading results of the electronic load. It reads the electronic load data according to the configured sampling points, verifies point readability, and then reads the AC70's preset device information or status data to confirm normal communication response. After the check passes, it searches for steps of the same discharge type in the electronic load's aging step configuration, saves the position of the matching step, and obtains the corresponding step configuration. Thus, the AC70 and the electronic load each adopt the actions and sampling requirements configured in their own discharge steps.
[0124] During the pre-processing steps, the sub-node gateway first generates control commands according to the AC70's action configuration, using the corresponding points to put the AC70 into a discharge preparation state. Then, it obtains the target current value and input control parameters from the electronic load matching step. In the protocol object associated with the electronic load, it searches for the corresponding point configuration according to the action's parameter identifier, completes the parameter conversion, and fills the converted data into the command template. For example, the data corresponding to the target current is filled into "CURR". <nrf>This generates a current setting command; the corresponding data for enabling the input is entered into "INPut". <nrf>This generates input control commands. The generated commands are sent through the communication interface of the electronic load device object, causing the electronic load to apply a discharge load according to the configuration.
[0125] After completing the preliminary actions, the sub-node gateway periodically reads device data according to the sampling points configured in the matching steps for each device. When reading the AC70's state of charge, it searches for the corresponding point configuration in the protocol object associated with the AC70, obtains register address 102 and the corresponding reading parameters, generates a reading message, and parses the returned data according to the configured data type and conversion parameters to update the current state of charge. When reading the average voltage, current, and power of the electronic load, it searches for the corresponding query command and response template for the sampling point, sends the query command, and extracts the returned data according to the response template. For example, it queries the average power using "MEASure:POWer?". The obtained data is associated with the device identifier, task information, and the current aging step to form structured aging data, which is saved and uploaded to the test platform in the aforementioned manner. If the external network connection is interrupted during the test, the sub-node gateway still uses the established device objects and loaded point configurations to perform local control, data acquisition, and conditional judgment. Data that has not been uploaded is saved locally and re-uploaded after the network is restored.
[0126] During the discharge process, the sub-node gateway continuously compares the current state of charge (SOC) of the AC70 with the configured target SOC. When the current SOC is less than the target SOC, the termination condition for the current discharge step is met. At this point, the post-action configurations for the AC70 and electronic load matching steps are obtained, and control commands are generated and sent through the point configurations in their respective protocol objects to complete the configured discharge termination operation. For example, the load input is turned off through the input control point of the electronic load. After completing the post-action, the execution result of the current step is recorded, and the process switches to the next step according to the execution order of the AC70 aging steps.
[0127] If the process also includes a resting or charging step, the sub-node gateway will re-match the external test equipment's step configuration with the new step type and execute the corresponding actions. The resting step calculates and saves the execution deadline based on the current step's start time and configured execution duration. When the execution deadline is reached, the current resting step's termination condition is deemed met. The charging step continuously updates the current state of charge (SOC). When the current SOC is greater than the configured target SOC, the current charging step's termination condition is deemed met. Whether the external test equipment participates in the corresponding step and the actions it takes are determined by the matching results and the corresponding step configuration. After completing all aging steps according to the configuration, the aging test ends, and unuploaded data is processed, task status is cleaned up, and runtime objects are released, returning to an idle state.
[0128] In this embodiment, the point identifiers and specific communication parameters used in the process configuration are stored separately. If an update to the AC70 protocol version causes a change in the state of charge register address, the register address can be adjusted in the protocol point table maintained by the test platform, provided that the corresponding point identifiers and device functions remain consistent and the protocol type is supported. When executing an aging task using the updated protocol configuration, the sub-node gateway obtains and loads the corresponding point table according to the protocol identifier, and the state of charge reading operation uses the updated address. Since the discharge step still obtains the reading parameters through the same point identifier, adjusting the register address does not require simultaneously rewriting the sampling points and termination conditions in the process, thereby reducing the impact of communication parameter changes on the existing aging test process.
[0129] Figure 8 This is a structural block diagram of a device aging test system based on a dynamic protocol point table, provided in one embodiment of this application. The system is used to execute the aforementioned device aging test method based on a dynamic protocol point table. The system includes a test platform, multiple intelligent aging gateways, a device under test (DUT), and external test equipment. The multiple intelligent aging gateways form a test network and are divided into root gateways and child gateways according to their network roles. The root gateway communicates with the test platform, and the child gateways communicate with the root gateway and the test platform through the root gateway. The DUT and external test equipment communicate with the child gateways respectively.
[0130] Specifically, the testing platform manages aging tasks and aging process configurations, maintains equipment protocol point tables, and receives equipment status, aging data, and log information uploaded by the intelligent aging gateway. The testing platform can be deployed on a server, sending device identifiers, aging process configurations, and start / stop commands to the corresponding sub-node gateways via the network, and providing an interface for querying the protocol point table based on the protocol identifier. In one implementation, the testing platform uses MQTT for command issuance and data reception, and provides protocol point table query services via Hypertext Transfer Protocol (HTTP). Furthermore, the testing platform can also issue commands for configuration query and setting, data retransmission, log query, and remote firmware update to complete the operation and management of the field gateway.
[0131] In the test network, the root gateway and child gateways represent the network roles undertaken by the intelligent aging gateway, both implemented by actual gateway devices. The root gateway connects to the external network and manages the test network. The root gateway detects the external network connection status and provides a data transmission channel to the test platform for the child gateways; the child gateways communicate with the corresponding devices under test and external test equipment, and run the aging test control program. In one implementation, the root gateway provides a transparent network channel, through which the child gateways communicate with the test platform at the application layer. Aging task parsing, protocol processing, and device control are performed by the child gateways.
[0132] Furthermore, multiple intelligent aging gateways can be networked in a mesh network configuration, establishing parent-child or multi-hop connections based on a unified network identifier. Child gateways can directly connect to the root gateway or access the root gateway via data forwarding from other gateway nodes. Each child gateway is configured with an independent and unique node identifier to distinguish different test execution nodes and associate them with corresponding aging tasks, field devices, and test data. In implementations using a wireless LAN as the external network access method, the root gateway connects to an external wireless router, and the child gateways share the root gateway's external network exit through the test network. Optionally, the root gateway can be fixed or determined through node election; the external network link can use Ethernet, cellular network, or dual-link access.
[0133] Each sub-node gateway is configured with a different node identifier, and each node identifier is associated with a corresponding aging task, device under test (DUT), and external test equipment. The sub-node gateway receives the aging task associated with its node identifier through the root node gateway, parses the aging process configuration and protocol point table corresponding to the aging task, controls the DUT and external test equipment associated with the node identifier according to the parsing results, and collects device data. After associating the collected device data with the node identifier, it is uploaded to the test platform through the root node gateway. The node identifier is used to distinguish different test execution nodes, ensuring that the issued aging task, the device controlled by the task, and the data collected and uploaded by the corresponding node maintain a correspondence.
[0134] In terms of gateway architecture, the intelligent aging gateway comprises a hardware layer and a software functional layer. The hardware layer provides control processing, network communication, device communication, and data storage capabilities. The core control unit can utilize an ESP32-S3 chip or other processors capable of running aging test control programs and supporting corresponding communication interfaces. Functionally, the intelligent aging gateway can include a main control module, a network communication module, a device communication module, a protocol adaptation module, a data storage module, and an aging service control module. Specifically, the main control module runs the control program and manages tasks and devices; the network communication module handles data communication between gateways and between the gateway and the test platform; the device communication module connects field devices; the protocol adaptation module loads the protocol point table and performs data parsing and message generation for the corresponding protocols; the data storage module saves device configurations, task information, and test data; and the aging service control module executes aging test control according to the process configuration. Each module represents a corresponding functional division and can be implemented through hardware, software, or a combination of both, without requiring separate independent hardware components.
[0135] Regarding field device connections, the device under test (DUT), acting as the object of aging tests, provides operational data to the sub-node gateway via corresponding communication links and receives control commands from the sub-node gateway. Taking energy storage devices as an example, operational data may include state of charge, voltage, current, and switching status. External test equipment is used to assist the DUT in completing power output, load application, or parameter measurement, and may include programmable power supplies, electronic loads, or power meters. The sub-node gateway provides corresponding interfaces based on the communication method of the connected devices, such as RS-485 interfaces, Controller Area Network (CLAN) interfaces, or Bluetooth Low Energy (BLE) communication interfaces, or other interfaces adapted to the device's communication requirements.
[0136] Through the above connections, the test platform centrally manages process configurations, protocol point tables, and test data. Sub-node gateways execute equipment control and data acquisition within their respective aging tasks, while the root node gateway provides external network communication channels for each sub-node gateway. Multiple field test nodes can communicate with the test platform through the root node gateway, reducing the need for each test node to establish its own external network connection. Simultaneously, by associating node identifiers with corresponding aging tasks, devices under test, external test equipment, and acquired data, the tasks received, controlled, and uploaded by each node are kept consistent. This allows the test platform to distinguish the test processes and results of different nodes, achieving centralized management of multiple test stations.
[0137] It should be noted that the specific task parsing, device control, data acquisition, and condition determination processes in the system are described in the aforementioned method embodiments.
[0138] Figure 9 This is a block diagram of an electronic device provided in one embodiment of this application. The device includes at least a processor 901 and a memory 902.
[0139] The processor 901 may include one or more processing cores, implemented in at least one of the following hardware forms: central processing unit (CPU), digital signal processor (DSP), field-programmable gate array (FPGA), or programmable logic array (PLA). The processor 901 is used to perform operations such as aging process configuration parsing, protocol point table parsing and loading, equipment control, equipment data reading and parsing, and condition determination of aging steps.
[0140] The memory 902 may include one or more computer-readable storage media, which may be non-transitory. The memory 902 may also include high-speed random access memory and non-volatile memory, such as disk storage devices or flash memory devices. In some embodiments, the memory 902 is used to store aging process configurations, protocol point tables, and data generated during aging tests, and to store at least one instruction executed by the processor 901 to implement the device aging test method based on a dynamic protocol point table provided in the embodiments of this application.
[0141] Optionally, this application also provides a computer-readable storage medium storing a program that is loaded and executed by a processor to implement the device aging test method based on a dynamic protocol point table as described in the above method embodiments.
[0142] Optionally, this application also provides a computer product including a computer-readable storage medium storing a program, which is loaded and executed by a processor to implement the device aging test method based on a dynamic protocol point table as described in the above method embodiments.
[0143] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above 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.
[0144] The above embodiments merely illustrate several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.< / nrf> < / nrf> < / nrf> < / nrf> < / nrf>
Claims
1. A device aging test method based on a dynamic protocol point table, characterized in that, The method includes: Obtain and parse the aging process configuration corresponding to the aging task, and establish the equipment object and corresponding aging steps based on the parsing results; The protocol point table is obtained and parsed according to the protocol identifier corresponding to the device object. A protocol object associated with the device object is established according to the parsed protocol type, and the parsed point configuration is loaded into the protocol object. The aging steps are executed sequentially according to the execution order in the aging process configuration. When executing the current aging step, the aging step with the same type as the current aging step is selected from the aging steps corresponding to each device object as the matching step. Based on the point configuration in the protocol object associated with each device object, the control command corresponding to the pre-action of the matching step is generated and sent. Based on the sampling points configured in the matching step, the corresponding point configuration is searched in the protocol object associated with the corresponding device object, and the device data is read and parsed according to the point configuration. The termination condition of the current aging step in the aging process configuration is determined. After the termination condition is met, the control command corresponding to the post-action of the matching step is generated and sent according to the point configuration in the corresponding protocol object. The remaining aging steps are then executed in the execution order until all aging steps are completed, and the aging test ends.
2. The device aging test method based on a dynamic protocol point table according to claim 1, characterized in that, The step of obtaining and parsing the protocol point table based on the protocol identifier corresponding to the device object, establishing a protocol object associated with the device object based on the parsed protocol type, and loading the parsed point configuration into the protocol object includes: When performing the aging task, the protocol identifier corresponding to the device object is read from the aging process configuration, the protocol identifier is used as a query parameter to dynamically obtain the corresponding protocol point table, and the protocol type and point configuration in the protocol point table are parsed. Based on the protocol type, a protocol object associated with the device object is established using the corresponding protocol data structure; The point identifier and protocol parameter corresponding to the device data item or control parameter in the point configuration are read one by one. The point identifier and corresponding protocol parameter of each point are written into the corresponding data field of the protocol object to establish the association between each point identifier and the corresponding protocol parameter, thus completing the loading of the point configuration.
3. The device aging test method based on a dynamic protocol point table according to claim 1, characterized in that, The step of selecting an aging step of the same type as the current aging step from the aging steps corresponding to each device object as the matching step includes: Based on the equipment definition in the aging process configuration, determine the device under test and the external test equipment in the equipment object; The aging steps are executed sequentially according to the execution order of the aging steps corresponding to the device under test object. The currently executed aging step is used as the matching step of the device under test object, and the step type of the current aging step is obtained. In the aging step configuration corresponding to each of the external test equipment objects, find the aging step with the same step type as the current aging step, use the found aging step as the matching step for the corresponding external test equipment object, and save the position of the matching step in the corresponding aging step configuration.
4. The device aging test method based on a dynamic protocol point table according to claim 3, characterized in that, Before generating and sending the control command corresponding to the pre-action of the matching step for the first time, the method further includes: Check whether the protocol point table of each external test device object is successfully parsed, whether the protocol type is successfully identified, and whether the point configuration is successfully loaded. After the protocol point table parsing, protocol type identification, and point configuration loading of each external test device object are all successful, for each external test device object, the point to be inspected is determined according to the sampling point in the aging process configuration, and the data of the point to be inspected is read according to the point configuration in the associated protocol object to verify the readability of the point to be inspected. After all the data at the points to be inspected are read normally, a communication check is performed on the device corresponding to the device under test. The communication response is confirmed to be normal by reading preset device information or status data. After the protocol point table parsing, protocol type identification, and point configuration loading of each external test device object are successful, the data of the points to be checked are read normally, and the communication response of the device corresponding to the device under test is normal, the control command corresponding to the pre-action of the matching step is generated and sent.
5. The device aging test method based on a dynamic protocol point table according to claim 1, characterized in that, The step of generating and sending control commands corresponding to the pre-actions of the matching step based on the point configuration in the protocol object associated with each device object includes: Using the parameter identifier configured in the pre-action of the matching step as the target point identifier, the point configuration corresponding to the target point identifier is searched in the protocol object associated with the device object corresponding to the matching step. The parameter values configured in the preceding actions are used as the values to be written, and the values to be written are converted according to the protocol parameters in the point configuration. Based on the converted data and the protocol parameters, a control command corresponding to the preceding action is generated, and the control command is sent through the communication sending interface of the device object.
6. The device aging test method based on a dynamic protocol point table according to claim 5, characterized in that, The method further includes: When generating the control command corresponding to the preceding action, the command template is obtained from the point configuration corresponding to the target point identifier, and the parameter placeholder part in the command template is determined. The parameter placeholder is replaced with the converted data to generate the control command corresponding to the pre-action, and the control command is sent through the communication sending interface of the device object. Based on the sampling points configured in the matching step, the corresponding point configuration is searched in the protocol object associated with the corresponding device object, and the query command and response template are obtained from the point configuration. A query instruction for reading the data corresponding to the sampling point is generated based on the query command. The query instruction is sent through the communication sending interface of the corresponding device object, and the response data returned by the device is received through the communication receiving interface of the corresponding device object. The response data is parsed according to the response template, and the data values corresponding to the sampling points are extracted as the device data collected in the matching step.
7. The device aging test method based on a dynamic protocol point table according to claim 1, characterized in that, The determination based on the termination condition of the current aging step in the aging process configuration includes: The termination condition of the current aging step in the aging process configuration is analyzed. Based on the step type of the current aging step, the execution time or equipment operating parameters are determined as the judgment parameters, and the target value corresponding to the judgment parameters is obtained. When the execution duration is used as a judgment parameter, the target value is used as the set execution duration of the current aging step. The execution deadline is calculated based on the start time of the current aging step and the set execution duration. When the execution deadline is reached, it is determined that the termination condition of the current aging step is met. When using equipment operating parameters as judgment parameters, the current value of the judgment parameters is obtained from the read and parsed equipment data and continuously updated. The current value is compared with the target value, and the termination condition of the current aging step is determined according to the step type of the current aging step and the comparison result.
8. The device aging test method based on a dynamic protocol point table according to any one of claims 1 to 7, characterized in that, The method further includes: Structured aging data is generated based on the device data, and the network connection status between the device and the test platform is detected. When the network connection is normal, the structured aging data is uploaded to the test platform. If the network connection is interrupted during the aging test, the aging steps are continued according to the point configuration loaded in the protocol object, and the unuploaded structured aging data is saved locally and a non-uploaded flag is set. After the network connection is restored, the real-time generated structured aging data is uploaded to the test platform, and the local structured aging data with the non-uploaded flag is retrieved and re-uploaded to the test platform.
9. A device aging test system based on a dynamic protocol point table, used to execute the device aging test method based on a dynamic protocol point table as described in any one of claims 1 to 8, characterized in that, The system includes a test platform, multiple intelligent aging gateways, the device under test, and external test equipment. The multiple intelligent aging gateways form a test network, which is divided into root node gateways and child node gateways according to their network roles. The root node gateway is communicatively connected to the test platform, and the child node gateways are communicatively connected to the root node gateway and to the test platform through the root node gateway. The device under test and the external test equipment are communicatively connected to the child node gateways respectively.
10. The device aging test system based on a dynamic protocol point table according to claim 9, characterized in that, The root node gateway connects to the external network and manages the test network; each of the child node gateways is configured with a different node identifier, and each node identifier is associated with a corresponding aging task, the device under test, and the external test device. The sub-node gateway receives aging tasks associated with the node identifier of the sub-node gateway through the root node gateway, parses the aging process configuration and protocol point table corresponding to the aging task, controls the device under test and external test equipment associated with the node identifier according to the parsing result and collects device data, and uploads the collected device data to the test platform through the root node gateway after associating it with the node identifier.
11. An electronic device, characterized in that, The device includes a processor and a memory; the memory stores a program that is loaded and executed by the processor to implement the device aging test method based on a dynamic protocol point table as described in any one of claims 1 to 8.
12. A computer-readable storage medium, characterized in that, The storage medium stores a program that, when executed by a processor, is used to implement the device aging test method based on a dynamic protocol point table as described in any one of claims 1 to 8.
