CN113407256A - Method and device for processing parameters of electric energy meter - Google Patents

Method and device for processing parameters of electric energy meter Download PDF

Info

Publication number
CN113407256A
CN113407256A CN202110686894.4A CN202110686894A CN113407256A CN 113407256 A CN113407256 A CN 113407256A CN 202110686894 A CN202110686894 A CN 202110686894A CN 113407256 A CN113407256 A CN 113407256A
Authority
CN
China
Prior art keywords
file
file system
electric energy
energy meter
mirror image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110686894.4A
Other languages
Chinese (zh)
Inventor
郭帅
宋玮琼
段大鹏
赵成
刘恒
李冀
羡慧竹
李季巍
韩柳
步志文
吕凤鸣
刘士峰
陆翔宇
易欣
程诗尧
邹杨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
State Grid Corp of China SGCC
State Grid Beijing Electric Power Co Ltd
Original Assignee
State Grid Corp of China SGCC
State Grid Beijing Electric Power Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by State Grid Corp of China SGCC, State Grid Beijing Electric Power Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN202110686894.4A priority Critical patent/CN113407256A/en
Publication of CN113407256A publication Critical patent/CN113407256A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/182Distributed file systems

Abstract

The invention discloses a method and a device for processing parameters of an electric energy meter. Wherein, the method comprises the following steps: acquiring a target file and starting a file system of the electric energy meter, wherein the target file at least comprises a file system mirror image and an execution program file; determining that a preset parameter file does not exist in a file system; the file system is controlled to identify the file system mirror image, and a preset parameter file of the electric energy meter is obtained; and determining the initialization parameters of the electric energy meter according to the preset parameter file. The invention solves the technical problem of initializing the parameters of the electric energy meter with the file system in the related technology.

Description

