Parameter configuration method and device, power terminal and computer readable storage medium

CN117270948BActive Publication Date: 2026-10-27NINGBO SANXING MEDICAL & ELECTRIC CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311231561.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-21
Publication Date
2026-10-27
Estimated Expiration
2043-09-21

AI Technical Summary

Technical Problem

[0004]有鉴于此,本申请的目的在于提供一种参数配置方法、装置、电力终端和计算机可读存储介质,以解决现有技术中对集抄应用程序中的一些配置参数进行重新配置时,存在的升级效率较差、传输时间较长以及升级成功率较低的问题

Benefits of technology

[0032]本申请实施例提供的参数配置方法、装置、电力终端和计算机可读存储介质,电力终端上设置有参数配置应用程序和集抄应用程序,且该参数配置应用程序中包括集抄应用程序中的配置参数,电力终端可以在根据升级文件确定应当升级参数配置应用程序的情况下,根据该升级文件对参数配置应用程序中的待配置参数进行配置,之后将参数配置应用程序中配置后的待配置参数同步给集抄应用程序,则集抄应用程序即可对自身的待配置参数进行配置。通过该方法,工程师无需为集抄应用程序生成升级文件,而是仅需要针对参数配置应用程序生成升级文件,由于参数配置应用程序仅用于参数配置,因此其升级文件较小,电力终端可通过升级参数配置应用程序对待配置参数进行配置,进而同步至集抄应用程序以对集抄应用程序中的待配置参数进行配置,因此可提高参数配置时应用程序的升级效率,缩短升级文件的传输时长,并提高升级成功率。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117270948B_ABST
    Figure CN117270948B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a parameter configuration method and device, a power terminal and a computer readable storage medium, and relate to the technical field of electric power. The power terminal is provided with a parameter configuration application and a group reading application. The parameter configuration application includes configuration parameters in the group reading application. The power terminal acquires an upgrade file of the parameter configuration application. When it is determined that the parameter configuration application should be upgraded according to the upgrade file, the configuration parameters in the parameter configuration application are configured according to the upgrade file. The configured configuration parameters in the parameter configuration application are synchronized to the group reading application, so that the group reading application configures the configuration parameters in the group reading application according to the configured configuration parameters. Therefore, the upgrade efficiency of the application during parameter configuration can be improved, the transmission time of the upgrade file can be shortened, and the upgrade success rate can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of power technology, and more specifically, to a parameter configuration method, apparatus, power terminal, and computer-readable storage medium. Background Technology

[0002] With the rapid implementation of smart grids, the use of power terminals is becoming more and more widespread, and the normal operation of power terminals is inseparable from the correct configuration of parameters in the data collection application.

[0003] Currently, when there are changes in requirements or protocol adaptation during field operation, it is necessary to reconfigure some configuration parameters in the data collection application. In existing technologies, engineers often need to generate an upgrade file for the data collection application and transmit it to the power terminal to upgrade the entire data collection application to reconfigure the configuration parameters. However, the upgrade file for the entire data collection application is often large, which may result in poor upgrade efficiency, long upgrade file transmission time, and low upgrade success rate. Summary of the Invention

[0004] In view of this, the purpose of this application is to provide a parameter configuration method, apparatus, power terminal and computer-readable storage medium to solve the problems of poor upgrade efficiency, long transmission time and low upgrade success rate when reconfiguring some configuration parameters in the data collection application in the prior art.

[0005] To achieve the above objectives, the technical solutions adopted in the embodiments of this application are as follows:

[0006] In a first aspect, this application provides a parameter configuration method applied to a power terminal, wherein the power terminal is equipped with a parameter configuration application and a data collection application, the parameter configuration application including configuration parameters from the data collection application, and the method comprising:

[0007] Obtain the upgrade file for the application configured with the specified parameters;

[0008] If it is determined from the upgrade file that the parameter configuration application should be upgraded, the parameters to be configured in the parameter configuration application are configured according to the upgrade file;

[0009] The parameters to be configured after being configured in the parameter configuration application are synchronized to the data collection application, so that the data collection application can configure the parameters to be configured in the data collection application according to the configured parameters.

[0010] In an optional implementation, the upgrade file includes a partitioned file containing parameters to be configured; the method further includes:

