CN-122001756-A - Power protocol dynamic configuration conversion method and system for resource-constrained terminal
Abstract
The invention discloses a dynamic configuration conversion method and a system of a power protocol for a resource-limited terminal, which relate to the technical field of power communication, and are characterized in that the power communication configuration of a ground city terminal is compiled into a standardized external configuration table of a lightweight JSON file format used by a standard xlsx file generation terminal, the standardized external configuration table is imported into a configuration conversion compiler, the configuration conversion compiler converts the standardized external configuration table into a compact binary data structure according to an internal configuration table, then the binary data structure and program firmware corresponding to the standard power protocol are downloaded into a fixed sector of a terminal memory together through a burning tool, so that protocol configuration data and terminal program codes are completely separated, a structured and lightweight memory management scheme is adopted to replace a traditional file system or a hard coding mode, protocol adaptation can be completed without recompilation through a set of concise configuration table-runtime analysis engine architecture, and the protocol adaptation is convenient and quick.
Inventors
- WU WEICHENG
- Leng Kunpeng
- CHEN ZHIYUAN
- ZHANG WEI
Assignees
- 上海宏力达信息技术股份有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20251218
Claims (10)
- 1. The power protocol dynamic configuration conversion method for the resource limited terminal is characterized by comprising the following steps of: The terminal obtains a standardized external configuration table; the configuration conversion compiler of the terminal takes the standardized external configuration table as input, matches the internal configuration table in the configuration conversion compiler, independently gathers the configuration corresponding to the standardized external configuration table in the internal configuration table into a new configuration table, and optimizes the new configuration table into a binary data structure corresponding to a standard power protocol; Downloading the binary data structure and program firmware corresponding to a standard power protocol to a memory of the terminal through a burning tool; when the terminal is started, the configuration data is loaded into the RAM from the memory, so that the power communication between the ground terminal and the terminal under the standard power protocol is completed.
- 2. The method for dynamically configuring and converting a power protocol for a resource-constrained terminal according to claim 1, wherein each configuration in the standardized external configuration table is composed of a ground-utility power communication configuration.
- 3. The method for dynamically configuring and converting a power protocol for a resource-constrained terminal according to claim 2, wherein the standardized external configuration table comprises one or more of a telemetry data set field, intrinsic parameters, action parameters, electrical energy, remote control, and operational parameters.
- 4. The method for dynamically configuring and converting a power protocol for a resource-constrained terminal according to claim 1, wherein the internal configuration table is a table containing all configurations required for power communication.
- 5. The method for dynamically configuring and converting a power protocol for a resource-constrained terminal according to claim 4, wherein the internal configuration table comprises one or more of a telemetry data set field, intrinsic parameters, action parameters, electric energy, remote control, operation parameters, terminal program internal point numbers, and reporting decisions.
- 6. The method for dynamically configuring and converting a power protocol for a resource-constrained terminal according to claim 1, wherein the standardized external configuration table and the new configuration table are in JSON file format.
- 7. The method for dynamically configuring and converting a power protocol for a resource-constrained terminal according to claim 1, wherein the offset address of the internal configuration table in the configuration conversion compiler generates the new configuration table according to an offset address of a standardized external configuration table associated with a local utility power communication demand configuration.
- 8. The method for dynamically configuring and converting a power protocol for a resource-constrained terminal according to claim 1, wherein the terminal is configured to manage protocol configuration data, store key information in the new configuration table in a structured manner, and enable protocol processing logic to quickly query and call, so as to decouple the configuration data from program codes.
- 9. The method for dynamically configuring and converting power protocol for resource-constrained terminals according to claim 1, wherein a buffer buf is configured in the RAM, and the buffer buf is used for buffering configuration data.
- 10. A power protocol dynamic configuration conversion system for a resource-constrained terminal, comprising: The configuration conversion compiler is used for receiving the standardized external configuration table, matching with the internal configuration table in the configuration conversion compiler, independently summarizing the configuration corresponding to the standardized external configuration table in the internal configuration table into a new configuration table, and optimizing the new configuration table into a binary data structure corresponding to a standard power protocol; The burning tool is used for downloading the binary data structure and the program firmware corresponding to the standard power protocol to a memory of the terminal; and the system control module is used for loading configuration data from the memory into the RAM when the terminal is started, thereby completing the power communication between the ground terminal and the terminal under the standard power protocol.
Description
Power protocol dynamic configuration conversion method and system for resource-constrained terminal Technical Field The invention relates to the technical field of power communication, in particular to a power protocol dynamic configuration conversion method and system for a resource-constrained terminal. Background The power communication refers to information transmission and exchange activities which are developed for the operation, management and maintenance of a power system, and covers various information forms such as data, voice, images and the like, and the power communication has the core functions of guaranteeing real-time monitoring, remote control and fault early warning of links such as power production, transmission, power distribution and the like. At present, most of power communication data transmission is based on a 104 or 101 protocol, but the 101 or 104 protocol has a plurality of configurations, and the regional city is often different in terms of environmental differences such as north China and east China, and the data sent by the terminal is different in different city, so that the terminal needs to adopt different configurations according to each city. At present, most terminals are recorded in a file system mode or directly written into terminal program codes, and the codes are modified again according to the market by using scenes. However, when the use scene is changed, the recording program in the form of a file system needs to call a file system library, which is difficult to realize by relying on a heavy file system for equipment with limited use hardware resources, and when the use scene is changed by directly writing terminal codes, the code needs to be modified for each project, so that the time spent on modifying the codes is increased, the maintenance is difficult, and various problems are undoubtedly caused for the application of the power communication protocol in different use scenes. Disclosure of Invention The invention aims to provide a dynamic configuration conversion method and system for a power protocol of a resource-constrained terminal, which are used for solving the problems of complicated operation and time and labor waste when the terminal needs to adopt different configurations according to various places and markets due to the limitation of the power protocol in the prior art. In order to achieve the above object, the present invention provides a power protocol dynamic configuration conversion method for a resource-constrained terminal, including the following steps: The terminal obtains a standardized external configuration table; the configuration conversion compiler of the terminal takes the standardized external configuration table as input, matches the internal configuration table in the configuration conversion compiler, independently gathers the configuration corresponding to the standardized external configuration table in the internal configuration table into a new configuration table, and optimizes the new configuration table into a binary data structure corresponding to a standard power protocol; Downloading the binary data structure and program firmware corresponding to a standard power protocol to a memory of the terminal through a burning tool; when the terminal is started, loading configuration data from the memory into the RAM, thereby completing the power communication between the ground terminal and the terminal under the standard power protocol; preferably, each configuration in the standardized external configuration table is constituted by a ground mains power communication configuration. Preferably, the standardized external configuration table contains one or more of telemetry data set fields, intrinsic parameters, motion parameters, electrical energy, remote control, and operational parameters. Preferably, the internal configuration table is a total table containing all configurations required for power communication. Preferably, the internal configuration table includes one or more of a telemetry data set field, an intrinsic parameter, an action parameter, an electric energy, a remote control, an operation parameter, a terminal program internal point number, and a report determination. Preferably, the standardized external configuration table and the new configuration table are in JSON file format. Preferably, the offset address of the internal configuration table in the configuration conversion compiler generates the new configuration table according to the offset address of the standardized external configuration table configured and associated with the local utility power communication requirement. Preferably, the terminal is used for managing protocol configuration data, and structurally storing key information in the new configuration table for rapid query and call of protocol processing logic, so as to realize decoupling of the configuration data and the program code. Preferably, a buffer buf is configured in the RAM, and t