Method and device for processing parameters of electric energy meter
Technical Field
The invention relates to the technical field of parameter control of power equipment, in particular to a method and a device for processing parameters of an electric energy meter.
Background
When a general embedded device with a file system is produced in a batch, the following methods are generally used to initialize data in the file system in a non-volatile memory.
The method comprises the following steps: the method comprises the steps of manufacturing default parameters, data and the like into a file system mirror image, burning the file system mirror image into external storage equipment (such as FLASH) by using a tool, and then carrying out production in a patch mounting mode. The disadvantage of this method is that special procedures are required.
The second method comprises the following steps: the default parameters, data and the like are made into a file system mirror image, the file system mirror image is copied to a movable storage device (such as an SD card and a U disk), then the movable storage device is inserted into a device to be initialized, and the device to be initialized copies the internal mirror image to an external storage device after detecting the movable storage device. The disadvantage of this approach is that it requires additional hardware device interface such as (USB/SD card port) support.
The third method comprises the following steps: and converting the structured parameter documents arranged according to the storage address sequence into binary parameter documents by a binary conversion tool, and then sequentially writing the binary parameter documents into the electric energy meter according to the storage address sequence. The disadvantages of this method are: this is not applicable to a parameter storage management system with a file system, because the parameter address of the file system is not an actual physical address but a logical address based on the characteristics of the file system, and the binary file cannot be generated simply in a manner of arranging the storage addresses in order. In addition, because the parameters are loaded and written by the electric energy meter program, the electric energy meter program is required to maintain the corresponding information table of the default parameters and the written parameter positions, and if the parameters are changed, the electric energy meter initialization program is also required to be correspondingly changed. Moreover, if the parameters in the file system exist in the database, the database needs to be operated for many times, and the initialization time is long.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a method and a device for processing parameters of an electric energy meter, which are used for at least solving the technical problem of initialization of the parameters of the electric energy meter with a file system in the related technology.
According to an aspect of the embodiments of the present invention, there is provided a method for processing parameters of an electric energy meter, including: acquiring a target file and starting a file system of the electric energy meter, wherein the target file at least comprises a file system mirror image and an execution program file; determining that the file system does not have a preset parameter file; controlling the file system to identify the file system mirror image to obtain a preset parameter file of the electric energy meter; and determining the initialization parameters of the electric energy meter according to the preset parameter file.
Optionally, before acquiring the target file, the method further includes: determining the target file; and burning the target file into a storage area of the electric energy meter.
Optionally, the step of burning the target file into the storage area of the electric energy meter, where the storage area includes an execution program area and a preset mirror image area for storing a file system, includes: storing the executive program file in the target file in the executive program area; and storing the file system mirror image in the target file in the preset mirror image area for storing the file system.
Optionally, before controlling the file system to identify the file system image and obtain the preset parameter file of the electric energy meter, the method further includes: controlling to empty an external storage area corresponding to the file system; and copying the file system mirror image stored in the preset mirror image storage area of the file system to the external storage area.
Optionally, determining the target file includes: determining the file system mirror image and the executive program file; and synthesizing the file system mirror image and the executive program file to obtain the target file.
Optionally, determining the file system image includes: and generating the file system mirror image according to the configuration of the file system of the electric energy meter and the preset parameter file of the electric energy meter.
Optionally, the storage space occupied by the file system mirror image is equal to the storage space of the preset mirror image area of the file system in the storage area of the electric energy meter.
According to another aspect of the embodiments of the present invention, there is also provided an apparatus for processing parameters of an electric energy meter, including: the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring a target file and starting a file system of the electric energy meter, and the target file at least comprises a file system mirror image and an execution program file; the first determining module is used for determining that the preset parameter file does not exist in the file system; the control module is used for controlling the file system to identify the file system mirror image to obtain a preset parameter file of the electric energy meter; and the second determining module is used for determining the initialization parameters of the electric energy meter according to the preset parameter file.
According to another aspect of the embodiment of the present invention, there is also provided a computer-readable storage medium, where the computer-readable storage medium includes a stored program, where when the program runs, the apparatus where the computer-readable storage medium is located is controlled to execute the method for processing the parameter of the electric energy meter.
According to another aspect of the embodiments of the present invention, there is also provided a processor, where the processor is configured to execute a program, where the program executes a method for processing parameters of an electric energy meter according to any one of the above methods.
In the embodiment of the invention, a file system for acquiring a target file and starting the electric energy meter is adopted, wherein the target file at least comprises a file system mirror image and an executive program file; determining that a preset parameter file does not exist in a file system; the file system is controlled to identify the file system mirror image, and a preset parameter file of the electric energy meter is obtained; according to the method, the initialization parameters of the electric energy meter are determined according to the preset parameter file, when the preset parameter file does not exist in the file system of the electric energy meter, the file system is controlled to identify the file system mirror image in the acquired target file, the corresponding preset parameter file is obtained, the initialization parameters of the electric energy meter are determined by using the preset parameter file, and the purpose of rapidly initializing the parameters of the electric energy meter with the file system is achieved, so that the technical effects that procedures are reduced, extra hardware equipment interfaces are not needed, cost and time can be greatly saved during batch production are achieved, and the technical problem of parameter initialization of the electric energy meter with the file system in the related technology is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a flow chart of a method of processing power meter parameters according to an embodiment of the invention;
FIG. 2 is a system hardware block diagram of an electric energy meter in accordance with an alternative embodiment of the present invention;
FIG. 3 is a flow chart of a method of processing power meter parameters according to an alternative embodiment of the invention;
fig. 4 is a schematic diagram of a processing device for electric energy meter parameters according to an embodiment of the invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
In accordance with an embodiment of the present invention, there is provided an embodiment of a method for processing parameters of an electric energy meter, it is noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer executable instructions, and that while a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than that illustrated herein.
Fig. 1 is a flowchart of a method for processing parameters of an electric energy meter according to an embodiment of the present invention, and as shown in fig. 1, the method for processing parameters of an electric energy meter includes the following steps:
step S102, acquiring a target file and starting a file system of the electric energy meter, wherein the target file at least comprises a file system mirror image and an execution program file;
in a specific implementation, the target file includes, but is not limited to, a file system image, an executive file, and the like.
Step S104, determining that the file system does not have a preset parameter file;
it should be noted that, if the file system has the preset parameter file, the initialization parameter of the electric energy meter may be determined directly according to the preset parameter file.
Step S106, controlling a file system to identify a file system mirror image to obtain a preset parameter file of the electric energy meter;
and step S108, determining the initialization parameters of the electric energy meter according to the preset parameter file.
Optionally, the parameters of the electric energy meter may be initialized according to a preset parameter file.
Through the steps, the file system is controlled to identify the file system mirror image in the acquired target file when the preset parameter file does not exist in the file system of the electric energy meter, the corresponding preset parameter file is obtained, the initialization parameter of the electric energy meter is determined by using the preset parameter file, and the purpose of quickly initializing the parameters of the electric energy meter with the file system is achieved, so that the technical effects of reducing working procedures, needing no extra hardware equipment interfaces, greatly saving cost and time during batch production are achieved, and the technical problem of parameter initialization of the electric energy meter with the file system in the related technology is solved.
Optionally, before acquiring the target file, the method further includes: determining a target file; and burning the target file into a storage area of the electric energy meter.
In an optional implementation mode, the target file is burned into the storage area of the electric energy meter, that is, the target file is stored into the storage area of the electric energy meter, and the file system of the electric energy meter is greatly convenient to call and identify the target file through the implementation mode.
Optionally, the storage area includes an execution program area and a preset mirror image area for storing a file system, and burning the target file into the storage area of the electric energy meter includes: storing an execution program file in the target file in an execution program area; and storing the file system mirror image in the target file in a preset mirror image storage area of the file system.
In an alternative embodiment, the storage area is divided into an execution program area and a storage file system preset mirror area, where the execution program file and the file system mirror in the object file are stored in different storage areas, respectively, for example, the execution program file in the object file may be stored in the execution program area, and the file system mirror in the object file may be stored in the storage file system preset mirror area.
Optionally, before the controlling the file system identifies the file system image and obtains the preset parameter file of the electric energy meter, the method further includes: controlling to empty an external storage area corresponding to the file system; and copying the file system mirror image stored in the preset mirror image storage area of the file system to an external storage area.
In an alternative embodiment, the external storage area corresponding to the file system needs to be cleared, and then the file system image stored in the preset image area for storing the file system is copied to the external storage area. Because the external storage area stores the file system mirror image, the file system can identify the file system mirror image more conveniently, and the identification efficiency is effectively improved.
Optionally, determining the target file comprises: determining a file system mirror image and an executive program file; and synthesizing according to the file system mirror image and the executive program file to obtain the target file.
In an alternative embodiment, the file system image and the execution program file may be synthesized by using a synthesis tool to obtain the target file. It should be noted that the object of the composition process includes, but is not limited to, a file system image and an executive program file, and thus the object file includes, but is not limited to, a file system image and an executive program file.
Optionally, determining the file system image includes: and generating a file system mirror image according to the configuration of the file system of the electric energy meter and the preset parameter file of the electric energy meter.
The configuration of the file system of the electric energy meter can be flexibly adjusted according to specific implementation conditions, and the preset parameter file of the electric energy meter can also be preset. In the specific implementation process, the file system mirror image can be manufactured and generated according to the configuration of the file system of the electric energy meter and the preset parameter file of the electric energy meter. By the adoption of the method and the device, the file system mirror image can meet various requirements of the electric energy meter.
Optionally, the storage space occupied by the file system mirror image is equal to the storage space of the storage area of the electric energy meter for storing the preset mirror image area of the file system.
It should be noted that the size of the file system image is the same as the size of the area storing the file system preset image. Through the embodiment, the situation that the file system mirror image cannot be completely stored in the storage area of the electric energy meter to store the preset mirror image area of the file system can be effectively avoided.
An alternative embodiment of the invention is described in detail below.
Fig. 2 is a system hardware block diagram of an electric energy meter according to an alternative embodiment of the present invention, as shown in fig. 2, a program space of a Micro Controller Unit (MCU) is 1M byte, where 24Kbyte is reserved as a preset mirror area for storing a file system, and the rest is an electric energy meter execution program space; in addition, the external FLASH was 8M in size, using the littlefs file system.
Fig. 3 is a flowchart of a method for processing parameters of an electric energy meter according to an alternative embodiment of the present invention, and as shown in fig. 3, the method for processing parameters of an electric energy meter includes the following steps:
and creating and generating a file system image bin (8Mbyte) according to the configuration of the target file system and the preset parameter file.
Bin is made to be consistent with the size of a preset mirror image area (24K byte) of a storage file system through modes of compression, cutting, filling and the like.
And combining the file system image and the executive program meter.bin into the meter + image.bin (1M byte) through a tool.
And fourthly, burning the whole meter + image bin into the MCU, and starting the file system.
Erasing the whole FLASH (8M), and copying the data of the system preset mirror image area (24K) to the front 24K position of the FLASH.
Sixthly, loading a littlefs file system, and further realizing that the parameters are operable, namely initializing the parameters.
In the above embodiment, the file system image is made, then the file system image is compressed and placed in the free internal FLASH space, after the electric energy meter program runs and identifies the file system image, the file system image is copied to the corresponding external storage device partition, and then the electric energy meter loads the file system and can identify the preset parameter file. The method solves the problem of parameter initialization of the electric energy meter with the file system, reduces the procedures, does not need additional hardware equipment interfaces, and can greatly save cost and time during batch production.
Example 2
According to another aspect of the embodiments of the present invention, there is also provided a processing apparatus for parameters of an electric energy meter, and fig. 4 is a schematic diagram of the processing apparatus for parameters of an electric energy meter according to the embodiments of the present invention, as shown in fig. 4, the processing apparatus for parameters of an electric energy meter includes: an acquisition module 42, a first determination module 44, a control module 46, and a second determination module 48. The following describes the processing device of the electric energy meter parameters in detail.
The obtaining module 42 is configured to obtain a target file, and start a file system of the electric energy meter, where the target file at least includes a file system image and an execution program file; a first determining module 44, connected to the obtaining module 42, for determining that the preset parameter file does not exist in the file system; a control module 46, connected to the first determining module 44, for controlling the file system to identify the file system image, so as to obtain a preset parameter file of the electric energy meter; and a second determining module 48, connected to the control module 46, for determining the initialization parameters of the electric energy meter according to the preset parameter file.
It should be noted that the above modules may be implemented by software or hardware, for example, for the latter, the following may be implemented: the modules can be located in the same processor; and/or the modules are located in different processors in any combination.
In the above embodiment, when the file system of the electric energy meter does not have the preset parameter file, the processing device for the parameters of the electric energy meter can control the file system to identify the file system image in the acquired target file, so as to obtain the corresponding preset parameter file, and determine the initialization parameters of the electric energy meter by using the preset parameter file, thereby achieving the purpose of quickly initializing the parameters of the electric energy meter with the file system, so that the technical effects of reducing processes and requiring no additional hardware device interfaces, greatly saving cost and time during batch production, and further solving the technical problem of parameter initialization of the electric energy meter with the file system in the related art.
It should be noted here that the above-mentioned obtaining module 42, the first determining module 44, the control module 46 and the second determining module 48 correspond to steps S102 to S108 in embodiment 1, and the above-mentioned modules are the same as the examples and application scenarios realized by the corresponding steps, but are not limited to what is disclosed in embodiment 1 above.
Optionally, the apparatus further comprises: the third determining module is used for determining the target file before the target file is obtained; and the burning module is used for burning the target file to the storage area of the electric energy meter.
Optionally, the storage area includes an execution program area and a preset mirror image area for storing a file system, and the burning module includes: a first storage unit for storing an execution program file in the object file in an execution program area; and the second storage unit is used for storing the file system mirror image in the target file in a preset mirror image storage area of the file system.
Optionally, the apparatus further comprises: the clearing module is used for controlling to clear the external storage area corresponding to the file system before the file system is controlled to identify the file system mirror image and the preset parameter file of the electric energy meter is obtained; and the copying module is used for copying the file system mirror image stored in the preset mirror image area of the file system to an external storage area.
Optionally, the third determining module includes: the determining unit is used for determining a file system mirror image and an executive program file; and the synthesis unit is used for carrying out synthesis processing according to the file system mirror image and the executive program file to obtain the target file.
Optionally, the determining unit includes: and the generating subunit is used for generating a file system mirror image according to the configuration of the file system of the electric energy meter and the preset parameter file of the electric energy meter.
Optionally, the storage space occupied by the file system mirror image is equal to the storage space of the storage area of the electric energy meter for storing the preset mirror image area of the file system.
Example 3
According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium, which includes a stored program, wherein when the program runs, the apparatus where the computer-readable storage medium is located is controlled to execute the method for processing the parameter of the electric energy meter.
Optionally, in this embodiment, the computer-readable storage medium may be located in any one of a group of computer terminals in a computer network and/or in any one of a group of mobile terminals, and the computer-readable storage medium includes a stored program.
Optionally, the program when executed controls an apparatus in which the computer-readable storage medium is located to perform the following functions: acquiring a target file and starting a file system of the electric energy meter, wherein the target file at least comprises a file system mirror image and an execution program file; determining that a preset parameter file does not exist in a file system; the file system is controlled to identify the file system mirror image, and a preset parameter file of the electric energy meter is obtained; and determining the initialization parameters of the electric energy meter according to the preset parameter file.
Optionally, before acquiring the target file, the method further includes: determining a target file; and burning the target file into a storage area of the electric energy meter.
Optionally, the storage area includes an execution program area and a preset mirror image area for storing a file system, and burning the target file into the storage area of the electric energy meter includes: storing an execution program file in the target file in an execution program area; and storing the file system mirror image in the target file in a preset mirror image storage area of the file system.
Optionally, before the controlling the file system identifies the file system image and obtains the preset parameter file of the electric energy meter, the method further includes: controlling to empty an external storage area corresponding to the file system; and copying the file system mirror image stored in the preset mirror image storage area of the file system to an external storage area.
Optionally, determining the target file comprises: determining a file system mirror image and an executive program file; and synthesizing according to the file system mirror image and the executive program file to obtain the target file.
Optionally, determining the file system image includes: and generating a file system mirror image according to the configuration of the file system of the electric energy meter and the preset parameter file of the electric energy meter.
Optionally, the storage space occupied by the file system mirror image is equal to the storage space of the storage area of the electric energy meter for storing the preset mirror image area of the file system.
Example 4
According to another aspect of the embodiments of the present invention, there is also provided a processor, configured to execute a program, where the program executes a method for processing parameters of an electric energy meter according to any one of the above methods.
The embodiment of the invention provides equipment, which comprises a processor, a memory and a program which is stored on the memory and can run on the processor, wherein the processor executes the program and realizes the following steps: acquiring a target file and starting a file system of the electric energy meter, wherein the target file at least comprises a file system mirror image and an execution program file; determining that a preset parameter file does not exist in a file system; the file system is controlled to identify the file system mirror image, and a preset parameter file of the electric energy meter is obtained; and determining the initialization parameters of the electric energy meter according to the preset parameter file.
Optionally, before acquiring the target file, the method further includes: determining a target file; and burning the target file into a storage area of the electric energy meter.
Optionally, the storage area includes an execution program area and a preset mirror image area for storing a file system, and burning the target file into the storage area of the electric energy meter includes: storing an execution program file in the target file in an execution program area; and storing the file system mirror image in the target file in a preset mirror image storage area of the file system.
Optionally, before the controlling the file system identifies the file system image and obtains the preset parameter file of the electric energy meter, the method further includes: controlling to empty an external storage area corresponding to the file system; and copying the file system mirror image stored in the preset mirror image storage area of the file system to an external storage area.
Optionally, determining the target file comprises: determining a file system mirror image and an executive program file; and synthesizing according to the file system mirror image and the executive program file to obtain the target file.
Optionally, determining the file system image includes: and generating a file system mirror image according to the configuration of the file system of the electric energy meter and the preset parameter file of the electric energy meter.
Optionally, the storage space occupied by the file system mirror image is equal to the storage space of the storage area of the electric energy meter for storing the preset mirror image area of the file system.
The invention also provides a computer program product adapted to perform a program for initializing the following method steps when executed on a data processing device: acquiring a target file and starting a file system of the electric energy meter, wherein the target file at least comprises a file system mirror image and an execution program file; determining that a preset parameter file does not exist in a file system; the file system is controlled to identify the file system mirror image, and a preset parameter file of the electric energy meter is obtained; and determining the initialization parameters of the electric energy meter according to the preset parameter file.
Optionally, before acquiring the target file, the method further includes: determining a target file; and burning the target file into a storage area of the electric energy meter.
Optionally, the storage area includes an execution program area and a preset mirror image area for storing a file system, and burning the target file into the storage area of the electric energy meter includes: storing an execution program file in the target file in an execution program area; and storing the file system mirror image in the target file in a preset mirror image storage area of the file system.
Optionally, before the controlling the file system identifies the file system image and obtains the preset parameter file of the electric energy meter, the method further includes: controlling to empty an external storage area corresponding to the file system; and copying the file system mirror image stored in the preset mirror image storage area of the file system to an external storage area.
Optionally, determining the target file comprises: determining a file system mirror image and an executive program file; and synthesizing according to the file system mirror image and the executive program file to obtain the target file.
Optionally, determining the file system image includes: and generating a file system mirror image according to the configuration of the file system of the electric energy meter and the preset parameter file of the electric energy meter.
Optionally, the storage space occupied by the file system mirror image is equal to the storage space of the storage area of the electric energy meter for storing the preset mirror image area of the file system.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A method for processing parameters of an electric energy meter is characterized by comprising the following steps:
acquiring a target file and starting a file system of the electric energy meter, wherein the target file at least comprises a file system mirror image and an execution program file;
determining that the file system does not have a preset parameter file;
controlling the file system to identify the file system mirror image to obtain a preset parameter file of the electric energy meter;
and determining the initialization parameters of the electric energy meter according to the preset parameter file.
2. The method of claim 1, further comprising, prior to obtaining the target file:
determining the target file;
and burning the target file into a storage area of the electric energy meter.
3. The method of claim 2, wherein the storage area comprises an execution program area and a storage file system preset mirror area, and burning the object file into the storage area of the electric energy meter comprises:
storing the executive program file in the target file in the executive program area;
and storing the file system mirror image in the target file in the preset mirror image area for storing the file system.
4. The method of claim 3, wherein before controlling the file system to identify the file system image and obtain the preset parameter file of the power meter, the method further comprises:
controlling to empty an external storage area corresponding to the file system;
and copying the file system mirror image stored in the preset mirror image storage area of the file system to the external storage area.
5. The method of claim 2, wherein determining the target file comprises:
determining the file system mirror image and the executive program file;
and synthesizing the file system mirror image and the executive program file to obtain the target file.
6. The method of claim 5, wherein determining the file system image comprises:
and generating the file system mirror image according to the configuration of the file system of the electric energy meter and the preset parameter file of the electric energy meter.
7. The method according to claim 6, wherein the storage space occupied by the file system image is equal to the storage space of the storage area of the electric energy meter for storing the file system preset image area.
8. An apparatus for processing parameters of an electric energy meter, comprising:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring a target file and starting a file system of the electric energy meter, and the target file at least comprises a file system mirror image and an execution program file;
the first determining module is used for determining that the preset parameter file does not exist in the file system;
the control module is used for controlling the file system to identify the file system mirror image to obtain a preset parameter file of the electric energy meter;
and the second determining module is used for determining the initialization parameters of the electric energy meter according to the preset parameter file.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored program, wherein when the program runs, the computer-readable storage medium is controlled to execute the method for processing the parameters of the electric energy meter according to any one of claims 1 to 7.
10. A processor, characterized in that the processor is configured to run a program, wherein the program is configured to execute the method for processing the parameters of the electric energy meter according to any one of claims 1 to 7 when running.
CN202110686894.4A 2021-06-21 2021-06-21 Method and device for processing parameters of electric energy meter Pending CN113407256A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110686894.4A CN113407256A (en) 2021-06-21 2021-06-21 Method and device for processing parameters of electric energy meter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110686894.4A CN113407256A (en) 2021-06-21 2021-06-21 Method and device for processing parameters of electric energy meter