[0011] Based on the first attribute information of the upgrade file, determine whether the upgrade file is the first received upgrade file and whether the upgrade file is valid; based on the second attribute information of the separator file, determine whether the parameters to be configured in the separator file are valid.

[0012] If the upgrade file is a newly received upgrade file, the upgrade file is valid, and the parameters to be configured in the delimiter file are valid, then it is determined that the parameter configuration application should be upgraded.

[0013] In an optional implementation, the first attribute information includes the file format and checksum of the upgrade file, and the second attribute information includes the parameter format of the parameter to be configured in the delimiter file;

[0014] The step of determining whether the upgrade file is a newly received upgrade file and whether the upgrade file is valid based on the first attribute information of the upgrade file, and determining whether the configurable parameters in the separator file are valid based on the second attribute information of the separator file, includes:

[0015] If the file format of the upgrade file is consistent with the preset file format, then the upgrade file is determined to be valid;

[0016] If the verification code of the upgrade file is inconsistent with the historical verification code during the last upgrade, then the upgrade file is determined to be the first upgrade file received.

[0017] If the parameter format of the parameter to be configured in the separator file is consistent with the preset parameter format, then the parameter to be configured in the separator file is determined to be valid.

[0018] In an optional implementation, the separator file also records the correspondence between the parameter names and configuration methods of each parameter to be configured; configuring the parameters to be configured in the parameter configuration application according to the upgrade file includes:

[0019] Obtain each of the configurable parameters from the delimited file;

[0020] Based on the parameter names of each parameter to be configured and the corresponding relationship, the configuration method corresponding to each parameter to be configured is determined, and the parameter to be configured in the parameter configuration application is configured according to the configuration method.

[0021] In optional implementations, the configuration methods include parameter length change configuration, parameter backup configuration, and parameter modification configuration.

[0022] In an optional implementation, the power terminal is further equipped with a data center, and the step of synchronizing the parameters to be configured in the parameter configuration application to the data collection application includes:

[0023] The parameters to be configured in the parameter configuration application are sent to the data center so that the data center can save the configured parameters and synchronize them to the data collection application.

[0024] Secondly, this application provides a parameter configuration device applied to a power terminal, wherein the power terminal is equipped with a parameter configuration application and a data collection application, the parameter configuration application including configuration parameters from the data collection application, and the device comprising:

[0025] The acquisition module is used to acquire the upgrade file of the parameter configuration application;

[0026] A configuration module is used to configure the parameters to be configured in the parameter configuration application according to the upgrade file when it is determined that the parameter configuration application should be upgraded according to the upgrade file.

[0027] The configuration module is also used to synchronize the parameters to be configured after being configured in the parameter configuration application to the data collection application, so that the data collection application can configure the parameters to be configured in the data collection application according to the configured parameters to be configured.

[0028] In an optional implementation, the upgrade file includes a partition file containing parameters to be configured.

[0029] The configuration module is further configured to determine whether the upgrade file is a newly received upgrade file and whether the upgrade file is valid based on the first attribute information of the upgrade file, and to determine whether the parameters to be configured in the separator file are valid based on the second attribute information of the separator file; if the upgrade file is a newly received upgrade file, the upgrade file is valid, and the parameters to be configured in the separator file are valid, then it is determined that the parameter configuration application should be upgraded.

[0030] Thirdly, this application provides a power terminal, including a processor and a memory, wherein the memory stores a computer program that can be executed by the processor, and the processor can execute the computer program to implement the method described in any of the foregoing embodiments.

[0031] Fourthly, this application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method as described in any of the foregoing embodiments.

[0032] The parameter configuration method, apparatus, power terminal, and computer-readable storage medium provided in this application embodiment include a parameter configuration application and a data collection application on the power terminal. The parameter configuration application includes configuration parameters from the data collection application. When the power terminal determines that the parameter configuration application should be upgraded based on an upgrade file, it configures the parameters to be configured in the parameter configuration application according to the upgrade file. Then, it synchronizes the configured parameters to be configured in the parameter configuration application to the data collection application, allowing the data collection application to configure its own parameters. This method eliminates the need for engineers to generate upgrade files for the data collection application; instead, they only need to generate upgrade files for the parameter configuration application. Since the parameter configuration application is only used for parameter configuration, its upgrade file is small. The power terminal can configure the parameters to be configured by upgrading the parameter configuration application, and then synchronize this configuration to the data collection application to configure the parameters to be configured in the data collection application. Therefore, it improves the efficiency of application upgrades during parameter configuration, shortens the transmission time of upgrade files, and increases the upgrade success rate.

[0033] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description

[0034] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0035] Figure 1 A block diagram of a power terminal provided in an embodiment of this application is shown;

[0036] Figure 2 This paper illustrates a flowchart of a parameter configuration method provided in an embodiment of this application.

[0037] Figure 3 This paper illustrates another flowchart of the parameter configuration method provided in an embodiment of this application;

[0038] Figure 4 A functional block diagram of the parameter configuration device provided in an embodiment of this application is shown.

[0039] Icons: 10-Power terminal; 100-Memory; 110-Processor; 120-Communication module; 200-Acquisition module; 210-Configuration module. Detailed Implementation

[0040] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. The components of the embodiments of this application described and shown in the accompanying drawings can be arranged and designed in various different configurations.

[0041] Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of the application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.

[0042] It should be noted that relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes the element.

[0043] Figure 1 This is a block diagram of the power terminal 10 provided in an embodiment of this application. In one possible implementation, the power terminal 10 can be a power acquisition terminal used to collect power data.

[0044] Optionally, the power terminal 10 may be equipped with a parameter configuration application and a data collection application, and the parameter configuration application includes the configuration parameters from the data collection application. It is understood that the parameter configuration application is only used to configure the parameters to be configured via an upgrade process.

[0045] Please refer to Figure 1 The power terminal 10 includes a memory 100, a processor 110, and a communication module 120. The memory 100, processor 110, and communication module 120 are electrically connected directly or indirectly to enable data transmission or interaction. For example, these components can be electrically connected to each other via one or more communication buses or signal lines.

[0046] The memory 100 is used to store programs or data. The memory 100 may be, but is not limited to, random access memory (RAM), read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), etc.

[0047] The processor 110 is used to read / write data or programs stored in memory and to perform corresponding functions.

[0048] The communication module 120 is used to establish a communication connection between the power terminal and other communication terminals through the network, and to send and receive data through the network.

[0049] It should be understood that, Figure 1 The structure shown is only a schematic diagram of the power terminal 10. The power terminal 10 may also include components that are larger than those shown. Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown. Figure 1 The components shown can be implemented using hardware, software, or a combination thereof.

[0050] The following is based on the above. Figure 1 The power terminal 10 in this application serves as the executing entity. The parameter configuration method provided in this embodiment is illustrated below with reference to the flowchart. Specifically, Figure 2 For a flowchart illustrating the parameter configuration method provided in this application embodiment, please refer to [link / reference]. Figure 2 The method includes:

[0051] Step S20: Obtain the upgrade file for the parameter configuration application.

[0052] Optionally, the parameter configuration application in the power terminal can obtain its corresponding upgrade file.

[0053] Step S21: If it is determined from the upgrade document that the parameter configuration application should be upgraded, configure the parameters to be configured in the parameter configuration application according to the upgrade document.

[0054] Optionally, after obtaining the upgrade file, the parameter configuration application in the power terminal can determine whether an upgrade is necessary based on the upgrade file.

[0055] In this embodiment, the parameter configuration application in the power terminal can be upgraded according to the upgrade file if it is determined that an upgrade is necessary. It is understood that electronic devices can configure the parameters to be configured in the parameter configuration application by upgrading the parameter configuration application.

[0056] Optionally, since the parameter configuration application includes the configuration parameters in the data collection application, the parameters to be configured in the parameter configuration application are the same parameters to be configured in the data collection application that need to be reconfigured.

[0057] Optionally, the parameter to be configured can be a default configuration parameter or a configuration parameter related to the application requirements of the power terminal.

[0058] Step S22: Synchronize the configured parameters to be configured in the parameter configuration application to the data collection application, so that the data collection application can configure the parameters to be configured in the data collection application according to the configured parameters.

[0059] Optionally, the parameter configuration application in the power terminal can synchronize the configured parameters to the data collection application after the parameters to be configured are completed, so that the data collection application can configure the parameters according to the configured parameters.

[0060] The parameter configuration method provided in this application involves a power terminal equipped with a parameter configuration application and a data collection application. The parameter configuration application includes configuration parameters from the data collection application. When the power terminal determines that the parameter configuration application should be upgraded based on an upgrade file, it configures the parameters to be configured in the parameter configuration application according to the upgrade file. Then, the configured parameters are synchronized from the parameter configuration application to the data collection application, allowing the data collection application to configure its own parameters. This method eliminates the need for engineers to generate upgrade files for the data collection application; instead, they only need to generate upgrade files for the parameter configuration application. Since the parameter configuration application is only used for parameter configuration, its upgrade file is smaller. The power terminal can configure the parameters to be configured by upgrading the parameter configuration application, and then synchronize this configuration to the data collection application to configure the parameters in the data collection application. Therefore, this method improves the efficiency of application upgrades during parameter configuration, shortens the transmission time of upgrade files, and increases the upgrade success rate.

[0061] Optionally, if the communication protocol or other protocols need to be updated, or if the data collection scheme or data collection task changes, some configuration parameters in the data collection application may need to be reconfigured. In this case, the engineer can first compile a split file according to the requirements to record the parameters to be configured and related information. In addition, an upgrade file including the split file needs to be generated to upgrade the parameter configuration application.

[0062] In one possible implementation, the delimiter file could be a CSV file.

[0063] In this embodiment, the separated file may record the parameters to be configured. In one possible implementation, the engineer can upload the upgrade file to the main station, which will then distribute the upgrade file to the corresponding power terminal. In another possible implementation, the engineer can upload the upgrade file to the corresponding power terminal via a USB flash drive.

[0064] Optionally, in order to improve the success rate of parameter configuration application upgrades and increase the efficiency of parameter configuration, after receiving the corresponding upgrade file, the power terminal needs to first determine whether the parameter configuration application can be upgraded at this time based on the upgrade file.

[0065] Specifically, in Figure 2 On this basis, Figure 3 For another flowchart illustrating the parameter configuration method provided in this application embodiment, please refer to [link / reference]. Figure 3 The method also includes:

[0066] Step S10: Determine whether the upgrade file is the first received upgrade file and whether the upgrade file is valid based on the first attribute information of the upgrade file; determine whether the parameters to be configured in the separator file are valid based on the second attribute information of the separator file.

[0067] Optionally, considering the possibility of duplicate upgrade files being distributed when the main site distributes them, and the possibility of forgetting to remove the USB drive during upload, resulting in duplicate upgrade files being received, it is necessary to determine whether the upgrade file is the first one received in order to avoid repeated upgrades to the parameter configuration application.

[0068] In addition, to avoid upgrade failures due to errors in the configuration parameters in the upgrade file or the partition file, the power terminal also needs to determine whether the upgrade file is valid and whether the configuration parameters in the partition file are valid.

[0069] Step S11: If the upgrade file is the first upgrade file received, the upgrade file is valid, and the parameters to be configured in the delimiter file are valid, then it is determined that the application should be upgraded with the parameter configuration.

[0070] Optionally, the parameter configuration application in the power terminal can determine that an upgrade should be performed if it is determined that the upgrade file has been received for the first time, the upgrade file is valid, and the parameters to be configured are valid.

[0071] In this embodiment, the parameter configuration application in the power terminal can store the delimited file if it is determined that an upgrade should be performed.

[0072] Optionally, to avoid excessively large or chaotic data, the current partition file can replace the previously stored partition file.

[0073] Optionally, the power terminal may also store other data in the upgrade file.

[0074] Optionally, the power terminal may also include an LCD screen, in which case the power terminal may display a prompt message such as "Upgrading in progress" on the LCD screen when it is determined that the parameter configuration application needs to be upgraded, so as to remind the user that the parameter configuration application is being upgraded.

[0075] Understandably, if the upgrade file is not the first upgrade file received, or the upgrade file is invalid, or the parameters to be configured in the split file are invalid, then it can be determined that the parameter configuration application should not be upgraded at this time.

[0076] In one possible implementation, the power terminal can determine the validity of the upgrade file and the parameters to be configured by the file format and parameter format, and determine whether it is receiving the upgrade file for the first time by using a checksum. Based on this, the aforementioned first attribute information may include the file format of the upgrade file and the checksum, and the second attribute information may include the parameter format of the parameters to be configured in the delimited file.

[0077] Therefore, if the file format of the upgrade file is consistent with the preset file format, the upgrade file can be considered valid.

[0078] Optionally, the preset file format refers to the correct format of the upgrade file, which can be set in advance by the engineer and stored in the power terminal.

[0079] Optionally, if the verification code of the upgrade file is inconsistent with the historical verification code during the last upgrade, the power terminal can determine that the upgrade file is the first upgrade file received.

[0080] Optionally, this historical checksum refers to the checksum of the upgrade file from the last upgrade. Understandably, the parameter configuration application in the power terminal also stores the checksum corresponding to the upgrade file each time it stores a separate file.

[0081] Alternatively, the checksum can be an MD5 hash.

[0082] Optionally, if the parameter format of the parameter to be configured in the segment file is consistent with the preset parameter format, the power terminal can determine that the parameter to be configured in the segment file is valid.

[0083] Optionally, the preset parameter format refers to the correct format of the parameter to be configured, which can be set in advance by the engineer and stored in the power terminal.

[0084] In this embodiment, if the power terminal determines that the parameter configuration application should be upgraded according to the upgrade document, it can upgrade the parameter configuration application according to the upgrade document, thereby configuring the parameters to be configured in the parameter configuration application.

[0085] Optionally, considering that the configuration methods for different parameters to be configured may differ, the separate file also records the correspondence between the parameter names and configuration methods of each parameter to be configured.

[0086] Based on this, the parameter configuration application in the power terminal can obtain each parameter to be configured in the delimited file, determine the configuration method corresponding to each parameter to be configured according to the parameter name and the corresponding relationship, and configure the parameter to be configured in the parameter configuration application according to the configuration method.

[0087] In one possible implementation, the configuration method may include parameter length change configuration, parameter backup configuration, and parameter modification configuration.

[0088] Optionally, the parameter length change configuration refers to modifying the length of the parameter to be configured, such as increasing the length of the parameter to be configured.

[0089] Optionally, the parameter backup configuration is for some important parameters that need to be backed up to prevent loss.

[0090] Optionally, parameter modification configuration refers to modification operations on some common parameters to be configured, such as modifying communication parameters or modifying table addresses.

[0091] Optionally, the configuration method may also include parameter retention configuration and other special configuration methods. Parameter retention configuration means that the parameters to be configured are not modified and are retained. Other special configuration methods refer to configuration methods other than those mentioned above, which are determined by the actual application requirements.

[0092] Optionally, to facilitate data storage and synchronization, the power terminal may also be equipped with a data center, through which the parameter configuration application can synchronize the configured parameters to the data collection application.

[0093] Specifically, the power terminal can send the configured parameters to be configured in the parameter configuration application to the data center, so that the data center can save the configured parameters and synchronize them to the data collection application.

[0094] Optionally, the data center can be used to store various parameters in the power terminal.

[0095] In this embodiment, the parameter configuration application in the power terminal can send the configured parameters to the data center for storage after the configuration is completed. The data center can then send the configured parameters to the data collection application while storing them.

[0096] Understandably, the data collection application can configure the parameters to be configured in the data collection application based on the received configured parameters.

[0097] In one possible implementation, the data collection application can be configured with the parameters to be configured in the data collection application through initialization.

[0098] Optionally, to avoid missing parameters, the power terminal may also store the delimited file in the upgrade file and the parameters to be configured in the parameter configuration application if it is determined that the parameter configuration application should not be upgraded at this time.

[0099] To perform the corresponding steps in the above embodiments and various possible methods, an implementation of a parameter configuration device is given below. Further, please refer to... Figure 4 , Figure 4 This is a functional block diagram of a parameter configuration device provided in an embodiment of this application. It should be noted that the basic principle and technical effects of the parameter configuration device provided in this embodiment are the same as those in the above embodiments. For the sake of brevity, any parts not mentioned in this embodiment can be referred to the corresponding content in the above embodiments. The parameter configuration device includes: an acquisition module 200 and a configuration module 210.

[0100] The acquisition module 200 is used to acquire the upgrade file of the parameter configuration application.

[0101] Understandably, the acquisition module 200 can also be used to perform the above step S20.

[0102] The configuration module 210 is used to configure the parameters to be configured in the parameter configuration application according to the upgrade file when it is determined from the upgrade file that the parameter configuration application should be upgraded.

[0103] Understandably, the configuration module 210 can also be used to perform the above step S21.

[0104] The configuration module 210 is also used to synchronize the parameters to be configured after being configured in the parameter configuration application to the data collection application, so that the data collection application can configure the parameters to be configured in the data collection application according to the configured parameters.

[0105] Understandably, the configuration module 210 can also be used to perform the above step S22.

[0106] Optionally, the configuration module 210 is further configured to determine whether the upgrade file is a newly received upgrade file and whether the upgrade file is valid based on the first attribute information of the upgrade file, and to determine whether the parameters to be configured in the separator file are valid based on the second attribute information of the separator file; if the upgrade file is a newly received upgrade file, the upgrade file is valid and the parameters to be configured in the separator file are valid, then it is determined that the upgrade parameters should be configured for the application.

[0107] Understandably, the configuration module 210 can also be used to perform the above steps S10 to S11.

[0108] Optionally, the configuration module 210 is further configured to determine that the upgrade file is valid if the file format of the upgrade file is consistent with the preset file format; determine that the upgrade file is the first upgrade file received if the checksum of the upgrade file is inconsistent with the historical checksum of the last upgrade; and determine that the parameter to be configured in the separator file is valid if the parameter format of the parameter to be configured in the separator file is consistent with the preset parameter format.

[0109] Optionally, the configuration module 210 is also used to obtain each parameter to be configured in the delimited file; determine the configuration method corresponding to each parameter to be configured according to the parameter name and the corresponding relationship of each parameter to be configured; and configure the parameter to be configured in the parameter configuration application according to the configuration method.

[0110] Optionally, the configuration module 210 is also used to send the configured parameters to be configured in the parameter configuration application to the data center, so that the data center can save the configured parameters and synchronize them to the data collection application.

[0111] The parameter configuration device provided in this application embodiment obtains the upgrade file of the parameter configuration application through an acquisition module; when the parameter configuration application is determined to be upgraded based on the upgrade file, the configuration module configures the parameters to be configured in the parameter configuration application according to the upgrade file, and synchronizes the configured parameters to be configured in the parameter configuration application to the data collection application, so that the data collection application can configure the parameters to be configured in the data collection application according to the configured parameters. With this method, engineers do not need to generate upgrade files for the data collection application, but only for the parameter configuration application. Since the parameter configuration application is only used for parameter configuration, its upgrade file is small. Power terminals can configure the parameters to be configured by upgrading the parameter configuration application, and then synchronize it to the data collection application to configure the parameters to be configured in the data collection application. Therefore, the upgrade efficiency of the application during parameter configuration can be improved, the transmission time of the upgrade file can be shortened, and the upgrade success rate can be increased.

[0112] Optionally, the above modules can be stored in the form of software or firmware. Figure 1 The memory shown is either stored in or embedded in the operating system (OS) of the power terminal, and can be accessed by... Figure 1 The processor executes the commands. Meanwhile, the data and program code required to execute these modules can be stored in memory.

[0113] This application also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, can implement the parameter configuration method provided in this application.

[0114] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can also be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code, which contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram and / or flowchart, and combinations of blocks in block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.

[0115] In addition, the functional modules in the various embodiments of this application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.

[0116] If a function is implemented as a software module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0117] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A parameter configuration method, characterized in that, The method is applied to a power terminal, which is equipped with a parameter configuration application and a data collection application. The parameter configuration application includes configuration parameters from the data collection application. Obtain the upgrade file for the application configured with the specified parameters; If it is determined from the upgrade file that the parameter configuration application should be upgraded, the parameters to be configured in the parameter configuration application are configured according to the upgrade file; the upgrade file includes a partition file, and the partition file records the parameters to be configured; the method further includes: determining whether the upgrade file is a newly received upgrade file and whether the upgrade file is valid based on the first attribute information of the upgrade file, and determining whether the parameters to be configured in the partition file are valid based on the second attribute information of the partition file; if the upgrade file is a newly received upgrade file, the upgrade file is valid and the parameters to be configured in the partition file are valid, then it is determined that the parameter configuration application should be upgraded; The parameters to be configured after being configured in the parameter configuration application are synchronized to the data collection application, so that the data collection application can configure the parameters to be configured in the data collection application according to the configured parameters; The power terminal is also equipped with a data center. The step of synchronizing the parameters to be configured after being configured in the parameter configuration application to the data collection application includes: sending the parameters to be configured after being configured in the parameter configuration application to the data center so that the data center can save the configured parameters and synchronize the configured parameters to the data collection application.

2. The method according to claim 1, characterized in that, The first attribute information includes the file format and checksum of the upgrade file, and the second attribute information includes the parameter format of the parameter to be configured in the delimiter file; The step of determining whether the upgrade file is a newly received upgrade file and whether the upgrade file is valid based on the first attribute information of the upgrade file, and determining whether the configurable parameters in the separator file are valid based on the second attribute information of the separator file, includes: If the file format of the upgrade file is consistent with the preset file format, then the upgrade file is determined to be valid; If the verification code of the upgrade file is inconsistent with the historical verification code during the last upgrade, then the upgrade file is determined to be the first upgrade file received. If the parameter format of the parameter to be configured in the separator file is consistent with the preset parameter format, then the parameter to be configured in the separator file is determined to be valid.

3. The method according to claim 1, characterized in that, The separated file also records the correspondence between the parameter names and configuration methods of each parameter to be configured; configuring the parameters to be configured in the parameter configuration application according to the upgrade file includes: Obtain each of the configurable parameters from the delimited file; Based on the parameter names of each parameter to be configured and the corresponding relationship, the configuration method corresponding to each parameter to be configured is determined, and the parameter to be configured in the parameter configuration application is configured according to the configuration method.

4. The method according to claim 3, characterized in that, The configuration methods include parameter length change configuration, parameter backup configuration, and parameter modification configuration.

5. A parameter configuration device, characterized in that, Applied to a power terminal, the power terminal is equipped with a parameter configuration application and a data collection application, the parameter configuration application including configuration parameters from the data collection application, the device comprising: The acquisition module is used to acquire the upgrade file of the parameter configuration application; A configuration module is used to configure the parameters to be configured in the parameter configuration application according to the upgrade file when it is determined that the parameter configuration application should be upgraded according to the upgrade file; the upgrade file includes a separator file, and the separator file records the parameters to be configured; The configuration module is further configured to determine whether the upgrade file is a newly received upgrade file and whether the upgrade file is valid based on the first attribute information of the upgrade file, and to determine whether the parameters to be configured in the separator file are valid based on the second attribute information of the separator file; if the upgrade file is a newly received upgrade file, the upgrade file is valid and the parameters to be configured in the separator file are valid, then it is determined that the parameter configuration application should be upgraded. The configuration module is also used to synchronize the parameters to be configured after being configured in the parameter configuration application to the data collection application, so that the data collection application can configure the parameters to be configured in the data collection application according to the configured parameters to be configured. The power terminal is also equipped with a data center. The configuration module is also used to send the parameters to be configured after being configured in the parameter configuration application to the data center, so that the data center can save the configured parameters and synchronize the configured parameters to the data collection application.

6. The apparatus according to claim 5, characterized in that, The upgrade file includes a partitioned file, which records the parameters to be configured. The configuration module is further configured to determine whether the upgrade file is a newly received upgrade file and whether the upgrade file is valid based on the first attribute information of the upgrade file, and to determine whether the parameters to be configured in the separator file are valid based on the second attribute information of the separator file; if the upgrade file is a newly received upgrade file, the upgrade file is valid, and the parameters to be configured in the separator file are valid, then it is determined that the parameter configuration application should be upgraded.

7. A power terminal, characterized in that, It includes a processor and a memory, the memory storing a computer program that can be executed by the processor to implement the method of any one of claims 1-4.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1-4.

Citation Information

Patent Citations

  • Intelligent remote upgrade method of collector in electric meter collecting system

    CN107315620A

  • Remote upgrading method, system and device for water meter centralized reading equipment

    CN115134684A