Publications (1)

Publication Number Publication Date
CN113407256A true CN113407256A (en) 2021-09-17

Family

ID=77682012

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110686894.4A Pending CN113407256A (en) 2021-06-21 2021-06-21 Method and device for processing parameters of electric energy meter

Country Status (1)

Country Link
CN (1) CN113407256A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109117190A (en) * 2017-06-21 2019-01-01 中兴通讯股份有限公司 System start method and device
CN109857587A (en) * 2017-11-30 2019-06-07 西门子公司 Control method, device and the storage medium of movable storage device
CN110502281A (en) * 2019-07-19 2019-11-26 浙江万胜智能科技股份有限公司 A kind of method of embedded device starting linux kernel and file system
CN111382136A (en) * 2018-12-29 2020-07-07 华为技术有限公司 File system mirror image and file request method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109117190A (en) * 2017-06-21 2019-01-01 中兴通讯股份有限公司 System start method and device
CN109857587A (en) * 2017-11-30 2019-06-07 西门子公司 Control method, device and the storage medium of movable storage device
CN111382136A (en) * 2018-12-29 2020-07-07 华为技术有限公司 File system mirror image and file request method
CN110502281A (en) * 2019-07-19 2019-11-26 浙江万胜智能科技股份有限公司 A kind of method of embedded device starting linux kernel and file system

Similar Documents

Publication Publication Date Title
EP1658562B1 (en) A method of accessing data in a computing device
CN101923473B (en) Embedded electronic device and method for updating firmware thereof
CN102238265A (en) Mobile phone and method for realizing double-system mobile phone
CN104636165A (en) Mobile device starting method and device
CN101105754A (en) Method for modifying computer system boot-strap picture
CN112306368B (en) Method and device for expanding user data partition by EMMC (enhanced multi-media card)
CN111104178A (en) Dynamic library loading method, terminal device and storage medium
CN102214107A (en) Method and device for changing Flash skin and color in client program
CN105242941B (en) Method for burn-recording and device
CN113407256A (en) Method and device for processing parameters of electric energy meter
CN112631664B (en) Signal distribution method, signal distribution device, computer equipment and readable storage medium
CN102184375A (en) Management method and terminal of data in subscriber identity module (SIM) card
CN107423075A (en) The register method and user terminal of driving
CN110222019B (en) Method and device for adjusting space occupied by file system
CN101437072A (en) Rapid start-up mobile phone and method
CN109582225A (en) A kind of compatible starting of the more particles of SSD, upgrade method and device
CN101441575A (en) Regulation method for setting inner defined value of basic input output system and mainboard thereof
CN111813422A (en) Installation method, device, equipment and storage medium of operating system
JP2008546236A (en) How to access your mobile device contact card from another mobile device
CN101482825A (en) Self-starting module and its implementing method, single board and its self-starting method
CN108804221B (en) Embedded system based on XIP mode and resource optimization method thereof
CN104980603A (en) USB_3G network card user state automatic identification and dialing method and device
CN101739267A (en) Method for initializing peripheral device and computer system
CN112579545B (en) Linux file system mounting method and storage medium
CN109240864A (en) A kind of AEP memory DC test method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination